"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(W){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=W||[]};
(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 kz,CI,Wmm,N3J,Yz,w3,Y2m,DX,VP,B3w,bIp,AK3,JK,xXJ,lX3,MX,aXJ,zcc,JKP,IXX,QJ2,pwJ,ecP,yKJ,$XX,RcK,W8,T3m,bb,q2J,wx,umI,x2,tS,Lmc,jJw,II,v8,rK3,Wsm,kzK,$2,n22,Nxw,YAX,bAJ,CbI,RI,w8J,t8m,dSI,kB,mSX,zC2,DSX,V8m,JS3,WY,aZw,KA,X8z,fZ4,p82,v2J,eCp,wZ,Gzm,ySm,$SJ,ZAm,o2P,iA2,usm,USm,Lsm,rSm,hCw,kCw,Wiw,VT,CEc,b7X,Atc,FiP,t7m,xuX,lAI,S7,RCp,Mu,QT,p7,XYm,EBJ,aA2,GC,fAI,duw,z$m,V7m,Dum,JtP,ctw,IAm,e7,M7I,pYw,e$w,$um,uE,TZP,s13,qS2,Uum,O7X,KiP,H7P,ki2,n3z,NjI,Bjp,bLm,xaK,X6c,VNw,Szc,seX,wj,yoI,ZL3,RrK,fL,
Dl,c6,SN,Gi,$3,Zl,OLI,HL2,ro3,K_z,ktp,KL,CMw,WX,kO,Cg,N9,NTI,YFp,BTI,bgX,A8p,wXc,x9P,lem,tim,aem,A8,bM,XXm,fe4,d9I,zaK,m9w,D92,J8P,c8m,X0,fg,dT,mR,De,SFX,V2,Qb2,GtX,Ib,y82,$9P,Zgc,M9,Ram,oOw,igI,Q2,u0I,vX,LRz,jbz,ei,r8I,Hgw,gOJ,PMP,KRJ,ha2,y2,WDJ,kl4,$O,CBm,n0w,Ze,Rb,ob,iM,NPz,BPm,YXc,Tt,AUz,FD4,x34,uM,ji,rT,gT,PX,Kg,ld4,t3J,E0m,adX,XDX,fd4,d3P,m32,zsX,D3X,V3P,JUc,WD,cU4,Idz,SX2,BD,bB,M3w,v0X,esP,sOc,yU4,$3w,ZU3,TPp,qXm,uR3,U3I,OUm,LDw,jOK,PBm,wP,KDX,hs2,x0,WJm,kbI,CgI,nLK,YgP,f0c,dD4,mDm,V_z,Jd4,
mD,cdw,M_2,vLm,eAw,sL4,GbK,yd4,$DX,ZNp,RAm,iNw,TuX,QLK,qg2,uKK,UDz,ONp,LJc,jLP,HNw,rd3,gLw,kmP,hAX,NwP,CRK,nw3,byw,AYw,F$w,YoJ,xfm,BwJ,twc,RO,oO,Tl,Ew4,XH2,fD2,z_I,vwc,Vwc,Dfm,cYX,Som,JY4,Zym,GmP,R_c,owP,iyX,TwX,qoz,Ufw,uMw,L$z,jWm,Hyp,rY3,PR4,h_w,Whw,k33,nnX,CIw,aE2,Xvc,OX,fEm,zq2,DIX,VO3,Jjz,cjw,SeX,MOX,Q43,hU,pvX,$Ic,nN,ND,iSK,qeX,Khz,bHK,Ad,w43,Eg4,l5p,tfX,td,a53,X4w,d7w,m7J,zl3,D7X,VfK,JMz,cMX,Shp,MfX,p4K,QXm,sX2,VQ,IL,yMm,$7X,ZH4,RlK,ogz,iHK,qhm,U7m,uV3,RL,ig,Wa2,ug,NKw,Ug,YLP,BKJ,Og,AEX,bvP,
X$z,dqI,DqJ,Vk2,cE3,I33,SLP,QMp,euz,sMz,ru,WwX,nIp,NIP,YKP,BIP,bM3,CT2,hu2,yEz,Pf,Gwp,AB4,wxw,lxP,axP,t6J,WH,fxm,mPz,z62,DPX,V63,Nf,JBI,Ixz,cBX,SKJ,Q94,bR,$P3,R6w,yBP,TIm,UPw,OMP,lR,tY,Lww,gIz,Eo,dw,W5X,zm,n6m,B0P,ADJ,F5K,wm3,DD,xZP,lRJ,t9m,aRm,XmI,fRz,dZX,zIX,JY,DZJ,V9K,Sw,py,IRX,Sd3,M94,so,v6m,eII,GXp,oW,itw,T0p,qdJ,uwc,UZJ,uR,Uo,Oo,Ly,jqw,HH,Htp,rDw,g6p,PDX,hIw,WQX,K5p,CdP,k73,nem,bY3,gw,BaX,AAm,Na4,FQ4,Ky,lHm,wep,thc,EeK,aHp,fH4,XeP,dLK,DL4,mLz,JA2,pep,eBI,G7p,$LJ,oeI,RB4,ZYJ,iYw,uvc,OYP,ULz,
LQz,HYw,rA4,wA,hBm,tj,CWK,kDX,nQ2,a4,Xc,N8w,fS,Yr3,bBw,FIX,lrz,EQc,tow,iI,arw,AQK,Vom,JQX,cQm,Ue,Ir4,Moc,QzX,Hv,vQJ,GD4,szm,Rd4,oQz,iBm,T8m,ulJ,HB2,UlJ,LIJ,jzw,rQp,PWX,gQ2,hdX,KIX,CH,W7p,COP,nS3,b5I,wd,xg,AeI,F7X,lp,tW2,XV,fH,dd,fFX,mK,zVX,Vn,DyK,VWw,JeX,ce4,IX,IF2,MW2,QYc,vSI,sYp,$ym,RVm,yn,oSm,i5m,TnX,qbJ,uDw,Uy4,O5I,L7K,RX,rem,gS2,POI,K7X,hVJ,Wgz,kyp,CKp,nZm,Nim,Yp2,Bi3,bOJ,LH,mw3,zN4,jf,H4,rd,Dwp,VIP,Jh3,chK,I6w,SpP,MIw,s83,GyI,yhK,$wP,ZOX,hM,k1,Cv,nv,B$,be,AE,oZm,wK,Tiz,x1,qpJ,uiP,le,Uw4,OOI,
Lg2,kMc,nrJ,AvP,lyz,xsm,C0w,tYK,Xpm,vrm,VYw,$sJ,cvm,yvm,Zqm,zw,or3,Vw,THX,qC3,Usm,Oqw,LWz,Hqm,IM,grJ,P0I,KWp,hUX,W83,kjc,C6p,rvm,YiP,ByK,bip,Mq,tcK,Ef2,lz4,Xjw,fzJ,mN3,z8z,dNm,McJ,pjw,e82,GjX,RM,iiw,ofm,Oiw,jEI,Hi2,r7m,gfw,P6m,K82,P$,bnz,F0c,YJ4,NE3,AWm,W0X,xE2,Vrm,EaI,afI,XJK,shw,yWc,exw,TEz,vaz,h8c,in2,trJ,DEw,Gfp,wJw,CVw,kf2,naP,BE4,pJ4,tB,CXm,N7m,Yx3,B74,bXI,XB2,VHw,JyX,S6,Ii4,QSw,sS2,eb3,yyw,$jw,oj2,Rbw,iXm,qxm,R9,uow,Uj2,LkJ,OXz,o9,KkK,PX2,gjX,C2X,hbP,nxX,krw,NqJ,TJ,YR2,F44,b6w,Afm,x22,lNw,
ExK,OK,fNz,aNw,d2m,Vyp,Jf4,SRI,QZm,rI,gI,sZw,GrX,Px,KM,yfI,hB,Wm,$2K,k6,Z6P,Ct,RDP,oxm,NZ,i6m,Tqw,qR3,uYw,U2X,L4w,O6w,H6I,P2I,gxI,K4K,hDX,jZP,WEX,nNz,CHm,rfw,Nkm,YvI,x6,Bk2,A3P,bsI,FEw,wqw,l73,xKX,tqI,tD,a7I,Xqz,ENw,dK4,mKc,znI,c3m,Mqc,s5p,Zs3,Ed,isw,Tk2,aq,qvJ,m5,zX,Hsm,ft,JD,r3w,gN3,KEm,hnp,kvc,n4I,NvX,YMw,BvI,Flw,E44,lB3,ApP,aBm,X9p,MZ,tt2,fBp,vm,dbm,mbc,zm3,DbP,IBX,VtX,cpI,p9w,v4w,$bw,yp4,o4m,Orw,Llz,HrP,g4P,PAc,hmm,WGK,kKw,no3,N2m,YyX,Aum,l8I,t5X,FGw,a8z,f8J,XTz,EoX,dJp,zkp,DJ2,V5m,Juw,cuw,Ud,
Od,Hm,g0,M5X,QHm,voP,GKI,Pm,Kt,yuK,hD,Rkw,oow,i04,CY,O0K,ruX,P1w,KGI,hkz,WPJ,kqc,NmI,NL,YY3,Abm,Ye,FPw,luX,tZc,ETP,xe3,zO2,Jbw,De4,cbw,MZX,pSm,eO3,$ep,yb2,ix3,wa,Tm3,qYm,xe,ubK,ld,UeP,Ox4,LPw,Hx3,jaX,rbX,gTJ,Psc,KP2,Y3J,bFP,Few,ACp,Ccm,WeX,xRm,tT2,dRP,mR3,ITI,MTw,Xv,QRc,vXP,eeJ,GcJ,Rem,iFp,q3w,u$3,URw,OFJ,gXp,Lep,Wfm,k$4,nvz,mQ,YOw,BDP,b_J,Akc,FfJ,w04,xFw,tFw,EvJ,JA,X0I,fmw,zXm,ce,mF3,VFm,SOz,Sh,MFw,QVm,p04,sVw,G$P,vvK,$Fz,i_4,UFm,O_3,$e,Lfw,gv2,WFm,id,nM2,k0P,CP2,Ync,b3c,A9m,l2P,a2z,EMc,tzI,XFI,
dVm,mVm,I2w,zMz,SnP,pFK,MzK,$Vc,oMm,T4z,uhm,KF3,WV3,kuw,Y7X,Alw,Dr,vN,dnm,fII,zWX,Dnc,JlJ,VBP,clP,II4,eo,FWw,aIw,mnm,XO4,Qb,QvK,pOX,vqI,eW2,TD,svz,ql,Guw,ylK,$n4,ZTp,Or,RW3,TS2,uFz,Unm,PFm,hW4,WBP,kQ2,nk3,Ncc,W3,BcX,b84,ATw,FBp,wnz,xtc,tCm,anX,fnP,dtX,cTz,VCz,InJ,QuP,pnw,Ae,vk2,eyP,suJ,$tc,RyK,Z8X,i8p,qqw,lO,Utc,O8c,u5I,LBp,jum,rTP,PuJ,gkc,KBc,H83,hyK,WSJ,kRm,C84,n7m,NFp,YVm,BFI,bEX,wKP,FSz,x$w,tDc,lYm,te,E7J,fYm,VDc,aYw,J43,c4p,IYK,SVX,y4z,ZEX,Rjp,iEJ,TF3,c3,OE3,r4z,P82,IY,kA3,Wuw,Ckw,Q4,nDP,NhX,
YQP,blw,Awp,Fuc,wRc,l1z,tVc,JwX,miX,Diw,I1K,cww,SQc,MVm,pRI,eRw,GAm,$iw,LuX,rwJ,PkJ,KuP,hRP,W1K,kP3,n$c,NLI,bR2,AnP,F12,wLp,xMp,lpz,taJ,E$c,fpK,z9m,DM3,Vaw,To,qy,uO,Ub,Jnm,H3,IpJ,Qpp,e9I,yn3,R9I,TL2,o$p,ndc,NBm,HR3,h9z,kII,uqI,PyJ,iRw,rn2,Ma2,ORp,GPc,v$m,BBI,bkK,A5w,ZRw,jpK,wVw,lam,EdK,faK,dCJ,nO,S$m,Iaz,vd4,GIJ,$CK,RHK,odw,q$z,UCI,uOz,j$w,r5w,Cjz,W22,P_K,k1K,Kdz,n8z,buP,fO,XrJ,tR4,dYc,mY2,DY3,VRP,mg,JZ3,S1c,MRI,Qt4,prp,RPK,ZuI,Mw,Gy,Ou3,L2c,$Z,jtX,Hu4,rZm,g8p,Pjp,K2p,hPP,WA4,kk2,C42,nAw,Nlm,YmJ,
BlX,bcm,Z6,Aaz,FA2,wZJ,xgw,l_w,tAJ,EAJ,a_P,XZw,f_w,dg2,mgm,o8,DgJ,JaK,I_2,Qc4,eYX,scP,GkX,$gJ,RY2,oAI,ic3,qmP,LAw,Ugz,jcK,HcI,rap,KAX,nC2,NOz,BO3,Yr,Acw,nq,w2z,xkI,Bp,lU3,ECw,aUc,X23,b0,z3I,VLc,Q_X,ML4,vCm,e33,tv,EC,s_z,ycz,ZGw,R34,iGP,TO2,$k4,qDm,j_p,PiX,QCX,aK,p52,vcm,$6m,eSP,GTm,y0m,q6w,RSJ,uN4,U6J,LpP,HVw,r0z,gcI,PrK,KpK,hSX,kg4,CSP,nYJ,NQK,Y5w,be3,Fc4,lg4,Xgm,mh2,Dhw,czw,V3,IgX,S5z,Mnm,Qiz,pgJ,eKc,si3,Ggc,yz4,$hm,Ze2,RK2,oYc,ieX,TQc,q5X,UhP,uLz,jip,rz2,gYw,IK,PSz,Kcm,kYP,Wjw,Ms,N$2,YcX,A6P,whp,
FjP,bKw,t$4,lkz,do4,EtP,y3,Xhm,Ikz,Doz,V$P,J63,c6w,ScI,Q3X,M$w,$r,Zy,$oI,vtJ,y6w,GYX,eoX,s3I,otI,iKp,qcp,T$4,Ljp,OKI,r62,gtP,KjX,ho4,PZm,WNp,CYK,khm,Ntc,bhX,OC,APz,FNw,lV2,fVc,JPc,jY,IV2,pMw,GhX,sdK,vVz,eZI,Kq,oVz,$HI,ZhI,ihJ,qUw,TtK,Oh3,LNJ,Hh2,rPm,gVm,PYp,KNI,WyP,kSP,FZ,nuX,xf,NWm,AGm,Fym,aE,wdX,l9X,DUK,VPp,Xdz,z5z,f9K,dU3,Stc,MP2,I9z,QPm,pd2,GS2,vuc,yGJ,$Uc,Dz,R5P,ouz,ijJ,Zjm,qt4,TWz,VI,LyK,h5P,Wxm,kNP,CG4,nJK,NCI,AIc,BCX,bJP,Y0p,wWP,lK3,tlX,XWP,fKX,mpP,MN,zQm,Dp4,Vlp,cIP,IKz,S02,Mlm,QB3,vJJ,sBw,
GNm,ZJX,$pw,oJp,RQp,iJJ,TC3,q04,ec,Upw,Cvw,Wz4,YfK,Bem,l4P,tGI,Emw,a4P,XsX,f4z,zFK,D1I,VGm,JL2,SfP,MGm,Qmc,ps3,vmK,eFp,smw,GLI,yLX,$1J,Zd3,omc,idI,Te4,uX4,OdX,jmm,Pvc,gmz,rL2,Hdw,Ki,hFP,Wt3,k62,CNw,Yjw,nU2,B94,N9J,bCX,Cn,AgJ,Ftm,wam,xxP,lCp,tXp,EUm,fC2,Xam,aCP,dxX,VXz,Jg2,AW,cgm,ICm,Sjp,MXm,QTm,pac,eJm,sT4,G6z,yg2,RJJ,ZC2,uap,$xm,wE,UxP,oUP,qjm,jTm,rgp,Wbc,Ktw,hJI,PNp,gU3,fn,kBm,nHw,NoJ,Yl2,BoI,bPm,m0,zf,lbm,Fb4,ANJ,wbm,JNw,DOX,xOK,z42,vH4,e42,sQc,Gf,GB4,yNp,$Ow,oHw,ToK,u3w,OPz,Lb2,jQ4,Pom,gHI,Kb2,
Wv3,Tf,ny2,NRX,YGz,BRX,uV,UJ,Fvw,lMp,dGI,VEz,JXm,cXJ,IMz,SGX,QfX,vyc,pPP,eGw,sfz,GUX,yXc,$GX,Z1P,RGp,oym,i1K,gE,UGJ,TRI,PJ,Lvc,O1K,jf2,WHm,k5w,P$J,gyX,hG2,Kvw,BVp,bmm,AFw,FH2,w73,xQ2,l$p,tuX,X7m,E_p,a$X,f$3,mQm,DQc,JFw,I$2,MuJ,etz,sGK,G5m,yFw,$Qw,CX,Rtm,Zmm,nX,o_m,TVm,qPX,udw,UQX,rFI,g_m,P3X,KHm,htK,WOc,kOX,Fo,npz,Nz3,YTp,bQX,BzK,Ai3,wz3,xdm,lLm,Epc,aLm,tjp,Ddm,cip,ILX,ST3,Mjw,pzm,QgX,yiI,$dz,ZQI,RTm,iQz,opp,qTm,HQ2,jgm,gp2,Pmp,KOw,nWz,NYz,Y_3,BYX,xWX,wAX,F6m,EWw,XAc,acJ,fcI,Jy,dWc,mWP,JJX,Vx4,cJw,
IcK,S_w,Mxm,vWX,s6z,Gsp,yJm,$WX,Zf2,Rhc,oWz,TYK,ifJ,q_z,UWm,ujw,OfI,L6c,j6w,Hfw,rJ4,P9p,K6m,hh4,Wom,kF2,ChX,nFm,Ysc,BN4,NN2,yg,Fow,xT3,lsI,t0m,EF4,XCm,fs2,JH3,cHP,pC4,epw,sjm,$T4,ZpI,Rpp,oFw,ip3,TNJ,uBK,UT2,Lom,HpK,gFX,WCX,Kop,PhP,hpm,kVm,NfK,CJK,nGm,Bfz,FCX,wUc,x8P,tbw,EGJ,aop,foK,m8I,XUm,ziJ,D8z,Vbm,JO2,cO2,Io4,S8X,Mbp,Q2K,vGp,pUP,eiI,s22,GVX,yOw,$8w,Z9m,Rip,oG2,q8J,uxJ,i9w,TfJ,LC2,rOm,gG3,bWw,niI,B6m,A_3,Y4J,KX,FLp,wkI,lQm,aQm,Eiw,Xk4,fQm,hy,kx,mmp,zzK,N2,Yx,DmJ,VmI,S4J,pkm,ez2,sx3,Gez,y_3,$mX,
Rz2,oiw,iWm,T6X,q43,unp,Umw,Af,OWI,LLz,wq,jxm,HWI,r_P,giI,PL3,KLw,tf,ER,hzP,Wn2,aZ,kaK,Cqm,n5P,N5J,B5m,bZ2,Fnw,E5p,tUm,lOc,aOX,XE4,VUm,mAm,z1I,dAm,DAX,f6,SE2,MUX,Qsm,pEJ,v5X,ssJ,ZZ3,yqX,dq,Gap,qEw,UAm,OZP,LnX,jsw,HZm,Pqm,KnI,WYm,k22,Czw,n92,YIX,B_J,bbw,FYJ,wuw,xvp,tsc,E94,XuP,fWc,zE4,VsJ,cR4,JRX,SIw,MsJ,QNJ,puP,v9z,sNw,G2X,yRX,ibp,T_J,qI2,uIm,ObX,Sy,Qr,M2,LYz,jNP,Hbm,rRK,KYw,Pzm,WMw,kH3,CnX,NMp,YWJ,BMw,AmI,wcJ,lSK,tJm,Ehc,vG,aSc,fSX,d04,D03,VJX,ey,sR,ISz,Jmw,SWm,pc3,MJX,vh4,yr,s03,GHI,ZDc,oh4,$x,
TMJ,qWp,uUX,U0w,ODw,LM2,j0w,PnX,KM2,k9K,hgm,WUw,Cxc,nPp,b2K,Nb4,Bbm,A$X,FUP,wQ3,t4c,EPJ,atI,XQw,ftw,J$p,V4X,pQP,snJ,UR,G92,mI4,y$P,$53,RLI,i2m,TbX,H23,r$w,rq,gPw,Pxm,KUJ,hLw,Wqw,CCc,Nrm,kEK,nE2,bwJ,Brm,Fqc,wt4,xz3,lG2,tKc,EEw,aGX,Xtp,zfK,J1w,DzX,c1J,IG2,SBz,Wq,MKP,Ql2,Cs,vEm,ptz,efK,slz,y1m,$zz,RfJ,oEK,iwm,Tr2,qBK,Uzw,jlI,gE2,hfJ,Kq3,WXm,kpX,NUp,EKJ,Asp,Xyp,fvK,mB4,z2c,VvI,JsP,cs3,Ivm,Sac,Mvm,Q7z,vK4,Gp4,ysw,$BK,Z4w,i4p,oKX,UB4,O4J,LX3,j7P,H4I,gKI,mE,KXw,J3,WTm,CUz,nbw,A23,w_c,Ebz,X_m,fPc,mrP,zwc,
Drw,J22,IPz,Swm,p_3,ewI,y24,Gdw,sFc,ps,ZzX,$rc,RwX,obw,izm,TGm,qwI,uAI,Ur2,LT4,jFc,HzK,gbp,hw2,r2w,PUK,W9w,kGm,ClX,ns4,YNw,BJI,Esw,awm,XiK,fwP,d_c,D_2,Z7,M14,QDm,piw,vsP,e74,R5,oL,ia3,T_,TJ4,jDz,L9w,qK,rxz,Vi4;_.Ww=function(W,k){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Ww);else{var C=Error().stack;C&&(this.stack=C)}W&&(this.message=String(W));k!==void 0&&(this.cause=k)};
kz=function(W){return(W&192)!==128};
CI=function(){throw Error("B");};
Wmm=function(W,k){k=String.fromCharCode.apply(null,k);return W==null?k:W+k};
N3J=function(W){var k=!1;k=k===void 0?!1:k;if(k4z){if(k&&(Cwp?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("C");W=(nz4||(nz4=new TextEncoder)).encode(W)}else{for(var C=0,n=new Uint8Array(3*W.length),N=0;N<W.length;N++){var B=W.charCodeAt(N);if(B<128)n[C++]=B;else{if(B<2048)n[C++]=B>>6|192;else{if(B>=55296&&B<=57343){if(B<=56319&&N<W.length){var A=W.charCodeAt(++N);if(A>=56320&&A<=57343){B=(B-55296)*1024+A-56320+65536;n[C++]=B>>18|
240;n[C++]=B>>12&63|128;n[C++]=B>>6&63|128;n[C++]=B&63|128;continue}else N--}if(k)throw Error("C");B=65533}n[C++]=B>>12|224;n[C++]=B>>6&63|128}n[C++]=B&63|128}}W=C===n.length?n:n.subarray(0,C)}return W};
Yz=function(W){_.NX.setTimeout(function(){throw W;},0)};
_.AK=function(W,k){return W.lastIndexOf(k,0)==0};
w3=function(W,k){var C=W.length-k.length;return C>=0&&W.indexOf(k,C)==C};
_.tK=function(W){return/^[\s\xa0]*$/.test(W)};
_.E2=function(W,k){return W.indexOf(k)!=-1};
_.aJ=function(W,k){return _.E2(W.toLowerCase(),k.toLowerCase())};
_.fI=function(){var W=_.NX.navigator;return W&&(W=W.userAgent)?W:""};
Y2m=function(W){if(!d3||!mm)return!1;for(var k=0;k<mm.brands.length;k++){var C=mm.brands[k].brand;if(C&&_.E2(C,W))return!0}return!1};
DX=function(W){return _.E2(_.fI(),W)};
VP=function(){return d3?!!mm&&mm.brands.length>0:!1};
B3w=function(){return VP()?!1:DX("Opera")};
bIp=function(){return VP()?!1:DX("Trident")||DX("MSIE")};
AK3=function(){return VP()?Y2m("Microsoft Edge"):DX("Edg/")};
JK=function(){return DX("Firefox")||DX("FxiOS")};
_.Fmm=function(){return DX("Safari")&&!(_.IJ()||(VP()?0:DX("Coast"))||B3w()||(VP()?0:DX("Edge"))||AK3()||(VP()?Y2m("Opera"):DX("OPR"))||JK()||DX("Silk")||DX("Android"))};
_.IJ=function(){return VP()?Y2m("Chromium"):(DX("Chrome")||DX("CriOS"))&&!(VP()?0:DX("Edge"))||DX("Silk")};
_.wwm=function(){return DX("Android")&&!(_.IJ()||JK()||B3w()||DX("Silk"))};
xXJ=function(W){var k={};W.forEach(function(C){k[C[0]]=C[1]});
return function(C){return k[C.find(function(n){return n in k})]||""}};
lX3=function(W){var k=_.fI();if(W==="Internet Explorer"){if(bIp())if((W=/rv: *([\d\.]*)/.exec(k))&&W[1])k=W[1];else{W="";var C=/MSIE +([\d\.]+)/.exec(k);if(C&&C[1])if(k=/Trident\/(\d.\d)/.exec(k),C[1]=="7.0")if(k&&k[1])switch(k[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=C[1];k=W}else k="";return k}var n=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");C=[];for(var N;N=n.exec(k);)C.push([N[1],N[2],N[3]||void 0]);
k=xXJ(C);switch(W){case "Opera":if(B3w())return k(["Version","Opera"]);if(VP()?Y2m("Opera"):DX("OPR"))return k(["OPR"]);break;case "Microsoft Edge":if(VP()?0:DX("Edge"))return k(["Edge"]);if(AK3())return k(["Edg"]);break;case "Chromium":if(_.IJ())return k(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&JK()||W==="Safari"&&_.Fmm()||W==="Android Browser"&&_.wwm()||W==="Silk"&&DX("Silk")?(k=C[2])&&k[1]||"":""};
_.tp4=function(W){if(VP()&&W!=="Silk"){var k=mm.brands.find(function(C){return C.brand===W});
if(!k||!k.version)return NaN;k=k.version.split(".")}else{k=lX3(W);if(k==="")return NaN;k=k.split(".")}return k.length===0?NaN:Number(k[0])};
MX=function(){return d3?!!mm&&!!mm.platform:!1};
_.EzK=function(){return MX()?mm.platform==="Android":DX("Android")};
aXJ=function(){return DX("iPhone")&&!DX("iPod")&&!DX("iPad")};
_.QP=function(){return aXJ()||DX("iPad")||DX("iPod")};
_.Xwp=function(){return MX()?mm.platform==="macOS":DX("Macintosh")};
_.fXz=function(){return MX()?mm.platform==="Windows":DX("Windows")};
_.dXc=function(){return MX()?mm.platform==="Chrome OS":DX("CrOS")};
_.pI=function(W){return W[W.length-1]};
_.s2=function(W,k,C){k=_.mX4(W,k,C);return k<0?null:typeof W==="string"?W.charAt(k):W[k]};
_.mX4=function(W,k,C){for(var n=W.length,N=typeof W==="string"?W.split(""):W,B=0;B<n;B++)if(B in N&&k.call(C,N[B],B,W))return B;return-1};
zcc=function(W){for(var k=_.yP,C=typeof W==="string"?W.split(""):W,n=W.length-1;n>=0;n--)if(n in C&&k.call(void 0,C[n],n,W))return n;return-1};
_.ZX=function(W,k){return _.$z(W,k)>=0};
_.DXz=function(W,k){_.ZX(W,k)||W.push(k)};
_.iw=function(W,k){k=_.$z(W,k);var C;(C=k>=0)&&_.VpJ(W,k);return C};
_.VpJ=function(W,k){Array.prototype.splice.call(W,k,1)};
_.T4=function(W){var k=W.length;if(k>0){for(var C=Array(k),n=0;n<k;n++)C[n]=W[n];return C}return[]};
_.uw=function(W,k){for(var C=1;C<arguments.length;C++){var n=arguments[C];if(_.qX(n)){var N=W.length||0,B=n.length||0;W.length=N+B;for(var A=0;A<B;A++)W[N+A]=n[A]}else W.push(n)}};
_.cKc=function(W,k,C,n){Array.prototype.splice.apply(W,JKP(arguments,1))};
JKP=function(W,k,C){return arguments.length<=2?Array.prototype.slice.call(W,k):Array.prototype.slice.call(W,k,C)};
IXX=function(W,k){k=k||W;for(var C=0,n=0,N={};n<W.length;){var B=W[n++],A=_.O2(B)?"o"+_.Hw(B):(typeof B).charAt(0)+B;Object.prototype.hasOwnProperty.call(N,A)||(N[A]=!0,k[C++]=B)}k.length=C};
_.MpJ=function(W,k,C){C=C||_.S24;for(var n=0,N=W.length,B;n<N;){var A=n+(N-n>>>1);var w=C(k,W[A]);w>0?n=A+1:(N=A,B=!w)}return B?n:-n-1};
_.g3=function(W,k,C){if(!_.qX(W)||!_.qX(k)||W.length!=k.length)return!1;var n=W.length;C=C||QJ2;for(var N=0;N<n;N++)if(!C(W[N],k[N]))return!1;return!0};
_.S24=function(W,k){return W>k?1:W<k?-1:0};
QJ2=function(W,k){return W===k};
pwJ=function(W,k,C){k=Array.prototype.splice.call(W,k,1);Array.prototype.splice.call(W,C,0,k[0])};
ecP=function(W){return vzw[W]||""};
yKJ=function(W){if(!sJm)return _.Pw(W);W=G4m.test(W)?W.replace(G4m,ecP):W;W=atob(W);for(var k=new Uint8Array(W.length),C=0;C<W.length;C++)k[C]=W.charCodeAt(C);return k};
$XX=function(W,k){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=k};
_.KI=function(W){W=Error(W);$XX(W,"warning");return W};
RcK=function(W,k){if(W!=null){var C;var n=(C=ZIw)!=null?C:ZIw={};C=n[W]||0;C>=k||(n[W]=C+1,W=Error(),$XX(W,"incident"),Yz(W))}};
W8=function(W,k,C){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(C===void 0?0:C)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():k};
T3m=function(W,k){k2||_.B8 in W||ozc(W,iII);W[_.B8]|=k};
bb=function(W,k){k2||_.B8 in W||ozc(W,iII);W[_.B8]=k};
q2J=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
wx=function(W){T3m(W,34);return W};
umI=function(W){T3m(W,32);return W};
x2=function(){return typeof BigInt==="function"};
tS=function(W,k){return k===void 0?W.copyOnWrite!==UXw&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.B8]|0)):!!(2&k)&&W.copyOnWrite!==UXw};
_.JS=function(W,k){if(W!=null)if(typeof W==="string")W=W?new fA(W,dx):_.zz();else if(W.constructor!==fA)if(OIP&&W!=null&&W instanceof Uint8Array)W=W.length?new fA(new Uint8Array(W),dx):_.zz();else{if(!k)throw Error();W=void 0}return W};
Lmc=function(W,k){if(typeof k!=="number"||k<0||k>=W.length)throw Error();};
jJw=function(W,k,C){k=k&128?0:-1;var n=W.length,N;if(N=!!n)N=W[n-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;for(var B=n+(N?-1:0),A=0;A<B;A++)C(A-k,W[A]);if(N){W=W[n-1];for(var w in W)!isNaN(w)&&C(+w,W[w])}};
II=function(W){return W&128?c8:void 0};
_.QY=function(W){return W};
v8=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
rK3=function(){var W=HIm;return v8(function(k){for(var C in W)if(k===W[C]&&!/^[0-9]+$/.test(C))return!0;return!1})};
_.sA=function(W){var k=W;if(gzc(k)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(k))throw Error(String(k));}else if(Pww(k)&&!Number.isSafeInteger(k))throw Error(String(k));return KmX?BigInt(W):W=hc4(W)?W?"1":"0":gzc(W)?W.trim()||"0":String(W)};
Wsm=function(W,k){if(W.length>k.length)return!1;if(W.length<k.length||W===k)return!0;for(var C=0;C<W.length;C++){var n=W[C],N=k[C];if(n>N)return!1;if(n<N)return!0}};
kzK=function(W){var k=W>>>0;Gz=k;yY=(W-k)/4294967296>>>0};
$2=function(W){if(W<0){kzK(-W);var k=_.b(CbI(Gz,yY));W=k.next().value;k=k.next().value;Gz=W>>>0;yY=k>>>0}else kzK(W)};
n22=function(W,k){var C=k*4294967296+(W>>>0);return Number.isSafeInteger(C)?C:_.ZZ(W,k)};
Nxw=function(W,k){var C=k&2147483648;C&&(W=~W+1>>>0,k=~k>>>0,W==0&&(k=k+1>>>0));W=n22(W,k);return typeof W==="number"?C?-W:W:C?"-"+W:W};
_.ZZ=function(W,k){k>>>=0;W>>>=0;if(k<=2097151)var C=""+(4294967296*k+W);else x2()?C=""+(BigInt(k)<<BigInt(32)|BigInt(W)):(C=(W>>>24|k<<8)&16777215,k=k>>16&65535,W=(W&16777215)+C*6777216+k*6710656,C+=k*8147497,k*=2,W>=1E7&&(C+=W/1E7>>>0,W%=1E7),C>=1E7&&(k+=C/1E7>>>0,C%=1E7),C=k+YAX(C)+YAX(W));return C};
YAX=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.Bxp=function(W,k){k&2147483648?x2()?W=""+(BigInt(k|0)<<BigInt(32)|BigInt(W>>>0)):(k=_.b(CbI(W,k)),W=k.next().value,k=k.next().value,W="-"+_.ZZ(W,k)):W=_.ZZ(W,k);return W};
bAJ=function(W){if(W.length<16)$2(Number(W));else if(x2())W=BigInt(W),Gz=Number(W&BigInt(4294967295))>>>0,yY=Number(W>>BigInt(32)&BigInt(4294967295));else{var k=+(W[0]==="-");yY=Gz=0;for(var C=W.length,n=k,N=(C-k)%6+k;N<=C;n=N,N+=6)n=Number(W.slice(n,N)),yY*=1E6,Gz=Gz*1E6+n,Gz>=4294967296&&(yY+=Math.trunc(Gz/4294967296),yY>>>=0,Gz>>>=0);k&&(k=_.b(CbI(Gz,yY)),W=k.next().value,k=k.next().value,Gz=W,yY=k)}};
CbI=function(W,k){k=~k;W?W=~W+1:k+=1;return[W,k]};
RI=function(W){return Array.prototype.slice.call(W)};
_.oI=function(W,k){throw Error(k===void 0?"unexpected value "+W+"!":k);};
_.ib=function(W){if(W!=null&&typeof W!=="number")throw Error("I`"+typeof W+"`"+W);return W};
_.ASw=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
w8J=function(W){if(W!=null&&typeof W!=="boolean")throw Error("J`"+_.Fsm(W)+"`"+W);return W};
_.xSp=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.UA=function(W){switch(typeof W){case "bigint":return!0;case "number":return qS(W);case "string":return lZK.test(W);default:return!1}};
_.OA=function(W){if(!qS(W))throw _.KI("enum");return W|0};
_.rx=function(W){return W==null?W:qS(W)?W|0:void 0};
t8m=function(W){if(typeof W!=="number")throw _.KI("int32");if(!qS(W))throw _.KI("int32");return W|0};
_.gx=function(W){return W==null?W:t8m(W)};
_.P8=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return qS(W)?W|0:void 0};
_.E2p=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return qS(W)?W>>>0:void 0};
dSI=function(W){var k=0;k=k===void 0?0:k;if(!_.UA(W))throw _.KI("int64");var C=typeof W;switch(k){case 512:switch(C){case "string":return KA(W);case "bigint":return String(hS(64,W));default:return aZw(W)}case 1024:switch(C){case "string":return X8z(W);case "bigint":return _.sA(hS(64,W));default:return fZ4(W)}case 0:switch(C){case "string":return KA(W);case "bigint":return _.sA(hS(64,W));default:return WY(W)}default:return _.oI(k,"Unknown format requested type for int64")}};
kB=function(W){return W==null?W:dSI(W)};
mSX=function(W){if(W[0]==="-")return!1;var k=W.length;return k<20?!0:k===20&&Number(W.substring(0,6))<184467};
zC2=function(W){var k=W.length;return W[0]==="-"?k<20?!0:k===20&&Number(W.substring(0,7))>-922337:k<19?!0:k===19&&Number(W.substring(0,6))<922337};
DSX=function(W){if(W<0){$2(W);var k=_.ZZ(Gz,yY);W=Number(k);return YB(W)?W:k}k=String(W);if(mSX(k))return k;$2(W);return n22(Gz,yY)};
V8m=function(W){if(zC2(W))return W;bAJ(W);return _.Bxp(Gz,yY)};
JS3=function(W){if(mSX(W))return W;bAJ(W);return _.ZZ(Gz,yY)};
WY=function(W){W=BY(W);YB(W)||($2(W),W=Nxw(Gz,yY));return W};
_.cSz=function(W){W=BY(W);return W>=0&&YB(W)?W:DSX(W)};
aZw=function(W){W=BY(W);if(YB(W))W=String(W);else{var k=String(W);zC2(k)?W=k:($2(W),W=_.Bxp(Gz,yY))}return W};
_.IZ4=function(W){W=BY(W);if(W>=0&&YB(W))W=String(W);else{var k=String(W);mSX(k)?W=k:($2(W),W=_.ZZ(Gz,yY))}return W};
KA=function(W){var k=BY(Number(W));if(YB(k))return String(k);k=W.indexOf(".");k!==-1&&(W=W.substring(0,k));return V8m(W)};
X8z=function(W){var k=BY(Number(W));if(YB(k))return _.sA(k);k=W.indexOf(".");k!==-1&&(W=W.substring(0,k));return x2()?_.sA(hS(64,BigInt(W))):_.sA(V8m(W))};
fZ4=function(W){return YB(W)?_.sA(WY(W)):_.sA(aZw(W))};
_.SAX=function(W){return YB(W)?_.sA(_.cSz(W)):_.sA(_.IZ4(W))};
_.M82=function(W){var k=BY(Number(W));if(YB(k)&&k>=0)return String(k);k=W.indexOf(".");k!==-1&&(W=W.substring(0,k));return JS3(W)};
_.QIm=function(W){var k=BY(Number(W));if(YB(k)&&k>=0)return _.sA(k);k=W.indexOf(".");k!==-1&&(W=W.substring(0,k));return x2()?_.sA((0,_.bE)(64,BigInt(W))):_.sA(JS3(W))};
p82=function(W,k){k=k===void 0?!1:k;var C=typeof W;if(W==null)return W;if(C==="bigint")return String(hS(64,W));if(_.UA(W))return C==="string"?KA(W):k?aZw(W):WY(W)};
v2J=function(W){if(W==null)return W;var k=typeof W;if(k==="bigint")return String(hS(64,W));if(_.UA(W)){if(k==="string")return KA(W);if(k==="number")return WY(W)}};
eCp=function(W){if(W==null)return W;var k=typeof W;if(k==="bigint")return String((0,_.bE)(64,W));if(_.UA(W)){if(k==="string")return _.M82(W);if(k==="number")return _.cSz(W)}};
_.F6=function(W){if(typeof W!=="string")throw Error();return W};
wZ=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.lE=function(W){return W==null||typeof W==="string"?W:void 0};
Gzm=function(W,k,C,n){if(W!=null&&typeof W==="object"&&W[tt]===a1)return W;if(!Array.isArray(W))return C?n&2?((W=k[sIc])||(W=new k,wx(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),W=k[sIc]=W),k=W):k=new k:k=void 0,k;C=W[_.B8]|0;n=C|n&32|n&2;n!==C&&bb(W,n);return new k(W)};
ySm=function(W,k,C){W=k?t8m(W):_.P8(W);return W==null?C?0:void 0:W|0};
$SJ=function(W){return W};
ZAm=function(W){return W};
o2P=function(W,k,C,n,N,B){W=Gzm(W,n,C,B);N&&(W=RCp(W));return W};
iA2=function(W){return[W,this.get(W)]};
usm=function(){return TxI||(TxI=new X6(wx([]),void 0,void 0,void 0,qAI))};
USm=function(W){var k=f7(dZ);return k?W[k]:void 0};
Lsm=function(W,k){var C=f7(dZ),n;k2&&C&&((n=W[C])==null?void 0:n[k])!=null&&RcK(OAP,3)};
rSm=function(W,k){var C=C===void 0?!1:C;if(f7(jIP)&&f7(dZ)&&void 0===jIP){var n=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=n[dZ];if(!N)return;if(N=N.reviveUnknownFields)try{N(n,k,HAI);return}catch(B){Yz(B)}}C&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(C=f7(dZ))&&C in W&&(W=W[C])&&delete W[k])};
hCw=function(W,k,C,n){var N=n!==void 0;n=!!n;var B=[],A=W.length,w=4294967295,x=!1,E=!!(k&64),a=E?k&128?0:-1:void 0;if(!(k&1)){var X=A&&W[A-1];X!=null&&typeof X==="object"&&X.constructor===Object?(A--,w=A):X=void 0;if(E&&!(k&128)&&!N){x=!0;var d;w=((d=g2P)!=null?d:$SJ)(w-a,a,W,X)+a}}k=void 0;for(d=0;d<A;d++){var V=W[d];if(V!=null&&(V=C(V,n))!=null)if(E&&d>=w){var c=d-a,M=void 0;((M=k)!=null?M:k={})[c]=V}else B[d]=V}if(X)for(var p in X)A=X[p],A!=null&&(A=C(A,n))!=null&&(d=+p,V=void 0,E&&!Number.isNaN(d)&&
(V=d+a)<w?B[V]=A:(d=void 0,((d=k)!=null?d:k={})[p]=A));k&&(x?B.push(k):B[w]=k);N&&f7(dZ)&&(W=USm(W))&&W instanceof Pbp&&(B[dZ]=Ks4(W));return B};
kCw=function(W){W[0]=Wiw(W[0]);W[1]=Wiw(W[1]);return W};
Wiw=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return(0,_.mi)(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var k=W[_.B8]|0;return W.length===0&&k&1?void 0:hCw(W,k,Wiw)}if(W[tt]===a1)return CEc(W);if(W instanceof fA){k=W.JSC$6687_value_;if(k==null)W="";else if(typeof k==="string")W=k;else{if(sJm){for(var C="",n=0,N=k.length-10240;n<N;)C+=String.fromCharCode.apply(null,k.subarray(n,n+=10240));C+=String.fromCharCode.apply(null,
n?k.subarray(n):k);k=btoa(C)}else k=_.zC(k);W=W.JSC$6687_value_=k}return W}if(W instanceof X6)return W=W.size!==0?Array.from(DA.prototype.entries.call(W),kCw):void 0,W;return}return W};
VT=function(W,k){if(k){g2P=k==null||k===$SJ||k[nBJ]!==NZK?$SJ:k;try{return CEc(W)}finally{g2P=void 0}}return CEc(W)};
CEc=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return hCw(W,W[_.B8]|0,Wiw)};
b7X=function(W){switch(typeof W){case "boolean":return YS4||(YS4=[0,void 0,!0]);case "number":return W>0?void 0:W===0?BZm||(BZm=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
Atc=function(W,k,C){return W=_.Jt(W,k[0],k[1],C?1:2)};
_.Jt=function(W,k,C,n){n=n===void 0?0:n;if(W==null){var N=32;C?(W=[C],N|=128):W=[];k&&(N=N&-8380417|(k&1023)<<13)}else{if(!Array.isArray(W))throw Error("L");N=W[_.B8]|0;2048&N&&!(2&N)&&FiP();if(N&256)throw Error("N");if(N&64)return n!==0||N&2048||bb(W,N|2048),W;if(C&&(N|=128,C!==W[0]))throw Error("O");a:{C=W;N|=64;var B=C.length;if(B){var A=B-1,w=C[A];if(w!=null&&typeof w==="object"&&w.constructor===Object){k=N&128?0:-1;A-=k;if(A>=1024)throw Error("Q");for(var x in w)B=+x,B<A&&(C[B+k]=w[x],delete w[x]);
N=N&-8380417|(A&1023)<<13;break a}}if(k){x=Math.max(k,B-(N&128?0:-1));if(x>1024)throw Error("R");N=N&-8380417|(x&1023)<<13}}}N|=64;n===0&&(N|=2048);bb(W,N);return W};
FiP=function(){RcK(wYw,5)};
t7m=function(W,k){if(typeof W!=="object")return W;if(Array.isArray(W)){var C=W[_.B8]|0;return W.length===0&&C&1?void 0:xuX(W,C,k)}if(W[tt]===a1)return lAI(W);if(W instanceof X6){k=W.arrayState;if(k&2)return W;if(!W.size)return;C=wx(Array.from(DA.prototype.entries.call(W)));if(W.valueCtor)for(W=0;W<C.length;W++){var n=C[W],N=n[1];N==null||typeof N!=="object"?N=void 0:N[tt]===a1?N=lAI(N):Array.isArray(N)?N=xuX(N,N[_.B8]|0,!!(k&32)):N=void 0;n[1]=N}return C}if(W instanceof fA)return W};
xuX=function(W,k,C){if(k&2)return W;!C||4096&k||16&k?W=S7(W,k,!1,C&&!(k&16)):(T3m(W,34),k&4&&Object.freeze(W));return W};
lAI=function(W){var k=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=k[_.B8]|0;return tS(W,C)?W:S7(k,C)};
S7=function(W,k,C,n){n!=null||(n=!!(34&k));W=hCw(W,k,t7m,n);n=32;C&&(n|=2);k=k&8380609|n;bb(W,k);return W};
RCp=function(W){var k=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=k[_.B8]|0;return tS(W,C)?new W.constructor(S7(k,C,!1)):W};
Mu=function(W){if(W.copyOnWrite!==UXw)return!1;var k=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;k=S7(k,k[_.B8]|0);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=k;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
QT=function(W){if(!Mu(W)&&tS(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.B8]|0))throw Error();};
p7=function(W,k,C,n,N){var B=C+(N?0:-1),A=W.length-1;if(A>=1+(N?0:-1)&&B>=A){var w=W[A];if(w!=null&&typeof w==="object"&&w.constructor===Object)return w[C]=n,k}if(B<=A)return W[B]=n,k;if(n!==void 0){var x;A=((x=k)!=null?x:k=W[_.B8]|0)>>13&1023||536870912;C>=A?n!=null&&(B={},W[A+(N?0:-1)]=(B[C]=n,B)):W[B]=n}return k};
_.sS=function(W,k,C,n,N){var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=B[_.B8]|0;n=tS(W,A)?1:n;N=!!N||n===3;n===2&&Mu(W)&&(B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=B[_.B8]|0);W=EBJ(B,k);var w=W===vY?7:W[_.B8]|0,x=aA2(w,A);var E=4&x?!1:!0;if(E){4&x&&(W=RI(W),w=0,x=e7(x,A),A=p7(B,A,k,W));for(var a=0,X=0;a<W.length;a++){var d=C(W[a]);d!=null&&(W[X++]=d)}X<a&&(W.length=X);C=(x|4)&-513;x=C&=-1025;x&=-4097}x!==w&&(bb(W,x),2&x&&Object.freeze(W));return W=XYm(W,x,B,
A,k,n,E,N)};
XYm=function(W,k,C,n,N,B,A,w){var x=k;B===1||(B!==4?0:2&k||!(16&k)&&32&n)?GC(k)||(k|=!W.length||A&&!(4096&k)||32&n&&!(4096&k||16&k)?2:256,k!==x&&bb(W,k),Object.freeze(W)):(B===2&&GC(k)&&(W=RI(W),x=0,k=e7(k,n),p7(C,n,N,W)),GC(k)||(w||(k|=16),k!==x&&bb(W,k)));return W};
EBJ=function(W,k,C){W=yT(W,k,C);return Array.isArray(W)?W:vY};
aA2=function(W,k){2&k&&(W|=2);return W|1};
GC=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
fAI=function(W){return _.JS(W,!0)};
duw=function(W,k){var C=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=C[_.B8]|0;a:{var N=n;n=tS(W,n);!n&&Mu(W)&&(C=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=C[_.B8]|0);var B=yT(C,k);W=!1;if(B==null){if(n){k=usm();break a}B=[]}else if(B.constructor===X6)if(B.arrayState&2&&!n)B=Array.from(DA.prototype.entries.call(B));else{k=B;break a}else Array.isArray(B)?W=!!((B[_.B8]|0)&2):B=[];if(n){if(!B.length){k=usm();break a}W||(W=!0,wx(B))}else if(W){W=!1;n=B;n=RI(n);for(B=0;B<
n.length;B++){var A=n[B]=RI(n[B]);Array.isArray(A[1])&&(A[1]=wx(A[1]))}B=n}!W&&N&32&&umI(B);W=new X6(B,void 0,ySm,ySm);p7(C,N,k,W);k=W}return k};
_.$B=function(W,k,C,n){QT(W);var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.B8]|0;if(C==null)return p7(N,B,k),W;var A=C===vY?7:C[_.B8]|0,w=A,x=GC(A),E=x||Object.isFrozen(C);x||(A=0);E||(C=RI(C),w=0,A=e7(A,B),E=!1);A|=5;var a;x=(a=q2J(A))!=null?a:0;for(a=0;a<C.length;a++){var X=C[a],d=n(X,x);Object.is(X,d)||(E&&(C=RI(C),w=0,A=e7(A,B),E=!1),C[a]=d)}A!==w&&(E&&(C=RI(C),A=e7(A,B)),bb(C,A));p7(N,B,k,C);return W};
_.ZA=function(W,k,C,n,N){QT(W);var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p7(B,B[_.B8]|0,k,(n==="0"?Number(C)===0:C===n)?void 0:C,N);return W};
_.muJ=function(W,k,C){if(k&2)throw Error();var n=II(k),N=EBJ(W,C,n),B=N===vY?7:N[_.B8]|0,A=aA2(B,k);if(2&A||GC(A)||16&A)N=RI(N),B=0,A=e7(A,k),p7(W,k,C,N,n);A&=-13;A!==B&&bb(N,A);return N};
z$m=function(W){if(k2){var k;return(k=W[o1])!=null?k:W[o1]=new Map}if(o1 in W)return W[o1];k=new Map;Object.defineProperty(W,o1,{value:k});return k};
V7m=function(W,k,C,n,N){var B=z$m(W),A=Dum(B,W,k,C,N);A!==n&&(A&&(k=p7(W,k,A,void 0,N)),B.set(C,n));return k};
Dum=function(W,k,C,n,N){var B=W.get(n);if(B!=null)return B;for(var A=B=0;A<n.length;A++){var w=n[A];yT(k,w,N)!=null&&(B!==0&&(C=p7(k,C,B,void 0,N)),B=w)}W.set(n,B);return B};
JtP=function(W,k,C,n,N){W=yT(W,n,N,function(B){return Gzm(B,C,!1,k)});
if(W!=null)return W};
ctw=function(W,k,C,n,N,B,A,w){var x=tS(W,C);B=x?1:B;A=!!A||B===3;x=w&&!x;(B===2||x)&&Mu(W)&&(k=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=k[_.B8]|0);W=EBJ(k,N);var E=W===vY?7:W[_.B8]|0,a=aA2(E,C);if(w=!(4&a)){var X=W,d=C,V=!!(2&a);V&&(d|=2);for(var c=!V,M=!0,p=0,e=0;p<X.length;p++){var u=Gzm(X[p],n,!1,d);if(u instanceof n){if(!V){var h=tS(u);c&&(c=!h);M&&(M=h)}X[e++]=u}}e<p&&(X.length=e);a|=4;a=M?a&-4097:a|4096;a=c?a|8:a&-9}a!==E&&(bb(W,a),2&a&&Object.freeze(W));if(x&&!(8&a||!W.length&&
(B===1||(B!==4?0:2&a||!(16&a)&&32&C)))){GC(a)&&(W=RI(W),a=e7(a,C),C=p7(k,C,N,W));n=W;x=a;for(E=0;E<n.length;E++)X=n[E],a=RCp(X),X!==a&&(n[E]=a);x|=8;a=x=n.length?x|4096:x&-4097;bb(W,a)}return W=XYm(W,a,k,C,N,B,w,A)};
IAm=function(W){W==null&&(W=void 0);return W};
e7=function(W,k){return W=(2&k?W|2:W&-3)&-273};
_.SSm=function(W,k,C,n,N){QT(W);k=_.sS(W,k,N,2,!0);var B;N=(B=q2J(k===vY?7:k[_.B8]|0))!=null?B:0;k.push(C(n,N));return W};
M7I=function(W,k,C,n,N,B,A){QT(W);var w=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=ctw(W,w,w[_.B8]|0,C,k,2,!0);if(B&&A)N!=null||(N=W.length-1),Lmc(W,N),W.splice(N,B),W.length||(W[_.B8]&=-4097);else{if(B){if(typeof N!=="number"||N<0||N>W.length)throw Error();}else n=n!=null?n:new C;N!=void 0?W.splice(N,B,n):W.push(n);N=C=W===vY?7:W[_.B8]|0;tS(n)?(C&=-9,W.length===1&&(C&=-4097)):C|=4096;C!==N&&bb(W,C)}};
pYw=function(W,k){if(typeof W==="string")return new iE(yKJ(W),k);if(Array.isArray(W))return new iE(new Uint8Array(W),k);if(W.constructor===Uint8Array)return new iE(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new iE(W,!1);if(W.constructor===fA)return k=Q12(W)||new Uint8Array(0),new iE(k,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new iE(W,!1);throw Error();};
_.TC=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
e$w=function(W,k){var C=C===void 0?vBz:C;return new qu(W,k,C)};
$um=function(W,k,C,n,N){k=s13(k,n);k!=null&&(C=_.GCz(W,C),N(k,W),_.ytm(W,C))};
uE=function(W,k,C,n){var N=n[W];if(N)return N;N={};N.binaryFields=n;N.messageMetadata=b7X(n[0]);var B=n[1],A=1;B&&B.constructor===Object&&(N.extensions=B,B=n[++A],typeof B==="function"&&(N.isMessageSet=!0,Z7p!=null||(Z7p=B),R$J!=null||(R$J=n[A+1]),B=n[A+=2]));for(var w={};B&&Array.isArray(B)&&B.length&&typeof B[0]==="number"&&B[0]>0;){for(var x=0;x<B.length;x++)w[B[x]]=B;B=n[++A]}for(x=1;B!==void 0;){typeof B==="number"&&(x+=B,B=n[++A]);var E=void 0;if(B instanceof qu)var a=B;else a=oB3,A--;B=void 0;
if((B=a)==null?0:B.$$isMsg){B=n[++A];E=n;var X=A;typeof B==="function"&&(B=B(),E[X]=B);E=B}B=n[++A];X=x+1;typeof B==="number"&&B<0&&(X-=B,B=n[++A]);for(;x<X;x++){var d=w[x];E?C(N,x,a,E,d):k(N,x,a,d)}}return n[W]=N};
TZP=function(W){return Array.isArray(W)?W[0]instanceof qu?W:[i7J,W]:[W,void 0]};
s13=function(W,k){if(W instanceof _.US)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return Atc(W,k,!1)};
qS2=function(W,k,C,n){var N=C.$$binaryReaderFn;W[k]=n?function(B,A,w){return N(B,A,w,n)}:N};
Uum=function(W,k,C,n,N){var B=C.$$binaryReaderFn,A,w;W[k]=function(x,E,a){return B(x,E,a,w||(w=uE(u6m,qS2,Uum,n).messageMetadata),A||(A=O7X(n)),N)}};
O7X=function(W){var k=W[Lip];if(k!=null)return k;var C=uE(u6m,qS2,Uum,W);k=C.isMessageSet?function(n,N){return Z7p(n,N,C)}:function(n,N){for(;j1K(N)&&N.nextWireType_!=4;){var B=N.nextField_,A=C[B];
if(A==null){var w=C.extensions;w&&(w=w[B])&&(w=H7P(w),w!=null&&(A=C[B]=w))}if(A==null||!A(N,n,B)){w=N;A=w.fieldCursor_;rtp(w);if(w.discardUnknownFields)var x=void 0;else{var E=w.decoder_.cursor_-A;w.decoder_.cursor_=A;x=gB3(w.decoder_,E)}E=w=A=void 0;var a=n;x&&((A=(w=(E=a[dZ])!=null?E:a[dZ]=new Pbp)[B])!=null?A:w[B]=[]).push(x)}}if(n=USm(n))n.reviveUnknownFields=C.binaryFields[PEI];return!0};
W[Lip]=k;W[PEI]=KiP.bind(W);return k};
KiP=function(W,k,C,n){var N=this[u6m],B=this[Lip],A=Atc(void 0,N.messageMetadata,!1),w=USm(W);if(w){var x=!1,E=N.extensions;if(E){N=function(c,M,p){if(p.length!==0)if(E[M])for(c=_.b(p),M=c.next();!M.done;M=c.next()){M=h$m(M.value);try{x=!0,B(A,M)}finally{M.free()}}else n==null||n(W,M,p)};
if(k==null)W_J(w,N);else if(w!=null){var a=w[k];a&&N(w,k,a)}if(x){var X=W[_.B8]|0;if(X&2&&X&2048&&(C==null||!C.reviveIntoImmutable))throw Error();var d=II(X),V=function(c,M){if(yT(W,c,d)!=null)switch(C==null?void 0:C.resolutionBehavior){case 1:return;default:throw Error();}M!=null&&(X=p7(W,X,c,M,d));delete w[c]};
k==null?jJw(A,A[_.B8]|0,function(c,M){V(c,M)}):V(k,yT(A,k,d))}}}};
H7P=function(W){W=TZP(W);var k=W[0].$$binaryReaderFn;if(W=W[1]){var C=O7X(W),n=uE(u6m,qS2,Uum,W).messageMetadata;return function(N,B,A){return k(N,B,A,n,C)}}return k};
ki2=function(W,k,C){W[k]=C.$$binaryWriterFn};
n3z=function(W,k,C,n){var N,B,A=C.$$binaryWriterFn;W[k]=function(w,x,E){return A(w,x,E,B||(B=uE(C53,ki2,n3z,n).messageMetadata),N||(N=NjI(n)))}};
NjI=function(W){var k=W[YzX];if(!k){var C=uE(C53,ki2,n3z,W);k=function(n,N){return Bjp(n,N,C)};
W[YzX]=k}return k};
Bjp=function(W,k,C){jJw(W,W[_.B8]|0,function(n,N){if(N!=null){var B=bLm(C,n);B&&B(k,N,n)}});
(W=USm(W))&&W_J(W,function(n,N,B){OS(k,k.encoder_.end());for(n=0;n<B.length;n++)OS(k,Q12(B[n])||new Uint8Array(0))})};
bLm=function(W,k){var C=W[k];if(C)return C;if(C=W.extensions)if(C=C[k]){C=TZP(C);var n=C[0].$$binaryWriterFn;if(C=C[1]){var N=NjI(C),B=uE(C53,ki2,n3z,C).messageMetadata;C=W.isMessageSet?R$J(B,N):function(A,w,x){return n(A,w,x,B,N)}}else C=n;
return W[k]=C}};
_.AoI=function(W,k,C){if(Array.isArray(k)){var n=k[_.B8]|0;if(n&4)return k;for(var N=0,B=0;N<k.length;N++){var A=W(k[N]);A!=null&&(k[B++]=A)}B<N&&(k.length=B);C&&(bb(k,(n|5)&-1537),n&2&&Object.freeze(k));return k}};
_.j7=function(W,k,C){return new qu(W,k,C)};
_.F_p=function(W,k,C){return new qu(W,k,C)};
_.HY=function(W,k,C){p7(W,W[_.B8]|0,k,C,II(W[_.B8]|0))};
xaK=function(W,k,C){k=_.ASw(k);k!=null&&(_.rZ(W,C,1),W=W.encoder_,C=w6I||(w6I=new DataView(new ArrayBuffer(8))),C.setFloat64(0,+k,!0),Gz=C.getUint32(0,!0),yY=C.getUint32(4,!0),_.PY(W,Gz),_.PY(W,yY))};
_.K7=function(W,k,C){k=v2J(k);if(k!=null){switch(typeof k){case "string":ll3(k)}if(k!=null)switch(_.rZ(W,C,0),typeof k){case "number":W=W.encoder_;$2(k);tNP(W,Gz,yY);break;case "bigint":C=BigInt.asUintN(64,k);C=new E3I(Number(C&BigInt(4294967295)),Number(C>>BigInt(32)));tNP(W.encoder_,C.JSC$6744_lo,C.JSC$6744_hi);break;default:C=ll3(k),tNP(W.encoder_,C.JSC$6744_lo,C.JSC$6744_hi)}}};
X6c=function(W,k,C){k=_.P8(k);k!=null&&k!=null&&(_.rZ(W,C,0),_.alw(W.encoder_,k))};
_.daI=function(W,k,C){flP(W,C,eCp(k))};
_.map=function(W,k,C){k=_.xSp(k);k!=null&&(_.rZ(W,C,0),W.encoder_.JSC$6746_buffer_.push(k?1:0))};
_.Da3=function(W,k,C){k=_.lE(k);k!=null&&zrm(W,C,N3J(k))};
VNw=function(W,k,C,n,N){k=s13(k,n);k!=null&&(C=_.GCz(W,C),N(k,W),_.ytm(W,C))};
_.JoX=function(W,k,C){k=k==null||typeof k=="string"||k instanceof fA?k:void 0;k!=null&&zrm(W,C,pYw(k,!0).buffer)};
_.cow=function(W,k,C){k=_.P8(k);k!=null&&(k=parseInt(k,10),_.rZ(W,C,0),_.alw(W.encoder_,k))};
_.ht=function(W,k){return function(C,n){var N={treatNewDataAsImmutable:!0};n&&Object.assign(N,n);C=h$m(C,void 0,void 0,N);try{var B=new W,A=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O7X(k)(A,C);var w=B}finally{C.free()}return w}};
_.W6=function(W){return function(k){return IlP(k,W)}};
Szc=function(W){return function(){return IlP(this,W)}};
_.MNX=function(W){return v8(function(k){return k instanceof W&&!tS(k)})};
_.nL=function(W){return function(k){return QeX(W,k)}};
seX=function(W,k){return p6c({child:W,origin:k||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:v3K,getPayloadCase:function(C){return C.getPayloadCase()},
createInitMessage:function(C){var n=new Na,N=new erX;C=_.B6(N,1,C);return _.b5(n,5,Ao,C)}})};
wj=function(W){return{valueOf:W}.valueOf()};
yoI=function(){var W=null;if(!Gic)return W;try{var k=function(C){return C};
W=Gic.createPolicy("goog#html",{createHTML:k,createScript:k,createScriptURL:k})}catch(C){}return W};
ZL3=function(){$a3===void 0&&($a3=yoI());return $a3};
_.to=function(W){var k=ZL3();W=k?k.createScriptURL(W):W;return new l5(W)};
_.Ez=function(W){if(W instanceof l5)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
RrK=function(W){return W.toString().indexOf("`")===-1};
fL=function(W){return new _.X7(o34,W)};
Dl=function(W){return W instanceof _.X7};
_.VG=function(W){if(Dl(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
c6=function(W){return new iLw(function(k){return k.substr(0,W.length+1).toLowerCase()===W+":"})};
SN=function(W,k){k=k===void 0?TjJ:k;if(Dl(W))return W;for(var C=0;C<k.length;++C){var n=k[C];if(n instanceof iLw&&n.isValid(W))return fL(W)}};
_.QG=function(W,k){k=k===void 0?TjJ:k;return SN(W,k)||Ma};
_.pL=function(W){var k=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof k.ManagedMediaSource!=="undefined"&&W instanceof k.ManagedMediaSource)return fL(URL.createObjectURL(W));k=W.type;k.toLowerCase()==="application/octet-stream"?k=!0:(k=k.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),k=(k==null?void 0:k.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(k[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(k[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(k[1])||/^font\/[\w-]+$/i.test(k[1])));if(!k)throw Error("da");return fL(URL.createObjectURL(W))};
_.eN=function(W){for(var k=_.v6.apply(1,arguments),C=[W[0]],n=0;n<k.length;n++)C.push(String(k[n])),C.push(W[n+1]);return fL(C.join(""))};
_.u7I=function(W){if(!qzm){a:{var k=document.createElement("a");try{k.href=W}catch(C){W=void 0;break a}W=k.protocol;W=W===":"||W===""?"https:":W}return W}try{k=new URL(W)}catch(C){return"https:"}return k.protocol};
_.sz=function(W){W instanceof _.X7?W=_.VG(W):W=Uam.test(W)?W:void 0;return W};
Gi=function(W,k){k=_.sz(k);k!==void 0&&(W.href=k)};
$3=function(W){var k=ZL3();W=k?k.createHTML(W):W;return new yG(W)};
Zl=function(W){if(W instanceof yG)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.i5=function(W,k){W.src=_.Ez(k).toString()};
OLI=function(W,k){W.setAttribute("sandbox","");for(var C=0;C<k.length;C++)W.sandbox.supports&&!W.sandbox.supports(k[C])||W.sandbox.add(k[C])};
_.jew=function(W,k,C){W.removeAttribute("srcdoc");switch(k){case 0:if(C instanceof l5)throw new L_X("TrustedResourceUrl",0);OLI(W,[]);k=_.sz(C);k!==void 0&&(W.src=k);break;case 1:if(!(C instanceof l5))throw new L_X(typeof C,1);OLI(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.i5(W,C);break;case 2:if(C instanceof l5)throw new L_X("TrustedResourceUrl",2);OLI(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
k=_.sz(C);k!==void 0&&(W.src=k);break;default:_.oI(k)}};
_.Ti=function(W,k,C,n){k=_.sz(k);return k!==void 0?W.open(k,C,n):null};
_.qa=function(W){W=W===void 0?document:W;var k,C;W=(C=(k=W).querySelector)==null?void 0:C.call(k,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.Uz=function(W){var k=ZL3();W=k?k.createScript(W):W;return new _.u5(W)};
HL2=function(W){if(W instanceof _.u5)return W.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
ro3=function(W){var k=_.qa(W.ownerDocument);k&&W.setAttribute("nonce",k)};
_.Oz=function(W,k){W.textContent=HL2(k);ro3(W)};
_.LL=function(W,k){W.src=_.Ez(k);ro3(W)};
_.jN=function(W,k){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("da");W.innerHTML=Zl(k)};
_.H6=function(W,k,C,n){if(W.length===0)throw Error("da");W=W.map(function(B){if(B instanceof g3p)B=B.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return B});
var N=C.toLowerCase();if(W.every(function(B){return N.indexOf(B)!==0}))throw Error("ea`"+C);
k.setAttribute(C,n)};
_.rj=function(W,k,C){if(k instanceof l5)W.href=_.Ez(k).toString(),W.rel=C;else{if(P5w.indexOf(C)===-1)throw Error("fa`"+C);k=_.sz(k);k!==void 0&&(W.href=k,W.rel=C)}};
K_z=function(W){return"function"==typeof _.P6&&W instanceof _.P6};
_.hrz=function(W){if(K_z(W))return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.WRw=function(W,k){k=_.sz(k);k!==void 0&&(W.href=k)};
ktp=function(W,k){W&&(k=W.indexOf(k),0<=k&&W.splice(k,1))};
KL=function(W){return typeof W==="function"};
CMw=function(W){return W instanceof ho||W&&"closed"in W&&KL(W.remove)&&KL(W.add)&&KL(W.unsubscribe)};
WX=function(){};
kO=function(W){nOc(function(){throw W;})};
Cg=function(W){return W};
N9=function(){return NTI(_.v6.apply(0,arguments))};
NTI=function(W){return W.length===0?Cg:W.length===1?W[0]:function(k){return W.reduce(function(C,n){return n(C)},k)}};
YFp=function(W){var k;return(k=W!=null?W:void 0)!=null?k:Promise};
BTI=function(W,k){return new YO(function(C){var n=0;return k.schedule(function(){n===W.length?C.complete():(C.next(W[n++]),C.closed||this.schedule())})})};
bgX=function(W,k){if(!W)throw Error("ga");return new YO(function(C){var n=new ho;n.add(k.schedule(function(){var N=W[Symbol.asyncIterator]();n.add(k.schedule(function(){var B=this;N.next().then(function(A){A.done?C.complete():(C.next(A.value),B.schedule())})}))}));
return n})};
A8p=function(W,k,C){k=k.schedule(function(){try{C.call(this)}catch(n){W.error(n)}},0);
W.add(k)};
wXc=function(W,k){return new YO(function(C){var n;C.add(k.schedule(function(){n=W[FRX]();A8p(C,k,function(){var N=n.next(),B=N.value;N.done?C.complete():(C.next(B),this.schedule())})}));
return function(){var N;return KL((N=n)==null?void 0:N.return)&&n.return()}})};
x9P=function(W,k){return new YO(function(C){var n=new ho;n.add(k.schedule(function(){var N=W[BX]();n.add(N.subscribe({next:function(B){n.add(k.schedule(function(){return C.next(B)}))},
error:function(B){n.add(k.schedule(function(){return C.error(B)}))},
complete:function(){n.add(k.schedule(function(){return C.complete()}))}}))}));
return n})};
lem=function(W,k){return new YO(function(C){return k.schedule(function(){return W.then(function(n){C.add(k.schedule(function(){C.next(n);C.add(k.schedule(function(){return C.complete()}))}))},function(n){C.add(k.schedule(function(){return C.error(n)}))})})})};
tim=function(W){return new TypeError("ha`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
aem=function(W,k){if(W!=null){if(KL(W[BX]))return x9P(W,k);if(EOm(W))return BTI(W,k);if(KL(W==null?void 0:W.then))return lem(W,k);if(Symbol.asyncIterator&&KL(W==null?void 0:W[Symbol.asyncIterator]))return bgX(W,k);if(KL(W==null?void 0:W[FRX]))return wXc(W,k)}throw tim(W);};
A8=function(W,k){return k?aem(W,k):bM(W)};
bM=function(W){if(W instanceof YO)return W;if(W!=null){if(KL(W[BX]))return XXm(W);if(EOm(W))return fe4(W);if(KL(W==null?void 0:W.then))return d9I(W);if(Symbol.asyncIterator&&KL(W==null?void 0:W[Symbol.asyncIterator]))return m9w(W);if(KL(W==null?void 0:W[FRX]))return zaK(W)}throw tim(W);};
XXm=function(W){return new YO(function(k){var C=W[BX]();if(KL(C.subscribe))return C.subscribe(k);throw new TypeError("ia");})};
fe4=function(W){return new YO(function(k){for(var C=0;C<W.length&&!k.closed;C++)k.next(W[C]);k.complete()})};
d9I=function(W){return new YO(function(k){W.then(function(C){k.closed||(k.next(C),k.complete())},function(C){return k.error(C)}).then(null,kO)})};
zaK=function(W){return new YO(function(k){for(var C=W[FRX]();!k.closed;){var n=C.next(),N=n.value;n.done?k.complete():k.next(N)}return function(){return KL(C==null?void 0:C.return)&&C.return()}})};
m9w=function(W){return new YO(function(k){D92(W,k).catch(function(C){return k.error(C)})})};
D92=function(W,k){var C,n,N,B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:_.F0(x,2,3);var E=W[Symbol.asyncIterator];B=E!==void 0?E.call(W):new Vi4(_.b(W));case 5:return _.l(x,B.next(),8);case 8:n=x.yieldResult;if(n.done){x.jumpTo(3);break}A=n.value;k.next(A);x.jumpTo(5);break;case 3:_.xO(x);_.lM(x,9);if(!n||n.done||!(N=B.return)){x.jumpTo(9);break}return _.l(x,N.call(B),9);case 9:_.xO(x,0,0,1);if(C)throw C.error;_.t8(x,10,1);break;case 10:_.t8(x,4);break;case 2:w=_.EF(x);C={error:w};x.jumpTo(3);
break;case 4:k.complete(),_.ab(x)}})};
J8P=function(W,k){return k?BTI(W,k):fe4(W)};
c8m=function(W){return KL(W[W.length-1])?W.pop():void 0};
X0=function(W){var k=W[W.length-1];return k&&KL(k.schedule)?W.pop():void 0};
fg=function(){var W=_.v6.apply(0,arguments),k=X0(W);return k?BTI(W,k):J8P(W)};
dT=function(W){var k=KL(W)?W:function(){return W};
return new YO(function(C){return C.error(k())})};
mR=function(W){return function(k){if(KL(k==null?void 0:k.lift))return k.lift(function(C){try{return W(C,this)}catch(n){this.error(n)}});
throw new TypeError("ja");}};
De=function(){return mR(function(W,k){var C=null;W._refCount++;var n=new zt(k,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)C=null;else{var N=W._connection,B=C;C=null;!N||B&&N!==B||N.unsubscribe();k.unsubscribe()}});
W.subscribe(n);n.closed||(C=W.connect())})};
SFX=function(){var W=Ie2;var k=k===void 0?0:k;return mR(function(C,n){n.add(W.schedule(function(){return C.subscribe(n)},k))})};
V2=function(W){return mR(function(k,C){var n=0;k.subscribe(new zt(C,function(N){C.next(W.call(void 0,N,n++))}))})};
Qb2=function(W){return V2(function(k){return MiX(k)?W.apply(null,_.J8(k)):W(k)})};
GtX=function(W){if(W.length===1){var k=W[0];if(pX3(k))return{args:k,keys:null};if(k&&typeof k==="object"&&vOz(k)===eap)return W=sb3(k),{args:W.map(function(C){return k[C]}),
keys:W}}return{args:W,keys:null}};
Ib=function(){var W=_.v6.apply(0,arguments),k=X0(W),C=c8m(W);W=GtX(W);var n=W.args,N=W.keys;if(n.length===0)return A8([],k);k=new YO(y82(n,k,N?function(B){for(var A={},w=0;w<B.length;w++)A[N[w]]=B[w];return A}:Cg));
return C?k.pipe(Qb2(C)):k};
y82=function(W,k,C){C=C===void 0?Cg:C;return function(n){$9P(k,function(){for(var N=W.length,B=Array(N),A=N,w=W.map(function(){return!1}),x=!0,E={i$jscomp$260:0};E.i$jscomp$260<N;E={i$jscomp$260:E.i$jscomp$260},E.i$jscomp$260++)$9P(k,function(a){return function(){A8(W[a.i$jscomp$260],k).subscribe(new Si(n,function(X){B[a.i$jscomp$260]=X;
x&&(w[a.i$jscomp$260]=!0,x=!w.every(Cg));x||n.next(C(B.slice()))},function(){return--A===0}))}}(E),n)},n)}};
$9P=function(W,k,C){W?C.add(W.schedule(k)):k()};
Zgc=function(W,k,C,n){var N=[],B=0,A=0,w=!1,x=function(E){B++;bM(C(E,A++)).subscribe(new zt(k,function(a){k.next(a)},void 0,function(){B--;
for(var a={};N.length&&B<n;a={bufferedValue:void 0})a.bufferedValue=N.shift(),x(a.bufferedValue);!w||N.length||B||k.complete()}))};
W.subscribe(new zt(k,function(E){return B<n?x(E):N.push(E)},void 0,function(){w=!0;
!w||N.length||B||k.complete()}));
return function(){N=null}};
M9=function(W,k){var C=C===void 0?Infinity:C;if(KL(k))return M9(function(n,N){return V2(function(B,A){return k(n,B,N,A)})(bM(W(n,N)))},C);
typeof k==="number"&&(C=k);return mR(function(n,N){return Zgc(n,N,W,C)})};
Ram=function(W){W=W===void 0?Infinity:W;return M9(Cg,W)};
oOw=function(){var W=_.v6.apply(0,arguments);return Ram(1)(J8P(W,X0(W)))};
igI=function(W){return new YO(function(k){bM(W()).subscribe(k)})};
Q2=function(W,k,C){if(KL(C)){var n=C;C=void 0}if(n)return Q2(W,k,C).pipe(Qb2(n));n=_.b(KL(W.addEventListener)&&KL(W.removeEventListener)?TT3.map(function(A){return function(w){return W[A](k,w,C)}}):KL(W.addListener)&&KL(W.removeListener)?qFX.map(u0I(W,k)):KL(W.on)&&KL(W.off)?U9m.map(u0I(W,k)):[]);
var N=n.next().value,B=n.next().value;return!N&&EOm(W)?M9(function(A){return Q2(A,k,C)})(J8P(W)):new YO(function(A){if(!N)throw new TypeError("ka");
var w=function(){var x=_.v6.apply(0,arguments);return A.next(1<x.length?x:x[0])};
N(w);return function(){return B(w)}})};
u0I=function(W,k){return function(C){return function(n){return W[C](k,n)}}};
vX=function(){var W=_.v6.apply(0,arguments),k=X0(W);var C=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?bM(W[0]):Ram(C)(J8P(W,k)):pg};
LRz=function(W){return W.length===1&&Ogz(W[0])?W[0]:W};
jbz=function(){var W=LRz(_.v6.apply(0,arguments));return mR(function(k,C){var n=[k].concat(_.J8(W)),N=function(){if(!C.closed)if(n.length>0){try{var B=bM(n.shift())}catch(w){N();return}var A=new zt(C,void 0,WX,WX);C.add(B.subscribe(A));A.add(N)}else C.complete()};
N()})};
ei=function(W){return mR(function(k,C){var n=0;k.subscribe(new zt(C,function(N){return W.call(void 0,N,n++)&&C.next(N)}))})};
r8I=function(){var W=_.v6.apply(0,arguments);W=LRz(W);return W.length===1?bM(W[0]):new YO(Hgw(W))};
Hgw=function(W){return function(k){for(var C=[],n={i$jscomp$263:0};C&&!k.closed&&n.i$jscomp$263<W.length;n={i$jscomp$263:n.i$jscomp$263},n.i$jscomp$263++)C.push(bM(W[n.i$jscomp$263]).subscribe(new zt(k,function(N){return function(B){if(C){for(var A=0;A<C.length;A++)A!==N.i$jscomp$263&&C[A].unsubscribe();C=null}k.next(B)}}(n))))}};
gOJ=function(){var W=_.v6.apply(0,arguments),k=c8m(W),C=LRz(W);return C.length?new YO(function(n){var N=C.map(function(){return[]}),B=C.map(function(){return!1});
n.add(function(){N=B=null});
for(var A={sourceIndex$jscomp$1:0};!n.closed&&A.sourceIndex$jscomp$1<C.length;A={sourceIndex$jscomp$1:A.sourceIndex$jscomp$1},A.sourceIndex$jscomp$1++)bM(C[A.sourceIndex$jscomp$1]).subscribe(new zt(n,function(w){return function(x){N[w.sourceIndex$jscomp$1].push(x);N.every(function(E){return E.length})&&(x=N.map(function(E){return E.shift()}),n.next(k?k.apply(null,_.J8(x)):x),N.some(function(E,a){return!E.length&&B[a]})&&n.complete())}}(A),void 0,function(w){return function(){B[w.sourceIndex$jscomp$1]=
!0;
!N[w.sourceIndex$jscomp$1].length&&n.complete()}}(A)));
return function(){N=B=null}}):pg};
PMP=function(W){var k,C,n;return!!W&&typeof W.active==="boolean"&&typeof((k=W.clock)==null?void 0:k.now)==="function"&&((C=W.clock)==null?void 0:C.timeline)!==void 0&&!((n=W.lastMeasurement)==null||!n.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
KRJ=function(W){function k(C){return typeof C==="boolean"||typeof C==="string"||typeof C==="number"||C===void 0||C===null}
return k(W)?!0:Array.isArray(W)?W.every(k):typeof W==="object"?Object.keys(W).every(function(C){return typeof C==="string"})&&Object.values(W).every(function(C){return Array.isArray(C)?C.every(k):k(C)}):!1};
ha2=function(W){if(KRJ(W))return W;if(PMP(W))return{lastMeasurement:{value:ha2(W.lastMeasurement.value),timestamp:sF(W.lastMeasurement.timestamp,new Gt(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(k){}return String(W)};
y2=function(W,k){return function(C){return new YO(function(n){return C.subscribe(function(N){W.timeExecution(k,function(){n.next(N)})()},function(N){W.timeExecution(k,function(){n.error(N)})()},function(){W.timeExecution(k,function(){n.complete()})()})})}};
WDJ=function(W,k){var C=!1;return new YO(function(n){var N=W.setTimeout(function(){C=!0;n.next(!0);n.complete()},k);
return function(){C||W.clearTimeout(N)}})};
kl4=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
$O=function(W){return mR(function(k,C){var n=null,N=!1,B;n=k.subscribe(new zt(C,void 0,function(A){B=bM(W(A,$O(W)(k)));n?(n.unsubscribe(),n=null,B.subscribe(C)):N=!0}));
N&&(n.unsubscribe(),n=null,B.subscribe(C))})};
CBm=function(W,k,C){return function(n,N){var B=C,A=k,w=0;n.subscribe(new zt(N,function(x){var E=w++;A=B?W(A,x,E):(B=!0,x);N.next(A)},void 0,void 0))}};
n0w=function(W){W=W===void 0?null:W;return mR(function(k,C){var n=!1;k.subscribe(new zt(C,function(N){n=!0;C.next(N)},void 0,function(){n||C.next(W);
C.complete()}))})};
Ze=function(){return mR(function(W,k){W.subscribe(new zt(k,WX))})};
Rb=function(W){return mR(function(k,C){k.subscribe(new zt(C,function(){return C.next(W)}))})};
ob=function(W){return W<=0?function(){return pg}:mR(function(k,C){var n=0;
k.subscribe(new zt(C,function(N){++n<=W&&(C.next(N),W<=n&&C.complete())}))})};
iM=function(W){var k=k===void 0?Cg:k;var C;W=(C=W)!=null?C:NPz;return mR(function(n,N){var B,A=!0;n.subscribe(new zt(N,function(w){var x=k(w);if(A||!W(B,x))A=!1,B=x,N.next(w)}))})};
NPz=function(W,k){return W===k};
BPm=function(W){W=W===void 0?YXc:W;return mR(function(k,C){var n=!1;k.subscribe(new zt(C,function(N){n=!0;C.next(N)},void 0,function(){return n?C.complete():C.error(W())}))})};
YXc=function(){return new bUp};
Tt=function(){var W=_.v6.apply(0,arguments);return function(k){return oOw(k,fg.apply(null,_.J8(W)))}};
AUz=function(W){return mR(function(k,C){var n=0;k.subscribe(new zt(C,function(N){W.call(void 0,N,n++,k)||(C.next(!1),C.complete())},void 0,function(){C.next(!0);
C.complete()}))})};
FD4=function(){return mR(function(W,k){var C=[];W.subscribe(new zt(k,function(n){C.push(n);1<C.length&&C.shift()},void 0,function(){for(var n=_.b(C),N=n.next();!N.done;N=n.next())k.next(N.value);
k.complete()},function(){C=null}))})};
x34=function(W,k){var C=arguments.length>=2;return function(n){return n.pipe(W?ei(function(N,B){return W(N,B,n)}):Cg,FD4(),C?n0w(k):BPm(function(){return new bUp}))}};
uM=function(W){var k=KL(W)?W:function(){return W};
return KL()?mR(function(C,n){var N=k();(void 0)(N).subscribe(n).add(C.subscribe(N))}):function(C){var n=new q9(C,k);
KL(C==null?void 0:C.lift)&&(n.lift=C.lift);n.source=C;n.subjectFactory=k;return n}};
ji=function(W){var k=new Lg(W,void 0,void 0);return function(C){return uM(function(){return k})(C)}};
rT=function(W,k){return mR(CBm(W,k,arguments.length>=2))};
gT=function(){var W=_.v6.apply(0,arguments),k=X0(W);return mR(function(C,n){(k?oOw(W,C,k):oOw(W,C)).subscribe(n)})};
PX=function(W){return mR(function(k,C){var n=null,N=0,B=!1;k.subscribe(new zt(C,function(A){var w;(w=n)==null||w.unsubscribe();w=N++;bM(W(A,w)).subscribe(n=new zt(C,function(x){return C.next(x)},void 0,function(){n=null;
B&&!n&&C.complete()}))},void 0,function(){(B=!0,!n)&&C.complete()}))})};
Kg=function(W,k){k=k===void 0?!1:k;return mR(function(C,n){var N=0;C.subscribe(new zt(n,function(B){var A=W(B,N++);(A||k)&&n.next(B);!A&&n.complete()}))})};
ld4=function(W,k,C){var n=KL(W)||k||C?{next:W,error:k,complete:C}:W;return n?mR(function(N,B){N.subscribe(new zt(B,function(A){var w;(w=n.next)==null||w.call(n,A);B.next(A)},function(A){var w;
(w=n.error)==null||w.call(n,A);B.error(A)},function(){var A;
(A=n.complete)==null||A.call(n);B.complete()}))}):Cg};
t3J=function(){var W=_.v6.apply(0,arguments),k=c8m(W);return mR(function(C,n){for(var N=W.length,B=Array(N),A=W.map(function(){return!1}),w=!1,x={i$jscomp$273:0};x.i$jscomp$273<N;x={i$jscomp$273:x.i$jscomp$273},x.i$jscomp$273++)bM(W[x.i$jscomp$273]).subscribe(new zt(n,function(E){return function(a){B[E.i$jscomp$273]=a;
w||A[E.i$jscomp$273]||(A[E.i$jscomp$273]=!0,(w=A.every(Cg))&&(A=null))}}(x),void 0,WX));
C.subscribe(new zt(n,function(E){w&&(E=[E].concat(_.J8(B)),n.next(k?k.apply(null,_.J8(E)):E))}))})};
E0m=function(W){var k=[],C=0,n;for(n in W)k[C++]=n;return k};
adX=function(W,k){for(var C in W)if(W[C]==k)return!0;return!1};
XDX=function(W,k,C){for(var n in W)if(k.call(C,W[n],n,W))return n};
fd4=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var k=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),C;for(C in W)k[C]=fd4(W[C]);return k};
d3P=function(W){var k=arguments.length;if(k==1&&Array.isArray(arguments[0]))return d3P.apply(null,arguments[0]);if(k%2)throw Error("oa");for(var C={},n=0;n<k;n+=2)C[arguments[n]]=arguments[n+1];return C};
m32=function(W){var k=arguments.length;if(k==1&&Array.isArray(arguments[0]))return m32.apply(null,arguments[0]);for(var C={},n=0;n<k;n++)C[arguments[n]]=!0;return C};
_.h8=function(W){return new g3p(W[0].toLowerCase())};
zsX=function(W){try{return new URL(W,window.document.baseURI)}catch(k){return new URL("about:invalid")}};
D3X=function(W,k){var C=k.createRange();C.selectNode(k.body);W=$3(W);return C.createContextualFragment(Zl(W))};
V3P=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
JUc=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
WD=function(W,k,C){W.setAttribute(k,C)};
cU4=function(W){return W.parts.map(function(k){var C=k.descriptor;return""+k.url+(C?" "+C:"")}).join(" , ")};
_.k0=function(W){var k=_.v6.apply(1,arguments);if(k.length===0)return _.to(W[0]);for(var C=W[0],n=0;n<k.length;n++)C+=encodeURIComponent(k[n])+W[n+1];return _.to(C)};
_.CU=function(W,k){W=_.Ez(W).toString();var C=W.split(/[?#]/),n=/[?]/.test(W)?"?"+C[1]:"";return Idz(C[0],n,/[#]/.test(W)?"#"+(n?C[2]:C[1]):"",k)};
Idz=function(W,k,C,n){function N(A,w){A!=null&&(Array.isArray(A)?A.forEach(function(x){return N(x,w)}):(k+=B+encodeURIComponent(w)+"="+encodeURIComponent(A),B="&"))}
var B=k.length?"&":"?";n.constructor===Object&&(n=Object.entries(n));Array.isArray(n)?n.forEach(function(A){return N(A[1],A[0])}):n.forEach(N);
return _.to(W+k+C)};
SX2=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
BD=function(W){return function(k){return k.pipe(M3w(W,uM(new nU)))}};
bB=function(W){return function(k){return k.pipe(M3w(W,ji(1)))}};
M3w=function(W,k){function C(n){return new YO(function(N){return n.subscribe(function(B){AU(W,function(){return void N.next(B)},3)},function(B){AU(W,function(){return void N.error(B)},3)},function(){AU(W,function(){return void N.complete()},3)})})}
return N9(C,SFX(),k,De(),C)};
v0X=function(W){var k=QOw(W);return k===null?new FR(null):k.pipe(V2(function(C){C=C.serialize();if(pDP)C=_.NX.btoa(C);else{for(var n=[],N=0,B=0;B<C.length;B++){var A=C.charCodeAt(B);A>255&&(n[N++]=A&255,A>>=8);n[N++]=A}C=_.zC(n)}return C}),ob(1),bB(W.queue))};
esP=function(W){var k=k===void 0?{}:k;if(typeof Event==="function")return new Event(W,k);if(typeof document!=="undefined"){var C=document.createEvent("CustomEvent");C.initCustomEvent(W,k.bubbles||!1,k.cancelable||!1,k.detail);return C}throw Error();};
sOc=function(W){return typeof W==="string"?document.getElementById(W):W};
yU4=function(W){var k=!1;k=k===void 0?!1:k;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var C;if(k&&((C=W.style)==null?void 0:C.display)==="none")return!0}var n,N;return GlI.test((n=W.getAttribute("width"))!=null?n:"")&&GlI.test((N=W.getAttribute("height"))!=null?N:"")};
$3w=function(W,k){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var C=W.readyState;else{var n,N;C=(n=W.contentWindow)==null?void 0:(N=n.document)==null?void 0:N.readyState}return C==="complete"}catch(B){return k===void 0?!1:k}};
ZU3=function(W){W||(W=function(k,C,n){k.addEventListener(C,n)});
return W};
TPp=function(W,k){var C=Rsw();C=C===void 0?new o0K:C;if(W=sOc(W)){var n=ZU3(n);for(var N=!1,B=function(p){N||(N=!0,k(p))},A,w=2,x=0;x<iUI.length;++x)if(iUI[x]===W.tagName){w=3;
A=[W];break}A||(A=W.querySelectorAll(iUI.join(",")));var E=0,a=0,X=!0,d=W=!1;x={};for(var V=0;V<A.length;x={isImg:void 0},V++){var c=A[V];if(!yU4(c))if(x.isImg=c.tagName==="IMG",$3w(c,C.crossDomainLoadedDefault))W=!0,x.isImg&&(X=!0);else{E++;var M=function(p){return function(e){E--;!E&&X&&B(w);p.isImg&&(e=e&&e.type==="error",a--,e||(X=!0),!a&&d&&X&&B(w))}}(x);
n(c,"load",M);x.isImg&&(a++,n(c,"error",M))}}a===0&&(X=!0);A=null;A=_.NX.document.readyState==="complete";if(E===0&&!W&&A)w=5;else if(E||!W){n(_.NX,"load",function(){!C.pendingImagesBlockLoad||!a&&X?B(4):d=!0});
return}B(w)}};
qXm=function(W,k,C){if(W)for(var n=0;W!=null&&n<500&&!C(W);++n)W=k(W)};
uR3=function(W,k){qXm(W,function(C){try{return C===C.parent?null:C.parent}catch(n){}return null},k)};
U3I=function(W,k){if(W.tagName=="IFRAME")k(W);else{W=W.querySelectorAll("IFRAME");for(var C=0;C<W.length&&!k(W[C]);++C);}};
OUm=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
LDw=function(W,k,C){try{var n=JSON.parse(C.data)}catch(A){}if(typeof n==="object"&&n&&n.type==="creativeLoad"){var N=OUm(W);if(C.source&&N){var B;uR3(C.source,function(A){try{if(A.parent===N)return B=A,!0}catch(w){}});
B&&U3I(W,function(A){if(A.contentWindow===B)return k(n),!0})}}};
jOK=function(W){return typeof W==="string"?document.getElementById(W):W};
PBm=function(){var W={};return W[0]=_.k0(HUK,"current"),W[1]=_.k0(rUw),W[2]=_.k0(g0m),W};
wP=function(W,k){return W.left===k.left&&W.top===k.top&&W.width===k.width&&W.height===k.height};
KDX=function(W,k){return{left:Math.max(W.left,k.left),top:Math.max(W.top,k.top),width:Math.max(0,Math.min(W.left+W.width,k.left+k.width)-Math.max(W.left,k.left)),height:Math.max(0,Math.min(W.top+W.height,k.top+k.height)-Math.max(W.top,k.top))}};
hs2=function(W,k){return{left:Math.round(W.left+k.x),top:Math.round(W.top+k.y),width:W.width,height:W.height}};
x0=function(W,k,C,n){this.top=W;this.right=k;this.bottom=C;this.left=n};
WJm=function(W,k,C){if(W&&k!==null&&k!=k.top){if(!k.top)return new _.lB(-12245933,-12245933);k=k.top}try{return(C===void 0?0:C)?(new _.lB(k.innerWidth,k.innerHeight)).round():_.tU(k).round()}catch(n){return new _.lB(-12245933,-12245933)}};
kbI=function(W,k,C){try{if(W){if(!k.top)return new x0(-12245933,-12245933,-12245933,-12245933);k=k.top}var n=WJm(W,k,C),N=n.height,B=n.width;if(B===-12245933)return new x0(B,B,B,B);var A=EX(aO(k.document)),w=A.x,x=A.y;return new x0(x,w+B,x+N,w)}catch(E){return new x0(-12245933,-12245933,-12245933,-12245933)}};
CgI=function(W){var k;return(k=W.google_tag_data)!=null?k:W.google_tag_data={}};
nLK=function(W){var k,C;return typeof((k=W.navigator)==null?void 0:(C=k.userAgentData)==null?void 0:C.getHighEntropyValues)==="function"};
YgP=function(W){if(!nLK(W))return null;var k=CgI(W);if(k.uach_promise)return k.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(NuJ).then(function(C){k.uach!=null||(k.uach=C);return C});
return k.uach_promise=W};
f0c=function(W){var k;return BuP(bNp(Adp(FJ2(wfz(xDw(l0m(t_m(ELm(new a02,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((k=W.fullVersionList)==null?void 0:k.map(function(C){var n=new Xfm;n=_.fU(n,1,C.brand);return _.fU(n,2,C.version)}))||[]),W.wow64||!1)};
dD4=function(W){var k,C;return(C=(k=YgP(W))==null?void 0:k.then(function(n){return f0c(n)}))!=null?C:null};
mDm=function(W,k){return new YO(function(C){var n=!1,N=Array(k.length);N.fill(void 0);var B=new Set,A=new Set,w=function(X,d){W.running?(N[d]=X,B.add(d),n||(n=!0,AU(W,function(){n=!1;C.next(_.T4(N))},1))):C.error(new dP(d))},x=function(X,d){A.add(d);
B.add(d);AU(W,function(){C.error(X)},1)},E=function(X){A.add(X);
AU(W,function(){A.size===k.length&&C.complete()},1)},a=k.map(function(X,d){return X.subscribe(function(V){return void w(V,d)},function(V){return void x(V,d)},function(){return void E(d)})});
return function(){a.forEach(function(X){return void X.unsubscribe()})}})};
V_z=function(W,k,C){function n(){if(k.debugChannel){var p=k.debugChannel,e=p.next;var u={creativeId:k.debugNames.getName(C),requiredSignals:N,signals:Object.assign({},B),hasPrematurelyCompleted:A,errorMessage:w,erroredSignalKey:x};u={specMajor:2,specMinor:0,specPatch:0,timestamp:sF(k.timeProvider.now(),new Gt(0,k.timeProvider.timeline)),instanceId:k.debugNames.getName(k.symbol),creativeState:u};e.call(p,u)}}
for(var N=Object.keys(W),B={},A=!1,w=null,x=null,E={},a=new Set,X=[],d=[],V=_.b(N),c=V.next(),M={};!c.done;M={key$jscomp$372:void 0},c=V.next())M.key$jscomp$372=c.value,c=W[M.key$jscomp$372],c instanceof FR?(E[M.key$jscomp$372]=c.value,a.add(M.key$jscomp$372),k.debugChannel&&(B[String(M.key$jscomp$372)]=ha2(c.value))):(c=c.pipe(iM(function(p,e){return PMP(p)||PMP(e)?!1:p===e}),V2(function(p){return function(e){k.debugChannel&&(B[String(p.key$jscomp$372)]=ha2(e),n());
var u={};return u[p.key$jscomp$372]=e,u}}(M)),$O(function(p){return function(e){if(e instanceof dP)throw new zAz(String(p.key$jscomp$372));
throw e;}}(M)),ld4(function(p){return function(){a.add(p.key$jscomp$372)}}(M),function(p){return function(e){x=String(p.key$jscomp$372);
w=String(e);n()}}(M),function(p){return function(){a.has(p.key$jscomp$372)||(A=!0,n())}}(M))),d.push(M.key$jscomp$372),X.push(c));
(W=Object.keys(B).length>0)&&n();V=mDm(k.queue,X).pipe($O(function(p){if(p instanceof dP)throw new DDw(String(d[p.inputObservableIndex]));throw p;}),V2(function(p){return Object.freeze(Object.assign.apply(Object,[{},
E].concat(_.J8(p))))}));
return(X=X.length>0)&&W?vX(fg(Object.freeze(E)),V):X?V:fg(Object.freeze(E))};
Jd4=function(W,k,C,n,N){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var B={};try{return k.pipe($O(function(A){n(Object.assign({},B,{error:A}));return pg}),M9(function(A){try{var w=C(W,A)}catch(E){return n(Object.assign({},B,{error:E instanceof Error?E:String(E)})),pg}var x={};
return V_z(w,W,A.symbol).pipe(ld4(function(E){x=E}),ji(1),De()).pipe(N,$O(function(E){n(Object.assign({},x,{error:E}));
return pg}),Tt(void 0),V2(function(){return!0}))})).pipe(rT(function(A){return A+1},0),$O(function(A){n(Object.assign({},B,{error:A}));
return pg}))}catch(A){return n(Object.assign({},B,{error:A})),pg}})()};
mD=function(W){var k=new Map;if(typeof W!=="object"||W===null)return k;Object.values(W).forEach(function(C){C&&typeof C.extrapolateToNow==="function"&&(k.has(C.clock.timeline)||k.set(C.clock.timeline,C.clock.now()))});
return k};
cdw=function(W,k){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(C){return cdw(C,k)}).join(","):W instanceof Gt?W.toString():W&&typeof W.extrapolateToNow==="function"?cdw(W.extrapolateUsingTimestampMap(k).value,k):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof I0p?Sgz(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
M_2=function(W,k){W=Object.entries(W).map(function(C){var n=_.b(C);C=n.next().value;n=n.next().value;n=cdw(n,k);return n===null?"":C+"="+n}).filter(function(C){return C!==""});
return W.length?W.join("&"):""};
vLm=function(W,k){var C=QLK,n=pfJ;k=k===void 0?.01:k;return function(N){k>0&&Math.random()<=k&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),N=Object.assign({},N,{errorMessage:N.error instanceof Error&&N.error.message?N.error.message:String(N.error),errorStack:N.error instanceof Error&&N.error.stack?String(N.error.stack):null,errorName:N.error instanceof
Error&&N.error.name?String(N.error.name):null,errorContext:String(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:N.escapedQueryId}),C(Object.assign({},N,{payloadMapper:function(){return function(B){try{return n(Object.assign({},B))}catch(A){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),mD(N)).forEach(function(B){W.beaconFactory.makeBeacon(B).sendNow()}))}};
eAw=function(){var W=_.v6.apply(0,arguments);return function(k){var C=k.pipe(ji(1),De());k=W.map(function(n){return C.pipe(n,Tt(!0))});
return Ib(k).pipe(ob(1),Ze())}};
sL4=function(){var W=_.v6.apply(0,arguments);return function(k){var C=k.pipe(ji(1),De());k=W.map(function(n){return C.pipe(n,Tt(!0))});
return vX.apply(null,_.J8(k)).pipe(ob(1),Ze())}};
GbK=function(W,k){return function(C){var n=C.pipe(ji(1),De());C=n.pipe(W,Tt(!0));n=n.pipe(N9(k,ji(),De()),Tt(!0));C=Ib([C,n]);return r8I(C,n).pipe(ob(1),Ze())}};
yd4=function(W,k,C){C(!0)};
$DX=function(W,k){return N9(PX(function(C){var n=W(C),N=k(C),B={};return n&&N&&B?new YO(function(A){N(n,B,function(w){A.next(Object.assign({},C,{canEmit:w}));A.complete()});
return function(){}}):zl}),ei(function(C){return C.canEmit}))};
ZNp=function(W){var k={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(C){return C.pipe(PX(function(n){return new YO(function(N){function B(){w.disconnect();x.unsubscribe()}
var A=W.MutationObserver;if(A&&n.ref!==void 0){var w=new A(function(E){N.next(E)});
w.observe(n.ref,k);var x=n.JSC$7212_released.subscribe(B);return B}})}))}};
RAm=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var k=W.creativeFound===!1?"n":null;if(k!==null)return k}return W.geometricMeasurementErrors instanceof Dd?"msf":W.contextValidationErrors instanceof VZ?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
iNw=function(W,k){return W.replace(oLJ,function(C,n){try{var N=_.JU.get(k,n);if(N==null||N.toString()==null)return C;N=N.toString();if(N==""||!_.tK(N==null?"":String(N)))return encodeURIComponent(N).replace(/%2C/g,",")}catch(B){}return C})};
TuX=function(W,k){var C=Object.assign({},W),n=W.userAgentClientHints;C=(delete C.userAgentClientHints,C);C=W.payloadMapper(C);var N=M_2(C,k);return _.cD(W.urlPrefixes,function(B){var A="";typeof n==="string"&&(A="&"+M_2({uach:n},k));var w={};return iNw(B,(w.VIEWABILITY=N,w))+A})};
QLK=function(W,k){var C=W.payloadMapper(W),n=M_2(C,k);return n?_.cD(W.urlPrefixes,function(N){N=N.indexOf("?")>=0?N:N+"?";N="?&".indexOf(N.slice(-1))>=0?N:N+"&";return N+n}):W.urlPrefixes};
qg2=function(){return N9(ei(function(W){return W!==void 0}),V2(function(W){return W}))};
uKK=function(W){return N9(V2(function(){return!0}),gT(!1),bB(W))};
UDz=function(W){return W.length<=0?pg:Ib(W.map(function(k){var C=0;return k.pipe(V2(function(n){return{index:C++,value:n}}))})).pipe(ei(function(k){return k.every(function(C){return C.index===k[0].index})}),V2(function(k){return k.map(function(C){return C.value})}))};
ONp=function(W,k){W.currentState&&(W.previousState=W.currentState);W.currentState=k;W.previousState&&W.previousState.value?(k=Math.max(0,sF(k.timestamp,W.previousState.timestamp)),W.totalTime+=k,W.consecutiveTime+=k):W.consecutiveTime=0;return W};
LJc=function(){return N9(rT(ONp,{totalTime:0,consecutiveTime:0}),V2(function(W){return W.totalTime}))};
jLP=function(){return N9(rT(ONp,{totalTime:0,consecutiveTime:0}),V2(function(W){return W.consecutiveTime}))};
HNw=function(W,k){return function(C){return UDz(k.map(function(n){return C.pipe(W(n))}))}};
rd3=function(){var W;return N9(ld4(function(k){return void(W=k.timestamp)}),jLP(),V2(function(k){return{timestamp:W,
value:Math.round(k)}}))};
gLw=function(W,k){return wP(W.topWindowViewportExternalGeometry,k.topWindowViewportExternalGeometry)&&wP(W.elementGeometry,k.elementGeometry)&&wP(W.exposedViewportLocalGeometry,k.exposedViewportLocalGeometry)&&wP(W.intersectionGeometry,k.intersectionGeometry)&&W.elementGeometrySourceName===k.elementGeometrySourceName&&W.measurementRequests===k.measurementRequests&&W.viewportGeometrySourceName===k.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===k.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
k.viewportLocalAppOffset.y};
kmP=function(W,k){return function(C){return function(n){var N=n.pipe(uM(new nU),De());n=C.element.pipe(iM());N=N.pipe(V2(function(B){return B.value}));
return Ib([n,N,k]).pipe(V2(function(B){var A=_.b(B);B=A.next().value;var w=A.next().value;A=A.next().value;if(B.ref===void 0)var x={top:0,left:0,width:0,height:0};else{x=B.ref.getBoundingClientRect();var E=B.ref,a=W.global,X=new _.S3(0,0),d=M3(_.QZ(E));if(Pgw(d,"parent")){do{if(d==a)var V=_.pU(E);else V=KJw(E),V=new _.S3(V.left,V.top);X.x+=V.x;X.y+=V.y}while(d&&d!=a&&d!=d.parent&&(E=d.frameElement)&&(d=d.parent))}x={top:X.y,left:X.x,width:x.width,height:x.height}}x=hs2(x,w.viewportLocalAppOffset);
a=KDX(x,w.exposedViewportLocalGeometry);X=W.timeProvider.now();d=Object;E=d.assign;if(A!==2||W.inCrossDomainIframe||a.width<=0||a.height<=0)var c=!1;else try{var M=W.document.elementFromPoint(a.left+a.width/2,a.top+a.height/2);c=M?!hAX(M,B):!1}catch(p){c=!1}return{timestamp:X,value:E.call(d,{},w,{elementGeometrySourceName:"geo",intersectionGeometry:c?W$P.intersectionGeometry:a,elementGeometry:x})}}),BD(W.queue))}}};
hAX=function(W,k,C){C=C===void 0?0:C;return W.ref===void 0||k.ref===void 0?!1:W.ref===k.ref||_.vD(k.ref,function(n){return n===W.ref})?!0:k.ref.ownerDocument&&k.ref.ownerDocument.defaultView&&k.ref.ownerDocument.defaultView===k.ref.ownerDocument.defaultView.top?!1:C<10&&k.ref.ownerDocument&&k.ref.ownerDocument.defaultView&&k.ref.ownerDocument.defaultView.frameElement?hAX(W,new sX(k.ref.ownerDocument.defaultView.frameElement),C+1):!0};
NwP=function(W){return function(k){return k.pipe(W.ResizeObserver?CRK(W):nw3(W),ji(1),De())}};
CRK=function(W){return function(k){return k.pipe(PX(function(C){var n=W.ResizeObserver;if(!n||C.ref===void 0)return fg(W$P.elementGeometry);var N=(new YO(function(B){function A(){C.ref!==void 0&&w.unobserve(C.ref);w.disconnect();x.unsubscribe()}
if(C.ref===void 0)return B.complete(),function(){};
var w=new n(function(E){E.forEach(function(a){B.next(a)})});
w.observe(C.ref);var x=C.JSC$7212_released.subscribe(A);return A})).pipe(y2(W.performanceMonitor,736),V2(function(B){return B.contentRect}));
return vX(fg(C.ref.getBoundingClientRect()),N)}),iM(wP))}};
nw3=function(W){return function(k){var C=k.pipe(ZNp(W)),n=W.onResize;C=vX(k.pipe(V2(function(){return esP("resize")})),C,n);
return Ib(k,C).pipe(y2(W.performanceMonitor,737),V2(function(N){N=_.b(N).next().value;return N.ref===void 0?void 0:N.ref.getBoundingClientRect()}),qg2(),iM(wP))}};
byw=function(W,k){var C=YoJ(W,k).pipe(ji(1),De());return function(n){return function(N){N=N.pipe(PX(function(B){return B.element}),iM());
return Ib([C,N]).pipe(PX(function(B){var A=_.b(B);B=A.next().value;A=A.next().value;return BwJ(W,B.intersectionObserver,NwP(W),B.observations,n,B.flushRecords,A)}),BD(W.queue))}}};
AYw=function(W){return V2(function(k){return k.value.viewportGeometrySourceName!=="nio"?k:Object.assign({},k,{value:Object.assign({},k.value,{exposedViewportLocalGeometry:Gl(W,!0),topWindowViewportExternalGeometry:Gl(W,!0)})})})};
F$w=function(W,k){return fg(k).pipe(W,V2(function(){return k}))};
YoJ=function(W,k){return W.timeProvider.timeline!==wHJ?dT(new Dd(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?dT(new Dd(0)):(new YO(function(C){var n=new nU,N=new yZ(n.next.bind(n),{threshold:[].concat(_.J8(k))});C.next({observations:n.pipe(y2(W.performanceMonitor,735)),intersectionObserver:N,flushRecords:function(B){B=N.takeRecords(B);B.length>0&&n.next(B)}})})).pipe(ob(1),ji(1),De()):dT(new Dd(1))};
xfm=function(W){return aem(W.sort(function(k,C){return k.time-C.time}),Ie2)};
BwJ=function(W,k,C,n,N,B,A){return new YO(function(w){function x(){c||(c=!0,A.ref!==void 0&&k.unobserve(N,A.ref),a.unsubscribe(),V.unsubscribe(),d.unsubscribe(),M.unsubscribe())}
if(A.ref!==void 0){lDw(k,N);k.observe(N,A.ref);var E=new $0({timestamp:W.timeProvider.now(),value:Object.assign({},W$P,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),a=n.pipe(M9(function(p){return xfm(p)}),ei(function(p){return p.target===A.ref}),V2(function(p){return{timestamp:new Gt(p.time,wHJ),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:p.rootBounds||Zd,topWindowViewportExternalGeometry:p.rootBounds||Gl(W,!0),measurementRequests:X,elementGeometrySourceName:"nio",intersectionGeometry:p.intersectionRect,elementGeometry:p.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:p.isIntersecting,isV2Visible:p.isVisible}}}),uM(E),De()).subscribe(w),X=new nU,d=X.subscribe(function(){B(N);
w.next({timestamp:W.timeProvider.now(),value:E.value.value});A.ref!==void 0&&(k.unobserve(N,A.ref),k.observe(N,A.ref))}),V=F$w(C,A).subscribe(function(){X.next()}),c=!1,M=A.JSC$7212_released.subscribe(function(){return x()});
return x}})};
twc=function(W,k){var C=W.getOnBackgrounded().pipe(V2(function(){return"b"}));
return r8I(k,C).pipe(ob(1),bB(W.queue))};
RO=function(W){return function(k){var C;return k.pipe(ld4(function(n){return void(C=n.timestamp)}),V2(function(n){return n.value}),W,V2(function(n){return{timestamp:C,
value:n}}))}};
oO=function(W,k,C){C=C===void 0?function(n,N){return n===N}:C;
return W.timestamp.equals(k.timestamp)&&C(W.value,k.value)};
Tl=function(W,k){return k.pipe(V2(function(C){return new iB(W.timeProvider,{timestamp:W.timeProvider.now(),value:C})}))};
Ew4=function(W){return function(k){return k.pipe(t3J(W),V2(function(C){var n=_.b(C);C=n.next().value;n=n.next().value;var N=C.value;return{timestamp:C.timestamp,value:N>=1?!0:N<=0?!1:N>=n}}))}};
XH2=function(){return N9(ei(function(W,k){return k>0}),aDp,gT(-1),iM())};
fD2=function(W,k,C){return W?Ib([k,C]).pipe(ei(function(n){var N=_.b(n);n=N.next().value;N=N.next().value;return n.timestamp.equals(N.timestamp)}),V2(function(n){var N=_.b(n);
n=N.next().value;N=N.next().value;return n.value>N.value?n:N})):k};
z_I=function(W){return function(k){var C=k.pipe(dfz),n=k.pipe(mfm);return W instanceof YO?W.pipe(PX(function(N){return fD2(N,C,n)})):fD2(W.value,C,n)}};
vwc=function(W,k,C,n){var N=n.geometryIsOccluded,B=n.exposureThreshold,A=n.wasLargeAdAtRender,w=n.allowLargeAdThreshold,x=n.largeAdExposureThreshold,E=n.mayUseViewportShareExposure,a=n.hasMeasurementStarted;n=n.useIntersectionObserverV2;k=Dfm(W,C,k);C=Vwc(W,C);n=JY4(k,n);var X=cYX(W,N,E,k),d=X.pipe(V2(function(Bw){return Bw.value}),iM(),bB(W),rT(function(Bw,P){return Math.max(Bw,P)},0)),V=X.pipe(V2(function(Bw){return Bw.value}),XH2(),bB(W)),c=k.pipe(IDm,V2(function(Bw){return Bw.value}),ob(2),iM(),
bB(W));
A=Som(W,k,A,w);var M=A.pipe(gT(!1),iM(),V2(function(Bw){return Bw?x:B}));
w=X.pipe(Ew4(M),iM(),bB(W));var p=Ib([w,k]).pipe(ei(function(Bw){var P=_.b(Bw);Bw=P.next().value;P=P.next().value;return Bw.timestamp.equals(P.timestamp)}),V2(function(Bw){var P=_.b(Bw);
Bw=P.next().value;P=P.next().value;return{visible:Bw.value,geometry:P.value.elementGeometry}}),rT(function(Bw,P){return!P.visible&&Bw.visible?Bw:P},{visible:!1,
geometry:Zd}),V2(function(Bw){return Bw.geometry}),gT(Zd),bB(W),iM(wP));
E=E instanceof YO?E.pipe(iM(),Rb()):zl;M=Ib([E,M]).pipe(Rb());var e=k.pipe(ei(function(Bw){return Bw.value.viewportGeometrySourceName!=="ns"&&Bw.value.elementGeometrySourceName!=="ns"}),rT(function(Bw){return Bw+1},0),gT(0),bB(W)),u=C.pipe(Rb(!0),gT(!1),bB(W));
u=Ib([a,u]).pipe(V2(function(Bw){var P=_.b(Bw);Bw=P.next().value;P=P.next().value;return Bw&&!P}),bB(W));
var h=k.pipe(Mwm,iM()),L=h.pipe(V2(function(Bw){return Bw.value}),rT(function(Bw,P){return Math.max(Bw,P)},0),iM(),bB(W));
W=h.pipe(V2(function(Bw){return Bw.value}),XH2(),bB(W));
return{shouldResetExposureSignals:E,shouldResetViewabilitySignals:M,geometrySignals:{readyGeometryWithDefault:k,measurementStrategy:k.pipe(QWc),creativePosition:p.pipe(iM(wP)),visible:w.pipe(iM(oO)),timestampedExposure:X.pipe(iM(oO)),maximumExposure:d,minimumExposure:V,browserSize:k.pipe(pH3,iM(_.g3)),timestampedScreenShare:h,maxScreenShare:L,minScreenShare:W,geometricMeasurementErrors:C,measurementRequests:k.pipe(V2(function(Bw){return Bw.value.measurementRequests})),
isLargeAd:A,geometryIsOccluded:N,hasMeasurementStarted:a,geometryMeasurable:u,validMeasurementCount:e,loadTimeExposure:c,v2VisibilityBitVector:n}}};
Vwc=function(W,k){return k.pipe(ei(function(){return!1}),V2(function(C){return C}),$O(function(C){return q3(new FR(C),W)}))};
Dfm=function(W,k,C){return k.pipe(jbz(zl),bB(W)).pipe(iM(function(n,N){return oO(n,N,gLw)}),gT({timestamp:C.now(),
value:W$P}),bB(W))};
cYX=function(W,k,C,n){C=n.pipe(z_I(C),RO(V2(function(N){return Math.round(N*100)/100})),bB(W));
return k instanceof FR?C:Ib([C,k]).pipe(V2(function(N){var B=_.b(N);N=B.next().value;B=B.next().value;return{timestamp:B.timestamp.maximum(N.timestamp),value:B.value?0:N.value}}),iM(oO),bB(W))};
Som=function(W,k,C,n){k=[k.pipe(V2(function(N){return N.value.elementGeometry.width*N.value.elementGeometry.height>=242500}))];
C instanceof YO&&k.push(C.pipe(V2(function(N){return!!N})));
C=Ib(k);return n?C.pipe(V2(function(N){return N.some(function(B){return B})}),gT(!1),iM(),bB(W)):q3(new FR(!1),W)};
JY4=function(W,k){W=Ib([W,k]).pipe(V2(function(N){var B=_.b(N);N=B.next().value;if(B.next().value&&N.value.isIntersecting)return N.value.isV2Visible}),iM());
var C=W.pipe(V2(function(N){return N===void 0?!0:N}),rT(function(N,B){return N||!B},!1)),n=W.pipe(rT(function(N,B){return B===void 0?N:B?!1:N!=null?N:!0},void 0),V2(function(N){return!!N}));
return Ib([k,gOJ(W,C,n)]).pipe(V2(function(N){var B=_.b(N);N=B.next().value;var A=_.b(B.next().value);B=A.next().value;var w=A.next().value;A=A.next().value;var x=0;if(!N)return 0;if(B===void 0)return 16;B&&(x|=1);B||(x|=2);w&&(x|=4);A&&(x|=8);return x}))};
Zym=function(W,k,C,n,N){var B=e_2.timeThresholdMs;var A=A===void 0?new sW4(k,n):A;return(new YO(function(w){var x=C.pipe(gT(void 0),PX(function(){return GmP(N)})).pipe(V2(function(E){var a=E.value;
E=E.timestamp;var X=a.visible;a=a.consecutiveViewTime;var d=a>=B;d||!X?yYX(A):(E=Math.max(0,sF(k.now(),E)),$fK(A,Math.max(0,B-a-E)));return d}),rT(function(E,a){return a||E},!1),iM()).subscribe(w);
return function(){A.dispose();x.unsubscribe()}})).pipe(Kg(function(w){return!w},!0),bB(W))};
GmP=function(W){return UDz([W,W.pipe(rd3())]).pipe(V2(function(k){var C=_.b(k);k=C.next().value;C=C.next().value;return{timestamp:k.timestamp,value:{visible:k.value,consecutiveViewTime:C.value}}}),iM(function(k,C){return oO(k,C,function(n,N){return n.consecutiveViewTime===N.consecutiveViewTime&&n.visible===N.visible})}))};
R_c=function(){return N9(jLP(),rT(function(W,k){return Math.max(W,k)},0),V2(function(W){return Math.round(W)}))};
owP=function(W){return N9(Ew4(fg(W)),R_c())};
iyX=function(W,k){return k instanceof YO?k.pipe(PX(function(C){return(C=C?15:null)?dT(new Dd(C)):W})):(k=k.value?15:null)?dT(new Dd(k)):W};
TwX=function(W){var k=new Dd(13);if(W.length<1)return{chain:pg,capturedErrors:pg};var C=new nU,n=W[0];return{chain:W.slice(1).reduce(function(N,B){return N.pipe($O(function(A){C.next(A);return B}))},n).pipe($O(function(N){C.next(N);
return dT(k)}),uM(new nU),De()),
capturedErrors:C}};
qoz=function(W,k){var C=W.pipe(uM(new nU),De());return PX(function(n){return C.pipe(k(n))})};
Ufw=function(W,k){if(W.inCrossDomainIframe)return dT(new Dd(6));var C=new nU;return vX(fg({}),k,C).pipe(V2(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:uMw(W),topWindowViewportExternalGeometry:Gl(W,!0),measurementRequests:C,viewportLocalAppOffset:{x:0,y:0}}}}),BD(W.queue))};
uMw=function(W){var k=Gl(W,!1);if(!W.inIframe||!Oyw(W.global.parent)||W.global.parent===W.global)return k;var C=new uB(W.global.parent,W.debugChannel);C.beaconFactory=W.beaconFactory;C=uMw(C);W=W.global.frameElement.getBoundingClientRect();return KDX(hs2(KDX(C,W),{x:k.left-W.left,y:k.top-W.top}),k)};
L$z=function(W){if(W.prerendering)return 3;var k;return(k={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?k:0};
jWm=function(W){return W.document.JSC$7223_onVisibilityChange.pipe(V2(function(k){return k==="visible"}),iM(),bB(W.queue))};
Hyp=function(W,k,C){var n;return k.pipe(iM(),PX(function(N){return C.pipe(V2(function(){if(!n){n=!0;try{N.next()}finally{n=!1}}return!0}))}),gT(!1),bB(W.queue))};
rY3=function(W){return N9(RO(V2(function(k){return k>=1?!0:k<=0?!1:k>=W})),LJc(),V2(function(k){return Math.round(k)}))};
PR4=function(W,k,C,n,N){var B=gwp;if(B.length>1)for(var A=0;A<B.length-1;A++)if(B[A]<B[A+1])throw Error();A=N.pipe(gT(void 0),PX(function(){return C.pipe(rd3())}),iM(),bB(W));
N=N.pipe(gT(void 0),PX(function(){return C.pipe(R_c())}),iM(),bB(W));
return{totalMeasurementTime:n.pipe(gT(void 0),PX(function(){return k.pipe(V2(function(w){return{timestamp:w.timestamp,value:!0}}),LJc())}),iM(),bB(W)),
totalUnviewedTime:n.pipe(gT(void 0),PX(function(){return k.pipe(V2(function(w){return{timestamp:w.timestamp,value:w.value===0}}),LJc())}),iM(),bB(W)),
maxTimeOnScreen:n.pipe(gT(void 0),PX(function(){return k.pipe(HNw(owP,B))}),iM(_.g3),bB(W)),
timeOnScreen:n.pipe(gT(void 0),PX(function(){return k.pipe(HNw(rY3,B),V2(function(w){return w.map(function(x,E){return E>0?x-w[E-1]:x})}))}),iM(_.g3),bB(W)),
maxConsecutiveViewTime:N,consecutiveViewTime:A.pipe(iM(oO),bB(W))}};
h_w=function(W){var k=!0;k=k===void 0?!1:k;return N9(PX(function(C){return K$P(W.document,C,k)}),bB(W.queue))};
Whw=function(W,k,C){var n=C.pipe(V2(function(N){return{value:N,timestamp:W.timeProvider.now()}}),iM(oO));
return k instanceof YO?k.pipe(iM(),PX(function(N){return N?q3(new FR({value:!1,timestamp:W.timeProvider.now()}),W.queue):n})):k.value===!1?n:new FR(!1)};
k33=function(W,k,C,n,N,B,A){var w=e_2;k=k instanceof YO?k.pipe(gT(!1),iM()):k;var x=!W.isMobile();C=Whw(W,C,n);W=A.measurableCreative.pipe(uKK(W.queue));return Object.assign({},w,{geometryIsOccluded:C,wasLargeAdAtRender:N,allowLargeAdThreshold:x,mayUseViewportShareExposure:k,hasMeasurementStarted:W,useIntersectionObserverV2:B})};
nnX=function(W,k,C,n,N,B){var A=1;B=B===void 0?!0:B;A=A===void 0?.01:A;var w=w===void 0?W.timeProvider.intervalObservable(100).pipe(bB(W.queue)):w;return W.performanceMonitor.timeExecution(916,function(){return CIw(W,k.pipe(BD(W.queue)),C.pipe(BD(W.queue)),n,N,B,A,w)})()};
CIw=function(W,k,C,n,N,B,A,w){var x=jWm(W).pipe(V2(function(a){return!a})),E=new NAz(W,[new YeK(W,gwp),
new BAp(W,w)]);w=eAw(bSm,Ajc);return Jd4(W,k,function(a,X){var d=q3(new FR(X.element),a.queue).pipe(h_w(a),bB(a.queue)),V={loadedElement:d,shouldMeasure:d.pipe(Rb(!0)),measurableCreative:d.pipe(V2(function(Bw){var P=P===void 0?Symbol():P;return Object.freeze({symbol:P,element:q3(new FR(Bw),a.queue)})})),
creativeSearchResult:q3(new FR("mue"),a.queue)},c=new FR(!1),M=new FR(!1),p=new FR(17),e=new FR(!1),u=new FR(!1),h=q3(UX,a.queue);c=E.buildGeometrySource(V,{inApp:c,useV2:!1,requestSource:q3(p,a.queue)}).geometrySource;V=k33(a,e,M,x,u,h,V);M=vwc(a.queue,a.timeProvider,c,V);V=M.geometrySignals;e=M.shouldResetViewabilitySignals;M=PR4(a.queue,V.timestampedExposure,V.visible,M.shouldResetExposureSignals,e);e=Zym(a.queue,a.timeProvider,e,V.measurementRequests,V.visible);u=C.pipe(ei(function(Bw){return Bw===
X.element.ref}),V2(function(){return"ur"}));
h=WDJ(a.timeProvider,N).pipe(Rb("t"));u=twc(a,vX(u,h));h=Hyp(a,V.measurementRequests,u.pipe(ei(function(Bw){return Bw!==null})));
c=u.pipe(ei(function(Bw){return Bw!==null}),V2(function(){return L$z(a.global.document)===1}));
var L=FhX(a.document);return Object.assign({},{beaconFactory:new FR(a.beaconFactory),context:new FR(a),inferredPingId:new FR("lidar2"),timeOnScreenPingId:new FR("lidartos"),binaryContext:new FR(17),binaryVersion:new FR(n),requestSource:p,contextValidationErrors:new FR(a.validate()?null:new VZ),contextVisibilityKnown:new FR(L),payloadMapper:new FR(pfJ),endOfSessionReason:u,timeOnScreenReason:u,requestMeasurementOnEndOfSession:h,hasImpressionFired:wvm,crossDomainIframeState:new FR(a.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:UX,inFetchLaterBeaconExperiment:UX,isTurtlex:UX,turtlexReportEventData:new FR(""),reportFencedFrameEvent:zl,isViewableAttributionEnabled:UX,inViewableAttributionExperiment:new FR(0),fetchBeaconFactory:zl,supportsPendingBeacon:UX,supportsFetchLater:UX,emit:new FR(yd4),beginToRenderEvent:new FR(Symbol()),activeViewUnmeasurableEvent:new FR(Symbol()),activeViewViewableEvent:new FR(Symbol()),creativeFound:wvm,immediateUrlPrefixes:new FR(X.immediateUrls),timeOnScreenUrlPrefixes:new FR(X.timeOnScreenUrls),
cpmavUrls:zl,viewableRelayUrls:zl,measurementDeferralState:new FR(2),urlSerializer:new FR(TuX),viewUrlSerializer:new FR(xIw),isCreativeLoaded:d.pipe(uKK(a.queue)),pageVisible:x.pipe(V2(function(Bw){return!Bw})),
eosPageVisible:c,timestampedExposureHistory:V.timestampedExposure.pipe(rT(function(Bw,P){Bw.push(P);return Bw},[]))},V,{viewable:Tl(a,e),
maxTimeOnScreen:Tl(a,M.maxTimeOnScreen),timeOnScreen:Tl(a,M.timeOnScreen),maxConsecutiveViewTime:Tl(a,M.maxConsecutiveViewTime),consecutiveViewTime:M.consecutiveViewTime.pipe(V2(function(Bw){return new iB(a.timeProvider,Bw)})),
totalMeasurementTime:Tl(a,M.totalMeasurementTime),totalUnviewedTime:Tl(a,M.totalUnviewedTime),userAgentClientHints:v0X(a),clientOrderPingCounter:new FR(new I0p)})},vLm(W,A),sL4(B?GbK(w,lE4):GbK(w,tOw),Enz))};
aE2=function(W,k){return(W=(new RegExp("[^#]*[?&]"+k+"=([^&#]*)")).exec(W))?W[1]:null};
Xvc=function(W){var k=_.v6.apply(1,arguments).filter(Boolean).join("&");if(!k)return W;var C=W.match(/[?&]adurl=/);return C?W.slice(0,C.index+1)+k+"&"+W.slice(C.index+1):W+(W.indexOf("?")<0?"?":"&")+k};
OX=function(W,k){return k?"&"+W+"="+encodeURIComponent(k):""};
fEm=function(){try{var W,k;return!!((W=window)==null?0:(k=W.top)==null?0:k.location.href)&&!1}catch(C){return!0}};
_.LU=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.dIw=function(W){for(var k=0,C=arguments.length;k<C;++k){var n=arguments[k];_.qX(n)?_.dIw.apply(null,n):_.LU(n)}};
zq2=function(){var W=mI4();W=W===void 0?"bevasrsg":W;return new Promise(function(k){var C=window===window.top?window:fEm()?window:window.top,n=C[W],N;((N=n)==null?0:N.bevasrs)?k(new j3(n.bevasrs)):(n||(n={},n=(n.nqfbel=[],n),C[W]=n),n.nqfbel.push(function(B){k(new j3(B))}))})};
DIX=function(W){var k={c:W.nb,e:W.bQ7,mc:W.r6J,me:W.nLN};W.nl&&(k.co={c:W.nl.q3b,a:W.nl.aJJ,s:W.nl.x1T});return k};
VO3=function(W){var k,C,n={nb:W.c,bQ7:W.e,r6J:(k=W.mc)!=null?k:!1,nLN:(C=W.me)!=null?C:!1};W.co&&(n.nl={q3b:W.co.c,aJJ:W.co.a,x1T:W.co.s});return n};
Jjz=function(W){return function(){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W(),2);k=C.yieldResult;return C.return({f:function(){return k.gIt()},
c:function(n){return k.tSo(n)},
m:function(n){return k.r4(VO3(n))},
mws:function(n){return k.q3(VO3(n))}})})}};
cjw=function(W,k){var C=mI4();C=C===void 0?"bevasrsg":C;k={s:function(B){var A;return W.snapshot(Object.assign({},B.c&&{nb:B.c},B.s&&{idh:B.s},{jlW:(A=B.p)!=null?A:!0}))},
e:function(B){var A;return void((A=W.tyt)==null?void 0:A.call(W,B))},
c:function(B,A){return W.h0b(B,A)},
p:W.ubx,l:function(){return W.aTt()},
wpc:k?Jjz(k):void 0};var n=window===window.top?window:fEm()?window:window.top,N=n[C];if(N){N.bevasrs=k;if(N.nqfbel!==void 0)for(C=_.b(N.nqfbel),n=C.next();!n.done;n=C.next())n=n.value,n(k);N.nqfbel=void 0}else N={},N=(N.bevasrs=k,N.nqfbel=void 0,N),n[C]=N};
SeX=function(W){var k=k===void 0?49:k;var C=[];_.HD(W,IEc,6,_.rP()).forEach(function(n){_.gP(n,2)<=k&&C.push(_.gP(n,1))});
return C};
MOX=function(W){var k=k===void 0?49:k;var C=[];_.HD(W,IEc,6,_.rP()).forEach(function(n){_.gP(n,2)>k&&C.push(_.gP(n,1))});
return C};
Q43=function(W){W.then(function(){},function(){})};
_.PD=function(W){return{fieldType:1,fieldName:W}};
hU=function(W){return{fieldType:2,fieldName:W}};
_.kL=function(W){return{fieldType:3,fieldName:W}};
pvX=function(){function W(){N[0]=1732584193;N[1]=4023233417;N[2]=2562383102;N[3]=271733878;N[4]=3285377520;a=E=0}
function k(X){for(var d=A,V=0;V<64;V+=4)d[V/4]=X[V]<<24|X[V+1]<<16|X[V+2]<<8|X[V+3];for(V=16;V<80;V++)X=d[V-3]^d[V-8]^d[V-14]^d[V-16],d[V]=(X<<1|X>>>31)&4294967295;X=N[0];var c=N[1],M=N[2],p=N[3],e=N[4];for(V=0;V<80;V++){if(V<40)if(V<20){var u=p^c&(M^p);var h=1518500249}else u=c^M^p,h=1859775393;else V<60?(u=c&M|p&(c|M),h=2400959708):(u=c^M^p,h=3395469782);u=((X<<5|X>>>27)&4294967295)+u+e+h+d[V]&4294967295;e=p;p=M;M=(c<<30|c>>>2)&4294967295;c=X;X=u}N[0]=N[0]+X&4294967295;N[1]=N[1]+c&4294967295;N[2]=
N[2]+M&4294967295;N[3]=N[3]+p&4294967295;N[4]=N[4]+e&4294967295}
function C(X,d){if(typeof X==="string"){X=unescape(encodeURIComponent(X));for(var V=[],c=0,M=X.length;c<M;++c)V.push(X.charCodeAt(c));X=V}d||(d=X.length);V=0;if(E==0)for(;V+64<d;)k(X.slice(V,V+64)),V+=64,a+=64;for(;V<d;)if(B[E++]=X[V++],a++,E==64)for(E=0,k(B);V+64<d;)k(X.slice(V,V+64)),V+=64,a+=64}
function n(){var X=[],d=a*8;E<56?C(w,56-E):C(w,64-(E-56));for(var V=63;V>=56;V--)B[V]=d&255,d>>>=8;k(B);for(V=d=0;V<5;V++)for(var c=24;c>=0;c-=8)X[d++]=N[V]>>c&255;return X}
for(var N=[],B=[],A=[],w=[128],x=1;x<64;++x)w[x]=0;var E,a;W();return{reset:W,update:C,digest:n,digestString:function(){for(var X=n(),d="",V=0;V<X.length;V++)d+="0123456789ABCDEF".charAt(Math.floor(X[V]/16))+"0123456789ABCDEF".charAt(X[V]%16);return d}}};
$Ic=function(W,k){k=k===void 0?vnc:k;if(!eqX){var C;W=(C=W.navigator)==null?void 0:C.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("ya"));s4I((W.brands||[]).map(function(N){var B=new G3J;B=_.fU(B,1,N.brand);return _.fU(B,2,N.version)}));
typeof W.mobile==="boolean"&&_.CN(yjP,2,W.mobile);eqX=W.getHighEntropyValues(k)}var n=new Set(k);return eqX.then(function(N){var B=yjP.clone();n.has("platform")&&_.fU(B,3,N.platform);n.has("platformVersion")&&_.fU(B,4,N.platformVersion);n.has("architecture")&&_.fU(B,5,N.architecture);n.has("model")&&_.fU(B,6,N.model);n.has("uaFullVersion")&&_.fU(B,7,N.uaFullVersion);return B.serialize()}).catch(function(){return yjP.serialize()})};
nN=function(W,k,C,n){this.initialValue_=W;this.maxValue_=k;this.currBaseValue_=this.currValue_=W;this.randomFactor_=C||0;this.backoffFactor_=n||2};
ND=function(W){this.src=W;this.listeners={};this.typeCount_=0};
iSK=function(){for(var W;W=ZS4.remove();){try{W.fn.call(W.scope)}catch(k){Yz(k)}Rqz.put(W)}on3=!1};
_.TAX=function(W){switch(W){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}};
qeX=function(W){switch(W){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""}};
_.ucJ=function(){};
Khz=function(W){return{uls:new UIw(W),errorCount:new OS2(W),eventCount:new LhI(W),qnj:new j4w(W),szf:new HSJ(W),p1f:new rjP(W),sEd:new gnw(W),sUZ:new PIJ(W)}};
bHK=function(W,k,C,n){W=hqm(WK2(kWX(new _.YL(1828,"0"),W),new Cpc));k.length&&ngm(W,Ndm(new YhX,k));n!==void 0&&(W.destinationUrl=n);var N=new BdI(1828,"","",!1,"",W.build());_.Bf(N,W);var B=new bg({flush:function(A){try{N.flush(A)}catch(w){C(w)}}});
B.addOnDisposeCallback(function(){setTimeout(function(){try{B.snapshotAndFlush()}finally{N.dispose()}})});
B.invocationLimit=1E5;B.flushInterval=3E4;B.JSC$7659_flushTimer.setInterval(3E4);return B};
Ad=function(){var W,k,C;return(C=(W=globalThis.performance)==null?void 0:(k=W.now)==null?void 0:k.call(W))!=null?C:Date.now()};
w43=function(W,k,C){if(W.disable)return new AMw;k=k?SeX(k):[];if(C)return C.m5A(k),C.share();W={vY:W.vY,lKl:W.nl3,oqd:W.lDI,destinationUrl:W.destinationUrl,ilx:W.ilx,voA:W.voA};C=k;C=C===void 0?[]:C;return new FKJ(W,C)};
_.x7I=function(W){if(!W)return null;W=_.FK(W,4);return W===null||W===void 0?null:_.to(W)};
Eg4=function(W,k){return k?l5p(k):W?tfX(W):Promise.resolve()};
l5p=function(W){return new Promise(function(k,C){var n=_.wu("SCRIPT"),N=_.x7I(W);_.LL(n,N);n.onload=function(){_.xL(n);k()};
n.onerror=function(){_.xL(n);C(Error("Ja"))};
(lg("HEAD")[0]||document.documentElement).appendChild(n)})};
tfX=function(W){return new Promise(function(k){var C=_.wu("SCRIPT");if(W){var n=_.FK(W,6);n=n===null||n===void 0?null:_.Uz(n)}else n=null;_.Oz(C,n);(lg("HEAD")[0]||document.documentElement).appendChild(C);_.xL(C);k()})};
td=function(W,k,C){var n,N=new Promise(function(B){n=setTimeout(B,k)});
return Promise.race([W.finally(function(){return void clearTimeout(n)}),
N.then(C)])};
a53=function(W,k){try{return globalThis.sessionStorage.setItem(W,k),!0}catch(C){return!1}};
X4w=function(W,k,C,n){k=k===void 0?0:k;C=C===void 0?W.length:C;var N=0;for(n&&(N=X4w(n));k<C;k++)n=typeof W==="string"?W.charCodeAt(k):W[k],N=f5w(31,N)+n|0;return N};
d7w=function(W,k){return[X4w(W,0,W.length>>1,k),X4w(W,W.length>>1)]};
m7J=function(W){var k=_.b(d7w(W,Eg));W=k.next().value;k=k.next().value;return W.toString(16)+k.toString(16)};
zl3=function(W,k){var C=d7w(k);W=new Uint32Array(W.buffer);k=W[0];var n=_.b(C);C=n.next().value;n=n.next().value;for(var N=1;N<W.length;N+=2){for(var B=k,A=N,w=C,x=n,E=0;E<22;E++)A=A>>>8|A<<24,A+=B|0,A^=w+38293,B=B<<3|B>>>29,B^=A,x=x>>>8|x<<24,x+=w|0,x^=E+38293,w=w<<3|w>>>29,w^=x;B=[B,A];W[N]^=B[0];N+1<W.length&&(W[N+1]^=B[1])}};
D7X=function(W,k,C,n,N){var B=(4-(Eg.length+C.length)%4)%4,A=new Uint8Array(4+B+Eg.length+4+C.length),w=new DataView(A.buffer),x=0;w.setUint32(x,Math.random()*4294967295);x=x+4+B;A.set(Eg,x);x+=Eg.length;w.setUint32(x,N);A.set(C,x+4);zl3(A,n);return W.insert(k,function(E){return void globalThis.sessionStorage.removeItem(E)})?a53(k,_.zC(A))?"s":"t":"i"};
VfK=function(W,k){var C=globalThis.sessionStorage.getItem(W);if(!C)return["m"];try{var n=_.Pw(C);zl3(n,k)}catch(N){return globalThis.sessionStorage.removeItem(W),["c"]}for(k=4;k<7&&n[k]===0;)k++;for(C=0;C<Eg.length;C++)if(n[k++]!==Eg[C])return globalThis.sessionStorage.removeItem(W),["d"];C=(new DataView(n.buffer)).getUint32(k);return Math.floor(Date.now()/1E3)>=C?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(n.buffer,k+4)]};
JMz=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.aL(W)};
cMX=function(W){var k=W,C;return function(){if(k){var n=k;k=void 0;C=n.apply(this,arguments)}return C}};
Shp=function(W){return v8(function(k){if(k instanceof W)return!0;var C,n,N=k==null?void 0:(C=k.ownerDocument)==null?void 0:(n=C.defaultView)==null?void 0:n[W.name];return I5z(N)&&k instanceof N})};
_.du=function(W,k,C){_.XK.call(this);this.JSC$7874_listener_=W;this.JSC$7874_interval_=k||0;this.handler_=C;this.callback_=(0,_.fN)(this.JSC$7876_doAction_,this)};
_.mJ=function(W){W=MfX(W);return _.to(W)};
MfX=function(W){return W===null?"null":W===void 0?"undefined":W};
p4K=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return QXm(function(){return _.F(function(k){document.activeElement&&document.activeElement.blur();return k.return(QXm(function(){W.focus()}))})})};
_.vg2=function(W){var k=k===void 0?5:k;setTimeout(function(){var C;return _.F(function(n){n.nextAddress==1&&(C=document.activeElement);if(n.nextAddress!=5)return(document.activeElement===C||document.activeElement===document.body)&&k>=0&&W?_.l(n,p4K(W),5):n.jumpTo(0);if(document.activeElement===W)return n.return();W=W.parentElement;--k;return n.jumpTo(2)})},15)};
QXm=function(W){return new Promise(function(k){requestAnimationFrame(function(){k(W())})})};
sX2=function(W){if(_.zb)W(_.zb);else{var k;((k=elP)!=null?k:elP=[]).push(W)}};
VQ=function(){!_.zb&&_.D0&&_.GW4(_.D0());return _.zb};
_.GW4=function(W){_.zb=W;var k;(k=elP)==null||k.forEach(sX2);elP=void 0};
_.Jd=function(W){_.zb&&_.zb.beforeLoadModuleCode(W)};
_.cf=function(){_.zb&&_.zb.JSC$8813_setLoaded()};
IL=function(W){return(0,_.mi)(W)?Number(W):String(W)};
yMm=function(W){this.action=W;this.wfv=!1};
$7X=function(W,k){yMm.call(this,"set-drive-options");this.appId=W;this.appOrigin=k};
ZH4=function(W){yMm.call(this,"visibility");this.visible=W};
RlK=function(W,k,C){S_.call(this,W,k,C)};
ogz=function(W){MD.call(this,W)};
iHK=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
qhm=function(W,k){var C=k&&k.getWindow()||window;if(iHK(k))W();else if(TdP)TdP.push(W);else var n=TdP=[W],N=C.setInterval(function(){if(iHK(k)){C.clearInterval(N);for(var B=0;B<n.length;B++)n[B]();TdP=null}},100)};
U7m=function(W,k){var C=new QQ(W);_.Bf(k,C);var n={passive:!1};k.listen(C,"mousewheel",function(N){return void uV3(W,N)},n).listen(W,"scroll",function(N){return void uV3(W,N)},n)};
uV3=function(W,k){var C;a:{for(C=k.target;C;){if(C.nodeType==1){var n=_.pN(C,"overflowY");if(n=="auto"||n=="scroll")break a}C=C.parentNode}C=null}if(!C||!_.vf(W,C)||C.scrollHeight==C.clientHeight||k.deltaY>0&&Math.abs(C.scrollTop-(C.scrollHeight-C.clientHeight))<=1||k.deltaY<0&&C.scrollTop==0)k.preventDefault(),k.stopPropagation()};
RL=function(W,k,C,n,N,B,A,w,x){w=w===void 0?!1:w;x=x===void 0?!1:x;S_.call(this,void 0,void 0,void 0);S_.call(this,B?B+" picker modal-dialog":"picker modal-dialog",!0,C);_.e_(W,"protocol");this.iframeManager_=new OH2;this.targetId_=sg();this.rpcToken_=sg();W=_.Gb(W);_.yQ(W,"hostId");C=_.yQ(W,"parent");this.useGapi_=!x&&!0||(C==null?void 0:C.includes("onepick.corp.google.com"));w&&_.$L(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=n;this.preferredDialogHeight_=N;n!==void 0||
N!==void 0?n=!0:(n=_.yQ(_.Gb(W.toString()),"hostId"),LKp||(LKp=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),n=!LKp.has(n));this.autoSizeDialog_=n;this.JSC$8064_gadgetsDomHelper_=A||this.JSC$8015_dom_;k&&(A=this.JSC$8064_gadgetsDomHelper_,k=_.yQ(_.Gb(this.JSC$8066_url_),"grugl")=="true"?jXJ:HH4,iHK(A)||(A=A||aO(document),n=A.createElement("SCRIPT"),_.LL(n,k),n.type="text/javascript",A.JSC$7241_document_.body.appendChild(n)));
W=W.toString();k=null;A=W.indexOf("/picker?");A>-1?k=W.substring(0,A+8-1):w3(W,"/picker")&&(k=W);k&&this.setRelayUrl(k+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$8049_element_=this.buttonEl_,W.render()):_.jN(this.buttonEl_,rMX),_.Z0(this.buttonEl_,!!this.buttons_))};
_.hlK=function(W){var k=k===void 0?ggX:k;var C=_.Hw(W),n=function(B){B=_.b(B);B.next();B=oL(B);return k(C,B)},N=function(B){var A=_.b(B);
B=A.next().value;A=oL(A);return W.apply(B,A)};
return function(){var B=_.v6.apply(0,arguments),A=this||_.NX,w=PpX.get(A);w||(w={},PpX.set(A,w));return _.KKI(w,[this].concat(_.J8(B)),N,n)}};
ig=function(W){var k={};W=W.replace(/\r/g,"").split("\n");for(var C=0;C<W.length;C++){var n=W[C],N=n.indexOf(":");N<0||(k[n.substring(0,N)]=n.substring(N+2,n.length))}return k};
Wa2=function(W,k,C){C=C===void 0?function(){}:C;
k=_.b(k);for(var n=k.next();!n.done;n=k.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;if(n instanceof Array&&n.includes(W)||n===W)return N()}return C()};
_.Tb=function(W,k,C){C=C===void 0?function(){}:C;
return W?k():C()};
_.Cep=function(W){var k;return((k=kw2.documentOverride)!=null?k:W).__wizdispatcher};
ug=function(W){var k=qD;qD=W;return k};
NKw=function(W,k){var C;if((C=W)==null?0:C.isDisposed)throw Error("nb`"+String(W.debugName));for(;W!==void 0;){C=W;if(C.retrieve)return C.retrieve(k,{optional:!0});W=W.parent}return n1w};
Ug=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
YLP=function(W){var k=ug(W);W={};return W[Symbol.dispose]=function(){ug(k)},W};
BKJ=function(W,k){W.disposables||(W.disposables=[]);W.disposables.push(k)};
Og=function(W){var k=qD;k&&!k.isDisposed&&(BKJ(k,function(){return void bvP(W)}),W.parent=k)};
AEX=function(W){if(W.disposables){for(var k=_.b(W.disposables),C=k.next();!C.done;C=k.next())C=C.value,C();W.disposables.length=0}};
bvP=function(W){if(!W.isDisposed){W.isDisposed=!0;var k;(k=W[Symbol.dispose])==null||k.call(W);delete W.parent;AEX(W)}};
X$z=function(W){var k={retrieve:function(C){switch(C.\u0275prov.token){case Fac.\u0275prov.token:var n=W.rootElement;break;case w$4.\u0275prov.token:n=W.modelRootElement;break;case xqK.\u0275prov.token:n=W.appContext;break;case l3z.\u0275prov.token:n=W.rendererData;break;case tkX.\u0275prov.token:n=W.injectingConstructor;break;case E1P.\u0275prov.token:n=W.dispatcher}if(n)C=n;else a:{for(n=k.parent;n;){var N=n;if(N.retrieve){C=N.retrieve(C);break a}n=n.parent}n=C.\u0275prov.token;N=a32[n];N!==void 0?
C=N:(N=C.\u0275prov.providedIn,C.\u0275prov.factory?(C=C.\u0275prov.factory(),n&&N==="root"&&(a32[n]=C)):C=n1w)}return C}};
Og(k);return k};
dqI=function(W){var k="";var C=_.NX._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var n=W.tagName.toUpperCase();if(n=="SCRIPT"||n=="LINK")k=W.src?W.src:W.getAttribute("href")}if(C&&k){if(C!=k)throw Error("vb`"+C+"`"+k);k=C}else k=C||k;if(!f32(k))throw Error("wb");return k};
DqJ=function(){if(!mqz){mqz=!0;try{var W=dqI(_.NX._F_jsUrl?"":"base-js")}catch(n){return}var k=zuw(LN(W)),C=Object.keys(k);C.length!==0&&sX2(function(n){for(var N=_.b(C),B=N.next();!B.done;B=N.next()){B=B.value;for(var A=_.b(Object.keys(k[B])),w=A.next();!w.done;w=A.next())n.addExtraEdge(B,w.value)}})}};
Vk2=function(W,k,C){var n;return W&&k?W+"__"+k:(n=W!=null?W:k)!=null?n:C};
cE3=function(){var W=Object.assign({},JE4);Object.getOwnPropertyNames(JE4).forEach(function(k){j_[k]!==void 0&&(W[k]=j_[k])});
return W};
I33=function(W,k){if(j_.enablePerformanceTiming){var C,n;(n=(C=performance).mark)==null||n.call(C,W+"Start__"+k)}};
SLP=function(W,k){if(j_.enablePerformanceTiming){var C,n;(n=(C=performance).measure)==null||n.call(C,W+"__"+k,W+"Start__"+k)}};
QMp=function(W,k){var C=Object.create(Mkc);C.debugName=k;!qD||Og(C);k=ug(C);try{W(C)}finally{ug(k)}return function(){return void bvP(C)}};
euz=function(W){return p$p(W)&&v1m in W};
sMz=function(W,k){return Object.is(W,k)};
ru=function(W){var k=Hf;Hf=W;return k};
WwX=function(W){if(gu)throw Error("da");if(Hf!==null){var k=Hf.nextProducerIndex++;Gwp(Hf);k<Hf.producerNode.length&&Hf.producerNode[k]!==W&&Pf(Hf)&&yEz(Hf.producerNode[k],Hf.producerIndexOfThis[k]);Hf.producerNode[k]!==W&&(Hf.producerNode[k]=W,Hf.producerIndexOfThis[k]=Pf(Hf)?hu2(W,Hf,k):0);Hf.producerLastReadVersion[k]=W.version}};
nIp=function(W){if(!Pf(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==kJX)(W.producerMustRecompute(W)||CT2(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=kJX};
NIP=function(W){if(W.liveConsumerNode!==void 0){var k=gu;gu=!0;try{for(var C=_.b(W.liveConsumerNode),n=C.next();!n.done;n=C.next()){var N=n.value;N.dirty||(W=void 0,N.dirty=!0,NIP(N),(W=N.consumerMarkedDirty)==null||W.call(N,N))}}finally{gu=k}}};
YKP=function(){var W;return((W=Hf)==null?void 0:W.consumerAllowSignalWrites)!==!1};
BIP=function(W){W&&(W.nextProducerIndex=0);return ru(W)};
bM3=function(W,k){ru(k);if(W&&W.producerNode!==void 0&&W.producerIndexOfThis!==void 0&&W.producerLastReadVersion!==void 0){if(Pf(W))for(k=W.nextProducerIndex;k<W.producerNode.length;k++)yEz(W.producerNode[k],W.producerIndexOfThis[k]);for(;W.producerNode.length>W.nextProducerIndex;)W.producerNode.pop(),W.producerLastReadVersion.pop(),W.producerIndexOfThis.pop()}};
CT2=function(W){Gwp(W);for(var k=0;k<W.producerNode.length;k++){var C=W.producerNode[k],n=W.producerLastReadVersion[k];if(n!==C.version)return!0;nIp(C);if(n!==C.version)return!0}return!1};
hu2=function(W,k,C){AB4(W);if(W.liveConsumerNode.length===0&&W.producerNode!==void 0)for(var n=0;n<W.producerNode.length;n++)W.producerIndexOfThis[n]=hu2(W.producerNode[n],W,n);W.liveConsumerIndexOfThis.push(C);return W.liveConsumerNode.push(k)-1};
yEz=function(W,k){AB4(W);if(W.liveConsumerNode.length===1&&W.producerNode!==void 0)for(var C=0;C<W.producerNode.length;C++)yEz(W.producerNode[C],W.producerIndexOfThis[C]);C=W.liveConsumerNode.length-1;W.liveConsumerNode[k]=W.liveConsumerNode[C];W.liveConsumerIndexOfThis[k]=W.liveConsumerIndexOfThis[C];W.liveConsumerNode.length--;W.liveConsumerIndexOfThis.length--;k<W.liveConsumerNode.length&&(C=W.liveConsumerIndexOfThis[k],W=W.liveConsumerNode[k],Gwp(W),W.producerIndexOfThis[C]=k)};
Pf=function(W){var k,C;return W.consumerIsAlwaysLive||((C=W==null?void 0:(k=W.liveConsumerNode)==null?void 0:k.length)!=null?C:0)>0};
Gwp=function(W){W.producerNode!=null||(W.producerNode=[]);W.producerIndexOfThis!=null||(W.producerIndexOfThis=[]);W.producerLastReadVersion!=null||(W.producerLastReadVersion=[])};
AB4=function(W){W.liveConsumerNode!=null||(W.liveConsumerNode=[]);W.liveConsumerIndexOfThis!=null||(W.liveConsumerIndexOfThis=[])};
wxw=function(W){var k=Object.create(Fwp);k.computation=W;W=function(){nIp(k);WwX(k);if(k.value===KN)throw k.error;return k.value};
W[hd]=k;return W};
lxP=function(W){var k=Object.create(xPz);k.value=W;W=function(){WwX(k);return k.value};
W[hd]=k;return W};
axP=function(W){W=lxP(W);var k=W[hd];return[W,function(C){return t6J(k,C)},
function(C){YKP()||EI2(k);t6J(k,C(k.value))}]};
t6J=function(W,k){YKP()||EI2(W);if(!W.equal(W.value,k)){W.value=k;W.version++;kJX++;NIP(W);var C;(C=XxI)==null||C(W)}};
WH=function(W){var k=ru(null);try{return W()}finally{ru(k)}};
_.kw=function(W,k,C){C=C===void 0?"":C;W=_.b(axP(W));var n=W.next().value,N=W.next().value,B=W.next().value,A=n[hd];A.debugName=Vk2(k==null?void 0:k.debugName,C,"[signal]");(k==null?void 0:k.equals)!=null&&(A.equal=k.equals);return[n,function(w){fxm(function(){return void N(w)},A)},
function(w){fxm(function(){return void B(w)},A)}]};
fxm=function(W,k){I33("signalSet",k.debugName);try{W()}finally{SLP("signalSet",k.debugName)}};
mPz=function(W,k){var C=_.b(_.kw(W,void 0,"cPpJzc"));W=C.next().value;C=C.next().value;W[dPw]=C;W[Cy]=k;return W};
z62=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
DPX=function(W){return typeof W==="function"&&dPw in W&&typeof W[dPw]==="function"};
V63=function(W,k){Object.defineProperty(W,Cy,{get:function(){return k}})};
Nf=function(W,k){if(ny(W)){var C=W.map(function(B){return Nf(B,k)});
V63(C,k);return C}if(z62(W)){C={};W=_.b(Object.entries(W));for(var n=W.next();!n.done;n=W.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;C[n]=Nf(N,k)}V63(C,k);return C}return mPz(W,k)};
JBI=function(W){if(ny(W))return W.map(function(N){return JBI(N)});
if(z62(W)){var k={};W=_.b(Object.entries(W));for(var C=W.next();!C.done;C=W.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;k[C]=JBI(n)}return k}return DPX(W)?W():W};
Ixz=function(){var W={height:0,width:0};if(!z62(W))throw Error("Hb");var k=Symbol("Ib");return[Nf(W,k),function(C,n){if(C[Cy]===k)if(typeof n==="function"){var N=[].concat(_.J8(JBI(C)));n=n(N)||N;cBX(C,[].concat(_.J8(n)))}else cBX(C,n);else throw Error("Jb");}]};
cBX=function(W,k){if(DPX(W))W[dPw](k);else if(ny(W)&&ny(k))k=Nf(k,W[Cy]),W.length=0,W.push.apply(W,_.J8(k));else if((z62(W)||ny(W))&&(ny(k)||typeof k==="object"&&k!==null)){k=_.b(Object.entries(k));for(var C=k.next();!C.done;C=k.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;var N=W,B=N[C];Object.hasOwn(W,C)?cBX(B,n):N[C]=Nf(n,W[Cy])}}else throw Error("Kb");};
SKJ=function(W){return Object.create(Object.assign({},Yw,W))};
Q94=function(){var W;return(W=M6p)!=null?W:M6p=SKJ({consumerAllowSignalWrites:!0})};
_.BH=function(W,k,C){C=C===void 0?"":C;W=wxw(W);var n=W[hd];n.debugName=Vk2(k==null?void 0:k.debugName,C,"[computed]");(k==null?void 0:k.equals)!=null&&(n.equal=k.equals);return W};
bR=function(W){var k=ru(pxX);try{W()}finally{ru(k)}};
$P3=function(W){if(!W.isDisposed){switch(W.effectType){case vI4:e6X.schedule(W);break;case s9J:GJX.schedule(W);break;default:_.oI(W.effectType)}W.hasRun||yBP()}};
R6w=function(W){ZMP.push(W);return function(){var k=ZMP.indexOf(W);k!==-1&&ZMP.splice(k,1)}};
yBP=function(){for(var W=_.b(oIw),k=W.next();!k.done;k=W.next())k.value.flush()};
TIm=function(W){for(var k=_.b(W),C=k.next();!C.done;C=k.next()){var n=C.value;for(C=[n];n.parent!==void 0;)n=n.parent,iMw(n)&&W.has(n)&&C.push(n);for(;C.length>0;){n=_.QY(C.pop());try{n.run()}finally{W.delete(n)}}}};
UPw=function(W){qK2--;if(W)uP3.length=0;else if(!(qK2>0))for(;uP3.length>0;){W=uP3.shift();if(!W)throw Error("Lb");try{W()}catch(k){Yz(k)}}};
OMP=function(W){var k=W.component;var C=W.debugInstance;W=W.fn;var n,N=(n=k.debugName)!=null?n:k.name;AY={name:C?N+" ("+C+")":N,isReactive:k.componentType!==xw,parent:AY};k=W();AY=AY.parent;return k};
lR=function(){var W=AY;return W?W.isReactive:!1};
tY=function(W,k){k=k===void 0?{}:k;var C=AY;k.stack&&(AY=k.stack);try{return W()}catch(w){W=w;k=AY;for(var n=0,N=k;N!==null;)n++,N=N.parent;if(n!==0&&!W.componentStack)try{if(W.componentStack=k,j_.enableComponentStacksInErrorMessages){var B=Lww(k),A=W.message+"\n\nComponent stack: "+B;W.stack&&(W.stack=W.stack.replace(W.message,A));W.message=A}}catch(x){}if(W!==j9J){HMI=AY;B=[];for(A=qD;A;)k=void 0,B.push((k=A.debugName)!=null?k:"[context]"),k=void 0,A=(k=A.parent)!=null?k:null;rB3=B.reverse()}j9J=
W;throw W;}finally{AY=C}};
Lww=function(W){for(var k=[];k.length<20&&W;)k.push(W.name),W=W.parent;return k.join(" > ")};
gIz=function(W,k,C){k=Object.create(k);k.componentStack=AY;k.effectFn=W;C&&(k.debugName=C);Og(k);return k};
Eo=function(W,k,C){C=C===void 0?3:C;var n=HMI,N,B;var A=(B=(N=rB3)==null?void 0:N.slice())!=null?B:[];k={componentStack:n,contextTrace:A,errorSeverity:C,featureFlags:cE3(),tagName:k};return[W,k]};
_.aW=function(W,k){W=gIz(W,PTw,k);k=Hf;if(iMw(k)&&k.effectType===s9J){var C;(C=j_.handleError)==null||C.call.apply(C,[j_].concat(_.J8(Eo(Error("tb")))))}$P3(W)};
_.XM=function(W,k){W=gIz(W,Kw2,k);$P3(W)};
_.fy=function(W){var k=qD;if(k){var C=AY;BKJ(k,function(){var n=ru(Q94());try{tY(function(){return void W()},{stack:C})}finally{ru(n)}})}};
dw=function(W,k){var C={};(k===void 0||k)&&Og(C);k=ug(C);try{W(C)}finally{ug(k)}return function(){return void bvP(C)}};
_.m$=function(W){return typeof W==="function"?W():(W==null?0:W[h6w])?W.get():W};
W5X=function(W){if(qD)throw Error("rb");dw(W,!1)};
zm=function(W,k){W=ug(W);try{return WH(k)}finally{ug(W)}};
n6m=function(W,k,C){if(Object.hasOwnProperty.call(kXw,W)&&(W=kXw[W],Object.hasOwnProperty.call(W,k)&&(W=W[k],W instanceof Array))){for(var n=null,N=!1,B=0,A=W.length;B<A;++B){var w=W[B],x=w.contingentAttribute;if(!x)return w.contract;n===null&&(n={});x=Object.hasOwnProperty.call(n,x)?n[x]:n[x]=C(x);if(x===w.requiredValue)return w.contract;x==null&&(N=!0)}if(N)return null}k=CD3[k];return typeof k==="number"?k:null};
B0P=function(W,k,C){var n=null;(W=N0m[W])&&(n=W[k]);return typeof n!=="number"&&((W=N0m["*"])&&(n=W[k]),typeof n!=="number")?!1:!0===Yd2[n][String(C).toLowerCase()]};
ADJ=function(W,k){k=n6m(W.toLowerCase(),k,function(){var n;(n=j_.handleError)==null||n.call.apply(n,[j_].concat(_.J8(Eo(Error("Qb"),W.toLowerCase()))))});
if(k===null)return null;var C;return(C=btm[k])!=null?C:null};
F5K=function(W,k,C){if(C===null||C===void 0)return C;W=ADJ(W,k);return W===null?C:W(k,C)};
wm3=function(){};
DD=function(W,k){for(;W.length>k;)W.pop()};
xZP=function(W){W=Array(W);DD(W,0);return W};
lRJ=function(W,k,C){if(C==null)W.removeAttribute(k);else{var n;(n=k.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":k.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(n,k,C):W.setAttribute(k,C)}};
t9m=function(W,k,C){W[k]=C};
aRm=function(W,k,C){W=W.style;if(typeof C==="string")W.cssText=C;else{W.cssText="";for(var n in C)if(E6K.call(C,n)){k=W;var N=n,B=C[n];N.indexOf("-")>=0?k.setProperty(N,B):k[N]=B}}};
XmI=function(W,k,C){var n=typeof C;n==="object"||n==="function"?W[k]=C:lRJ(W,k,C)};
fRz=function(){var W=new wm3;W[V7.default]=XmI;W.style=aRm;return W};
dZX=function(W,k,C,n){(n[k]||n[V7.default])(W,k,C)};
zIX=function(W,k,C){k=new mZ4(k,C);return W.__incrementalDOMData=k};
JY=function(W,k){if(W.__incrementalDOMData)return W.__incrementalDOMData;var C=W.nodeType===1?W.localName:W.nodeName,n=W.nodeType===1?W.getAttribute("key"):null;k=zIX(W,C,W.nodeType===1?n||k:null);if(W.nodeType===1&&(W=W.attributes,C=W.length)){n=k._attrsArr||(k._attrsArr=xZP(C*2));for(var N=0,B=0;N<C;N+=1,B+=2){var A=W[N],w=A.value;n[B]=A.name;n[B+1]=w}}return k};
DZJ=function(W,k,C,n,N){return k==C&&n==N};
V9K=function(W){for(var k=cH,C=Sw();C!==W;){var n=C.nextSibling;k.removeChild(C);Mf.deleted.push(C);C=n}};
Sw=function(){return Q7?Q7.nextSibling:cH.firstChild};
py=function(){Q7=Sw()};
IRX=function(W,k,C){py();var n;a:{if(n=Q7){do{var N=n,B=W,A=k,w=JY(N,A);if(JDp(N,B,w.nameOrCtor,A,w.key))break a}while(k&&(n=n.nextSibling))}n=null}n||(W==="#text"?(C=vH.createTextNode(""),zIX(C,"#text",null),W=C):(n=vH,N=cH,typeof W==="function"?n=new W:n=(N=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":N==null||JY(N).nameOrCtor==="foreignObject"?null:N.namespaceURI)?n.createElementNS(N,W):n.createElement(W),zIX(n,W,k),W=n,C&&W.setAttribute("nonce",C)),Mf.created.push(W),
n=W);C=n;if(C!==Q7){if(cD2.indexOf(C)>=0)for(W=cH,k=C.nextSibling,n=Q7;n!==null&&n!==C;)N=n.nextSibling,W.insertBefore(n,k),n=N;else cH.insertBefore(C,Q7);Q7=C}};
Sd3=function(W,k,C){IRX(W,k,C);cH=Q7;Q7=null;return cH};
M94=function(){V9K(null);Q7=cH;cH=cH.parentNode};
so=function(){Q7=cH.lastChild};
v6m=function(W,k){k=k===void 0?{}:k;var C=k.matches===void 0?DZJ:k.matches;return function(n,N,B){var A=Mf,w=vH,x=cD2,E=Gm,a=y7,X=Q7,d=cH,V=JDp;vH=n.ownerDocument;Mf=new Qqc(n);JDp=C;Gm=[];y7=[];Q7=null;var c=cH=n.parentNode,M,p=pmm.call(n);if((M=p.nodeType===11||p.nodeType===9?p.activeElement:null)&&n.contains(M)){for(p=[];M!==c;)p.push(M),M=M.parentNode||(c?M.host:null);c=p}else c=[];cD2=c;try{return W(n,N,B)}finally{n=Mf,$w&&n.deleted.length>0&&$w(n.deleted),vH=w,Mf=A,JDp=V,Gm=E,y7=a,Q7=X,cH=d,
cD2=x}}};
eII=function(W,k,C,n){ZD.push(dZX);ZD.push(W);ZD.push(k);ZD.push(C);ZD.push(n)};
GXp=function(W,k,C){var n=y7;k=k._attrsArr||(k._attrsArr=xZP(n.length));for(var N=!k.length||!1,B=0;B<n.length;B+=2){var A=n[B];if(N)k[B]=A;else if(k[B]!==A)break;var w=n[B+1];if(N||k[B+1]!==w)k[B+1]=w,eII(W,A,w,C)}if(B<n.length||B<k.length){for(B=N=B;B<k.length;B+=2)RW[k[B]]=k[B+1];for(B=N;B<n.length;B+=2)N=n[B],A=n[B+1],RW[N]!==A&&eII(W,N,A,C),k[B]=N,k[B+1]=A,delete RW[N];DD(k,n.length);for(var x in RW)eII(W,x,void 0,C),delete RW[x]}W=sqp;sqp=C=ZD.length;for(x=W;x<C;x+=5)(0,ZD[x])(ZD[x+1],ZD[x+
2],ZD[x+3],ZD[x+4]);sqp=W;DD(ZD,W);DD(n,0)};
oW=function(W){IRX("#text",null);var k=Q7;var C=JY(k);if(C.text!==W){C=C.text=W;for(var n=1;n<arguments.length;n+=1)C=(0,arguments[n])(C);k.data!==C&&(k.data=C)}};
itw=function(W,k,C){if(C===!1&&yDI.has(k))lRJ(W,k,null);else if(k!=="idomKey"&&k!=="skip"&&k!=="skipchildren"&&k!=="children"&&k!=="el"){if(k.startsWith("on"))if(k[2]===":"){if(C===void 0||C===null){var n;(n=j_.handleError)==null||n.call.apply(n,[j_].concat(_.J8(Eo(Error("Wb`"+k),W.tagName))));W[k]=void 0;return}if(typeof C!=="object"||C===null)throw Error("Xb`"+k+"`"+typeof C);if(typeof C.getFn!=="function")throw Error("Yb`"+k+"`"+Object.keys(C));var N=C.getFn(0),B=k.slice(3);if((n=lR())&&W["on"+
B]===void 0)W.addEventListener(B,N),_.fy(function(){return void W.removeEventListener(B,N)});
else if(n||!$Zc.includes(B))W["on"+B]=N}else{Ztw(W,k,C);return}else if(k.startsWith("data-")&&typeof C==="string")try{C=RIc(C)}catch(A){C="zSoyz"}typeof C!=="function"||W._disposeEffects!=null?(j_.enableAttributeSanitization&&(C=F5K(W.tagName,k,C)),k==="style"?o62(W,k,C):k.startsWith("prop:")?(k=k.slice(5),W[k]=C):Ztw(W,k,C)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(k))}};
T0p=function(W,k,C){C=(C===void 0?{}:C).isReactive;if(k==null?0:k.el){var n=k.el;if(typeof n==="function")n(W);else{var N;(N=n.onRender)==null||N.call(n,W);W._disposeRef||(W._disposeRef=function(){var B;(B=n.onUnmount)==null||B.call(n);delete W._disposeRef},C&&_.fy(function(){var B;
return void((B=W._disposeRef)==null?void 0:B.call(W))}))}}};
qdJ=function(W){return p$p(W)&&iR in W};
uwc=function(W){return qdJ(W)?W[iR].flattened:W};
UZJ=function(W,k){var C=_.v6.apply(2,arguments),n;k=(n=k)!=null?n:{};n={};return n.type=W,n.props=k,n.children=C,n[Tm]=!0,n};
_.qf=function(W){return W.children};
uR=function(W){var k=OtX!==UZJ;OtX=W?L5m:UZJ;return k};
Uo=function(W){return _.O2(W)?"nodeType"in W:!1};
Oo=function(){return document.createTextNode("")};
Ly=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
jqw=function(W){var k=document.createElement("div");if(!(W instanceof yG)){if(W.contentKind!==jw)throw Error("Ub");W=$3(W.toString())}_.jN(k,W);W=_.b(k.childNodes);for(var C=W.next();!C.done;C=W.next())C.value._isSafeOrSanitizedHtmlNode=!0;return k};
HH=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
Htp=function(W){return W instanceof l5||Dl(W)||"function"==typeof _.P6&&W instanceof _.P6||!1};
rDw=function(W,k){var C=W.parentElement;if(!C)return k;C.replaceChild(k,W);return k};
g6p=function(W,k){var C=W[0].parentElement;if(C)if(W[0].previousSibling||W[W.length-1].nextSibling){C.insertBefore(k,W[0]);for(var n=W.length-1;n>=0;n--)C.removeChild(W[n])}else C.textContent="",C.appendChild(k);return k};
PDX=function(W,k){if(W[0].parentElement)for(var C=W[0].parentElement,n=k.length,N=W.length,B=n,A=0,w=0,x=W[N-1].nextSibling,E=null;A<N||w<B;)if(W[A]===k[w])A++,w++;else{for(;W[N-1]===k[B-1];)N--,B--;if(N===A)for(var a=B<n?w?k[w-1].nextSibling:k[B-w]:x;w<B;){var X=k[w++];C.insertBefore(X,a)}else if(B===w)for(;A<N;)a=W[A],E&&E.has(a)||C.removeChild(a),A++;else if(W[A]===k[B-1]&&k[w]===W[N-1])a=W[--N].nextSibling,C.insertBefore(k[w++],W[A++].nextSibling),C.insertBefore(k[--B],a),W[N]=k[B];else{if(!E)for(E=
new Map,a=w;a<B;)E.set(k[a],a++);a=E.get(W[A]);if(a==null)C.removeChild(W[A]),A++;else if(w<a&&a<B){X=A;for(var d=1,V=void 0;++X<N&&X<B&&(V=E.get(W[X]))!=null&&V===a+d;)d++;if(d>a-w)for(X=W[A];w<a;)C.insertBefore(k[w++],X);else C.replaceChild(k[w++],W[A++])}else A++}}return k};
hIw=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("gc`"+W.length+"`"+W.map(K5p).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.u5)){var k,C;if((k=window)==null?0:(C=k.trustedTypes)==null?0:C.isScript(W))throw Error("fc");if(String(W).trim().length===0)return null;throw Error("hc`"+K5p(W));}return W};
WQX=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("ic`"+W.length+"`"+W.map(K5p).join(", "));W=W[0]}if(W==null)return null;if(!K_z(W)){if(String(W).trim().length===0)return null;throw Error("jc`"+K5p(W));}return W};
K5p=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
CdP=function(W,k){return k73(W,k)};
k73=function(W,k){function C(){N=!1;qK2++;var B=n[0],A=n[iR].flattened,w=uR(!0);try{var x=W(),E=nem(B,x,n);Array.isArray(E)||(n[iR].flattened=[E]);var a=n[iR].flattened;if(A&&(!Array.isArray(A)||A.length!==0)){var X=Array.isArray(A)?A[0]:A,d=X[rw],V=X._disposeEffects;X._disposeEffects=void 0;X=Array.isArray(a)?a[0]:a;X[rw]=d;X[rw]&&(X[rw].numNodes=X===a?1:a.length);X._disposeEffects=V}n[0]=E;UPw(!1)}catch(c){throw UPw(!0),c;}finally{uR(w)}}
var n=Na4(),N=!0;_.aW(function(){(Ykm==null?0:Ykm.logger)&&!N?Ykm.logger.logGraft(n[0],C):C()},k);
return n};
nem=function(W,k,C){for(;typeof k==="function";)k=k();if(k!=null&&k[Tm]){var n,N,B;(B=j_.handleError)==null||B.call.apply(B,[j_].concat(_.J8(Eo(Error("kc`"+((n=k.type)==null?void 0:n.TAG_NAME)),(N=k.type)==null?void 0:N.TAG_NAME))))}if(W==null)return k==null?Oo():HH(k)?Ly(k):Htp(k)?Ly(k.toString()):Uo(k)?k:k.length===0?Oo():BaX(k,C);if(Uo(W)){if(k==null)return rDw(W,Oo());if(HH(k))return bY3(W,k);if(Htp(k))return bY3(W,k.toString());if(Uo(k))return rDw(W,k);if(k.length===0)return rDw(W,Oo());k=BaX(k,
C);PDX([W],C[iR].flattened);return k}W=gw(W);if(k==null)return g6p(W,Oo());if(HH(k))return g6p(W,Ly(k));if(Htp(k))return g6p(W,Ly(k.toString()));if(Uo(k))return PDX(W,[k])[0];if(k.length===0)return g6p(W,Oo());k=BaX(k,C);PDX(W,C[iR].flattened);return k};
bY3=function(W,k){W.nodeType===Node.TEXT_NODE?W.textContent!==String(k)&&(W.textContent=String(k)):W=rDw(W,Ly(k));return W};
gw=function(W,k,C){return AAm(W,k!=null?k:[],C===void 0?!1:C)};
BaX=function(W,k){var C=gw(W,void 0,!0);if(C.length===0)return Oo();k[iR].flattened=C;return W};
AAm=function(W,k,C,n,N){k=k===void 0?[]:k;C=C===void 0?!1:C;N=N===void 0?-1:N;if(W==null)return k;if(W instanceof PH)return W=W.render(),AAm(W,k,C,n,N);if(Uo(k)&&k.nodeType===Node.ELEMENT_NODE)switch(k.tagName){case "SCRIPT":C=hIw(W);C!==null&&_.Oz(k,C);return;case "STYLE":C=WQX(W);C!==null&&(k.textContent=_.hrz(C));return}HH(W)&&(W=Ly(W),n&&C&&(n[N]=W));if(W!=null&&W.contentKind===jw||W instanceof yG){C=jqw(W);C=Array.from(C.childNodes);C=_.b(C);for(W=C.next();!W.done;W=C.next())FQ4(k,W.value);return k}Htp(W)&&
(W=Ly(W.toString()),n&&C&&(n[N]=W));if(Uo(W))return FQ4(k,W);if(Array.isArray(W)){for(var B=0;B<W.length;B++)AAm(W[B],k,C,W,B);return k}if(typeof W==="function"){W=k73(W,"qmF2ne")[0];if(Array.isArray(W)){C=_.b(W);for(W=C.next();!W.done;W=C.next())FQ4(k,W.value);return k}n&&C&&(n[N]=W);return FQ4(k,W)}if(W!=null&&W[Tm]){n=uR(!0);N=OtX;try{B=N.apply(null,[W.type,W.props].concat(_.J8(W.children)))}finally{uR(n)}return AAm(B,k,C)}var A;(A=j_.handleError)==null||A.call.apply(A,[j_].concat(_.J8(Eo(Error("lc")))));
return k};
Na4=function(W){var k={};k=Object.assign([],(k[iR]={flattened:[]},k));if(!W)return k;k[0]=BaX(W,k);return k};
FQ4=function(W,k){Array.isArray(W)?W.push(k):W.appendChild(k);return W};
Ky=function(W){if(!j_.enableLazyTsx)return W;if(Array.isArray(W)){for(var k=0;k<W.length;k++)W[k]=Ky(W[k]);return W}return W instanceof PH?(W=W.render(),Ky(W)):W};
lHm=function(W,k){var C,n,N=wep(W),B=function(V){n=V;V=uR(!0);var c=ru(hY);I33("render",N);try{C=Ky(W(k))}finally{SLP("render",N),ru(c),uR(V)}};
B=j_.enableContextPerComponent?QMp(B,N):dw(B,j_.alwaysTrackContexts||!!qD);euz(n);if(!k.renderedFromIdom){var A=ug(n);try{return xLI(W,k,C),C}finally{ug(A)}}!qdJ(C)&&Array.isArray(C)&&(C=Na4(C));var w=uwc(C);A=Array.isArray(w)?w[0]:w;var x=!1;if(A){var E,a=(E=k==null?void 0:k.idomKey)!=null?E:W;E=w!==A;A._disposeEffects=B;var X=A[rw]||{},d=qdJ(C)?C:X.sourceDynamicRange;Object.assign(X,{key:a,numNodes:E?w.length:1,context:n,higherOrder:!!A[rw],sourceDynamicRange:d});A[rw]=X}else x=!0;(function(){var V=
ug(n);try{xLI(W,k,w)}finally{ug(V)}})();
x&&B();return C};
wep=function(W){var k,C;return(C=(k=W.debugName)!=null?k:W.name)!=null?C:"[component]"};
thc=function(W){var k={},C;for(C in W)k={prev$jscomp$23:void 0,next$jscomp$25:void 0},k.prev$jscomp$23=Wv[C],k.next$jscomp$25=W[C],Wv[C]=function(n){return function(){var N=_.v6.apply(0,arguments);n.prev$jscomp$23.apply(null,_.J8(N));n.next$jscomp$25.apply(null,_.J8(N))}}(k)};
EeK=function(){if(lR())throw Error("mc");return kn};
aHp=function(W,k){if(!W.__unmounted&&k){W.__unmounted=!0;try{W.didUnmount()}catch(N){var C,n;(n=j_.handleError)==null||n.call.apply(n,[j_].concat(_.J8(Eo(N,(C=W.JSC$8133___type)==null?void 0:C.TAG_NAME))))}Wv.didUnmount(W);W.el=null;k.__instance&&delete k.__instance}};
fH4=function(W,k,C){W._signalProps!=null&&W._disposeEffects==null&&((C===void 0?0:C)?W._disposeEffects=dw(function(){return void XeP(W,k)},j_.alwaysTrackContexts||!!qD):XeP(W,k))};
XeP=function(W,k){_.aW(function(){for(var C=W._signalProps,n=W._signalValues,N=0;N<C.length;N++){var B=C[N],A=k[B]();n[N]!==A&&(n[N]=A,itw(W,B,A))}},"e3YVbb")};
dLK=function(W,k,C){var n,N=[];W._disposeEffects=dw(function(){_.aW(function(){var B=C();if(B===null||B===void 0)B="";if(HH(B)||B===null)n!=null||(n=document.createTextNode("")),n.parentNode!==W&&(n._isSignalTextNode=!0,W.insertBefore(n,k)),n.textContent=String(B);else if(B!=null&&B.contentKind===jw||B instanceof yG){for(var A=N.length>0?N[N.length-1].nextSibling:k,w=_.b(N),x=w.next();!x.done;x=w.next())W.removeChild(x.value);B=jqw(B);N=Array.from(B.childNodes);B=_.b(N);for(w=B.next();!w.done;w=B.next())W.insertBefore(w.value,
A)}else throw x=(w=(A=AY)==null?void 0:A.name)!=null?w:"unknown",Error("bc`"+x+"`"+typeof B);},"VvDgC")},j_.alwaysTrackContexts||!!qD)};
DL4=function(W,k){var C=_.v6.apply(2,arguments);k!=null||(k={});return!j_.enableLazyTsx||AY!=null&&!lR()?mLz(W,k,C):new zBI(W,k,C)};
mLz=function(W,k,C){if(W===_.qf)return C;if(typeof W==="function")return AY&&!lR()&&(k.renderedFromIdom=!0),OMP({component:W,debugInstance:k.debugInstance,fn:function(){var B=Vhp(W,k,C);if(B)return B;C.length>0&&(k.children=C.length===1?C[0]:C);B=k;if(W.componentType!==xw)var A=!1;else{B||(B={});var w=new CS(B,W),x=ru(hY);try{A=w.render(B)}finally{ru(x)}A instanceof HTMLElement&&(A.__instance=w,w.el=A,w.JSC$8133___type=W,W.TAG_NAME=A.tagName.toLowerCase(),Wv.didPatch(w))}return A===!1?lHm(W,k):A}});
var n=JA2(W,k),N;for(N in k)itw(n,N,k[N]);fH4(n,k);gw(C,n);T0p(n,k,{isReactive:!0});cAp(n,k);return n};
JA2=function(W,k){W=(IHK.has(W.toLowerCase())?0:SkI.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):MhJ(W,k)||document.createElement(W);W[QAp]=!0;return W};
pep=function(W){if(W){var k;(k=W._disposeRef)==null||k.call(W);var C;(C=W._disposeEffects)==null||C.call(W);W.__instance&&W.__instance instanceof nS&&(k=W.__instance,aHp(k,W),k instanceof CS&&k.disposeEffects());for(k=0;k<W.childNodes.length;k++)pep(W.childNodes[k])}};
eBI=function(W){veX.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var k=[].concat(_.J8(veX));veX=[];k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;try{for(var n=0;n<C.length;n++)pep(C[n])}catch(N){n=C=void 0,(n=(C=j_).handleError)==null||n.call.apply(n,[C].concat(_.J8(Eo(N))))}}})})};
_.t=function(W,k){return OtX.apply(null,[W,k].concat(_.J8(_.v6.apply(2,arguments))))};
G7p=function(){var W=document.body.firstElementChild;window.ng||W.__ngContext__||(W.__ngContext__={},W.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=sAX)};
_.NI=function(W){var k=W.cond;if(k===void 0)return W.else&&W.else();var C=_.BH(function(){return!!k()},void 0,"y0Xknf"),n=function(){var N=k();
if(!N){var B;(B=j_.handleError)==null||B.call.apply(B,[j_].concat(_.J8(Eo(yAX.nonNullableCondIsNull()))))}return N};
return CdP(function(){var N=C(),B;dw(function(){var A=ru(hY);try{B=Ky(N?W.then(n):W.else&&W.else())}finally{ru(A)}},!0);
return B},W.debugInstance)};
$LJ=function(W){return _.NI(W)};
_.bI=function(W){return W.keyBy==="INDEX"?ZYJ(W):RB4(W)};
oeI=function(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next()){var C=void 0;(C=k.value)==null||C()}};
RB4=function(W){var k=W.keyBy===void 0||W.keyBy==="REFERENCE",C=k?function(a){return a}:W.keyBy,n=[],N=[],B=[],A=[],w=[],x=[],E=!0;
_.fy(function(){oeI(A)});
return CdP(function(){var a=W.each(),X=a.length;if(X===0){if(n.length===0&&!E)return B;oeI(A);n=a;N=[];for(a=0;a<n.length;a++)N.push(C(n[a]));B=[];A=[];w=[];x=[];W.fallback&&(A[0]=iYw(function(){B[0]=Ky(W.fallback())}));
E=!1;return B}for(var d=new Taw,V=n.length-1;V>=0;V--)d.push(N[V],V);V=Array(X);for(var c=Array(X),M=Array(X),p=Array(X),e=Array(k?0:X),u={i$jscomp$486:0};u.i$jscomp$486<X;u={i$jscomp$486:u.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},u.i$jscomp$486++){u.item$jscomp$105=a[u.i$jscomp$486];u.key$jscomp$517=C(u.item$jscomp$105);var h=d.pop(u.key$jscomp$517);h!=null?(M[u.i$jscomp$486]=B[h],c[u.i$jscomp$486]=N[h],V[u.i$jscomp$486]=A[h],p[u.i$jscomp$486]=w[h],k||(e[u.i$jscomp$486]=x[h]),bR(function(L){return function(){p[L.i$jscomp$486](L.i$jscomp$486);
if(!k)e[L.i$jscomp$486](L.item$jscomp$105)}}(u)),delete A[h]):V[u.i$jscomp$486]=iYw(function(L){return function(){var Bw=_.b(_.kw(L.i$jscomp$486,void 0,"g4fKif")),P=Bw.next().value;
Bw=Bw.next().value;p[L.i$jscomp$486]=Bw;c[L.i$jscomp$486]=L.key$jscomp$517;if(k)M[L.i$jscomp$486]=Ky(W.children(L.item$jscomp$105,P));else{var xz=_.b(_.kw(L.item$jscomp$105,void 0,"Ile0Kc"));Bw=xz.next().value;xz=xz.next().value;e[L.i$jscomp$486]=xz;M[L.i$jscomp$486]=Ky(W.children(Bw,P))}}}(u))}oeI(A);
n=a;N=c;B=M;A=V;w=p;x=e;E=!1;return M},W.debugInstance)};
ZYJ=function(W){var k=[],C=[],n=[],N=[],B=!1;_.fy(function(){for(var A=_.b(N),w=A.next();!w.done;w=A.next())w=w.value,w()});
return CdP(function(){var A=W.each();B&&A.length>0&&(N.pop()(),k.pop(),B=!1);for(var w=Array(A.length),x={i$jscomp$487:0};x.i$jscomp$487<A.length;x={i$jscomp$487:x.i$jscomp$487},x.i$jscomp$487++)if(x.i$jscomp$487<k.length)k[x.i$jscomp$487]!==A[x.i$jscomp$487]&&(bR(function(a){return function(){return void C[a.i$jscomp$487](A[a.i$jscomp$487])}}(x)),k[x.i$jscomp$487]=A[x.i$jscomp$487]),w[x.i$jscomp$487]=n[x.i$jscomp$487];
else{var E=iYw(function(a){return function(){k[a.i$jscomp$487]=A[a.i$jscomp$487];var X=_.b(_.kw(A[a.i$jscomp$487],void 0,"C53T8b")),d=X.next().value;X=X.next().value;C[a.i$jscomp$487]=X;w[a.i$jscomp$487]=Ky(W.children(d,a.i$jscomp$487))}}(x));
N[x.i$jscomp$487]=E}for(;k.length>A.length;)k.pop(),N.pop()(),C.pop();A.length===0&&!B&&W.fallback&&(x=iYw(function(){w[0]=Ky(W.fallback())}),N[0]=x,B=!0);
return n=w},W.debugInstance)};
iYw=function(W){var k=qD;return dw(function(C){var n=ru(hY);try{C.parent=k,W(C)}finally{ru(n)}},!1)};
_.Aj=function(W){return W};
_.qk3=function(W){return{isDefault:!0,children:W.children}};
_.Fc=function(W){var k=uvc(W),C=_.BH(function(){return ULz(k)},void 0,"BHmkEe");
return CdP(function(){var n=C(),N;dw(function(){var B=ru(hY);try{N=Ky(n())}finally{ru(B)}});
return N},W.debugInstance)};
uvc=function(W){W=W.children;return Array.isArray(W)?W:[W]};
OYP=function(W){var k=W.props;W=W.getChildren()[0];return k.when?{when:k.when,children:W}:{isDefault:!0,children:W}};
ULz=function(W){var k=function(){return null};
W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,C!=null&&C[Tm]&&(C=C.type===_.qk3?{isDefault:!0,children:C.children[0]}:{when:C.props.when,children:C.children[0]}),C instanceof PH&&(C=OYP(C)),C.isDefault)k=C.children;else if(C.when())return C.children;return k};
LQz=function(W){var k=null,C;return{value:null,onRender:function(n){if(C&&n!==C){var N;(N=k)==null||N();C._disposeRef=void 0}C=n;k=W(n)||null},
onUnmount:function(){var n;(n=k)==null||n();k=null}}};
HYw=function(W){var k=EeK();if(k==null)throw jAm.PRIMITIVE_INVALID_HOOK_CALL();var C=k.hookCounter++;k.hooks||(k.hooks=[]);var n=k.hooks;n[C]||(n[C]={key:W,host:k});if(W!==n[C].key){var N,B;W=((N=k.JSC$8133___type)==null?void 0:N.name)||((B=k.functionComponent)==null?void 0:B.name);throw jAm.OUT_OF_ORDER_HOOK_CALL(W);}return n[C]};
rA4=function(W,k){return!W||W.length!==(k==null?void 0:k.length)||W.some(function(C,n){return C!==k[n]})};
wA=function(W,k){var C=HYw("onChange"),n=EeK();rA4(C.deps,k)&&(C.deps=k,C.pendingEffect=W,n.__syncEffects||(n.__syncEffects=[]),n.__syncEffects.push(C))};
hBm=function(W,k){var C;k!=null?C=k:C=_.Cep(document).getAppContext();C.get(gem).JSC$25228_getEventTarget().dispatchEvent(new Pdw(KQz,W,jw))};
_.xn=function(W,k){var C=C===void 0?{enableDevtools:!1}:C;var n=tY(function(){var N=ru(hY);try{return dw(function(){var B=_.Cep(_.QZ(W)),A;var w=X$z({rootElement:{value:W},appContext:C.appContext||(B==null?void 0:(A=B.getOptionalAppContext)==null?void 0:A.call(B)),dispatcher:B});B=ug(w);w=uR(!0);qK2++;try{gw(k(),W),UPw(!1)}catch(x){throw UPw(!0),x;}finally{uR(w),ug(B)}},!1)}finally{ru(N)}});
W[WIc]=!0;C.legacyTriggerSoyRendererEvents&&hBm(W,C.appContext);return function(){W.textContent="";n();W[WIc]=!1}};
_.lI=function(W){if(iMw(Hf)){var k;(k=j_.handleError)==null||k.call.apply(k,[j_].concat(_.J8(Eo(Error("ac")))))}var C=qD,n=AY;Promise.resolve().then(function(){C&&!C.isDisposed&&tY(function(){var N=ug(C);try{W()}finally{ug(N)}},{stack:n})})};
tj=function(W,k){wA(function(){return WH(W)},k)};
_.Ee=function(W){lR()?_.lI(function(){WH(W)}):wA(function(){return WH(W)},[])};
CWK=function(W){var k=[].concat(_.J8(W));W.length=0;W=_.b(k);for(k=W.next();!k.done;k=W.next()){k=k.value;kDX(k);var C=k.pendingEffect;k.pendingEffect=null;if(C=C==null?void 0:C())k.pendingCleanup=C}};
kDX=function(W){var k=W.pendingCleanup;W.pendingCleanup=null;k==null||k()};
nQ2=function(W,k){if(lR())return W();var C=HYw("useMemoInternal");rA4(C.deps,k)&&(C.deps=k,C.value=W());return C.value};
a4=function(W,k){return nQ2(W,k)};
Xc=function(W){return nQ2(W,[])};
N8w=function(){var W=_.v6.apply(0,arguments),k=Xc(function(){return W.map(function(C){return _.kw(C,void 0,"lnSD0c")})});
tj(function(){for(var C=0;C<W.length;C++)(0,k[C][1])(W[C])},W);
return k.map(function(C){return _.b(C).next().value})};
fS=function(W){return Xc(function(){return{value:W}})};
_.dA=function(W,k){if(!W)return null;W=Object.keys(W);W=_.b(W);for(var C=W.next();!C.done;C=W.next()){C=C.value;var n=C.toLowerCase();if(n.indexOf(k,n.length-k.length)>-1)return C}return null};
_.z3=function(){var W=arguments,k=_.mh;W.length>1?k[W[0]]=W[1]:W.length===1&&Object.assign(k,W[0])};
_.DE=function(W,k){return W in _.mh?_.mh[W]:k};
_.cv=function(W,k){return!!_.DE(W,k)};
Yr3=function(W){var k=_.mh.EXPERIMENT_FLAGS;return k?k[W]:void 0};
bBw=function(W){B8X.forEach(function(k){return k(W)})};
_.MI=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(k){_.I4(k)}}:W};
_.I4=function(W){var k=_.QK("yt.logging.errors.log");k?k(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(k=_.DE("ERRORS",[]),k.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.z3("ERRORS",k));bBw(W)};
_.pS=function(W,k,C,n,N){var B=_.QK("yt.logging.errors.log");B?B(W,"WARNING",k,C,n,void 0,N):(B=_.DE("ERRORS",[]),B.push([W,"WARNING",k,C,n,void 0,N]),_.z3("ERRORS",B))};
FIX=function(W,k){k=W.split(k);for(var C={},n=0,N=k.length;n<N;n++){var B=k[n].split("=");if(B.length===1&&B[0]||B.length===2)try{var A=AQK(B[0]||""),w=AQK(B[1]||"");if(A in C){var x=C[A];Array.isArray(x)?_.uw(x,w):C[A]=[x,w]}else C[A]=w}catch(d){var E=d,a=B[0],X=String(FIX);E.args=[{key:a,value:B[1],query:W,method:wNz===X?"unchanged":X}];xlc.hasOwnProperty(a)||_.pS(E)}}return C};
lrz=function(W){var k=[];_.JU.forEach(W,function(C,n){var N=_.vv(n);_.eO(Array.isArray(C)?C:[C],function(B){B==""?k.push(N):k.push(N+"="+_.vv(B))})});
return k.join("&")};
_.se=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return FIX(W,"&")};
_.G3=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.se(W.length>1?W[1]:W[0])):{}};
_.yK=function(W,k){return tow(W,k||{},!0)};
EQc=function(W,k){return tow(W,k||{},!1)};
tow=function(W,k,C){var n=W.split("#",2);W=n[0];n=n.length>1?"#"+n[1]:"";var N=W.split("?",2);W=N[0];N=_.se(N[1]||"");for(var B in k)if(C||!_.JU.containsKey(N,B))N[B]=k[B];return _.$n(W,N)+n};
iI=function(W){if(!k)var k=window.location.href;var C=_.ZE(W)[1]||null,n=_.R4(W);return C&&n?o4(W,k):n?_.R4(k)===n&&(Number(_.ZE(k)[4]||null)||null)===(Number(_.ZE(W)[4]||null)||null):!0};
_.XNK=function(W){W=arw(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
arw=function(W){W=_.R4(W);return W!==null?W.split(".").reverse():null};
AQK=function(W){return W&&W.match(frJ)?W:T3(W)};
_.qI=function(W){return new dlw(W)};
_.f=function(){mlX||(mlX=new zdp);return mlX};
Vom=function(W){var k=_.uI,C,n;_.F(function(N){C=_.f();return(n=C.resolve(_.qI(k)))?(W(n),N.return(Promise.resolve(n))):N.return(C.resolve(new Dlp(k)).then(function(B){W(B);return B}))})};
_.m=function(W){W=Ue(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.Oe=function(W,k){W=Ue(W);return W===void 0&&k!==void 0?k:Number(W||0)};
JQX=function(W){W=Ue(W);return Array.isArray(W)?_.cD(W,function(k){return Number(k||0)}):[Number(W||0)]};
_.LS=function(W){W=Ue(W);return W!==void 0?String(W):""};
_.jO=function(W){W=Ue(W);return Array.isArray(W)?_.cD(W,function(k){return String(k||"")}):[String(W||"")]};
cQm=function(){return _.DE("EXPERIMENTS_TOKEN","")};
Ue=function(W){return _.DE("EXPERIMENT_FLAGS",{})[W]};
Ir4=function(){for(var W=[],k=_.DE("EXPERIMENTS_FORCED_FLAGS",{}),C=_.b(Object.keys(k)),n=C.next();!n.done;n=C.next())n=n.value,W.push({key:n,value:String(k[n])});C=_.DE("EXPERIMENT_FLAGS",{});n=_.b(Object.keys(C));for(var N=n.next();!N.done;N=n.next())N=N.value,N.startsWith("force_")&&k[N]===void 0&&W.push({key:N,value:String(C[N])});return W};
Moc=function(){if(!Srm)return null;var W=Srm();return"open"in W?W:null};
QzX=function(W){switch(Hv(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Hv=function(W){return W&&"status"in W?W.status:-1};
_.rA=function(W,k){typeof W==="function"&&(W=_.MI(W));return window.setTimeout(W,k)};
_.gA=function(W,k){typeof W==="function"&&(W=_.MI(W));return window.setInterval(W,k)};
_.Pv=function(W){window.clearTimeout(W)};
vQJ=function(W){W=_.G3(W);for(var k=_.b(pNI),C=k.next();!C.done;C=k.next())if(W[C.value]!==void 0)return!0;return!1};
GD4=function(W,k,C,n,N,B,A,w){C=C===void 0?"GET":C;n=n===void 0?"":n;w=w===void 0?!1:w;var x=Moc();if(!x)return null;var E=function(){(x&&"readyState"in x?x.readyState:0)===4&&k&&_.MI(k)(x)};
"onloadend"in x?x.addEventListener("loadend",E,!1):x.onreadystatechange=E;_.m("debug_forward_web_query_parameters")&&(W=edm(W,window.location.search));x.open(C,W,!0);B&&(x.responseType=B);A&&(x.withCredentials=!0);C=C==="POST"&&(window.FormData===void 0||!(n instanceof FormData));if(N=szm(W,N))for(var a in N)x.setRequestHeader(a,N[a]),"content-type"===a.toLowerCase()&&(C=!1);C&&x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){W=
{eventSourceEligible:!0,triggerEligible:!1};try{x.setAttributionReporting(W)}catch(X){_.pS(X)}}x.send(n);return x};
szm=function(W,k){k=k===void 0?{}:k;var C=iI(W),n=_.DE("INNERTUBE_CLIENT_NAME"),N=_.m("web_ajax_ignore_global_headers_if_set"),B;for(B in yQX){var A=_.DE(yQX[B]),w=B==="X-Goog-AuthUser"||B==="X-Goog-PageId";B!=="X-Goog-Visitor-Id"||A||(A=_.DE("VISITOR_DATA"));var x;if(!(x=!A)){if(!(x=C||(_.R4(W)?!1:!0))){x=W;var E;if(E=_.m("add_auth_headers_to_remarketing_google_dot_com_ping")&&B==="Authorization"&&(n==="TVHTML5"||n==="TVHTML5_UNPLUGGED"||n==="TVHTML5_SIMPLY"))E=arw(x),E=E===null?!1:E[1]==="google"?
!0:E[2]==="google"?E[0]==="au"&&E[1]==="com"?!0:E[0]==="uk"&&E[1]==="co"?!0:!1:!1;E&&(x=_.KS(x)||"",x=x.split("/"),x="/"+(x.length>1?x[1]:""),E=x==="/pagead");x=E?!0:!1}x=!x}x||N&&k[B]!==void 0||n==="TVHTML5_UNPLUGGED"&&w||(k[B]=A)}"X-Goog-EOM-Visitor-Id"in k&&"X-Goog-Visitor-Id"in k&&delete k["X-Goog-Visitor-Id"];if(C||!_.R4(W))k["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(C||!_.R4(W)){try{var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(X){}a&&(k["X-YouTube-Time-Zone"]=
a)}document.location.hostname.endsWith("youtubeeducation.com")||!C&&_.R4(W)||(k["X-YouTube-Ad-Signals"]=lrz($lP()));return k};
_.ZBP=function(W,k){var C=_.R4(W);_.m("debug_handle_relative_url_for_query_forward_killswitch")||!C&&iI(W)&&(C=document.location.hostname);var n=_.KS(W);n=(C=C&&(C.endsWith("youtube.com")||C.endsWith("youtube-nocookie.com")))&&n&&n.startsWith("/api/");if(!C||n)return W;var N=_.se(k),B={};_.eO(pNI,function(A){N[A]&&(B[A]=N[A])});
return EQc(W,B)};
Rd4=function(W,k){k.method="POST";k.postParams||(k.postParams={});return _.hj(W,k)};
oQz=function(W,k){var C=_.DE("XSRF_FIELD_NAME"),n;k.headers&&(n=k.headers["Content-Type"]);return!k.excludeXsrf&&(!_.R4(W)||k.withCredentials||_.R4(W)===document.location.hostname)&&k.method==="POST"&&(!n||n==="application/x-www-form-urlencoded")&&!(k.postParams&&k.postParams[C])};
_.hj=function(W,k){var C=k.format||"JSON";W=iBm(W,k);var n=T8m(W,k),N=!1,B=qr2(W,function(x){if(!N){N=!0;w&&_.Pv(w);var E=QzX(x),a=null,X=400<=x.status&&x.status<500,d=500<=x.status&&x.status<600;if(E||X||d)a=ulJ(W,C,x,k.convertToSafeHtml);E&&(E=UlJ(C,x,a));a=a||{};X=k.context||_.NX;E?k.onSuccess&&k.onSuccess.call(X,x,a):k.onError&&k.onError.call(X,x,a);k.onFinish&&k.onFinish.call(X,x,a)}},k.method,n,k.headers,k.responseType,k.withCredentials);
n=k.timeout||0;if(k.onTimeout&&n>0){var A=k.onTimeout;var w=_.rA(function(){N||(N=!0,B.abort(),_.Pv(w),A.call(k.context||_.NX,B))},n)}return B};
iBm=function(W,k){k.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var C=_.DE("XSRF_FIELD_NAME");if(k=k.urlParams)k[C]&&delete k[C],W=_.yK(W,k);return W};
T8m=function(W,k){var C=_.DE("XSRF_FIELD_NAME"),n=_.DE("XSRF_TOKEN"),N=k.postBody||"",B=k.postParams;oQz(W,k)&&(B||(B={}),B[C]=n);(_.m("ajax_parse_query_data_only_when_filled")&&B&&Object.keys(B).length>0||B)&&typeof N==="string"&&(N=_.se(N),_.JU.extend(N,B),N=k.postBodyFormat&&k.postBodyFormat==="JSON"?JSON.stringify(N):_.W4(N));B=N||B&&!_.JU.isEmpty(B);!OBc&&B&&k.method!=="POST"&&(OBc=!0,_.I4(Error("Gc")));return N};
ulJ=function(W,k,C,n){var N=null;switch(k){case "JSON":try{var B=C.responseText}catch(A){throw n=Error("Hc"),n.params=W,_.pS(n),A;}W=C.getResponseHeader("Content-Type")||"";B&&W.indexOf("json")>=0&&(B.substring(0,5)===")]}'\n"&&(B=B.substring(5)),N=JSON.parse(B));break;case "XML":if(W=(W=C.responseXML)?LIJ(W):null)N={},_.eO(W.getElementsByTagName("*"),function(A){N[A.tagName]=jzw(A)})}n&&HB2(N);
return N};
HB2=function(W){if(_.O2(W))for(var k in W)k==="html_content"||w3(k,"_html")?W[k]=$3(W[k]):HB2(W[k])};
UlJ=function(W,k,C){if(k&&k.status===204)return!0;switch(W){case "JSON":return!!C;case "XML":return Number(C&&C.return_code)===0;case "RAW":return!0;default:return!!C}};
LIJ=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
jzw=function(W){var k="";_.eO(W.childNodes,function(C){k+=C.nodeValue});
return k};
rQp=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("chrome-extension://")||W.includes("moz-extension://")};
_.kg=function(W){_.XK.call(this);this.JSC$8305_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
PWX=function(W,k){var C=W.length,n=0,N=function(){return W.charCodeAt(n++)};
do{var B=gQ2(N);if(B===Infinity)break;var A=B>>3;switch(B&7){case 0:B=gQ2(N);if(A===k)return B;break;case 1:if(A===k)return;n+=8;break;case 2:B=gQ2(N);if(A===k)return W.substr(n,B);n+=B;break;case 5:if(A===k)return;n+=4;break;default:return}}while(n<C)};
gQ2=function(W){var k=W(),C=k&127;if(k<128)return C;k=W();C|=(k&127)<<7;if(k<128)return C;k=W();C|=(k&127)<<14;if(k<128)return C;k=W();return k<128?C|(k&127)<<21:Infinity};
hdX=function(W,k,C,n){if(W)if(Array.isArray(W)){var N=n;for(n=0;n<W.length&&!(W[n]&&(N+=KIX(n,W[n],k,C),N>500));n++);n=N}else if(typeof W==="object")for(N in W){if(W[N]){var B=N;var A=W[N],w=k,x=C;B=typeof A!=="string"||B!=="clickTrackingParams"&&B!=="trackingParams"?0:(A=PWX(atob(A.replace(/-/g,"+").replace(/_/g,"/")),2))?KIX(B+".ve",A,w,x):0;n+=B;n+=KIX(N,W[N],k,C);if(n>500)break}}else C[k]=CH(W),n+=C[k].length;else C[k]=CH(W),n+=C[k].length;return n};
KIX=function(W,k,C,n){C+="."+W;W=CH(k);n[C]=W;return C.length+W.length};
CH=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(k){return"unable to serialize "+typeof W+" ("+k.message+")"}};
W7p=function(W){switch(W){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}};
_.N7=function(W,k,C,n,N){_.nH.set(W,k,{maxAge:C,path:"/",domain:n===void 0?"youtube.com":n,secure:N===void 0?!1:N})};
_.ko3=function(W,k,C){_.nH.remove(W,k===void 0?"/":k,C===void 0?"youtube.com":C)};
_.Yg=function(){if(_.m("embeds_web_enable_cookie_detection_fix")){if(!_.NX.navigator.cookieEnabled)return!1}else if(!_.nH.isEnabled())return!1;if(!_.nH.isEmpty())return!0;_.m("embeds_web_enable_cookie_detection_fix")?_.nH.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.nH.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.nH.get("TESTCOOKIESENABLED")!=="1")return!1;_.nH.remove("TESTCOOKIESENABLED");return!0};
COP=function(){var W=_.NX.navigator;return W?W.connection:void 0};
nS3=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.Ybz=function(){var W=COP();if(W){var k=NnK[W.type||"unknown"]||"CONN_UNKNOWN";W=NnK[W.effectiveType||"unknown"]||"CONN_UNKNOWN";k==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(k=W);if(k!=="CONN_UNKNOWN")return k;if(W!=="CONN_UNKNOWN")return W}};
b5I=function(){var W=COP();if(W!=null&&W.effectiveType)return Bnz.hasOwnProperty(W.effectiveType)?Bnz[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.bp=function(){try{return _.B4(),!0}catch(W){return!1}};
_.B4=function(W){if(_.DE("DATASYNC_ID")!==void 0)return _.DE("DATASYNC_ID");throw new _.AM("Datasync ID not set",W===void 0?"unknown":W);};
_.FV=function(W){this.mechanism=W};
wd=function(W){this.mechanism=W};
xg=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
AeI=function(){var W=null;try{W=_.NX.localStorage||null}catch(k){}xg.call(this,W)};
F7X=function(){var W=null;try{W=_.NX.sessionStorage||null}catch(k){}xg.call(this,W)};
lp=function(W,k){this.mechanism_=W;this.JSC$8407_prefix_=k+"::"};
_.w3X=function(W){var k=new AeI;return k.isAvailable()?W?new lp(k,W):k:null};
_.xyJ=function(W){var k=new F7X;return k.isAvailable()?W?new lp(k,W):k:null};
tW2=function(){var W;return(W=lFP())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.aX=function(W){ESP||(_.tM?_.tM.logError(W):(_.Eh.push({type:"ERROR",payload:W}),_.Eh.length>10&&_.Eh.shift()))};
XV=function(W,k){ESP||(_.tM?_.tM.logEvent(W,k):(_.Eh.push({type:"EVENT",eventType:W,payload:k}),_.Eh.length>10&&_.Eh.shift()))};
fH=function(W){if(W.indexOf(":")>=0)throw Error("Oc");};
dd=function(W){return W.substr(0,W.indexOf(":"))||W};
fFX=function(){return(aF4||X3m)&&mK("applewebkit")&&!mK("version")&&(!mK("safari")||mK("gsa/"))};
mK=function(W){var k=_.fI();return k?k.toLowerCase().indexOf(W)>=0:!1};
zVX=function(W,k,C,n){k=dd(k);var N=W instanceof Error?W:Error("Pc`"+W);if(N instanceof zW)return N;W={objectStoreNames:C,dbName:k,dbVersion:n};if(N.name==="QuotaExceededError")return new zW("QUOTA_EXCEEDED",W);if(_.D5&&N.name==="UnknownError")return new zW("QUOTA_MAYBE_EXCEEDED",W);if(N instanceof dyX)return new zW("MISSING_INDEX",Object.assign({},W,{objectStore:N.objectStore,index:N.index}));if(N.name==="InvalidStateError"&&myc.some(function(B){return N.message.includes(B)}))return new zW("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(N.name==="AbortError")return new zW("UNKNOWN_ABORT",W,N.message);N.args=[Object.assign({},W,{name:"IdbError",originalName:N.name})];N.level="WARNING";return N};
Vn=function(W,k,C){var n=tW2();return new zW("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:k,version:C,hasSucceededOnce:n==null?void 0:n.hasSucceededOnce}})};
DyK=function(W){if(!W)throw Error();throw W;};
VWw=function(W){return W};
JeX=function(W,k,C){var n=function(){try{W.removeEventListener("success",N),W.removeEventListener("error",B)}catch(A){}},N=function(){k(W.result);
n()},B=function(){C(W.error);
n()};
W.addEventListener("success",N);W.addEventListener("error",B)};
ce4=function(W){return new Promise(function(k,C){JeX(W,k,C)})};
IX=function(W){return new JM(new c4(function(k,C){JeX(W,k,C)}))};
IF2=function(W,k){return new JM(new c4(function(C,n){var N=function(){var B=W?k(W):null;B?B.then(function(A){W=A;N()},n):C()};
N()}))};
MW2=function(W,k,C){return new Promise(function(n,N){var B=k!==void 0?self.indexedDB.open(W,k):self.indexedDB.open(W);var A=C.blocked,w=C.blocking,x=C.terminated,E=C.upgrade,a=C.closed,X,d=function(){X||(X=new Sf(B.result,{closed:a}));return X};
B.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Uc");if(B.transaction===null)throw Error("Vc");V.dataLoss&&V.dataLoss!=="none"&&XV("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:dd(W)});var c=d(),M=new SbX(B.transaction);E&&E(c,function(p){return V.oldVersion<p&&V.newVersion>=p},M);
M.done.catch(function(p){N(p)})}catch(p){N(p)}});
B.addEventListener("success",function(){var V=B.result;w&&V.addEventListener("versionchange",function(){w(d())});
V.addEventListener("close",function(){XV("IDB_UNEXPECTEDLY_CLOSED",{dbName:dd(W),dbVersion:V.version});x&&x()});
n(d())});
B.addEventListener("error",function(){N(B.error)});
A&&B.addEventListener("blocked",function(){A()})})};
QYc=function(W,k,C){C=C===void 0?{}:C;return MW2(W,k,C)};
_.Qn=function(W,k){k=k===void 0?{}:k;var C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return _.F0(A,2),C=self.indexedDB.deleteDatabase(W),n=k,(N=n.blocked)&&C.addEventListener("blocked",function(){N()}),_.l(A,ce4(C),4);
if(A.nextAddress!=2)return _.M7(A,0);B=_.EF(A);throw zVX(B,W,"",-1);})};
vSI=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.pH(p3c,k),2);C=n.yieldResult;return n.return(_.v4(C,["databases"],{enableRetries:!0,mode:"readwrite"},function(N){var B=N.objectStore("databases");return B.get(W.actualName).then(function(A){if(A?W.actualName!==A.actualName||W.publicName!==A.publicName||W.userIdentifier!==A.userIdentifier:1)return B.put(W).then(function(){})})}))})};
_.ef=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return W?_.l(n,_.pH(p3c,k),2):n.return();C=n.yieldResult;return n.return(C.delete("databases",W))})};
_.eVp=function(W,k){var C,n;return _.F(function(N){return N.nextAddress==1?(C=[],_.l(N,_.pH(p3c,k),2)):N.nextAddress!=3?(n=N.yieldResult,_.l(N,_.v4(n,["databases"],{enableRetries:!0,mode:"readonly"},function(B){C.length=0;return sh(B.objectStore("databases"),{},function(A){W(A.getValue())&&C.push(A.getValue());return A.continue()})}),3)):N.return(C)})};
sYp=function(W,k){return _.eVp(function(C){return C.publicName===W&&C.userIdentifier!==void 0},k)};
$ym=function(){var W,k,C,n;return _.F(function(N){switch(N.nextAddress){case 1:W=tW2();if((k=W)==null?0:k.hasSucceededOnce)return N.return(!0);var B;if(B=Goc)B=/WebKit\/([0-9]+)/.exec(_.fI()),B=!!(B&&parseInt(B[1],10)>=600);B&&(B=/WebKit\/([0-9]+)/.exec(_.fI()),B=!(B&&parseInt(B[1],10)>=602));if(B||_.GW)return N.return(!1);try{if(C=self,!(C.indexedDB&&C.IDBIndex&&C.IDBKeyRange&&C.IDBObjectStore))return N.return(!1)}catch(A){return N.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return N.return(!1);
_.F0(N,2);n={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.l(N,vSI(n,yeK),4);case 4:return _.l(N,_.ef("yt-idb-test-do-not-use",yeK),5);case 5:return N.return(!0);case 2:return _.EF(N),N.return(!1)}})};
RVm=function(){if(Z5J!==void 0)return Z5J;ESP=!0;return Z5J=$ym().then(function(W){ESP=!1;var k;if((k=lFP())!=null&&k.expiringStorage_){var C;k={hasSucceededOnce:((C=tW2())==null?void 0:C.hasSucceededOnce)||W};var n;(n=lFP())==null||n.set("LAST_RESULT_ENTRY_KEY",k,2592E3,!0)}return W})};
yn=function(){return _.QK("ytglobal.idbToken_")||void 0};
_.Z5=function(){var W=yn();return W?Promise.resolve(W):RVm().then(function(k){(k=k?yeK:void 0)&&_.$g("ytglobal.idbToken_",k);return k})};
oSm=function(W){if(!_.bp())throw W=new zW("AUTH_INVALID",{dbName:W}),_.aX(W),W;var k=_.B4();return{actualName:W+":"+k,publicName:W,userIdentifier:k}};
i5m=function(W,k,C,n){var N,B,A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:return B=(N=Error().stack)!=null?N:"",_.l(a,_.Z5(),2);case 2:A=a.yieldResult;if(!A)throw w=Vn("openDbImpl",W,k),_.m("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+B.substring(B.indexOf("\n")+1)),_.aX(w),w;fH(W);x=C?{actualName:W,publicName:W,userIdentifier:void 0}:oSm(W);_.F0(a,3);return _.l(a,vSI(x,A),5);case 5:return _.l(a,QYc(x.actualName,k,n),6);case 6:return a.return(a.yieldResult);case 3:return E=
_.EF(a),_.F0(a,7),_.l(a,_.ef(x.actualName,A),9);case 9:_.M7(a,8);break;case 7:_.EF(a);case 8:throw E;}})};
TnX=function(W,k,C){C=C===void 0?{}:C;return i5m(W,k,!1,C)};
qbJ=function(W,k,C){C=C===void 0?{}:C;return i5m(W,k,!0,C)};
uDw=function(W,k){k=k===void 0?{}:k;var C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,_.Z5(),2);if(N.nextAddress!=3){C=N.yieldResult;if(!C)return N.return();fH(W);n=oSm(W);return _.l(N,_.Qn(n.actualName,k),3)}return _.l(N,_.ef(n.actualName,C),0)})};
Uy4=function(W,k,C){W=W.map(function(n){return _.F(function(N){return N.nextAddress==1?_.l(N,_.Qn(n.actualName,k),2):_.l(N,_.ef(n.actualName,C),0)})});
return Promise.all(W).then(function(){})};
O5I=function(W){var k=k===void 0?{}:k;var C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,_.Z5(),2);if(N.nextAddress!=3){C=N.yieldResult;if(!C)return N.return();fH(W);return _.l(N,sYp(W,C),3)}n=N.yieldResult;return _.l(N,Uy4(n,k,C),0)})};
L7K=function(W,k){k=k===void 0?{}:k;var C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.Z5(),2);if(n.nextAddress!=3){C=n.yieldResult;if(!C)return n.return();fH(W);return _.l(n,_.Qn(W,k),3)}return _.l(n,_.ef(W,C),0)})};
RX=function(W,k){return jYX(W,k)};
rem=function(W){return _.pH(H5w(),W)};
gS2=function(W,k,C,n){var N,B,A;return _.F(function(w){switch(w.nextAddress){case 1:return N={config:W,hashData:k,timestamp:n!==void 0?n:(0,_.oX)()},_.l(w,rem(C),2);case 2:return B=w.yieldResult,_.l(w,B.clear("hotConfigStore"),3);case 3:return _.l(w,B.put("hotConfigStore",N),4);case 4:return A=w.yieldResult,w.return(A)}})};
POI=function(W,k,C,n,N){var B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:return B={config:W,hashData:k,configData:C,timestamp:N!==void 0?N:(0,_.oX)()},_.l(x,rem(n),2);case 2:return A=x.yieldResult,_.l(x,A.clear("coldConfigStore"),3);case 3:return _.l(x,A.put("coldConfigStore",B),4);case 4:return w=x.yieldResult,x.return(w)}})};
K7X=function(W){var k,C;return _.F(function(n){return n.nextAddress==1?_.l(n,rem(W),2):n.nextAddress!=3?(k=n.yieldResult,C=void 0,_.l(n,_.v4(k,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(N){return _.ip(N.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(B){C=B.getValue()})}),3)):n.return(C)})};
hVJ=function(W){var k,C;return _.F(function(n){return n.nextAddress==1?_.l(n,rem(W),2):n.nextAddress!=3?(k=n.yieldResult,C=void 0,_.l(n,_.v4(k,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(N){return _.ip(N.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(B){C=B.getValue()})}),3)):n.return(C)})};
Wgz=function(){return _.F(function(W){return _.l(W,O5I("ytGcfConfig"),0)})};
kyp=function(){return"INNERTUBE_API_KEY"in _.mh&&"INNERTUBE_API_VERSION"in _.mh};
_.TW=function(){return{innertubeApiKey:_.DE("INNERTUBE_API_KEY"),innertubeApiVersion:_.DE("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.DE("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.DE("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.DE("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.DE("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.cv("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.cv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.DE("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.AhP=function(W){var k={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(k.client.userAgent=String(navigator.userAgent));var C=_.NX.devicePixelRatio;C&&C!=1&&(k.client.screenDensityFloat=String(C));C=cQm();C!==""&&(k.client.experimentsToken=C);C=Ir4();C.length>0&&(k.request={internalExperimentFlags:C});CKp(W,void 0,k);
nZm(void 0,k);Nim(void 0,k);Yp2(W,void 0,k);Bi3(void 0,k);_.m("start_client_gcf")&&bOJ(void 0,k);_.DE("DELEGATED_SESSION_ID")&&!_.m("pageid_as_header_web")&&(k.user={onBehalfOfUser:_.DE("DELEGATED_SESSION_ID")});!_.m("fill_delegate_context_in_gel_killswitch")&&(W=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(k.user=Object.assign({},k.user,{serializedDelegationContext:W}));W=_.DE("INNERTUBE_CONTEXT");var n;if(_.m("enable_persistent_device_token")&&(W==null?0:(n=W.client)==null?0:n.rolloutToken)){var N;
k.client.rolloutToken=W==null?void 0:(N=W.client)==null?void 0:N.rolloutToken}n=Object;N=n.assign;W=k.client;C={};for(var B=_.b(Object.entries(_.se(_.DE("DEVICE","")))),A=B.next();!A.done;A=B.next()){var w=_.b(A.value);A=w.next().value;w=w.next().value;A==="cbrand"?C.deviceMake=w:A==="cmodel"?C.deviceModel=w:A==="cbr"?C.browserName=w:A==="cbrver"?C.browserVersion=w:A==="cos"?C.osName=w:A==="cosver"?C.osVersion=w:A==="cplatform"&&(C.platform=w)}k.client=N.call(n,W,C);return k};
CKp=function(W,k,C){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(k){C=_.q7(k,Fg4,96)||new Fg4;var n=wlc();n=Object.keys(xwz).indexOf(n);n=n===-1?null:n;n!==null&&_.up(C,3,n);_.B6(k,96,C)}else C&&(C.client.mainAppWebInfo=(n=C.client.mainAppWebInfo)!=null?n:{},C.client.mainAppWebInfo.webDisplayMode=wlc())};
nZm=function(W,k){var C=_.QK("yt.embedded_player.embed_url");C&&(W?(k=_.q7(W,l6J,7)||new l6J,_.fU(k,4,C),_.B6(W,7,k)):k&&(k.thirdParty={embedUrl:C}))};
Nim=function(W,k){var C;if(_.m("web_log_memory_total_kbytes")&&((C=_.NX.navigator)==null?0:C.deviceMemory)){var n;C=(n=_.NX.navigator)==null?void 0:n.deviceMemory;W?_.Uh(W,95,kB(C*1E6)):k&&(k.client.memoryTotalKbytes=""+C*1E6)}};
Yp2=function(W,k,C){if(W.appInstallData)if(k){var n;C=(n=_.q7(k,Oh,62))!=null?n:new Oh;_.fU(C,6,W.appInstallData);_.B6(k,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},C.client.configInfo.appInstallData=W.appInstallData)};
Bi3=function(W,k){var C=_.Ybz();C&&(W?_.up(W,61,tII[C]):k&&(k.client.connectionType=C));_.m("web_log_effective_connection_type")&&(C=b5I())&&(W?_.up(W,94,EZP[C]):k&&(k.client.effectiveConnectionType=C))};
_.f6m=function(W,k,C){C=C===void 0?{}:C;var n={};_.DE("EOM_VISITOR_DATA")?n={"X-Goog-EOM-Visitor-Id":_.DE("EOM_VISITOR_DATA")}:n={"X-Goog-Visitor-Id":C.visitorData||_.DE("VISITOR_DATA","")};if(k&&k.includes("www.youtube-nocookie.com"))return n;k=C.authorization||_.DE("AUTHORIZATION");k||(W?k="Bearer "+_.QK("gapi.auth.getToken")().access_token:(a62.instance||(a62.instance=new a62),W=Xl2(),_.m("pageid_as_header_web")||delete W["X-Goog-PageId"],n=Object.assign({},n,W)));k&&(n.Authorization=k);return n};
bOJ=function(W,k){var C=dwI();if(C){var n=C.coldConfigData,N=C.coldHashData;C=C.hotHashData;if(W){var B;k=(B=_.q7(W,Oh,62))!=null?B:new Oh;n=_.fU(k,1,n);_.fU(n,3,N).setHotHashData(C);_.B6(W,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},n&&(k.client.configInfo.coldConfigData=n),N&&(k.client.configInfo.coldHashData=N),C&&(k.client.configInfo.hotHashData=C))}};
LH=function(W){for(var k=W.length;--k>=0;)W[k]=0};
mw3=function(W,k,C,n,N){this.static_tree=W;this.extra_bits=k;this.extra_base=C;this.elems=n;this.max_length=N;this.has_stree=W&&W.length};
zN4=function(W,k){this.dyn_tree=W;this.max_code=0;this.stat_desc=k};
jf=function(W,k){W.pending_buf[W.pending++]=k&255;W.pending_buf[W.pending++]=k>>>8&255};
H4=function(W,k,C){W.bi_valid>16-C?(W.bi_buf|=k<<W.bi_valid&65535,jf(W,W.bi_buf),W.bi_buf=k>>16-W.bi_valid,W.bi_valid+=C-16):(W.bi_buf|=k<<W.bi_valid&65535,W.bi_valid+=C)};
rd=function(W,k,C){H4(W,C[k*2],C[k*2+1])};
Dwp=function(W,k){var C=0;do C|=W&1,W>>>=1,C<<=1;while(--k>0);return C>>>1};
VIP=function(W,k,C){var n=Array(16),N=0,B;for(B=1;B<=15;B++)n[B]=N=N+C[B-1]<<1;for(C=0;C<=k;C++)N=W[C*2+1],N!==0&&(W[C*2]=Dwp(n[N]++,N))};
Jh3=function(W){var k;for(k=0;k<286;k++)W.dyn_ltree[k*2]=0;for(k=0;k<30;k++)W.dyn_dtree[k*2]=0;for(k=0;k<19;k++)W.bl_tree[k*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
chK=function(W){W.bi_valid>8?jf(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
I6w=function(W,k,C){chK(W);jf(W,C);jf(W,~C);gd.arraySet(W.pending_buf,W.window,k,C,W.pending);W.pending+=C};
SpP=function(W,k,C,n){var N=k*2,B=C*2;return W[N]<W[B]||W[N]===W[B]&&n[k]<=n[C]};
MIw=function(W,k,C){for(var n=W.heap[C],N=C<<1;N<=W.heap_len;){N<W.heap_len&&SpP(k,W.heap[N+1],W.heap[N],W.depth)&&N++;if(SpP(k,n,W.heap[N],W.depth))break;W.heap[C]=W.heap[N];C=N;N<<=1}W.heap[C]=n};
s83=function(W,k,C){var n=0;if(W.last_lit!==0){do{var N=W.pending_buf[W.d_buf+n*2]<<8|W.pending_buf[W.d_buf+n*2+1];var B=W.pending_buf[W.l_buf+n];n++;if(N===0)rd(W,B,k);else{var A=P4[B];rd(W,A+256+1,k);var w=Q8w[A];w!==0&&(B-=plX[A],H4(W,B,w));N--;A=N<256?KH[N]:KH[256+(N>>>7)];rd(W,A,C);w=vZc[A];w!==0&&(N-=eNI[A],H4(W,N,w))}}while(n<W.last_lit)}rd(W,256,k)};
GyI=function(W,k){var C=k.dyn_tree,n=k.stat_desc.static_tree,N=k.stat_desc.has_stree,B=k.stat_desc.elems,A,w=-1;W.heap_len=0;W.heap_max=573;for(A=0;A<B;A++)C[A*2]!==0?(W.heap[++W.heap_len]=w=A,W.depth[A]=0):C[A*2+1]=0;for(;W.heap_len<2;){var x=W.heap[++W.heap_len]=w<2?++w:0;C[x*2]=1;W.depth[x]=0;W.opt_len--;N&&(W.static_len-=n[x*2+1])}k.max_code=w;for(A=W.heap_len>>1;A>=1;A--)MIw(W,C,A);x=B;do A=W.heap[1],W.heap[1]=W.heap[W.heap_len--],MIw(W,C,1),n=W.heap[1],W.heap[--W.heap_max]=A,W.heap[--W.heap_max]=
n,C[x*2]=C[A*2]+C[n*2],W.depth[x]=(W.depth[A]>=W.depth[n]?W.depth[A]:W.depth[n])+1,C[A*2+1]=C[n*2+1]=x,W.heap[1]=x++,MIw(W,C,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];A=k.dyn_tree;x=k.max_code;n=k.stat_desc.static_tree;N=k.stat_desc.has_stree;B=k.stat_desc.extra_bits;var E=k.stat_desc.extra_base,a=k.stat_desc.max_length,X,d=0;for(X=0;X<=15;X++)W.bl_count[X]=0;A[W.heap[W.heap_max]*2+1]=0;for(k=W.heap_max+1;k<573;k++){var V=W.heap[k];X=A[A[V*2+1]*2+1]+1;X>a&&(X=a,d++);A[V*2+1]=X;if(!(V>
x)){W.bl_count[X]++;var c=0;V>=E&&(c=B[V-E]);var M=A[V*2];W.opt_len+=M*(X+c);N&&(W.static_len+=M*(n[V*2+1]+c))}}if(d!==0){do{for(X=a-1;W.bl_count[X]===0;)X--;W.bl_count[X]--;W.bl_count[X+1]+=2;W.bl_count[a]--;d-=2}while(d>0);for(X=a;X!==0;X--)for(V=W.bl_count[X];V!==0;)n=W.heap[--k],n>x||(A[n*2+1]!==X&&(W.opt_len+=(X-A[n*2+1])*A[n*2],A[n*2+1]=X),V--)}VIP(C,w,W.bl_count)};
yhK=function(W,k,C){var n,N=-1,B=k[1],A=0,w=7,x=4;B===0&&(w=138,x=3);k[(C+1)*2+1]=65535;for(n=0;n<=C;n++){var E=B;B=k[(n+1)*2+1];++A<w&&E===B||(A<x?W.bl_tree[E*2]+=A:E!==0?(E!==N&&W.bl_tree[E*2]++,W.bl_tree[32]++):A<=10?W.bl_tree[34]++:W.bl_tree[36]++,A=0,N=E,B===0?(w=138,x=3):E===B?(w=6,x=3):(w=7,x=4))}};
$wP=function(W,k,C){var n,N=-1,B=k[1],A=0,w=7,x=4;B===0&&(w=138,x=3);for(n=0;n<=C;n++){var E=B;B=k[(n+1)*2+1];if(!(++A<w&&E===B)){if(A<x){do rd(W,E,W.bl_tree);while(--A!==0)}else E!==0?(E!==N&&(rd(W,E,W.bl_tree),A--),rd(W,16,W.bl_tree),H4(W,A-3,2)):A<=10?(rd(W,17,W.bl_tree),H4(W,A-3,3)):(rd(W,18,W.bl_tree),H4(W,A-11,7));A=0;N=E;B===0?(w=138,x=3):E===B?(w=6,x=3):(w=7,x=4)}}};
ZOX=function(W){var k=4093624447,C;for(C=0;C<=31;C++,k>>>=1)if(k&1&&W.dyn_ltree[C*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(C=32;C<256;C++)if(W.dyn_ltree[C*2]!==0)return 1;return 0};
hM=function(W,k,C){W.pending_buf[W.d_buf+W.last_lit*2]=k>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=k&255;W.pending_buf[W.l_buf+W.last_lit]=C&255;W.last_lit++;k===0?W.dyn_ltree[C*2]++:(W.matches++,k--,W.dyn_ltree[(P4[C]+256+1)*2]++,W.dyn_dtree[(k<256?KH[k]:KH[256+(k>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
k1=function(W,k){W.msg=W$[k];return k};
Cv=function(W){for(var k=W.length;--k>=0;)W[k]=0};
nv=function(W){var k=W.state,C=k.pending;C>W.avail_out&&(C=W.avail_out);C!==0&&(gd.arraySet(W.output,k.pending_buf,k.pending_out,C,W.next_out),W.next_out+=C,k.pending_out+=C,W.total_out+=C,W.avail_out-=C,k.pending-=C,k.pending===0&&(k.pending_out=0))};
B$=function(W,k){var C=W.block_start>=0?W.block_start:-1,n=W.strstart-W.block_start,N=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=ZOX(W));GyI(W,W.l_desc);GyI(W,W.d_desc);yhK(W,W.dyn_ltree,W.l_desc.max_code);yhK(W,W.dyn_dtree,W.d_desc.max_code);GyI(W,W.bl_desc);for(N=18;N>=3&&W.bl_tree[RN4[N]*2+1]===0;N--);W.opt_len+=3*(N+1)+5+5+4;var B=W.opt_len+3+7>>>3;var A=W.static_len+3+7>>>3;A<=B&&(B=A)}else B=A=n+5;if(n+4<=B&&C!==-1)H4(W,k?1:0,3),I6w(W,C,n);else if(W.strategy===4||A===B)H4(W,2+(k?
1:0),3),s83(W,Nq,Y1);else{H4(W,4+(k?1:0),3);C=W.l_desc.max_code+1;n=W.d_desc.max_code+1;N+=1;H4(W,C-257,5);H4(W,n-1,5);H4(W,N-4,4);for(B=0;B<N;B++)H4(W,W.bl_tree[RN4[B]*2+1],3);$wP(W,W.dyn_ltree,C-1);$wP(W,W.dyn_dtree,n-1);s83(W,W.dyn_ltree,W.dyn_dtree)}Jh3(W);k&&chK(W);W.block_start=W.strstart;nv(W.strm)};
be=function(W,k){W.pending_buf[W.pending++]=k};
AE=function(W,k){W.pending_buf[W.pending++]=k>>>8&255;W.pending_buf[W.pending++]=k&255};
oZm=function(W,k){var C=W.max_chain_length,n=W.strstart,N=W.prev_length,B=W.nice_match,A=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,w=W.window,x=W.w_mask,E=W.prev,a=W.strstart+258,X=w[n+N-1],d=w[n+N];W.prev_length>=W.good_match&&(C>>=2);B>W.lookahead&&(B=W.lookahead);do{var V=k;if(w[V+N]===d&&w[V+N-1]===X&&w[V]===w[n]&&w[++V]===w[n+1]){n+=2;for(V++;w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&w[++n]===w[++V]&&n<a;);
V=258-(a-n);n=a-258;if(V>N){W.match_start=k;N=V;if(V>=B)break;X=w[n+N-1];d=w[n+N]}}}while((k=E[k&x])>A&&--C!==0);return N<=W.lookahead?N:W.lookahead};
wK=function(W){var k=W.w_size,C;do{var n=W.window_size-W.lookahead-W.strstart;if(W.strstart>=k+(k-262)){gd.arraySet(W.window,W.window,k,k,0);W.match_start-=k;W.strstart-=k;W.block_start-=k;var N=C=W.hash_size;do{var B=W.head[--N];W.head[N]=B>=k?B-k:0}while(--C);N=C=k;do B=W.prev[--N],W.prev[N]=B>=k?B-k:0;while(--C);n+=k}if(W.strm.avail_in===0)break;N=W.strm;C=W.window;B=W.strstart+W.lookahead;var A=N.avail_in;A>n&&(A=n);A===0?C=0:(N.avail_in-=A,gd.arraySet(C,N.input,N.next_in,A,B),N.state.wrap===
1?N.adler=iOX(N.adler,C,A,B):N.state.wrap===2&&(N.adler=FE(N.adler,C,A,B)),N.next_in+=A,N.total_in+=A,C=A);W.lookahead+=C;if(W.lookahead+W.insert>=3)for(n=W.strstart-W.insert,W.ins_h=W.window[n],W.ins_h=(W.ins_h<<W.hash_shift^W.window[n+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[n+3-1])&W.hash_mask,W.prev[n&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=n,n++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
Tiz=function(W,k){for(var C;;){if(W.lookahead<262){wK(W);if(W.lookahead<262&&k===0)return 1;if(W.lookahead===0)break}C=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,C=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);C!==0&&W.strstart-C<=W.w_size-262&&(W.match_length=oZm(W,C));if(W.match_length>=3)if(C=hM(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else C=hM(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(C&&(B$(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return k===4?(B$(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(B$(W,!1),W.strm.avail_out===0)?1:2};
x1=function(W,k){for(var C,n;;){if(W.lookahead<262){wK(W);if(W.lookahead<262&&k===0)return 1;if(W.lookahead===0)break}C=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,C=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;C!==0&&W.prev_length<W.max_lazy_match&&W.strstart-C<=W.w_size-262&&(W.match_length=oZm(W,C),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){n=W.strstart+W.lookahead-3;C=hM(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=n&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(C&&(B$(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((C=
hM(W,0,W.window[W.strstart-1]))&&B$(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(hM(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return k===4?(B$(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(B$(W,!1),W.strm.avail_out===0)?1:2};
qpJ=function(W,k){for(var C,n,N,B=W.window;;){if(W.lookahead<=258){wK(W);if(W.lookahead<=258&&k===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(n=W.strstart-1,C=B[n],C===B[++n]&&C===B[++n]&&C===B[++n])){for(N=W.strstart+258;C===B[++n]&&C===B[++n]&&C===B[++n]&&C===B[++n]&&C===B[++n]&&C===B[++n]&&C===B[++n]&&C===B[++n]&&n<N;);W.match_length=258-(N-n);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(C=hM(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(C=hM(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(C&&(B$(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return k===4?(B$(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(B$(W,!1),W.strm.avail_out===0)?1:2};
uiP=function(W,k){for(var C;;){if(W.lookahead===0&&(wK(W),W.lookahead===0)){if(k===0)return 1;break}W.match_length=0;C=hM(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(C&&(B$(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return k===4?(B$(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(B$(W,!1),W.strm.avail_out===0)?1:2};
le=function(W,k,C,n,N){this.good_length=W;this.max_lazy=k;this.nice_length=C;this.max_chain=n;this.func=N};
Uw4=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 gd.Buf16(1146);this.dyn_dtree=new gd.Buf16(122);this.bl_tree=new gd.Buf16(78);Cv(this.dyn_ltree);Cv(this.dyn_dtree);Cv(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new gd.Buf16(16);this.heap=new gd.Buf16(573);Cv(this.heap);this.heap_max=this.heap_len=0;this.depth=new gd.Buf16(573);Cv(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};
OOI=function(W,k){if(!W||!W.state||k>5||k<0)return W?k1(W,-2):-2;var C=W.state;if(!W.output||!W.input&&W.avail_in!==0||C.status===666&&k!==4)return k1(W,W.avail_out===0?-5:-2);C.strm=W;var n=C.last_flush;C.last_flush=k;if(C.status===42)if(C.wrap===2)W.adler=0,be(C,31),be(C,139),be(C,8),C.gzhead?(be(C,(C.gzhead.text?1:0)+(C.gzhead.hcrc?2:0)+(C.gzhead.extra?4:0)+(C.gzhead.name?8:0)+(C.gzhead.comment?16:0)),be(C,C.gzhead.time&255),be(C,C.gzhead.time>>8&255),be(C,C.gzhead.time>>16&255),be(C,C.gzhead.time>>
24&255),be(C,C.level===9?2:C.strategy>=2||C.level<2?4:0),be(C,C.gzhead.os&255),C.gzhead.extra&&C.gzhead.extra.length&&(be(C,C.gzhead.extra.length&255),be(C,C.gzhead.extra.length>>8&255)),C.gzhead.hcrc&&(W.adler=FE(W.adler,C.pending_buf,C.pending,0)),C.gzindex=0,C.status=69):(be(C,0),be(C,0),be(C,0),be(C,0),be(C,0),be(C,C.level===9?2:C.strategy>=2||C.level<2?4:0),be(C,3),C.status=113);else{var N=8+(C.w_bits-8<<4)<<8;N|=(C.strategy>=2||C.level<2?0:C.level<6?1:C.level===6?2:3)<<6;C.strstart!==0&&(N|=
32);C.status=113;AE(C,N+(31-N%31));C.strstart!==0&&(AE(C,W.adler>>>16),AE(C,W.adler&65535));W.adler=1}if(C.status===69)if(C.gzhead.extra){for(N=C.pending;C.gzindex<(C.gzhead.extra.length&65535)&&(C.pending!==C.pending_buf_size||(C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N)),nv(W),N=C.pending,C.pending!==C.pending_buf_size));)be(C,C.gzhead.extra[C.gzindex]&255),C.gzindex++;C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N));C.gzindex===C.gzhead.extra.length&&
(C.gzindex=0,C.status=73)}else C.status=73;if(C.status===73)if(C.gzhead.name){N=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N)),nv(W),N=C.pending,C.pending===C.pending_buf_size)){var B=1;break}B=C.gzindex<C.gzhead.name.length?C.gzhead.name.charCodeAt(C.gzindex++)&255:0;be(C,B)}while(B!==0);C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N));B===0&&(C.gzindex=0,C.status=91)}else C.status=91;if(C.status===
91)if(C.gzhead.comment){N=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N)),nv(W),N=C.pending,C.pending===C.pending_buf_size)){B=1;break}B=C.gzindex<C.gzhead.comment.length?C.gzhead.comment.charCodeAt(C.gzindex++)&255:0;be(C,B)}while(B!==0);C.gzhead.hcrc&&C.pending>N&&(W.adler=FE(W.adler,C.pending_buf,C.pending-N,N));B===0&&(C.status=103)}else C.status=103;C.status===103&&(C.gzhead.hcrc?(C.pending+2>C.pending_buf_size&&nv(W),
C.pending+2<=C.pending_buf_size&&(be(C,W.adler&255),be(C,W.adler>>8&255),W.adler=0,C.status=113)):C.status=113);if(C.pending!==0){if(nv(W),W.avail_out===0)return C.last_flush=-1,0}else if(W.avail_in===0&&(k<<1)-(k>4?9:0)<=(n<<1)-(n>4?9:0)&&k!==4)return k1(W,-5);if(C.status===666&&W.avail_in!==0)return k1(W,-5);if(W.avail_in!==0||C.lookahead!==0||k!==0&&C.status!==666){n=C.strategy===2?uiP(C,k):C.strategy===3?qpJ(C,k):tE[C.level].func(C,k);if(n===3||n===4)C.status=666;if(n===1||n===3)return W.avail_out===
0&&(C.last_flush=-1),0;if(n===2&&(k===1?(H4(C,2,3),rd(C,256,Nq),C.bi_valid===16?(jf(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)):k!==5&&(H4(C,0,3),I6w(C,0,0),k===3&&(Cv(C.head),C.lookahead===0&&(C.strstart=0,C.block_start=0,C.insert=0))),nv(W),W.avail_out===0))return C.last_flush=-1,0}if(k!==4)return 0;if(C.wrap<=0)return 1;C.wrap===2?(be(C,W.adler&255),be(C,W.adler>>8&255),be(C,W.adler>>16&255),be(C,W.adler>>24&255),be(C,
W.total_in&255),be(C,W.total_in>>8&255),be(C,W.total_in>>16&255),be(C,W.total_in>>24&255)):(AE(C,W.adler>>>16),AE(C,W.adler&65535));nv(W);C.wrap>0&&(C.wrap=-C.wrap);return C.pending!==0?0:1};
Lg2=function(W){if(!(this instanceof Lg2))return new Lg2(W);W=this.options=gd.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new j8z;this.strm.avail_out=0;var k=this.strm;var C=W.level,n=W.method,N=W.windowBits,B=W.memLevel,A=W.strategy;if(k){var w=1;C===-1&&(C=6);N<0?(w=0,N=-N):N>15&&
(w=2,N-=16);if(B<1||B>9||n!==8||N<8||N>15||C<0||C>9||A<0||A>4)k=k1(k,-2);else{N===8&&(N=9);var x=new Uw4;k.state=x;x.strm=k;x.wrap=w;x.gzhead=null;x.w_bits=N;x.w_size=1<<x.w_bits;x.w_mask=x.w_size-1;x.hash_bits=B+7;x.hash_size=1<<x.hash_bits;x.hash_mask=x.hash_size-1;x.hash_shift=~~((x.hash_bits+3-1)/3);x.window=new gd.Buf8(x.w_size*2);x.head=new gd.Buf16(x.hash_size);x.prev=new gd.Buf16(x.w_size);x.lit_bufsize=1<<B+6;x.pending_buf_size=x.lit_bufsize*4;x.pending_buf=new gd.Buf8(x.pending_buf_size);
x.d_buf=x.lit_bufsize;x.l_buf=3*x.lit_bufsize;x.level=C;x.strategy=A;x.method=n;if(k&&k.state){k.total_in=k.total_out=0;k.data_type=2;C=k.state;C.pending=0;C.pending_out=0;C.wrap<0&&(C.wrap=-C.wrap);C.status=C.wrap?42:113;k.adler=C.wrap===2?0:1;C.last_flush=0;if(!HO3){n=Array(16);for(B=A=0;B<28;B++)for(plX[B]=A,N=0;N<1<<Q8w[B];N++)P4[A++]=B;P4[A-1]=B;for(B=A=0;B<16;B++)for(eNI[B]=A,N=0;N<1<<vZc[B];N++)KH[A++]=B;for(A>>=7;B<30;B++)for(eNI[B]=A<<7,N=0;N<1<<vZc[B]-7;N++)KH[256+A++]=B;for(N=0;N<=15;N++)n[N]=
0;for(N=0;N<=143;)Nq[N*2+1]=8,N++,n[8]++;for(;N<=255;)Nq[N*2+1]=9,N++,n[9]++;for(;N<=279;)Nq[N*2+1]=7,N++,n[7]++;for(;N<=287;)Nq[N*2+1]=8,N++,n[8]++;VIP(Nq,287,n);for(N=0;N<30;N++)Y1[N*2+1]=5,Y1[N*2]=Dwp(N,5);rhc=new mw3(Nq,Q8w,257,286,15);gZ3=new mw3(Y1,vZc,0,30,15);PKz=new mw3([],Kgw,0,19,7);HO3=!0}C.l_desc=new zN4(C.dyn_ltree,rhc);C.d_desc=new zN4(C.dyn_dtree,gZ3);C.bl_desc=new zN4(C.bl_tree,PKz);C.bi_buf=0;C.bi_valid=0;Jh3(C);C=0}else C=k1(k,-2);C===0&&(k=k.state,k.window_size=2*k.w_size,Cv(k.head),
k.max_lazy_match=tE[k.level].max_lazy,k.good_match=tE[k.level].good_length,k.nice_match=tE[k.level].nice_length,k.max_chain_length=tE[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=2,k.match_available=0,k.ins_h=0);k=C}}else k=-2;if(k!==0)throw Error(W$[k]);W.header&&(k=this.strm)&&k.state&&k.state.wrap===2&&(k.state.gzhead=W.header);if(W.dictionary){var E;typeof W.dictionary==="string"?E=hNI(W.dictionary):WW3.call(W.dictionary)==="[object ArrayBuffer]"?
E=new Uint8Array(W.dictionary):E=W.dictionary;W=this.strm;B=E;A=B.length;if(W&&W.state)if(E=W.state,k=E.wrap,k===2||k===1&&E.status!==42||E.lookahead)k=-2;else{k===1&&(W.adler=iOX(W.adler,B,A,0));E.wrap=0;A>=E.w_size&&(k===0&&(Cv(E.head),E.strstart=0,E.block_start=0,E.insert=0),C=new gd.Buf8(E.w_size),gd.arraySet(C,B,A-E.w_size,E.w_size,0),B=C,A=E.w_size);C=W.avail_in;n=W.next_in;N=W.input;W.avail_in=A;W.next_in=0;W.input=B;for(wK(E);E.lookahead>=3;){B=E.strstart;A=E.lookahead-2;do E.ins_h=(E.ins_h<<
E.hash_shift^E.window[B+3-1])&E.hash_mask,E.prev[B&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=B,B++;while(--A);E.strstart=B;E.lookahead=2;wK(E)}E.strstart+=E.lookahead;E.block_start=E.strstart;E.insert=E.lookahead;E.lookahead=0;E.match_length=E.prev_length=2;E.match_available=0;W.next_in=n;W.input=N;W.avail_in=C;E.wrap=k;k=0}else k=-2;if(k!==0)throw Error(W$[k]);this._dict_set=!0}};
kMc=function(W,k){k=k||{};k.gzip=!0;k=new Lg2(k);k.push(W,!0);if(k.err)throw k.msg||W$[k.err];return k.result};
nrJ=function(W,k){var C=C0w();C&&C.publish.call(C,W.toString(),W,k)};
AvP=function(W,k,C){var n=C0w();if(!n)return 0;var N=n.subscribe(W.toString(),function(B,A){var w=_.QK("ytPubsub2Pubsub2SkipSubKey");w&&w==N||(w=function(){if(NHJ[N])try{if(A&&W instanceof YC2&&W!=B)try{var x=W.dataClass,E=A;if(!E.args||!E.version)throw Error("Xc");try{if(!x.version_){var a=new x;x.version_=a.version}var X=x.version_}catch(d){}if(!X||E.version!=X)throw Error("Yc");try{A=Reflect.construct(x,_.T4(E.args))}catch(d){throw d.message="yt.pubsub2.Data.deserialize(): "+d.message,d;}}catch(d){throw d.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+d.message,d;}k.call(C||window,A)}catch(d){_.I4(d)}},BHm[W.toString()]?_.QK("yt.scheduler.instance")?_.aM.addLowPriorityJob(w):_.rA(w,0):w())});
NHJ[N]=!0;bqp[W.toString()]||(bqp[W.toString()]=[]);bqp[W.toString()].push(N);return N};
lyz=function(){var W=FWw,k=AvP(wpX,function(C){W.apply(void 0,arguments);xsm(k)});
return k};
xsm=function(W){var k=C0w();k&&(typeof W==="number"&&(W=[W]),_.eO(W,function(C){k.unsubscribeByKey(C);delete NHJ[C]}))};
C0w=function(){return _.QK("ytPubsub2Pubsub2Instance")};
tYK=function(W,k,C){C=C===void 0?{sampleRate:.1}:C;Math.random()<Math.min(.02,C.sampleRate/100)&&nrJ("meta_logging_csi_event",{timerName:W,timelineData:k})};
_.ErK=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Uz(W):null:null};
_.XE=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.to(W):null:null};
Xpm=function(){ayw||(ayw=_.XE(_.DE("WORKER_SERIALIZATION_URL")));return ayw||void 0};
_.dsP=function(){var W=Xpm();fyp||W===void 0||(fyp=new Worker(_.Ez(W),void 0));return fyp};
_.msw=function(){return typeof Worker==="function"&&Xpm()?!0:!1};
_.Jvw=function(){if(_.msw()&&!zUm){var W=function(C){C=C.data;if(C.op==="gzippedGelBatch"){var n=DsP.get(C.key);n&&(VYw(C.gzippedBatch,n.latencyPayload,n.url,n.options,n.sendFn),DsP.delete(C.key))}},k=_.dsP();
k&&(k.addEventListener("message",W),k.onerror=function(){DsP.clear()},zUm=!0)}};
vrm=function(W,k,C,n,N){N=N===void 0?!1:N;var B={startTime:(0,_.oX)(),ticks:{},infos:{}};if(fv)try{var A=cvm(k);if(A!=null&&(A>Iy2||A<SCp))n(W,C);else{if(_.m("gzip_gel_with_worker")&&(_.m("initial_gzip_use_main_thread")&&!MYc||!_.m("initial_gzip_use_main_thread"))){zUm||_.Jvw();var w=_.dsP();if(w&&!N){DsP.set(QKw,{latencyPayload:B,url:W,options:C,sendFn:n});w.postMessage({op:"gelBatchToGzip",serializedBatch:k,key:QKw});QKw++;return}}var x=kMc(ppm(k));VYw(x,B,W,C,n)}}catch(E){_.pS(E),n(W,C)}else n(W,
C)};
VYw=function(W,k,C,n,N){MYc=!1;var B=(0,_.oX)();k.ticks.gelc=B;ma++;_.m("disable_compression_due_to_performance_degredation")&&B-k.startTime>=eUp&&(sKK++,_.m("abandon_compression_after_N_slow_zips")?ma===_.Oe("compression_disable_point")&&sKK>GMI&&(fv=!1):fv=!1);yvm(k);n.headers||(n.headers={});n.headers["Content-Encoding"]="gzip";n.postBody=W;n.postParams=void 0;N(C,n)};
$sJ=function(W){var k=k===void 0?!1:k;var C=C===void 0?!1:C;var n=(0,_.oX)(),N={startTime:n,ticks:{},infos:{}},B=k?_.QK("yt.logging.gzipForFetch",!1):!0;if(fv&&B){if(!W.body)return W;try{var A=C?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);B=A;if(!C&&typeof A==="string"){var w=cvm(A);if(w!=null&&(w>Iy2||w<SCp))return W;C=k?{level:1}:void 0;B=kMc(ppm(A),C);var x=(0,_.oX)();N.ticks.gelc=x;if(k){ma++;if((_.m("disable_compression_due_to_performance_degredation")||_.m("disable_compression_due_to_performance_degradation_lr"))&&
x-n>=eUp)if(sKK++,_.m("abandon_compression_after_N_slow_zips")||_.m("abandon_compression_after_N_slow_zips_lr")){k=sKK/ma;var E=GMI/_.Oe("compression_disable_point");ma>0&&ma%_.Oe("compression_disable_point")===0&&k>=E&&(fv=!1)}else fv=!1;yvm(N)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=B;return W}catch(a){return _.pS(a),W}}else return W};
cvm=function(W){try{return(new Blob(W.split(""))).size}catch(k){return _.pS(k),null}};
yvm=function(W){_.m("gel_compression_csi_killswitch")||!_.m("log_gel_compression_latency")&&!_.m("log_gel_compression_latency_lr")||tYK("gel_compression",W,{sampleRate:.1})};
Zqm=function(){this.blockSize=-1};
zw=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
or3=function(W){W=Object.assign({},W);delete W.Authorization;var k=RUK();if(k){var C=new zw;C.update(_.DE("INNERTUBE_API_KEY"));C.update(k);W.hash=_.zC(C.digest(),3)}return W};
Vw=function(){iqI||(iqI=new _.D3("yt.innertube"));return iqI};
THX=function(W,k,C,n){if(n)return null;n=Vw().get("nextId",!0)||1;var N=Vw().get("requests",!0)||{};N[n]={method:W,request:k,authState:or3(C),requestTime:Math.round((0,_.oX)())};Vw().set("nextId",n+1,86400,!0);Vw().set("requests",N,86400,!0);return n};
qC3=function(W){var k=Vw().get("requests",!0)||{};delete k[W];Vw().set("requests",k,86400,!0)};
Usm=function(W){var k=Vw().get("requests",!0);if(k){for(var C in k){var n=k[C];if(!(Math.round((0,_.oX)())-n.requestTime<6E4)){var N=n.authState,B=or3(_.f6m(!1));_.JU.equals(N,B)&&(N=n.request,"requestTimeMs"in N&&(N.requestTimeMs=Math.round((0,_.oX)())),urP(W,n.method,N,{}));delete k[C]}}Vw().set("requests",k,86400,!0)}};
Oqw=function(W){var k;return(W=W==null?void 0:(k=W.error)==null?void 0:k.code)&&W>=400&&W<=599?!1:!0};
LWz=function(W){var k;W=W==null?void 0:(k=W.error)==null?void 0:k.code;return!(W!==400&&W!==415)};
Hqm=function(){if(jKX)return jKX();var W={};jKX=RX("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(k,C,n){C(2)&&JE(k,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});C(3);C(5)&&(n=n.objectStore("LogsRequestsStore"),n.JSC$8466_wrapped.indexNames.contains("newRequest")&&n.JSC$8466_wrapped.deleteIndex("newRequest"),c$(n,"newRequestV2",["status","interface","timestamp"]));C(7)&&k.JSC$8451_wrapped.objectStoreNames.contains("sapisid")&&k.JSC$8451_wrapped.deleteObjectStore("sapisid");
C(9)&&k.JSC$8451_wrapped.objectStoreNames.contains("SWHealthLog")&&k.JSC$8451_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return jKX()};
IM=function(W){return _.pH(Hqm(),W)};
grJ=function(W,k){var C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return C={startTime:(0,_.oX)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.l(A,IM(k),2);if(A.nextAddress!=3)return n=A.yieldResult,N=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.l(A,n.put("LogsRequestsStore",N),3);B=A.yieldResult;C.ticks.tc=(0,_.oX)();rvm(C);return A.return(B)})};
P0I=function(W,k){var C,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return C={startTime:(0,_.oX)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.l(a,IM(k),2);if(a.nextAddress!=3)return n=a.yieldResult,N=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[W,N,0],A=[W,N,(0,_.oX)()],w=IDBKeyRange.bound(B,A),x="prev",_.m("use_fifo_for_networkless")&&(x="next"),E=void 0,_.l(a,_.v4(n,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.ip(X.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:w,direction:x},function(d){d.getValue()&&(E=d.getValue(),W==="NEW"&&(E.status="QUEUED",d.update(E)))})}),3);
C.ticks.tc=(0,_.oX)();rvm(C);return a.return(E)})};
KWp=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,IM(k),2);C=n.yieldResult;return n.return(_.v4(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){var B=N.objectStore("LogsRequestsStore");return B.get(W).then(function(A){if(A)return A.status="QUEUED",B.put(A).then(function(){return A})})}))})};
hUX=function(W,k,C,n){C=C===void 0?!0:C;var N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,IM(k),2);N=B.yieldResult;return B.return(_.v4(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(A){var w=A.objectStore("LogsRequestsStore");return w.get(W).then(function(x){return x?(x.status="NEW",C&&(x.sendCount+=1),n!==void 0&&(x.options.compress=n),w.put(x).then(function(){return x})):JM.resolve(void 0)})}))})};
W83=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,IM(k),2);C=n.yieldResult;return n.return(C.delete("LogsRequestsStore",W))})};
kjc=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,IM(W),2);k=n.yieldResult;C=(0,_.oX)()-2592E6;return _.l(n,_.v4(k,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){return sh(N.objectStore("LogsRequestsStore"),{},function(B){if(B.getValue().timestamp<=C)return B.delete().then(function(){return B.continue()})})}),0)})};
C6p=function(){_.F(function(W){return _.l(W,O5I("LogsDatabaseV2"),0)})};
rvm=function(W){_.m("nwl_csi_killswitch")||tYK("networkless_performance",W,{sampleRate:1})};
_.NyX=function(W){return _.pH(nfw(),W)};
YiP=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,_.NyX(W),2);k=n.yieldResult;C=(0,_.oX)()-2592E6;return _.l(n,_.v4(k,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(N){return sh(N.objectStore("SWHealthLog"),{},function(B){if(B.getValue().timestamp<=C)return B.delete().then(function(){return B.continue()})})}),0)})};
ByK=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,_.NyX(W),2);k=C.yieldResult;return _.l(C,k.clear("SWHealthLog"),0)})};
_.Sk=function(W,k,C,n,N,B,A){N=N===void 0?"":N;B=B===void 0?!1:B;A=A===void 0?!1:A;if(W)if(C&&!mK("cobalt"))_.pS(new _.AM("Legacy referrer-scrubbed ping detected")),W&&bip(W,void 0,{scrubReferrer:!0});else if(N)GD4(W,k,"POST",N,n);else if(_.DE("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||n||A)GD4(W,k,"GET","",n,void 0,B,A);else{b:{try{c:{var w=new A7w({url:W});if(aE2(w.JSC$7352_url_,"dsh")==="1")var x=null;else{var E=aE2(w.JSC$7352_url_,"ae");if(E==="1"){var a=aE2(w.JSC$7352_url_,"adurl");if(a)try{x={version:3,
directUrl:decodeURIComponent(a),asyncUrl:Xvc(w.JSC$7352_url_,"act=1","ri=1",F8p(w))};break c}catch(c){}}x=E==="2"?{version:4,directUrl:Xvc(w.JSC$7352_url_,"dct=1","suid="+w.suid_,""),asyncUrl:Xvc(w.JSC$7352_url_,"act=1","ri=1","suid="+w.suid_)}:null}}if(x){var X=_.KS(W);var d=!(!X||!X.endsWith("/aclk")||_.e_(W,"ri")!=="1");break b}}catch(c){}d=!1}if(d){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var V=!0;break b}}catch(c){}V=!1}V?(k&&k(),C=!0):C=!1}else C=
!1;C||bip(W,k)}};
bip=function(W,k,C){C=C===void 0?{}:C;var n=new Image,N=""+wjc++;xNI[N]=n;n.onload=n.onerror=function(){k&&xNI[N]&&k();delete xNI[N]};
C.scrubReferrer&&(n.referrerPolicy="no-referrer");n.src=W};
Mq=function(W,k){lz4(W,k==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
tcK=function(W){var k;return((k=document.featurePolicy)==null?0:k.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
Ef2=function(W){if(!W)return!1;try{var k;if(((k=_.se(W))==null?void 0:k.asm)==="4")return!0}catch(C){_.I4(C)}return!1};
lz4=function(W,k){k?(W=tcK(W),_.Sk(W,void 0,void 0,void 0,"",!0,!0)):_.Sk(W)};
Xjw=function(){azJ||(azJ=new _.D3("yt.offline"));return azJ};
fzJ=function(W){if(_.m("offline_error_handling")){var k=Xjw().get("errors",!0)||{};k[W.message]={name:W.name,stack:W.stack};W.level&&(k[W.message].level=W.level);Xjw().set("errors",k,2592E3,!0)}};
mN3=function(W,k,C,n){n=n===void 0?!1:n;k=_.m("web_fp_via_jspb")?Object.assign({},k):k;_.m("use_cfr_monitor")&&dNm(W,k);if(_.m("use_request_time_ms_header"))k.headers&&iI(W)&&(k.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.oX)())));else{var N;if((N=k.postParams)==null?0:N.requestTimeMs)k.postParams.requestTimeMs=Math.round((0,_.oX)())}C&&Object.keys(k).length===0?_.Sk(W):k.compress?k.postBody?(typeof k.postBody!=="string"&&(k.postBody=JSON.stringify(k.postBody)),vrm(W,k.postBody,
k,_.hj,n)):vrm(W,JSON.stringify(k.postParams),k,Rd4,n):_.hj(W,k)};
z8z=function(W,k){_.m("use_event_time_ms_header")&&iI(W)&&(k.headers||(k.headers={}),k.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.oX)())));return k};
_.VcX=function(){DNX||(DNX=new _.Qw({logOfflineErrors:!0,enablePolling:!0}));return DNX};
dNm=function(W,k){var C=k.onError?k.onError:function(){};
k.onError=function(N,B){pv().requestComplete(W,!1);C(N,B)};
var n=k.onSuccess?k.onSuccess:function(){};
k.onSuccess=function(N,B){pv().requestComplete(W,!0);n(N,B)}};
_.J7X=function(){return _.R4(document.location.toString())!=="www.youtube-nocookie.com"};
_.Sim=function(){return _.QK("ytNetworklessLoggingInitializationOptions")?_.c73.isNwlInitialized:_.Iz4};
McJ=function(W,k){if(_.m("polymer_on_demand_shady_dom")){var C;var n=(C=W.__shady_native_firstElementChild)!=null?C:W.firstElementChild}else n=W.firstElementChild;for(;n;){if(W=k(n)?n:McJ(n,k))return W;n=n.nextElementSibling}return null};
pjw=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var k=QE2+"VisibilityState";if(k in W)return W[k]};
_.vfI=function(W,k){var C;v$(W,function(n){C=k[n];return!!C});
return C};
_.sL=function(W){var k=e82(W);k?k.focus():_.ek(W)};
e82=function(W){return(W=McJ(W,function(k){return _.Gw(k)?sEw(k)&&!!k.offsetParent:!1}))?W:null};
_.ek=function(W,k){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(k)};
GjX=function(W,k,C,n){n=n===void 0?{}:n;W.addEventListener&&(k!="mouseenter"||"onmouseenter"in document?k!="mouseleave"||"onmouseenter"in document?k=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(k="MozMousePixelScroll"):k="mouseout":k="mouseover");return _.JU.findKey(yw,function(N){var B=typeof N[4]==="boolean"&&N[4]==!!n,A=_.O2(N[4])&&_.O2(n)&&_.JU.equals(N[4],n);return!!N.length&&N[0]==W&&N[1]==k&&N[2]==C&&(B||A)})};
_.Z3=function(W,k,C,n){n=n===void 0?{}:n;if(!W||!W.addEventListener&&!W.attachEvent)return"";var N=GjX(W,k,C,n);if(N)return N;N=++y7K.count+"";var B=!(k!="mouseenter"&&k!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var A=B?function(w){w=new $1(w);if(!_.vD(w.relatedTarget,function(x){return x==W},!0))return w.currentTarget=W,w.type=k,C.call(W,w)}:function(w){w=new $1(w);
w.currentTarget=W;return C.call(W,w)};
A=_.MI(A);W.addEventListener?(k=="mouseenter"&&B?k="mouseover":k=="mouseleave"&&B?k="mouseout":k=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(k="MozMousePixelScroll"),$NP()||typeof n==="boolean"?W.addEventListener(k,A,n):W.addEventListener(k,A,!!n.capture)):W.attachEvent("on"+k,A);yw[N]=[W,k,C,A,n];return N};
_.R8J=function(W,k,C){var n=n===void 0?{}:n;var N=_.Z3(W,k,function(){_.Ziw(N);C.apply(W,arguments)},n)};
_.Ziw=function(W){W&&(typeof W=="string"&&(W=[W]),_.eO(W,function(k){if(k in yw){var C=yw[k],n=C[0],N=C[1],B=C[3];C=C[4];n.removeEventListener?$NP()||typeof C==="boolean"?n.removeEventListener(N,B,C):n.removeEventListener(N,B,!!C.capture):n.detachEvent&&n.detachEvent("on"+N,B);delete yw[k]}}))};
RM=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Z3(window,"mousemove",(0,_.fN)(this.onMouseMove_,this));this.timerId_=_.gA((0,_.fN)(this.checkPosition_,this),25)};
iiw=function(){var W={};var k=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.QK("_lact",window)==null){var C=parseInt(_.DE("LACT"),10);C=isFinite(C)?Date.now()-Math.max(C,0):-1;_.$g("_lact",C,window);_.$g("_fact",C,window);C==-1&&_.oM();_.Z3(document,"keydown",_.oM);_.Z3(document,"keyup",_.oM);_.Z3(document,"mousedown",_.oM);_.Z3(document,"mouseup",_.oM);k?_.Z3(window,"touchmove",function(){ofm("touchmove",200)},{passive:!0}):
(_.Z3(window,"resize",function(){ofm("resize",200)}),W&&_.Z3(window,"scroll",function(){ofm("scroll",200)}));
new RM(function(){ofm("mouse",100)});
_.Z3(document,"touchstart",_.oM,{passive:!0});_.Z3(document,"touchend",_.oM,{passive:!0})}};
ofm=function(W,k){Ty2[W]||(Ty2[W]=!0,_.aM.addLowPriorityJob(function(){_.oM();Ty2[W]=!1},k))};
_.oM=function(){_.QK("_lact",window)==null&&iiw();var W=Date.now();_.$g("_lact",W,window);_.QK("_fact",window)==-1&&_.$g("_fact",W,window);(W=_.QK("ytglobal.ytUtilActivityCallback_"))&&W()};
_.ie=function(){var W=_.QK("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.jk=function(W,k,C){var n=_.qq();if(n&&k){var N=n.subscribe(W,function(){var B=arguments,A=function(){ue[N]&&k.apply&&typeof k.apply=="function"&&k.apply(C||window,B)};
try{_.qiw[W]?A():_.rA(A,0)}catch(w){_.I4(w)}},C);
ue[N]=!0;Lv[W]||(Lv[W]=[]);Lv[W].push(N);return N}return 0};
_.uZ4=function(W){var k=_.qq();k&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.eO(W,function(C){k.unsubscribeByKey(C);delete ue[C]}))};
_.UNm=function(W,k){var C=_.qq();C&&C.publish.apply(C,arguments)};
_.L8z=function(W){var k=_.qq();if(k)if(k.clear(W),W)Oiw(W);else for(var C in Lv)Oiw(C)};
_.qq=function(){return _.NX.ytPubsubPubsubInstance};
Oiw=function(W){Lv[W]&&(W=Lv[W],_.eO(W,function(k){ue[k]&&delete ue[k]}),W.length=0)};
jEI=function(){var W,k;return"h5vcc"in H$&&((W=H$.h5vcc.traceEvent)==null?0:W.traceBegin)&&((k=H$.h5vcc.traceEvent)==null?0:k.traceEnd)?1:"performance"in H$&&H$.performance.mark&&H$.performance.measure?2:0};
Hi2=function(W){var k=jEI();switch(k){case 1:H$.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:H$.performance.mark(W+"-start");break;case 0:break;default:_.oI(k,"unknown trace type")}};
r7m=function(W){var k=jEI();switch(k){case 1:H$.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:k=W+"-start";var C=W+"-end";H$.performance.mark(C);H$.performance.measure(W,k,C);break;case 0:break;default:_.oI(k,"unknown trace type")}};
gfw=function(W){var k,C;(C=(k=window).onerror)==null||C.call(k,W.message,"",0,0,W)};
P6m=function(W){if(_.m("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(k){gfw(k)}};
K82=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.z=function(W,k){if(W)return W[k.name]};
_.rK=function(W){return W};
P$=function(){var W=_.QK("yt.logging.ims");W||(W=new gK,_.$g("yt.logging.ims",W));return W};
bnz=function(W,k){if(W.endpoint==="log_event"){h8c(W);var C=W0X(W),n=kf2(W.payload)||"",N=CVw(n),B=200;if(N){if(N.enabled===!1&&!_.m("web_payload_policy_disabled_killswitch"))return;B=naP(N.tier);if(B===400){NE3(W,k);return}}Kv[C]=!0;C={cttAuthInfo:C,isJspb:!1,tier:B};P$().storePayload(C,W.payload);YJ4(k,!1,C,BE4(n))}};
F0c=function(W,k,C){if(k.endpoint==="log_event"){h8c(void 0,k);var n=W0X(k,!0),N=CVw(W),B=200;if(N){if(N.enabled===!1&&!_.m("web_payload_policy_disabled_killswitch"))return;B=naP(N.tier);if(B===400){AWm(W,k,C);return}}Kv[n]=!0;n={cttAuthInfo:n,isJspb:!0,tier:B};P$().storePayload(n,VT(k.payload));YJ4(C,!0,n,BE4(W))}};
YJ4=function(W,k,C,n){k=k===void 0?!1:k;n=n===void 0?!1:n;W&&(hE=new W);W=_.Oe("tvhtml5_logging_max_batch_ads_fork")||_.Oe("tvhtml5_logging_max_batch")||_.Oe("web_logging_max_batch")||100;var N=(0,_.oX)(),B=wJw(k,C.tier),A=B.lastDebounceQueueFromLogTimeMs;n&&(B.useVideoStatsEndPoint=!0);n=0;C&&(n=P$().getSequenceCount(C));var w=function(){xE2({writeThenSend:!0},k,C.tier)};
n>=1E3?w():n>=W?lfz||(lfz=trJ(function(){w();lfz=void 0},0)):N-A>=10&&(EaI(k,C.tier),B.lastDebounceQueueFromLogTimeMs=N)};
NE3=function(W,k){if(W.endpoint==="log_event"){_.m("more_accurate_gel_parser")&&P$().storePayload({isJspb:!1},W.payload);h8c(W);var C=W0X(W),n=new Map;n.set(C,[W.payload]);var N=kf2(W.payload)||"";k&&(hE=new k);return new _.Wx(function(B,A){hE&&hE.isReady()?afI(n,hE,B,A,{bypassNetworkless:!0},!0,BE4(N)):B()})}};
AWm=function(W,k,C){if(k.endpoint==="log_event"){h8c(void 0,k);var n=W0X(k,!0),N=new Map;N.set(n,[VT(k.payload)]);C&&(hE=new C);return new _.Wx(function(B){hE&&hE.isReady()?XJK(N,hE,B,{bypassNetworkless:!0},!0,BE4(W)):B()})}};
W0X=function(W,k){var C="";if(W.dangerousLogToVisitorSession)C="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(k===void 0?0:k){k=W.cttAuthInfo.token;C=W.cttAuthInfo;var n=new ffp;C.videoId?n.setVideoId(C.videoId):C.playlistId&&kI(n,2,dEz,wZ(C.playlistId));mE2[k]=n}else k=W.cttAuthInfo,C={},k.videoId?C.videoId=k.videoId:k.playlistId&&(C.playlistId=k.playlistId),zxm[W.cttAuthInfo.token]=C;C=W.cttAuthInfo.token}return C};
xE2=function(W,k,C){W=W===void 0?{}:W;k=k===void 0?!1:k;new _.Wx(function(n,N){var B=wJw(k,C),A=B.useVideoStatsEndPoint;B.useVideoStatsEndPoint=!1;DEw(B.queueTimer);DEw(B.queueMaxTimer);B.queueMaxTimer=0;hE&&hE.isReady()?C===void 0&&_.m("enable_web_tiered_gel")?Vrm(n,N,W,k,300,A):Vrm(n,N,W,k,C,A):(EaI(k,C),n())})};
Vrm=function(W,k,C,n,N,B){var A=hE;C=C===void 0?{}:C;n=n===void 0?!1:n;N=N===void 0?200:N;B=B===void 0?!1:B;var w=new Map,x=new Map,E={isJspb:n,cttAuthInfo:void 0,tier:N},a={isJspb:n,cttAuthInfo:void 0};if(n){k=_.b(Object.keys(Kv));for(N=k.next();!N.done;N=k.next())N=N.value,x=_.m("enable_web_tiered_gel")?P$().smartExtractMatchingEntries({keys:[E,a],sizeLimit:1E3}):P$().extractMatchingEntries({isJspb:!0,cttAuthInfo:N}),x.length>0&&w.set(N,x),(_.m("web_fp_via_jspb_and_json")&&C.writeThenSend||!_.m("web_fp_via_jspb_and_json"))&&
delete Kv[N];XJK(w,A,W,C,!1,B)}else{w=_.b(Object.keys(Kv));for(E=w.next();!E.done;E=w.next())E=E.value,a=_.m("enable_web_tiered_gel")?P$().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:E,tier:N},{isJspb:!1,cttAuthInfo:E}],sizeLimit:1E3}):P$().extractMatchingEntries({isJspb:!1,cttAuthInfo:E}),a.length>0&&x.set(E,a),(_.m("web_fp_via_jspb_and_json")&&C.writeThenSend||!_.m("web_fp_via_jspb_and_json"))&&delete Kv[E];afI(x,A,W,k,C,!1,B)}};
EaI=function(W,k){W=W===void 0?!1:W;k=k===void 0?200:k;var C=function(){xE2({writeThenSend:!0},W,k)},n=wJw(W,k),N=n===JWX||n===cWP?5E3:Ifp;
_.m("web_gel_timeout_cap")&&!n.queueMaxTimer&&(N=trJ(function(){C()},N),n.queueMaxTimer=N);
DEw(n.queueTimer);N=_.DE("LOGGING_BATCH_TIMEOUT",_.Oe("web_gel_debounce_ms",1E4));_.m("shorten_initial_gel_batch_timeout")&&SJw&&(N=MrX);N=trJ(function(){_.Oe("gel_min_batch_size")>0?P$().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:k})>=Qh2&&C():C()},N);
n.queueTimer=N};
afI=function(W,k,C,n,N,B,A){N=N===void 0?{}:N;var w=Math.round((0,_.oX)()),x=W.size,E=pJ4(A);W=_.b(W);var a=W.next();for(A={};!a.done;A={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},a=W.next()){var X=_.b(a.value);a=X.next().value;X=X.next().value;A.batchRequest=_.JU.unsafeClone({context:_.AhP(k.config_||_.TW())});if(!_.qX(X)&&!_.m("throw_err_when_logevent_malformed_killswitch")){n();break}A.batchRequest.events=X;
(X=zxm[a])&&vaz(A.batchRequest,a,X);delete zxm[a];A.dangerousLogToVisitorSession=a==="visitorOnlyApprovedKey";exw(A.batchRequest,w,A.dangerousLogToVisitorSession);shw(N);A.onSuccess$jscomp$3=function(d){_.m("start_client_gcf")&&_.aM.addLowPriorityJob(function(){return _.F(function(V){return _.l(V,Gfp(d),0)})});
x--;x||C()};
A.networkFailures=0;A.onError$jscomp$5=function(d){return function(){d.networkFailures++;if(N.bypassNetworkless&&d.networkFailures===1)try{urP(k,E,d.batchRequest,yWc({writeThenSend:!0},d.dangerousLogToVisitorSession,d.onSuccess$jscomp$3,d.onError$jscomp$5,B)),SJw=!1}catch(V){_.I4(V),n()}x--;x||C()}}(A);
try{urP(k,E,A.batchRequest,yWc(N,A.dangerousLogToVisitorSession,A.onSuccess$jscomp$3,A.onError$jscomp$5,B)),SJw=!1}catch(d){_.I4(d),n()}}};
XJK=function(W,k,C,n,N,B){n=n===void 0?{}:n;var A=Math.round((0,_.oX)()),w={value:W.size},x=new Map([].concat(_.J8(W)));x=_.b(x);for(var E=x.next();!E.done;E=x.next()){var a=_.b(E.value).next().value,X=W.get(a);E=new $EI;var d=k.config_||_.TW(),V=new CM,c=new ZnX;_.fU(c,1,d.innertubeContextHostLanguage);_.fU(c,2,d.innertubeContextGeoLocation);_.up(c,16,d.innertubeContextClientNameFieldNumber);_.fU(c,17,d.innertubeContextClientVersion);if(d.innertubeContextClientConfigInfo){var M=d.innertubeContextClientConfigInfo,
p=new Oh;M.coldConfigData&&_.fU(p,1,M.coldConfigData);M.appInstallData&&_.fU(p,6,M.appInstallData);M.coldHashData&&_.fU(p,3,M.coldHashData);M.hotHashData&&p.setHotHashData(M.hotHashData);_.B6(c,62,p)}(M=_.NX.devicePixelRatio)&&M!=1&&_.Uh(c,65,_.ib(M));M=cQm();M!==""&&_.fU(c,54,M);M=Ir4();if(M.length>0){p=new RxP;for(var e=0;e<M.length;e++){var u=new nM;u.setKey(M[e].key);kI(u,2,oaI,wZ(M[e].value));NP(p,15,nM,u)}_.B6(V,5,p)}CKp(d,c);nZm(V);Nim(c);Yp2(d,c);Bi3(c);_.m("start_client_gcf")&&bOJ(c);_.DE("DELEGATED_SESSION_ID")&&
!_.m("pageid_as_header_web")&&(d=new YI,_.fU(d,3,_.DE("DELEGATED_SESSION_ID")));!_.m("fill_delegate_context_in_gel_killswitch")&&(M=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(p=_.q7(V,YI,3)||new YI,d=V,M=_.fU(p,18,M),_.B6(d,3,M));d=c;M=_.b(Object.entries(_.se(_.DE("DEVICE",""))));for(p=M.next();!p.done;p=M.next())e=_.b(p.value),p=e.next().value,e=e.next().value,p==="cbrand"?_.fU(d,12,e):p==="cmodel"?_.fU(d,13,e):p==="cbr"?_.fU(d,87,e):p==="cbrver"?_.fU(d,88,e):p==="cos"?_.fU(d,18,
e):p==="cosver"?_.fU(d,19,e):p==="cplatform"&&_.up(d,42,W7p(e));V.setClient(c);_.B6(E,1,V);if(c=mE2[a])a:{if(_.FK(c,Bx(c,dEz,1)))V=1;else if(c.getPlaylistId())V=2;else break a;_.B6(E,4,c);c=E.getContext()||new CM;d=_.q7(c,YI,3)||new YI;M=new bT;M.setToken(a);_.up(M,1,V);NP(d,12,bT,M);_.B6(c,3,d)}delete mE2[a];a=a==="visitorOnlyApprovedKey";in2()||_.AB(E,2,A);!a&&(V=_.DE("EVENT_ID"))&&(c=TEz(),d=new qJz,_.fU(d,1,V),_.AB(d,2,c),_.B6(E,5,d));shw(n);if(_.m("jspb_serialize_with_worker")&&(V=_.dsP())&&
n.writeThenSend){_.u84.set(UE2,{client:k,resolve:C,networklessOptions:n,isIsolated:N,useVSSEndpoint:B,dangerousLogToVisitorSession:a,requestsOutstanding:w});V.postMessage({op:"gelBatchToSerialize",batchRequest:VT(E),clientEvents:X,key:UE2});UE2++;break}if(X){V=[];for(c=0;c<X.length;c++)try{V.push(new FP(X[c]))}catch(h){_.I4(new _.AM("Transport failed to deserialize "+String(X[c])))}X=V}else X=[];X=_.b(X);for(V=X.next();!V.done;V=X.next())NP(E,3,FP,V.value);X={startTime:(0,_.oX)(),ticks:{},infos:{}};
E=E.serialize();X.ticks.geljspc=(0,_.oX)();_.m("log_jspb_serialize_latency")&&tYK("gel_jspb_serialize",X,{sampleRate:.1});_.OnI(E,k,C,n,N,B,a,w)}};
_.OnI=function(W,k,C,n,N,B,A,w){n=n===void 0?{}:n;w=w===void 0?{value:0}:w;B=pJ4(B);n=yWc(n,A,function(x){_.m("start_client_gcf")&&_.aM.addLowPriorityJob(function(){return _.F(function(E){return _.l(E,Gfp(x),0)})});
w.value--;w.value||C()},function(){w.value--;
w.value||C()},N);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=W;urP(k,B,"",n);SJw=!1};
shw=function(W){_.m("always_send_and_write")&&(W.writeThenSend=!1)};
yWc=function(W,k,C,n,N){W={retry:!0,onSuccess:C,onError:n,networklessOptions:W,dangerousLogToVisitorSession:k,bypassMonitoring:!!N,headers:{},postBodyFormat:"",postBody:"",compress:_.m("compress_gel")||_.m("compress_gel_lr")};in2()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.oX)())));return W};
exw=function(W,k,C){in2()||(W.requestTimeMs=String(k));_.m("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!C&&(k=_.DE("EVENT_ID"))&&(C=TEz(),W.serializedClientEventId={serializedEventId:k,clientCounter:String(C)})};
TEz=function(){var W=_.DE("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.z3("BATCH_CLIENT_COUNTER",W);return W};
vaz=function(W,k,C){if(C.videoId)var n="VIDEO";else if(C.playlistId)n="PLAYLIST";else return;W.credentialTransferTokenTargetId=C;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:k,scope:n}]};
h8c=function(W,k){var C=_.LS("il_payload_scraping")==="enable_il_payload_scraping";if(!_.QK("yt.logging.transport.enableScrapingForTest"))if(C)L0K=[],_.$g("yt.logging.transport.enableScrapingForTest",!0),_.$g("yt.logging.transport.scrapedPayloadsForTesting",L0K),_.$g("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.$g("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.$g("yt.logging.transport.scrapeClientEvent",!0);else return;C=_.QK("yt.logging.transport.scrapedPayloadsForTesting");var n=_.QK("yt.logging.transport.payloadToScrape");k&&(k=_.QK("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(k.payload)())&&C.push(k);k=_.QK("yt.logging.transport.scrapeClientEvent");if(n&&n.length>=1)for(var N=0;N<n.length;N++)if(W&&W.payload[n[N]])if(k)C.push(W.payload);else{var B=void 0;C.push(((B=W)==null?void 0:B.payload)[n[N]])}_.$g("yt.logging.transport.scrapedPayloadsForTesting",
C)};
in2=function(){return _.m("use_request_time_ms_header")||_.m("lr_use_request_time_ms_header")};
trJ=function(W,k){return _.m("transport_use_scheduler")===!1?_.rA(W,k):_.m("logging_avoid_blocking_during_navigation")||_.m("lr_logging_avoid_blocking_during_navigation")?_.wI(_.aM,function(){if(_.jhc().currentState==="none")W();else{var C={};_.jhc().install((C.none={callback:W},C))}},k):_.wI(_.aM,W,k)};
DEw=function(W){_.m("transport_use_scheduler")?_.aM.cancelJob(W):_.Pv(W)};
Gfp=function(W){var k,C,n,N,B,A,w,x,E,a;return _.F(function(X){return X.nextAddress==1?(n=(k=W)==null?void 0:(C=k.responseContext)==null?void 0:C.globalConfigGroup,N=_.z(n,Hn3),A=(B=n)==null?void 0:B.hotHashData,w=_.z(n,rWm),E=(x=n)==null?void 0:x.coldHashData,(a=_.f().resolve(_.qI(xI)))?A?N?_.l(X,gaz(a,A,N),2):_.l(X,gaz(a,A),2):X.jumpTo(2):X.return()):E?w?_.l(X,PV2(a,E,w),0):_.l(X,PV2(a,E),0):X.jumpTo(0)})};
wJw=function(W,k){k=k===void 0?200:k;return W?k===300?JWX:K03:k===300?cWP:hx2};
CVw=function(W){if(_.m("enable_web_tiered_gel")){W=WkI[W||""];var k,C,n,N=_.f().resolve(_.qI(xI))==null?void 0:(k=kn3())==null?void 0:(C=k.loggingHotConfig)==null?void 0:(n=C.eventLoggingConfig)==null?void 0:n.payloadPolicies;if(N)for(k=0;k<N.length;k++)if(N[k].payloadNumber===W)return N[k]}};
kf2=function(W){W=Object.keys(W);W=_.b(W);for(var k=W.next();!k.done;k=W.next())if(k=k.value,WkI[k])return k};
naP=function(W){switch(W){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}};
BE4=function(W){return W==="gelDebuggingEvent"};
pJ4=function(W){return(W===void 0?0:W)&&_.m("vss_through_gel_video_stats")?"video_stats":"log_event"};
tB=function(W,k,C,n){n=n===void 0?{}:n;var N={},B=Math.round(n.timestamp||(0,_.oX)());N.eventTimeMs=B<Number.MAX_SAFE_INTEGER?B:0;N[W]=k;W=_.ie();N.context={lastActivityMs:String(n.timestamp||!isFinite(W)?-1:W)};n.sequenceGroup&&!_.m("web_gel_sequence_info_killswitch")&&(W=N.context,k=n.sequenceGroup,k={index:CXm(k),groupKey:k},W.sequence=k,n.endOfSequence&&delete lT[n.sequenceGroup]);(n.sendIsolatedPayload?NE3:bnz)({endpoint:"log_event",payload:N,cttAuthInfo:n.cttAuthInfo,dangerousLogToVisitorSession:n.dangerousLogToVisitorSession},
C)};
CXm=function(W){lT[W]=W in lT?lT[W]+1:0;return lT[W]};
_.a9=function(W,k,C){C=C===void 0?{}:C;var n=EK;_.cv("ytLoggingEventsDefaultDisabled",!1)&&EK===EK&&(n=null);tB(W,k,n,C)};
_.fM=function(){if(_.m("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var k=njX;njX=[];if(k){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,W?tB(C.payloadName,C.payload,EK,C.options):_.a9(C.payloadName,C.payload,C.options)}xE2(void 0,!0);if(!_.m("web_fp_via_jspb_and_json"))return}xE2(void 0,!1)};
N7m=function(W,k){var C;if((C=k)==null?0:C.componentStack)return k;if(W=W.componentStack)k||(k={}),k.componentStack=Lww(W);return k};
Yx3=function(){_.eO(_.DE("ERRORS")||[],function(W){_.dI.apply(null,W)});
_.z3("ERRORS",[])};
_.mw=function(W){_.dI(W)};
_.zJ=function(W){_.dI(W,"WARNING")};
B74=function(W){W instanceof Error?_.dI(W):(W=_.O2(W)?JSON.stringify(W):String(W),W=new _.AM(W),W.name="RejectedPromiseError",_.zJ(W))};
bXI=function(W,k,C,n,N,B){k=k===void 0?"Unknown file":k;C=C===void 0?0:C;var A=!1,w=Yr3("log_window_onerror_fraction");if(w&&Math.random()<w)A=!0;else{w=document.getElementsByTagName("script");for(var x=0,E=w.length;x<E;x++)if(w[x].src.indexOf("/debug-")>0){A=!0;break}}A&&(A=!1,N?A=!0:(typeof W==="string"?w=W:ErrorEvent&&W instanceof ErrorEvent?(A=!0,w=W.message,k=W.filename,C=W.lineno,n=W.colno):(w="Unknown error",k="Unknown file",C=0),N=new _.AM(w),N.name="UnhandledWindowError",N.message=w,N.fileName=
k,N.lineNumber=C,isNaN(n)?delete N.columnNumber:N.columnNumber=n),_.m("wiz_enable_component_stack_propagation_killswitch")||(B=N7m(N,B)),B&&_.Dx(N,B),A?_.dI(N):_.zJ(N))};
_.dI=function(W,k,C,n,N,B,A,w){B=B===void 0?{}:B;B.name=C||_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=n||_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION");C=B;k=k===void 0?"ERROR":k;A=A===void 0?!1:A;k=k===void 0?"ERROR":k;A=A===void 0?!1:A;if(W&&(W.hasOwnProperty("level")&&W.level&&(k=W.level),_.m("console_log_js_exceptions")&&(n=[],n.push("Name: "+W.name),n.push("Message: "+W.message),W.hasOwnProperty("params")&&n.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&n.push("Error args: "+
JSON.stringify(W.args)),n.push("File name: "+W.fileName),n.push("Stacktrace: "+W.stack),n=n.join("\n"),window.console.log(n,W)),!(Ayw>=5))){n=[];N=_.b(FkP);for(B=N.next();!B.done;B=N.next()){B=B.value;try{B()&&n.push(B())}catch(p){}}n=[].concat(_.J8(wBw),_.J8(n));var x=xjP(W);N=x.message||"Unknown Error";B=x.name||"UnknownError";var E=x.stack||W.stacktrace||"Not available";if(E.startsWith(B+": "+N)){var a=E.split("\n");a.shift();E=a.join("\n")}a=x.lineNumber||"Not available";x=x.fileName||"Not available";
var X=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var d=0;d<W.args.length&&!(X=hdX(W.args[d],"params."+d,C,X),X>=500);d++);else if(W.hasOwnProperty("params")&&W.params){var V=W.params;if(typeof W.params==="object")for(d in V){if(V[d]){var c="params."+d,M=CH(V[d]);C[c]=M;X+=c.length+M.length;if(X>500)break}}else C.params=CH(V)}if(n.length)for(d=0;d<n.length&&!(X=hdX(n[d],"params.context."+d,C,X),X>=500);d++);navigator.vendor&&!C.hasOwnProperty("vendor")&&(C["device.vendor"]=navigator.vendor);
d={message:N,name:B,lineNumber:a,fileName:x,stack:E,params:C,sampleWeight:1};C=Number(W.columnNumber);isNaN(C)||(d.lineNumber=d.lineNumber+":"+C);if(W.level==="IGNORED")W=0;else a:{W=liw();C=_.b(W.messageWeights);for(n=C.next();!n.done;n=C.next())if(n=n.value,d.message&&d.message.match(n.messageRegExp)){W=n.weight;break a}W=_.b(W.callbackWeights);for(C=W.next();!C.done;C=W.next())if(C=C.value,C.callback(d)){W=C.weight;break a}W=1}d.sampleWeight=W;W=_.b(tHm);for(C=W.next();!C.done;C=W.next())if(C=
C.value,C.patternsForType[d.name])for(N=_.b(C.patternsForType[d.name]),n=N.next();!n.done;n=N.next())if(B=n.value,n=d.message.match(B.regexp)){d.params["params.error.original"]=n[0];N=B.groups;B={};for(a=0;a<N.length;a++)B[N[a]]=n[a+1],d.params["params.error."+N[a]]=n[a+1];d.message=C.messageFn(B);break}d.params||(d.params={});W=liw();d.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;d.params["params.serviceWorker"]="false";_.NX.document&&_.NX.document.querySelectorAll&&
(d.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new VE(Ejw,"sample")).constructor!==VE&&(d.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(d);if(d.sampleWeight!==0&&!aic.has(d.message)){if(A&&_.m("web_enable_error_204"))XB2(k===void 0?"ERROR":k,d);else{k=k===void 0?"ERROR":k;k==="ERROR"?(fiw.publish("handleError",d),_.m("record_app_crashed_web")&&dj3===0&&d.sampleWeight===1&&(dj3++,A={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.m("report_client_error_with_app_crash_ks")||(A.systemHealth={crashData:{clientError:{logMessage:{message:d.message}}}}),_.a9("appCrashed",A)),mjI++):k==="WARNING"&&fiw.publish("handleWarning",d);if(_.m("kevlar_gel_error_routing")){A=k;w=w===void 0?{}:w;b:{W=_.b(zb3);for(C=W.next();!C.done;C=W.next())if(mK(C.value.toLowerCase())){W=!0;break b}W=!1}if(W)w=void 0;else{C={stackTrace:d.stack};d.fileName&&(C.filename=d.fileName);W=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(C.lineNumber=Number(W[0]),C.columnNumber=Number(W[1])):C.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:d.message,errorClassName:d.name,sampleWeight:d.sampleWeight};A==="ERROR"?W.level="ERROR_LEVEL_ERROR":A==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");C={isObfuscated:!0,browserStackInfo:C};w.pageUrl=window.location.href;w.kvPairs=[];_.DE("FEXP_EXPERIMENTS")&&(w.experimentIds=_.DE("FEXP_EXPERIMENTS"));
n=_.DE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Yr3("web_disable_gel_stp_ecatcher_killswitch")&&n)for(N=_.b(Object.keys(n)),B=N.next();!B.done;B=N.next())B=B.value,w.kvPairs.push({key:B,value:String(n[B])});if(n=d.params)for(N=_.b(Object.keys(n)),B=N.next();!B.done;B=N.next())B=B.value,w.kvPairs.push({key:"client."+B,value:String(n[B])});n=_.DE("SERVER_NAME");N=_.DE("SERVER_VERSION");n&&N&&(w.kvPairs.push({key:"server.name",value:n}),w.kvPairs.push({key:"server.version",value:N}));w={errorMetadata:w,
stackTrace:C,logMessage:W}}w&&(_.a9("clientError",w),(A==="ERROR"||_.m("errors_flush_gel_always_killswitch"))&&_.fM())}_.m("suppress_error_204_logging")||XB2(k,d)}try{aic.add(d.message)}catch(p){}Ayw++}}};
XB2=function(W,k){var C=k.params||{};W={urlParams:{a:"logerror",t:"jserror",type:k.name,msg:k.message.substr(0,250),line:k.lineNumber,level:W,"client.name":C.name},postParams:{url:_.DE("PAGE_NAME",window.location.href),file:k.fileName},method:"POST"};C.version&&(W["client.version"]=C.version);if(W.postParams){k.stack&&(W.postParams.stack=k.stack);k=_.b(Object.keys(C));for(var n=k.next();!n.done;n=k.next())n=n.value,W.postParams["client."+n]=C[n];if(C=_.DE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(k=
_.b(Object.keys(C)),n=k.next();!n.done;n=k.next())n=n.value,W.postParams[n]=C[n];(C=_.DE("LAVA_VERSION"))&&(W.postParams["lava.version"]=C);C=_.DE("SERVER_NAME");k=_.DE("SERVER_VERSION");C&&k&&(W.postParams["server.name"]=C,W.postParams["server.version"]=k)}_.hj(_.DE("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.Djz=function(W,k){k=k===void 0?"ERROR":k;var C=C===void 0?{}:C;var n=_.QK("ytbin.polymer.shared.lib.tampering.info");n&&(n=n())&&(C["params.tamperingInfo"]=n.sort().join(","));_.dI(W,k,void 0,void 0,!0,C)};
_.Dx=function(W){var k=_.v6.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.J8(k))};
VHw=function(W){W.level="IGNORED"};
JyX=function(W,k){wBw.push(W);k();wBw.pop()};
S6=function(W,k){for(var C in k)k.hasOwnProperty(C)&&(W=_.JB(W,C,k[C]));return W};
_.cyw=function(W,k,C){C=C===void 0?!1:C;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return k=_.Oe("polymer_report_client_url_requested_rate"),!C&&Math.random()<k&&_.zJ(new _.AM("urlForEndpoint used on client endpoint",W)),null;var n=_.Oe("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)n=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<n){var N={},B;for(B in W)N[B]="1";_.zJ(new _.AM("Missing navigation data",
N))}N="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)N=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<n&&_.zJ(new _.AM("Should not manually handle search",W)),N="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(N+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<n&&_.zJ(new _.AM("Should not manually handle watch",W)),N="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(N+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(N+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(N+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)n=W.browseEndpoint.browseId,(B=W.browseEndpoint.canonicalBaseUrl)?N=B:n&&(N=n.substr(0,2),N=N==="FE"?n==="FEwhat_to_watch"?"/":n==="FEmy_videos"?"/my_videos":"/feed/"+n.substr(2):N==="VL"?"/playlist?list="+n.substr(2):"/channel/"+n),N&&W.browseEndpoint.query&&
(N=S6(N+"/search",{query:W.browseEndpoint.query})),N&&W.browseEndpoint.params&&(N=S6(N,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(N="https://accounts.google.com/ServiceLogin",n={},_.JU.extend(n,k||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),k=n):W.uploadEndpoint?N="//www.youtube.com/upload":W.liveChatEndpoint?(N=W.liveChatEndpoint,n=_.JU.clone(N),_.O2(N.continuation)&&(B=Object.keys(N.continuation)[0],
n.continuation=N.continuation[B].continuation),N=S6("/youtubei/v1/live_chat/get_live_chat",n)):W.liveChatReplayEndpoint?(N=_.JU.clone(W.liveChatReplayEndpoint),N.currentPlayerState&&(_.JU.extend(N,N.currentPlayerState),delete N.currentPlayerState),N=S6("/youtubei/v1/live_chat/get_live_chat_replay",N)):W.liveChatItemContextMenuEndpoint?N=S6("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?N=S6("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?N=S6("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?N=S6("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?N=W.liveDashboardEndpoint.videoId?S6("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?N="/webcam":W.getPdgBuyFlowCommand&&
(N=S6(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return N||C?S6(N,k||{}):(_.zJ(new _.AM("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
Ii4=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.MHw=function(W,k){var C=k+W,n=SxX.get(C);if(n)return n;W=k+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();SxX.set(C,W);return W};
QSw=function(W){var k=_.dA(W,"action")||_.dA(W,"command")||_.dA(W,"endpoint");if(!k)return null;k=_.MHw(k,"yt");_.z(W,_.MP)&&(k+="-"+_.z(W,_.MP).signal.toLowerCase().replace(/_/g,"-"));return k};
sS2=function(W){try{var k=Object.keys(W)}catch(N){return[]}for(var C=0;C<k.length;C++){var n=k[C];if(pBw.test(n)||vj2.test(n))return eb3(W[n])}return[]};
eb3=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
yyw=function(W,k){k=k===void 0?!1:k;var C=_.f().resolve(_.qI(QE));C||(C=new Gn2,_.f().addProvider({provide:QE,useValue:C}));return C&&W&&!_.JU.isEmpty(W)?C.getUrl(W,k):""};
$jw=function(W,k,C){C=C===void 0?"":C;if(k){W.data=k;var n=yyw(k);n?(Gi(W,n),Ii4(k)||!iI(n)?W.rel="nofollow":W.removeAttribute("rel"),_.z(k,_.pM)&&_.z(k,_.pM).target==="TARGET_NEW_WINDOW"?W.target="_blank":C?W.target=C:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.GJ=function(W,k){var C=qD;if(lR())ZXm(W,function(){var B=_.v6.apply(0,arguments);zm(C,function(){k.apply(null,_.J8(B))})});
else{var n=_.vx.getInstance(),N=fS(k);wA(function(){N.value=k});
_.Ee(function(){var B={},A=_.e6(n,(B[W]=function(){var w=_.v6.apply(0,arguments);zm(C,function(){N.value.apply(N,_.J8(w))})},B));
return function(){var w={};_.sK(n,(w[W]="",w),A)}})}};
_.yE=function(W){return lR()?Rbw(W):oj2(W)};
_.$I=function(W){return lR()?Rbw(W):oj2(W)};
oj2=function(W){return Xc(function(){return Rbw(W)})};
Rbw=function(W){var k=LQz(function(C){k.value&&k.value===C||(k.__count=k.__count?k.__count+1:1);k.value=C;var n=function(){var N=ru(null);try{return W==null?void 0:W(C)}finally{ru(N)}}();
return function(){n==null||n();k.value=null}});
return k};
iXm=function(W){var k=qD,C=AY;return{getFn:function(){return function(n){k.isDisposed||tY(function(){return WH(function(){return W(n)})},{stack:C})!==!0&&n.stopPropagation()}}}};
_.Zx=function(W,k,C){if(lR())T74(W,k,function(N){var B=ru(null);try{C(N)}finally{ru(B)}});
else{var n=fS(C);wA(function(){n.value=C});
_.Ee(function(){var N=W.value;if(N){var B=function(A){n.value(A)};
N.addEventListener(k,B,void 0);return function(){N?N.removeEventListener(k,B,void 0):qxm(W)}}qxm(W)})}};
qxm=function(W){var k;(k=j_.handleError)==null||k.call.apply(k,[j_].concat(_.J8(Eo(jAm.LOG_NULL_EL_REF_VALUE(),W.__expectedTagName,2))))};
R9=function(W){if(typeof W.children==="function")return W.children(),null;W=_.b(W.children);for(var k=W.next();!k.done;k=W.next())k=k.value,k();return null};
uow=function(W){var k;return((k=W.prototype)==null?void 0:k.render)===void 0};
Uj2=function(W){W=W.items.map(W.children);return W.length>0&&typeof W[0]==="string"?W.join(""):W};
LkJ=function(W,k,C){C=C===void 0?!1:C;tY(function(){return OXz(W,k,C)})};
OXz=function(W,k,C){C=((C===void 0?0:C)?jSw:HXz)(W,function(){o9(k)});
return C===null?W:C};
o9=function(W){if(W!==void 0&&W!==null)if(W instanceof PH)for(var k=cH;Sw()!=null&&QAp in Sw()&&k.contains(Sw());)py();else if(Array.isArray(W))for(k=_.b(W),W=k.next();!W.done;W=k.next())o9(W.value);else if(W instanceof l5||"function"==typeof _.P6&&W instanceof _.P6)oW(W.toString());else if(Uo(W)){if(Sw()!==W){var C,n;k=(n=(C=AY)==null?void 0:C.name)!=null?n:"unknown";throw Error("ec`"+W.tagName+"`"+k);}py()}else if(W!=null&&W.contentKind===jw||W instanceof yG)for(k=jqw(W),k=Array.from(k.childNodes),
k=_.b(k),W=k.next();!W.done;W=k.next())cH.appendChild(W.value),py();else if(Dl(W)&&(W=W.toString()),C=typeof W,C==="boolean"||C==="number"||C==="string")oW(W);else if(typeof W==="function"){k=cH;var N=Sw();N&&(N._isSignalTextNode||N._isSafeOrSanitizedHtmlNode)||dLK(k,N,W);py()}else if(W.type===Uj2)o9(W.type(Object.assign({},W.props,{children:W.children[0]})));else{Wv.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||Sd3(W.type,W.props.idomKey);N=cH;for(k in W.props)if(W.props[k]!==ryJ){var B=
W.props[k];C=y7;C.push(k);C.push(B)}k=j_.attributes;k=k===void 0?iT:k;B=cH;C=JY(B);GXp(B,C,k);fH4(N,W.props,!0);if((W.props.skip||W.props.skipchildren)&&cH.hasChildNodes())so();else{if(W.type==="style"&&WQX(W.children)===null){so();k=void 0;break a}o9(W.children)}M94();W.__open&&(W.__open=!1);T0p(N,W.props);k=N}return k}if(W.type===_.qf)o9(W.children);else if(!gjX(W)){k=W;try{PX2(k)}catch(A){W=A,(B=j_.handleError)==null||B.call.apply(B,[j_].concat(_.J8(Eo(W,(N=k.type)==null?void 0:N.TAG_NAME))))}k.__open&&
(M94(),k.__open=!1)}}};
KkK=function(W,k){var C;uow(W)?C=new CS(k,W):C=new W(k);C.JSC$8133___type=W;C.__updateContext={nextState:C.state,isForced:!1};return C};
PX2=function(W){var k=W.type,C=k.TAG_NAME;if(k===R9)W.props.children=W.children,k(W.props);else{W.children.length>0&&(W.props.children=W.children);var n;(n=W.props).idomKey||(n.idomKey=k);if(C){var N=Sd3(C,W.props.idomKey);W.__open=!0;var B=N.__instance}B||(B=KkK(k,W.props),B.props=null,N&&(N.__instance=B,B.el=N));var A;C=((A=B.__updateContext)!=null?A:{nextState:B.state,isForced:!1}).nextState;B.__updateContext=void 0;k.getDerivedStateFromProps&&(C=k.getDerivedStateFromProps(W.props,C));B.props=
W.props;B.state=C;A=function(){var w=B;Wv.beforeRender(w);var x=w.render(w.props);Wv.afterRender(w,x);x?(w.props.idomKey&&(x.props.idomKey=w.props.idomKey),w=x):w=void 0;if(x=w)if(x.__open=W.__open,w=o9(x),W.__open=x.__open,!k.TAG_NAME)if(w)k.TAG_NAME=w.tagName.toLowerCase(),w.__instance=B,B.el=w;else{var E;if((E=B.hooks)==null?0:E.length){var a;(a=j_.handleError)==null||a.call.apply(a,[j_].concat(_.J8(Eo(Error("kd")))))}}B.didPatch();Wv.didPatch(B)};
(C=B.functionComponent)?OMP({component:C,debugInstance:B.props.debugInstance,fn:A}):A()}};
gjX=function(W){var k=W.type;if(!uow(k)||k===R9||k.componentType===xw)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var C,n=(C=W.props.idomKey)!=null?C:W.type,N;if(Sw()&&((N=Sw()[rw])==null?void 0:N.key)===n){var B=Sw(),A=B[rw];if(!A)throw Error("dc`"+B.tagName);var w;(w=A.updateSignalsFromIdomProps)==null||w.call(A,W.props);hbP(A);return!0}if(W4p.has(k.name))throw w=k.name,k=(A=(B=AY)==null?void 0:B.name)!=null?A:"unknown",Error("cc`"+w+"`"+k);Vhp(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(w=OMP({component:W.type,debugInstance:W.props.debugInstance,fn:function(){return lHm(W.type,W.props)}}))&&krw(w);
return!0};
C2X=function(W){for(var k=0;k<gw(W).length;k++)py()};
hbP=function(W){var k=nxX();if(k)C2X(k);else for(var C=0;C<W.numNodes;C++)(k=nxX())?C2X(k):py()};
nxX=function(){var W;return(W=Sw()[rw])==null?void 0:W.sourceDynamicRange};
krw=function(W){W=uwc(W);W=Array.isArray(W)?W:[W];W=_.b(W);for(var k=W.next();!k.done;k=W.next())cH.insertBefore(k.value,Sw()),py()};
NqJ=function(W){var k=EeK(),C=Xc(function(){return{value:typeof W==="function"?W():W}});
return[C.value,function(n){if(kn!==null){var N;(N=j_.handleError)==null||N.call.apply(N,[j_].concat(_.J8(Eo(Error("ld")))))}C.value=typeof n==="function"?n(C.value):n;k.__updateContext={nextState:k.state,isForced:!0};n=ug(k.effectContext);N=uR(!1);try{if(k.el){var B,A={},w=(A.props=k.props,A.type=k.JSC$8133___type,A.children=(B=k.props.children)!=null?B:[],A[Tm]=!0,A);try{LkJ(k.el,w,!0)}catch(a){var x,E;(E=j_.handleError)==null||E.call.apply(E,[j_].concat(_.J8(Eo(a,(x=k.JSC$8133___type)==null?void 0:
x.TAG_NAME))))}}}finally{uR(N),ug(n)}}]};
TJ=function(W,k){var C=qD,n=function(N){zm(C,function(){k(N)})};
window.addEventListener(W,n,void 0);_.fy(function(){window.removeEventListener(W,n,void 0)})};
_.uT=function(W,k){var C=qD;_.Ee(function(){var n,N=(n=k.observer)!=null?n:_.f().resolve(qP);if(n=W.value){var B=YR2(n),A=[];k.showOption&&A.push(N.observe(n,function(){zm(C,function(){k.visibilityCallback(!0)})},k.showOption));
k.hideOption&&A.push(N.observe(n,function(){zm(C,function(){k.visibilityCallback(!1)})},k.hideOption));
k.prescanOption&&k.prescanCallback&&A.push(N.observe(n,function(){zm(C,function(){k.prescanCallback()})},k.prescanOption));
var w;B.visibilityMonitorKeys=((w=B.visibilityMonitorKeys)!=null?w:[]).concat(A)}})};
YR2=function(W){var k;return(k=W.polymerController)!=null?k:W};
_.UK=function(W){W.componentType=xw};
F44=function(W,k){var C=Bq3;return _.t(_.qf,null,_.Tb(j_.enableLazyTsx,function(){return _.t(b6w,{id:C,value:W,children:k})},function(){var n=Afm(C,W);
Og(n);n=ug(n);try{return k()}finally{ug(n)}}))};
b6w=function(W){var k=W.children;W=Afm(W.id,W.value);Og(W);W=ug(W);try{return _.t(_.qf,null,Ky(k()))}finally{ug(W)}};
Afm=function(W,k){return Object.assign(Object.create(wGX),{id:W,contextValue:k})};
x22=function(W){var k,C=qD;_.aW(function(){var n=ug(C),N=uR(!k);try{if(k)LkJ(k,W.children(),!0);else if(k=Ky(W.children()),!(k instanceof Element))throw Error("md");}finally{uR(N),ug(n)}});
return k};
lNw=function(W){var k,C=dw(function(){var n=uR(!0);try{k=gw(W())}finally{uR(n)}},!1);
return[k,C]};
ExK=function(W){W=W.buf.charCodeAt(W.pos++);return tyz[W]};
OK=function(W){var k=0,C=0;do{var n=ExK(W);k|=(n&31)<<C;C+=5}while(n&32);return k<0?k+4294967296:k};
fNz=function(W,k,C){aNw(W,k);W[k][XGp].unshift(C)};
aNw=function(W,k){if(!W[k]||!W[k][XGp]){var C=W[k],n=C?[C]:[];W[k]=function(){for(var N=_.b(n),B=N.next();!B.done;B=N.next())B.value.apply(this,arguments)};
W[k][XGp]=n}};
d2m=function(W){if(!W)return[];var k=[];W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,Array.isArray(C)?k.push.apply(k,_.J8(d2m(C))):k.push(C);return k};
_.j6=function(W,k){if(W&&m2X.test(W)||W==="//")return W;if(zDw===void 0){zDw=!1;try{var C=new URL("b","http://a");C.pathname="c%20d";zDw=C.href==="http://a/c%20d"}catch(n){}}k||(k=document.baseURI||window.location.href);if(zDw)try{return(new URL(W,k)).href}catch(n){return W}LM||(LM=document.implementation.createHTMLDocument("temp"),LM.base=LM.createElement("base"),LM.head.appendChild(LM.base),LM.anchor=LM.createElement("a"),LM.body.appendChild(LM.anchor));LM.base.href=k;LM.anchor.href=W;return LM.anchor.href||
W};
Vyp=function(W,k){return W.replace(D2w,function(C,n,N,B){return n+"'"+_.j6(N.replace(/["']/g,""),k)+"'"+B})};
Jf4=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
SRI=function(){cfJ=!1;for(var W=Hx.length,k=0;k<W;k++){var C=Hx[k];if(C)try{C()}catch(n){setTimeout(function(){throw n;})}}Hx.splice(0,W);
INm+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
QZm=function(W){Myw.push(W)};
rI=function(W){return pGX[W]||(pGX[W]=W.indexOf("-")<0?W:W.replace(vxw,function(k){return k[1].toUpperCase()}))};
gI=function(W){return pGX[W]||(pGX[W]=W.replace(eD4,"-$1").toLowerCase())};
sZw=function(W,k){var C=k.parentInfo&&sZw(W,k.parentInfo);if(C)for(W=C.firstChild,C=0;W;W=W.nextSibling){if(k.parentIndex===C++)return W}else return W};
GrX=function(W,k){W=W._methodHost||W;return function(C){if(W[k])W[k](C,C.detail);else console.warn("listener method `"+k+"` not defined")}};
Px=function(W){return W.indexOf(".")>=0};
KM=function(W){var k=W.indexOf(".");return k===-1?W:W.slice(0,k)};
yfI=function(W,k){return W.indexOf(k+".")===0};
hB=function(W,k){return k.indexOf(W+".")===0};
Wm=function(W,k,C){return k+C.slice(W.length)};
$2K=function(W,k){return W===k||yfI(W,k)||hB(W,k)};
k6=function(W){if(Array.isArray(W)){for(var k=[],C=0;C<W.length;C++)for(var n=W[C].toString().split("."),N=0;N<n.length;N++)k.push(n[N]);return k.join(".")}return W};
Z6P=function(W){return Array.isArray(W)?k6(W).split("."):W.toString().split(".")};
Ct=function(W,k,C){k=Z6P(k);for(var n=0;n<k.length;n++){if(!W)return;W=W[k[n]]}C&&(C.path=k.join("."));return W};
RDP=function(W,k,C){var n=Z6P(k),N=n[n.length-1];if(n.length>1){for(k=0;k<n.length-1;k++)if(W=W[n[k]],!W)return;W[N]=C}else W[k]=C;return n.join(".")};
oxm=function(W,k,C){var n=W[k];if(!n)n=W[k]={};else if(!W.hasOwnProperty(k)&&(n=W[k]=Object.create(W[k]),C))for(var N in n)for(W=n[N],k=n[N]=Array(W.length),C=0;C<W.length;C++)k[C]=W[C];return n};
NZ=function(W,k,C,n,N,B){if(k){var A=!1,w=nt++,x;for(x in C){var E=N?KM(x):x;if(E=k[E])for(var a=0,X=E.length,d=void 0;a<X&&(d=E[a]);a++)d.info&&d.info.lastRun===w||N&&!i6m(x,d.trigger)||(d.info&&(d.info.lastRun=w),d.fn(W,x,C,n,d.info,N,B),A=!0)}return A}return!1};
i6m=function(W,k){if(k){var C=k.name;return C==W||!(!k.structured||!yfI(C,W))||!(!k.wildcard||!hB(C,W))}return!0};
Tqw=function(W,k,C,n,N){k=typeof N.method==="string"?W[N.method]:N.method;C=N.property;k?k.call(W,W.__data[C],n[C]):N.dynamicFn||console.warn("observer method `"+N.method+"` not defined")};
qR3=function(W,k,C,n){C={value:C,queueProperty:!0};n&&(C.path=n);(0,_.bD)(W).dispatchEvent(new CustomEvent(k,{detail:C}))};
uYw=function(W,k,C,n,N,B){B=(n=(B?KM(k):k)!=k?k:null)?Ct(W,n):W.__data[k];n&&B===void 0&&(B=C[k]);qR3(W,N.eventName,B,n)};
U2X=function(W,k,C,n,N){C=W.__data[k];AD&&(C=AD(C,N.attrName,"attribute",W));W._propertyToAttribute(k,N.attrName,C)};
L4w=function(W){var k=W.constructor.__orderedComputedDeps;if(!k){k=new Map;for(var C=W.__computeEffects,n=O6w(W),N=n.counts,B=n.ready,A=n.total;n=B.shift();)k.set(n,k.size),(n=C[n])&&n.forEach(function(w){w=w.info.methodInfo;--A;--N[w]===0&&B.push(w)});
A!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=k}return k};
O6w=function(W){var k=W.__computeInfo,C={};W=W.__computeEffects;var n=[],N=0,B;for(B in k){var A=k[B];N+=C[B]=A.args.filter(function(x){return!x.literal}).length+(A.dynamicFn?1:0)}for(var w in W)k[w]||n.push(w);
return{counts:C,ready:n,total:N}};
H6I=function(W,k,C,n,N){k=jZP(W,k,C,n,N);if(k===Fw)return!1;N=N.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[N])return W._setPendingProperty(N,k,!0);W[N]=k;return!1};
P2I=function(W,k,C,n,N,B,A){C.bindings=C.bindings||[];n={kind:n,target:N,parts:B,literal:A,isCompound:B.length!==1};C.bindings.push(n);n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"&&(C=n.parts[0],B=C.negate,n.listenerEvent=C.event||gI(N)+"-changed",n.listenerNegate=B);N=k.nodeInfoList.length;for(C=0;C<n.parts.length;C++){var w=n.parts[C];w.compoundIndex=C;B=W;A=k;var x=n,E=w,a=N;if(!E.literal)if(x.kind==="attribute"&&x.target[0]==="-")console.warn("Cannot set attribute "+
x.target+' because "-" is not a valid attribute starting character');else for(w=E.dependencies,x={index:a,binding:x,part:E,evaluator:B},E=0;E<w.length;E++)a=w[E],typeof a=="string"&&(a=rfw(a),a.wildcard=!0),B._addTemplatePropertyEffect(A,a.rootProperty,{fn:gxI,info:x,trigger:a})}};
gxI=function(W,k,C,n,N,B,A){A=A[N.index];var w=N.binding,x=N.part;B&&x.source&&k.length>x.source.length&&w.kind=="property"&&!w.isCompound&&A.__isPropertyEffectsClient&&A.__dataHasAccessor&&A.__dataHasAccessor[w.target]?(C=C[k],k=Wm(x.source,w.target,k),A._setPendingPropertyOrPath(k,C,!1,!0)&&W._enqueueClient(A)):(k=N.evaluator._evaluateBinding(W,x,k,C,n,B),k!==Fw&&(w.isCompound&&(C=A.__dataCompoundStorage[w.target],C[x.compoundIndex]=k,k=C.join("")),w.kind==="attribute"||w.target!=="textContent"&&
(w.target!=="value"||A.localName!=="input"&&A.localName!=="textarea")||(k=k==void 0?"":k),x=k,AD&&(x=AD(x,w.target,w.kind,A)),w.kind=="attribute"?W._valueToNodeAttribute(A,x,w.target):(w=w.target,A.__isPropertyEffectsClient&&A.__dataHasAccessor&&A.__dataHasAccessor[w]?A.__readOnly&&A.__readOnly[w]||A._setPendingProperty(w,x)&&W._enqueueClient(A):W._setUnmanagedPropertyToNode(A,w,x))))};
K4K=function(W,k,C){if(C.listenerEvent){var n=C.parts[0];W.addEventListener(C.listenerEvent,function(N){var B=C.target,A=n.source,w=n.negate,x=N.detail,E=x&&x.path;E?(A=Wm(B,A,E),N=x&&x.value):N=N.currentTarget[B];k.__readOnly&&k.__readOnly[A]||!k._setPendingPropertyOrPath(A,w?!N:N,!0,!!E)||x&&x.queueProperty||k._invalidateProperties()})}};
hDX=function(W,k,C,n,N,B){B=k.static||B&&(typeof B!=="object"||B[k.methodName]);N={methodName:k.methodName,args:k.args,methodInfo:N,dynamicFn:B};for(var A=0,w=void 0;A<k.args.length&&(w=k.args[A]);A++)w.literal||W._addPropertyEffect(w.rootProperty,C,{fn:n,info:N,trigger:w});B&&W._addPropertyEffect(k.methodName,C,{fn:n,info:N});return N};
jZP=function(W,k,C,n,N){n=W._methodHost||W;var B=n[N.methodName];if(B)return W=W._marshalArgs(N.args,k,C),W===Fw?Fw:B.apply(n,W);N.dynamicFn||console.warn("method `"+N.methodName+"` not defined")};
WEX=function(W){for(var k="",C=0;C<W.length;C++)k+=W[C].literal||"";return k};
nNz=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var k={methodName:W[1],static:!0,args:k_K};return W[2].trim()?CHm(W[2].replace(/\\,/g,"&comma;").split(","),k):k}return null};
CHm=function(W,k){k.args=W.map(function(C){C=rfw(C);C.literal||(k.static=!1);return C},this);
return k};
rfw=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var k={name:W,value:"",literal:!1},C=W[0];C==="-"&&(C=W[1]);C>="0"&&C<="9"&&(C="#");switch(C){case "'":case '"':k.value=W.slice(1,-1);k.literal=!0;break;case "#":k.value=Number(W),k.literal=!0}k.literal||(k.rootProperty=KM(W),k.structured=Px(W),k.structured&&(k.wildcard=W.slice(-2)==".*",k.wildcard&&(k.name=W.slice(0,-2))));return k};
Nkm=function(W,k,C){W=Ct(W,C);W===void 0&&(W=k[C]);return W};
YvI=function(W,k,C,n){n={indexSplices:n};w0&&!W._overrideLegacyUndefined&&(k.splices=n);W.notifyPath(C+".splices",n);W.notifyPath(C+".length",k.length);w0&&!W._overrideLegacyUndefined&&(n.indexSplices=[])};
x6=function(W,k,C,n,N,B){YvI(W,k,C,[{index:n,addedCount:N,removed:B,object:k,type:"splice"}])};
Bk2=function(W){W=Vyp((W.body?W.body:W).textContent,W.baseURI);var k=document.createElement("style");k.textContent=W;return k};
A3P=function(W){W=W.trim().split(/\s+/);for(var k=[],C=0;C<W.length;C++)k.push.apply(k,_.J8(bsI(W[C])));return k};
bsI=function(W){var k=lD.import(W);if(!k)return console.warn("Could not find style data in module named",W),[];if(k._styles===void 0){W=[];W.push.apply(W,_.J8(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(k)));var C=k.querySelector("template");C&&W.push.apply(W,_.J8(FEw(C,k.assetpath)));k._styles=W}return k._styles};
FEw=function(W,k){if(!W._styles){for(var C=[],n=W.content.querySelectorAll("style"),N=0;N<n.length;N++){var B=n[N],A=B.getAttribute("include");A&&C.push.apply(C,_.J8(A3P(A).filter(function(w,x,E){return E.indexOf(w)===x})));
k&&(B.textContent=Vyp(B.textContent,k));C.push(B)}W._styles=C}return W._styles};
wqw=function(W){return(W=lD.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var k=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var C=0;C<W.length;C++){var n=W[C];if(n.import){var N=n.import;if((n=n.hasAttribute("shady-unscoped"))&&!N._unscopedStyle){var B=Bk2(N);B.setAttribute("shady-unscoped","");N._unscopedStyle=B}else N._style||(N._style=Bk2(N));k.push(n?N._unscopedStyle:N._style)}}return k};
l73=function(W){W=W.trim().split(/\s+/);for(var k="",C=0;C<W.length;C++)k+=xKX(W[C]);return k};
xKX=function(W){var k=lD.import(W);if(k&&k._cssText===void 0){var C=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(k),n=k.querySelector("template");n&&(C+=tqI(n,k.assetpath));k._cssText=C||null}k||console.warn("Could not find style data in module named",W);return k&&k._cssText||""};
tqI=function(W,k){var C="";W=FEw(W,k);for(k=0;k<W.length;k++){var n=W[k];n.parentNode&&n.parentNode.removeChild(n);C+=n.textContent}return C};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var k="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var C=0;C<W.length;C++)k+=W[C].textContent;return k};
tD=function(W,k){return{index:W,removed:[],addedCount:k}};
a7I=function(W,k,C,n){var N=0,B=0,A=0,w=0,x=Math.min(k-N,n-B);if(N==0&&B==0)a:{for(A=0;A<x;A++)if(W[A]!==C[A])break a;A=x}if(k==W.length&&n==C.length){w=W.length;for(var E=C.length,a=0;a<x-A&&ENw(W[--w],C[--E]);)a++;w=a}N+=A;B+=A;k-=w;n-=w;if(k-N==0&&n-B==0)return[];if(N==k){for(k=tD(N,0);B<n;)k.removed.push(C[B++]);return[k]}if(B==n)return[tD(N,k-N)];x=N;A=B;n=n-A+1;w=k-x+1;k=Array(n);for(E=0;E<n;E++)k[E]=Array(w),k[E][0]=E;for(E=0;E<w;E++)k[0][E]=E;for(E=1;E<n;E++)for(a=1;a<w;a++)if(W[x+a-1]===
C[A+E-1])k[E][a]=k[E-1][a-1];else{var X=k[E-1][a]+1,d=k[E][a-1]+1;k[E][a]=X<d?X:d}x=k.length-1;A=k[0].length-1;n=k[x][A];for(W=[];x>0||A>0;)x==0?(W.push(2),A--):A==0?(W.push(3),x--):(w=k[x-1][A-1],E=k[x-1][A],a=k[x][A-1],X=E<a?E<w?E:w:a<w?a:w,X==w?(w==n?W.push(0):(W.push(1),n=w),x--,A--):X==E?(W.push(3),x--,n=E):(W.push(2),A--,n=a));W.reverse();k=void 0;x=[];for(A=0;A<W.length;A++)switch(W[A]){case 0:k&&(x.push(k),k=void 0);N++;B++;break;case 1:k||(k=tD(N,0));k.addedCount++;N++;k.removed.push(C[B]);
B++;break;case 2:k||(k=tD(N,0));k.addedCount++;N++;break;case 3:k||(k=tD(N,0)),k.removed.push(C[B]),B++}k&&x.push(k);return x};
Xqz=function(W,k){return a7I(W,W.length,k,k.length)};
ENw=function(W,k){return W===k};
dK4=function(W){if(W instanceof f7w)return W.value;throw Error("Dd`"+W);};
mKc=function(W,k){for(var C in k)C===null?W.style.removeProperty(C):W.style.setProperty(C,k[C])};
znI=function(W,k){return(W=window.getComputedStyle(W).getPropertyValue(k))?W.trim():""};
c3m=function(W){requestAnimationFrame(function(){DKP?DKP(W):(Vqc||(Vqc=new Promise(function(k){J3K=k}),document.readyState==="complete"?J3K():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&J3K()})),Vqc.then(function(){W&&W()}))})};
Mqc=function(W){I7z=W&&W.shimcssproperties?!1:Svw||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
s5p=function(W){if(!(Q53.indexOf(W)>-1)&&W!=="touchend"&&pqI&&vNI&&enK)return{passive:!0}};
Zs3=function(W){for(var k=G_3?["click"]:Q53,C=0,n;C<k.length;C++)n=k[C],W?(y33.length=0,document.addEventListener(n,$Kz,!0)):document.removeEventListener(n,$Kz,!0)};
Ed=function(W){var k=W.type;return Q53.indexOf(k)>-1?k==="mousemove"?(k=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!RnK&&(k=oNX[W.which]||0),!!(k&1)):(W.button===void 0?0:W.button)===0:!1};
isw=function(W){if(W.type==="click"){if(W.detail===0)return!0;var k=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!k.nodeType||k.nodeType!==Node.ELEMENT_NODE)return!0;k=k.getBoundingClientRect();var C=W.pageX;W=W.pageY;return!(C>=k.left&&C<=k.right&&W>=k.top&&W<=k.bottom)}return!1};
Tk2=function(W,k,C){W.movefn=k;W.upfn=C;document.addEventListener("mousemove",k);document.addEventListener("mouseup",C)};
aq=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
qvJ=function(W,k){for(var C=document.elementFromPoint(W,k),n=C;n&&n.shadowRoot&&!window.ShadyDOM;){var N=n;n=n.shadowRoot.elementFromPoint(W,k);if(N===n)break;n&&(C=n)}return C};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var k=upz(W);return k.length>0?k[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var k=W.type,C=W.currentTarget.__polymerGestures;if(C&&(C=C[k])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},k.slice(0,5)==="touch")){var n=W.changedTouches[0];k==="touchstart"&&W.touches.length===1&&(UKw=n.identifier);if(UKw!==n.identifier)return;pqI||(k==="touchstart"||k==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}n=
W.__polymerGesturesHandled;if(!n.skip){for(var N=0,B;N<Xw.length;N++)B=Xw[N],C[B.name]&&!n[B.name]&&B.flow&&B.flow.start.indexOf(W.type)>-1&&B.reset&&B.reset();for(N=0;N<Xw.length;N++)B=Xw[N],C[B.name]&&!n[B.name]&&(n[B.name]=!0,B[k](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var k=W.changedTouches[0],C=W.type;if(C==="touchstart")OsK=k.clientX,LE3=k.clientY,j5X=!1;else if(C==="touchmove"&&!j5X){j5X=!0;C="auto";for(var n=upz(W),N=0,B;N<n.length;N++)if(B=n[N],B.__polymerGesturesTouchAction){C=B.__polymerGesturesTouchAction;break}n=!1;N=Math.abs(OsK-k.clientX);k=Math.abs(LE3-k.clientY);W.cancelable&&(C==="none"?n=!0:C==="pan-x"?n=k>N:C==="pan-y"&&(n=N>k));n?W.preventDefault():
ft("track")}};
m5=function(W,k,C){return d0[k]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,k,C),!0):!1};
zX=function(W,k,C){return d0[k]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,k,C),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,k,C){var n=d0[k],N=n.deps,B=n.name,A=W.__polymerGestures;A||(W.__polymerGestures=A={});for(var w=0,x,E;w<N.length;w++)x=N[w],G_3&&Q53.indexOf(x)>-1&&x!=="click"||((E=A[x])||(A[x]=E={_count:0}),E._count===0&&W.addEventListener(x,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,s5p(x)),E[B]=(E[B]||0)+1,E._count=(E._count||0)+1);W.addEventListener(k,C);n.touchAction&&_.DR(W,n.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,k,C){var n=d0[k],N=n.deps;n=n.name;var B=W.__polymerGestures;if(B)for(var A=0,w,x;A<N.length;A++)w=N[A],(x=B[w])&&x[n]&&(x[n]=(x[n]||1)-1,x._count=(x._count||1)-1,x._count===0&&W.removeEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,s5p(w)));W.removeEventListener(k,C)};
Hsm=function(W){Xw.push(W);for(var k=0;k<W.emits.length;k++)d0[W.emits[k]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var k=0,C;k<Xw.length;k++){C=Xw[k];for(var n=0,N;n<C.emits.length;n++)if(N=C.emits[n],N===W)return C}return null};
_.DR=function(W,k){pqI&&W instanceof HTMLElement&&Ve.run(function(){W.style.touchAction=k});
W.__polymerGesturesTouchAction=k};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,k,C){k=new Event(k,{bubbles:!0,cancelable:!0,composed:!0});k.detail=C;(0,_.bD)(W).dispatchEvent(k);k.defaultPrevented&&(W=C.preventer||C.sourceEvent)&&W.preventDefault&&W.preventDefault()};
ft=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
JD=function(W,k,C,n){k&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k,W,{x:C.clientX,y:C.clientY,sourceEvent:C,preventer:n,prevent:function(N){return ft(N)}})};
r3w=function(W,k,C){if(W.prevent)return!1;if(W.started)return!0;C=Math.abs(W.y-C);return Math.abs(W.x-k)>=5||C>=5};
gN3=function(W,k,C){if(k){var n=W.moves[W.moves.length-2],N=W.moves[W.moves.length-1],B=N.x-W.x,A=N.y-W.y,w=0;if(n){var x=N.x-n.x;w=N.y-n.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k,"track",{state:W.state,x:C.clientX,y:C.clientY,dx:B,dy:A,ddx:x,ddy:w,sourceEvent:C,hover:function(){return qvJ(C.clientX,C.clientY)}})}};
KEm=function(W,k,C){var n=Math.abs(k.clientX-W.x),N=Math.abs(k.clientY-W.y),B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C||k);!B||PHP[B.localName]&&B.hasAttribute("disabled")||!(isNaN(n)||isNaN(N)||n<=25&&N<=25||isw(k))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"tap",{x:k.clientX,y:k.clientY,sourceEvent:k,preventer:C})};
hnp=function(W,k,C,n,N){var B;N&&(B=typeof C==="object"&&C!==null)&&(n=W.__dataTemp[k]);n=n!==C&&(n===n||C===C);B&&n&&(W.__dataTemp[k]=C);return n};
kvc=function(){if(cm&&!Iq){if(!WlI){WlI=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
n4I=function(){return CA4};
NvX=function(W,k){CA4=W;Object.setPrototypeOf(W,k.prototype);new k;CA4=null};
YMw=function(W,k){for(var C=0;C<k.length;C++){var n=k[C];if(!!W!=!!n.__hideTemplateChildren__)if(n.nodeType===Node.TEXT_NODE)W?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(W)n.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.bD)((0,_.bD)(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{var N=n.__polymerReplaced__;N&&(0,_.bD)((0,_.bD)(N).parentNode).replaceChild(n,N)}else n.style&&(W?(n.__polymerDisplay__=
n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=W;n._showHideChildren&&n._showHideChildren(W)}};
BvI=function(W){return(W=W.__dataHost)&&W._methodHost||W};
Flw=function(W,k,C){var n=C.mutableData?brc:S9;MZ.mixin&&(n=MZ.mixin(n));var N=function(){return n.apply(this,arguments)||this};
_.D(N,n);N.prototype.__templatizeOptions=C;N.prototype._bindTemplate(W);ApP(N,W,k,C);return N};
E44=function(W,k,C,n){var N=C.forwardHostProp;if(N&&k.hasHostProps){var B=W.localName=="template",A=k.templatizeTemplateClass;if(!A){if(B){var w=C.mutableData?w9P:xbP;A=function(){return w.apply(this,arguments)||this};
_.D(A,w);A=k.templatizeTemplateClass=A}else{var x=W.constructor;A=function(){return x.apply(this,arguments)||this};
_.D(A,x);A=k.templatizeTemplateClass=A}var E=k.hostProps,a;for(a in E)A.prototype._addPropertyEffect("_host_"+a,A.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:lB3(N)}),A.prototype._createNotifyingProperty("_host_"+a);Qe&&n&&tt2(k,C,n)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(B)NvX(W,A),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,A.prototype);k=k.hostProps;for(var X in k)X="_host_"+X,X in W&&(k=W[X],delete W[X],W.__data[X]=
k)}}};
lB3=function(W){return function(k,C,n){W.call(k.__templatizeOwner,C.substring(6),n[C])}};
ApP=function(W,k,C,n){var N=C.hostProps||{},B;for(B in n.instanceProps){delete N[B];var A=n.notifyInstanceProp;A&&W.prototype._addPropertyEffect(B,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:aBm(A)})}if(n.forwardHostProp&&k.__dataHost)for(var w in N)C.hasHostProps||(C.hasHostProps=!0),W.prototype._addPropertyEffect(w,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:X9p()})};
aBm=function(W){return function(k,C,n){W.call(k.__templatizeOwner,k,C,n[C])}};
X9p=function(){return function(W,k,C){W.__dataHost._setPendingPropertyOrPath("_host_"+k,C[k],!0,!0)}};
MZ=function(W,k,C){if(pt&&!BvI(W))throw Error("Jd");C=C||{};if(W.__templatizeOwner)throw Error("Kd");W.__templatizeOwner=k;var n=(k?k.constructor:S9)._parseTemplate(W),N=n.templatizeInstanceClass;N||(N=Flw(W,n,C),n.templatizeInstanceClass=N);var B=BvI(W);E44(W,n,C,B);C=function(){return N.apply(this,arguments)||this};
_.D(C,N);C.prototype._methodHost=B;C.prototype.__dataHost=W;C.prototype.__templatizeOwner=k;C.prototype.__hostProps=n.hostProps;return C};
tt2=function(W,k,C){C=C.constructor._properties;W=W.propertyEffects;k=k.instanceProps;for(var n in W)if(!(C[n]||k&&k[n]))for(var N=W[n],B=0;B<N.length;B++){var A=N[B].info.part;if(!A.signature||!A.signature.static){console.warn("Property '"+n+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
fBp=function(W,k){for(var C;k;)if(C=k.__dataHost?k:k.__templatizeInstance)if(C.__dataHost!=W)k=C.__dataHost;else return C;else k=(0,_.bD)(k).parentNode;return null};
vm=function(W){return W.localName==="slot"};
dbm=function(){for(var W=e9.prototype,k="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),C={},n=0;n<k.length;C={method$jscomp$32:void 0},n++)C.method$jscomp$32=k[n],W[C.method$jscomp$32]=function(N){return function(){return this.node[N.method$jscomp$32].apply(this.node,arguments)}}(C)};
mbc=function(W,k){for(var C={},n=0;n<k.length;C={name$jscomp$377:void 0},n++)C.name$jscomp$377=k[n],Object.defineProperty(W,C.name$jscomp$377,{get:function(N){return function(){return this.node[N.name$jscomp$377]}}(C),
configurable:!0})};
zm3=function(){for(var W=e9.prototype,k=["textContent","innerHTML","className"],C={},n=0;n<k.length;C={name$jscomp$378:void 0},n++)C.name$jscomp$378=k[n],Object.defineProperty(W,C.name$jscomp$378,{get:function(N){return function(){return this.node[N.name$jscomp$378]}}(C),
set:function(N){return function(B){this.node[N.name$jscomp$378]=B}}(C),
configurable:!0})};
DbP=function(){sd=document.documentElement.getAttribute("dir");sd=document.documentElement.getAttribute("dir");for(var W=0;W<GX.length;W++){var k=GX[W];k.__autoDirOptOut||k.setAttribute("dir",sd)}};
IBX=function(){ye=!0;requestAnimationFrame(function(){ye=!1;VtX(Jpp);setTimeout(function(){for(var W=0,k=$6.length;W<k;W++)cpI($6.shift())})})};
VtX=function(W){for(;W.length;)cpI(W.shift())};
cpI=function(W){var k=W[0],C=W[1];W=W[2];try{C.apply(k,W)}catch(n){setTimeout(function(){throw n;})}};
_.SMm=function(W,k,C){ye||IBX();Jpp.push([W,k,C])};
_.ZR=function(W,k,C){ye||IBX();$6.push([W,k,C])};
p9w=function(W,k){k=k===void 0?!1:k;if(!MtX||!QUw||!MtX.handlesDynamicScoping)return null;var C=QUw.ScopingShim;if(!C)return null;var n=C.scopeForNode(W),N=(0,_.bD)(W).getRootNode(),B=function(A){if((0,_.bD)(A).getRootNode()===N){var w=Array.from(MtX.nativeMethods.querySelectorAll.call(A,"*"));w.push(A);for(A=0;A<w.length;A++){var x=w[A];if((0,_.bD)(x).getRootNode()===N){var E=C.currentScopeForNode(x);E!==n&&(E!==""&&C.unscopeNode(x,E),C.scopeNode(x,n))}}}};
B(W);return k?(k=new MutationObserver(function(A){for(var w=0;w<A.length;w++)for(var x=A[w],E=0;E<x.addedNodes.length;E++){var a=x.addedNodes[E];a.nodeType===Node.ELEMENT_NODE&&B(a)}}),k.observe(W,{childList:!0,
subtree:!0}),k):null};
v4w=function(){document.body.removeAttribute("unresolved")};
$bw=function(W){var k=W=W.replace(emm,"").replace(sUm,""),C=new Gvp;C.start=0;C.end=k.length;for(var n=C,N=0,B=k.length;N<B;N++)if(k[N]==="{"){n.rules||(n.rules=[]);var A=n,w=A.rules[A.rules.length-1]||null;n=new Gvp;n.start=N+1;n.parent=A;n.previous=w;A.rules.push(n)}else k[N]==="}"&&(n.end=N+1,n=n.parent||C);return yp4(C,W)};
yp4=function(W,k){var C=k.substring(W.start,W.end-1);W.parsedCssText=W.cssText=C.trim();W.parent&&(C=k.substring(W.previous?W.previous.end:W.parent.start,W.start-1),C=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(C),C=C.replace(Zrm," "),C=C.substring(C.lastIndexOf(";")+1),C=W.parsedSelector=W.selector=C.trim(),W.atRule=C.indexOf("@")===0,W.atRule?C.indexOf("@media")===0?W.type=4:C.match(RmP)&&(W.type=7,W.keyframesName=W.selector.split(Zrm).pop()):C.indexOf("--")===
0?W.type=1E3:W.type=1);if(C=W.rules)for(var n=0,N=C.length,B=void 0;n<N&&(B=C[n]);n++)yp4(B,k);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var k=arguments[1],C=6-k.length;C--;)k="0"+k;return"\\"+k})};
o4m=function(W,k,C){C=C===void 0?"":C;var n="";if(W.cssText||W.rules){var N=W.rules;if(N&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(N))for(var B=0,A=N.length,w=void 0;B<A&&(w=N[B]);B++)n=o4m(w,k,n);else k?k=W.cssText:(k=W.cssText,k=k.replace(irp,"").replace(Tvw,""),k=k.replace(qMc,"").replace(u2w,"")),(n=k.trim())&&(n="  "+n+"\n")}n&&(W.selector&&(C+=W.selector+" {\n"),C+=n,W.selector&&(C+="}\n\n"));return C};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
Orw=function(W){if(W=Ubm[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
Llz=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
HrP=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,jUp.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
g4P=function(W){if(!W)return"";typeof W==="string"&&(W=$bw(W));return o4m(W,rpI)};
PAc=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=$bw(W.textContent));return W.__cssRules||null};
hmm=function(W,k,C,n){if(W){var N=!1,B=W.type;if(n&&B===4){var A=W.selector.match(KlK);A&&(window.matchMedia(A[1]).matches||(N=!0))}B===1?k(W):C&&B===7?C(W):B===1E3&&(N=!0);if((W=W.rules)&&!N)for(N=0,B=W.length,A=void 0;N<B&&(A=W[N]);N++)hmm(A,k,C,n)}};
WGK=function(W,k){var C=W.indexOf("var(");if(C===-1)return k(W,"","","");a:{var n=0;var N=C+3;for(var B=W.length;N<B;N++)if(W[N]==="(")n++;else if(W[N]===")"&&--n===0)break a;N=-1}n=W.substring(C+4,N);C=W.substring(0,C);W=WGK(W.substring(N+1),k);B=n.indexOf(",");if(B===-1)return k(C,n.trim(),"",W);N=n.substring(0,B).trim();n=n.substring(B+1).trim();return k(C,N,n,W)};
kKw=function(W){if(Rq!==void 0)return Rq;if(W.__cssBuild===void 0){var k=W.getAttribute("css-build");if(k)W.__cssBuild=k;else{a:{k=W.localName==="template"?W.content.firstChild:W.firstChild;if(k instanceof Comment&&(k=k.textContent.trim().split(":"),k[0]==="css-build")){k=k[1];break a}k=""}if(k!==""){var C=W.localName==="template"?W.content.firstChild:W.firstChild;C.parentNode.removeChild(C)}W.__cssBuild=k}}return W.__cssBuild||""};
no3=function(W,k,C,n){for(var N=k._noAccessors,B=Object.getOwnPropertyNames(k),A=0;A<B.length;A++){var w=B[A];if(!(w in n))if(N)W[w]=k[w];else{var x=Object.getOwnPropertyDescriptor(k,w);x&&(x.configurable=!0,Object.defineProperty(W,w,x))}}for(var E in C1w)k[E]&&(C[E]=C[E]||[],C[E].push(k[E]))};
N2m=function(W,k,C){k=k||[];for(var n=W.length-1;n>=0;n--){var N=W[n];N?Array.isArray(N)?N2m(N,k):k.indexOf(N)<0&&(!C||C.indexOf(N)<0)&&k.unshift(N):console.warn("behavior is null, check for missing or 404 import")}return k};
YyX=function(W,k){for(var C in k){var n=W[C],N=k[C];W[C]=!("value"in N)&&n&&"value"in n?Object.assign({value:n.value},N):N}};
Aum=function(W,k,C){var n={},N=function(){return k.apply(this,arguments)||this};
_.D(N,k);N._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(A)for(var x=0,E;x<A.length;x++)E=A[x],E.properties&&this.createProperties(E.properties),E.observers&&this.createObservers(E.observers,E.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else k._finalizeClass.call(this)};
N.prototype.created=function(){k.prototype.created.call(this);var x=n.created;if(x)for(var E=0;E<x.length;E++)x[E].call(this)};
N.prototype._registered=function(){var x=N.prototype;if(!x.hasOwnProperty("__hasRegisterFinished")){x.__hasRegisterFinished=!0;k.prototype._registered.call(this);cm&&w(x);x=Object.getPrototypeOf(this);var E=n.beforeRegister;if(E)for(var a=0;a<E.length;a++)E[a].call(x);if(E=n.registered)for(a=0;a<E.length;a++)E[a].call(x)}};
N.prototype._applyListeners=function(){k.prototype._applyListeners.call(this);var x=n.listeners;if(x)for(var E=0;E<x.length;E++){var a=x[E];if(a)for(var X in a)this._addMethodEventListenerToNode(this,X,a[X])}};
N.prototype._ensureAttributes=function(){var x=n.hostAttributes;if(x)for(var E=x.length-1;E>=0;E--){var a=x[E],X;for(X in a)this._ensureAttribute(X,a[X])}k.prototype._ensureAttributes.call(this)};
N.prototype.ready=function(){k.prototype.ready.call(this);var x=n.ready;if(x)for(var E=0;E<x.length;E++)x[E].call(this)};
N.prototype.attached=function(){k.prototype.attached.call(this);var x=n.attached;if(x)for(var E=0;E<x.length;E++)x[E].call(this)};
N.prototype.detached=function(){k.prototype.detached.call(this);var x=n.detached;if(x)for(var E=0;E<x.length;E++)x[E].call(this)};
N.prototype.attributeChanged=function(x,E,a){k.prototype.attributeChanged.call(this);var X=n.attributeChanged;if(X)for(var d=0;d<X.length;d++)X[d].call(this,x,E,a)};
_.oq.Object.defineProperties(N,{properties:{configurable:!0,enumerable:!0,get:function(){var x={};if(A)for(var E=0;E<A.length;E++)YyX(x,A[E].properties);YyX(x,W.properties);return x}},
observers:{configurable:!0,enumerable:!0,get:function(){var x=[];if(A)for(var E=0,a;E<A.length;E++)a=A[E],a.observers&&(x=x.concat(a.observers));W.observers&&(x=x.concat(W.observers));return x}}});
if(C){Array.isArray(C)||(C=[C]);var B=k.prototype.behaviors;var A=N2m(C,null,B);N.prototype.behaviors=B?B.concat(C):A}var w=function(x){if(A)for(var E=A,a=0;a<E.length;a++)no3(x,E[a],n,B2P);no3(x,W,n,b0w)};
cm||w(N.prototype);N.generatedFrom=W;return N};
l8I=function(W){var k=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};k.fastInit===void 0&&(k.fastInit=!0);return function(C){if(!k.disableInheritanceCheck&&Object.getPrototypeOf(C.prototype).constructor!==_.iD)throw Error("Od");var n=C.prototype;n.is=k.is;fNz(n,"created",function(){this.hostElement=this;this.polymerController=this});
FGw(n,C,k.fastInit);k.notifyObserversOnUndefined&&(n._overrideLegacyUndefined=!0);if(wTw)for(var N=_.b(Object.getOwnPropertyNames(n)),B=N.next();!B.done;B=N.next()){B=B.value;var A=Object.getOwnPropertyDescriptor(n,B);A.enumerable===!1&&(A.enumerable=!0,Object.defineProperty(n,B,A))}if("template"in C)var w=function(){return C.template};
else k.template!==void 0&&(w=k.template);if(w!==void 0){var x;Object.defineProperty(n,"_template",{get:function(){x===void 0&&(x=w());return x},
set:function(E){x=E},
configurable:!0,enumerable:!0})}Polymer(n);C[xJ4]=n}};
t5X=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(k){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(k.prototype).constructor!==TX)throw Error("Pd");FGw(k.prototype,k,W.fastInit)}};
FGw=function(W,k,C){C=C===void 0?!1:C;EoX(k);C?fNz(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||a8z(k,this)}):fNz(W,"ready",function(){for(var n={},N=_.b(d2m(this.behaviors)),B=N.next();!B.done;B=N.next())B=B.value,B.properties&&Object.assign(n,XTz(this,B.properties));
Object.assign(n,XTz(this,this.properties));a8z(k,this);N=_.b(Object.keys(n));for(B=N.next();!B.done;B=N.next())B=B.value,this[B]=n[B]})};
a8z=function(W,k){if(wTw){W=new W;for(var C=_.b(Object.getOwnPropertyNames(W)),n=C.next();!n.done;n=C.next())n=n.value,k[n]=W[n];for(C=k;C&&C!==Object.prototype;C=Object.getPrototypeOf(C)){n=_.b(Object.getOwnPropertyNames(C));for(var N=n.next();!N.done;N=n.next())N=N.value,W.hasOwnProperty(N)||Object.defineProperty(W,N,f8J(k,N))}}else W.apply(k)};
f8J=function(W,k){return{get:function(){var C=W[k];return C instanceof Function?C.bind(W):C},
set:function(C){W[k]=C}}};
XTz=function(W,k){if(!k)return{};for(var C={},n=_.b(Object.keys(k)),N=n.next();!N.done;N=n.next())if(N=N.value,!k[N].readOnly){var B=W[N];B!==void 0&&(C[N]=B)}return C};
EoX=function(W){var k=new W;W=W.prototype.properties||{};for(var C=_.b(Object.keys(W)),n=C.next();!n.done;n=C.next())if(n=n.value,k.hasOwnProperty(n)){var N=W[n];typeof N==="function"&&(W[n]=N={type:N});k[n]!=null&&N.type===Object&&(N.type=dJp(k[n].constructor))}};
dJp=function(W){for(var k=_.b(mJ4),C=k.next();!C.done;C=k.next())if(C=C.value,W===C)return C;return Object};
zkp=function(W){return function(k,C){k.behaviors=k.behaviors||[];k.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",k,C).prototype:void 0));Object.defineProperty(k,C,{get:function(){return this},
enumerable:!0,configurable:!0})}};
DJ2=function(W){W=W===void 0?{}:W;return function(k,C){k.properties=k.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=dJp(Reflect.getMetadata("design:type",k,C)):W.type=String);var n=W,N=k.properties[C];k.properties[C]=N?Object.assign({},N,n):n}};
V5m=function(W){return function(k,C){k.listeners=k.listeners||{};k.listeners[W]=C}};
Juw=function(){var W=_.v6.apply(0,arguments);if(W.length===0)throw Error("Qd");return function(k,C){k.observers=k.observers||[];k.observers.push(C+"("+W.join(",")+")")}};
cuw=function(){var W=_.v6.apply(0,arguments);return function(k,C,n){var N=Object.getOwnPropertyDescriptor(k,C).get,B="__compute__"+C;Object.defineProperty(k,B,{value:N,enumerable:!0});k.properties=k.properties||{};N=k.properties[C];N||(N={},k.properties[C]=N);N.computed=B+"("+W.join(",")+")";n.get=void 0}};
_.uD=function(W,k,C){_.XK.call(this);this.JSC$9079_id_=null;this.usingListeners_=!1;this.JSC$9079_listener_=W;this.handler_=C;this.JSC$9079_win_=k||window;this.callback_=(0,_.fN)(this.JSC$9081_doAction_,this)};
Ud=function(W){this.range_=W};
Od=function(W){this.range_=W};
Hm=function(W,k,C){_.XK.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.Lt(50);this.JSC$9158_eventHandler_=new _.j9(this);this.scrollDelta_=new _.S3;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=I8P(W);this.containerIsActuallyContent_&&(W=_.tU(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=k||0;if(k){if(k=this.containerBounds_.clone(),W=this.margin_){var n=
Math.min(W,k.height*.25);k.top+=n;k.height-=2*n;W=Math.min(W,k.width*.25);k.left+=W;k.width-=2*W}}else k=this.containerBounds_;this.scrollBounds_=k;C||this.JSC$9158_eventHandler_.listen(_.QZ(this.containerNode_),"mousemove",this.JSC$9160_onMouseMove);this.JSC$9158_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9160_onTick_)};
_.r0=function(W){this.mechanism=W};
g0=function(W,k){this.JSC$9256_key_=W;this.JSC$9256_value_=k};
M5X=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in Sy3&&(W=Sy3[W]);var k="";W>65535&&(W-=65536,k+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return k+=String.fromCharCode(W)};
QHm=function(W,k){return W<k?1:-1};
voP=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?M5X(parseInt(W.substr(3),16)):M5X(parseInt(W.substr(2),10)):pTm[W.slice(1,-1)]}};
GKI=function(W){return W.slice(1,W.length-1).trim().replace(ekI,function(k){return sHm[k]||" "})};
Pm=function(W){return W===32||W===9};
Kt=function(W,k){return k<W.length?W.charCodeAt(k):-1};
yuK=function(W){for(;W;){if(W._lastLineBlank)return!0;var k=W.type;if(k==="list"||k==="item")W=W._lastChild;else break}return!1};
hD=function(W){if($JK.test(W)){var k=1,C=0,n=0;for(W[C]=="|"&&C++;C<W.length;){switch(W[C]){case "|":n=1;break;case " ":break;case "\t":break;default:n&&(n=0,k++)}C++}return Z02.test(W)?-k:k}return 0};
Rkw=function(W){return W=="table"||W=="row"||W=="cell"};
oow=function(){return new ke("document",[[1,1],[0,0]])};
i04=function(){};
CY=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
O0K=function(W,k){var C="";if(W)if(W=W.toLowerCase(),W===" "||T23.test(W))C="space";else if(qyP.test(W))C="esc";else if(W.length==1){if(!k||uHc.test(W))C=W}else C=UJX.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return C};
ruX=function(W,k){var C=W.hasModifiers;if(k.key)C=O0K(k.key,C);else if(k.detail&&k.detail.key)C=O0K(k.detail.key,C);else{C=k.keyIdentifier;var n="";C&&(C in LGX?n=LGX[C]:jHK.test(C)?(C=parseInt(C.replace("U+","0x"),16),n=String.fromCharCode(C).toLowerCase()):n=C.toLowerCase());(C=n)||(C=k.keyCode,n="",Number(C)&&(C>=65&&C<=90?n=String.fromCharCode(32+C):C>=112&&C<=123?n="f"+(C-112+1):C>=48&&C<=57?n=String(C-48):C>=96&&C<=105?n=String(C-96):n=H0K[C]),C=n);C=C||""}return C===W.key&&(!W.hasModifiers||
!!k.shiftKey===!!W.shiftKey&&!!k.ctrlKey===!!W.ctrlKey&&!!k.altKey===!!W.altKey&&!!k.metaKey===!!W.metaKey)};
P1w=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(k,C){var n=C.split(":");C=n[0];n=n[1];C in gom?(k[gom[C]]=!0,k.hasModifiers=!0):(k.key=C,k.event=n||"keydown");return k},{combo:W.split(":").shift()})};
KGI=function(W){return W.trim().split(" ").map(function(k){return P1w(k)})};
hkz=function(W,k){if(W&&W.fn){var C=W.fn;W.fn=function(){try{C.apply(this,arguments)}catch(n){if(n instanceof nY)console.warn("Argument '"+n.arg+"'"+(k?" for method '"+k+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw n;}}}return W};
WPJ=function(){var W=_.v6.apply(0,arguments);return W.length===0?function(k){return k}:W.length===1?W[0]:W.reduce(function(k,C){return function(){return k(C.apply(null,_.J8(_.v6.apply(0,arguments))))}})};
kqc=function(){var W=_.v6.apply(0,arguments);return function(k){return function(C,n){C=k(C,n);var N=function(){throw Error("Ae");},B={getState:C.getState,
dispatch:function(A){return N.apply(null,[A].concat(_.J8(_.v6.apply(1,arguments))))}};
n=W.map(function(A){return A(B)});
N=WPJ.apply(null,_.J8(n))(C.dispatch);return Object.assign({},C,{dispatch:N})}}};
NmI=function(W){Object.keys(W).forEach(function(k){var C=W[k];if(typeof C(void 0,{type:CsJ})==="undefined")throw Error("Be`"+k);if(typeof C(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+nT2()})==="undefined")throw Error("Ce`"+k+"`"+CsJ);})};
NL=function(W){for(var k=Object.keys(W),C={},n=0;n<k.length;n++){var N=k[n];typeof W[N]==="function"&&(C[N]=W[N])}var B=Object.keys(C);try{NmI(C)}catch(w){var A=w}return function(w,x){w=w===void 0?{}:w;if(A)throw A;for(var E=!1,a={},X=0;X<B.length;X++){var d=B[X],V=w[d],c=(0,C[d])(V,x);if(typeof c==="undefined")throw w=x&&x.type,Error("De`"+(w?'"'+String(w)+'"':"(unknown type)")+"`"+d);a[d]=c;E=E||c!==V}return(E=E||B.length!==Object.keys(w).length)?a:w}};
YY3=function(W,k,C){function n(){if(a)throw Error("Ee");return w}
function N(V){if(typeof V!=="function")throw Error("Fe`"+typeof V);if(a)throw Error("Ge");var c=!0;E===x&&(E=x.slice());E.push(V);return function(){if(c){if(a)throw Error("He");c=!1;E===x&&(E=x.slice());var M=E.indexOf(V);E.splice(M,1);x=null}}}
function B(V){if(typeof V!=="object"||V===null)var c=!1;else{for(c=V;Object.getPrototypeOf(c)!==null;)c=Object.getPrototypeOf(c);c=Object.getPrototypeOf(V)===c}if(!c)throw Error("Ie`"+typeof V);if(typeof V.type==="undefined")throw Error("Je");if(a)throw Error("Ke");try{a=!0,w=A(w,V)}finally{a=!1}c=x=E;for(var M=0;M<c.length;M++)(0,c[M])();return V}
if(typeof k==="function"&&typeof C==="function"||typeof C==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof k==="function"&&typeof C==="undefined"&&(C=k,k=void 0);if(typeof C!=="undefined"){if(typeof C!=="function")throw Error("Me`"+typeof C);return C(YY3)(W,k)}if(typeof W!=="function")throw Error("Ne`"+typeof W);var A=W,w=k,x=[],E=x,a=!1;B({type:CsJ});var X={},d=(X.dispatch=B,X.subscribe=N,X.getState=n,X.replaceReducer=function(V){if(typeof V!=="function")throw Error("Oe`"+
typeof V);A=V;B({type:BmP});return d},X[bxm]=function(){var V={};
return V.subscribe=function(c){function M(){c.next&&c.next(n())}
if(typeof c!=="object"||c===null)throw new TypeError("Pe`"+typeof c);M();return{unsubscribe:N(M)}},V[bxm]=function(){return this},V},X);
return d};
Abm=function(W){function k(){N&&(N=!1,W());B&&n()}
function C(){requestAnimationFrame(k)}
function n(){var w=Date.now();if(N){if(w-A<2)return;B=!0}else N=!0,B=!1,setTimeout(C,20);A=w}
var N=!1,B=!1,A=0;return n};
Ye=function(W){return typeof W==="number"?W:parseFloat(W)||0};
FPw=function(W){return _.v6.apply(1,arguments).reduce(function(k,C){return k+Ye(W["border-"+C+"-width"])},0)};
_.J=function(W,k){k=Zl($3(k));W.innerHTML=k};
luX=function(W){var k=wSp;k||(k=xe3(),k=wSp=_.JU.transpose(k));k=k[W];return typeof k==="string"?k:_.Be(W)};
tZc=function(W){W=String(W).toLowerCase();var k=xe3()[W];return typeof k==="string"?k:_.bd(W)};
ETP=function(W){W=W.toLowerCase();W=xe3()[W];return typeof W==="string"?W:null};
xe3=function(){if(!aup){for(var W=Object.assign({},XSm),k=_.b(fuz),C=k.next();!C.done;C=k.next())C=C.value,W[C.toLowerCase()]=C;aup=W}return aup};
zO2=function(W,k){var C=window.customElements;return C&&C.get(W)||dew[W]===!0?2:k.name==="HTMLUnknownElement"?1:k.name==="HTMLElement"&&mep.test(W)?3:0};
Jbw=function(W,k){switch(k){case "innerHTML":return De4(W)===1?2:null;case "textContent":return W=De4(W),W===1||W===6?1:null;default:var C,n;return(n=(C=VZK[W.localName])==null?void 0:C[k])!=null?n:null}};
De4=function(W){var k=W.localName,C=zO2(k,W.constructor);switch(C){case 0:case 1:return cbw(k,W);case 3:case 2:return 1;default:_.oI(C,"got an unknown element classification")}};
cbw=function(W,k){var C=Object.hasOwnProperty.call(IuJ,W)?IuJ[W]:null;return C!==null?C:Object.hasOwnProperty.call(SY2,W)&&k instanceof SVGElement?SY2[W]:null};
MZX=function(W,k){return k};
pSm=function(W){return(W=W.split(Qaw,2))?{url:W[0],metadata:W[1]}:null};
eO3=function(W){var k=String(W.url).replace(vTw,encodeURIComponent);if(W=W.metadata){vTw.lastIndex=0;if(vTw.test(W))return null;k+=" "+W}return k};
$ep=function(W){function k(E){var a=E.localName;if(!E.getAttribute("is")&&zO2(a,E.constructor)===2){var X;return(X=x)!=null?X:x=document.createElement("polyresinuncustomized")}(E=w[a])||(E=w[a]=document.createElement(a));return E}
var C=W.reportHandler||void 0,n=W.safeTypesBridge||saK,N=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.b(W);for(var B=W.next();!B.done;B=W.next())N=new RegExp(N.source+"|^"+_.Gqc(B.value))}C&&C(!1,"initResin",null);var A=yb2(N,n,C),w={},x=null;return function(E,a,X){var d=E.nodeType;if(d!==Node.ELEMENT_NODE){if(d===Node.TEXT_NODE){a=E.parentElement;X=!a;if(a&&a.nodeType===Node.ELEMENT_NODE){d=a.localName;var V=zO2(d,a.constructor);switch(V){case 0:case 1:a=cbw(d,a);X=a===1||a===6;break;case 3:case 2:X=
!0;break;default:_.oI(V,"got an unknown element classification")}}if(X)return function(e){return""+n(e,"STRING",e)}}return function(e){if(!e&&e!==document.all)return e;
C&&C(!0,"Failed to sanitize "+(E.parentElement&&E.parentElement.nodeName)+" #text node to value "+e,E.parentElement);return AA}}var c=E.localName;
d=k(E);var M=null;switch(X){case "attribute":if(tZc(a)in d)break;return function(e){return e};
case "property":if(a in d){M=Jbw(d,a);break}if((V=ETP(a))&&V in d)break;return function(e){return e};
default:_.oI(X,"got an unknown resin type, expected either 'property' or 'attribute'")}var p=X==="attribute"?a.toLowerCase():luX(a);M||(M=n6m(c,p,function(e){var u=E.getAttribute(e);return!u||/[\[\{]/.test(e)?null:u}));
return function(e){var u=Fv,h=null;if(!e&&e!==document.all)return e;if(M!=null){var L=A[M],Bw=L.safeType;h=L.safeReplacement;Bw&&(u=n(e,Bw,Fv));u===Fv&&(L.filterString?(u=String(n(e,"STRING",e)),u=L.filterString(c,p,u)):L.filterRaw&&(u=L.filterRaw(c,p,e,E)),u===h&&(u=Fv))}u===Fv&&(u=h||AA,C&&C(!0,"Failed to sanitize attribute of <"+c+">: <"+c+" "+p+'="'+e+'">',E));return u}}};
yb2=function(W,k,C){return[,{filterRaw:function(n,N,B){return B},
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:ZxP,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ZxP,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:AA,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:ROX,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(n,N,B){B=
String(B).toLowerCase();return B0P(n,N,B)?B:AA},
safeReplacement:AA,safeType:void 0},,{filterRaw:void 0,filterString:function(n,N,B){return W.test(B)?B:AA},
safeReplacement:AA,safeType:"CONSTANT"},{filterRaw:function(n,N,B,A){if(typeof B==="string")var w=(w=B.match(oTP))?w.map(pSm).filter(Boolean):[];else if(Array.isArray(B))w=B;else return ZxP;var x=w;w=[];var E=[],a={};if(Array.isArray(x))for(var X=0,d=x.length;X<d;++X){var V=x[X],c=V&&V.url;if(c){var M=k(c,"URL",a);if(M){var p=M!==a;(p?w:E).push({url:p?M:c,metadata:V.metadata})}}}else E.push(x);x=E.length?JSON.stringify(E):null;E=Fv;if(w.length){if(!Array.isArray(w))throw Error();E=w.map(eO3).filter(Boolean).join(" , ")||
Fv}x&&C&&C(!0,"Failed to sanitize attribute value of <"+n+">: <"+n+" "+N+'="'+B+'">: '+x,A);return E===Fv?ZxP:E},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ix3=function(W){var k=$ep(W);return function(C,n,N,B){return B||B===document.all?k(C,n,N)(B):B}};
wa=function(W,k){function C(){function N(w,x,E){for(x=Reflect.getMetadata("parameters",w)||[];x.length<=E;)x.push(null);x[E]=x[E]||[];x[E].push(A);Reflect.defineMetadata(x,w);return w}
var B=_.v6.apply(0,arguments);if(this instanceof C)return n.apply(this,B),this;var A=new (Function.prototype.bind.apply(C,[null].concat(_.J8(B))));N.annotation=A;return N}
var n=Tm3(k);C.prototype.toString=function(){return"@"+W};
return C.annotationCls=C};
Tm3=function(W){return function(){var k=_.v6.apply(0,arguments),C=this;W.forEach(function(n,N){N=k[N];if(Array.isArray(n))C[n[0]]=N&&N!==void 0?N:n[1];else for(var B in n)C[B]=N&&N[B]!==void 0?N[B]:n[B]})}};
qYm=function(W){return W!==void 0&&W!==null};
xe=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var k=W.indexOf("\n");return k===-1?W:W.substring(0,k)};
ubK=function(W){W.__forward_ref__=ubK;W.toString=function(){return xe(this())};
return W};
ld=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===ubK?W():W};
UeP=function(W){return W?W.map(function(k){return new (Function.prototype.bind.apply(k.type.annotationCls,[null].concat(_.J8(k.args?k.args:[]))))}):[]};
Ox4=function(W){for(var k=[],C=0;C<W.length;++C){if(k.indexOf(W[C])>-1){k.push(W[C]);break}k.push(W[C])}return k};
LPw=function(W){return W.length>1?" ("+Ox4(W.slice().reverse()).map(function(k){return xe(k.token)}).join(" -> ")+")":""};
Hx3=function(W,k,C,n){if(n){var N=Error("We``"+(n instanceof Error?n.message:n));N.ngOriginalError=n}else N=Error();N.addKey=jaX;N.keys=[k];N.injectors=[W];N.constructResolvingMessage=C;N.message=N.constructResolvingMessage();N.ngOriginalError=n;return N};
jaX=function(W,k){this.injectors.push(W);this.keys.push(k);this.message=this.constructResolvingMessage()};
rbX=function(W,k){return Hx3(W,k,function(){return"No provider for "+xe(this.keys[0].token)+"!"+LPw(this.keys)})};
gTJ=function(W,k){return Hx3(W,k,function(){return"Cannot instantiate cyclic dependency!"+LPw(this.keys)})};
Psc=function(W,k,C){return Hx3(W,C,function(){var n=xe(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+n+"!"+LPw(this.keys)+"."},k)};
KP2=function(W,k){for(var C=[],n=0,N=k.length;n<N;n++){var B=k[n];B&&B.length!=0?C.push(B.map(xe).join(" ")):C.push("?")}return Error("$e`"+xe(W)+"`"+C.join(", ")+"`"+xe(W))};
Y3J=function(W){var k=void 0,C=void 0;if(W&&W.useClass!==void 0){k=W.useClass;var n=ld(W.useClass);var N=hOI.factory(n);n=WeX(n)}else W&&W.useExisting!==void 0?(N=function(B){return B},n=[kcm(tA.get(ld(W.useExisting)))]):W&&W.useFactory!==void 0?(N=W.useFactory,n=Ccm(W.useFactory,W.deps)):(C=W.useValue,N=function(){return W.useValue},n=nXJ);
return new N14(N,n,k,C)};
bFP=function(W){return new B1z(tA.get(ld(W.provide)),[Y3J(W)],W.multi)};
Few=function(W){W=ACp(W,[]).map(bFP);for(var k=new Map,C=0;C<W.length;C++){var n=W[C],N=k.get(n.key.id);if(N){if(n.multiProvider!==N.multiProvider)throw Error("bf`"+N+"`"+n);if(n.multiProvider)for(var B=0;B<n.resolvedFactories.length;B++)N.resolvedFactories.push(n.resolvedFactories[B]);else k.set(n.key.id,n)}else N=void 0,n.multiProvider?N=new B1z(n.key,n.resolvedFactories.slice(),n.multiProvider):N=n,k.set(n.key.id,N)}return Array.from(k.values())};
ACp=function(W,k){W.forEach(function(C){if(C instanceof w1m)k.push({provide:C,useClass:C});else if(C&&typeof C=="object"&&C.provide!==void 0)k.push(C);else if(C instanceof Array)ACp(C,k);else throw Error("Ze`"+C);});
return k};
Ccm=function(W,k){if(k){var C=k.map(function(n){return[n]});
return k.map(function(n){return xRm(W,n,C)})}return WeX(W)};
WeX=function(W){var k=hOI.parameters(W);if(!k)return[];if(k.some(function(C){return C==null}))throw KP2(W,k);
return k.map(function(C){return xRm(W,C,k)})};
xRm=function(W,k,C){var n=null,N=!1;if(!Array.isArray(k))return k instanceof lTP?tT2(k.token,N,null):tT2(k,N,null);for(var B=null,A=0;A<k.length;++A){var w=k[A];if(w instanceof w1m)n=w;else if(w instanceof lTP)n=w.token;else if(w instanceof EXm)N=!0;else if(w instanceof aTz||w instanceof X1X)B=w}n=ld(n);if(n!=null)return tT2(n,N,B);throw KP2(W,C);};
tT2=function(W,k,C){return new fTI(tA.get(ld(W)),k,C)};
dRP=function(W,k){for(var C=Array(W.providers.length),n=0;n<W.providers.length;++n){var N=n;if(n<0||n>=W.providers.length)throw Error("af`"+n);C[N]=k(W.providers[n])}return C};
mR3=function(W){return typeof W==="function"&&hOI.parameters(W).every(function(k){return!!k})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,k){var C,n;if(W.contains(k))return!0;W=_.Ek(W).querySelectorAll("content,slot");for(C=0;C<W.length;++C){var N=_.Ek(W[C]).getDistributedNodes();for(n=0;n<N.length;++n)if(N[n].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N[n],k))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],zew=W.pageX,DRw=W.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 W=0,k=aA.length;W<k;W++)document.addEventListener(aA[W],_._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 W=0,k=aA.length;W<k;W++)document.removeEventListener(aA[W],_._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(W){var k=_.Ek(W).rootTarget;W.type!=="touchmove"&&VTJ!==k&&(VTJ=k,JCm=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Ek(W).path));if(!JCm.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(JCm,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var k=[],C=W.indexOf(cCm),n=0;n<=C;n++)if(W[n].nodeType===Node.ELEMENT_NODE){var N=W[n],B=N.style;B.overflow!=="scroll"&&B.overflow!=="auto"&&(B=window.getComputedStyle(N));B.overflow!=="scroll"&&B.overflow!=="auto"||k.push(N)}return k};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,k,C){if(k||C)for(var n=Math.abs(C)>=Math.abs(k),N=0;N<W.length;N++){var B=W[N];if(n?C<0?B.scrollTop>0:B.scrollTop<B.scrollHeight-B.clientHeight:k<0?B.scrollLeft>0:B.scrollLeft<B.scrollWidth-B.clientWidth)return B}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var k={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(k.deltaX=-W.wheelDeltaX,k.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(k.deltaX=0,k.deltaY=-W.wheelDelta):"axis"in W?(k.deltaX=W.axis===1?W.detail:0,k.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],k.deltaX=zew-W.pageX,k.deltaY=DRw-W.pageY));return k};
ITI=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
MTw=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.Ek(this.waveContainer).appendChild(this.wave);S3X(this)};
Xv=function(W,k){for(var C in W)if(C.toLowerCase()===k.toLowerCase())return W[C]};
QRc=function(W,k){for(var C in W)if(C.toLowerCase()===k.toLowerCase()){delete W[C];break}};
vXP=function(W){W=_.JU.clone(W);for(var k=0;k<p1X.length;++k){var C=p1X[k],n=Xv(W,C);n&&(W["X-Goog-Upload-Header-"+C]=n,QRc(W,C))}return W};
eeJ=function(W){W=_.JU.clone(W);QRc(W,"X-Goog-Upload-Status")};
GcJ=function(W){return sRp.some(function(k){return k.test(W)})};
Rem=function(W,k){var C;var n=(C=W.formContent)==null?void 0:C.locale;C=n==null?void 0:n.split("-")[0];n=n&&yCm.includes(n)?n:C&&yCm.includes(C)?C:void 0;n=(n!=null?n:"en").replaceAll("-","_").toLowerCase();var N;W=((N=W.initializationData)==null?0:N.useNightlyRelease)?"nightly":"live";var B;return(k==null?0:(B=k.getEnableAlohaBinarySplit)==null?0:B.call(k))?_.k0($RK,W):_.k0(ZFI,W,n)};
iFp=function(W,k,C,n){if(oXm)return oXm;var N=Rem(W,n);return oXm=k.feedbackV2GlobalObject?Promise.resolve(k.feedbackV2GlobalObject):new Promise(function(B,A){var w=_.wu("SCRIPT");_.LL(w,N);w.onload=function(){k.feedbackV2GlobalObject?B(k.feedbackV2GlobalObject):A(Error("ef"))};
w.onerror=function(){A(Error("ff`"+N.toString()))};
C.body.appendChild(w)})};
q3w=function(W,k,C,n){if(T1w)return T1w;var N=Rem(W,n);return T1w=k.feedbackV2GlobalObject?Promise.resolve(k.feedbackV2GlobalObject):new Promise(function(B,A){var w=_.wu("SCRIPT");_.LL(w,N);w.onload=function(){k.feedbackV2GlobalObject?B(k.feedbackV2GlobalObject):A(Error("ef"))};
w.onerror=function(){A(Error("ff`"+N.toString()))};
C.body.appendChild(w)})};
u$3=function(W,k,C,n,N){N=N===void 0?!0:N;var B,A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:return B=Date.now(),_.l(a,iFp(W,C,n,k),2);case 2:A=a.yieldResult;if(!(N||((x=W.initializationData)==null?0:x.useNightlyRelease)||((E=W.initializationData)==null?0:E.isLocalServer))){w=A.initializeFeedbackClient(W,B,k);a.jumpTo(3);break}return _.l(a,A.initializeFeedbackClientAsync(W,B,k),4);case 4:w=a.yieldResult;case 3:return w.initiateAloha(),a.return(w)}})};
URw=function(W,k,C,n){var N,B,A;return _.F(function(w){if(w.nextAddress==1)return N=Date.now(),_.l(w,q3w(W,C,n.document,k),2);if(w.nextAddress!=3)return B=w.yieldResult,_.l(w,B.initializeFeedbackClientAsync(W,N,k,n),3);A=w.yieldResult;A.initiateAloha();return w.return(A)})};
OFJ=function(W,k,C){var n=!0;n=n===void 0?!0:n;var N,B,A,w,x,E,a,X,d,V;return _.F(function(c){N=C||_.NX;if((B=k)==null?0:(w=(A=B).getEnableAlohaBinarySplit)==null?0:w.call(A)){x=N;if(x.isFormOpened)throw E=Error("gf"),E.name="DuplicateFormError",E;x.isFormOpened=!0;W.callbacks=W.callbacks||{};a=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(M){x.isFormOpened=!1;a(M)};
try{return c.return(URw(W,k,x,N))}catch(M){throw x.isFormOpened=!1,M;}}else{X=N;if(X.isFormOpened)throw d=Error("gf"),d.name="DuplicateFormError",d;X.isFormOpened=!0;W.callbacks=W.callbacks||{};V=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(M){X.isFormOpened=!1;V(M)};
try{return c.return(u$3(W,k,X,N.document,n))}catch(M){throw X.isFormOpened=!1,M;}}_.ab(c)})};
gXp=function(W,k){return _.F(function(C){return C.return(new Promise(function(n){var N=Lep(k!=null?k:"")+"/aloha_form_properties?productId="+W;jRw(N,function(B){B=B.target;var A=null;try{var w=JSON,x=w.stringify;if(B.JSC$7668_xhr_){var E=B.JSC$7668_xhr_.responseText;E.indexOf(")]}'\n")==0&&(E=E.substring(5));var a=(0,_.fY)(E)}else a=void 0;A=QeX(HFw,x.call(w,a))}catch(X){x=new HFw,a=rCm(),a=_.da(a,13,!1),a=_.da(a,14,!0),a=_.da(a,15,!0),a=_.da(a,20,!1),A=_.B6(x,1,a)}n(A)},"GET","",{},2E3,!0)}))})};
Lep=function(W){return GcJ(W)?W:"https://www.google.com/tools/feedback"};
Wfm=function(W){W=W.match(new RegExp(Pc3,"gi"))||[];W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;a:{var C=_.b(KeJ);for(var n=C.next();!n.done;n=C.next())if(n.value.test(k)){C=!1;break a}C=!0}if(!C)a:{C=_.b(heJ);for(n=C.next();!n.done;n=C.next())if(n.value.test(k)){C=!0;break a}C=!1}if(C)return!0}return!1};
k$4=function(W){switch(W){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"}};
nvz=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var k=Array(W),C=new Uint8Array(W);window.crypto.getRandomValues(C);for(var n=0;n<k.length;n++)k[n]=C[n];return k}catch(B){}k=Array(W);for(C=0;C<W;C++){n=Date.now();for(var N=0;N<n%23;N++)k[C]=Math.random();k[C]=Math.floor(Math.random()*256)}if(CfX)for(C=1,n=0;n<CfX.length;n++)k[C%W]^=k[(C-1)%W]/4^CfX.charCodeAt(n),C++;return k};
mQ=function(W){W=nvz(W);for(var k=[],C=0;C<W.length;C++)k.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[C]&63));return k.join("")};
YOw=function(W){W&&_.a9("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:NDm,clientScreenNonce:W})};
BDP=function(W){return _.DE("client-screen-nonce-store",{})[W===void 0?0:W]};
b_J=function(W,k){k=k===void 0?0:k;var C=_.DE("client-screen-nonce-store");C||(C={},_.z3("client-screen-nonce-store",C));C[k]=W};
Akc=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
FfJ=function(W){return _.DE(Akc(W===void 0?0:W))};
_.DH=function(W){return(W=FfJ(W===void 0?0:W))?new _.z7({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
w04=function(){var W=_.DE("csn-to-ctt-auth-info");W||(W={},_.z3("csn-to-ctt-auth-info",W));return W};
xFw=function(){return Object.values(_.DE("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.VM=function(W){W=BDP(W===void 0?0:W);if(!W&&!_.cv("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
tFw=function(W){for(var k=_.b(Object.values(lmp)),C=k.next();!C.done;C=k.next())if(_.VM(C.value)===W)return!0;return!1};
EvJ=function(W,k,C){var n=w04();(C=_.VM(C))&&delete n[C];k&&(n[W]=k)};
JA=function(W){return w04()[W]};
_.am3=function(W,k,C,n){C=C===void 0?0:C;if(W!==BDP(C)||k!==_.DE(Akc(C)))if(EvJ(W,n,C),b_J(W,C),_.z3(Akc(C),k),k=function(){setTimeout(function(){YOw(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(k)}catch(N){k()}else k()};
X0I=function(W,k){k=k===void 0?"":k;var C=[],n;for(n in W)if(W.hasOwnProperty(n)){var N=k!==""?k+"."+n:n;typeof W[n]==="object"?C.push.apply(C,_.J8(X0I(W[n],N))):C.push([N,W[n]])}C.sort();return C};
_.dFP=function(W){var k=_.v6.apply(1,arguments);if(!ce(W)||k.some(function(n){return!ce(n)}))throw Error("hf");
k=_.b(k);for(var C=k.next();!C.done;C=k.next())fmw(W,C.value)};
fmw=function(W,k){for(var C in k)if(ce(k[C])){if(C in W&&!ce(W[C]))throw Error("jf");C in W||(W[C]={});fmw(W[C],k[C])}else if(mF3(k[C])){if(C in W&&!mF3(W[C]))throw Error("kf");C in W||(W[C]=[]);zXm(W[C],k[C])}else W[C]=k[C];return W};
zXm=function(W,k){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,ce(C)?W.push(fmw({},C)):mF3(C)?W.push(zXm([],C)):W.push(C);return W};
ce=function(W){return typeof W==="object"&&!Array.isArray(W)};
mF3=function(W){return typeof W==="object"&&Array.isArray(W)};
VFm=function(W){for(var k=_.b(Object.entries(DFw)),C=k.next();!C.done;C=k.next())if(C=_.b(C.value),C.next(),C=C.next().value,C==="SLI_STATUS_"+W)return C;return"SLI_STATUS_UNKNOWN"};
_.IA=function(W,k,C,n){return JkJ(W,k,function(){return new _.ckP(W,k,C,n)})};
_.ImX=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
SOz=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Sh=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
MFw=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
QVm=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
p04=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
sVw=function(W){W&&(W.dataset?W.dataset[vvK()]="true":_.H6([_.h8(eXw)],W,"data-loaded","true".toString()))};
G$P=function(W){return W?W.dataset?W.dataset[vvK()]:W.getAttribute("data-loaded"):null};
vvK=function(){return yk3.loaded||(yk3.loaded="loaded".replace(/\-([a-z])/g,function(W,k){return k.toUpperCase()}))};
_.ML=function(W,k,C){$Fz(W,k,C===void 0?null:C)};
_.RX3=function(W,k){W&&k&&(W=""+_.Hw(k),(W=Z_J[W])&&_.uZ4(W))};
$Fz=function(W,k,C){C=C===void 0?null:C;var n=_.ovI(W),N=document.getElementById(n),B=N&&G$P(N),A=N&&!B;B?k&&k():(k&&(B=_.jk(n,k),k=""+_.Hw(k),Z_J[k]=B),A||(N=i_4(W,n,function(){G$P(N)||(sVw(N),_.UNm(n),_.rA(function(){_.L8z(n)},0))},C)))};
i_4=function(W,k,C,n){n=n===void 0?null:n;var N=_.wu("SCRIPT");N.id=k;N.onload=function(){C&&setTimeout(C,0)};
N.onreadystatechange=function(){switch(N.readyState){case "loaded":case "complete":N.onload()}};
n&&N.setAttribute("nonce",n);_.LL(N,_.mJ(W));W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(N,W.firstChild);return N};
_.ovI=function(W){var k=document.createElement("a");Gi(k,W);return"js-"+QM(k.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.uzw=function(){var W=_.JU.clone(TDX),k;return(new _.Wx(function(C,n){W.onSuccess=function(N){QzX(N)?C(new qOX(N)):n(new _.pY("Request failed, status="+Hv(N),"net.badstatus",N))};
W.onError=function(N){n(new _.pY("Unknown request error","net.unknown",N))};
W.onTimeout=function(N){n(new _.pY("Request timed out","net.timeout",N))};
k=_.hj("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(C){if(C instanceof _.ve){var n;
(n=k)==null||n.abort()}return _.eh(C)})};
UFm=function(W){var k=_.DE("INNERTUBE_HOST_OVERRIDE");k&&(W=String(k)+String(_.sk(W)));return W};
O_3=function(W){var k={};_.m("json_condensed_response")&&(k.prettyPrint="false");return W=EQc(W,k)};
_.G7=function(W){return iI(W)?"same-origin":"include"};
_.yM=function(W){return iI(W)?"same-origin":"cors"};
$e=function(W,k,C){C=C===void 0?{}:C;W={method:k===void 0?"POST":k,mode:_.yM(W),credentials:_.G7(W)};k={};for(var n=_.b(Object.keys(C)),N=n.next();!N.done;N=n.next())N=N.value,C[N]&&(k[N]=C[N]);Object.keys(k).length>0&&(W.headers=k);return W};
_.ZH=function(W,k){k=k===void 0?{}:k;return"service:"+W+"/"+Object.keys(k).sort().map(function(C){return C+":"+k[C]}).join("/")};
Lfw=function(W){var k,C,n,N;W=(k=_.z(W,_.RA))==null?void 0:(C=k.watchEndpointSupportedOnesieConfig)==null?void 0:(n=C.html5PlaybackOnesieConfig)==null?void 0:(N=n.commonConfig)==null?void 0:N.url;if(!W)return[];k=new _.oA(W);return k.JSC$7905_domain_?["https://"+k.JSC$7905_domain_+"/generate_204"]:[]};
_.rkP=function(){return jVX()||fFX()||H_p&&mK("version/")?!0:_.DE("EOM_VISITOR_DATA")?!1:!0};
gv2=function(W){var k=W.docid||W.video_id||W.videoId||W.id;if(k)return k;k=W.raw_player_response;k||(W=W.player_response)&&(k=JSON.parse(W));return k&&k.videoDetails&&k.videoDetails.videoId||null};
_.Kfc=function(W){a:{var k="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(k="EMBEDDED_PLAYER_MODE_PFL");var C=W.raw_embedded_player_response;if(!C&&(W=W.embedded_player_response))try{C=JSON.parse(W)}catch(N){break a}if(C)b:for(var n in Pfz)if(Pfz[n]==C.embeddedPlayerMode){k=Pfz[n];break b}}return k==="EMBEDDED_PLAYER_MODE_PFL"};
_.hX2=function(){if(_.m("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.rkP())return Error("pf");var W=_.DE("PLAYER_VARS",{});if(_.JU.get(W,"privembed",!1)=="1")return Error("qf");if(_.Kfc(W))return Error("rf")};
WFm=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
id=function(W){return!isNaN(Number(W))&&!_.tK(W)};
_.qL=function(W,k,C,n){n=n===void 0?!0:n;var N=_.DE("VALID_SESSION_TEMPDATA_DOMAINS",[]),B=_.R4(window.location.href);B&&N.push(B);B=_.R4(W);if(_.ZX(N,B)||!B&&_.AK(W,"/"))if(N=document.createElement("a"),Gi(N,W),W=N.href)if(W=_.sk(W),W=_.T7(W))n&&!k.csn&&(k.itct||k.ved)&&(k=Object.assign({csn:_.VM()},k)),C?(C=parseInt(C,10),isFinite(C)&&C>0&&k0P(W,k,C)):k0P(W,k)};
nM2=function(W){var k=_.DE("VALID_SESSION_TEMPDATA_DOMAINS",[]),C=_.R4(window.location.href);C&&k.push(C);C=_.R4(W);if(!(_.ZX(k,C)||!C&&_.AK(W,"/")))return null;W=_.sk(W);(W=_.T7(W))?(W=CP2(W),W=(W=_.nH.get(W,void 0)||null)?_.se(W):{}):W=null;return W};
k0P=function(W,k,C){W=CP2(W);k=k?_.W4(k):"";C=C||5;_.rkP()&&_.N7(W,k,C)};
CP2=function(W){for(var k=_.b(N4m),C=k.next();!C.done;C=k.next())W=_.ud(W,C.value);return"ST-"+QM(W).toString(36)};
Ync=function(W,k){W.commandMetadata&&_.z(W.commandMetadata,_.Ok)&&_.z(W.commandMetadata,_.Ok).url&&(W=_.G3(_.z(W.commandMetadata,_.Ok).url).adurl)&&_.XNK(W)&&_.qL(_.sk(W),{encoded_ad_playback_context:k})};
_.B4p=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return W instanceof Promise?W:Promise.resolve()};
_.jh=function(W){var k;_.vfI(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.LY()==W&&(k=document):k=W;if(k&&(W=_.vfI(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],k))){W.call(k)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.LY=function(){var W=W===void 0?!1:W;var k=_.vfI(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;k&&k.shadowRoot;)k=k.shadowRoot.fullscreenElement;return k?k:null};
_.He=function(W,k){k=k===void 0?!0:k;W.addEventListener("wheel",b3c);W.overscrollConfig={cooldown:k}};
_.ra=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",b3c)};
b3c=function(W){var k=W.deltaY,C=W.target,n=null;if(window.Polymer&&window.Polymer.Element){if(C=W.path||W.composedPath&&W.composedPath()){C=_.b(C);for(var N=C.next();!N.done&&(N=N.value,!A9m(N,k));N=C.next())if(N.overscrollConfig){n=N;break}}}else for(;C&&!A9m(C,k);){if(C.overscrollConfig){n=C;break}C=C.parentElement}n&&(k=n.overscrollConfig,k.cooldown?(n=W.deltaY,C=k.lastDeltaY||0,k.lastDeltaY=n,N=k.lastStopped||0,C&&N&&C>0==n>0?Math.abs(C)>=Math.abs(n)?(n=N+1200,C=!1):(n=N+600,C=!0):(n=Date.now()+
600,C=!0),n>Date.now()&&(W.preventDefault(),C&&(k.lastStopped=Date.now()))):W.preventDefault())};
A9m=function(W,k){return k<0&&W.scrollTop>0||k>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.Pe=function(W,k,C,n){n||(n={bubbles:!0,cancelable:!1,composed:!0});C!==null&&C!==void 0&&(n.detail=C);k=new CustomEvent(k,n);W.dispatchEvent(k);return k};
_.KY=function(W,k,C,n){k=new FFX(k,!(n===void 0||!n),C);_.Pe(W,"yt-action",k);return k.returnValue};
_.hA=function(W,k,C){return _.KY(W,k,C,!0)};
_.WN=function(W,k,C){return _.KY(W,k,C)[0]};
_.CB=function(W,k,C,n){k&&k.length&&k.forEach(function(N){var B=QSw(N);B&&(_.m("handle_service_request_actions")&&N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.sendPost?_.kQ(C?C:W,[N]):_.hA(W,B,[N,C,n]))})};
_.kQ=function(W,k){var C=[W];k&&C.push.apply(C,k);k=_.KY(W,"yt-service-request",C);return k.length>0&&(k=k[0],_.Pe(W,"yt-service-request-sent",k),k&&k.ajaxPromise)?(k.ajaxPromise.then(function(n){_.Pe(W,"yt-service-request-completed",n)},function(n){_.Pe(W,"yt-service-request-error",{error:n,
params:C})},W),k.ajaxPromise):_.nB()};
_.bW=function(W,k){if(_.m("handle_service_request_actions"))_.CB(k,W,k);else{W=_.b(W);for(var C=W.next();!C.done;C=W.next()){C=C.value;var n=void 0;((n=_.z(C,_.Nl))==null?0:n.commands)?_.bW(_.z(C,_.Nl).commands,k):(n=void 0,((n=_.z(C,_.AQ))==null?0:n.actions)?_.bW(_.z(C,_.AQ).actions,k):(n=void 0,((n=_.z(C.commandMetadata,_.Ok))==null?0:n.sendPost)?_.kQ(k,[C]):_.CB(k,[C],k)))}}};
_.xVK=function(W,k,C){k=k===void 0?{}:k;typeof k==="function"&&(k={callback:k});C||k._c&&k._c.jsl&&k._c.jsl.h||_.JU.extend(k,{_c:{jsl:{h:_.DE("GAPI_HINT_PARAMS")}}});(k.gapiHintOverride||_.DE("GAPI_HINT_OVERRIDE"))&&(C=_.G3(document.location.href).gapi_jsh)&&_.JU.extend(k,{_c:{jsl:{h:C}}});wFw(W,k)};
_.w8=function(W,k,C){k=k===void 0?{}:k;W=(W=W in Fl?Fl[W]:C)||"";C={};for(var n in k){C={key$jscomp$782:C.key$jscomp$782};C.key$jscomp$782=n;var N=function(B){return function(){return String(k[B.key$jscomp$782])}}(C);
W=W.replace(new RegExp("\\$\\{"+C.key$jscomp$782+"\\}","gi"),N);W=W.replace(new RegExp("\\$"+C.key$jscomp$782,"gi"),N)}return W};
_.xQ=function(W,k){return l2P(W in Fl?Fl[W]:{},k)};
l2P=function(W,k){var C=_.DE("I18N_PLURAL_RULES");C||(C=function(n){return n==1?"one":"other"});
return(W=W["case"+k]||W[C(k)])?W.replace("#",k.toString()):k+""};
a2z=function(W){var k=tzI(W),C=document.getElementById(k),n=C&&G$P(C);n||C&&!n||(C=EMc(W,k,function(){if(!G$P(C)){sVw(C);_.UNm(k);var N=_.lW(_.L8z,k);_.rA(N,0)}}))};
EMc=function(W,k,C){var n=document.createElement("link");n.id=k;n.onload=function(){C&&setTimeout(C,0)};
W=_.mJ(W);_.rj(n,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(n);return n};
tzI=function(W){var k=_.wu("A");Gi(k,fL(W));return"css-"+QM(k.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.f2P=function(W){var k=XFI();W!==k&&(k=_.tQ(),!_.m("web_autonav_allow_off_by_default")&&W||_.Er(0,141,!0),_.Er(0,140,!W),k.save())};
XFI=function(){var W=_.tQ();return _.m("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.DE("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
dVm=function(W,k){var C,n;W=((C=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(n=C.videoAuthorizationToken)==null?void 0:n.credentialTransferTokens)||[];for(C=0;C<W.length;++C)if(W[C].scope===k)return W[C].token||void 0};
mVm=function(W){for(var k=0,C=0;C<W.length;C++)k=k*31+W.charCodeAt(C),C<W.length-1&&(k%=0x800000000000);return k%1E5};
_.az=function(W){return _.QK("ytcsi."+(W||"")+"data_")||zMz(W)};
_.DVX=function(W){W=_.az(W);W.metadata||(W.metadata={});return W.metadata};
_.Vzm=function(W){W=_.az(W);W.tick||(W.tick={});return W.tick};
_.J94=function(W){W=_.az(W);if(W.gel){var k=W.gel;k.gelInfos||(k.gelInfos={});k.gelTicks||(k.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.c9c=function(W){W=_.J94(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
I2w=function(W){var k=_.az(W).nonce;k||(k=mQ(16),_.az(W).nonce=k);return k};
zMz=function(W){var k={tick:{},info:{}};_.$g("ytcsi."+(W||"")+"data_",k);return k};
SnP=function(){var W=_.QK("ytcsi.debug");W||(W=[],_.$g("ytcsi.debug",W),_.$g("ytcsi.reference",{}));return W};
_.Qyp=function(W){W=W||"";var k=MzK();if(k[W])return k[W];var C=SnP(),n={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};C.push(n);return k[W]=n};
pFK=function(W){W=W||"";var k=MzK();k[W]&&delete k[W];var C=SnP(),n={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};C.push(n);k[W]=n};
MzK=function(){var W=_.QK("ytcsi.reference");if(W)return W;SnP();return _.QK("ytcsi.reference")};
_.eM3=function(W){return vMm[W]||"LATENCY_ACTION_UNKNOWN"};
$Vc=function(W,k,C){C=C===void 0?{}:C;var n=!1;_.cv("ytLoggingEventsDefaultDisabled",!1)&&(n=!0);n=n?null:EK;C=C===void 0?{}:C;var N=Math.round(C.timestamp||(0,_.oX)());_.AB(k,1,N<Number.MAX_SAFE_INTEGER?N:0);N=new sy3;if(C.lact)_.AB(N,1,isFinite(C.lact)?C.lact:-1);else if(C.timestamp)_.AB(N,1,-1);else{var B=_.ie();_.AB(N,1,isFinite(B)?B:-1)}if(C.sequenceGroup&&!_.m("web_gel_sequence_info_killswitch")){B=C.sequenceGroup;var A=CXm(B),w=new G0P;w.setIndex(A);_.fU(w,1,B);_.B6(N,3,w);C.endOfSequence&&
delete y9I[C.sequenceGroup]}_.B6(k,33,N);(C.sendIsolatedPayload?AWm:F0c)(W,{endpoint:"log_event",payload:k,cttAuthInfo:C.cttAuthInfo,dangerousLogToVisitorSession:C.dangerousLogToVisitorSession},n)};
_.fB=function(){return(_.m("csi_use_time_origin")||_.m("csi_use_time_origin_tvhtml5"))&&_.Xl.timeOrigin?Math.floor(_.Xl.timeOrigin):_.Xl.timing.navigationStart};
_.Z3K=function(W,k){_.d8("_start",W,k)};
_.mI=function(W,k){if(!_.m("web_csi_action_sampling_enabled")||!_.az(k).actionDisabled){var C=_.Qyp(k||"");_.dFP(C.info,W);W.loadType&&(C=W.loadType,_.DVX(k).loadType=C);_.dFP(_.c9c(k),W);C=I2w(k);k=_.az(k).cttAuthInfo;RM4().info(W,C,k)}};
oMm=function(){var W,k,C,n;return((n=_.f().resolve(_.qI(xI))==null?void 0:(W=kn3())==null?void 0:(k=W.loggingHotConfig)==null?void 0:(C=k.csiConfig)==null?void 0:C.debugTicks)!=null?n:[]).map(function(N){return Object.values(N)[0]})};
_.d8=function(W,k,C){if(!_.m("web_csi_action_sampling_enabled")||!_.az(C).actionDisabled){var n=I2w(C),N;if(N=_.m("web_csi_debug_sample_enabled")&&n){(_.f().resolve(_.qI(xI))==null?0:kn3())&&!i3w&&(i3w=!0,_.d8("gcfl",(0,_.oX)(),C));var B,A,w;N=(_.f().resolve(_.qI(xI))==null?void 0:(B=kn3())==null?void 0:(A=B.loggingHotConfig)==null?void 0:(w=A.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(B=N!==0)b:{B=oMm();if(B.length>0)for(A=0;A<B.length;A++)if(W===B[A]){B=!0;break b}B=!1}B?(N=mVm(n)%N!==0,
_.az(C).debugTicksExcludedLogged||(B={},B.debugTicksExcluded=N,_.mI(B,C)),_.az(C).debugTicksExcludedLogged=!0):N=!1}if(!N){W[0]!=="_"&&T4z(W,C,k);N=_.Qyp(C||"");N.tick[W]=k||(0,_.oX)();if(N.callback&&N.callback[W])for(N=_.b(N.callback[W]),B=N.next();!B.done;B=N.next())B=B.value,B();N=_.J94(C);N.gelTicks&&(N.gelTicks[W]=!0);B=_.Vzm(C);N=k||(0,_.oX)();_.m("log_repeated_ytcsi_ticks")?W in B||(B[W]=N):B[W]=N;B=_.az(C).cttAuthInfo;W==="_start"?RM4().baseline(n,k,B):RM4().tick(W,n,k,B);_.qnK(C);return N}}};
T4z=function(W,k,C){if(_.Xl.mark)if(W.startsWith("mark_")||(W="mark_"+W),k&&(W+=" ("+k+")"),C===void 0||_.m("web_csi_disable_alt_time_performance_mark"))_.Xl.mark(W);else{C=_.m("csi_use_performance_navigation_timing")||_.m("csi_use_performance_navigation_timing_tvhtml5")?C-_.Xl.timeOrigin:C-(_.Xl.timeOrigin||_.Xl.timing.navigationStart);try{_.Xl.mark(W,{startTime:C})}catch(n){}}};
uhm=function(){var W,k=(W=_.Xl.getEntriesByType)==null?void 0:W.call(_.Xl,"mark");k&&k.forEach(function(C){if(C.name.startsWith("mark_")){var n;(n=_.Xl.clearMarks)==null||n.call(_.Xl,C.name)}})};
_.UVJ=function(){switch(pjw()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.O3c=function(W){var k={},C=function(B,A,w){A=A.match("_rid")?A.split("_rid")[0]:A;typeof w==="number"&&(w=JSON.stringify(w));B.requestIds?B.requestIds.push({endpoint:A,id:w}):B.requestIds=[{endpoint:A,id:w}]};
W=_.b(Object.entries(W));for(var n=W.next();!n.done;n=W.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;switch(n){case "GetBrowse_rid":C(k,n,N);break;case "GetGuide_rid":C(k,n,N);break;case "GetHome_rid":C(k,n,N);break;case "GetPlayer_rid":C(k,n,N);break;case "GetSearch_rid":C(k,n,N);break;case "GetSettings_rid":C(k,n,N);break;case "GetTrending_rid":C(k,n,N);break;case "GetWatchNext_rid":C(k,n,N);break;case "yt_red":k.isRedSubscriber=!!N;break;case "yt_ad":k.isMonetized=!!N}}return k};
_.LFX=function(W){var k=_.zD("aft",W);if(k)return k;k=_.DE((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var C=k.length,n=0;n<C;n++){var N=_.zD(k[n],W);if(N)return N}return NaN};
_.jy4=function(W,k){_.$g("ytglobal.timing"+(k||"")+"ready_",W)};
_.zD=function(W,k){if(W=_.Vzm(k)[W])return typeof W==="number"?W:W[W.length-1]};
_.qnK=function(W){var k=_.zD("_start",W),C=_.LFX(W),n=!H3J;k&&C&&n&&(nrJ(r9m,new gMw(Math.round(C-k),W)),H3J=!0)};
KF3=function(W){zMz(W);PPX();uhm();W||(_.DE("TIMING_ACTION")&&_.z3("PREVIOUS_ACTION",_.DE("TIMING_ACTION")),_.z3("TIMING_ACTION",""))};
_.hMX=function(W){W=W===void 0?{}:W;_.MI(function(){Dr();pFK();KF3();_.jy4(!1);W.cttAuthInfo&&(_.az().cttAuthInfo=W.cttAuthInfo);_.z3("TIMING_AFT_KEYS",[]);W.isHot?_.Vb({loadType:"hot"}):_.Vb({loadType:"warm"});_.z3("TIMING_ACTION","");delete _.DE("TIMING_INFO",{}).yt_lt;_.MI(_.Z3K)(W.startTime,void 0)})()};
_.JQ=function(W,k,C,n){k=k===void 0?{}:k;_.MI(function(){var N=C?C:W;WV3(N);var B=k.sampleRate;if(!_.m("web_csi_action_sampling_enabled")||B===void 0||B<=1)B=!1;else{var A=I2w(N);B=mVm(A)%B!==0}B&&(_.az(N).actionDisabled=!0);_.Qyp(N||"").info.actionType=W;k.cttAuthInfo&&(_.az(N).cttAuthInfo=k.cttAuthInfo);_.z3(N+"TIMING_ACTION",W);_.MI(_.Z3K)(k.startTime,N);B={actionType:n||_.eM3(W)};k.logPreviousAction&&(B.previousAction=_.eM3(_.DE("TIMING_ACTION")));(A=_.VM())&&A!=="UNDEFINED_CSN"&&(B.clientScreenNonce=
A);_.Vb(B,N);_.jy4(!0,N)})()};
WV3=function(W){_.MI(function(){Dr(W);pFK(W);KF3(W)})()};
kuw=function(){_.MI(function(){var W=[],k;for(k in _.QK("ytcsi.".slice(0,-1)))k.endsWith("data_")&&W.push(k.slice(0,-5));W=_.b(W);for(k=W.next();!k.done;k=W.next())WV3(k.value);Dr()})()};
_.nqc=function(W){return _.MI(function(){return _.CFw("_start",W)})()};
_.Vb=function(W,k,C){_.MI(_.mI)(W,k,C===void 0?!1:C)};
_.cN=function(W,k,C){return _.MI(_.d8)(W,k,C)};
_.CFw=function(W,k){return _.MI(function(){var C=_.Vzm(k);return W in C})()};
Y7X=function(W){if(!_.m("universal_csi_network_ticks"))return"";W=_.KS(W)||"";for(var k=Object.keys(NSc),C=0;C<k.length;C++){var n=k[C];if(W.includes(n))return n}return""};
Alw=function(W){if(!_.m("universal_csi_network_ticks"))return function(){};
var k=NSc[W];return k?(_.Iz(k),function(){var C=_.m("universal_csi_network_ticks")?(C=bT2[W])?_.Iz(C):!1:!1;return C}):function(){}};
_.Iz=function(W,k,C){return _.MI(function(){if(_.CFw(W,C))return!1;_.cN(W,k,C);return!0})()};
_.So=function(W,k,C){_.MI(function(){if(!_.nqc(C)||_.CFw(W,C))return!1;_.cN(W,k,C);return!0})()};
_.Ml=function(W){return _.MI(_.zD)(W,void 0)};
Dr=function(W){_.nqc(W)&&_.cN("aa",void 0,W)};
_.tB3=function(W,k,C,n,N,B,A,w,x){var E=FVp();w=new _.z7({veType:k,youtubeData:B,jspbYoutubeData:w});B=Qb({},E);N&&(B.cttAuthInfo=N);N={csn:E,pageVe:w.getAsJson()};_.m("expectation_logging")&&x&&x.screenCreatedLoggingExpectations&&(N.screenCreatedLoggingExpectations=x.screenCreatedLoggingExpectations);C&&C.visualElement?(N.implicitGesture={parentCsn:C.clientScreenNonce,gesturedVe:C.visualElement.getAsJson()},A&&(N.implicitGesture.gestureType=A)):C&&_.zJ(new _.AM("newScreen() parent element does not have a VE - rootVe",
k));n&&(N.cloneCsn=n);W?tB("screenCreated",N,W,B):_.a9("screenCreated",N,B);nrJ(wpX,new wOw(E));pB.clear();xnP.clear();lI4.clear();return E};
vN=function(W,k,C,n,N){_.Eqm(W,k,C,[n],N===void 0?!1:N)};
_.Eqm=function(W,k,C,n,N){N=N===void 0?!1:N;for(var B=Qb({cttAuthInfo:JA(k)||void 0},k),A=_.b(n),w=A.next();!w.done;w=A.next()){w=w.value;var x=w.getAsJson();(_.JU.isEmpty(x)||!x.trackingParams&&!x.veType)&&_.zJ(Error("uf"));if(_.m("no_client_ve_attach_unless_shown")){var E=aIw(w,k);if(x.veType&&!xnP.has(E)&&!lI4.has(E)&&!N){if(!_.m("il_attach_cache_limit")||pB.size<1E3){pB.set(E,[W,k,C,w]);return}_.m("il_attach_cache_limit")&&pB.size>1E3&&_.zJ(new _.AM("IL Attach cache exceeded limit"))}w=aIw(C,
k);pB.has(w)?XO4(C,k):lI4.set(w,!0)}}n=n.filter(function(a){a.csn!==k?(a.csn=k,a=!0):a=!1;return a});
C={csn:k,parentVe:C.getAsJson(),childVes:_.cD(n,function(a){return a.getAsJson()})};
k==="UNDEFINED_CSN"?eo("visualElementAttached",B,C):W?tB("visualElementAttached",C,W,B):_.a9("visualElementAttached",C,B)};
dnm=function(W,k,C,n,N){fII(W,k,C,N)};
fII=function(W,k,C,n){mnm(C,k);var N=Qb({cttAuthInfo:JA(k)||void 0},k);C={csn:k,ve:C.getAsJson(),eventType:1};n&&(C.clientData=n);k==="UNDEFINED_CSN"?eo("visualElementShown",N,C):W?tB("visualElementShown",C,W,N):_.a9("visualElementShown",C,N)};
zWX=function(W,k,C,n){mnm(C,k);var N=Qb({cttAuthInfo:JA(k)||void 0},k);C={csn:k,ve:C.getAsJson(),eventType:4};n&&(C.clientData=n);k==="UNDEFINED_CSN"?eo("visualElementShown",N,C):W?tB("visualElementShown",C,W,N):_.a9("visualElementShown",C,N)};
Dnc=function(W,k,C,n,N){var B=(n=n===void 0?!1:n)?16:8;n=Qb({cttAuthInfo:JA(k)||void 0,endOfSequence:n},k);C={csn:k,ve:C.getAsJson(),eventType:B};N&&(C.clientData=N);k==="UNDEFINED_CSN"?eo("visualElementHidden",n,C):W?tB("visualElementHidden",C,W,n):_.a9("visualElementHidden",C,n)};
JlJ=function(W,k,C,n,N){VBP(W,k,C,void 0,n,N)};
VBP=function(W,k,C,n,N){mnm(C,k);n=n||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var B=Qb({cttAuthInfo:JA(k)||void 0},k);C={csn:k,ve:C.getAsJson(),gestureType:n};N&&(C.clientData=N);k==="UNDEFINED_CSN"?eo("visualElementGestured",B,C):W?tB("visualElementGestured",C,W,B):_.a9("visualElementGestured",C,B)};
clP=function(W,k,C,n){var N=Qb({cttAuthInfo:JA(k)||void 0},k);C={csn:k,ve:C.getAsJson(),clientData:n};k==="UNDEFINED_CSN"?eo("visualElementStateChanged",N,C):W?tB("visualElementStateChanged",C,W,N):_.a9("visualElementStateChanged",C,N)};
II4=function(){var W=nvz(16);for(var k=[],C=0;C<W.length;C++)k.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[C]&63));return k.join("")};
eo=function(W,k,C){S7P.push({payloadName:W,payload:C,jspbPayload:void 0,options:k});MB2||(MB2=lyz())};
FWw=function(W){if(S7P){for(var k=_.b(S7P),C=k.next();!C.done;C=k.next())C=C.value,C.payload&&(C.payload.csn=W.csn,_.a9(C.payloadName,C.payload,C.options));S7P.length=0}MB2=0};
aIw=function(W,k){return""+W.getAsJson().veType+W.getAsJson().veCounter+k};
mnm=function(W,k){if(_.m("no_client_ve_attach_unless_shown")){var C=aIw(W,k);xnP.set(C,!0);XO4(W,k)}};
XO4=function(W,k){W=aIw(W,k);pB.has(W)&&(k=pB.get(W)||[],vN(k[0],k[1],k[2],k[3],!0),pB.delete(W))};
Qb=function(W,k){_.m("log_sequence_info_on_gel_web")&&(W.sequenceGroup=k);return W};
_.sr=function(W,k,C){_.MI(vN)(void 0,W,k,C)};
_.GD=function(W,k){_.MI(dnm)(void 0,W,k,void 0,void 0,void 0)};
_.yb=function(W,k,C){_.MI(function(){_.eO(k,function(n){zWX(void 0,W,n,C)})})()};
_.$Q=function(W,k,C,n){_.MI(function(){_.eO(k,function(N){Dnc(void 0,W,N,C,n)})})()};
_.Zr=function(W,k,C){_.MI(JlJ)(void 0,W,k,C,void 0)};
_.Rz=function(W,k,C,n){_.MI(VBP)(void 0,W,k,C,n,void 0)};
_.oz=function(W,k,C){_.MI(clP)(void 0,W,k,C,void 0)};
QvK=function(W,k){iW.set(W,k)};
pOX=function(W,k){var C=Object.keys(W);W=new _.AM("[Command Handler] "+k,{filteredCommandNames:C,originalCommand:W});_.dI(W)};
vqI=function(W,k){pOX(W,k+" was called but not set")};
eW2=function(W){return function(){return new W}};
TD=function(W){return function(){return _.f().resolve(W)}};
svz=function(W,k){var C=_.z(W,_.MP);if(C&&(C=k[C.signal]))return C();W=_.b(Object.keys(W));for(C=W.next();!C.done;C=W.next())if(C=C.value,k[C]&&(C=k[C]))return C()};
ql=function(W,k,C,n){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:k,rootVe:C,webPageType:n===void 0?"WEB_PAGE_TYPE_BROWSE":n}}}};
Guw=function(W,k,C){var n=k=k===void 0?0:k;C=C===void 0?0:C;var N=C-n;return _.uW(W,"PPSV",void 0,void 0,(N>600?0:N<60||C<=0||n/C>.9)?0:k)};
_.uW=function(W,k,C,n,N){var B="/watch?v="+W;W={videoId:W};k&&(W.playlistId=k,B+="&list="+k);n&&(B+="&pp="+n);N&&(W.startTimeSeconds=N,B+="&t="+N+"s");k={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:B,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};C&&(k.clickTrackingParams=C);n&&(_.z(k,_.RA).playerParams=n);return k};
ylK=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
$n4=function(W){if(W){var k;if(W){var C=(k=_.z(W.commandMetadata,_.Ok))==null?void 0:k.url;k=!(!C||C==="/service_ajax")}else k=!1;if(k)return W;var n;if(W=(n=_.z(W,_.Nl))==null?void 0:n.commands)for(n=_.b(W),W=n.next();!W.done;W=n.next())if(W=$n4(W.value))return W}};
_.Ur=function(W){return{runs:[{text:W}]}};
ZTp=function(W,k){return W&&k?{runs:[{text:W,navigationEndpoint:k}]}:void 0};
Or=function(W){return W?_.Ur(W):void 0};
_.LB=function(W){return W?{simpleText:W}:void 0};
_.jo=function(W){var k=W.type;W=W.payload;k={type:k};W!==void 0&&(k.payload=W);return k};
RW3=function(W,k,C){for(var n=Object.assign({},W),N=_.b(Object.keys(k)),B=N.next();!B.done;B=N.next()){B=B.value;var A=W[B],w=k[B];if(w===void 0)delete n[B];else if(A===void 0)n[B]=w;else if(Array.isArray(w)&&Array.isArray(A))n[B]=C?[].concat(_.J8(A),_.J8(w)):w;else if(!Array.isArray(w)&&_.O2(w)&&!Array.isArray(A)&&_.O2(A))n[B]=RW3(A,w,C);else if(typeof w===typeof A)n[B]=w;else return k=new _.AM("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:B,originalValue:A,updateValue:w}),
_.dI(k),W}return n};
TS2=function(W){if(!W.length)return"";try{if(oqX)return oqX.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(A){}for(var k=0,C=[],n=W.length;k<n;){for(var N=0;N<1024&&k<n;){var B=W[k++];if(B<128)iTw[N++]=B;else{if(B<224)B=(B&31)<<6|W[k++]&63;else if(B<240)B=(B&15)<<12|(W[k++]&63)<<6|W[k++]&63;else{if(N+1===1024){--k;break}B=(B&7)<<18|(W[k++]&63)<<12|(W[k++]&63)<<6|W[k++]&63;B-=65536;iTw[N++]=55296|B>>10;B=56320|B&1023}iTw[N++]=B}}B=String.fromCharCode.apply(String,
iTw);N<1024&&(B=B.substring(0,N));C.push(B)}return C.join("")};
uFz=function(W,k){var C;if((C=q74)==null?0:C.encodeInto)return k=q74.encodeInto(W,k),k.read<W.length?W.length*4:k.written;for(var n=C=0;n<W.length;n++){var N=W.charCodeAt(n);N<128?k[C++]=N:(N<2048?k[C++]=N>>6|192:((N&64512)===55296&&n+1<W.length&&(W.charCodeAt(n+1)&64512)===56320?(N=65536+((N&1023)<<10)+(W.charCodeAt(++n)&1023),k[C++]=N>>18|240,k[C++]=N>>12&63|128):k[C++]=N>>12|224,k[C++]=N>>6&63|128),k[C++]=N&63|128)}return C};
Unm=function(W,k){W=new Uint8Array(W);k&&W.set(k);return W};
_.r8=function(W){W=new OT4(new LVm([_.Pw(decodeURIComponent(W))]));if(jvc(W,2)){var k=HN(W);var C=W.pos;C=W.arrayView.getDataView(C===void 0?0:C,k===void 0?-1:k);C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength);W.pos+=k;k=C}else k=void 0;k=k?TS2(k):void 0;W=jvc(W,4)?HN(W):void 0;C=HTw[W];if(typeof C==="undefined")throw W=new _.AM("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.dI(W),W;return{entityTypeFieldNumber:W,entityType:C,entityId:k}};
_.KB=function(W,k,C){C=C===void 0?0:C;var n=new rlz;if(q74)W=q74.encode(W);else{var N=new Uint8Array(Math.ceil(W.length*1.2)),B=uFz(W,N);N.length<B&&(N=new Uint8Array(B),B=uFz(W,N));N.length>B&&(N=N.subarray(0,B));W=N}W!==void 0&&(g8(n,18),N=W.length,g8(n,N),PN(n,N),n.buf.set(W,n.pos),n.pos+=N);W=gqw[k];if(typeof W==="undefined")throw C=new _.AM("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:k}),_.dI(C),C;W!==void 0&&(g8(n,32),g8(n,W));g8(n,40);g8(n,1);k=new Uint8Array(n.buf.buffer,
n.buf.byteOffset,n.pos);return encodeURIComponent(_.zC(k,C))};
PFm=function(W){W=W.key||W.id;if(!W)throw Error("xf");return W};
hW4=function(W,k){W=W===void 0?{}:W;return KVP(W,k)};
WBP=function(W,k,C,n){if(n===void 0)return n=Object.assign({},W[k]||{}),C=(delete n[C],n),n={},Object.assign({},W,(n[k]=C,n));var N={},B={};return Object.assign({},W,(B[k]=Object.assign({},W[k],(N[C]=n,N)),B))};
kQ2=function(W,k,C,n,N){var B=W[k];if(B==null||!B[C])return W;n=RW3(B[C],n,N==="REPEATED_FIELDS_MERGE_OPTION_APPEND");N={};B={};return Object.assign({},W,(B[k]=Object.assign({},W[k],(N[C]=n,N)),B))};
_.hQ=function(W,k,C){return W[k]?W[k][C]||null:null};
nk3=function(){if(Cu2)return Cu2();var W={};Cu2=RX("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(k,C){C(1)&&c$(JE(k,"EntityStore",{keyPath:"key"}),"entityType","entityType");C(2)&&(k=JE(k,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),c$(k,"byParentEntityKey","parentEntityKey"),c$(k,"byChildEntityKey","childEntityKey"))},
version:3});return Cu2()};
Ncc=function(W){return _.pH(nk3(),W)};
W3=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
BcX=function(W){return _.pH(YqP(),W)};
b84=function(W){return new kS("WRONG_DATA_TYPE",{encoderVersion:W})};
ATw=function(W){return W instanceof Error?new kS("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new kS("UNKNOWN_ENCODE_ERROR")};
FBp=function(W){return W instanceof Error?new kS("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new kS("UNKNOWN_DECODE_ERROR")};
wnz=function(W,k){W=W instanceof kS?W:k(W);_.dI(W);throw W;};
xtc=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var k=new Uint8Array(16);k.set(W);return k};
tCm=function(W){var k=lnI[W];if(k)return k;_.zJ(new _.AM("Entity model not found.",{entityType:W}))};
_.C5=function(){EkI||(EkI=anX());return EkI};
anX=function(){var W,k,C;return _.F(function(n){if(n.nextAddress==1)return _.F0(n,2),_.l(n,_.Z5(),4);if(n.nextAddress!=2){W=n.yieldResult;if(!W||!_.bp()||typeof _.NX.BroadcastChannel==="undefined")return n.return();k=new XnJ;return n.return(new n5(W,k))}C=_.EF(n);C instanceof Error&&_.dI(C);return n.return()})};
_.Ny=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1){C=W.mutations;if(!C||C.length<=0)return n.return();k&&k.dispatch(_.jo({type:"ENTITY_LOADED",payload:C}));return _.l(n,fnP(C),2)}C.length=0;_.ab(n)})};
fnP=function(W){var k;return _.F(function(C){return C.nextAddress==1?_.l(C,_.C5(),2):(k=C.yieldResult)?_.l(C,_.YS(k,"readwrite",function(n){for(var N={},B=_.b(W),A=B.next(),w={};!A.done;w={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},A=B.next())w.mutation$jscomp$4=A.value,w.mutation$jscomp$4.entityKey&&dtX(w.mutation$jscomp$4)&&(w.mutationEntityType$jscomp$3=(0,_.JU.getAnyKey)(w.mutation$jscomp$4.payload),A=void 0,w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(A=function(x){return function(){return _.mtw(n,
x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(A=function(x){return function(){return zyX(n,x.mutation$jscomp$4.entityKey)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(A=function(x){return function(){return DtJ(n,x.mutation$jscomp$4.entityKey,x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(w)),A&&(N[w.mutation$jscomp$4.entityKey]=
N[w.mutation$jscomp$4.entityKey]?N[w.mutation$jscomp$4.entityKey].then(A):A()));
return JM.all(Object.values(N))}),0):C.return()})};
dtX=function(W){var k;W=(k=W.options)==null?void 0:k.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
cTz=function(W,k){var C,n;_.F(function(N){if(N.nextAddress==1)return _.l(N,_.C5(),2);if(N.nextAddress!=3)return(C=N.yieldResult)?_.l(N,_.YS(C,"readonly",function(B){var A={},w=Object.keys(k).map(function(x){var E=k[x]?[].concat(_.J8(k[x])):[];return VCz(B,x,E,A)});
return JM.all(w).then(function(){return A})}),3):N.return();
n=N.yieldResult;Object.keys(n).length>0&&W.dispatch(JTw(n));_.ab(N)})};
VCz=function(W,k,C,n){return B3(W,k,C).then(function(N){n[k]=InJ(C,N)})};
InJ=function(W,k){if(k.length!==W.length)throw Error("Af");return k.reduce(function(C,n,N){C[W[N]]=n;return C},{})};
QuP=function(W){var k=W.filter(function(N){var B;return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_COMPLETE"}).length,C=W.filter(function(N){var B;
return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_FAILED"}).length,n=W.filter(function(N){var B;
return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)&&Sqc.includes(N.transferEntity.transferState)});
if(!(k||n!=null&&n.length))return 0;k=_.MC4(n)+k;W=W.length-C;return W===0?0:Math.round(k*100/W)/100};
_.MC4=function(W){var k=[];k=k.concat.apply(k,_.J8(W.filter(function(B){return B.streamEntity}).map(function(B){var A=Object.assign({},B.streamEntity),w,x=(w=B.transferEntity)==null?void 0:w.transferState;
A.streamsProgress=A.streamsProgress||[];A.streamsProgress=A.streamsProgress.map(function(E){var a=Object.assign({},E);a.numBytesDownloaded=x==="TRANSFER_STATE_COMPLETE"?E.numTotalBytes:E.numBytesDownloaded;return a});
return A}).map(function(B){return B.streamsProgress})));
var C=W=0;k=_.b(k);for(var n=k.next();!n.done;n=k.next()){var N=n.value;n=Number(N.numBytesDownloaded);N=Number(N.numTotalBytes);C+=isNaN(n)?0:n;W+=isNaN(N)?0:N}return W===0?0:Math.round(C*100/W)/100};
pnw=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var k=(0,_.oX)()/1E3;return Number(W.expirationTimestamp)>=k};
Ae=function(W){return W&&W.expirationTimestamp&&W.action?pnw(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.FD=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
vk2=function(W){var k=new rlz;if(W!==void 0){var C=Math.ceil(Math.log2(W.length*4+2)/7);C=C===void 0?2:C;g8(k,10);k.submessagePosStack.push(k.pos);k.submessagePosStack.push(C);k.pos+=C;PN(k,W.length*1.2);C=uFz(W,k.buf.subarray(k.pos));k.pos+C>k.buf.length&&(PN(k,C),C=uFz(W,k.buf.subarray(k.pos)));k.pos+=C;W=k.submessagePosStack.pop();C=k.submessagePosStack.pop();for(var n=k.pos-C-W;W--;){var N=W?128:0;k.view.setUint8(C++,n&127|N);n>>=7}}k=new Uint8Array(k.buf.buffer,k.buf.byteOffset,k.pos);return(new TextDecoder("utf-8")).decode(k)};
_.wn=function(W){var k=0;W=_.b(W);for(var C=W.next(),n={};!C.done;n={transferState$jscomp$3:void 0},C=W.next()){var N=C.value,B=void 0;C=(B=N.streamEntity)!=null?B:{};B=void 0;n.transferState$jscomp$3=(B=N.transferEntity)==null?void 0:B.transferState;B=N=void 0;((N=C)==null?0:(B=N.streamsProgress)==null?0:B.length)&&C.streamsProgress.forEach(function(A){return function(w){w=Number(A.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?w.numTotalBytes:w.numBytesDownloaded);isFinite(w)&&(k+=w)}}(n))}return k};
eyP=function(W){return W.some(function(k){var C;if(!(k==null?0:(C=k.transferEntity)==null?0:C.transferState)){var n;return!(k==null?0:(n=k.policyEntity)==null?0:n.action)||k.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Sqc.includes(k.transferEntity.transferState)})};
suJ=function(W,k){if(!k)return!1;if(_.m("of_pb_en_po_ks"))return!0;var C;W=(C=_.hQ(W,"offlineVideoPolicy",_.KB(k,"offlineVideoPolicy")))!=null?C:void 0;return!!W&&Ae(W)};
_.yTz=function(W){var k=["TRANSFER_STATE_COMPLETE"];k=k===void 0?GQ4:k;return W.filter(function(C){var n,N;return k.includes((N=(n=C.transferEntity)==null?void 0:n.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN")})};
$tc=function(W,k){if(k){var C,n=(C=_.hQ(W,"playbackData",_.KB(k,"playbackData")))!=null?C:null,N;C=(N=_.hQ(W,"transfer",_.KB(k,"transfer")))!=null?N:null;var B;N=(B=_.hQ(W,"offlineVideoStreams",_.KB(k,"offlineVideoStreams")))!=null?B:null;var A;W=(A=_.hQ(W,"offlineVideoPolicy",_.KB(k,"offlineVideoPolicy")))!=null?A:null;if(n||C||N||W)return{playbackDataEntity:n,transferEntity:C,streamEntity:N,policyEntity:W}}};
_.xS=function(W){var k=W.playbackData;if(!k)return[];var C=[];k=_.b(Object.keys(k));for(var n=k.next();!n.done;n=k.next()){var N=n.value;if(!Z8X(W,_.r8(N).entityId)&&(n=$tc(W,_.r8(N).entityId))){var B=void 0,A=void 0;N=(A=Number((B=_.hQ(W,"playbackData",N))==null?void 0:B.streamDownloadTimestampSeconds))!=null?A:(0,_.oX)();C.push({entity:n,streamDownloadTimestamp:N})}}return C.sort(function(w,x){var E=w.streamDownloadTimestamp,a=x.streamDownloadTimestamp;return a===E?w.entity.streamEntity&&!x.entity.streamEntity?
1:-1:a-E}).map(function(w){return w.entity})};
RyK=function(W){return _.yTz(_.xS(W))};
_.okz=function(W){return _.xS(W).filter(function(k){var C;if(((C=k.policyEntity)==null?0:C.action)&&k.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var n;if((n=k.transferEntity)==null?0:n.transferState){var N;return Sqc.includes((N=k.transferEntity)==null?void 0:N.transferState)}return!0})};
Z8X=function(W,k){var C;return((C=_.hQ(W,"downloadStatusEntity",_.KB(k,"downloadStatusEntity")))==null?void 0:C.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
i8p=function(W){var k;if(W==null?0:(k=W.playbackDataEntity)==null?0:k.key)return _.r8(W.playbackDataEntity.key).entityId;var C;if(W==null?0:(C=W.transferEntity)==null?0:C.key)return _.r8(W.transferEntity.key).entityId;var n;if(W==null?0:(n=W.streamEntity)==null?0:n.key)return _.r8(W.streamEntity.key).entityId;var N;if(W==null?0:(N=W.policyEntity)==null?0:N.key)return _.r8(W.policyEntity.key).entityId};
qqw=function(W){var k=new Set,C;W=(C=W.mainDownloadsListEntity)==null?void 0:C[TcK];var n;if(!(W==null?0:(n=W.downloads)==null?0:n.length))return k;var N;W==null||(N=W.downloads)==null||N.forEach(function(B){(B==null?0:B.videoItem)&&k.add(B.videoItem)});
return k};
lO=function(W,k){if(k){var C=_.hQ(W,"mainVideoEntity",_.KB(k,"mainVideoEntity")),n=_.hQ(W,"downloadStatusEntity",_.KB(k,"downloadStatusEntity")),N=_.hQ(W,"ytMainChannelEntity",_.KB(k,"ytMainChannelEntity")),B={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=$tc(W,k);n=(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.m("woffle_render_failed_download_state_ks")&&(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&n&&(W=B);if(W&&C&&
N)return Object.assign({},{videoEntity:C,channelEntity:N},W)}};
Utc=function(W,k){return u5I(W,k)==="TRANSFER_STATE_COMPLETE"&&suJ(W,k)};
O8c=function(W,k){if(!k)return!1;var C;W=(C=_.hQ(W,"playbackData",_.KB(k,"playbackData")))!=null?C:void 0;return!!W&&!!W.playerResponseJson};
u5I=function(W,k){if(!k)return"TRANSFER_STATE_UNKNOWN";var C=_.hQ(W,"transfer",_.KB(k,"transfer"));if(C){var n;return(n=C.transferState)!=null?n:"TRANSFER_STATE_UNKNOWN"}C=_.hQ(W,"offlineOrchestrationActionWrapperEntity",_.KB(k,"offlineOrchestrationActionWrapperEntity"));W=_.hQ(W,"mainVideoEntity",_.KB(k,"mainVideoEntity"));return C||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
LBp=function(W,k){if(!k)return"TRANSFER_STATE_UNKNOWN";if(W=_.hQ(W,"transfer",_.KB(k,"transfer"))){var C;return(C=W.transferState)!=null?C:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
jum=function(W,k){return k&&(W=_.hQ(W,"videoPlaybackPositionEntity",_.KB(k,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
rTP=function(W,k){return H83(W).some(function(C){var n;return(C==null?void 0:(n=C.mainPlaylistEntity)==null?void 0:n.playlistId)===k})};
PuJ=function(W,k,C){var n=gkc(W,k);if(!n.length)return[];k=[];n=_.b(n);for(var N=n.next();!N.done;N=n.next()){N=N.value;var B=lO(W,N);C&&u5I(W,N)!=="TRANSFER_STATE_COMPLETE"||B&&k.push(B)}return k};
gkc=function(W,k){if(!k)return[];var C=_.KB(k,"mainPlaylistEntity"),n;k=(n=W.mainPlaylistEntity)==null?void 0:n[C];n=[];if(k==null||!k.videos)return n;k=_.b(k.videos);for(C=k.next();!C.done;C=k.next()){C=C.value;var N=void 0,B=void 0,A=void 0,w=(N=W)==null?void 0:(B=N.mainPlaylistVideoEntity)==null?void 0:(A=B[C])==null?void 0:A.video;w&&(C=_.r8(w).entityId)&&n.push(C)}return n};
KBc=function(W,k){if(k){var C=_.hQ(W,"mainPlaylistEntity",_.KB(k,"mainPlaylistEntity")),n=_.hQ(W,"mainPlaylistDownloadStateEntity",_.KB(k,"mainPlaylistDownloadStateEntity"));W=_.hQ(W,"ytMainChannelEntity",_.KB(k,"ytMainChannelEntity"));if(n&&C)return Object.assign({},{mainPlaylistEntity:C,mainPlaylistDownloadStateEntity:n},!!W&&{channelEntity:W})}};
H83=function(W){return hyK(W).sort(function(k,C){return C.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return k.downloadedPlaylistEntities})};
hyK=function(W){var k=W.mainPlaylistDownloadStateEntity,C=[];if(!k)return C;for(var n=_.b(Object.keys(k)),N=n.next();!N.done;N=n.next()){var B=N.value;N=KBc(W,_.r8(B).entityId);var A=void 0;B=Number((A=k[B])==null?void 0:A.addedTimestampMillis);A=isNaN(B)?(0,_.oX)():B;N!==void 0&&C.push({downloadedPlaylistEntities:N,addedTimestampMillis:A})}return C};
WSJ=function(W){var k,C=(k=W.mainPlaylistVideoEntity)!=null?k:{};return new Set(H83(W).reduce(function(n,N){n=n===void 0?[]:n;var B,A;N==null||(B=N.mainPlaylistEntity)==null||(A=B.videos)==null||A.forEach(function(w){var x;(w=(x=C[w])==null?void 0:x.video)&&n.push(w)});
return n},[]))};
kRm=function(W){return"downloadedMusicPlaylistEntities"in W};
C84=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
n7m=function(W){return"videoEntity"in W&&"channelEntity"in W};
NFp=function(W){var k=W.musicPlaylistDownloadMetadataEntity,C=[];if(!k)return C;for(var n=_.b(Object.keys(k)),N=n.next();!N.done;N=n.next()){N=N.value;a:{var B=W,A=_.r8(N).entityId;if(A){var w=_.hQ(B,"musicPlaylist",_.KB(A,"musicPlaylist"));B=_.hQ(B,"musicPlaylistDownloadMetadataEntity",_.KB(A,"musicPlaylistDownloadMetadataEntity"));if(w&&B){w={musicPlaylistEntity:w,musicPlaylistDownloadStateEntity:B};break a}}w=void 0}B=void 0;N=Number((B=k[N])==null?void 0:B.addedTimestampMillis);N=isNaN(N)?(0,_.oX)():
N;w!==void 0&&C.push({downloadedMusicPlaylistEntities:w,addedTimestampMillis:N})}return C};
YVm=function(W){var k=new Set;W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,"musicPlaylistEntity"in C&&"musicPlaylistDownloadStateEntity"in C){C=_.b(C.musicPlaylistEntity.tracks);for(var n=C.next();!n.done;n=C.next())k.add(n.value)}return k};
BFI=function(W,k){if(k){var C=_.hQ(W,"musicTrack",_.KB(k,"musicTrack")),n=_.hQ(W,"musicArtist",_.KB(k,"musicArtist"))||{};if((W=$tc(W,k))&&C&&n)return Object.assign({},{musicTrackEntity:C,musicArtistEntity:n},W)}};
bEX=function(W){var k=W.musicTrackDownloadMetadataEntity,C=[];if(!k)return[];k=_.b(Object.keys(k));for(var n=k.next();!n.done;n=k.next()){var N=n.value;n=BFI(W,_.r8(N).entityId);var B=void 0;N=Number((B=_.hQ(W,"musicTrackDownloadMetadataEntity",N))==null?void 0:B.addedTimestampMillis);B=isNaN(N)?(0,_.oX)():N;n!==void 0&&C.push({downloadedMusicEntities:n,addedTimestampMillis:B})}return C};
wKP=function(W,k){if(!k)return[];if(Object.values(A4w).includes(k))return FSz(W,k);k=_.KB(k,"musicPlaylist");var C;W=(C=W.musicPlaylist)==null?void 0:C[k];C=[];if(W==null||!W.tracks)return C;W=_.b(W.tracks);for(k=W.next();!k.done;k=W.next())(k=_.r8(k.value).entityId)&&C.push(k);return C};
FSz=function(W,k){var C=new Set,n=NFp(W).map(function(B){return B.downloadedMusicPlaylistEntities});
n=YVm(n);n=_.b(n);for(var N=n.next();!N.done;N=n.next())(N=_.r8(N.value).entityId)&&C.add(N);return x$w(W).downloadedMusicEntities.filter(function(B){var A;if((A=B.musicTrackEntity)!=null&&A.videoId){B=B.musicTrackEntity;if(A=k==="PPOM"?!0:!C.has(B.videoId))b:switch(B=B.musicVideoType,k){case "PPSE":A=B==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:A=B!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}B=A}else B=!1;return B}).map(function(B){var A;
return(A=B.musicTrackEntity)==null?void 0:A.videoId})};
x$w=function(W){var k=bEX(W).sort(function(C,n){return n.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return"downloadedMusicEntities"in C?C.downloadedMusicEntities:kRm(C)?C.downloadedMusicPlaylistEntities:{}});
W=NFp(W).sort(function(C,n){return n.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return"downloadedMusicEntities"in C?C.downloadedMusicEntities:kRm(C)?C.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:k,downloadedMusicPlaylistEntities:W}};
tDc=function(W,k){k=_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?wKP(W,k):gkc(W,k);if(!k.length)return"TRANSFER_STATE_UNKNOWN";k=k.map(function(C){return LBp(W,C)});
return lYm(k)};
lYm=function(W){var k=new Set(W);if(k.has("TRANSFER_STATE_FAILED")&&k.size===1)return"TRANSFER_STATE_FAILED";k.delete("TRANSFER_STATE_FAILED");if(k.has("TRANSFER_STATE_UNKNOWN")&&k.size===1)return"TRANSFER_STATE_PRE_TRANSFER";k.delete("TRANSFER_STATE_UNKNOWN");if(k.has("TRANSFER_STATE_PRE_TRANSFER")&&k.size===1||k.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=k.has("TRANSFER_STATE_TRANSFERRING");k=k.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||k?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
te=function(W){var k=W.mainVideoDownloadStateEntity,C=[];if(!k)return[];k=_.b(Object.keys(k));for(var n=k.next();!n.done;n=k.next()){var N=n.value;if(!Z8X(W,_.r8(N).entityId)){n=lO(W,_.r8(N).entityId);var B=void 0,A=void 0;N=(A=Number((B=_.hQ(W,"mainVideoDownloadStateEntity",N))==null?void 0:B.addedTimestampMillis))!=null?A:(0,_.oX)();n!==void 0&&C.push({downloadedVideoEntities:n,addedTimestampMillis:N})}}return C};
E7J=function(W){return te(W).sort(function(k,C){return C.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return k.downloadedVideoEntities})};
_.XKz=function(W){var k=WSJ(W),C=_.Eb(W),n=qqw(W),N=te(W).filter(function(A){var w,x;if((A==null?void 0:(w=A.downloadedVideoEntities)==null?void 0:(x=w.transferEntity)==null?void 0:x.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var E,a;A=A==null?void 0:(E=A.downloadedVideoEntities)==null?void 0:(a=E.videoEntity)==null?void 0:a.key;return _.m("kevlar_use_library_entity")?A&&(n.has(A)||C[A]):A&&!k.has(A)}),B=hyK(W).filter(function(A){return tDc(W,A.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.J8(N),_.J8(B)).sort(function(A,w){return w.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return aYw(A)})};
fYm=function(W,k){if(k&&suJ(W,k)){var C,n,N=(n=(C=_.hQ(W,"playbackData",_.KB(k,"playbackData")))!=null?C:void 0)==null?void 0:n.playerResponseJson;if(N){try{var B=JSON.parse(N);var A=_.hQ(W,"transfer",_.KB(k,"transfer")),w=jum(W,k);w&&(B=Object.assign({},B,{playerConfig:Object.assign({},B.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+w*1E3}}})}));B.cotn=A==null?void 0:A.cotn}catch(x){}return B}}};
_.zjX=function(W){var k,C,n;W=(n=(C=((k=W.downloadsPageViewConfigurationEntity)!=null?k:{})[d$m])==null?void 0:C.smartDownloadsOptInBannerVisibility)!=null?n:{};var N;return(N=_.z(W,m$m))!=null?N:{}};
_.Eb=function(W){var k,C,n;W=(n=(C=((k=W.mainDownloadsListEntity)!=null?k:{})[_.D$3])==null?void 0:C.downloads)!=null?n:[];k={};C=_.b(W);for(n=C.next();!n.done;n=C.next())W=void 0,k[(W=n.value.videoItem)!=null?W:""]=!0;return k};
VDc=function(W){var k=_.Eb(W);if(Object.keys(k).length===0)return!1;var C=W.mainVideoEntity;if(!C)return!0;C=_.b(Object.keys(C));for(var n=C.next();!n.done;n=C.next()){n=n.value;var N=_.r8(n).entityId;if(k[n]&&!Z8X(W,N))return!1}return!0};
_.aY=function(W){var k=_.Eb(W);return te(W).sort(function(C,n){return C.addedTimestampMillis-n.addedTimestampMillis}).map(function(C){return C.downloadedVideoEntities}).filter(function(C){var n;
return(C=C==null?void 0:(n=C.videoEntity)==null?void 0:n.key)&&!!k[C]})};
aYw=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
J43=function(W){var k=_.Eb(W),C=WSJ(W),n=te(W).filter(function(N){var B,A;return(N=N==null?void 0:(B=N.downloadedVideoEntities)==null?void 0:(A=B.videoEntity)==null?void 0:A.key)&&!k[N]&&!C.has(N)});
W=hyK(W);return[].concat(_.J8(n),_.J8(W)).sort(function(N,B){return B.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return aYw(N)})};
_.XD=function(W){if(!_.m("kevlar_use_library_entity"))return J43(W);var k=te(W).filter(function(n){var N,B;if(N=n=n==null?void 0:(N=n.downloadedVideoEntities)==null?void 0:(B=N.videoEntity)==null?void 0:B.key){var A,w,x;N=((w=(A=W.mainDownloadsListEntity)==null?void 0:A[TcK])==null?0:(x=w.downloads)==null?0:x.length)?qqw(W).has(n):!1}return N}),C=hyK(W);
return[].concat(_.J8(k),_.J8(C)).sort(function(n,N){return N.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return aYw(n)})};
c4p=function(W){var k=_.Eb(W),C=WSJ(W);return E7J(W).filter(function(n){var N;return(n=n==null?void 0:(N=n.videoEntity)==null?void 0:N.key)&&!k[n]&&!C.has(n)})};
IYK=function(W){if(!_.m("kevlar_use_library_entity"))return c4p(W);var k=_.Eb(W),C=qqw(W);return E7J(W).filter(function(n){var N;return(n=n==null?void 0:(N=n.videoEntity)==null?void 0:N.key)&&!k[n]&&C.has(n)})};
SVX=function(W,k){k=_.KB(k,"settingEntity");var C,n,N;return!!((N=(n=((C=W.settingEntity)!=null?C:{})[k])==null?void 0:n.settingOptionValue)!=null?N:{}).boolValue};
_.f5=function(W){var k=_.aY(W);if(eyP(k))return 0;var C=[];k=_.b(k);for(var n=k.next();!n.done;n=k.next()){n=n.value;var N=void 0,B=void 0;if((N=n)==null?0:(B=N.videoEntity)==null?0:B.key)N=_.r8(n.videoEntity.key).entityId,n=W,N=_.KB(N,"mainVideoDownloadStateEntity"),n=_.hQ(n,"mainVideoDownloadStateEntity",N),(n=Number(n==null?void 0:n.addedTimestampMillis))&&C.push(n)}return Math.max.apply(Math,_.J8(C))};
_.dn=function(W){return W.ui.richGridMiniMode};
_.m7=function(W){return W.ui.richGridItemsPerRow};
_.MDP=function(W){return W.ui.richGridSlimItemsPerRow};
_.Qrm=function(W){return W.ui.guideIsExpanded};
_.zo=function(W){return W.ui.miniplayerIsActive};
_.pK3=function(W){return W.ui.singleOptionSurveyIsActive};
_.DF=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.v7p=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.ej2=function(W){return W.ui.inlinePreviewIsActive};
_.srz=function(W){return W.ui.inlinePreviewIsEnabled};
_.GRJ=function(W){return W.ui.miniplayerPlaybackState};
y4z=function(W){return W.ui.isOnline};
_.$$z=function(W){return W.ui.frostedGlassMode};
_.V4=function(W,k){return u5I(W.entities,k)};
_.Je=function(W,k){return tDc(W.entities,k)};
ZEX=function(W,k){var C;if(k){var n;W=(n=_.hQ(W.entities,"offlineVideoPolicy",_.KB(k,"offlineVideoPolicy")))==null?void 0:n.action}else W=void 0;return(C=W)!=null?C:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Rjp=function(W,k){var C;k?(W=_.hQ(W.entities,"offlineVideoPolicy",_.KB(k,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(C=W)!=null?C:0};
_.o7m=function(W){return _.xS(W.entities).length};
iEJ=function(W,k){return lO(W.entities,k)};
TF3=function(W,k){return KBc(W.entities,k)};
c3=function(W,k){return(W=lO(W.entities,k))?_.MC4([W]):0};
_.qVw=function(W,k){var C=_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(C){var n=W.entities;var N=wKP(n,k);if(N.length){var B=[];N=_.b(N);for(var A=N.next();!A.done;A=N.next())(A=BFI(n,A.value))&&B.push(A);n=B}else n=[]}else n=PuJ(W.entities,k);var w;if(C){var x=W.entities;k?(k=_.KB(k,"musicPlaylist"),x=(w=x.musicPlaylist)==null?void 0:w[k],w=x!=null&&x.tracks?x.tracks.length:0):w=0}else w=W.entities,k?(k=_.KB(k,"mainPlaylistEntity"),w=(x=w.mainPlaylistEntity)==null?void 0:x[k],w=w!=null&&w.videos?
w.videos.length:0):w=0;return n.length!==w?0:n?QuP(n):0};
_.u13=function(W){return W.download.isLeaderTab};
_.U$p=function(W,k,C){if(!k&&C){var n=W.entities;if(C){var N=vk2(C),B,A;k=(A=(B=_.hQ(n,"offlineabilityEntity",_.KB(N,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?A:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else k="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else B=W.entities,k?(A=vk2(k),k=(N=(n=_.hQ(B,"offlineabilityEntity",_.KB(A,"offlineabilityEntity")))==null?void 0:n.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):k="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return k};
OE3=function(W,k){W=W.entities;if(k){k=vk2(k);var C,n;k=(n=(C=_.hQ(W,"offlineabilityEntity",_.KB(k,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else k="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return k};
_.LSX=function(W){var k=W.entities;W=y4z(W);var C=SVX(k,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.m("kevlar_modern_downloads_page")&&C)var n=!1;else{var N,B;k=(B=(N=((n=k.downloadsPageViewConfigurationEntity)!=null?n:{})[d$m])==null?void 0:N.smartDownloadsOptInBannerVisibility)!=null?B:{};n=W?!!k.visibleWithConnection:!!k.visibleWithoutConnection}return n};
_.jrz=function(W){return SVX(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.HEP=function(W){return VDc(W.entities)};
r4z=function(W){return _.aY(W.entities).every(function(k){var C;return(k==null?void 0:(C=k.transferEntity)==null?void 0:C.transferState)&&!Sqc.includes(k.transferEntity.transferState)})};
_.g7w=function(W,k){return Z8X(W.entities,k)};
P82=function(W,k){if(k){var C,n;W=(n=(C=_.hQ(W.entities,"downloadStatusEntity",_.KB(k,"downloadStatusEntity")))==null?void 0:C.downloadState)!=null?n:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
IY=function(W,k){return jum(W.entities,k)};
kA3=function(W){W=_.KSX(W);var k=W.hours===void 0?0:W.hours,C=W.minutes===void 0?0:W.minutes,n=W.seconds===void 0?0:W.seconds,N=k>0;W=[];N&&(k=_.hjI(k),W.push(k));k=N;k=k===void 0?!1:k;C=(["af","be","lt"].includes(_.SW)||k)&&C<10?Wuw().format(C):(new Intl.NumberFormat("en-u-nu-latn")).format(C);W.push(C);C=Wuw().format(n);W.push(C);C=":";"da fi id si sr sr-Latn".split(" ").includes(_.SW)&&(C=".");return W.join(C)};
_.KSX=function(W){var k=W.hours||0,C=W.minutes||0,n=W.seconds||0;k=n+C*60+k*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(k<=0)return{hours:0,minutes:0,seconds:0};W=k;k=Math.floor(W/3600);W%=3600;C=Math.floor(W/60);n=Math.floor(W%60);return{hours:k,minutes:C,seconds:n}};
_.hjI=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var k=["fr"],C="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.SW)?W.replace(",","\u00a0"):k.includes(_.SW)?W.replace(",","\u202f"):C.includes(_.SW)?W.replace(",","."):W};
Wuw=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Ckw=function(W){try{return(new _.My(5)).format(W)}catch(k){}};
Q4=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
nDP=function(W){if(W=Ckw(W))return{thumbnailOverlaySidePanelRenderer:{text:_.Ur(W),icon:{iconType:"PLAYLISTS"}}}};
NhX=function(){var W=_.w8("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Ur(W),icon:{iconType:"PLAY_ALL"}}}};
YQP=function(W){W=_.p5(W,2);return _.SW!=="ru"&&_.SW!=="es_419"&&_.SW!=="es-419"&&_.SW!=="es"&&_.SW!=="es_US"&&_.SW!=="es-US"&&_.SW!=="fr"&&_.SW!=="pl"&&_.SW!=="it"&&_.SW!=="nl"&&_.SW!=="uk"&&_.SW!=="fr_CA"&&_.SW!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
blw=function(W){return function(k){var C=W(),n=_.p5(k,C.dateFormat);k=_.p5(k,C.timeFormat);var N=Bhm.DATETIMEFORMATS[C.joinerStyle];N=N.replace(/'(?!')/g,"");N=N.replace("{0}",k);N=N.replace("{1}",n);return C.capitalize(N)}};
Awp=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
Fuc=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.p5=function(W,k){if(typeof W.getTime==="function")W={date:W};else if(Awp(W))W={date:Fuc(W)};else if(typeof Awp(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:Fuc(W.timestamp),timeZone:v3(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(W));var C=W;W=C.date;C=C.timeZone;k=wRc(k).format(W,C);_.SW==="zh-TW"&&(W=C?Number(wRc("H").format(W,C)):W.getHours(),k=W<5?k.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?k.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
k.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?k.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?k.replace("\u4e0b\u5348","\u4e0b\u5348"):k.replace("\u4e0b\u5348","\u665a\u4e0a"));return k};
wRc=function(W){if(xic.has(W))return xic.get(W);var k=l1z(W);k=tVc(k);EDP!==!0&&(EDP=!0);a1p=!0;a1p=!1;k=new eW(k,Bhm);xic.set(W,k);return k};
l1z=function(W){return(new eW(W,Bhm)).patternParts_.map(function(k){return k.type===0?"'"+k.text+"'":k.text}).join("")};
tVc=function(W){return _.SW==="en"||_.SW==="es_US"||_.SW==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(k,C,n){return"H".repeat(C.length)+n})};
JwX=function(W,k){XRm||(_.sb=_.f1m,XRm=new dip);var C=XRm;a:if(W=miX(W),k=miX(k||new Date),W>k)C=W.getTime()-k.getTime()>6048E5?_.p5(W,1):zRz(W);else{for(var n=0;Diw(W,12*(n+1))<k;)++n;if(n>0)C=C.format(-n,0);else{for(n=0;Diw(W,n+1)<k;)++n;if(n>0)C=C.format(-n,2);else{W=k.getTime()-W.getTime();k=_.b(VVm);for(n=k.next();!n.done;n=k.next()){n=n.value;var N=n.unit,B=Math.floor(W/n.unitDuration);if(B>=(n.threshold===void 0?1:n.threshold)){C=C.format(-B,N);break a}}C=C.format(-0,7)}}}return C};
miX=function(W){if(typeof W.getTime==="function")return W;if(Awp(W))return Fuc(W);throw Error("Cf`"+JSON.stringify(W));};
Diw=function(W,k){for(var C=0,n;;++C)if(n=new Date(W.getFullYear(),W.getMonth()+k,W.getDate()-C,W.getHours(),W.getMinutes(),W.getSeconds()),n.getMonth()===(W.getMonth()+k)%12)return n};
_.Go=function(W){return{runs:[{text:W}]}};
_.y4=function(W){if(W&&W.simpleText)return W.simpleText;var k="";if(W&&W.runs)for(var C=0;C<W.runs.length;C++)W.runs[C].text&&(k+=W.runs[C].text);return k};
I1K=function(W,k,C,n){return W.videoEntity&&!W.policyEntity&&C!=="DOWNLOAD_STATE_FAILED"?[Q4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Ae(W.policyEntity)&&k!=="TRANSFER_STATE_FAILED"&&k!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?k==="TRANSFER_STATE_PAUSED_BY_USER"?[Q4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.FD(k)?[Q4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?cww(W.videoEntity.lengthSeconds,n):[]:
[Q4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
cww=function(W,k){var C=[{thumbnailOverlayTimeStatusRenderer:{text:_.Ur(kA3({seconds:W})),style:"DEFAULT"}}];k&&(W=k<=0||W<=0?0:k>=W?100:Math.ceil(k*100/W),W>0&&C.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return C};
SQc=function(W,k,C,n,N){if(k==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.FD(k)||k==="TRANSFER_STATE_PRE_TRANSFER")var B=[Q4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var A,w;if(k==="TRANSFER_STATE_COMPLETE"&&((A=W.mainPlaylistEntity)==null?0:(w=A.videos)==null?0:w.length)){if(_.m("web_modern_collections_v2")){var x;var E=(B=W.mainPlaylistEntity)==null?void 0:(x=B.videos)==null?void 0:x.length;B=(B=Ckw(E))?{thumbnailOverlayBottomPanelRenderer:{text:_.Ur(B),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var a;B=nDP((E=W.mainPlaylistEntity)==null?void 0:(a=E.videos)==null?void 0:a.length)}var X;B=[NhX(),Object.assign({},(X=B)!=null?X:{})]}else B=[]}X=B;a:if(k==="TRANSFER_STATE_PRE_TRANSFER")C=Or(_.w8("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(k==="TRANSFER_STATE_TRANSFER_IN_QUEUE")C=Or(_.w8("WAITING_TO_DOWNLOAD"));else if(_.FD(k))C=Math.floor(C*100).toString(),C=Or(_.w8("DOWNLOADING_PERCENT",{percent:C},"Downloading... "+C+"%"));else{if(n&&(_.m("playlist_is_offline_selector_killswitch")&&
(N=_.f().resolve(_.Qw).isNetworkAvailable()),N)){C=ZTp(_.w8("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ylK(n));break a}C=void 0}k=k==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.w8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},X.length?{thumbnailOverlays:X}:{},C?{viewPlaylistText:C}:{viewPlaylistText:_.Go("")},k.length?{badges:k}:{})};
MVm=function(W,k,C,n,N,B){if(k==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(n==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var A=I1K(W,k,n);if(W.videoEntity&&!W.policyEntity&&n!=="DOWNLOAD_STATE_FAILED"){var w=_.w8("WAITING_TO_DOWNLOAD");if(w)return{shortViewCountText:_.Go(w),publishedTimeText:void 0,thumbnailOverlays:A}}if(!Ae(W.policyEntity)){B=W.policyEntity&&!pnw(W.policyEntity)?_.w8("DOWNLOAD_EXPIRED",{},"Download expired"):
_.w8("TRANSFER_FAILED",{},"Download failed");var x;if((x=W.policyEntity)==null?0:x.shortMessageForDisabledAction)B=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Or(B),publishedTimeText:void 0,thumbnailOverlays:A}}if(k==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Go(_.w8("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:A};if(k==="TRANSFER_STATE_FAILED"||k==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Go(_.w8("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:A};if(k==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(x=_.w8("WAITING_TO_DOWNLOAD"),n==="DOWNLOAD_STATE_PAUSED"&&(x=_.w8("DOWNLOAD_PAUSED",{},"Download paused")),x))return{shortViewCountText:_.Go(x),publishedTimeText:void 0,thumbnailOverlays:A};if(_.FD(k))return W=Math.floor(C*100).toString(),{shortViewCountText:_.Go(_.w8("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:A};k=void 0;W.videoEntity.publishedTimestampMillis&&
(k=new Date,N&&(k=new Date(N)),k=Or(JwX(new Date(Number(W.videoEntity.publishedTimestampMillis)),k)));N=[];_.m("kevlar_woffle_badge_killswitch")||(N=[{metadataBadgeRenderer:{label:_.w8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var E;W=Or((E=W.videoEntity.localizedStrings)==null?void 0:E.viewCount);return Object.assign({},B?{shortViewCountText:void 0}:{shortViewCountText:W},B?{}:{publishedTimeText:k},{badges:N,thumbnailOverlays:A})};
pRI=function(W,k){W=W===void 0?Qk4:W;switch(k.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:k.payload.playlistId,inviteLinkURL:k.payload.inviteLinkUrl};default:return W}};
eRw=function(W,k){W=W===void 0?vDX:W;switch(k.type){case "SET_CURRENT_FORM_ID":return k=k.payload.formId,W.currentFormId===k?W:{currentFormId:k,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var C=k.payload;k=C.groupId;C=C.command;if(W.currentFormId){var n=Object.assign({},W.commandsMap);n[k]=C;W=Object.assign({},W,{commandsMap:n})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
GAm=function(W,k){W=W===void 0?sk2:W;switch(k.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:k.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:k.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:k.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:k.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:k.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:k.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:k.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:k.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:k.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:k.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:k.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:k.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:k.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:k.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:k.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:k.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:k.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:k.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:k.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:k.payload});default:return W}};
$iw=function(W,k){W=W===void 0?ywm:W;switch(k.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:k.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:k.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
LuX=function(){return NL(Object.assign({},{continuation:ZlK,entities:hW4,download:RR3,reportChannelAbuse:oD4,share:ilK,talkToRecs:ThK,ui:GAm,voiceSearch:$iw,watch:qQP,ypc:ueJ,shorts:Ui2,radioButtonGroup:eRw,collabInviteLink:pRI},Olc))};
rwJ=function(){return _.m("web_player_entities_middleware")?new $S(LuX(),[jkm,HlJ]):new $S(LuX(),[jkm])};
_.ZF=function(){gDw||(gDw=rwJ());return gDw};
PkJ=function(W,k,C){if(W.length)return{titleText:_.Ur(k!=null?k:_.w8("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(n){var N=n.videoEntity;n={videoId:N.videoId,title:Or(N.title),shortBylineText:Or(n.channelEntity.title),thumbnail:N.thumbnail};var B=N.videoId?IY(_.ZF().getState(),N.videoId):0;N.videoId&&C?n.navigationEndpoint=_.uW(N.videoId,C,void 0,void 0,B):N.videoId&&(n.navigationEndpoint=Guw(N.videoId,B,N.lengthSeconds));N.lengthSeconds&&(n.thumbnailOverlays=cww(N.lengthSeconds,B));return{playlistPanelVideoRenderer:n}}),
totalVideos:W.length}};
KuP=function(W){return(W=(0,_.JU.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
hRP=function(){return{}};
W1K=function(W,k){return new _.Wx(function(C,n){W.then(function(N){if(N){if(N=k(N))return C(N);n()}},n)})};
kP3=function(W){var k,C,n,N=(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.autoplay)==null?void 0:n.autoplay,B,A,w;k=(B=W.contents)==null?void 0:(A=B.twoColumnWatchNextResults)==null?void 0:(w=A.playlist)==null?void 0:w.playlist;return N&&k&&k.playlistId?{rawResponse:W,autoplayRenderer:N,playlistPanelRenderer:k,playlistId:k.playlistId}:null};
n$c=function(W){var k=k===void 0?"UNKNOWN_INTERFACE":k;if(W.length===1)return W[0];var C=Cyw[k];if(C){C=new RegExp(C);for(var n=_.b(W),N=n.next();!N.done;N=n.next())if(N=N.value,C.exec(N))return N}var B=[];Object.entries(Cyw).forEach(function(A){var w=_.b(A);A=w.next().value;w=w.next().value;k!==A&&B.push(w)});
C=new RegExp(B.join("|"));W.sort(function(A,w){return A.length-w.length});
n=_.b(W);for(N=n.next();!N.done;N=n.next())if(N=N.value,!C.exec(N))return N;return W[0]};
_.RY=function(W){return"/youtubei/v1/"+n$c(W)};
_.oY=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.iO=function(W){return _.oY(_.Go(W))};
NLI=function(W,k){var C={mode:"NORMAL"};W&&(C.autoplayVideo=W.navigationEndpoint,C.nextButtonVideo=W.navigationEndpoint);k&&(C.previousButtonVideo=k.navigationEndpoint);return C};
bR2=function(W,k,C){if(!C||!C.sets)return{sets:[NLI(W,k)]};var n=C.sets.find(function(A){return A.mode==="NORMAL"}),N=(0,_.JU.unsafeClone)(C);
if(!n)return N.sets.push(NLI(W,k)),N;if(!W)return C;n=_.JU.getValueByKeys.apply(null,[n].concat(_.J8(Y9m)));var B=_.JU.getValueByKeys.apply(null,[W].concat(_.J8(BLw)));if(n===B)return C;N.sets=N.sets.filter(function(A){return A.mode!=="NORMAL"});
N.sets.push(NLI(W,k));return N};
AnP=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
F12=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
wLp=function(W,k){if(k.contents&&!(W>=k.contents.length)&&(W=k.contents.slice(W).find(AnP)))return W.playlistPanelVideoRenderer};
xMp=function(W,k){if(k.contents)return(k=k.contents.find(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId===W}))?k.playlistPanelVideoRenderer:void 0};
lpz=function(W,k){return k.contents?k.contents.findIndex(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId===W}):-1};
taJ=function(W,k){return k.contents?k.contents.findIndex(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
E$c=function(W,k){W.contents&&k!==-1&&W.contents.splice(k,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.apw=function(W){var k=[];if(!W||!W.contents)return k;W=_.b(W.contents);for(var C=W.next();!C.done;C=W.next())C=C.value,C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId&&k.push(C.playlistPanelVideoRenderer.videoId);return k};
_.XLm=function(W){if(W&&W.contents)return(W=W.contents.find(function(k){return!!k.playlistPanelVideoRenderer&&!!k.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
fpK=function(W,k,C,n,N,B,A){N=N===void 0?!1:N;B=B===void 0?!1:B;A=A===void 0?!1:A;if(W.contents&&W.contents.length!==0){n&&(W.contents=W.contents.filter(n));n=W.contents.length;for(var w=0;w<n;w++){var x=W.contents[w].playlistPanelVideoRenderer;x&&(w===k?(B&&delete x.menu,x.indexText=_.Go("\u25b6")):N||W.isInfinite||x.indexText===void 0?delete x.indexText:x.indexText=_.Go((w+1+C).toString()))}W.currentIndex=k+C;A&&(delete W.videoCountText,W.totalVideos=n)}};
z9m=function(W){W=dMI(W,!0);if(W){var k=W.length;var C=-76%k;C<0&&(C=k+C);W=W.slice(k-C)+W.slice(0,k-C)}else W="";C="";for(k=0;k<W.length&&W[k]!==mMK;k++)C+=W[k];return C};
DM3=function(W,k){var C=document.body;k=k===void 0?function(w){return w}:k;
var n,N=null;W=_.b(W);for(n=W.next();!n.done;n=W.next()){var B=n.value;n=document.createElement("div");N||(N=n);var A=B[0];B=B[1];A&&(n.id=k(A));if(B)for(A=_.b(B),B=A.next();!B.done;B=A.next())n.classList.add(k(B.value));C.appendChild(n);C=n}return[N,C]};
Vaw=function(W,k){for(var C="",n=0;n<k;n++)C+=W.charAt(Math.floor(Math.random()*W.length));return C};
To=function(W){return Vaw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
qy=function(W){return Vaw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
uO=function(W){return Vaw("0123456789",W)};
Ub=function(){var W=performance.now(),k=new Date;var C="2."+k.getFullYear()+String(k.getMonth()+1).padStart(2,"0")+String(k.getDate()).padStart(2,"0");for(var n,N=Math.floor(Math.random()*11)+15,B=[],A=0;A<N;A++)B.push(Math.floor(Math.random()*26476865)+24547720);n=B.join(",");var w=To(10),x=To(100),E=To(102),a=To(106),X=To(108),d=To(11),V=To(1140),c=To(123),M=To(14),p=To(16),e=To(1900),u=To(23),h=To(26),L=To(34),Bw=To(397),P=To(44),xz=To(5),Sp=To(72),vw=To(74),lw=To(75),G4=To(88),nA=To(91),Xs="rr5---sn-q4fzen7e rr2---sn-5hne6nsz rr1---sn-5hne6n6e rr5---sn-aigl6n6s rr2---sn-4g5lznez rr3---sn-5hne6nz6 rr3---sn-q4flrnl6 rr4---sn-ntq7yney rr5---sn-q4flrnsd rr3---sn-q4flrnee rr2---sn-q4fzen7s rr5---sn-q4fzen7s rr1---sn-hgn7rn7y rr4---sn-q4fl6ndl rr1---sn-q4flrnle rr2---sn-hgn7rnll rr4---sn-q4fl6n6r rr2---sn-q4fl6ndz rr1---sn-5hne6nzy rr3---sn-hgn7rn7k".split(" ");
var aI=Xs[Math.floor(Math.random()*Xs.length)];var LA=(new Date("2010-01-01")).getTime();var dj=(new Date(LA+Math.random()*((new Date).getTime()-LA))).toISOString().split("T")[0];for(var hK,Tz=[],S8=0;S8<4;S8++)Tz.push(Math.floor(Math.random()*100));hK=Tz.join(".");var ms=Number(uO(5)),pA=Number(uO(6)),k3=Number(uO(7)),oe=Number(uO(9)),bw=uO(1),C7=uO(10),j8=uO(16),CL=uO(19),EA=uO(2),Nu=uO(20),AS=uO(21),RJ=uO(3),Y2=uO(4),VY=uO(5),cY=uO(6),e8=uO(7),R1=uO(8),Ie=uO(9);var qZ=Vaw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var F7=[qy(5),qy(5),qy(5)].join("%2C"),e3=[uO(3),uO(5),uO(5)].join("%2C"),Uk=qy(0),IO=qy(1),IW=qy(10),VK=qy(108),m_=qy(11),Pl=qy(12),Y6=qy(13),Tw=qy(14),Jj=qy(15),UF=qy(16),XP=qy(17),z4=qy(18),ep=qy(19),oJ=qy(2),lb=qy(20),n7=qy(22),CA=qy(23),Fs=qy(24),H8=qy(266),DZ=qy(3),zi=qy(30),KU=qy(34),MS=qy(35),Bm=qy(36),jW=qy(4),gj=qy(40),N3=qy(43),EL=qy(47),KO=qy(5),U2=qy(6),At=qy(7),ae=qy(75),gZ=qy(8),Y0=qy(80),OF=qy(9),Jo="https://www."+qy(12)+".com",gq={},PG={},qC={},wDX={},u_={},ax={},Xn={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:n}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:C},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+qy(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:C},{key:"client.name",value:"WEB"},{key:"client.fexp",value:n}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:AS+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+qy(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:gj,ypcGetOfflineUpsellEndpoint:{params:Y0}},trackingParams:MS+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&cnr="+EA+"&ratebypass=yes&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&c=WEB&txp="+e8+"&n="+p+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:pA,width:640,height:360,lastModified:j8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:e8,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+e3+"&mn="+
F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&cnr="+EA+"&ratebypass=yes&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&c=WEB&txp="+e8+"&n="+p+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+VK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:pA,width:1280,
height:720,lastModified:j8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:e8,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+F7+"&ms="+
F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:k3,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:k3,approxDurationMs:e8},{itag:248,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+F7+"&ms="+F7+"&mv="+
IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:k3,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:k3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:399,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:k3,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:k3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:136,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:k3,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pA,approxDurationMs:e8},{itag:247,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+
F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:k3,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:398,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+Ie+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:k3,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:Ie,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:135,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:pA,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pA,approxDurationMs:e8},{itag:244,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+
F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+VK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:pA,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:397,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:pA,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:134,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:pA,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pA,highReplication:!0,approxDurationMs:e8},{itag:243,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:pA,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:396,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:pA,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:133,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:pA,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pA,approxDurationMs:e8},{itag:242,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+
F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:pA,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:395,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:pA,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:160,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:pA,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ms,approxDurationMs:e8},{itag:278,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+e3+"&mn="+
F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:pA,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ms,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:394,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&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="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=video%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ms,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ms,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:e8},{itag:140,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=audio%2Fmp4&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:pA,
initRange:{start:"0",end:"631"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pA,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:e8,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+
EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=audio%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+e8+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:ms,initRange:{start:"0",end:"265"},indexRange:{start:RJ,
end:Y2},lastModified:j8,contentLength:e8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ms,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:e8,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=audio%2Fwebm&ns="+
Fs+"&gir="+DZ+"&clen="+e8+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:ms,initRange:{start:"0",end:"265"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:e8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ms,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:e8,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+aI+".googlevideo.com/videoplayback?expire="+C7+"&ei="+u+"&ip="+hK+"&id=o-AF"+N3+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+e3+"&mn="+F7+"&ms="+F7+"&mv="+IO+"&mvi="+bw+"&pl="+EA+"&initcwndbps="+e8+"&siu="+bw+"&spc="+P+"&vprv="+bw+"&svpuc="+bw+"&mime=audio%2Fwebm&ns="+Fs+"&gir="+DZ+"&clen="+R1+"&dur="+R1+"&lmt="+j8+"&mt="+C7+"&fvip=3&keepalive="+DZ+"&c=WEB&txp="+
e8+"&n="+UF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:pA,initRange:{start:"0",end:"265"},indexRange:{start:RJ,end:Y2},lastModified:j8,contentLength:R1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pA,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:e8,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="+Ie+"&docid="+d+"&ei="+u+"&feature="+w+"&fexp="+Uk+"&ns="+oJ+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IO+"&el="+IW+"&len="+Y2+"&of="+n7+
"&uga="+EA+"&vm="+H8},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Ie+"&docid="+d+"&ei="+u+"&feature="+w+"&fexp="+Uk+"&ns="+oJ+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IO+"&el="+IW+"&len="+Y2+"&of="+n7+"&uga="+EA+"&vm="+H8},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Ie+"&docid="+d+"&ei="+u+"&feature="+w+"&fexp="+Uk+"&ns="+oJ+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
IO+"&el="+IW+"&len="+Y2+"&of="+n7+"&uga="+EA+"&vm="+H8},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+u+"&m="+G4+"&oid="+n7+"&plid="+p+"&pltype="+At+"&ptchn="+n7+"&ptk="+M+"&video_id="+d},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Ie+"&docid="+d+"&ei="+u+"&event="+Tw+"&feature="+w+"&fexp="+Uk+"&ns="+oJ+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IO},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+d+"&ei="+u+"&feature="+
w+"&len="+Y2+"&ns="+oJ+"&plid="+p+"&ver="+bw,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+d+"&caps="+DZ+"&opi="+Ie+"&xoaf="+bw+"&hl="+oJ+"&ip="+hK+"&ipbits="+bw+"&expire="+C7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+hK+"&key="+DZ+"&lang="+xz,name:{simpleText:lb},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+d+"&caps="+DZ+"&opi="+Ie+"&xoaf="+bw+"&hl="+oJ+"&ip="+hK+"&ipbits="+bw+"&expire="+C7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+hK+"&key="+DZ+"&kind="+DZ+"&lang="+oJ,name:{simpleText:Tw},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:m_,title:Jj,lengthSeconds:"1155",keywords:[gZ,KO,U2,XP],
channelId:Fs,isOwnerViewing:!1,shortDescription:jW,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+KU,width:168,height:94},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+KU,width:196,height:110},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
d+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:e8,author:Y6,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:e8,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+n7+"/featured_channel.jpg?v="+gZ,width:40,height:40}]},trackingParams:MS+"=",navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fs,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fs}},channelName:Y6,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:KO}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fs,showPreferences:!1,subscribedButtonText:{runs:[{text:UF}]},unsubscribedButtonText:{runs:[{text:Jj}]},trackingParams:MS+"=",unsubscribeButtonText:{runs:[{text:z4}]},serviceEndpoints:[{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Fs],params:gZ}},{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:gj,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:MS+"=",dialogMessages:[{runs:[{text:OF},{text:OF},{text:XP}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:U2}]},serviceEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fs],params:gZ}},accessibility:{label:gZ},trackingParams:MS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ep}]},accessibility:{label:gZ},trackingParams:MS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:OF}},unsubscribeAccessibility:{accessibilityData:{label:IW}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:R1},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fs],params:gZ}},unsubscribeCommand:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fs],params:gZ}},addToWatchLaterCommand:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:m_,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:m_}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+d+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Bm+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
d+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+m_,width:1280,height:720},title:{simpleText:Tw},description:{simpleText:Tw},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+OF,externalChannelId:Fs,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:e8,category:"Travel & Events",publishDate:dj,ownerChannelName:Y6,uploadDate:dj}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:UF},trackingParams:MS+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:gj,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:MS+"="}}],headerText:{simpleText:m_},icon:{infoCardIconRenderer:{trackingParams:MS+"="}},closeButton:{infoCardIconRenderer:{trackingParams:MS+"="}},trackingParams:MS+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:MS+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+m_+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:qZ,interpreterSafeUrl:(gq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+zi+".js",gq),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:XP},{text:gZ,bold:!0}]},endpoint:{clickTrackingParams:gj,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:MS+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:lb}]},actionButton:{buttonRenderer:{text:{runs:[{text:Pl}]},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+d,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
d,target:"TARGET_NEW_WINDOW"}},trackingParams:MS+"="}},trackingParams:MS+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Sp+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Sp+"=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:e8,endMs:e8,title:{accessibility:{accessibilityData:{label:Pl}},simpleText:IW},metadata:{simpleText:XP},callToAction:{simpleText:lb},dismiss:{simpleText:lb},endpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fs,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fs}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:OF}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fs,showPreferences:!1,
subscribedButtonText:{runs:[{text:Jj}]},unsubscribedButtonText:{runs:[{text:UF}]},trackingParams:MS+"=",unsubscribeButtonText:{runs:[{text:OF}]},serviceEndpoints:[{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fs],params:gZ}},{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:gj,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:MS+
"=",dialogMessages:[{runs:[{text:OF},{text:IW},{text:ep}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:OF}]},serviceEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fs],params:gZ}},accessibility:{label:Jj},trackingParams:MS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:lb}]},
accessibility:{label:jW},trackingParams:MS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:XP}},unsubscribeAccessibility:{accessibilityData:{label:gZ}}}},trackingParams:MS+"=",isSubscribe:!0,id:Nu}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+L,width:168,height:94},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+KU,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+Bm+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+d+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:e8,endMs:e8,title:{accessibility:{accessibilityData:{label:OF}},simpleText:Jj},metadata:{simpleText:XP},endpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
m_,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:m_,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+aI+".googlevideo.com/videoplayback?source=youtube&oeis="+bw+"&c=WEB&oad="+Y2+"&ovd="+Y2+"&oaad="+VY+"&oavd="+VY+"&ocs="+RJ+"&oewis="+bw+"&oputc="+bw+"&ofpcc="+bw+"&siu="+bw+"&msp="+bw+"&odepv="+bw+
"&id=o-AF"+N3+"&ip="+hK+"&initcwndbps="+e8+"&mt="+C7+"&oweuc="+Uk}}}}},trackingParams:MS+"=",id:Nu,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:KO}},simpleText:Pl},style:"DEFAULT"}}]}}],startMs:e8,trackingParams:MS+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:bw,offsetEndMilliseconds:VY},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";ord="+C7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+RJ+";dc_sk="+bw+";dc_ctype="+EA+";dc_ref=http://www.youtube.com/video/"+m_+";dc_pubid="+bw+";dc_btype=23?gclid="+nA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+bw+"&ns="+bw+"&event="+bw+"&device="+bw+"&content_v="+d+"&el="+IW+"&ei="+u+"&devicever="+C+"&bti="+e8+"&format="+cY+"&break_type="+bw+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+bw+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+hK+"&slot_pos="+bw+"&slot_len="+bw+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+e3+"&ad_len="+VY+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
m_+"&aqi="+u+"&ad_rmp="+bw+"&sli="+bw}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+
";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+e8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&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"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&ctype="+RJ+"&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"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_engaged_view&ctype="+RJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+CL+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&dc_pubid="+bw+"&dc_exteid="+Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+bw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&avm="+bw+"&dc_pubid="+bw+"&dc_exteid="+
Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&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="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
E+"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+bw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&dc_pubid="+bw+"&dc_exteid="+Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:gj,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+
RJ+"&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/"+d+"/mqdefault.jpg",width:320,height:180}]},trackingParams:MS+"="},trackingParams:MS+
"=",templatedCountdown:{templatedAdText:{text:Y6,isTemplated:!0,trackingParams:MS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Jj,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},trackingParams:MS+"=",skipOffsetMilliseconds:5E3}},trackingParams:MS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:OF},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:At,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:jW,isTemplated:!0,trackingParams:MS+"="}},trackingParams:MS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:gj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(PG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+oJ+"&origin=www.youtube.com&ata_theme="+jW,PG),trackingParams:MS+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:MS+"="}},hoverText:{runs:[{text:jW}]},trackingParams:MS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+EL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:At,isTemplated:!1,trackingParams:MS+"="},description:{text:z4,
trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:ep},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},startMs:bw,trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:jW},elementId:At}},elementId:UF,trackingParams:MS+"=",legacyInfoCardVastExtension:UF,sodarExtensionData:{siub:lb,bgub:IW,scs:z4,bgp:Y6},externalVideoId:m_,adLayoutLoggingData:{serializedAdServingDataEntry:lb},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+EL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},
headline:{text:Y6,isTemplated:!1,trackingParams:MS+"="},description:{text:UF,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:OF},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+
Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+
bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:MS+"="}},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+
Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:MS+"="},abandonCommands:{commands:[{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&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="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+
bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:gj,commandExecutorCommand:{commands:[{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Tw,isTemplated:!1,trackingParams:MS+
"="},trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:UF},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+e8+";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="+Ie+";dc_trk_cid="+Ie+";ord="+C7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+RJ+";dc_sk="+bw+";dc_ctype="+EA+";dc_ref=http://www.youtube.com/video/"+m_+";dc_pubid="+bw+";dc_btype=23?gclid="+nA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+bw+"&ns="+bw+"&event="+bw+"&device="+bw+"&content_v="+d+"&el="+IW+"&ei="+u+"&devicever="+C+"&bti="+e8+"&format="+cY+"&break_type="+bw+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+bw+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+hK+"&slot_pos="+bw+"&slot_len="+bw+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
e3+"&ad_len="+VY+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+m_+"&aqi="+u+"&ad_rmp="+bw+"&sli="+bw}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+
h+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+e8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&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"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&ctype="+RJ+"&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"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_engaged_view&ctype="+RJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+
U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&dc_pubid="+bw+"&dc_exteid="+Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+
"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+bw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&avm="+bw+"&dc_pubid="+bw+"&dc_exteid="+Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&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="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+CA+"&ad_cpn=[AD_CPN]&id="+U2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+bw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+U2+"&dc_pubid="+bw+"&dc_exteid="+Nu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+cY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+
RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&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/"+d+"/mqdefault.jpg",width:320,height:180}]},trackingParams:MS+"="},trackingParams:MS+"=",templatedCountdown:{templatedAdText:{text:Y6,isTemplated:!0,trackingParams:MS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Y6,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},
trackingParams:MS+"=",skipOffsetMilliseconds:5E3}},trackingParams:MS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:m_},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:m_,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:m_,
isTemplated:!0,trackingParams:MS+"="}},trackingParams:MS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:gj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+oJ+"&origin=www.youtube.com&ata_theme="+jW,qC),trackingParams:MS+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:MS+"="}},hoverText:{runs:[{text:U2}]},trackingParams:MS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:gZ,isTemplated:!1,trackingParams:MS+"="},description:{text:At,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:lb},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},startMs:bw,trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:XP},elementId:m_}},elementId:lb,trackingParams:MS+"=",legacyInfoCardVastExtension:At,sodarExtensionData:{siub:lb,bgub:z4,scs:gZ,bgp:IW},externalVideoId:m_,adLayoutLoggingData:{serializedAdServingDataEntry:U2},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:MS+"="},headline:{text:m_,
isTemplated:!1,trackingParams:MS+"="},description:{text:Jj,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:IW},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:MS+"="}},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+
bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:MS+"="},abandonCommands:{commands:[{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&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="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+EA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:gj,commandExecutorCommand:{commands:[{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:UF,isTemplated:!1,trackingParams:MS+"="},trackingParams:MS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:KO},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+bw+";dc_exteid="+Nu+";met="+bw+";ecn"+bw+"="+bw+";etm1="+bw+";eid1="+
e8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Tw}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:VY,offsetEndMilliseconds:cY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+EA+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+C+"&m_pos_ms="+VY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:cY,offsetEndMilliseconds:cY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RJ+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
C+"&m_pos_ms="+cY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cY,offsetEndMilliseconds:cY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RJ+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
C+"&m_pos_ms="+cY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:At}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cY,offsetEndMilliseconds:cY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RJ+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
C+"&m_pos_ms="+cY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cY,offsetEndMilliseconds:EA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RJ+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
C+"&m_pos_ms="+cY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Pl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:EA,offsetEndMilliseconds:EA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+EA+"&token=ALHj"+Bw+"&index="+bw+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
C+"&m_pos_ms="+EA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:m_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:z4,isTemplated:!1,trackingParams:MS+"="},description:{text:Y6,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:IW},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+EL+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lw+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+"="},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+
";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:gj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(wDX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+oJ+"&origin=www.youtube.com&ata_theme="+jW,wDX),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+"="}},hoverText:{runs:[{text:KO}]},trackingParams:MS+"="}},adVideoId:m_,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Jj},associatedCompositePlayerBytesLayoutId:UF}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:KO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Tw,isTemplated:!1,trackingParams:MS+"="},description:{text:XP,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:Pl},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vw+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ae+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+"="},navigationEndpoint:{clickTrackingParams:gj,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+
bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:gj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(u_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+oJ+"&origin=www.youtube.com&ata_theme="+jW,u_),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+"="}},
hoverText:{runs:[{text:lb}]},trackingParams:MS+"="}},adVideoId:m_,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+m_+"&cid="+h+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:m_},associatedCompositePlayerBytesLayoutId:UF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ep,
isTemplated:!1,trackingParams:MS+"="},description:{text:Jj,isTemplated:!1,trackingParams:MS+"="},actionButton:{buttonRenderer:{text:{simpleText:lb},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+
EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+
L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:MS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+EL+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:MS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lw+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:MS+
"="},navigationEndpoint:{clickTrackingParams:gj,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ie+";dc_trk_cid="+Ie+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+bw+";ord="+Ie+";dc_rui="+bw+";dc_exteid="+Nu+";dc_av="+bw+";dc_sk="+bw+";dc_ctype="+EA+";dc_pubid="+bw+";dc_btype=3?gclid="+nA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+c+"AxAA&ase=2&num="+bw+"&cid="+h+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+Jo+"&label=video_click_to_advertiser_site&ctype="+RJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:MS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:gj,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ax.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+oJ+"&origin=www.youtube.com&ata_theme="+jW,ax),trackingParams:MS+"="}},popupType:"DIALOG"}},trackingParams:MS+
"="}},hoverText:{runs:[{text:gZ}]},trackingParams:MS+"="}},adVideoId:m_,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+c+"AxAA&sigh="+d+"&cid="+h+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:IW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:UF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jW}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:zi,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:zi,command:{innertubeCommand:{clickTrackingParams:gj,ypcGetOfflineUpsellEndpoint:{params:Y0}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:MS+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:C7,nanos:oe}}}},BSX=JSON.stringify(Xn),fW=performance.now()-W;return{objectRepresentation:Xn,jsonRepresentation:BSX,generationTime:fW}};
Jnm=function(W,k){if(W===k)return!0;if(!W||!k||typeof W!==typeof k)return!1;if(W instanceof Array&&k instanceof Array){if(W.length!==k.length)return!1;for(var C=0;C<W.length;C++)if(!Jnm(W[C],k[C]))return!1;return!0}if(typeof W==="object"&&typeof k==="object"&&W&&k){for(C in W)if(!(C in k&&Jnm(W[C],k[C])))return!1;for(var n in k)if(!(n in W))return!1;return!0}return!1};
_.L5=function(){if(!Ob){Ob=new bg(new cnz);var W=_.Oe("client_streamz_web_flush_count",-1);W!==-1&&(Ob.invocationLimit=W)}return Ob};
H3=function(W,k,C,n){if(W===k)return!0;if(Array.isArray(W)&&Array.isArray(k)){if(W.length!==k.length)return!1;for(var N=0;N<W.length;N++)if(!H3(W[N],k[N],C,n))return!1;return!0}if(W instanceof Set||k instanceof Set){if(W instanceof Set&&k instanceof Set){if(W.size!==k.size)return!1;n=_.b(W.values());for(N=n.next();!N.done;N=n.next())if(!k.has(N.value))return!1;return!0}return!1}if(W instanceof Function){if(n)return!0;W.name===""&&_.dI(Error("Gf"),"ERROR");return!1}if(W instanceof Date&&k instanceof
Date)return W.getTime()===k.getTime();if(W instanceof Object&&k instanceof Object){if(IpJ(W)&&IpJ(k))try{return W.equals(k)}catch(A){_.dI(Error("Hf`"+A),"ERROR")}N=Object.getOwnPropertyNames(W).filter(function(A){return C?W[A]!==void 0:!0});
var B=Object.getOwnPropertyNames(k).filter(function(A){return C?k[A]!==void 0:!0});
if(N.length!==B.length)return!1;N=_.b(N);for(B=N.next();!B.done;B=N.next())if(B=B.value,!H3(W[B],k[B],C,n))return!1;return!0}return!1};
IpJ=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
Qpp=function(){return _.F(function(W){if(W.nextAddress==1)return S94!==2?W.jumpTo(2):_.l(W,Ma2(),3);W.nextAddress!=2&&(S94=W.yieldResult);return W.return(S94)})};
e9I=function(){return _.F(function(W){if(W.nextAddress==1)return _.m("ab_pl_man")?pLP!==2?W.jumpTo(2):_.l(W,v$m(),3):W.return(1);W.nextAddress!=2&&(pLP=W.yieldResult);return W.return(pLP)})};
yn3=function(){return _.F(function(W){if(W.nextAddress==1)return _.m("ab_fk_sk_cl")?spp!==2?W.jumpTo(2):_.l(W,GPc(),3):W.return(1);W.nextAddress!=2&&(spp=W.yieldResult);return W.return(spp)})};
R9I=function(){return _.F(function(W){if(W.nextAddress==1)return _.m("ab_det_apb_b")?$M4!==2?W.jumpTo(2):_.l(W,ZRw(),3):W.return(1);W.nextAddress!=2&&($M4=W.yieldResult);return W.return($M4)})};
TL2=function(){var W;return _.F(function(k){if(k.nextAddress==1)return _.l(k,Promise.all([Qpp(),R9I(),e9I(),yn3()]),2);if(k.nextAddress!=3)return o$p()?k.return(!0):_.l(k,iRw(),3);W=k.yieldResult;return k.return(W===0)})};
o$p=function(){var W=new q9X;rn(W,uqI(),"j.s_");rn(W,S94,"f.i_");rn(W,$M4,"a.b_");rn(W,pLP,"p.m_");rn(W,spp,"i.f_");UM2===2&&(UM2=ORp(DM3(L14)));rn(W,UM2,"e.h_");_.m("ks_det_gpbl")||rn(W,jpK(),"p.i_");_.m("ks_get_o_pp")||rn(W,HR3(),"g.o_");_.m("ab_deg_unex_thr")||rn(W,rn2(),"a.o_");rn(W,g$m,"s.t_");_.m("ab_det_sc_inj_enf")&&rn(W,PyJ(),"s.i_");rn(W,K1p,"d.p_");_.m("ab_det_pp_ov")&&rn(W,h9z(WdK),"o.p_");_.m("ab_det_apm")&&rn(W,kII(),"o.a_");return _.m("debug_sk_em_precheck")?!0:W.ixk};
ndc=function(){var W=[].concat(_.J8(C_X));try{var k=Ub();W.push({jsonRepresentation:k.jsonRepresentation,objectRepresentation:k.objectRepresentation})}catch(C){W=[].concat(_.J8(C_X))}return W};
NBm=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(k){return 0}};
HR3=function(){if(NBm()===0)return 0;var W=Ub(),k=W.objectRepresentation,C=(0,_.JU.unsafeClone)(k),n=[];if(k&&typeof k==="object")for(var N in k)n.push(N);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!Jnm(n,Object.getOwnPropertyNames(k)))return 0}catch(B){return 0}return Jnm(C,k)?1:0};
h9z=function(W){var k=Object.getOwnPropertyNames(Object.prototype);W=_.b(W);for(var C=W.next();!C.done;C=W.next()){C=dMI(C.value);for(var n=_.b(k),N=n.next();!N.done;N=n.next())if(C===N.value)return 0}return 1};
kII=function(){for(var W=Y$J,k=0;k<W.length;k++){var C=W[k];var n=z9m(C[1]);if(C[0]!==null){C=C[0];for(var N={},B=0;B<C.length;B++){var A=z9m(C[B]);if(B===0)N[A]=n;else{var w={};w[A]=N;N=w}}n=N}C=[];C.push(n);if(C.length===0)return 0}return 1};
uqI=function(){for(var W=_.b(ndc()),k=W.next();!k.done;k=W.next()){var C=k.value;k=C.jsonRepresentation;C=C.objectRepresentation;try{var n=JSON.parse(k);if(!H3(n,C,!1,!1))return 0}catch(N){return 0}}return 1};
PyJ=function(){try{var W=_.jO("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var k=document.querySelectorAll("script"),C=_.b(k),n=C.next();!n.done;n=C.next())for(var N=n.value,B=_.b(W),A=B.next();!A.done;A=B.next()){var w=A.value;k=void 0;if((k=N.textContent)==null?0:k.includes(w))return 0}}catch(x){return 4}return 1};
iRw=function(){var W,k,C,n,N,B,A;return _.F(function(w){switch(w.nextAddress){case 1:_.F0(w,2),W=_.b(C_X),k=W.next();case 4:if(k.done)return w.return(1);n=C=k.value;N=n.jsonRepresentation;B=n.objectRepresentation;return _.l(w,(new Response(N,{status:200})).json(),7);case 7:A=w.yieldResult;if(!H3(A,B,!1,!1))return w.return(0);k=W.next();w.jumpTo(4);break;case 2:return _.EF(w),w.return(4)}})};
rn2=function(){try{btoa("abc")}catch(W){return 0}return 1};
Ma2=function(){var W,k,C,n,N,B,A,w,x,E,a;return _.F(function(X){switch(X.nextAddress){case 1:_.F0(X,2),W=_.b(ndc()),k=W.next();case 4:if(k.done)return X.return(1);n=C=k.value;N=n.jsonRepresentation;B=n.objectRepresentation;A=btoa(N);w="data:application/json;base64,"+A;x=new Request(w);Object.defineProperty(x,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(x,"method",{get:function(){return"POST"}});
Object.defineProperty(x,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(x,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(x,"body",{get:function(){return new ReadableStream}});
return _.l(X,fetch(x),7);case 7:return E=X.yieldResult,_.l(X,E.json(),8);case 8:a=X.yieldResult;if(!H3(a,B,!1,!1))return X.return(0);k=W.next();X.jumpTo(4);break;case 2:return _.EF(X),X.return(4)}})};
ORp=function(W){var k=_.b(W);W=k.next().value;k=k.next().value;try{var C=document.createElement("div");document.body.appendChild(C);var n=getComputedStyle(C).display;document.body.removeChild(C);if(n==="none")return 4;var N=getComputedStyle(k).display==="none"?0:1;document.body.removeChild(W);return N}catch(B){return 4}};
GPc=function(){var W,k,C;return _.F(function(n){W=new _.gn;k=document.createElement("button");k.classList.add("ytp-ad-skip-button");k.style.opacity="0";k.style.height="0px";k.style.width="0px";k.style.padding="0px";k.style.border="none";C=function(){k.parentElement&&k.parentElement.removeChild(k)};
k.onclick=function(){W.resolve(0);C()};
document.body.appendChild(k);setTimeout(function(){C();W.resolve(1)},50);
return n.return(W.promise)})};
v$m=function(){var W,k,C,n,N,B,A;return _.F(function(w){W=new _.gn;k=document.createElement("ytd-player");try{document.body.prepend(k)}catch(x){return w.return(4)}C=function(){k.parentElement&&k.parentElement.removeChild(k)};
k.getElementsByTagName("div").length>0?n=k.getElementsByTagName("div")[0]:(n=document.createElement("div"),k.appendChild(n));N=document.createElement("div");n.appendChild(N);B=document.createElement("video");A=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"});B.src=_.VG(_.pL(A));B.ontimeupdate=function(){C();W.resolve(0)};
N.appendChild(B);B.classList.add("html5-main-video");setTimeout(function(){N.classList.add("ad-interrupting")},200);
setTimeout(function(){C();W.resolve(1)},5E3);
return w.return(W.promise)})};
BBI=function(W,k){var C,n;return _.F(function(N){switch(N.nextAddress){case 1:C=[],n=0;case 2:if(!(n<3)){N.jumpTo(4);break}return _.l(N,fetch(W,{cache:"no-store",method:k}).then(function(B){C.push(B.status)}).catch(function(){C.push(-1)}),3);
case 3:n++;N.jumpTo(2);break;case 4:return N.return(C)}})};
bkK=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
A5w=function(W,k,C){C=C===void 0?"GET":C;var n,N,B,A,w,x,E,a,X,d;return _.F(function(V){if(V.nextAddress==1)return _.l(V,Promise.all([BBI(W,C),BBI(k,C)]),2);n=V.yieldResult;N=_.b(n);B=N.next().value;A=N.next().value;w=B;x=A;if(Math.min.apply(Math,_.J8(x))!==Math.max.apply(Math,_.J8(x))||Math.min.apply(Math,_.J8(w))!==Math.max.apply(Math,_.J8(w)))return V.return(2);if(Math.min.apply(Math,_.J8(x))===Math.min.apply(Math,_.J8(w)))return V.return(1);a=(E=performance.getEntriesByName(W))==null?void 0:E[0];
d=(X=performance.getEntriesByName(k))==null?void 0:X[0];return a&&d?bkK(d)?V.return(1):bkK(a)?V.return(0):V.return(1):V.return(2)})};
ZRw=function(){var W;return _.F(function(k){var C=[];var n;var N,B,A;(N=n=(N=Ub().objectRepresentation.streamingData)==null?void 0:(B=N.formats)==null?void 0:(A=B[0])==null?void 0:A.url)&&N&&!n.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(N=N.replace("initcwndbps","ctier=L&initcwndbps"),n={testUrl:N,baseUrl:n,method:"GET"}):n=void 0;n&&C.push(n);_.m("ab_net_tp_e")&&C.push({testUrl:_.NX.location.origin+"/ad_companion",baseUrl:_.NX.location.origin+"/generate_204",method:"OPTIONS"});if(_.m("ad_net_pb_ab")){var w;
b:{n=/api\/stats\/ads/;var x,E,a,X;N=(w=Ub().objectRepresentation.adPlacements)==null?void 0:(x=w[0])==null?void 0:(E=x.adPlacementRenderer)==null?void 0:(a=E.renderer)==null?void 0:(X=a.linearAdSequenceRenderer)==null?void 0:X.linearAds;if(N!=null&&N.length&&(w=_.z(N[0],Fdw))&&(w=w.pings,w!=null&&w.impressionPings))for(x=[].concat(_.J8(w.impressionPings)),w.progressPings&&(x=[].concat(_.J8(x),_.J8(w.progressPings))),w=_.b(x),x=w.next();!x.done;x=w.next())if(x=x.value,x.baseUrl&&n.test(x.baseUrl)){w=
x.baseUrl.replace("https://www.youtube.com","");break b}w=void 0}w&&C.push({testUrl:_.NX.location.origin+w,baseUrl:_.NX.location.origin+"/feed/download",method:"GET"})}if(_.m("ad_net_pb_pbp")){var d;b:{w=/api\/stats\/qoe/;if(x=Ub().objectRepresentation.playbackTracking){E=[];E.push(x==null?void 0:(d=x.videostatsPlaybackUrl)==null?void 0:d.baseUrl);var V;E.push(x==null?void 0:(V=x.videostatsDelayplayUrl)==null?void 0:V.baseUrl);var c;E.push(x==null?void 0:(c=x.videostatsWatchtimeUrl)==null?void 0:
c.baseUrl);var M;E.push(x==null?void 0:(M=x.ptrackingUrl)==null?void 0:M.baseUrl);var p;E.push(x==null?void 0:(p=x.qoeUrl)==null?void 0:p.baseUrl);var e;E.push(x==null?void 0:(e=x.atrUrl)==null?void 0:e.baseUrl);d=_.b(E);for(V=d.next();!V.done;V=d.next())if((V=V.value)&&w.test(V)){d=V.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}d=void 0}d&&C.push({testUrl:_.NX.location.origin+d,baseUrl:_.NX.location.origin+"/feed/download",method:"GET"})}C=C.length!==0?C[Math.floor(Math.random()*
C.length)]:void 0;return(W=C)?k.return(A5w(W.testUrl,W.baseUrl,W.method)):k.return(4)})};
jpK=function(){if(_.NX.kRS===void 0||_.NX.kRS===null||typeof _.NX.kRS!=="function")return 2;try{return _.NX.kRS()===!0?0:1}catch(W){return 0}};
wVw=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.oI(W,"unknown result type")}};
_.xCw=function(W,k){var C=Number(_.DE("CATSTAT",0));if(k.snj===void 0)return C;k=k.snj;W=wVw(W);return C&~(3<<k)|W<<k};
lam=function(W){var k,C;if((W=(k=W.auxiliaryUi)==null?void 0:(C=k.messageRenderers)==null?void 0:C.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
EdK=function(){for(var W=_.b(Object.values(_.tew)),k=W.next();!k.done;k=W.next())k=k.value,k.isAsync&&k.snj&&_.z3("CATSTAT",_.xCw(2,k))};
_.Wl=function(W,k){W=_.P3("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(k===void 0?0:k)?_.aaw(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.K5(_.he(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
faK=function(){if(!XVX){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(X){_.I4(X)}};
var k=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{k.apply(this,arguments)}catch(X){_.I4(X)}};
var C=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{C.apply(this,arguments)}catch(X){_.I4(X)}};
var n=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{n.apply(this,arguments)}catch(X){_.I4(X)}};
var N=Polymer.Base._listen,B=new WeakMap;Polymer.Base._listen=function(X,d,V){var c=function(){try{V.apply(this,arguments)}catch(M){_.I4(M)}};
B.set(V,c);N.call(this,X,d,c)};
var A=Polymer.Base._unlisten;Polymer.Base._unlisten=function(X,d,V){A.call(this,X,d,B.get(V))}}if(Polymer.Async){var w=Polymer.Async,x=w._atEndOfMicrotask;
w._atEndOfMicrotask=function(){try{x.apply(w,arguments)}catch(X){_.I4(X)}}}if(Polymer.RenderStatus){var E=Polymer.RenderStatus,a=E.afterNextRender;
E.afterNextRender=function(X,d,V){a.call(E,X,function(){try{d.apply(this,arguments)}catch(c){_.I4(c)}},V)}}XVX=!0}};
_.mCX=function(W){var k=W?_.KS(W):"";if(k){if(k.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(k.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(k.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(k.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(k.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(k.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";k=k.toLowerCase();if(k==="/")return"home";if(k===
"/channel_memberships")return"channel-memberships-shopfront";if(k.indexOf("/feed/trending")===0)return"trending";if(k.indexOf("/feed/explore")===0)return"explore";if(k.indexOf("/live")===0)return"live";if(k.indexOf("/results")===0)return"search";if(k.indexOf("/sports")===0)return"sports";if(k.indexOf("/fashion")===0||k.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(k))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(k))return"learning";
if(k.indexOf("/channel/")===0||k.indexOf("/user/")===0||k.indexOf("/gaming")===0||k.indexOf("/post/")===0)return"channel";if(dCJ(W))return"show";if(k==="/playlist"||k.indexOf("/playlist/")===0||k==="/view_play_list"||k.indexOf("/view_play_list/")===0||k.indexOf("/show/")===0)return"playlist";if(k==="/feed/history"||k.indexOf("/feed/history/")===0)return"history";if(k==="/new")return"labs";if(k==="/feed/subscriptions")return"subscriptions";if(k.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(k==="/history_controls")return"standalone";if(k.indexOf("/account")===0||k==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(k.indexOf("/paid_memberships")===0||k.indexOf("/refund")===0||k.indexOf("/purchases")===0||k.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(k.indexOf("/product")===0)return"yts-products";if(k.indexOf("/premium")===0||k.indexOf("/musicpremium")===0)return k.indexOf("/premium/offers")===0||k.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(k===
"/cart/checkout"||k==="/cart")return"ypc-checkout";if(k.indexOf("/feed/downloads")===0||k.indexOf("/redeem")===0||k.indexOf("/reporthistory")===0)return"browse";if(k.indexOf("/hashtag")===0)return"hashtag-landing-page";if(k.indexOf("/handle")===0)return"handle";if(k.indexOf("/source")===0)return"audio-pivot";if(k.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(k.indexOf("/playables")===0)return"playables";if(k.indexOf("/create/live/join")===0)return"open-in-app";if(k.indexOf("/shorts")===
0)return"shorts";if(k.indexOf("/feed/channels")===0)return"subscriptions-channels";(k=W?_.KS(W):"")&&k.indexOf("/watch")===0&&_.m("web_watch_enable_learning_journey")?(W=_.G3(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning-journey-watch"}};
dCJ=function(W){var k=W?_.KS(W):"";if(!k)return!1;k=k.toLowerCase();return k.indexOf("/show/")===0||k.indexOf("/playlist")===0&&(W=_.G3(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
nO=function(W){var k="unknown",C;var n=((C=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:C.webPageType)||"";n?(C=n.toLowerCase(),C.startsWith("web_page_type_")&&(C=C.slice(14))):C=n;C&&zHK[C.toUpperCase()]?k=zHK[C.toUpperCase()]:_.z(W,_.kZ)||_.z(W,DCm)?k="browse":_.z(W,_.CO)?k="search":_.z(W,_.RA)&&(k="watch");k==="unknown"&&_.zJ(Error("Jf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||
[])})));return k};
_.Nw=function(W){if(!_.Ve2||W)_.Ve2=_.tU();return _.Ve2};
_.J54=function(W){return!!_.z(W,_.RA)||!!_.z(W,_.YZ)&&_.m("kevlar_enable_shorts_prefetch")};
_.c5w=function(W,k){W=_.z(W,_.RA)||_.z(W,_.YZ);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(k?"-an1":"")+(W.params?"-pr"+W.params:"")};
S$m=function(W){var k=_.Oe("web_pbj_log_warning_rate",0);k=k>0&&Math.random()<k;if(!_.z(W,_.YZ))return k&&_.zJ(Error("Mf")),!1;var C;return _.m("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.z(W,_.YZ))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Iaz(W)?!0:(k&&_.zJ(Error("Nf")),!1)};
Iaz=function(W){var k=(_.z(W,_.RA)||_.z(W,_.YZ)).videoId;if(!k||!Mep.test(k))return!1;var C;return(W=(C=_.z(W.commandMetadata,_.Ok))==null?void 0:C.url)&&(W.includes(k)||W.startsWith("/clip"))?!0:!1};
_.pVc=function(){var W=_.tQ();return W.getFlag(192)?W.getFlag(190):!(_.m("web_watch_cinematics_disabled_by_default")||_.m("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Q$z())};
_.Bl=function(W,k,C){var n={};n.currentUrl=k;n.vis=W.vis!==void 0?W.vis:0;n.splay=!1;k=_.tQ();n.autoCaptionsDefaultOn=k.getFlag(66);k.getFlag(141)?k.getFlag(140)?n.autonavState="STATE_OFF":n.autonavState="STATE_ON":n.autonavState="STATE_NONE";n.html5Preference="HTML5_PREF_WANTS";isNaN(_.DE("STS"))||(n.signatureTimestamp=_.DE("STS"));W.autonav&&(n.autoplay=!0,n.autonav=!0);W.mutedAutoplay&&(n.autoplay=!0,n.mutedAutoplay=!0);W.inlinePlayback&&(n.autoplay=!0,n.autonav=!1,n.isInlineUnmutedPlayback=!!W.inlineUnmuted);
n.referer=C;n.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.m("enable_unknown_lact_fix_on_html5")&&n.lactMilliseconds==="-1"&&_.zJ(new _.AM("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};k.getFlag(194)&&(W.hasShownAmbientMode=!0);k.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.pVc()&&(W.watchAmbientModeEnabled=!0);n.watchAmbientModeContext=W;return n};
vd4=function(W){var k={},C=W.pbis||0;C&&(k.playbackBeginsInSeconds=C);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(k.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return k};
_.eHm=function(W){var k=new bK(_.DE("ONE_PICK_URL",""));k.urlParamMap_.set("hostId",W);(W=_.DE("GAPI_LOCALE"))&&k.urlParamMap_.set("hl",W);(W=_.DE("SESSION_INDEX"))&&k.urlParamMap_.set("authuser",W);(W=_.DE("DELEGATED_SESSION_ID"))&&k.urlParamMap_.set("groupId",W);return k};
GIJ=function(){var W=_.f(),k=W.resolve(_.Ah);W=W.resolve(_.xZ);return new s$z(k,W)};
$CK=function(W){if(window.IntersectionObserver)return new y5I(W,400);throw new TypeError("Wf");};
RHK=function(){var W=Hammer.TouchAction,k=W.prototype.preventDefaults;W.prototype.preventDefaults=function(C){var n=this.actions.indexOf("pan-down")>-1;if(!n)return k.call(this,C);if(!Zk4){var N=C.srcEvent;C=C.direction;var B;if((B=this.manager)==null?0:B.session.prevented)N.preventDefault();else if(n&&C&Hammer.DIRECTION_DOWN)return this.preventSrc(N)}}};
odw=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.TBw=function(){return ikw?Promise.resolve(ikw):new Promise(function(W,k){var C=self.indexedDB.open("swpushnotificationsdb");C.onerror=k;C.onsuccess=function(){var n=C.result;if(n.objectStoreNames.contains("swpushnotificationsstore"))ikw=n,W(ikw);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.TBw()};
C.onupgradeneeded=q$z})};
q$z=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
UCI=function(W){var k=uOz(),C;return _.F(function(n){switch(n.nextAddress){case 1:return _.F0(n,2),_.l(n,W.match(k,{cacheName:"yt-appshell-assets"}),4);case 4:C=n.yieldResult;_.M7(n,3);break;case 2:_.EF(n);case 3:return n.return(C)}})};
uOz=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Okp.registration.scope:Ldw;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
j$w=function(W){W.map(function(k){return k.source}).join("|")};
_.HkJ=function(W){return _.F(function(k){return k.return(UCI(W))})};
r5w=function(){var W=window.caches,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,_.HkJ(W),2);k=C.yieldResult;return C.return(!!k)})};
Cjz=function(){_.F(function(W){if(W.nextAddress==1){if(gdI)return W.jumpTo(0);gdI=!0;if(_.m("enable_system_health_primes_monitoring"))return _.gA(P_K,3E4),Kdz(),W.return();if(!(Math.random()<_.Oe("web_system_health_fraction")))return W.jumpTo(0);hHm={heightPixels:screen.height,widthPixels:screen.width};lK&&!isNaN(lK.jsHeapSizeLimit)&&(hHm.memoryTotalKbytes=String(Math.round(lK.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(hHm.devicePixelRatio=window.devicePixelRatio);return _.l(W,W22(),4)}_.gA(P_K,
3E4);return _.l(W,k1K(),0)})};
W22=function(){return _.F(function(W){if(W.nextAddress==1)return th.intersectionObserverPresent="IntersectionObserver"in window,th.serviceWorkerPresent="serviceWorker"in navigator,th.webSharePresent="share"in navigator,th.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,th.cacheStoragePresent="caches"in window,th.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,th.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
th.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ep&&Ep.webkitTemporaryStorage&&"queryUsageAndQuota"in Ep.webkitTemporaryStorage,th.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.l(W,RVm(),2);th.indexedDbPresent=W.yieldResult;th.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;th.broadcastChannelPresent="BroadcastChannel"in window;th.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(th.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,th.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ab(W)})};
P_K=function(){var W=9E4+Math.random()*2E3;_.ie()>W||(_.m("enable_system_health_primes_monitoring")?Kdz():k1K())};
k1K=function(){var W;return _.F(function(k){if(k.nextAddress==1)return _.l(k,n8z(),2);W=k.yieldResult;_.a9("systemHealthCaptured",W);_.ab(k)})};
Kdz=function(){var W={metric:{}},k=NXm();k.networkEvents.length&&(W.metric.networkEvents=Y1p(k));_.a9("systemHealthCaptured",W)};
n8z=function(){var W,k,C,n,N,B,A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:W={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)};k=window.screen;_.m("enable_is_extended_monitoring")&&k&&"isExtended"in k&&(W.isExtended=!!k.isExtended);C={metric:{staticContext:hHm,dynamicContext:W,webMetric:BXI,webApiSupport:th}};
if(n=_.VM())C.csn=n;lK&&(C.metric.webMetric.currentHeapKbytes=Math.round(lK.usedJSHeapSize/1E3));window.matchMedia&&(C.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,C.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,C.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ep&&typeof Ep.getBattery==="function")){a.jumpTo(2);break}return _.l(a,Ep.getBattery(),3);case 3:if(N=
a.yieldResult)C.metric.dynamicContext.chargingStatus=N.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(C.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(th.storageEstimatePresent)return _.l(a,navigator.storage.estimate(),8);if(!th.webkitTemporaryStoragePresent){a.jumpTo(5);break}return _.l(a,buP(),7);case 7:B=a.yieldResult;a.jumpTo(5);break;case 8:B=a.yieldResult;case 5:return C.metric.dynamicContext.deviceStorageQuotaMbytes=((A=B)==null?0:A.quota)?String(Math.round(B.quota/
1048576/10)*10):"-1",C.metric.dynamicContext.deviceStorageUsageMbytes=((w=B)==null?0:w.usage)?String(Math.round(B.usage/1048576/10)*10):"-1",x=C.metric.dynamicContext,_.l(a,r5w(),9);case 9:return x.hasAppShell=a.yieldResult,E=NXm(),E.networkEvents.length&&(C.metric.networkEvents=Y1p(E)),a.return(C)}})};
buP=function(){return new Promise(function(W){var k;th.webkitTemporaryStoragePresent&&(k=Ep.webkitTemporaryStorage)!=null&&k.queryUsageAndQuota?Ep.webkitTemporaryStorage.queryUsageAndQuota(function(C,n){W({usage:C,quota:n})}):W(void 0)})};
_.a8=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return AZw(W[0],W[1],W[2])};
_.Xi=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var k=_.F2w(W,function(C){return C==(C&255)});
W[3]=(W[3]/255).toFixed(3);if(!k)throw Error("Xf`"+W.join(","));return"rgba("+W.join(",")+")"};
_.wrm=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.xY4=function(W){W=W.map(function(k){k/=255;return k<=.03928?k/12.92:Math.pow((k+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
fO=function(W,k){W=_.wrm(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+k+")"};
_.ljm=function(){try{return!!self.localStorage}catch(W){return!1}};
XrJ=function(){if(tR4())_.zJ(Error("Yf"));else{var W=document.createElement("iframe");W.style.display="none";var k=k===void 0?window.location.href:k;var C=_.XE(_.DE("PERSIST_IDENTITY_IFRAME_URL"));k=C?C:(new URL(k)).host.indexOf("studio")===0?_.k0(E84,"persist_identity"):_.k0(ajc,"persist_identity");_.jew(W,1,k);W.id="persist_identity";var n;(n=document.body)==null||n.appendChild(W)}};
tR4=function(){var W=fjm;W||(W=document.querySelector("#persist_identity"));return W};
dYc=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(k){W=!0}return(_.DE("INNERTUBE_CLIENT_NAME")==="WEB"||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
mY2=function(W,k){if(!dYc())return!1;k||(k=_.DE("LOGIN_INFO"));return k?(W.session_logininfo=k,!0):!1};
DY3=function(W,k){W=W===void 0?!1:W;if((k===void 0||!k)&&zPp!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.cv("LOG_STICKINESS",!1)){k=_.VM();var C=_.DH(),n={identityStickinessData:{initialState:zPp}};k&&C&&_.oz(k,C,n)}if(k=tR4())if(C=k.src?(new URL(k.src)).origin:"*",W){var N;(N=k.contentWindow)==null||N.postMessage({action:"clear"},C)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var B;(B=k.contentWindow)==null||B.postMessage({loginInfo:W},C)}};
_.di=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.z3("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),DY3(!0,W)}catch(k){}};
VRP=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.di():W.startsWith("https://accounts.google.com/ServiceLogin")?_.di():W.startsWith("https://myaccount.google.com")&&_.Gb(W).getPath().endsWith("/youtubeoptions")&&_.di())};
mg=function(W,k){VRP(W);if(_.cv("LOGGED_IN",!0)&&dYc()){var C=nM2(W);C==null&&(C={});mY2(C,k)&&_.qL(W,C)}};
JZ3=function(){function W(k){for(k=k.target;k&&k.nodeName!=="A";)if(k=k.parentNode,!(k&&k instanceof HTMLElement))return;if(k&&!k.hasAttribute("download")&&k.getAttribute("rel")!=="external"&&k.href)return k.href}
document.addEventListener("mousedown",function(k){k.button!==0&&(k=W(k))&&mg(k)});
document.addEventListener("click",function(k){(k=W(k))&&mg(k)})};
S1c=function(){var W=new cZm;try{if(_.cv("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(w){W.increment(5,!1);return}if(_.DE("LOGIN_INFO")){var k=IjK?IjK:window.location;_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&XrJ();var C=nM2(k.href);C==null&&(C={});var n=C.session_logininfo,N=Number(window.sessionStorage.getItem("stickiness_reload")),B=n===_.DE("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
N>=2||B)N>=2?W.increment(2,B):B?W.increment(7,B):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,B),zPp="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.DE("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.DE("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,B),window.sessionStorage.removeItem("stickiness_reload");
else if(N<2){window.sessionStorage.setItem("stickiness_reload",String(N+1));var A=k.href;A=_.ud(A,"sttick");mg(A,window.sessionStorage.getItem("session_logininfo"));A=_.yK(A,{sttick:N});W.increment(N,B);_.WRw(k,A)}}else W.increment(6,!1)}else _.di(!1)}catch(w){}};
_.zy=function(W,k,C,n,N){k=k===void 0?{}:k;C=C===void 0?"":C;n=n===void 0?window:n;W=_.$n(W,k);mg(W);C=_.QG(W+C,N);_.WRw(n.location,C)};
MRI=function(W){if(W.urlEndpoint){if(W=_.G3(W.urlEndpoint.url),W.adurl)return T3(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
Qt4=function(W){if(!W||!W.reportingPings)return null;var k={};W.reportingPings.forEach(function(C){C.pingType in k?k[C.pingType].push(C.url):k[C.pingType]=[C.url]});
return{adpings:lrz(k)}};
_.Vi=function(W){W=W===void 0?!1:W;var k=_.tQ(),C="USER_INTERFACE_THEME_LIGHT";k.getFlag(165)?C="USER_INTERFACE_THEME_DARK":k.getFlag(174)?C="USER_INTERFACE_THEME_LIGHT":_.D6()&&(C="USER_INTERFACE_THEME_DARK");return W?C:prp()||C};
_.v8w=function(){return!_.m("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.D6=function(){return _.v8w()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Jh=function(){var W=_.tQ();return _.v8w()&&!W.getFlag(165)&&!W.getFlag(174)};
prp=function(){var W=W===void 0?window.location.href:W;if(_.m("kevlar_disable_theme_param"))return null;var k=_.KS(W);if(_.ePX(k))return"USER_INTERFACE_THEME_DARK";try{var C=_.G3(W).theme;return stw.get(C)||null}catch(n){}return null};
_.ePX=function(W){return _.m("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.$YP=function(W,k,C,n,N){k=k===void 0?!1:k;C=C===void 0?!1:C;var B=_.DE("INNERTUBE_CONTEXT");if(!B)return _.dI(Error("bg")),{};B=(0,_.JU.unsafeClone)(B);_.m("web_no_tracking_params_in_shell_killswitch")||delete B.clickTracking;B.client||(B.client={});var A=B.client;A.clientName==="MWEB"&&A.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(A.clientFormFactor=_.DE("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");A.screenWidthPoints=window.innerWidth;A.screenHeightPoints=window.innerHeight;A.screenPixelDensity=
Math.round(window.devicePixelRatio||1);A.screenDensityFloat=window.devicePixelRatio||1;A.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());A.userInterfaceTheme=_.Vi();if(!k){var w=_.Ybz();w&&(A.connectionType=w);_.m("web_log_effective_connection_type")&&(w=b5I())&&(B.client.effectiveConnectionType=w)}var x;if(_.m("web_log_memory_total_kbytes")&&((x=_.NX.navigator)==null?0:x.deviceMemory)){var E;x=(E=_.NX.navigator)==null?void 0:E.deviceMemory;B.client.memoryTotalKbytes=""+x*1E6}k&&n&&!_.m("web_it_context_set_original_url_ks")&&
(A.originalUrl=G1m(_.NX.location.href,n).toString());_.m("web_gcf_hashes_innertube")&&(w=dwI())&&(E=w.coldConfigData,x=w.coldHashData,w=w.hotHashData,B.client.configInfo=B.client.configInfo||{},E&&(B.client.configInfo.coldConfigData=E),x&&(B.client.configInfo.coldHashData=x),w&&(B.client.configInfo.hotHashData=w));E=_.G3(_.NX.location.href);!_.m("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(A.internalGeo=E.internalcountrycode);!_.m("web_populate_client_screen_killswitch")&&N&&(A.clientScreen=
N);A.clientName==="MWEB"||A.clientName==="WEB"?(A.mainAppWebInfo={graftUrl:n||_.NX.location.href},_.m("kevlar_woffle")&&_.cl.instance&&(n=_.cl.instance,A.mainAppWebInfo.pwaInstallabilityStatus=!n.appInstalledEventFired&&n.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),A.mainAppWebInfo.webDisplayMode=wlc(),A.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):A.clientName==="TVHTML5"&&(!_.m("web_lr_app_quality_killswitch")&&
(n=_.DE("LIVING_ROOM_APP_QUALITY"))&&(A.tvAppInfo=Object.assign(A.tvAppInfo||{},{appQuality:n})),n=_.DE("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(A.tvAppInfo=Object.assign(A.tvAppInfo||{},{certificationScope:n}));!_.m("web_populate_time_zone_itc_killswitch")&&(n=nS3())&&(A.timeZone=n);(n=cQm())?A.experimentsToken=n:delete A.experimentsToken;A=Ir4();n=_.yZm();n=(0,_.JU.getValues)(n.tokenJars);B.request=Object.assign({},B.request,{internalExperimentFlags:A,consistencyTokenJars:n});!_.m("web_prequest_context_killswitch")&&
(A=_.DE("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(B.request.externalPrequestContext=A);n=_.tQ();A=n.getFlag(58);n=n.get("gsml","");B.user=Object.assign({},B.user);A&&(B.user.enableSafetyMode=A);n&&(B.user.lockedSafetyMode=!0);_.m("warm_op_csn_cleanup")?C&&(k=_.VM())&&(B.clientScreenNonce=k):!k&&(k=_.VM())&&(B.clientScreenNonce=k);W&&(B.clickTracking={clickTrackingParams:W});if(W=_.QK("yt.mdx.remote.remoteClient_"))B.remoteClient=W;_.I8.getInstance().setLocationOnInnerTubeContext(B);try{var a=$lP(),
X=a.bid;delete a.bid;B.adSignalsInfo={params:[],bid:X};for(var d=_.b(Object.entries(a)),V=d.next();!V.done;V=d.next()){var c=_.b(V.value),M=c.next().value,p=c.next().value;a=M;X=p;W=void 0;(W=B.adSignalsInfo.params)==null||W.push({key:a,value:""+X})}var e,u;if(((e=B.client)==null?void 0:e.clientName)==="TVHTML5"||((u=B.client)==null?void 0:u.clientName)==="TVHTML5_UNPLUGGED"){var h=_.DE("INNERTUBE_CONTEXT");h.adSignalsInfo&&(B.adSignalsInfo.advertisingId=h.adSignalsInfo.advertisingId,B.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",B.adSignalsInfo.limitAdTracking=h.adSignalsInfo.limitAdTracking)}}catch(L){_.dI(L)}return B};
_.SI=function(){return{isShellLoad:_.cv("IS_SHELL_LOAD",!1)}};
RPK=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(ZuI)})};
ZuI=function(W){W&&_.o8w(iu4,W.scope)};
_.o8w=function(W,k){k={scope:k||_.LS("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Ez(W),k)};
Mw=function(W,k,C,n){if(k&&k.serializedYpcCujLoggingParams){if(C){var N={};N.transactionErrorType=C;n&&(N.errorMessage=n);k.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:N}}}C={};C.ypcCujContext=k;W=_.P3("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,C);_.K5(_.he(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.TXc=function(W,k,C,n){var N={};N.serializedTransactionFlowLoggingParams=k;C&&(N.errorType=C);n&&(N.errorMessage=n);_.a9(W,N);_.fM()};
_.q1p=function(W){W&&_.TXc("transactionFlowStarted",W)};
_.uCm=function(W){W&&_.TXc("transactionFlowCancelled",W)};
_.Qi=function(W,k,C){k&&_.TXc("transactionFlowFailed",k,W,C)};
_.pO=function(){this.megabloxUrl_=null};
_.vl=function(W){try{var k=UYm==null?void 0:UYm.composedPath(W)}catch(C){k=W.composedPath?W.composedPath():[]}return k&&k.length>0?k:W.composedPath?W.composedPath():[]};
_.eI=function(W){return _.vl(W)[0]};
_.sp=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var k=W.indexOf("style-scope");return k>-1&&k+1<W.length?W[k+1]:null};
Gy=function(W){if(!(W instanceof HTMLElement))return null;var k=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return k?k:_.sp(W)};
Ou3=function(W,k){return W.replace(/[^a-z]*[^\s]+/g,function(C){return C+".style-scope."+k})};
L2c=function(W,k){return k?W.split(",").map(function(C){return Ou3(C.trim(),k)}).join(", "):W};
_.yi=function(W){var k,C,n,N;return(N=(n=(C=(k=W.root)!=null?k:W.shadowRoot)!=null?C:W.__shady_native_shadowRoot)!=null?n:W.__shady_shadowRoot)!=null?N:W};
$Z=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
jtX=function(W){var k,C,n;return(n=(C=(k=W.parentElement)!=null?k:W.__shady_native_parentElement)!=null?C:W.__shady_parentElement)!=null?n:null};
Hu4=function(W){var k,C,n;return(n=(C=(k=W.parentNode)!=null?k:W.__shady_native_parentNode)!=null?C:W.__shady_parentNode)!=null?n:null};
rZm=function(W){var k,C,n;return(n=(C=(k=W.__shady_parentNode)!=null?k:W.__shady_native_parentNode)!=null?C:W.parentNode)!=null?n:null};
g8p=function(W){var k,C;return(C=(k=Hu4(W))!=null?k:W.host)!=null?C:null};
Pjp=function(W){var k,C,n;return(n=(C=(k=W.nextSibling)!=null?k:W.__shady_native_nextSibling)!=null?C:W.__shady_nextSibling)!=null?n:null};
K2p=function(W){var k,C,n;return(n=(C=(k=W.previousSibling)!=null?k:W.__shady_native_previousSibling)!=null?C:W.__shady_previousSibling)!=null?n:null};
hPP=function(W){var k,C,n;return(n=(C=(k=W.nextElementSibling)!=null?k:W.__shady_native_nextElementSibling)!=null?C:W.__shady_nextElementSibling)!=null?n:null};
WA4=function(W){var k,C,n;return(n=(C=(k=W.previousElementSibling)!=null?k:W.__shady_native_previousElementSibling)!=null?C:W.__shady_previousElementSibling)!=null?n:null};
kk2=function(W){var k,C,n;return new Set([].concat(_.J8((k=W.children)!=null?k:[]),_.J8((C=W.__shady_native_children)!=null?C:[]),_.J8((n=W.__shady_children)!=null?n:[])))};
C42=function(W){var k,C,n;return new Set([].concat(_.J8((k=W.childNodes)!=null?k:[]),_.J8((C=W.__shady_native_childNodes)!=null?C:[]),_.J8((n=W.__shady_childNodes)!=null?n:[])))};
nAw=function(W){if(!W)return null;var k=_.sp(W);if(!k){var C;return(C=Node.prototype.getRootNode)==null?void 0:C.call(W)}k=k.toUpperCase();for(W=jtX(W);W&&W.tagName!==k;)W=jtX(W);return W?_.yi(W):null};
Nlm=function(W){for(;W&&!(W instanceof HTMLElement);)W=g8p(W);return W};
YmJ=function(W){var k=Nlm(W);return W===k?_.sp(W):k?Gy(k):null};
BlX=function(W){return(W=Nlm(W))?Gy(W):null};
bcm=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var k,C;if(((C=(k=W.textContent)==null?void 0:k.trim())!=null?C:"")==="")return!1}return!0};
Z6=function(W,k,C){var n=k(W);for(C=C===void 0?BlX(W):C;n&&(YmJ(n)!==C||!bcm(n));)W=n,n=k(W);return n};
Aaz=function(W,k,C){if(!k)return null;W=BlX(W);return YmJ(k)===W&&bcm(k)?k:Z6(k,C,W)};
FA2=function(W){return Z6(W,rZm,_.sp(W))};
wZJ=function(W){return Z6(W,hPP)};
xgw=function(W){return Z6(W,Pjp)};
l_w=function(W){return Z6(W,WA4)};
tAJ=function(W){return Z6(W,K2p)};
EAJ=function(W){return Aaz(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,Pjp)};
a_P=function(W){var k,C,n;var N=(n=(C=(k=W.firstElementChild)!=null?k:W.__shady_native_firstElementChild)!=null?C:W.__shady_firstElementChild)!=null?n:null;return Aaz(W,N,hPP)};
XZw=function(W){var k,C,n;var N=(n=(C=(k=W.lastChild)!=null?k:W.__shady_native_lastChild)!=null?C:W.__shady_lastChild)!=null?n:null;return Aaz(W,N,K2p)};
f_w=function(W){var k,C,n;var N=(n=(C=(k=W.lastElementChild)!=null?k:W.__shady_native_lastElementChild)!=null?C:W.__shady_lastElementChild)!=null?n:null;return Aaz(W,N,WA4)};
dg2=function(W){var k=BlX(W);return Array.from(C42(W)).filter(function(C){return YmJ(C)===k})};
mgm=function(W){var k=Gy(W);return Array.from(kk2(W)).filter(function(C){return _.sp(C)===k})};
_.R8=function(W,k,C){if(W instanceof HTMLElement&&_.sp(W)===C){var n=Array.from(W.classList).indexOf("style-scope");if(n===-1)W.classList.add("style-scope"),W.classList.add(k);else if(!(n+1>=W.classList.length)){n=W.classList[n+1];var N,B;W==null||(N=W.classList)==null||(B=N.replace)==null||B.call(N,n,k)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(N=_.b(kk2(W)),B=N.next();!B.done;B=N.next())_.R8(B.value,k,C);return W};
o8=function(W,k){if(W instanceof HTMLElement&&_.sp(W)===k){var C=Array.from(W.classList).indexOf("style-scope");C===-1||C+1>=W.classList.length||W.classList.remove("style-scope",W.classList[C+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){C=_.b(W.children);for(var n=C.next();!n.done;n=C.next())o8(n.value,k)}return W};
_.zYK=function(W,k){return $Z(W).prototype.appendChild.call(W,k)};
DgJ=function(W,k){if(W===k)return!0;W=C42(W);return Array.from(W).some(function(C){return DgJ(C,k)})};
_.S=function(W,k){if(W instanceof iK)return W;(k==null?0:k.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new iK(W)};
JaK=function(){var W=iK.prototype,k=[].concat(_.J8(VAm?[]:["getRootNode"]),["setAttribute","removeAttribute"]);k=_.b(k);for(var C=k.next(),n={};!C.done;n={method$jscomp$49:void 0},C=k.next())n.method$jscomp$49=C.value,W[n.method$jscomp$49]=function(N){return function(){return this.host[N.method$jscomp$49].apply(this.host,arguments)}}(n)};
I_2=function(){var W=iK.prototype,k=[].concat(_.J8(VAm?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.J8(caI?[]:["querySelector","querySelectorAll"]));k=_.b(k);for(var C=k.next(),n={};!C.done;n={method$jscomp$50:void 0},C=k.next())n.method$jscomp$50=C.value,W[n.method$jscomp$50]=function(N){return function(){return this.root[N.method$jscomp$50].apply(this.root,arguments)}}(n)};
Qc4=function(){var W=iK.prototype,k=[].concat(_.J8(Smc?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.J8(MAc?[]:["parentNode"]));k=_.b(k);for(var C=k.next(),n={};!C.done;n={prop$jscomp$62:void 0},C=k.next())n.prop$jscomp$62=C.value,Object.defineProperty(W,n.prop$jscomp$62,{get:function(N){return function(){return this.host[N.prop$jscomp$62]}}(n),
configurable:!0})};
eYX=function(){var W=iK.prototype,k=["activeElement"].concat(_.J8(Smc?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.J8(pZ2?[]:["children"]),_.J8(vAP?[]:["lastChild"]));k=_.b(k);for(var C=k.next(),n={};!C.done;n={prop$jscomp$63:void 0},C=k.next())n.prop$jscomp$63=C.value,Object.defineProperty(W,n.prop$jscomp$63,{get:function(N){return function(){return this.root[N.prop$jscomp$63]}}(n),
configurable:!0})};
scP=function(){for(var W=iK.prototype,k=_.b(["innerHTML","textContent"]),C=k.next(),n={};!C.done;n={prop$jscomp$64:void 0},C=k.next())n.prop$jscomp$64=C.value,Object.defineProperty(W,n.prop$jscomp$64,{get:function(N){return function(){return this.root[N.prop$jscomp$64]}}(n),
set:function(N){return function(B){this.root[N.prop$jscomp$64]=B}}(n),
configurable:!0})};
GkX=function(W){var k=iK.prototype;W=_.b(Object.entries(W));for(var C=W.next(),n={};!C.done;n={fn$jscomp$359:void 0},C=W.next()){var N=_.b(C.value);C=N.next().value;N=N.next().value;n.fn$jscomp$359=N;k[C]=function(B){return function(){return B.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.J8(arguments)))}}(n)}};
$gJ=function(){for(var W=iK.prototype,k=_.b(Object.entries(yaP)),C=k.next(),n={};!C.done;n={fn$jscomp$360:void 0},C=k.next()){var N=_.b(C.value);C=N.next().value;N=N.next().value;n.fn$jscomp$360=N;Object.defineProperty(W,C,{get:function(B){return function(){return B.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.J8(arguments)))}}(n),
configurable:!0})}};
_.Ty=function(W){return W instanceof Zc3||W instanceof Document?W:new Zc3(W)};
RY2=function(){for(var W=Zc3.prototype,k=_.b("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),C=k.next(),n={};!C.done;n={method$jscomp$51:void 0},C=k.next())n.method$jscomp$51=C.value,W[n.method$jscomp$51]=function(N){return function(){return HTMLElement.prototype[N.method$jscomp$51].call.apply(HTMLElement.prototype[N.method$jscomp$51],[this.node].concat(_.J8(arguments)))}}(n)};
oAI=function(){for(var W=Zc3.prototype,k=_.b("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),C=k.next(),n={};!C.done;n={prop$jscomp$65:void 0},C=k.next())n.prop$jscomp$65=C.value,Object.defineProperty(W,n.prop$jscomp$65,{get:function(N){return function(){var B;return(B=this.node["__shady_native_"+N.prop$jscomp$65])!=null?B:this.node[N.prop$jscomp$65]}}(n),
configurable:!0})};
_.qw=function(W,k,C){C===void 0&&(C=!W.classList.contains(k));C?W.classList.add(k):W.classList.remove(k)};
_.uK=function(W,k,C){C===void 0&&(C=!W.hasAttribute(k));if(k==="class")throw Error("fg");C?_.Ty(W).setAttribute(k,""):_.Ty(W).removeAttribute(k)};
ic3=function(W){return(W.localName!=="slot"?[]:(0,_.Up)(W).assignedNodes({flatten:!0})).filter(function(k){return k.nodeType===Node.ELEMENT_NODE})};
_.TlK=function(W){return(W=_.S(W).querySelector("slot"))&&W.localName==="slot"?ic3(W):[]};
_.Op=function(W,k){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,k)};
qmP=function(W,k){var C=k.bind(W);return function(n){C(n,n.detail)}};
_.LO=function(W,k){var C=uyX.get(W);C||(C=new WeakMap,uyX.set(W,C));if(C.has(k))return C.get(k);if(_.m("web_fi_listen_disable_bound_fn_helper")){var n=k.bind(W);W=function(N){n(N,N==null?void 0:N.detail)}}else W=qmP(W,k);
C.set(k,W);return W};
LAw=function(W,k){Ugz(W);W.created[Oc4].push(k)};
Ugz=function(W){if(!W.created||!W.created[Oc4]){var k=W.created,C=k?[k]:[];W.created=function(){for(var n=_.b(C),N=n.next();!N.done;N=n.next())N.value.apply(this)};
W.created[Oc4]=C}};
jcK=function(W){return function(){var k=_.v6.apply(0,arguments);return function(C,n,N){W.apply(null,_.J8(k))(C,n,N)}}};
HcI=function(){return function(){var W=_.v6.apply(0,arguments);return function(k,C,n){zkp.apply(null,_.J8(W))(k,C,n)}}};
_.v=function(W){return HcI()(W)};
_.G=function(){return jcK(cuw).apply(null,_.J8(_.v6.apply(0,arguments)))};
_.jI=function(W){return _.m("pbcm_fi_listen_decorators")?rap(W):jcK(V5m)(W)};
rap=function(W){return function(k,C){LAw(k,function(){var n=this[C],N=_.m("web_fi_listen_disable_bound_fn_helper")?function(B){n(B,B.detail)}.bind(this):qmP(this,n);
gAX.has(W)?m5(this.hostElement,W,N):this.hostElement.addEventListener(W,N)})}};
_.Hl=function(){return jcK(Juw).apply(null,_.J8(_.v6.apply(0,arguments)))};
_.Z=function(W){W=W===void 0?{}:W;return jcK(DJ2)(W)};
_.ri=function(W){if(W.hostElement&&W!==W.hostElement){var k=_.Ek(W.hostElement);k=W.renderIdom?k:k.shadowRoot}k||(W=W.root,k=W instanceof Node?_.Ek(W):null);return k};
_.gi=function(W){return P4c?KAX(W):function(k,C){Object.defineProperty(k,C,{get:function(){var n;return(n=_.ri(this))==null?void 0:n.querySelector(W)},
enumerable:!0,configurable:!0})}};
KAX=function(W){return function(k,C){Object.defineProperty(k,C,{get:function(){var n,N=(n=_.S(this.hostElement))==null?void 0:n.querySelector(W);if(N)return N;var B;n=(B=this.is)!=null?B:"yt-undefined-target";hYw!=null||(hYw=Date.now());(QM(n)+hYw)%100>_.Oe("pbcm_fi_query_decorators_fallback_logging_pct")||(WZc!=null||(WZc=new kxm),Ci4.has(n)||(Ci4.add(n),WZc.increment(n)));var A;return(A=_.ri(this))==null?void 0:A.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.hh=function(W){return P4c?nC2(W):function(k,C){Object.defineProperty(k,C,{get:function(){var n;return(n=_.ri(this))==null?void 0:n.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
nC2=function(W){return function(k,C){Object.defineProperty(k,C,{get:function(){var n,N=(n=_.S(this.hostElement))==null?void 0:n.querySelectorAll(W);if(N==null?0:N.length)return N;var B;return(B=_.ri(this))==null?void 0:B.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
NOz=function(W){return function(k){if(![_.iD,_.R].includes(Object.getPrototypeOf(k.prototype).constructor))throw Error("gg");l8I(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(k)}};
_.kr=function(){var W=W===void 0?{}:W;return function(k){if(![TX,_.Wp].includes(Object.getPrototypeOf(k.prototype).constructor))throw Error("hg");t5X(Object.assign({},W,{disableInheritanceCheck:!0}))(k)}};
BO3=function(W,k){YDw[W]!=null||(YDw[W]=new Set);YDw[W].add(k)};
_.Cq=function(){var W=_.Hl.apply(null,_.J8(_.v6.apply(0,arguments)));return function(k,C){BO3(k.is,C);W(k,C)}};
Yr=function(W,k,C){if(nq(W)&&!bGJ.has(k)){k=k.replace(/^JSC\$[\d]+_/,"");k=k.replace(/\.\d+(\.|$)/g,function(B,A){return".#"+A});
Ns[W]!=null||(Ns[W]={});var n,N;(n=Ns[W])[N=k]!=null||(n[N]=new Set);Ns[W][k].has(C)||(Ns[W][k].add(C),_.a9("polymerPropertyAccessEvent",{componentName:W,propertyName:k,accessType:C}))}};
Acw=function(){return _.m("polymer_property_access_logging_debug")||_.m("polymer_enable_property_access_logging")};
nq=function(W){if(_.m("polymer_property_access_logging_debug"))return!0;if(!_.m("polymer_enable_property_access_logging"))return!1;FZX||(FZX=Date.now());return(QM(W)+FZX)%100<_.Oe("polymer_property_access_logging_percent")};
w2z=function(W,k){return nq(k)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(C,n,N){if(C.hostElement.loggingStatus.bypassProxyController)return C[n];C.hostElement.loggingStatus.isExternalGet=!0;var B=C[n];C.hostElement.loggingStatus.isExternalGet=!1;if(B instanceof Function)return function(){var A=_.v6.apply(0,arguments);try{return C.hostElement.loggingStatus.currentExternalCall=n,Yr(k,n,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),B.apply(this===N?C:this,A)}finally{C.hostElement.loggingStatus.currentExternalCall=
void 0}};
Yr(k,n,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return B},
set:function(C,n,N){if(C.hostElement.loggingStatus.bypassProxyController)return C[n]=N,!0;C.hostElement.loggingStatus.isRendererStamper?Yr(k,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):C.hostElement.loggingStatus.isDeclarativeExternal||Yr(k,n,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{C.hostElement.loggingStatus.currentExternalSet=n,C[n]=N}finally{C.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
xkI=function(W,k){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==k&&Yr(W.tagName.toLowerCase(),k,"PROPERTY_ACCESS_GET_INTERNAL")};
Bp=function(W,k,C){W&&(C||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==k)&&Yr(W.tagName.toLowerCase(),k,"PROPERTY_ACCESS_SET_INTERNAL")};
lU3=function(){return{_definePropertyAccessor:function(W,k){var C=this,n=C.hostElement.loggingStatus;n&&(n.isDefiningPropertyAccessor=!0);var N=C[W];N!==void 0&&(C.__data?C._setPendingProperty(W,N):(C.__dataProto!=null||(C.__dataProto={}),C.__dataProto[W]=N));n&&(n.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){xkI(C.hostElement,W);return this.__data[W]},
set:function(B){k||this._setPendingProperty(W,B,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(k,C,n){Bp(this.hostElement,k);return W.apply(this,[k,C,n])}}}};
ECw=function(W){Acw()&&_.v(tLw.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
aUc=function(W,k){if(k.resolvedFactories.length!==W.resolvedFactories.length)return!0;k=_.b(k.resolvedFactories.entries());for(var C=k.next();!C.done;C=k.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;if(n.providerClass){if(n.providerClass!==W.resolvedFactories[C].providerClass)return!0}else if(n.providerValue){if(n.providerValue!==W.resolvedFactories[C].providerValue)return!0}else if(n.factory!==W.resolvedFactories[C].factory)return!0}return!1};
X23=function(W,k){W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,C.constructor===Array)X23(C,k);else{var n=k;n.has(C)||(C.inject&&n.add(C),C.behaviors&&X23(C.behaviors,n))}};
b0=function(W,k){var C=W[k];W[k]=function(){var n=_.v6.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(C)return C.apply(this,n)}};
z3I=function(){_.Av.Class=function(C,n){C=fU4(C,n);b0(C.prototype,"created");return C};
b0(Fr.prototype,"_initializeProperties");b0(_.wH.prototype,"_initializeProperties");if(dkI)b0(mkm,"created");else{var W=function(){b0(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var k=customElements.define;customElements.define=function(C,n,N){k.call(customElements,C,n,N);C==="tp-yt-iron-list"&&(W(),customElements.define=k)}}}};
VLc=function(W,k){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(Dkw.InjectBehavior);W.prototype.provide=k};
_.l0=function(W){return function(k){if(!W.disableElementRegistration){W.noInjection||VLc(k,W.providers);var C=k.prototype;C.__templateHelpers||zkp(xr.prototype)(C,"__templateHelpers");C=W.is;Jc4||(Jc4=Date.now());(QM(C)+Jc4)%100<_.Oe("polymer_log_prop_change_observer_percent")&&zkp(ccw.prototype)(k.prototype,"__propertyObserverObserver");k.prototype.behaviors=k.prototype.behaviors||[];k.prototype.behaviors.unshift(_.IU2.YtHostElementBehavior);ECw(k);NOz({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(k)}}};
_.T=function(W){return _.l0({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Q_X=function(W,k){if(SDm){W=new W;for(var C=_.b(Object.getOwnPropertyNames(W)),n=C.next();!n.done;n=C.next())n=n.value,k[n]=W[n];for(C=k;C&&C!==Object.prototype;C=Object.getPrototypeOf(C)){n=_.b(Object.getOwnPropertyNames(C));for(var N=n.next();!N.done;N=n.next())N=N.value,W.hasOwnProperty(N)||Object.defineProperty(W,N,ML4(k,N))}}else W.apply(k)};
ML4=function(W,k){return{get:function(){var C=W[k];return C instanceof Function?C.bind(W):C},
set:function(C){W[k]=C}}};
vCm=function(W,k){for(var C=W._noAccessors,n=_.b(Object.getOwnPropertyNames(W)),N=n.next();!N.done;N=n.next())if(N=N.value,!p2P.has(N))if(C)k[N]=W[N];else{var B=Object.getOwnPropertyDescriptor(W,N);B&&(B.configurable=!0,Object.defineProperty(k,N,B))}};
e33=function(W,k,C){return function(n){if(C){var N=C();n.model=N}if(W[k])W[k](n,n.detail)}};
tv=function(W){var k=[];if(typeof W==="string")W.length>0&&k.push.apply(k,_.J8(W.split(".")));else{W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,typeof C==="string"?k.push.apply(k,_.J8(C.split("."))):k.push(C)}return k};
EC=function(W,k){if(k[k.length-1]!=="*"&&k[k.length-1]!=="splices"){for(var C=0;C<k.length;C++){if(!W)return;W=W[k[C]]}return W}};
s_z=function(W,k){if(W.length>k.length)return!1;for(var C=0;C<W.length;C++)if(W[C]!==k[C])return!1;return!0};
ycz=function(W,k,C){if(k.type==="compute"){var n=k.getter.bind(C);var N=k.args}else n=function(){return C[k.method.methodName].apply(C,_.J8(_.v6.apply(0,arguments)))},N=k.method.args;
GxI(W,k.propertyKey,n,N,k.value)};
ZGw=function(W,k){if(k.readOnly){var C=Object.getOwnPropertyDescriptor(W.model,k.propertyKey);Object.defineProperty(W.model,k.propertyKey,{get:C.get,set:function(){}});
W.model[$k4(k.propertyKey)]=C.set}};
R34=function(W,k,C){if(C){var n=k.propertyKey,N=k.selector;k=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.J8(k.selectorArgs.map(function(B){return{type:"path",path:B}})));
GxI(W,n,function(B){var A=_.v6.apply(1,arguments);return N.apply(null,[C.getState()].concat(_.J8(A)))},k)}};
iGP=function(W,k,C){var n=_.Be(k.propertyKey)+"-changed";oCz(W,function(N){var B={value:N.value,queueProperty:!0};N.path.split(".").length>1&&(B.path=N.path);C.dispatchEvent(new CustomEvent(n,{detail:B}))},[{type:"wildcard",
path:k.propertyKey}])};
TO2=function(W,k,C){oCz(W,function(){C[k.method.methodName].apply(C,_.J8(_.v6.apply(0,arguments)))},k.method.args)};
$k4=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
qDm=function(){var W,k=dw(function(C){W=C},!1);
return[W,k]};
j_p=function(W){W=W.trim().replace(uTK,",").replace(Uk3,"$1");var k=W[0];k==="-"&&(k=W[1]);if(k>="0"&&k<="9")return{type:"literal",value:Number(W)};if(k==="'"||k==='"')return{type:"literal",value:W.slice(1,-1)};if(k=W.match(OGw)){k=k[1];var C=LZ4[k];if(C)return{type:C,path:W.slice(0,-(k.length+1))}}return{type:"path",path:W}};
PiX=function(W){var k=W.match(HGI);if(k)return W={methodName:k[1],args:rcz},k[2].trim()&&(k=k[2].replace(gCK,"&comma;").split(","),W.args=k.map(j_p)),W};
QCX=function(W,k,C){k=_.Be(k);var n=AD;n&&(C=n(C,k,"attribute",W));aK(W,C,k)};
aK=function(W,k,C){k=p52(k);k===void 0?W.removeAttribute(C):W.setAttribute(C,k)};
p52=function(W){switch(typeof W){case "object":if(W instanceof Date)return W.toString();if(W){var k=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(k)return W;try{return JSON.stringify(W)}catch(C){_.zJ(Error("Dg`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
vcm=function(W){if(W===void 0)throw Error("Eg");return W};
$6m=function(W,k,C,n){var N=eSP(n);if(N.length){n=C;var B="property";sCm.test(C)?B="attribute":C[C.length-1]==="$"&&(C=C.slice(0,-1),B="attribute");var A=GTm(N);A&&B==="attribute"&&(C==="class"&&W.hasAttribute("class")&&(A+=" "+W.getAttribute(C)),aK(W,A,C));B==="attribute"&&n==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&n==="value"&&W.setAttribute("value","");W.removeAttribute(n);B==="property"&&(C=_.bd(C));k=vcm(k);y0m(k,B,C,N);return!0}return C.slice(0,3)===
"on-"?(W.removeAttribute(C),(B=k).events!=null||(B.events=[]),k.events.push({name:C.slice(3),value:n}),!0):C==="id"?(k.id=n,!0):!1};
eSP=function(W){for(var k=[],C=0,n;(n=ZVK.exec(W))!==null;){n.index>C&&k.push({type:"literal",value:W.slice(C,n.index)});var N=n[1][0];C=!!n[2];n=n[3].trim();if(N==="{")throw Error("Fg");(N=PiX(n))?k.push({type:"method",negate:C,signature:N}):k.push({type:"path",negate:C,path:n});C=ZVK.lastIndex}C&&C<W.length&&(W=W.substring(C))&&k.push({type:"literal",value:W});return k};
GTm=function(W){for(var k="",C=0;C<W.length;C++){var n=W[C];n.type==="literal"&&(k+=n.value)}return k};
y0m=function(W,k,C,n){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:k,target:C,parts:n})};
q6w=function(W,k,C){var n=!1;if(W.localName==="template"){n=C;var N=k.stripWhitespace;N=RSJ(W,N===void 0?!1:N);var B=W.content.ownerDocument.createDocumentFragment();N.content=B;B.appendChild(W.content);n&&(n.templateInfo=N);n=!0}else W.localName==="slot"&&(k.hasInsertionPoint=!0);if(W.firstChild&&(N=C,W.localName!=="script"&&W.localName!=="style")){B=0;for(var A=W.firstChild;A;){var w=A;if(w.localName==="template"){var x=w.getAttribute("is");if((A=x==="dom-if")||x==="dom-repeat"){w.removeAttribute("is");
x=w.ownerDocument.createElement("ps-"+x);w.parentNode.replaceChild(x,w);x.appendChild(w);var E=Array.from(w.attributes);E=_.b(E);for(var a=E.next();!a.done;a=E.next())a=a.value,A?ocp.has(a.name)&&aK(x,a.value,a.name):iVz.has(a.name)?aK(x,a.value,a.name):Tp4.has(a.name),w.removeAttribute(a.name);A=x}else A=w}if(A.nodeType===Node.TEXT_NODE){w=void 0;x=W;for(E=A;((w=E.nextSibling)==null?void 0:w.nodeType)===Node.TEXT_NODE;)a=void 0,(a=E).textContent!=null||(a.textContent=""),E.nextSibling.textContent&&
(E.textContent+=E.nextSibling.textContent),x.removeChild(E.nextSibling);if(k.stripWhitespace&&A.textContent&&!A.textContent.trim()){W.removeChild(A);A=A.nextSibling;continue}}q6w(A,k,{parentIndex:B,parentInfo:N});A.parentNode&&B++;A=A.nextSibling}}var X;if((X=W.hasAttributes)==null?0:X.call(W)){X=C=vcm(C);N=!1;B=Array.from(W.attributes);B=_.b(B);for(w=B.next();!w.done;w=B.next())w=w.value,N=$6m(W,X,w.name,w.value)||N;n=N||n}W.nodeType===Node.TEXT_NODE&&(X=eSP(W.textContent),X.length&&(W.textContent=
GTm(X)||" ",C=vcm(C),y0m(C,"text","textContent",X),n=!0));C&&n&&(C.infoIndex=k.nodeInfoList.push(C)-1)};
RSJ=function(W,k){k={nodeInfoList:[],stripWhitespace:(k===void 0?!1:k)||W.hasAttribute("strip-whitespace")};q6w(W.content,k);return k};
uN4=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
U6J=function(W,k){for(;W;){var C=W.signals[k];if(C)return C;W=W.parentScope}};
LpP=function(W,k,C,n){k.signalCache!=null||(k.signalCache={});var N=k.signalCache[C];if(!N){var B=C.split("."),A=U6J(n,B[0]);if((A==null?void 0:A.type)==="signal")N=function(){var d=A.type==="mutable"?A.signal.getWithPath([]):A.getter();return{rootWasDefined:d!==void 0,value:EC(d,B.slice(1))}};
else if((A==null?void 0:A.type)==="mutable"){var w=A.signal,x=A.signal.getPathMutationSignal(B.slice(1));N=function(){var d=zm(W.owner,function(){return w.getWithPath([])}),V,c=(V=x())==null?void 0:V.value;
return{rootWasDefined:d!==void 0,value:c}}}else{var E,a;
n=_.m("web_polysi_immutable_root_fix_killswitch")?!((E=W.options)==null?0:(a=E.immutableProps)==null?0:a.has(B[0])):!OVw(W,B[0]);if(B.length>1&&n){var X=W.getPathMutationSignal(B);N=function(){var d=zm(W.owner,function(){return W.getWithPath([B[0]])}),V,c=(V=X())==null?void 0:V.value;
return{rootWasDefined:d!==void 0,value:c}}}else N=function(){var d=W.getWithPath(B);
return{rootWasDefined:d!==void 0,value:d}}}k.signalCache[C]=N}return N()};
HVw=function(W,k,C,n,N,B){k=k.parts.map(function(w,x){if(w.type==="literal"){C.partWasDefined!=null||(C.partWasDefined=[]);var E;(E=C.partWasDefined)[x]||(E[x]=w.value!==void 0);return w.value}var a;if(w.type==="method"){var X,d=(X=(a=C.partWasDefined)==null?void 0:a[x])!=null?X:!1;d||(d=w.signature.args.every(function(M){return M.type==="literal"}));
var V=!1,c=!0;a=w.signature.args.map(function(M){if(M.type==="literal")return M.value;if(M.type!=="path")throw Error("Gg`"+M.type);var p=LpP(W,C,M.path,N);M=p.value;p=p.rootWasDefined;V||(V=p);c&&(c=p);return M});
d||(d=B===1?c:V);C.partWasDefined!=null||(C.partWasDefined={});C.partWasDefined[x]=d;if(!d)return;a=(x=LpP(W,C,w.signature.methodName,N).value)&&typeof x==="function"?x.apply(n,a):void 0}else X=LpP(W,C,w.path,N),a=X.value,C.partWasDefined!=null||(C.partWasDefined={}),(d=C.partWasDefined)[x]||(d[x]=a!==void 0||X.rootWasDefined);w.negate&&(a=!a);return a});
if(k.length===1){var A;return((A=C.partWasDefined)==null?0:A[0])?k[0]:jCm}return k.join("")};
r0z=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
gcI=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
PrK=function(W){return"polymerController"in W};
KpK=function(W,k){k=""+tv(k)[0];if(r0z(W))return W.canNotifyPath(k);if(PrK(W)&&r0z(W.polymerController))return W.polymerController.canNotifyPath(k);if(gcI(W)){var C;return!((C=W.properties)==null||!C[k])}if(PrK(W)&&gcI(W.polymerController)){var n;return!((n=W.polymerController.properties)==null||!n[k])}return!1};
hSX=function(W,k,C){r0z(W)||gcI(W)?W.notifyPath(k,C):PrK(W)&&(r0z(W.polymerController)||gcI(W.polymerController))&&W.polymerController.notifyPath(k,C)};
kg4=function(W,k,C){if(C!==jCm){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||k.localName!=="input"&&k.localName!=="textarea")||(C=C===void 0?"":C);var n,N=(n=Wc3.Polymer)==null?void 0:n.sanitizeDOMValue;N&&(C=N(C,W.target,W.kind,k));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")k=(0,_.Up)(k);aK(k,C,W)}else if(W=W.target,C!==k[W]||typeof C==="object")k.loggingStatus&&(k.loggingStatus.isDeclarativeExternal=!0,Yr(k.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
k[W]=C,k.loggingStatus&&(k.loggingStatus.isDeclarativeExternal=!1)}};
CSP=function(W,k,C,n,N){var B=k.parts[0];if(k.parts.length!==1||B.type!=="path"||!KpK(C,k.target))return!1;var A=_.b(B.path.split(".")),w=A.next().value,x=oL(A);if(!_.m("web_polysi_immutable_root_fix_killswitch")&&OVw(W,w))return!1;A=U6J(N,w);if((A==null?void 0:A.type)==="signal")return!1;n.signalCache!=null||(n.signalCache={});N=n.signalCache[B.path];var E;N=(E=N)==null?void 0:E().value;if((N==null?void 0:N.path)!==void 0){n=tv(N.path);var a=tv(B.path);n=[k.target].concat(_.J8(n.slice(a.length-1)));
hSX(C,n,B.negate?!N.value:N.value);return!0}var X;A?X=A.signal:X=Xr(W,w);var d=X.getChangeRecordSignal(x),V=!1;N=function(){if(!V){var M=zm(W.owner,function(){return X.getWithPath([])});
V||(V=M!==void 0)}return{value:d(),rootWasDefined:V}};
n.signalCache[B.path]=N;n.partWasDefined!=null||(n.partWasDefined={});w=N();(a=n.partWasDefined)[0]||(a[0]=w.rootWasDefined);var c=zm(W.owner,function(){return X.getWithPath(x)});
n.partWasDefined[0]&&zm(W.owner,function(){return void kg4(k,C,B.negate?!c:c)});
return!0};
nYJ=function(W,k,C,n,N,B,A){if(!CSP(W,k,C,n,B)){var w=HVw(W,k,n,N,B,A);zm(W.owner,function(){return void kg4(k,C,w)})}};
NQK=function(W,k,C,n,N,B,A){C=_.b(C);for(var w=C.next(),x={};!w.done;x={infoIndex:void 0},w=C.next()){w=w.value;var E=w.bindings;x.infoIndex=w.infoIndex;w=w.parentInfo;if(E){E=_.b(E);for(var a=E.next(),X={};!a.done;X={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},a=E.next()){X.b$jscomp$254=a.value;if(x.infoIndex===void 0)throw Error("Hg");X.bindingCtx$jscomp$4={};W.effect(function(d,V){return function(){N&&!N()||nYJ(W,d.b$jscomp$254,k[V.infoIndex],d.bindingCtx$jscomp$4,n,B,A)}}(X,x))}}w&&NQK(W,
k,[w],n,N,B,A)}};
Y5w=function(W,k){W=(k.parentInfo?Y5w(W,k.parentInfo):W).firstChild;for(var C=0;W;W=W.nextSibling)if(k.parentIndex===C++)return W;throw Error("Ig");};
be3=function(W,k,C,n){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(n==null?0:n.hasInsertionPoint);for(var N=Array(k.length),B={},A=0;A<k.length;A++){var w=k[A],x=Y5w(W,w);N[A]=x;w.id&&(B[w.id]=x);if(w.templateInfo){var E=x.parentElement;E&&(E.templateInfo=w.templateInfo,E.parentSignalProxy=C,E.eventListenerHost=n.eventListenerHost,E.stampingEnabled=n.enabledSignal,E.parentScope=n.scope)}E=void 0;if((E=w.events)==null?0:E.length)for(E=0;E<w.events.length;E++){var a=w.events[E];BQ2(n.eventListenerHost,
x,a.name,a.value,n.getModel)}}NQK(C,N,k,n.thisCtx,n.enabledSignal,n.scope,n.methodInvocationRequirement);return{root:W,nodes:N,nodesById:B}};
Fc4=function(W,k){W=W();var C;(C=Azm.ShadyCSS)==null||C.prepareTemplate(W,k);k=RSJ(W);return{template:W,nodeInfoList:k.nodeInfoList,hasInsertionPoint:k.hasInsertionPoint}};
lg4=function(){wgc=!1;for(var W=fq.length,k=0;k<W;k++){var C=fq[k];if(C)try{C()}catch(n){Promise.resolve().then(function(){throw n;})}}fq.splice(0,W);
xh4+=W};
Xgm=function(W){wgc||(wgc=!0,tn3.textContent=(EYX++).toString());fq.push(W);return agz++};
_.zM=function(W,k,C){dH++;W=k?new fgw(dH,W,k,C):new dhw(dH,W);mW.set(dH,W);return dH};
mh2=function(W){(W=mW.get(W))&&W.cancel()};
Dhw=function(W,k){W=zK4.get(W);return W?(k=W.get(k))?k:null:null};
_.Dy=function(W,k,C,n){var N=Dhw(W,k);if(!N){N=new VnX;var B=zK4.get(W);B||(B=new Map,zK4.set(W,B));B.set(k,N)}W=C.bind(W);N.run(W,n,void 0)};
_.JzJ=function(W,k){var C;(C=Dhw(W,k))==null||C.cancel()};
czw=function(W){var k;(k=Dhw(W,"doRender"))==null||k.flush()};
V3=function(W){var k;return(k=W.hostElement)!=null?k:W};
IgX=function(W){var k=W.indexOf(".");return k===-1?W:W.slice(0,k)};
S5z=function(W,k,C,n,N,B){B=(N=(n=B?IgX(k):k)?k:null)?W.get(N):W.__data[k];N&&B===void 0&&(B=C[k]);_.Pe(W.hostElement,WFm(n)+"-changed",{value:B,queueProperty:!0,path:N!=null?N:void 0},{bubbles:!1,composed:!1})};
Mnm=function(W,k){W.__isReflecting=!0;QCX(W.hostElement,k,W.__data[k]);W.__isReflecting=!1};
Qiz=function(W){if(W._onIronRequestResizeNotifications){var k=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(C){_.eI(C)!==W.hostElement&&k(C)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(C){W.toggles?aK(W.hostElement,C?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.zM(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=V3(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(C){var n=V3(C);return _.Ek(n).observeNodes(function(N){W._updateItems();W._updateSelected();_.Pe(n,"iron-items-changed",N,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.Jv._updateItems&&(W._updateItems=function(){var C=_.Ek(W.hostElement).queryDistributedElements(W.selectable||"*");C=Array.prototype.filter.call(C,W._bindFilterItem);W._setItems(C)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(C){_.qw(W.hostElement,"keyboard-focus",C)});
W.ensureRipple&&(W.ensureRipple=function(C){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var n=W._rippleContainer||W.hostElement;n&&_.S(n).appendChild(W._ripple)}var N;if(C&&((N=W._ripple)==null?0:N.uiDownAction)){n=_.S(W._rippleContainer||W.hostElement);var B;N=(B=C.composedPath())==null?void 0:B[0];n.contains(N)&&W._ripple.uiDownAction(C)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(C){C?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
pgJ=function(W,k,C){C=_.b(C);for(var n=C.next();!n.done;n=C.next())Q_X(n.value.constructor,W);Q_X(k.constructor,W)};
eKc=function(W,k){W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,C.type==="signal"){var n=C.propertyKey;if(k.hasOwnProperty(n)&&k[n]!=null&&C.attributeType===Object){a:{n=k[n].constructor;for(var N=_.b(vYP),B=N.next();!B.done;B=N.next())if(B=B.value,n===B){n=B;break a}n=Object}C.attributeType=n}}};
si3=function(){};
Ggc=function(W){var k;return(k=W.hostElement)!=null?k:W};
yz4=function(){throw Error("Mg");};
$hm=function(W,k){W.constructor.prototype.useSignals=!0;var C=new W.constructor;pgJ(C,W,k.behaviors);eKc(k.reactiveSchemas,C);C={};for(var n=_.b(k.reactiveSchemas),N=n.next();!N.done;N=n.next())N=N.value,N.type==="signal"&&(C[N.propertyKey]=N.attributeType);var B={copyPropertiesToProto:yz4,didRegister:!1,typesForSignals:C},A=["disable-upgrade"].concat(_.J8(k.observedAttributes)),w=function(x){cp.call(this,W,k,B,x)};
_.D(w,cp);_.oq.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return A}}});
B.copyPropertiesToProto=function(){for(var x=0;x<k.behaviors.length;x++)vCm(k.behaviors[x],w.prototype);vCm(W,w.prototype)};
k.legacyOptimizations||B.copyPropertiesToProto();w.prototype.is=W.is;return w};
Ze2=function(W,k){if(Object.getPrototypeOf(k.prototype).constructor!==_.R)throw Error("Ng");k.prototype.is=W.is;return $hm(k.prototype,W)};
RK2=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
oYc=function(W){for(var k=W.reactiveSchemas.filter(RK2),C=new Map,n=new Map,N=new Map,B=_.b(k),A=B.next();!A.done;A=B.next())A=A.value,C.set(A.propertyKey,A),n.set(A.propertyKey,[]),N.set(A.propertyKey,0);B=0;k=_.b(k);for(A=k.next();!A.done;A=k.next()){A=A.value;for(var w=_.b(A.type==="computeWithMethod"?A.method.args:A.args),x=w.next();!x.done;x=w.next())x=x.value,x.type!=="literal"&&(x=x.path.split(".")[0],n.has(x)&&(n.get(x).push(A.propertyKey),N.set(A.propertyKey,N.get(A.propertyKey)+1),B++))}A=
[].concat(_.J8(n.keys())).filter(function(E){return N.get(E)===0});
for(k=[];A.length;)for(w=A.shift(),k.push(C.get(w)),w=_.b(n.get(w)),x=w.next();!x.done;x=w.next())x=x.value,N.set(x,N.get(x)-1),B--,N.get(x)===0&&A.push(x);C=W.reactiveSchemas.filter(function(E){return!RK2(E)});
W.reactiveSchemas=[].concat(_.J8(C),_.J8(k))};
ieX=function(W,k){if(k.properties)for(var C=_.b(Object.entries(k.properties)),n=C.next();!n.done;n=C.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;W.properties[n]=typeof N==="function"?{type:N}:N}k.observers&&W.observers.push.apply(W.observers,_.J8(k.observers));k.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.J8(k.disabledPolySiReactions))};
TQc=function(W,k){for(var C=k.length-1;C>=0;C--){var n=k[C];Array.isArray(n)?TQc(W,n):W.indexOf(n)<0&&W.unshift(n)}};
q5X=function(W,k){W.reactiveSchemas=W.reactiveSchemas.filter(function(C){return C.type==="observe"&&k.includes(C.method.methodName)||RK2(C)&&k.includes(C.propertyKey)?!1:!0})};
UhP=function(W,k){var C=k.prototype,n,N,B={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Dkw.InjectBehavior,xr.prototype],disableElementRegistration:W.disableElementRegistration,provide:(n=W.providers)!=null?n:[],reactivityMode:W.reactivityMode,signalProperties:(N=C.signalProperties)!=null?N:[]};"template"in k?B.templateGetter=function(){return k.template}:W.getTemplate&&(B.templateGetter=W.getTemplate);
C.behaviors&&TQc(B.behaviors,C.behaviors);uLz(B,k);return B};
uLz=function(W,k){for(var C=k.prototype,n={properties:{},observers:[],disabledPolySiReactions:[]},N=_.b(W.behaviors),B=N.next();!B.done;B=N.next())ieX(n,B.value);ieX(n,C);if(W.signalProperties)for(C=_.b(W.signalProperties),N=C.next();!N.done;N=C.next())delete n.properties[N.value];C=_.b(Object.entries(n.properties));for(N=C.next();!N.done;N=C.next()){B=_.b(N.value);N=B.next().value;B=B.next().value;var A=void 0;if((A=W.signalProperties)==null||!A.includes(N)){A=void 0;var w=W,x=B.type;if(!x)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{x=Reflect.getMetadata("design:type",k,N);for(var E=_.b(OeX),a=E.next();!a.done;a=E.next())if(a=a.value,x===a){x=a;break a}x=Object}else x=String;B.computed||B.selector||(w.reactiveSchemas.push({type:"signal",propertyKey:N,value:B.value,attributeType:x,readOnly:B.readOnly}),w.observedAttributes.push(_.Be(N)));B.reflectToAttribute&&w.reactiveSchemas.push({type:"reflect",propertyKey:N});if(B.computed){x=PiX(B.computed);if(!x)throw Error("Og");w.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:N,method:x,value:B.value})}B.observer&&w.reactiveSchemas.push({type:"observe",method:{methodName:B.observer,args:[{type:"path",path:N}]}});B.notify&&w.reactiveSchemas.push({type:"notify",propertyKey:N});B.selector&&w.reactiveSchemas.push({type:"redux",propertyKey:N,selector:B.selector,selectorArgs:(A=B.selectorArgs)!=null?A:[]})}}LcI&&oYc(W);k=_.b(n.observers);for(N=k.next();!N.done;N=k.next())C=W,N=N.value,(B=PiX(N))?C.reactiveSchemas.push({type:"observe",method:B}):console.log('Warning: unable to parse observe declaration: "'+
N+'"');q5X(W,n.disabledPolySiReactions)};
jip=function(W,k){for(var C=0;C<k.length;C++){var n=k[C],N=void 0;(N=n).showHideApi!=null||(N.showHideApi={});N=void 0;!!W!==!((N=n.showHideApi)==null||!N.hideTemplateChildren)&&(n.nodeType===Node.TEXT_NODE?W?(n.showHideApi.polymerTextContent=n.textContent,n.textContent=""):(N=void 0,n.textContent=(N=n.showHideApi.polymerTextContent)!=null?N:null):n instanceof Element&&n.localName==="slot"?W?(n.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Up)((0,_.Up)(n).parentNode).replaceChild(n.showHideApi.polymerReplaced,
n)):(N=n.showHideApi.polymerReplaced)&&(0,_.Up)((0,_.Up)(N).parentNode).replaceChild(n,N):n instanceof HTMLElement&&n.style&&(W?(n.showHideApi.polymerDisplay=n.style.display,n.style.display="none"):n.style.display=n.showHideApi.polymerDisplay));n.showHideApi.hideTemplateChildren=W;n.showHideChildren&&n.showHideChildren(W)}};
rz2=function(){if(!Hep){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);Hep=!0}};
gYw=function(W,k){return zm(W,function(){for(var C={},n=k,N=new Set;n;){for(var B=_.b(Object.entries(n.signals)),A=B.next();!A.done;A=B.next()){var w=_.b(A.value);A=w.next().value;w=w.next().value;N.has(A)||(N.add(A),C[A]=w.type==="mutable"?w.signal.getWithPath([]):w.getter())}n=n.parentScope}return C})};
IK=function(){return _.m("disable_hidden_dom_if_using_stamper")||_.m("creator_disable_hidden_dom_if_using_stamper")};
PSz=function(){var W=!1,k=_.b(_.kw(!0,void 0,"UQbJQc")),C=k.next().value,n=k.next().value;return[function(){return W?!1:C()},
function(){W=!0;n(!1)}]};
Kcm=function(W,k){var C=_.SY().getState();return k?W.apply(null,[C].concat(_.J8(k))):W(C)};
kYP=function(){if(hK3)return hK3;var W=_.b(_.kw(0,void 0,"Nl6eIe")),k=W.next().value;W.next();var C=W.next().value;_.SY().subscribe(function(){Wjw(C)});
return hK3=k};
Wjw=function(W){_.m("delay_redux_signal_update_killswitch")?W(function(k){return k+1}):CZm||(CZm=!0,Promise.resolve().then(function(){W(function(k){return k+1});
CZm=!1}))};
_.SY=function(){return ntz.getAppStore()};
Ms=function(W,k){return ntz.getSelectFn()(W,k)};
_.Q3=function(W){ntz.getDispatchFn()(W)};
N$2=function(W,k){var C={},n;for(n in W)C[n]=k(W[n],n);return C};
_.pq=function(W,k){return function(){var C;return(C=_.m$(W))!=null?C:k}};
_.vp=function(W,k){var C=Object.assign({},W),n;for(n in k)k.hasOwnProperty(n)&&(C[n]=_.pq(W[n],k[n]));return C};
YcX=function(W,k,C){W instanceof Element&&(C.debugName||(C.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.m("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=N$2(k,function(n){return function(){return n()}}))))};
_.GM=function(W,k){var C=function(n){var N={stack:[],error:void 0,hasError:!1};try{var B=B$w={};var A=eY(N),w;if(((w=C)==null?0:w.idomCompat)&&n.renderedFromIdom){A==null||A.attr("idomCompat",!0);var x,E=typeof C.idomCompat==="object"?(x=C)==null?void 0:x.idomCompat.callbacks:{},a=_.b(bKw(n,E,C.debugName)),X=a.next().value;a.next();var d=a.next().value,V=A6P(W,X);B.privateValue=V;B$w=void 0;YcX(V,X,C);A==null||A.attr("debugName",C.debugName);var c=uwc(V),M=Array.isArray(c)?c[0]:c;M[rw]||(M[rw]={});
M[rw].updateSignalsFromIdomProps=d;return V}var p=N$2(n,FjP);var e=A6P(W,p);B.privateValue=e;B$w=void 0;YcX(e,p,C);A==null||A.attr("debugName",C.debugName);return e}catch(u){N.error=u,N.hasError=!0}finally{sC(N)}};
C.debugName=k===void 0?"":k;return C};
A6P=function(W,k){W=W(k);return Ky(W)};
whp=function(W,k){W[k]||(W=new _.AM("IDOM interop setter undefined. Key:",k),_.dI(W))};
FjP=function(W,k){return k==="children"||typeof W==="function"||W===void 0?W:function(){return _.m$(W)}};
bKw=function(W,k,C){var n={},N={},B={},A={},w;for(w in W){A={key$jscomp$880:A.key$jscomp$880};A.key$jscomp$880=w;var x=W[A.key$jscomp$880];if(A.key$jscomp$880==="children")n[A.key$jscomp$880]=x;else if(typeof x==="function")A.key$jscomp$880 in k||x.length>0?(B[A.key$jscomp$880]=x,n[A.key$jscomp$880]=function(a){return function(){return B[a.key$jscomp$880].apply(B,_.J8(_.v6.apply(0,arguments)))}}(A)):n[A.key$jscomp$880]=x;
else if(!(W[A.key$jscomp$880]===void 0&&A.key$jscomp$880 in k)){var E=_.b(_.kw(W[A.key$jscomp$880],{debugName:"__cwis:"+C+":"+A.key$jscomp$880},"lEtjrb"));x=E.next().value;E=E.next().value;n[A.key$jscomp$880]=x;N[A.key$jscomp$880]=E}}return[n,N,function(a){var X={},d;for(d in a)X={key$jscomp$881:X.key$jscomp$881,val$jscomp$116:void 0},X.key$jscomp$881=d,X.val$jscomp$116=a[X.key$jscomp$881],X.key$jscomp$881!=="children"&&(typeof X.val$jscomp$116==="function"?X.key$jscomp$881 in k?B[X.key$jscomp$881]=
X.val$jscomp$116:X.val$jscomp$116.length>0&&(B[X.key$jscomp$881]=X.val$jscomp$116,_.zJ(new _.AM("Callback detected that was not set in the idomCompat callbacks map. Key:",X.key$jscomp$881))):X.key$jscomp$881 in k&&X.val$jscomp$116===void 0||(whp(N,X.key$jscomp$881),bR(function(V){return function(){N[V.key$jscomp$881](V.val$jscomp$116)}}(X))))}]};
t$4=function(W,k,C){var n=Aum(W.prototype,xom,W.prototype.behaviors);n.prototype.is=k;n.prototype.localName=k;C&&lkz(n,C);return function(N){N&&(n.prototype.hostElement=N);var B=new n;B.root=B;B.hostElement=N;return B}};
lkz=function(W,k){var C;Object.defineProperty(W.prototype,"_template",{get:function(){C===void 0&&(C=k());return C},
set:function(n){C=n},
configurable:!0,enumerable:!0})};
do4=function(W,k,C,n){function N(){if(!V){for(var c=new Set,M=_.b(a),p=M.next();!p.done;p=M.next()){p=p.value;for(var e=_.b(Object.getOwnPropertyNames(p)),u=e.next();!u.done;u=e.next()){u=u.value;var h=void 0,L=(h=Object.getOwnPropertyDescriptor(p,u))==null?void 0:h.value;L&&L instanceof Function&&!y3(u)&&c.add(u)}}M=_.b(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(p=M.next();!p.done;p=M.next())e=_.b(p.value),p=e.next().value,e=e.next().value,e.value instanceof Function&&!y3(p)&&
c.add(p);V=c}return V}
EtP(W,k,n==null?void 0:n.providers);FGw(W.prototype,W,!0);var B=t$4(W,k,C),A,w=(A=W.prototype.properties)!=null?A:{},x,E,a=(E=(x=W.prototype.behaviors)==null?void 0:x.flat(Infinity))!=null?E:[];C=_.b(a);for(A=C.next();!A.done;A=C.next())w=Object.assign({},A.value.properties,w);var X=[].concat(_.J8(ak3),_.J8(Object.keys(w).map(function(c){return _.Be(c)}))),d=!1,V;
return{ctor:function(c,M){var p=B(c),e,u;c=[].concat(_.J8((e=n==null?void 0:n.allowedProps)!=null?e:[]),_.J8((u=n==null?void 0:n.allowedPropsFromBehaviors)!=null?u:[]));p.allowedProps=c.length>0?c:void 0;e={};u=_.b(X);for(c=u.next();!c.done;c=u.next())c=c.value,e[c]=_.bd(c);p.__dataAttributes=e;var h=p.ready.bind(p);p.ready=function(){M.beforeReady();h();if(nq(k)&&!d){var L=p.__templateInfo;if(L==null?0:L.hostProps){L=_.b(Object.keys(L.hostProps));for(var Bw=L.next();!Bw.done;Bw=L.next())Yr(k,Bw.value,
"PROPERTY_ACCESS_GET_INTERNAL")}d=!0}};
p._overrideLegacyUndefined=!0;return p},
props:w,observedAttributes:X,getInitialMethods:N,getPropsToForwardBeforeRegister:function(){for(var c=[],M=new Set,p=_.b(Object.keys(w)),e=p.next();!e.done;e=p.next())e=e.value,c.push([e,w[e].readOnly]),M.add(e);p=N();e=_.b(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var u=e.next();!u.done;u=e.next())u=u.value,!Xhm(u)||p.has(u)||M.has(u)||(c.push([u,!1]),M.add(u));M=_.b(fk2);for(p=M.next();!p.done;p=M.next())c.push([p.value,!0]);return c},
getPropsToForwardBeforeReady:function(c){for(var M=[],p=_.b(Object.entries(c)),e=p.next();!e.done;e=p.next()){var u=_.b(e.value);e=u.next().value;u=u.next().value;if(Xhm(e)&&!(u instanceof Function)&&(M.push([e,!1]),nq(k))){var h=u=void 0;(h=(u=c)._createPropertyAccessor)==null||h.call(u,e)}}return M},
shouldForwardProp:Xhm,shouldLog:nq}};
EtP=function(W,k,C){VLc(W,C);W.prototype.behaviors.unshift(moJ);if(Acw()){if(nq(k)){var n;(n=W.prototype).behaviors!=null||(n.behaviors=[]);W.prototype.behaviors.unshift(lU3())}ECw(W)}_.v(xr.prototype)(W.prototype,"__templateHelpers")};
y3=function(W){return zop.has(W)||W.startsWith("__compute__")};
Xhm=function(W){return!y3(W)&&!W.startsWith("_")&&!W.endsWith("_")};
Ikz=function(W,k){function C(){var d=x();d=_.b(d);for(var V=d.next();!V.done;V=d.next()){var c=_.b(V.value);V=c.next().value;c=c.next().value;Doz(X.prototype,V,c)}n=!0}
var n=!1,N=W.ctor,B=W.getInitialMethods,A=W.observedAttributes,w=W.getPropsToForwardBeforeReady,x=W.getPropsToForwardBeforeRegister,E=W.shouldForwardProp,a=W.shouldLog,X=function(){var d=HTMLElement.call(this)||this;d.didForwardDynamicProps=!1;d.loggingStatus={};n||C();d.inst=N(d,{beforeReady:function(){d.didForwardDynamicProps||(d.forwardDynamicProps(),d.didForwardDynamicProps=!0)}});
d.controllerProxy=w2z(d.inst,k);d.forwardMethods();return d};
_.D(X,HTMLElement);X.prototype.forwardMethods=function(){for(var d=this,V=_.b(this.inst.getExtraMethodsToForward()),c=V.next(),M={};!c.done;M={method$jscomp$61:void 0},c=V.next()){var p=_.b(c.value);c=p.next().value;p=p.next().value;M.method$jscomp$61=p;this[c]=function(e){return function(){return e.method$jscomp$61.call.apply(e.method$jscomp$61,[d.inst].concat(_.J8(_.v6.apply(0,arguments))))}}(M)}V=_.b(B());
for(M=V.next();!M.done;M=V.next())M=M.value,E(M)&&V$P(this,M),a(k)&&!y3(M)&&J63(this.inst,M)};
X.prototype.forwardDynamicProps=function(){var d=w(this.inst);d=_.b(d);for(var V=d.next();!V.done;V=d.next()){var c=_.b(V.value);V=c.next().value;c=c.next().value;Doz(this,V,c);a(k)&&!y3(V)&&c6w(this.inst,V)}};
X.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
X.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
X.prototype.attributeChangedCallback=function(d,V,c){this.inst.attributeChangedCallbackWrapper(d,V,c)};
_.oq.Object.defineProperties(X.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return k}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.oq.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return A}}});
customElements.define(k,X)};
Doz=function(W,k,C){W.hasOwnProperty(k)||Object.defineProperty(W,k,{get:function(){var n,N=((n=W.is)!=null?n:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Yr(N,k,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,n=this.polymerController[k],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,n},
set:function(n){if(!C){var N,B=((N=W.is)!=null?N:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Yr(B,k,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=k,this.loggingStatus.bypassProxyController=!0,this.polymerController[k]!==n&&(N={},this.polymerController.setProperties((N[k]=n,N)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
V$P=function(W,k,C){var n=W.polymerController;W[k]=function(){var N=_.v6.apply(0,arguments);W.loggingStatus.currentExternalCall=k;W.loggingStatus.bypassProxyController=!0;var B,A=((B=W.is)!=null?B:W.tagName).toLowerCase();Yr(A,k,"PROPERTY_ACCESS_CALL_EXTERNAL");var w;B=(w=C!=null?C:n[k])==null?void 0:w.call.apply(w,[n].concat(_.J8(N)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return B}};
J63=function(W,k){var C=W.hostElement,n=W[k];W[k]=function(){var N=_.v6.apply(0,arguments);if(C.loggingStatus.currentExternalCall!==k){var B,A=((B=C.is)!=null?B:C.tagName).toLowerCase();Yr(A,k,"PROPERTY_ACCESS_CALL_INTERNAL")}return n==null?void 0:n.apply(W,N)}};
c6w=function(W,k){var C=Object.getOwnPropertyDescriptor(W,k);C&&!C.get&&Object.defineProperty(W,k,{get:function(){xkI(W.hostElement,k);return C.value},
set:function(n){Bp(W.hostElement,k);C.value=n}})};
ScI=function(W){return _.m("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
Q3X=function(W,k){var C=M$w(W);W instanceof Element&&C.unshift(W);W=_.b(C.filter(ScI));for(var n=W.next();!n.done;n=W.next()){n=_.b(n.value.__instances);for(var N=n.next();!N.done;N=n.next())if(N=N.value,N.root){N=Array.from(N.root.children);N=_.b(N);for(var B=N.next();!B.done;B=N.next())C.push.apply(C,_.J8(Q3X(B.value,k)))}}return C.filter(function(A){return A.usePatchedLifecycles&&A.lifecycleIsConnected===k})};
M$w=function(W){var k=null;W instanceof Element?k=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(k=DocumentFragment.prototype.querySelectorAll);return k?Array.from(k.call(W,"*")):[]};
$r=function(W){WH(function(){for(var k=_.b(Q3X(W,!1)),C=k.next();!C.done;C=k.next()){C=C.value;C.lifecycleIsConnected=!0;try{var n=void 0,N=void 0,B=void 0,A=void 0;(n=(A=C.polymerController)!=null?A:C)==null||(B=(N=n).connectedCallback)==null||B.call(N)}catch(w){_.dI(w)}}})};
Zy=function(W){WH(function(){for(var k=_.b(Q3X(W,!0)),C=k.next();!C.done;C=k.next()){C=C.value;C.lifecycleIsConnected=!1;try{var n=void 0,N=void 0,B=void 0,A=void 0;(n=(A=C.polymerController)!=null?A:C)==null||(B=(N=n).disconnectedCallback)==null||B.call(N)}catch(w){_.dI(w)}}})};
$oI=function(){if(!phI){phI=!0;var W=[Node];RK&&W.push(RK.Wrapper);var k=Node.prototype.insertBefore,C=Node.prototype.removeChild;W=_.b(W);for(var n=W.next(),N={};!n.done;N={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},n=W.next())n=n.value,N.nativeInsertBefore=n.prototype.insertBefore,n.prototype.insertBefore=function(A){return function(w,x){if(w instanceof DocumentFragment){var E=Array.from(w.children);w=A.nativeInsertBefore.call(this,w,x);
if(this.isConnected&&A.nativeInsertBefore===k)for(x=_.b(E),E=x.next();!E.done;E=x.next())$r(E.value);return w}E=w instanceof Element&&w.isConnected;x=A.nativeInsertBefore.call(this,w,x);E&&Zy(w);this.isConnected&&$r(w);return x}}(N),N.nativeAppendChild=n.prototype.appendChild,n.prototype.appendChild=function(A){return function(w){if(w instanceof DocumentFragment){var x=Array.from(w.children);
w=A.nativeAppendChild.call(this,w);if(this.isConnected){x=_.b(x);for(var E=x.next();!E.done;E=x.next())$r(E.value)}return w}x=w instanceof Element&&w.isConnected;E=A.nativeAppendChild.call(this,w);x&&Zy(w);this.isConnected&&$r(w);return E}}(N),N.nativeRemoveChild=n.prototype.removeChild,n.prototype.removeChild=function(A){return function(w){var x=w instanceof Element&&w.isConnected,E=A.nativeRemoveChild.call(this,w);
x&&C===A.nativeRemoveChild&&Zy(w);return E}}(N),N.nativeReplaceChild=n.prototype.replaceChild,n.prototype.replaceChild=function(A){return function(w,x){if(w instanceof DocumentFragment){var E=Array.from(w.children);
w=A.nativeReplaceChild.call(this,w,x);if(this.isConnected)for(Zy(x),x=_.b(E),E=x.next();!E.done;E=x.next())$r(E.value);return w}E=w instanceof Element&&w.isConnected;var a=this.isConnected,X=A.nativeReplaceChild.call(this,w,x);a&&Zy(x);E&&Zy(w);a&&$r(w);return X}}(N);
W=[Element];RK&&W.push(RK.Wrapper);W=_.b(W);n=W.next();for(N={};!n.done;N={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},n=W.next())n=n.value,n.prototype.before=vtJ(n.prototype.before),n.prototype.after=vtJ(n.prototype.after),N.nativeReplaceWith=n.prototype.replaceWith,n.prototype.replaceWith=function(A){return function(){var w=_.v6.apply(0,arguments),x=_.b(eoX(w)),E=x.next().value,
a=x.next().value;x=this.isConnected;A.nativeReplaceWith.apply(this,w);w=_.b(a);for(a=w.next();!a.done;a=w.next())Zy(a.value);if(x)for(Zy(this),E=_.b(E),x=E.next();!x.done;x=E.next())x=x.value,x instanceof Element&&$r(x)}}(N),N.nativeRemove=n.prototype.remove,n.prototype.remove=function(A){return function(){var w=this.isConnected;
A.nativeRemove.call(this);w&&Zy(this)}}(N),N.nativeInsertAdjacentElement=n.prototype.insertAdjacentElement,n.prototype.insertAdjacentElement=function(A){return function(w,x){var E=x.isConnected;
w=A.nativeInsertAdjacentElement.call(this,w,x);E&&Zy(x);w.isConnected&&$r(w);return w}}(N),N.nativeSetAttribute=n.prototype.setAttribute,n.prototype.setAttribute=function(A){return function(w,x){var E=s3I(this);
if(!E.usePatchedLifecycles)return A.nativeSetAttribute.call(this,w,x);var a=this.getAttribute(w);A.nativeSetAttribute.call(this,w,x);x=this.getAttribute(w);GYX(E,w,a,x)}}(N),N.nativeRemoveAttribute=n.prototype.removeAttribute,n.prototype.removeAttribute=function(A){return function(w){var x=s3I(this);
if(!x.usePatchedLifecycles)return A.nativeRemoveAttribute.call(this,w);var E=this.getAttribute(w);A.nativeRemoveAttribute.call(this,w);E!==null&&GYX(x,w,E,null)}}(N),N.nativeToggleAttribute=n.prototype.toggleAttribute,n.prototype.toggleAttribute=function(A){return function(w,x){var E=s3I(this);
if(!this.usePatchedLifecycles)return A.nativeToggleAttribute.call(this,w,x);var a=this.getAttribute(w),X=a!==null;x=A.nativeToggleAttribute.call(this,w,x);x!==X&&GYX(E,w,a,x?"":null);return x}}(N);
W=[Document,DocumentFragment,Element,ShadowRoot];RK&&W.push(RK.Wrapper);W=_.b(W);for(N=W.next();!N.done;N=W.next())N=N.value,N.prototype.prepend=vtJ(N.prototype.prepend),N.prototype.append=vtJ(N.prototype.append);(RK==null?void 0:RK.noPatch)===!0&&y6w();document.readyState==="complete"?$r(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&$r(document.body)});
var B=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");B&&B.get&&B.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:B.enumerable,configurable:!0,get:B.get,set:function(A){A||Zy(this);B.set.call(this,A);return A}})}};
vtJ=function(W){return function(){var k=_.v6.apply(0,arguments),C=_.b(eoX(k)),n=C.next().value;C=C.next().value;W.apply(this,k);k=_.b(C);for(C=k.next();!C.done;C=k.next())Zy(C.value);if(this.isConnected)for(n=_.b(n),k=n.next();!k.done;k=n.next())k=k.value,k instanceof Element&&$r(k)}};
y6w=function(){for(var W=_.b(ZKw),k=W.next();!k.done;k=W.next()){k=k.value.prototype;for(var C=_.b(Rom),n=C.next();!n.done;n=C.next()){n=n.value;var N=Object.getOwnPropertyDescriptor(k,n);N&&Object.defineProperty(k,"__shady_native_"+n,N)}}};
GYX=function(W,k,C,n){var N,B;if((N=W.polymerController)==null?0:(B=N.observedAttributes)==null?0:B.includes(k))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,k,C,n);else{var A;(A=W.attributeChangedCallback)==null||A.call(W,k,C,n)}};
eoX=function(W){var k=[],C=[];W=_.b(W);for(var n=W.next();!n.done;n=W.next())n=n.value,n instanceof Element&&n.isConnected&&C.push(n),n instanceof DocumentFragment?k.push.apply(k,_.J8(Array.from(n.children))):k.push(n);return[k,C]};
s3I=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
otI=function(W,k){var C=k?["children"].concat(_.J8(k)):["children"];k=[];C=_.b(C);for(var n=C.next();!n.done;n=C.next()){var N=n.value;if(W.hasOwnProperty(N)){n=W[N];n=typeof n==="function"?n():n;n=Ky(Array.isArray(n)?n:[n]).flat();if(N!=="children"){N=WFm(N);for(var B=_.b(n),A=B.next();!A.done;A=B.next())A=A.value,A instanceof Element&&A.setAttribute("slot",N)}k.push(n)}}k.length===0?W=[]:(W=Ky(_.t("div",null,k)),W=Array.from(W.childNodes));return W};
iKp=function(W,k,C){var n={};_.aW(function(){var N={},B;for(B in k)if(k.hasOwnProperty(B)){var A=void 0,w=void 0;if(!(((A=C.slotProps)==null?0:A.includes(B))||B==="children"||((w=C.callbackProps)==null?0:w.includes(B))||B==="ref")&&(A=_.m$(k[B]),n[B]!==A)){n[B]=A;w=void 0;var x=(w=W.hostElement)!=null?w:W;if(B==="className"||B==="id")x[B]=A;N[B]=A}}bR(function(){if(W.setProperties)W.setProperties(N);else for(var E=_.b(Object.entries(N)),a=E.next();!a.done;a=E.next()){var X=_.b(a.value);a=X.next().value;
X=X.next().value;W[a]=X}})})};
qcp=function(W,k,C,n){var N=otI(C,n.slotProps),B=_.m("web_wcw_disable_slot_host_shady_dom_wrap")?W:(0,_.Up)(W);N=_.b(N);for(var A=N.next();!A.done;A=N.next())B.appendChild(A.value);iKp(k,C,n);n=_.b(n.callbackProps||[]);N=n.next();for(B={};!N.done;B={kebabEventName:void 0,eventListener:void 0},N=n.next())A=N=N.value,String(N).substring(0,2)==="on"&&C[A]?(B.kebabEventName=WFm(String(N).substring(2)),B.eventListener=C[A],W.addEventListener(B.kebabEventName,B.eventListener),_.fy(function(a){return function(){W.removeEventListener(a.kebabEventName,
a.eventListener)}}(B))):k[A]=C[A];
if(C.ref){C=_.b(T$4(C.ref));var w=C.next().value,x=C.next().value,E=k.attached.bind(k);k.attached=function(){w(W);E()};
_.fy(function(){x()})}};
T$4=function(W){if(typeof W==="function"){var k;return[function(C){k=W(C)},
function(){var C;(C=k)==null||C()}]}if(!W.onRender||!W.onUnmount)throw Error("Sg");
return[W.onRender,W.onUnmount]};
Ljp=function(W,k,C,n,N){n=n===void 0?{}:n;var B=uJ3,A=!1;B?(A=!0,uJ3=void 0):(UoX=k,B=document.createElement(k),UoX=void 0);var w=B;w.usePatchedLifecycles=!0;w.lifecycleIsConnected=!1;B.loggingStatus={};var x=OKI(W,k,B,n,N);_.fy(function(){w.lifecycleIsConnected&&(w.lifecycleIsConnected=!1,x.disconnectedCallback())});
A||qcp(B,x,C,n);return B};
OKI=function(W,k,C,n,N){N=N===void 0?do4:N;j33[k]!=null||(j33[k]=N(W,k,n==null?void 0:n.getTemplate,n));var B=j33[k],A=B.ctor;N=B.getInitialMethods;var w=B.getPropsToForwardBeforeReady;W=B.getPropsToForwardBeforeRegister;n=B.shouldForwardProp;var x=B.observedAttributes,E=B.shouldLog,a=A(C,{beforeReady:function(){var X=a;X._takeAttributes?X._takeAttributes():X.setPropertiesFromInitialAttributeValues&&X.setPropertiesFromInitialAttributeValues();X=_.b(w(C.polymerController));for(var d=X.next();!d.done;d=
X.next()){var V=_.b(d.value);d=V.next().value;V=V.next().value;Doz(C,d,V);E(k)&&!y3(d)&&c6w(C.polymerController,d)}C.polymerController=w2z(a,k)}});
C.polymerController=a;C.polymerController.observedAttributes=x;B=_.b(a.getExtraMethodsToForward());for(A=B.next();!A.done;A=B.next())x=_.b(A.value),A=x.next().value,x=x.next().value,V$P(C,A,x);N=_.b(N());for(B=N.next();!B.done;B=N.next())B=B.value,n(B)&&V$P(C,B),E(k)&&!y3(B)&&J63(a,B);W=_.b(W());for(n=W.next();!n.done;n=W.next())N=_.b(n.value),n=N.next().value,N=N.next().value,Doz(C,n,N);return a};
r62=function(W,k){return oK===k?(W.isInert=!0,oK="",!0):HKK===k?(W.isInert=!0,HKK="",!0):!1};
gtP=function(W){var k=i0;i0=W;return k};
KjX=function(W){if(TM.has(W))HKK=W;else if(qs.has(W)&&i0&&PZm(i0)===W){var k;(k=i0)._numRenders!=null||(k._numRenders=0);i0._numRenders++;if(i0._numRenders>1)throw Error("Tg");return i0}};
ho4=function(W){TM.has(PZm(W))?HKK=PZm(W):qs.has(PZm(W))&&i0!==W&&(W._isInert=!0)};
PZm=function(W){var k;return(k=W==null?void 0:W.tagName.toLowerCase())!=null?k:""};
WNp=function(W,k){if(W.componentType===xw)throw Error("Ug");qs.add(k);var C=function(){var n=HTMLElement.call(this)||this;n.is=k;if(UoX===k)return n.isInert=!0,n;n.createElement();return n};
_.D(C,HTMLElement);C.prototype.createElement=function(){if(!this.isInert){uJ3=this;var n=_.b(lNw(function(){return _.t(W,null)})).next().value;
uJ3=void 0;uN4(this);return n}};
customElements.define(k,C)};
CYK=function(W,k,C,n,N){W.prototype.is=k;(n==null?0:n.useSink)?khm(W,k,C,n,N):(C=do4(W,k,C,n),Ikz(C,k));return W};
khm=function(W,k,C,n,N){$oI();var B=_.GM(function(A){return Ljp(W,k,A,Object.assign({},n,{getTemplate:C}),N)},"a");
WNp(B,k);return B};
Ntc=function(W){return!nV3.has(W)};
bhX=function(W,k,C,n){function N(){if(!X){for(var d=new Set(YUP),V=_.b(B.behaviors),c=V.next();!c.done;c=V.next()){c=c.value;for(var M=_.b(Object.getOwnPropertyNames(c)),p=M.next();!p.done;p=M.next()){p=p.value;var e=void 0,u=(e=Object.getOwnPropertyDescriptor(c,p))==null?void 0:e.value;u&&u instanceof Function&&d.add(p)}}V=_.b(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(c=V.next();!c.done;c=V.next())M=_.b(c.value),c=M.next().value,M=M.next().value,M.value instanceof Function&&
d.add(c);X=d}return X}
var B=UhP({is:k,disableElementRegistration:!1,getTemplate:C,providers:n==null?void 0:n.providers,reactivityMode:n==null?void 0:n.reactivityMode},W);if((n==null?0:n.allowedProps)||(n==null?0:n.allowedPropsFromBehaviors)){var A,w;B.allowedProps=[].concat(_.J8((A=n.allowedProps)!=null?A:[]),_.J8((w=n.allowedPropsFromBehaviors)!=null?w:[]))}var x=Ze2(B,W);k=x.observedAttributes;var E={};C=_.b(B.reactiveSchemas);for(n=C.next();!n.done;n=C.next())if(n=n.value,n.type==="signal")E[n.propertyKey]={readOnly:n.readOnly},
n.readOnly&&(E[$k4(n.propertyKey)]={readOnly:!0});else if(n.type==="compute"||n.type==="computeWithMethod"||n.type==="redux")E[n.propertyKey]={readOnly:!0};var a=B.reactiveSchemas.length,X;return{ctor:function(d,V){d=new x(d);d.beforeReady=V.beforeReady;return d},
props:E,observedAttributes:k,getInitialMethods:N,getPropsToForwardBeforeRegister:function(){for(var d=[],V=new Set,c=_.b(BtX),M=c.next();!M.done;M=c.next())M=M.value,d.push([M,M!=="observers"&&M!=="properties"]),V.add(M);c=_.b(Object.keys(E));for(M=c.next();!M.done;M=c.next())M=M.value,d.push([M,E[M].readOnly]),V.add(M);c=N();M=_.b(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var p=M.next();!p.done;p=M.next())p=p.value,!Ntc(p)||c.has(p)||V.has(p)||(d.push([p,!1]),V.add(p));d.push(["allowedProps",
!0]);return d},
getPropsToForwardBeforeReady:function(d){var V=[];d=_.b(Object.keys(d));for(var c=d.next();!c.done;c=d.next()){c=c.value;var M=N();Ntc(c)&&!M.has(c)&&V.push([c,!1])}d=_.b(B.reactiveSchemas.slice(a));for(c=d.next();!c.done;c=d.next())c=c.value,c.type!=="compute"&&c.type!=="computeWithMethod"&&c.type!=="redux"&&c.type!=="signal"||V.push([c.propertyKey,c.type==="signal"?c.readOnly:!0]);return V},
shouldForwardProp:Ntc,shouldLog:nq}};
_.q=function(W,k,C,n){var N,B,A=(B=(N=n)==null?void 0:N.mode)!=null?B:0;n!=null||(n={});var w;(w=n).reactivityMode!=null||(w.reactivityMode=0);A===1&&_.jO("creator_poly_si_disable_list").includes(k)&&(A=2);return A===1?CYK(W,k,C,Object.assign({},n,{useSink:!0}),bhX):CYK(W,k,C,Object.assign({},n,{useSink:A===2}))};
_.u0=function(){return function(W,k,C,n){var N,B,A=(B=(N=n)==null?void 0:N.mode)!=null?B:2;n!=null||(n={});var w;(w=n).reactivityMode!=null||(w.reactivityMode=0);if(A===0)throw Error("Vg`"+A);return khm(W,k,C,n,A===1?bhX:void 0)}};
_.UC=function(W){return _.m("creator_poly_si_killswitch")?!1:_.m("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.m(W+"_holdback_enabled")&&_.m("kevlar_polysi_holdback")?!1:_.m(W)};
OC=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
APz=function(W){if(!W)return"";W=_.b(W);for(var k=W.next();!k.done;k=W.next())if((k=k.value)&&k.liveChatAuthorBadgeRenderer&&(k=OC(k.liveChatAuthorBadgeRenderer))&&k!=="verified")return k;return""};
FNw=function(W,k){if(!W)return null;var C;return((C=W.find(function(n){return n&&n.liveChatAuthorBadgeRenderer?OC(n.liveChatAuthorBadgeRenderer)===k:!1}))==null?void 0:C.liveChatAuthorBadgeRenderer)||null};
_.aVc=function(W){var k=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=wMm(W);k=wMm(k);var C=xHc(W.hex);k=xHc(k.hex);var n=k[0]/255;var N=k[1]/255,B=k[2]/255,A=Math.max(n,N,B),w=Math.min(n,N,B),x=0,E=0,a=.5*(A+w);A!=w&&(A==n?x=60*(N-B)/(A-w):A==N?x=60*(B-n)/(A-w)+120:A==B&&(x=60*(n-N)/(A-w)+240),E=0<a&&a<=.5?(A-w)/(2*a):(A-w)/(2-2*a));n=[Math.round(x+360)%360,E,a];C=lV2(C,k);for(W=tgm(W.hex);C<4.5;){W=n[2]>=.5?W.darker((4.5-C)/2):W.brighter((4.5-C)/2);C=W.toString();
N=EV4(C);if(!N.length)throw Error("Sd`"+C);C=N;C=lV2(C,k)}return W.hex()};
lV2=function(W,k){W=_.xY4(W);k=_.xY4(k);return(Math.max(W,k)+.05)/(Math.min(W,k)+.05)};
_.Lq=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.XMK=function(W){for(var k=0,C=0;C<W.length;C++)k=W.charCodeAt(C)+((k<<5)-k);W="#";for(C=0;C<3;C++)W+=("00"+(k>>C*8&255).toString(16)).slice(-2);return W};
fVc=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
JPc=function(W,k){var C=(k=k===void 0?!1:k)?dHP:mHX,n=k?zZP:DHI;W.getIconNames().forEach(function(N){N=k?N:N.substring(N.indexOf(":")+1);W.name==="yt-icons"?VgX.add(N):N.includes("-filled")?C.add(N):n.add(N)})};
jY=function(W,k,C,n){C=C===void 0?!1:C;n=n===void 0?!1:n;var N,B,A;return _.F(function(w){if(w.nextAddress==1)return _.l(w,cP4,2);if(n)return w.return(VgX.has(W));N=C?dHP:mHX;B=C?zZP:DHI;return k?(A=W.includes("-filled")?W:W.concat("-filled"),w.return(N.has(A))):w.return(B.has(W))})};
_.Mgc=function(W){if(IV2(W))return W;var k=W=W.toLowerCase();(W=SUJ.get(W))&&(k=W);return k};
_.Hp=function(W){if(IV2(W))return W.toString();var k=Qdm.get(W);if(k)return k;k=W.toLowerCase();var C="yt-icons",n=k.replace(/_/g,"-");switch(W){case "MY_CHANNEL":k="account_circle";break;case "ADD_TO_LIBRARY":k="add";break;case "ALERT_WARN_RED":k="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":k="person_music";break;case "BLOCK_USER":k="block";break;case "CAPTIONS":k="closed_caption";break;case "CLOSED_CAPTION":C="av";k="closed-caption";break;case "COLLECTION":C="maps";k="layers";break;case "CONTACT":C=
"icons";k="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":C="ytcp-icons";k=n.split("creator-studio-")[1];break;case "DISMISSAL":k="close";break;case "DO_NOT_DISTURB":k="block";break;case "DOGFOOD":C="icons";k="pets";break;case "DRAFT":k="paper_corner_folded";break;
case "EMPTY_LIKE":k="like_outline";break;case "EXIT_APP":k="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":k=n;break;case "GAMES":C="ytg";k="my-games";break;case "GO_TO_PAGE":k="arrow-forward";break;case "GROUP":C="social";break;case "HIDE":k="not_interested";break;case "INPUT_COMPONENT":C="icons";k="settings-input-component";break;case "KIDS_BLOCK":k="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":C="ytg";k="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":C=
"ytg";k="membership-post-purchase";break;case "MULTIVIEW":k="screen_multi_view";break;case "MY_LOCATION":C="maps";k=n;break;case "NOTIFICATIONS_INBOX":k="NOTIFICATIONS";break;case "NEXT":k="chevron_right";break;case "OFFLINE":k="power-settings-new";break;case "PAUSE":C="miniplayer";break;case "PAYMENT":C="icons";break;case "PHONE_DOWNLOAD":k="phone_download";break;case "PREMIUM_STANDALONE":C="yt-logos";k="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":C="yt-logos";k="premium_standalone_cairo";
break;case "QUESTION_ANSWER":k="question_answer";break;case "REDEEM":C="icons";k="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":k="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":k="library_add";break;case "SCHOOL":C="yt-sys-icons";k="creator_academy";break;case "SETTINGS_LIGHT":k="settings_applications";break;case "SETTINGS_MATERIAL":k="settings";break;case "SEARCH_HISTORY":k="watch_history";break;case "SHOPPING_BAG":k="bag";break;case "SOCIAL":case "PEOPLE":C=
"yt-icons";k="people";break;case "STAFF_PICK":C="ytg";k="spotlight";break;case "START_DVR":k="add";break;case "STOP_DVR":C="av";k="stop";break;case "TAB_LIKED":k="like";break;case "TAB_INBOX":k="mail";break;case "TERMS_OF_SERVICE":C="icons";k="description";break;case "TRENDING":k="fire";break;case "UNBLOCK_USER":k="remove";break;case "UNPLUGGED_DARK_THEME":C="image";k="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":k="live";break;case "UNPLUGGED_SPORTS":C="ytu";k="visibility-off";break;
case "VIDEOS":C="av";k="play-circle-filled";break;case "YOUTUBE":C="yt-logos";k="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":C="yt-logos-ext";k="yt-logo-red-updated";break;case "YOUTUBE_LOGO":C="yt-logos-ext";k="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":C="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":C="shorts";k=n;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":C="yt-sys-icons";k="youtube_improve_tv";break;case "OUTLINE_BAG":C=
"yt-sys-icons";k="bag";break;case "QUEUE_PLAY_LAST":C="yt-sys-icons";k="list_queue_last";break;case "SLASH_CIRCLE_LEFT":k="slash_circle_left";break;case "SPEED_1_POINT_2X":k="1_point_2x";break;case "SPEED_1_POINT_5X":k="1_point_5x";break;case "SPEED_1_POINT_8X":k="1_point_8x";break;case "SPEED_POINT_2X":k="point_2x";break;case "SPEED_POINT_5X":k="point_5x";break;case "SPEED_POINT_8X":k="point_8x";break;case "SPEED_1X":k="1x";break;case "SPEED_2X":k="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":C="yt-sys-icons";
k="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":C="yt-sys-icons";k="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":C="yt-sys-icons",k="tic_tac_toe"}k=C+":"+k;Qdm.set(W,k);return k};
IV2=function(W){var k;_.m("kevlar_use_wil_icons")?k=!!_.f().resolve(_.rH).resolveIcon({iconName:W.toString()}):k=!1;return k};
_.Pp=function(W,k,C,n){C=C===void 0?{}:C;n=n===void 0?!1:n;C===null&&(C={});var N=_.jO("kevlar_command_handler_command_banlist");N=_.b(N);for(var B=N.next();!B.done;B=N.next())if(B=W?W.hasOwnProperty(B.value):void 0,B)return!1;N=_.z(W.commandMetadata,_.Ok);return n&&N!=null&&N.url?!1:!k.disableCommandHandlerOverride&&_.gH.instance?(n=_.gH.instance,C.form||(C.form={element:k}),C.form.element||(C.form.element=k),!C.clickedVisualElement&&k.visualElement&&(C.clickedVisualElement=k.visualElement),n.resolveCommand(W,
C),!0):!1};
pMw=function(W,k){W=Kq(W);for(var C=_.b(W.visibilityMonitorKeys||[]),n=C.next();!n.done;n=C.next())k.unobserveByKey(n.value);W.visibilityMonitorKeys=void 0};
GhX=function(W,k){if(_.VM()){if(_.m("kevlar_vimio_use_shared_monitor"))vVz(W,k.data);else if(!vVz(W,k.data))return;var C=k.data,n=eZI(C);if(_.m("enable_client_ve_spec_logging"))pMw(W,k.observer);else{var N=Kq(W);N.trackedParams&&N.trackedParams!==n&&pMw(W,k.observer)}N=Kq(W);!C||N.data&&N.data===C||(N.data=C);sdK(W,k);N.trackedParams=n}};
sdK=function(W,k){var C=k.observer;if(!C&&_.m("web_skip_missing_vimio_observer")){var n,N;_.zJ(new _.AM("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(n=k.data)==null?void 0:n.trackingParams,(N=k.data)==null?void 0:N.loggingDirectives))}else{var B=k.layer,A=k.visibilityCallback||function(){},w=k.prescanCallback,x=Kq(W);
n=[];k.showOption&&n.push(C.observe(W,function(){k.skipLogging&&k.skipLogging()||_.hv().reportShown(x,void 0,B);A(!0)},k.showOption));
k.hideOption&&n.push(C.observe(W,function(){_.hv().reportHidden(x,void 0,B);A(!1)},k.hideOption));
k.prescanOption&&w&&n.push(C.observe(W,function(){w()},k.prescanOption));
x.visibilityMonitorKeys=n}};
vVz=function(W,k){W=Kq(W);if(W.visualElement&&!k)return!0;if(!k)return!1;var C=!1;if(_.m("enable_client_ve_spec_logging")){var n,N;C=!!((n=k.loggingDirectives)==null?0:(N=n.clientVeSpec)==null?0:N.uiType)}n=eZI(k);if(!n&&!C)return!1;_.m("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=n);if(W.trackedParams&&W.trackedParams===n)return!1;var B;if(_.m("enable_client_ve_spec_logging")&&((B=W.visualElement)==null?0:B.isClientVe())){var A;B=(A=W.visualElement)==
null?void 0:A.getAsJspb();var w,x,E,a;if(_.gP(B,2)===((w=k.loggingDirectives)==null?void 0:(x=w.clientVeSpec)==null?void 0:x.uiType)&&_.gP(B,3,-1)===((E=k.loggingDirectives)==null?void 0:(a=E.clientVeSpec)==null?void 0:a.elementIndex))return!1}if(_.m("enable_client_ve_spec_logging")){var X,d;!W.visualElement&&((X=k.loggingDirectives)==null?0:(d=X.clientVeSpec)==null?0:d.uiType)&&(w=k.loggingDirectives.clientVeSpec,k=w.uiType,A=w.elementIndex,w=w.clientYoutubeData,W.visualElement=_.Wj(_.kf(),{veType:k,
elementIndex:A,clientYouTubeData:w}))}return!0};
eZI=function(W){if(W==null?0:W.rendererContext){var k=_.z(W.rendererContext,_.yPP);if(k==null?0:k.loggingDirectives)return k.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
Kq=function(W){var k;return(k=W.polymerController)!=null?k:W};
oVz=function(W){_.hv();if(_.MI(Ci().JSC$10319_elementShouldLogGesture).bind(Ci())(W,4)){$HI(W);var k=ZhI(W);RZm.set(W,k)}};
$HI=function(W){RZm.has(W)&&(RZm.get(W).cancel("untrack hover element"),RZm.delete(W))};
ZhI=function(W){var k,C=[],n=!1,N=new _.Wx(function(B,A){ni(W,"mouseenter",_.MI(function(){var w,x,E;return _.F(function(a){if(a.nextAddress==1)return k=(0,_.oX)(),w=ihJ(W),C.push(w),x=TtK(W,function(){n=!0;A(Error("Wg"))}),_.l(a,w,2);
if(a.nextAddress!=3)return x&&NN(x),E=qUw(W),C.push(E),_.l(a,E,3);B();_.ab(a)})}))});
N.then(function(){var B=(0,_.oX)()-k;B=Math.round(B);if(!(500>B||6E5<=B)){var A=W.getScreenLayer?W.getScreenLayer():void 0;A=_.VM(A)||"";var w=ufc(_.hv(),W);_.Rz(A,W.visualElement?W.visualElement:_.Yf(w),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:B}})}oVz(W)},function(){Bj&&(Bj(),Bj=null);
n&&($HI(W),oVz(W))});
return N};
ihJ=function(W){var k;return(new _.Wx(function(C,n){Bj=function(){n(Error("Xg"))};
k=_.aM.debounce(_.MI(function(){NN(N);C()}),1,100);
var N=_.b6(W,"mousemove",k)})).thenCatch(function(){var C=_.aM.cancelDebouncedJobMap.get(k);
C&&_.aM.cancelJob(C)})};
qUw=function(W){var k;return(new _.Wx(function(C,n){Bj=function(){n(Error("Yg"))};
k=ni(W,"mouseleave",_.MI(function(){C()}))})).thenCatch(function(){NN(k)})};
TtK=function(W,k){return ni(W,"mouseleave",_.MI(k))};
Oh3=function(W){UHc&&_.A7.cancel(UHc);UHc=_.A7.run(function(){_.Pe(W,"yt-visibility-refresh");UHc=0})};
LNJ=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
Hh2=function(W){if(!W)return!1;if(_.z(W,_.jdw))return!0;var k;if(W=(k=_.z(W,_.Nl))==null?void 0:k.commands)for(k=_.b(W),W=k.next();!W.done;W=k.next())if(_.z(W.value,_.jdw))return!0;return!1};
rPm=function(W){var k=!0;k=k===void 0?!0:k;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.m("experimental_templating_behavior_nopatch_killswitch")){var C=W._propertiesChanged;W._propertiesChanged=function(n,N,B){k?W.debounceRender():W.doRender();C&&C.call(W,n,N,B)}}};
gVm=function(W,k){if(W.useSignals||W.experimentalPropertiesChanged)if(_.m("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var C=new Set,n=[W].concat(_.J8(W.behaviors));n=_.b(n);for(var N=n.next();!N.done;N=n.next()){N=N.value;for(var B in N.properties)C.has(B)||(W._addPropertyEffect(B,"function",k),C.add(B))}};
PYp=function(){var W=Polymer.Element,k=W._prepareTemplate;W._prepareTemplate=function(){k.call(this);var C=this.prototype;if(C.experimentalTemplatingInUse&&C.experimentalTemplatingInUse()&&C.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.dI(Error("Zg"));else{C=this.template.content.childNodes;for(var n=C.length-1;n>=0;n--){var N=C[n];N.nodeName!=="STYLE"&&N.nodeName!=="LINK"&&N.nodeName!=="SCRIPT"&&N.nodeName!=="#comment"&&N.remove()}}}};
KNI=function(W){var k=!0;k=k===void 0?!0:k;PYp();var C=W.ready;W.ready=function(){this._template=null;C.call(this)};
gVm(W,k?W.debounceRender:W.doRender)};
WyP=function(W,k,C){if(C===null||C===void 0)return C;var n=n6m(W.tagName.toLowerCase(),k,function(){throw Error("Qb");});
if(n===null)return C;n=hZ3[n];var N;if((N=n.isUnwrappable)==null?0:N.call(n,C)){if(n.unwrap)return n.unwrap(C);throw Error("bh");}return n.filterString?n.filterString(W.tagName,k,String(C)):C};
kSP=function(W,k,C){var n=k[k.length-1]!=="$",N=WyP(W,k,C);if(n)if(typeof N==="function"&&k.startsWith("reactiveon")&&k===k.toLowerCase()){var B=qD;t9m(W,k.slice(8),function(A){zm(B,function(){N(A)})})}else W[k]=N;
else C=N==null?null:String(N),lRJ(W,k.slice(0,-1),C)};
FZ=function(W){CQJ.length===0&&requestAnimationFrame(function(){setTimeout(function(){var k=CQJ.slice();CQJ.length=0;k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;try{C()}catch(n){_.eh(n)}}})});
CQJ.push(W)};
nuX=function(W){if(W){var k=W.component;if(k){var C;k==null||(C=k.events)==null||C.publish("DISCONNECTED");var n;k==null||(n=k.onDisconnected)==null||n.call(k)}var N,B;(N=W.__spec)==null||(B=N.didUnmount)==null||B.call(N);for(k=0;k<W.childNodes.length;k++)nuX(W.childNodes[k])}};
xf=function(W,k,C){var n=k&&k.key,N=Gm;N[0]=W;N[1]=n;N[2]=void 0;for(var B in k)k.hasOwnProperty(B)&&(W=k[B],n=y7,n.push(B),n.push(W));k=Gm;a:{if(B=Gm[2])for(W=0;W<B.length;W+=2)if(B[W]==="nonce"){B=B[W+1];break a}B=""}B=Sd3(k[0],k[1],B);W=JY(B);n=k[2];if(!W.staticsApplied&&(W.staticsApplied=!0,n&&n.length))if((N=W._attrsArr)&&N.length){for(N=0;N<n.length;N+=2)wy[n[N]]=N+1;N=W._attrsArr||(W._attrsArr=xZP(0));for(var A=0,w=0;w<N.length;w+=2){var x=N[w],E=N[w+1],a=wy[x];a?n[a]===E&&delete wy[x]:(N[A]=
x,N[A+1]=E,A+=2)}DD(N,A);for(var X in wy)dZX(B,X,n[wy[X]],iT),delete wy[X]}else for(X=0;X<n.length;X+=2)dZX(B,n[X],n[X+1],iT);GXp(B,W,iT);DD(k,0);C&&C(cH);M94()};
NWm=function(W){var k=W.toString().toLowerCase();return function(C,n){xf(k,C,n)}};
_.l6=function(W,k,C){C===void 0?delete W[k.name]:W[k.name]=C};
_.t7=function(W){var k={androidIncludeFontPadding:!1},C=0,n=[],N=[],B=[];if(W.simpleText)return k.content=W.simpleText,k;if(W.runs===void 0)return k.content="",k;W=_.b(W.runs);for(var A=W.next();!A.done;A=W.next()){A=A.value;var w=A.text,x=void 0,E=(x=w)==null?void 0:x.length;if(w&&E){n.push(w);if(A.bold||A.italics||A.strikethrough||A.underline||A.textColor!=null&&A.textColor!==0||A.deemphasize){w=N;x=w.push;var a={startIndex:C,length:E};A.bold&&(a.weightLabel="FONT_WEIGHT_MEDIUM");A.italics&&(a.italic=
!0);A.strikethrough&&(a.strikethrough="LINE_STYLE_SINGLE");A.underline&&(a.underline="LINE_STYLE_SINGLE");A.textColor!=null&&A.textColor!==0?document.documentElement.hasAttribute("dark")?a.fontColor=A.darkModeTextColor||A.textColor:a.fontColor=A.textColor:A.deemphasize&&(document.documentElement.hasAttribute("dark")?a.fontColor=parseInt("ff"+Yt3("#aaa").substring(1),16):a.fontColor=parseInt("ff"+Yt3("#606060").substring(1),16));x.call(w,a)}A.navigationEndpoint&&(w=B,x=w.push,a={startIndex:C,length:E,
onTap:{innertubeCommand:A.navigationEndpoint}},A.loggingDirectives&&_.l6(a,BWP,A.loggingDirectives),x.call(w,a));C+=E}}k.content=n.join("");k.styleRuns=N.length?N:void 0;k.commandRuns=B.length?B:void 0;return k};
AGm=function(W){if(W==null||!W.runs)return!0;W=_.b(W.runs);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.bracket||k.errorUnderline||k.deemphasize||_.z(k,Ei)||_.z(k,bj3))return!1;return!0};
Fym=function(W,k){return function(C){var n=k.unit;if(n!==C)throw Error("eh`"+W+"`"+n+"`"+C);return k}};
aE=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var k="%";break;default:k="px"}W=W.value;k==="%"&&(W*=100);return""+W+k};
wdX=function(W){try{return W()}catch(k){_.zJ(k)}};
_.fi=function(W){var k=_.z(W,_.XZ);if(k)return k;if((k=_.z(W,xUP))&&k.commands)return l9X(k.commands);if((k=_.z(W,tPp))&&k.commands)return l9X(k.commands);if((W=_.z(W,EuI))&&W.identifier&&W.command&&(a93||(a93=[]),!a93.includes(W.identifier)))return a93.push(W.identifier),_.z(W.command,_.XZ)};
l9X=function(W){if(W.length!==0){var k=[];W=_.b(W);for(var C=W.next();!C.done;C=W.next())(C=_.fi(C.value))&&k.push(C);return{commandExecutorCommand:{commands:k}}}};
_.m8=function(W){var k=W.defaultTarget,C=W.elementConfig,n=W.elementsCommand,N=W.skipOnClick,B=W.forceNewState,A=W.additionalCommandArgs,w=W.innertubeCommand||_.fi(n);if(w){W={};var x=Xdz(w);n=x.navigatingCommand;x=x.href;n&&x?(W.href$=x,f9K(W,n,x,k),_.m("web_atagconfig_pointerdown")&&dU3(W,n),B&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.z(w,mU2)&&(W["aria-haspopup$"]=!0);N||(W.onclick=function(E){if(z5z(E)){var a=Object.assign({},{form:{element:E.target,event:E}},
A);E.preventDefault();_.dy(w,a)}});
return Object.assign({},C,W)}};
DUK=function(W){if(W.length){if(W.length===1)return W[0];var k={};_.l6(k,_.Nl,{commands:W});return k}};
VPp=function(W){return W&&W.href$!=="javascript:void(0);"};
Xdz=function(W){var k,C=((k=_.z(W,_.Nl))==null?void 0:k.commands)||[W];W=_.b(C);for(k=W.next();!k.done;k=W.next()){k=k.value;var n=void 0,N=void 0;C=(N=_.z((n=k)==null?void 0:n.commandMetadata,_.Ok))==null?void 0:N.url;_.m("web_remove_web_navigation_endpoint_data")||(n=void 0,C=C||((n=_.z(k,JGw))==null?void 0:n.url));if(C&&C!=="/service_ajax"){if(n=SN(C,cGc))return W=_.VG(n),{navigatingCommand:k,href:W};_.zJ(new _.AM("AttributedString URL could not be sanitized",C))}}return{}};
z5z=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
f9K=function(W,k,C,n){C=!iI(C);var N,B,A;if((N=_.z(k,_.kZ))!=null&&N.nofollow||(B=_.z(k,_.RA))!=null&&B.nofollow||(A=_.z(k,_.pM))!=null&&A.nofollow||C)W.rel$="nofollow";var w;k=((w=_.z(k,_.pM))==null?void 0:w.target)==="TARGET_NEW_WINDOW"?"_blank":n===void 0?"":n;W.target$=k};
dU3=function(W,k){k.clickTrackingParams&&(W.params={itct:k.clickTrackingParams});W.onpointerdown=function(C){I9z(C)};
W._data=k};
Stc=function(W){(W.loggingUrls||[]).forEach(function(k){Mq(k.baseUrl,k.attributionSrcMode)})};
MP2=function(W){W.currentTarget._data&&Stc(W.currentTarget._data)};
I9z=function(W){var k=W.currentTarget;W=wdX(function(){return k.href});
var C=k.params;W&&_.qL(W,C||{},8,!0)};
QPm=function(W,k){if(k=_.z(k,_.pM))(k==null?void 0:k.target)==="TARGET_NEW_WINDOW"&&(W.target="_blank"),k.nofollow&&(W.rel="nofollow")};
pd2=function(W){W=_.z(W==null?void 0:W.commandMetadata,_.Ok);return(W==null?0:W.url)?W.url:null};
_.zj=function(W,k){(W=_.fi(W))&&_.dy(W,k)};
_.dy=function(W,k){Vom(function(C){k?C.resolveCommand(W,k):C.resolveCommand(W)})};
GS2=function(W,k){var C=["yt-core-attributed-string__link"];k!=null&&k.noLinkColor||((k==null?0:k.isOverlay)?C.push("yt-core-attributed-string__link--overlay-call-to-action-color"):C.push("yt-core-attributed-string__link--call-to-action-color"),(k==null?0:k.linkInheritColor)&&C.push("yt-core-attributed-string--link-inherit-color"));C={className:C.join(" "),tabindex$:"0"};var n=W.onTap||W.onLongPress;if(!n)return C;var N=vuc(W);N&&(C["aria-label$"]=N);k=_.m8({elementsCommand:n,elementConfig:C,skipOnClick:!(k==
null||!k.skipOnClick),forceNewState:!0});W.onLongPress&&(n=new e5J(function(){var B=_.fi(W.onLongPress);B&&_.f().resolve(_.uI).resolveCommand(B)}),k&&sPz(n,k));
return k||C};
vuc=function(W){var k,C;return(k=W.onTapOptions)==null?void 0:(C=k.accessibilityInfo)==null?void 0:C.accessibilityLabel};
yGJ=function(W){var k=W;W<=16777215&&(k+=parseInt("ff000000",16));return _.Xi(k)};
$Uc=function(W){var k=W.isDarkTheme;var C=W.extension;W=W.runColor;var n=void 0;if(C=C==null?void 0:C.colorMap){k=k?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";C=_.b(C);for(var N=C.next();!N.done;N=C.next())if(N=N.value,k===N.key){n=N.value;break}}n==null&&W&&(n=W);if(n)return yGJ(n)};
Dz=function(W){var k=W.config;var C=W.image;var n=W.imageConfig;var N=W.imageWrapperConfig;var B=W.run;var A=W.tag;var w=W.textLength;var x=W.startIndex===void 0?0:W.startIndex;W=W.length;x===void 0&&(x=0);B={run:B,startIndex:x,endIndex:W!==void 0?x+W:w,tag:A};C&&(B.image=C);n&&(B.imageConfig=n);N&&(B.imageWrapperConfig=N);k&&(B.config=k);return B};
R5P=function(W,k){var C=[];C.push("yt-core-attributed-string");(k==null?0:k.className)&&C.push(k==null?void 0:k.className);(k==null?0:k.ellipsisTruncate)?C.push("yt-core-attributed-string--ellipsis-truncate"):(k==null?0:k.noWrap)?C.push("yt-core-attributed-string--white-space-no-wrap"):(k==null?0:k.noPreWrap)||C.push("yt-core-attributed-string--white-space-pre-wrap");(k==null?0:k.linkInheritColor)&&C.push("yt-core-attributed-string--link-inherit-color");W.alignment&&C.push(Zjm(W.alignment));W.lineBreakMode&&
C.push("yt-core-attributed-string--word-wrapping");return C.join(" ")};
ouz=function(W){if(W.weight)return W.weight;switch(W.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}};
ijJ=function(W){switch(W){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"}};
Zjm=function(W){switch(W){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"}};
qt4=function(W,k,C){var n=k;W.content&&C&&(C=W.content.indexOf("\n"),C!==-1&&(n=Math.min(k,C)));if(!W.content||W.content.length<=n)k=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){k=VI(W.content,n);C=n;var N=W.attachmentRuns;if(N){var B=[];N=_.b(N);for(var A=N.next();!A.done;A=N.next())A=Object.assign({},A.value),A.startIndex===void 0||A.startIndex>=C||(A.length||(A.length=0),A.length+A.startIndex>C&&(A.length=C-A.startIndex),B.push(A));C=B}else C=
void 0;B=TWz(n,W.commandRuns);N=n;var w=W.decorationRuns;if(w){A=[];w=_.b(w);for(var x=w.next();!x.done;x=w.next()){x=x.value;var E=_.z(x.textDecorator,J7);if(E&&E.startIndex!==void 0&&!(E.startIndex>=N)){x=Object.assign({},x,{textDecorator:{highlightTextDecorator:Object.assign({},E)}});E=_.z(x.textDecorator,J7);if(!E.length||E.length+E.startIndex>N)E.length=N-E.startIndex;A.push(x)}}N=A}else N=void 0;A=TWz(n,W.styleRuns);if(w=W.paragraphStyleRuns)for(W=[],w=_.b(w),x=w.next();!x.done;x=w.next()){var a=
x.value;x=Object.assign({},a);if(!(x.startIndex===void 0||x.startIndex>=n)){if(!x.length||x.length+x.startIndex>n)x.length=n-x.startIndex;E=[];var X=void 0,d=void 0;if((X=a)==null?0:(d=X.listGroup)==null?0:d.listItems)for(a=_.b(a.listGroup.listItems),X=a.next();!X.done;X=a.next())if(X=Object.assign({},X.value),!(X.startIndex===void 0||X.startIndex>=n)){if(!X.length||X.length+X.startIndex>n)X.length=n-X.startIndex;E.push(X)}E.length>0&&(x.listGroup||(x.listGroup={}),x.listGroup=Object.assign({},x.listGroup,
{listItems:E}));W.push(x)}}else W=void 0;k={content:k,attachmentRuns:C,commandRuns:B,decorationRuns:N,styleRuns:A,paragraphStyleRuns:W}}else k=Object.assign({},W,{content:VI(W.content,n)});return k};
TWz=function(W,k){if(k){var C=[];k=_.b(k);for(var n=k.next();!n.done;n=k.next())if(n=Object.assign({},n.value),!(n.startIndex===void 0||n.startIndex>=W)){if(!n.length||n.length+n.startIndex>W)n.length=W-n.startIndex;C.push(n)}return C}};
VI=function(W,k){var C=k,n;if(n=C>0)n=W.charCodeAt(C-1),n=n>=55296&&n<=56319;n&&(C=W.charCodeAt(C),n=C>=56320&&C<=57343);n&&--k;return W.substring(0,k)};
LyK=function(W,k,C){C=C===void 0?uW3:C;if(W){var n=_.f().resolve(qP);n||_.m("mweb_no_observer_killswitch")?GhX(W,{data:k,observer:n,visibilityCallback:C,hideOption:UU4,showOption:OjK,layer:W.layer}):_.zJ(new _.AM("Warning: monitorVisibility called with null observer",W.tagName,k==null?void 0:k.loggingDirectives,k==null?void 0:k.trackingParams))}else _.zJ(new _.AM("Warning: monitorVisibility called with null element",k==null?void 0:k.loggingDirectives,k==null?void 0:k.trackingParams,k==null?void 0:
k.rendererContext))};
h5P=function(W,k){var C=[],n=W.content.length,N,B=(N=_.f().resolve(_.qI(_.cj)))==null?void 0:N();if(W.paragraphStyleRuns){N=_.b(W.paragraphStyleRuns);for(var A=N.next();!A.done;A=N.next()){var w=C.push,x=w.apply;var E=void 0;A=A.value;if((E=A.listGroup)!=null&&E.listItems){E=[];b:switch(A.listGroup.listType){case "LIST_TYPE_BULLET":var a="ul";break b;default:a="span"}E.push(Dz({run:A,textLength:n,tag:a,config:{className:"yt-core-attributed-string__list-group"},startIndex:A.startIndex,length:A.length}));
a=_.b(A.listGroup.listItems);for(var X=a.next();!X.done;X=a.next()){X=X.value;b:switch(A.listGroup.listType){case "LIST_TYPE_BULLET":var d="li";break b;default:d="span"}E.push(Dz({run:A,textLength:n,tag:d,startIndex:X.startIndex,length:X.length}))}A=E}else A=[];x.call(w,C,_.J8(A))}}if(W.styleRuns&&(k==null||!k.noStyleRuns))for(N=_.b(W.styleRuns),w=N.next();!w.done;w=N.next()){w=w.value;x=$Uc({extension:_.z(w.styleRunExtensions,jPJ),isDarkTheme:B===void 0?!1:B,runColor:w.fontColor});E=[];x&&E.push("yt-core-attributed-string--link-inherit-color");
w.italic&&E.push("yt-core-attributed-string--italicized");w.underline&&w.strikethrough?E.push("yt-core-attributed-string--underline-strikethrough",ijJ(w.underline)):w.underline?E.push("yt-core-attributed-string--underlined",ijJ(w.underline)):w.strikethrough&&E.push("yt-core-attributed-string--strikethrough",ijJ(w.strikethrough));if(w.baselineOffset){a:switch(w.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":A="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":A=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:A="yt-core-attributed-string--baseline-offset-unknown"}E.push(A)}A=E.join(" ");E=w;a={};if(E.weight||E.weightLabel)a.fontWeight=ouz(E).toString();x&&(a.color=x);C.push(Dz({run:w,textLength:n,tag:"span",config:{className:A,style:a},startIndex:w.startIndex,length:w.length}))}if(W.decorationRuns)for(N=_.b(W.decorationRuns),w=N.next();!w.done;w=N.next())w=w.value,x={},w.textDecorator&&(a=w.textDecorator,A=B===void 0?!1:B,X=[],E=
_.z(a,J7),a=_.z(a,HjK),E?(a=X,X=a.concat,d=[],(A=$Uc({extension:_.z(E.highlightTextDecoratorExtensions,rGz),isDarkTheme:A,runColor:E.backgroundColor}))&&d.push("background-color: "+A+";"),E.backgroundCornerRadius!==void 0&&d.push("border-radius: "+E.backgroundCornerRadius+"px;"),E.leftPadding!==void 0&&d.push("padding-left: "+E.leftPadding+"px;"),E.rightPadding!==void 0&&d.push("padding-right: "+E.rightPadding+"px;"),E.topPadding!==void 0&&d.push("padding-top: "+E.topPadding+"px;"),E.bottomPadding!==
void 0&&d.push("padding-bottom: "+E.bottomPadding+"px;"),X=X.call(a,d)):a&&(E=X,X=E.concat,A=A?"#2ba640":"#107516",A=a.color?yGJ(a.color):A,A=["padding: 2px;","border-top: solid "+A+" 2px;","border-bottom: solid "+A+" 2px;","background: linear-gradient(135deg, "+A+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+A+" 3px, rgba(0, 0, 0, 0) 3px);"],X=X.call(E,A)),A=X.join(" "),x.style$=A,A=w.textDecorator,E=[],a=_.z(A,HjK),_.z(A,J7)?E.push("yt-core-attributed-string--highlight-text-decorator"):
a&&E.push("yt-core-attributed-string--bracket-text-decorator"),A=E.join(" "),x.className=A,x.dir="auto"),A=_.z(w.textDecorator,J7),E=_.z(w.textDecorator,HjK),a=_.z(w.textDecorator,J7),X=_.z(w.textDecorator,HjK),C.push(Dz({run:w,textLength:n,tag:"span",config:x,startIndex:(A==null?void 0:A.startIndex)||(E==null?void 0:E.startIndex)||0,length:(a==null?void 0:a.length)||(X==null?void 0:X.length)||0}));if(W.commandRuns&&(k==null||!k.noEndpoints))for(B=_.b(W.commandRuns),N=B.next();!N.done;N=B.next())N=
N.value,w=GS2(N,k),C.push(Dz({run:N,textLength:n,tag:"a",config:w,startIndex:N.startIndex,length:N.length}));if(W.attachmentRuns)for(W=_.b(W.attachmentRuns),B=W.next();!B.done;B=W.next()){B=B.value;x=w=void 0;N={className:"yt-core-attributed-string--inline-block-mod"};if((x=B.element)==null?0:x.properties){x=(w=B.element)==null?void 0:w.properties;w=[];x=_.z(x,guJ);if(x==null?0:x.margin)x=x.margin,x.left&&w.push("margin-left: "+aE(x.left)+";"),x.right&&w.push("margin-right: "+aE(x.right)+";"),x.top&&
w.push("margin-top: "+aE(x.top)+";"),x.bottom&&w.push("margin-bottom: "+aE(x.bottom)+";");w=w.length!==0?w.join(" "):void 0;N.style$=w}A=void 0;w={alt:"",preserveHeight:!0,preserveWidth:!0};x=["yt-core-attributed-string__image-element"];if(B.alignment){a:switch(B.alignment){case "ALIGNMENT_BASELINE":E="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":E="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:E=
"yt-core-attributed-string__image-element--image-alignment-bottom"}x.push(E)}if((A=B.element)==null?0:A.properties)A=[],E=_.z(B.element.properties,guJ),(E==null?0:E.height)&&A.push("height: "+aE(E.height)+";"),(E==null?0:E.width)&&A.push("width: "+aE(E.width)+";"),A=A.length!==0?A.join(" "):void 0,w.style$=A,E=void 0,A=((E=_.z(B.element.properties,PQ3))==null?void 0:E.label)||"",w.alt=A;w.className=x.join(" ");x=void 0;a=E=void 0;A=((a=B.element)==null?0:a.type)?(E=_.z(B.element.type,Ky3))==null?
void 0:E.image:void 0;C.push(Dz({run:B,textLength:n,tag:"img",image:A,imageConfig:w,imageWrapperConfig:N,startIndex:B.startIndex,length:(x=B.length)!=null?x:0}))}if(k==null?0:k.headerRuns)for(k=_.b(k.headerRuns),W=k.next();!W.done;W=k.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":B=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":B="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":B="yt-core-attributed-string--heading-3";break a}B=void 0}C.push(Dz({run:W,textLength:n,tag:"span",config:B?{className:B}:void 0,startIndex:W.startIndex,length:W.length}))}return C};
_.IE=function(W){return(W==null?void 0:W.content)!==void 0};
Wxm=function(W){return _.IE(W)?W:_.t7(W)};
kNP=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
CG4=function(W,k){if(k==null?0:k.userInput)for(W=_.b(W),k=W.next();!k.done;k=W.next())if(k=k.value,k.tag!=="a"&&k.tag!=="li"){var C=void 0;(C=k).config||(C.config={});k.config.dir=k.tag==="ul"?_.f().resolve(_.Sc):"auto"}};
nJK=function(W){return function(k){var C=W.run;(C.onTap!==void 0||C.onLongPress!==void 0)&&_.z(C,BWP)&&LyK(k,{loggingDirectives:_.z(C,BWP)})}};
NCI=function(W){return function(k){for(var C in W)(iT[C]||iT[V7["default"]])(k,C,W[C])}};
AIc=function(W,k){Y0p(k);var C={data:null,start:0,end:W.length,parts:[]};k=_.b(k);for(var n=k.next();!n.done;n=k.next())n=n.value,BCX(C,n.startIndex,n.endIndex,n);bJP(W,C);return C};
BCX=function(W,k,C,n){for(var N=_.b(W.parts),B=N.next();!B.done;B=N.next()){B=B.value;if(typeof B==="string")throw Error("gh");if(B.start<=k&&C<=B.end){BCX(B,k,C,n);return}}W.parts.push({data:n,parts:[],start:k,end:C})};
bJP=function(W,k){for(var C=k.parts.length;C>=0;C--){var n=k.parts[C],N=k.parts[C-1],B=C===k.parts.length?k.end:n.start;N=C===0?k.start:N.end;B!==N&&k.parts.splice(C,0,W.slice(N,B));n&&bJP(W,n)}};
Y0p=function(W){W.sort(function(k,C){if(k.startIndex<C.startIndex)return-1;if(C.startIndex<k.startIndex)return 1;k=k.endIndex-k.startIndex;C=C.endIndex-C.startIndex;return k>C?-1:C>k?1:0})};
_.FxX=function(W){var k=W.thumbnails;if(k){W={sources:[]};k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n={};n.url=C.url;n.width=C.width;n.height=C.height;W.sources.push(n)}return W}};
wWP=function(W,k,C,n){if(!k)return W.length>=1?W[W.length-1]:null;if(n)for(var N=_.b(W),B=N.next();!B.done;B=N.next()){B=B.value;var A=void 0,w=(A=B.url)==null?void 0:A.indexOf(n);if(w!==void 0&&w>=0)return B}n=_.b(W);for(N=n.next();!N.done;N=n.next())if(N=N.value,N.width&&N.height&&(C&&N.width>=k||!C&&N.height>=k))return N;for(k=W.length-1;k>=0;k--)if(C&&W[k].width||!C&&W[k].height)return W[k];return W[0]};
_.xp2=function(W){var k;return(W=(k=W.sources)==null?void 0:k[0])?W.width/W.height:0};
lK3=function(W){if(W.sources){W=_.b(W.sources);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=void 0;if((C=k.clientResource)==null?0:C.imageName)return k}}};
tlX=function(W){var k;if((k=W.clientResource)!=null&&k.imageColor)return _.Xi(W.clientResource.imageColor)};
_.aKp=function(W,k,C,n,N,B,A){if(!k||k.length===0||k[0].clientResource)return null;if(C&&k[0].url)return k[0].url;n===void 0&&(n=!0);if(n){var w;W=EJc*(N||(W==null?void 0:(w=W.getBoundingClientRect())==null?void 0:w.width)||0)}else{var x;W=EJc*(B||(W==null?void 0:(x=W.getBoundingClientRect())==null?void 0:x.height)||0)}k=wWP(k,W,n,A);return(k==null?0:k.url)?k.url:(k==null?0:k.imageData)?k.imageData:null};
XWP=function(W,k,C){C=C?[C]:[];W.opacity&&C.push("opacity: "+W.opacity+";");k&&W.placeholderColor?(W=_.Xi(W.placeholderColor),C.push("background-color: "+W+";")):C.push("background-color: transparent;");return C.join(" ")};
fKX=function(W,k,C,n,N){var B=["yt-core-image"];k&&B.push(k);C||B.push("yt-core-image--fill-parent-height");n||B.push("yt-core-image--fill-parent-width");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":B.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":B.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":B.push("yt-core-image--content-mode-center");break;default:B.push("yt-core-image--content-mode-scale-to-fill")}W.flipForRtlLayout&&
B.push("yt-core-image--flip-rtl");switch(N){case "TOP_START":var A;B.push(((A=document.body)==null?void 0:A.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return B.join(" ")};
mpP=function(W){var k;if(W==null?0:(k=W.clientResource)==null?0:k.imageName){var C;W=(C=W.clientResource)==null?void 0:C.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":C="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":C="yt-logos-ext:yt-logo-updated";break a}C=void 0}return C||dpP.get(W)||W}};
MN=function(W){return _.m("mweb_wiz_skip_render")?zQm(W):Dp4(W)};
zQm=function(W){return function(k){var C=Sd3("wink-root");so();M94();LkJ(C,_.t(W,k))}};
Dp4=function(W){var k=k===void 0?!1:k;return function(C){if(!k||!_.m("mweb_skip_keto_to_c3_if_no_data")||C.data!==void 0){var n=uR(!1);try{var N=C.children;_.m("mweb_render_outside_patch_killswitch")||cH?N?o9(_.t(W,C,N)):o9(_.t(W,C)):_.zJ(new _.AM("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{uR(n)}}}};
Vlp=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
cIP=function(W,k){W.onViewportEntered=k;JI4.observe(W)};
IKz=function(){var W={rootMargin:"10%",threshold:.01};_.m("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.m("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(k,C){k.filter(function(n){return n.intersectionRect.height>0}).forEach(function(n){n=n.target;
if(!_.m("mweb_enable_only_update_image_when_connected")||n.isConnected!==!1){var N;(N=n.onViewportEntered)==null||N.call(n);C.unobserve(n)}})},W)};
S02=function(W,k,C,n,N){function B(){if(n){var w=n.loadedClass,x=n.notifyOnUnloaded;w&&_.QI(W,w);x&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function A(){var w=C(k,W);w&&W.getAttribute("src")!==w&&(_.m("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||w===W.src||(W.src=w),B())}
N=N===void 0?!0:N;W.removeAttribute("src");B();k&&(N?cIP(W,A):A())};
Mlm=function(W,k){for(var C in k)C==="className"?W.className=k[C]:(iT[C]||iT[V7.default])(W,C,k[C])};
QB3=function(W,k,C,n){MN(_.pi)({contentMode:k.contentMode,loadedClass:k.loadedClass,isPreloaded:k.isPreloaded,notifyOnLoaded:k.notifyOnLoaded,notifyOnUnloaded:k.notifyOnUnloaded,preferredThumbnail:k.preferredThumbnail,preserveHeight:k.preserveHeight,preserveWidth:k.preserveWidth,objectPosition:k.objectPosition,targetWidth:k.targetWidth,targetHeight:k.targetHeight,shouldShowPlaceholder:k.shouldShowPlaceholder,useWidth:k.useWidth,alt:k.alt,className:k.className,onerror:k.onerror,onload:k.onload,style$:k.style$,
color:k.color,width:k.width,height:k.height,"aria-hidden$":k["aria-hidden$"],draggable:k.draggable,"data-disabled$":k["data-disabled$"],data:W,callback:C,renderLazy:n===void 0?!0:n,hideOn404:!1})};
vJJ=function(W,k,C){C=C===void 0?!1:C;var n=W.sources!==void 0?W:_.FxX(W);if(n){var N=k.onload;k.onload=function(x){var E=x.target;C&&E.naturalWidth===120||_.vj(E,"yt-core-image--loaded");k.notifyOnLoaded&&E.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));N==null||N(x)};
k.targetWidth&&k.preserveWidth&&(k.width=k.targetWidth);k.targetHeight&&k.preserveHeight&&(k.height=k.targetHeight);var B=lK3(n),A=B&&mpP(B);if(A)return(W=tlX(B))&&(k.color=W),{type:"icon",iconName:A,config:Object.assign({},k,k.alt?{}:{"aria-hidden$":"true"},{"aria-label$":k.alt,role:"img"})};if(W.sources===void 0){k.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||k.alt;k.style$=XWP(W,k.shouldShowPlaceholder,k.style$);var w;k.isPreloaded=!((w=_.z(W,
pWc))==null||!w.isPreloaded)}k.contentMode&&!n.contentMode&&(n.contentMode=k.contentMode);k.className=fKX(n,k.className,k.preserveHeight,k.preserveWidth,k.objectPosition);k.loadedClass="yt-core-image--loaded";return{type:"image",image:n,config:k}}};
_.eQP=function(){var W=_.v6.apply(0,arguments);return _.$I(function(k){var C=W.map(function(n){return n(k)});
return function(){return void C.forEach(function(n){return void(n==null?void 0:n())})}})};
sBw=function(W,k){var C=k==null?void 0:k.initial;return _.BH(function(){_.m$(!0);return C=W(C)},{equals:k==null?void 0:k.isEqual},"rSlKsc")};
GNm=function(W,k){if(W===k)return!0;if(W===void 0||k===void 0)return!1;var C,n,N,B,A,w,x,E;return W.content===k.content&&((C=W.styleRuns)==null?void 0:C.length)===((n=k.styleRuns)==null?void 0:n.length)&&((N=W.commandRuns)==null?void 0:N.length)===((B=k.commandRuns)==null?void 0:B.length)&&((A=W.attachmentRuns)==null?void 0:A.length)===((w=k.attachmentRuns)==null?void 0:w.length)&&((x=W.decorationRuns)==null?void 0:x.length)===((E=k.decorationRuns)==null?void 0:E.length)};
ZJX=function(W,k){if(W){var C=Wxm(W);if(C!=null&&C.content)if(_.m("attr_string_reactive"))MN(yI3)({text:W,config:k});else{var n=!(k==null||!k.ariaLabel)||!(C.commandRuns&&C.commandRuns.length!==0||C.paragraphStyleRuns&&C.paragraphStyleRuns.length!==0);W=n?k==null?void 0:k.ariaLabel:null;n=n?"text":null;xf("span",{className:R5P(C,k),dir$:(k==null?0:k.userInput)?"auto":void 0,"aria-label$":W,role$:n},function(){if(C.styleRuns||C.commandRuns||C.attachmentRuns||C.decorationRuns){var N=h5P(C,k);CG4(N,
k);N=AIc(C.content,N);N=_.b(N.parts);for(var B=N.next();!B.done;B=N.next())$pw(B.value)}else oW(C.content)})}}};
$pw=function(W){typeof W==="string"?oW(W):kNP(W.data)?xf("span",W.data.imageWrapperConfig,function(){QB3(W.data.image,W.data.imageConfig)}):xf(W.data.tag,W.data.config,function(k){nJK(W.data)(k);
k=_.b(W.parts);for(var C=k.next();!C.done;C=k.next())$pw(C.value)})};
oJp=function(W){return W.parts.map(RQp)};
RQp=function(W){if(typeof W==="string")return W;W=kNP(W.data)?_.t("span",{el:_.eQP(NCI(W.data.imageWrapperConfig))},_.t(_.pi,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.t(W.data.tag,{el:_.eQP(nJK(W.data),NCI(W.data.config))},W.parts.map(RQp));return Ky(W)};
iJJ=function(W,k){return W===k?!0:W===void 0||k===void 0?!1:W.noStyleRuns===k.noStyleRuns&&W.noLinkColor===k.noLinkColor&&W.noEndpoints===k.noEndpoints&&W.headerRuns===k.headerRuns&&W.isOverlay===k.isOverlay&&W.linkInheritColor===k.linkInheritColor&&W.userInput===k.userInput};
TC3=function(W){return function(){var k,C,n,N,B,A,w,x,E,a,X,d,V,c;return{ariaLabel:(k=W.ariaLabel)==null?void 0:k.call(W),className:(C=W.className)==null?void 0:C.call(W),ellipsisTruncate:(n=W.ellipsisTruncate)==null?void 0:n.call(W),isOverlay:(N=W.isOverlay)==null?void 0:N.call(W),linkInheritColor:(B=W.linkInheritColor)==null?void 0:B.call(W),noEndpoints:(A=W.noEndpoints)==null?void 0:A.call(W),noStyleRuns:(w=W.noStyleRuns)==null?void 0:w.call(W),noLinkColor:(x=W.noLinkColor)==null?void 0:x.call(W),
noPreWrap:(E=W.noPreWrap)==null?void 0:E.call(W),noWrap:(a=W.noWrap)==null?void 0:a.call(W),skipOnClick:(X=W.skipOnClick)==null?void 0:X.call(W),stopPropagation:(d=W.stopPropagation)==null?void 0:d.call(W),userInput:(V=W.userInput)==null?void 0:V.call(W),headerRuns:(c=W.headerRuns)==null?void 0:c.call(W)}}};
q04=function(W){return W.value===""||W.value==="true"?!0:W.value==="false"?!1:isNaN(Number(W.value))?W.value:Number(W.value)};
ec=function(W,k){W=new uG4(W,k);_.dI(W);throw W;};
Upw=function(W,k,C){var n=gtP(W);W._numRenders=0;try{var N=lNw(function(){return _.t(k,Object.assign({},C))})}catch(A){var B=function(w){w.args||(w.args=[]);
w.args.push("Error in web component wrapper");w.args.push(W.tagName.toLowerCase());return w};
_.mw(A instanceof Error?B(A):new uG4("Wiz rendering error",W.tagName.toLowerCase()));throw A;}finally{gtP(n)}return N};
_.Gj=function(W,k,C){function n(E){var a={};E=_.b(E);for(var X=E.next();!X.done;X=E.next()){X=X.value;var d=void 0,V=void 0,c=void 0,M=_.bd((c=(V=(d=X).getAttribute)==null?void 0:V.call(d,"slot"))!=null?c:"children");if(d=a[M])d.push(X);else if(M in B||M==="children")a[M]=[X]}if(OJz)for(E=_.b(Object.keys(a)),M=E.next(),X={};!M.done;X={content$jscomp$55:void 0},M=E.next())M=M.value,M!=="children"&&(X.content$jscomp$55=a[M],a[M]=function(p){return function(){return p.content$jscomp$55}}(X));
return a}
C=C===void 0?{}:C;W.componentType!==xw||ec("Components must be marked reactive to be used from web component wrapper.",k);TM.has(k)&&ec("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",k);var N,B=(N=C.props)!=null?N:{};qs.add(k);var A=LxX();C=function(){var E=A.apply(this,arguments)||this;E.rawProps={};E.queuingRender=!1;E.dispose=function(){};
E.isWebComponentWrapper=!0;E.isReparenting=!1;E.hasAttached=!1;return E};
_.D(C,A);C.prototype.render=function(){this.hasAttached=!0;for(var E=_.b([].concat(_.J8(this.attributes))),a=E.next();!a.done;a=E.next())a=a.value,a.name!=="slot"&&this.removeAttribute(a.name);E=Object.assign({},this.componentProps,this.slotProps);a=_.b(Upw(this,W,E));E=a.next().value;a=a.next().value;!(E[0]instanceof Element)||E.length>1?ec("Wrapped Wiz components must return a single root element.",k):(E=E[0].tagName.toLowerCase(),E!==k&&ec("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(E+" !== '"+k),k),this.dispose=a)};
C.prototype.setUpProps=function(){for(var E=this.rawProps,a=this.attributes,X=_.b(Object.keys(B)),d=X.next();!d.done;d=X.next()){d=d.value;var V=void 0;((V=this)==null?0:V[d])&&this[d]!==jBK&&E[d]===void 0&&(E[d]=this[d],(V=Object.getOwnPropertyDescriptor(this.constructor.prototype,d))&&Object.defineProperty(this,d,V))}X=_.b(a);for(d=X.next();!d.done;d=X.next()){V=d.value;d=_.bd(V.name);var c=d==="class"&&!a.getNamedItem("class-name");if(d in B||c)V=q04(V),d!=="class"||E.className?E[d]=V:E.className=
V}a={};for(var M in B)B[M]===_.si||OJz&&B[M]===HJw||(E[M]instanceof Function&&ec("Function props must be configured as STATIC, not SIGNAL.",k),d=_.b(_.kw(E[M],void 0,"vGbZpc")),X=d.next().value,d=d.next().value,a[M]=d,E[M]=X);E=_.b([E,a]);this.componentProps=E.next().value;this.setters=E.next().value;this.slotProps=n(this.childNodes)};
C.prototype.connectedCallback=function(){oK===k&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in B&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
C.prototype.disconnectedCallback=function(){if(!this._isInert){var E;a:{if(_.rIX)for(E=this;E;){if(_.gJX.has(E)){E=!0;break a}E=E.parentElement}E=!1}if(E)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){E=_.b([].concat(_.J8(this.attributes)));for(var a=E.next();!a.done;a=E.next())a=a.value,a.name!=="slot"&&this.removeAttribute(a.name)}this.innerText="";uN4(this)}}};
C.prototype._setPendingPropertyOrPath=function(){};
C.prototype.notifyPath=function(){};
_.oq.Object.defineProperties(C.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
N=_.b(Object.keys(B));for(var w=N.next(),x={};!w.done;x={prop$jscomp$103:void 0},w=N.next())x.prop$jscomp$103=w.value,Object.defineProperty(C.prototype,x.prop$jscomp$103,{set:function(E){return function(a){var X=this;this._isInert||(this.setters?bR(function(){var d,V;return void((V=(d=X.setters)[E.prop$jscomp$103])==null?void 0:V.call(d,a))}):(this.rawProps[E.prop$jscomp$103]=a,this.queuingRender&&E.prop$jscomp$103==="data"&&a!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(x),
get:PGw.has(x.prop$jscomp$103)?void 0:function(){return jBK}});
customElements.define(k,C)};
_.Kxp=function(W,k){return(W=_.yI(W,k))?_.VG(_.QG(W)):null};
_.$f=function(W){if(W=_.yI(W,Number.MAX_VALUE,void 0,"width"))return _.QG(W)};
_.yI=function(W,k,C,n){n=n===void 0?"width":n;if(!W||!W.length)return null;if(_.m("kevlar_tuner_should_always_use_device_pixel_ratio")){var N=window.devicePixelRatio;_.m("kevlar_tuner_should_clamp_device_pixel_ratio")?N=Math.min(N,_.Oe("kevlar_tuner_clamp_device_pixel_ratio")):_.m("kevlar_tuner_should_use_thumbnail_factor")&&(N=_.Oe("kevlar_tuner_thumbnail_factor"));hQw=N}else hQw||(hQw=window.devicePixelRatio);N=hQw;_.m("kevlar_tuner_should_always_use_device_pixel_ratio")?k*=N:N>1&&(k*=N);if(_.m("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;N=W.length;if(_.m("kevlar_tuner_max_thumbnail_quality"))return W[N-1].url||null;if(C)for(var B=0;B<N;B++)if(W[B].url.indexOf(C)>=0)return W[B].url||null;for(C=0;C<N;C++)if(W[C][n]>=k)return W[C].url||null;for(k=N-1;k>0;k--)if(W[k][n])return W[k].url||null;return W[0].url||null};
Cvw=function(){Zz.size?setTimeout(function(){RE(Wz4)},0):kLJ=0};
Wz4=function(){var W=(0,_.oX)(),k=null,C=!1;Zz.forEach(function(N){N.loaded=!0;N.loadTime=W;N.pendingPaint=!1;var B=nmm.get(N);B&&B.resolve(W);k=N;C||!N.ftlEligible&&N.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(C=!0)});
var n;((n=k)==null?0:n.markDirty)&&k.markDirty();Zz.clear();kLJ=0;C&&Nez(W)};
YfK=function(W){Zz.add(W);W.pendingPaint=!0;kLJ||(kLJ=_.oE(_.aM,Cvw))};
Bem=function(W){W.loaded=!1;W.loadTime=Infinity;var k=nmm.get(W);k&&(k.reject(Error("mh")),nmm.delete(W));W.pendingPaint&&(Zz.delete(W),W.pendingPaint=!1)};
_.bdP=function(W){var k=W.indexOf(":");return k===-1?{originalName:W}:{originalName:W.substring(0,k),datasyncId:W.substring(k+1)}};
_.Fz3=function(){return _.F(function(W){if(ALJ!==void 0)return W.return(ALJ);ALJ=new Promise(function(k){var C;return _.F(function(n){switch(n.nextAddress){case 1:return _.F0(n,2),_.l(n,_.i6.open("test-only"),4);case 4:return _.l(n,_.i6.delete("test-only"),5);case 5:_.M7(n,3);break;case 2:if(C=_.EF(n),C instanceof Error&&C.name==="SecurityError")return k(!1),n.return();case 3:k("caches"in window),_.ab(n)}})});
return W.return(ALJ)})};
l4P=function(){return _.F(function(W){if(W.nextAddress==1)return _.l(W,_.Fz3(),2);if(!W.yieldResult)return W.return(void 0);wsK||(wsK=new x1p);return W.return(wsK)})};
tGI=function(W){var k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return _.l(B,l4P(),2);case 2:k=B.yieldResult;if(!k)throw Error("oh");return _.l(B,k.open("yt-player-local-img"),3);case 3:return C=B.yieldResult,_.l(B,C.match(W),4);case 4:n=B.yieldResult;if(!n)throw Error("ph");return _.l(B,n.blob(),5);case 5:return N=B.yieldResult,B.return(N)}})};
Emw=function(W,k){for(var C in W)if(W.hasOwnProperty(C)&&k[C])return C;return null};
a4P=function(W){return"stamp"+W.replace("-","_")+"_"};
XsX=function(W){var k=W.match(/\[\[([\w\.]+)\]\]/);if(k&&k.length>1)return k[1];_.dI(Error("rh`"+W));return null};
f4z=function(W){return W===void 0?_.cv("REUSE_COMPONENTS",!1):W||!1};
zFK=function(W,k,C){C&&(k.is?(d1z.has(k)&&(W=d1z.get(k),C=W.listener,delete k[W.property],C.type==="element"&&k.removeEventListener(C.eventName,C.handler),d1z.delete(k)),m1p(k)):k.__proto__==HTMLElement.prototype&&(k=new _.AM("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(k&&k.nodeName)),_.zJ(k)))};
D1I=function(W,k,C,n){var N=k.node?k.node:k;_.S(C).parentNode===N&&(k.removeChild(C),zFK(W,C,n));if(W=Tj.get(C))Tj.delete(C),_.aM.cancelJob(W);C.hidden=!1};
VGm=function(W,k,C,n){if(k&&k.children&&(C=k.children[C]))if(_.cv("DEFERRED_DETACH"))for(;C&&!Tj.has(C);){var N=W,B=k,A=C,w=n;A.hidden=!0;N=_.wI(_.aM,D1I.bind(null,N,B,A,w),0);Tj.set(A,N);C=C.nextElementSibling}else for(;(A=k.lastElementChild)&&(k.removeChild(A),zFK(W,A,n),A!=C););};
JL2=function(W){var k=_.yE();_.Ee(function(){for(var C=_.b(W.slotContent),n=C.next();!n.done;n=C.next())k.value.appendChild(n.value)});
return _.t("__slot-el",{el:k,skip:!0})};
_.qN=function(W,k,C){C=C===void 0?cLX:C;TM.add(k);var n;(n=C).propNames!=null||(n.propNames=[]);var N=new Set(C.propNames),B=LxX();n=function(){var E=B.call(this)||this;E.props={};E.isUpdating=!1;E.hasAttached=!1;E.isInert=!1;E.updateQueued=!1;E.initialClasses=[];r62(E,k);return E};
_.D(n,B);n.prototype.forwardKebabCaseProp=function(E,a){E=_.bd(E);if(N.has(E)||E==="children")this.props[E]=a};
n.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var E=_.b(this.initialClasses),a=E.next();!a.done;a=E.next())(a=a.value)&&this.classList.add(a);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
n.prototype.handleSlottedContent=function(){for(var E=new Map,a=_.b(this.children),X=a.next();!X.done;X=a.next()){X=X.value;var d=void 0,V=(d=X.getAttribute("slot"))!=null?d:"children";(d=E.get(V))?d.push(X):E.set(V,[X]);if(!X.getAttribute("key")){var c=void 0,M=void 0;X.setAttribute("key",V+"_"+((M=(c=d)==null?void 0:c.length)!=null?M:0))}}E=_.b(E);for(a=E.next();!a.done;a=E.next())X=_.b(a.value),a=X.next().value,X=X.next().value,this.forwardKebabCaseProp(a,_.t(JL2,{slotContent:X}))};
n.prototype.connectedCallback=function(){var E=this;if(!r62(this,k)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var a=_.b(this.attributes),X=a.next();!X.done;X=a.next())X=X.value,this.forwardKebabCaseProp(X.name,q04(X));this.handleSlottedContent();C.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){E.afterFirstPatch()});
this.hasAttached=!0}};
n.prototype.attributeChangedCallback=function(E,a,X){this.isInert||this.isUpdating||this.isConnected||E!=="class"||this.initialClasses.push.apply(this.initialClasses,_.J8(X.split(" ")))};
n.prototype.disconnectedCallback=function(){pep(this)};
n.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var E,a;LkJ(this,_.t(W,Object.assign({},this.props,{idomKey:(a=(E=this.__incrementalDOMData)==null?void 0:E.key)!=null?a:k})),!0)}catch(d){var X=d instanceof Error?d:new _.AM("Wiz rendering error");X.args||(X.args=[]);X.args.push("Error in deprecated web component wrapper");X.args.push(k.toLowerCase());_.dI(X);throw d;}finally{this.updateQueued=this.isUpdating=!1}}};
n.prototype.enqueueUpdate=function(){var E=this;return _.F(function(a){if(C.synchronous)return E.update(),a.return();if(E.updateQueued)return a.return();E.updateQueued=!0;return a.return(Promise.resolve().then(function(){E.update()}))})};
n.prototype.notifyPath=function(){C.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.oq.Object.defineProperties(n,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var A=_.b(C.propNames),w=A.next(),x={};!w.done;x={prop$jscomp$105:void 0},w=A.next())x.prop$jscomp$105=w.value,Object.defineProperty(n.prototype,x.prop$jscomp$105,{set:function(E){return function(a){this.isInert||a===this.props[E.prop$jscomp$105]||(this.props[E.prop$jscomp$105]=a,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(x)});
customElements.define(k,n)};
_.I4m=function(W,k){return _.hQ(W.entities,"markersEngagementPanelSyncEntity",k)};
SfP=function(W,k){return _.hQ(W.entities,"fantasyWinProbabilityEntity",k)};
MGm=function(W,k){return _.hQ(W.entities,"fantasyTeamEntity",k)};
Qmc=function(W,k){return _.hQ(W.entities,"fantasyPlayerEntity",k)};
ps3=function(W,k){return _.hQ(W.entities,"booleanEntity",k)};
vmK=function(W,k){return _.hQ(W.entities,"qrCodeEntity",k)};
eFp=function(W){return _.hQ(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
smw=function(){if(u6)return u6;if(window.lottie)return u6=Promise.resolve(window.lottie);var W=_.XE(_.DE("LOTTIE_URL"));return W?u6=new Promise(function(k,C){var n=document.createElement("script");n.addEventListener("load",function(){k(lottie)});
n.addEventListener("error",function(N){var B="Lottie library failed to load.";N?N.message&&(B+=" Original description: "+N.message,_.Dx(N,B)):N=Error(B);_.zJ(N);C(N)});
n.setAttribute("async","");_.LL(n,W);document.head.appendChild(n)}):Promise.reject(Error("sh"))};
GLI=function(){return u6?u6:smw()};
yLX=function(){var W=eFp(_.ZF().getState());if(W&&W.animationStyle)switch(W.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return Ui.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return Ui.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return Ui.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
$1J=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.m("kevlar_use_wil_icons"))return(W=yLX())?W:Ui.get("LIKE")}};
Zd3=function(W){var k=$1J(W);if(k)return k;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ui.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ui.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ui.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ui.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ui.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ui.get("NOTIFICATION_BELL")}};
omc=function(W,k){if(!W||RFc)k=!1;else{if(W.closest){var C=!!$1J(k);C=_.DE("ID_TOKEN")&&C?!!W.closest("segmented-like-dislike-button-view-model"):!1}else C=!1;if(!C)if(W.closest)if(C=!_.DE("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),C||!W)C=!1;else{var n;C=((n=W.data)==null?void 0:n.targetId)==="notification-bell"&&k!=="EXPAND_MORE"}else C=!1;k=C}return k};
idI=function(W){var k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.F0(n,2),_.l(n,fetch(W),4);case 4:return k=n.yieldResult,_.l(n,k.json(),5);case 5:return n.return(n.yieldResult);case 2:C=_.EF(n),_.zJ(C),_.ab(n)}})};
Te4=function(W,k){var C,n,N;return _.F(function(B){if(B.nextAddress==1)return(C=k?W.pathDarkTheme:W.path)?_.l(B,Promise.all([idI(C),smw()]),2):B.return();n=B.yieldResult;N=n[0];Oi.set(C,N);_.ab(B)})};
_.Li=function(){var W=_.v6.apply(0,arguments);return function(){for(var k="",C=_.b(W),n=C.next();!n.done;n=C.next())if(n=n.value,typeof n==="function"&&(n=n()),n)if(typeof n==="string")k+=" "+n;else for(var N in n)if(n.hasOwnProperty(N)){var B=n[N];typeof B==="function"&&(B=B());B&&(k+=" "+N)}k=k.trim()||void 0;return _.m$(k)}};
_.jc=function(W){var k;var C=W.data;var n=W.className;var N=W.animationName;var B=W.animationRef;var A=(k=W.elRefForInterop)||_.yE(),w;_.fy(function(){var a;return void((a=w)==null?void 0:a.destroy())});
var x;_.XM(function(){var a=_.m$(N);if(a!==x){x=a;var X=Object.assign({},{animationName:a,animationRef:_.m$(B)},_.m$(C));try{_.f().resolve(qfm)().then(function(c){var M;(M=w)==null||M.destroy();M=X.animationRef;var p=X.listeners;c=c.loadAnimation(Object.assign({},{container:A.value},X.animationConfig));M&&(M.lottieEl=c);if(p)for(M=_.b(Object.entries(p)),p=M.next();!p.done;p=M.next()){var e=_.b(p.value);p=e.next().value;(e=e.next().value)&&c.addEventListener(p,e)}w=c})}catch(c){a=c;
var d="LottieComponent error.";a.message&&(d+=" Original description: "+a.message);_.Dx(a,d);_.zJ(a);var V;((V=X.listeners)==null?0:V.error)&&X.listeners.error(a)}}});
var E=_.Li("ytLottieComponentHost",n);return _.t($LJ,{cond:function(){return!k},
then:function(){return _.t("lottie-component",{class:E,el:A})}})};
uX4=function(W){var k=_.yE(),C=_.b(N8w(W.data.animationConfig.name||"",W.className)),n=C.next().value;C=C.next().value;var N=Xc(function(){return W.data.animationRef});
tj(function(){W.data.animationRef&&(W.data.animationRef.lottieEl=N==null?void 0:N.lottieEl)},[W.data.animationRef]);
return _.t("lottie-component",{skip:!0,class:_.Li(C,"ytLottieComponentHost"),el:k},_.t(_.jc,{data:W.data,animationRef:N,animationName:n,elRefForInterop:k}))};
OdX=function(W,k,C,n){function N(A,w){if(k.value===w&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("yt-spec-icon-shape");A(W.value,n)}}
C=_.U1X(_.f().resolve(_.rH),C);if(typeof C==="function")k.value=null,N(C,null);else{var B=new _.Wx(C.then,C);k.value=B;B.then(function(A){N(A,B)})}};
jmm=function(W,k){var C=document.createElement("div"),n=_.xn(C,function(){return _.t(_.NI,{cond:W,then:function(N){return _.t(LzX,{data:N,options:k})}})});
return[C,n]};
_.Hj=function(){for(var W=[],k=_.b(_.v6.apply(0,arguments)),C=k.next();!C.done;C=k.next())if(C=C.value)if(typeof C==="string")W.push(C);else{C=_.b(Object.entries(C));for(var n=C.next();!n.done;n=C.next()){var N=_.b(n.value);n=N.next().value;(N=N.next().value)&&W.push(n)}}return W.join(" ")};
Pvc=function(W){var k=_.yE(),C=fS(),n=id(W.character)||id(W.previousCharacter);wA(function(){if(W.marginMultiplier){var N;(N=C.value)==null||N.cancel();n?(N=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(N-=Hdw(W,N))):(N=W.rollUp?0:2,W.shouldAnimate||(N-=W.rollUp?-1:1));k.value.style.marginTop="-"+N*W.marginMultiplier+"px";W.shouldAnimate?C.value=rL2(k.value,W,N,n):k.value.style.display=W.character?"":"none"}});
return _.t("animated-rolling-character",{el:k,class:"animated-rolling-character-wiz"},_.Tb(n,function(){for(var N=[],B=1;B<30;B++)N.push(_.t("div",null,B%10));return _.t(_.qf,null,_.t("div",null,"\u00a0"),N,_.t("div",null,"\u00a0"))},function(){return gmz(W.character)}))};
gmz=function(W){return _.t(_.qf,null,_.t("div",null,"\u00a0"),_.t(_.qf,null,_.Tb(!W||_.tK(W),function(){return _.t("div",null,"\u00a0")},function(){return _.t("div",null,W)})),_.t("div",null,"\u00a0"))};
rL2=function(W,k,C,n){C=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(n?Hdw(k,C):k.rollUp?-1:1)*k.marginMultiplier+"px)"}],KzJ),document.timeline);k.character?(W.style.display="",C.onfinish=null):C.onfinish=function(){W.style.display="none"};
C.play();return C};
Hdw=function(W,k){var C=Number(W.character)+10;if(W.previousCharacter)if(W.character){var n=Number(W.character),N=Number(W.previousCharacter);W=W.rollUp?N<n?C:C+10:N<n?C-10:C}else W=W.rollUp?30:0;else W=W.character==="0"?C:W.rollUp?C-10:C+10;return k-W};
_.ry=function(W,k){return function(C){var n={},N;for(N in C){var B=void 0,A=void 0;((B=k)==null?0:(A=B.callbacks)==null?0:A[N])||(n[N]=C[N])}return _.t(x22,null,function(){for(var w in n)C[w]=_.m$(n[w]);C.disableReactiveLogging=!0;return _.t(W,Object.assign({},C))})}};
_.gy=function(W){var k=fS(),C=fS();tj(function(){k.value=W.numberText;C.value=W.numberValue},[W.numberText]);
var n=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,N=a4(function(){if(W.numberText){var A=W.numberText;var w=W.forceRollUp||!C.value||!W.numberValue||C.value<W.numberValue;var x=!!W.shouldAnimate,E=k.value,a=[],X=0,d=0,V=(E?E.replace(/\D/g,"").length:0)-(A?A.replace(/\D/g,"").length:0);E=E?E.split(/(\d)/).filter(Boolean):[];for(A=A.split(/(\d)/).filter(Boolean);V<0;){var c=A[d];a.push({character:c,rollUp:w,marginMultiplier:n,shouldAnimate:x});d++;id(c)&&V++}for(;X<V;)c=E[X],a.push({previousCharacter:c,
rollUp:w,marginMultiplier:n,shouldAnimate:x}),X++,id(c)||V++;for(;d<A.length;)V=A[d],c=E[X],id(V)===id(c)?(d++,X++):id(V)?(X++,V=void 0):id(c)&&(d++,c=void 0),a.push({character:V,previousCharacter:c,rollUp:w,marginMultiplier:n,shouldAnimate:x});w=a}else w=[];return w},[W.numberText]),B=W.numberText?["height: "+n+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.t("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:B,dir:"ltr","aria-hidden":"true"},N.map(function(A){return _.t(Pvc,Object.assign({},A))}))};
_.Pj=function(W){return iXm(function(k){k=W==null?void 0:W(k);return typeof k==="boolean"?k:!0})};
Ki=function(W){return function(){return W()?W():void 0}};
hFP=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Wt3=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
k62=function(W){var k=_.b(_.kw(W,void 0,"Clci1e")),C=k.next().value,n=k.next().value;C.current=W;return[C,function(N){return void n(C.current=N)}]};
_.h7=function(W){var k=sBw(function(){return k62(W())},{isEqual:function(C,n){return C[0].current===n[0].current}});
return[function(){return k()[0]()},
function(C){return void k()[1](C)}]};
_.WJ=function(W){return function(){var k="",C;for(C in W){for(var n=W[C];typeof n==="function";)n=n();n!==void 0&&n!==null&&(k+="; "+C+": "+n)}return k.length>0?_.m$(k.slice(2)):_.m$()}};
CNw=function(W){switch(W){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"}};
Yjw=function(W,k,C,n,N,B){var A=nU2(W),w=A.disabled,x=A.iconPosition,E=A.style,a=A.focused,X=function(){return!!c()&&x()==="icon-only"},d=function(){return!!c()&&x()==="icon-only-40"},V=function(){return!!c()&&x()==="icon-with-label"},c=function(){return!!k||!(n==null||!n())};
return{type:function(){return E()==="call-to-action-inverse"?"text":E()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(a()||(B==null?void 0:B()))&&!w()},
hasIconLeading:function(){return!!c()&&x()==="leading"},
hasIconTrailing:function(){return!!c()&&x()==="trailing"},
hasIconLeadingTrailing:function(){return!!c()&&!!(C||N!=null&&N())&&x()==="leading-trailing"},
hasIconOnly:X,hasIconOnly40:d,hasIconWithLabel:V,iconButton:function(){return X()||d()||V()},
visiblyDisabled:function(){return(w()?"disabled":W().state)==="disabled"||w()},
overrideSmallSizeIcon:function(){return N9J(W(),c())},
iconToRender:k?k:function(){return _.t(_.ka,{icon:n,size:function(){return Cn(W(),!0)},
active:function(){return W().toggled}})},
secondaryIconToRender:C?C:function(){return _.t(_.ka,{icon:N,size:function(){return Cn(W(),!0)},
active:function(){return W().toggled}})}}};
nU2=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(k){var C,n;return(n=(C=W()).onTap)==null?void 0:n.call(C,k)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(k){var C,n;return(n=(C=W()).onToggle)==null?void 0:n.call(C,k)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
B94=function(W){return W.style==="overlay-dark"?4:W.style==="overlay"?W.type==="filled"?4:3:W.type==="filled"||W.style==="call-to-action-inverse"||W.style==="mono-inverse"?2:1};
N9J=function(W,k){k=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&k;return!W.segmentedPosition&&k&&W.size==="S"};
bCX=function(){return!_.m("web_disable_backdrop_filter")};
Cn=function(W,k){switch(W.size){case "XS":return 16;case "S":return N9J(W,k)?24:16;default:return 24}};
AgJ=function(W){switch(W){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"}};
Ftm=function(W){switch(W){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"}};
wam=function(W){switch(W){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"}};
xxP=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
lCp=function(W){if(!W)return{};var k=W.color,C=W.backgroundColor;W=W.borderColor;var n="";k&&(n+="color: "+k+";");C&&(n+="background-color: "+C+";");W&&(n+="border-color: "+W+";");return{style:n}};
tXp=function(W,k){if(!qD){var C;W5X(function(){return C=F44(W,k)});
return C}return F44(W,k)};
EUm=function(){var W=NKw(qD||void 0,Bq3);return W===n1w||(W==null?void 0:W.name)==="\u0275NotFound"?void 0:W};
fC2=function(W){var k=W.data;var C=W.icon;var n=W.secondaryIcon;var N=W.iconName;var B=W.secondaryIconName;EUm();var A=k.size;W=k.style;var w=k.focused,x=k.disabled,E=k.onTap,a=k.alignByText,X=k.aTagConfig,d=k.customColors,V=k.segmentedPosition,c=k.toggled,M=k.toggleable,p=k.accessibilityLabel,e=k.onToggle,u=k.iconPosition,h=k.oneOffCustomTextWrap,L=k.disableTextEllipsis,Bw=k.tooltipText,P=k.ariaHidden,xz=k.tabIndex,Sp=!!C||!!N,vw=C,lw=n;if(N){var G4=Cn(k,!0);vw=function(){return _.t(_.ka,{icon:N,
size:G4,active:k.toggled})}}if(B){var nA=Cn(k,!0);
lw=function(){return _.t(_.ka,{icon:B,size:nA,active:k.toggled})}}var Xs=k.state;
C=k.type;W==="call-to-action-inverse"&&(C="text");W==="overlay-dark"&&C!=="filled"&&C!=="tonal"&&(C="tonal");var aI=Sp&&u==="leading",LA=Sp&&u==="trailing",dj=Sp&&(!!n||!!B)&&u==="leading-trailing";n=Sp&&u==="icon-only";var hK=Sp&&u==="icon-only-40";u=Sp&&u==="icon-with-label";var Tz=n||hK||u;x&&(Xs="disabled");var S8=Xs==="disabled"||x;Sp=N9J(k,Sp);Xs={};var ms=_.Hj((Xs["yt-spec-button-shape-next"]=!0,Xs[AgJ(C)]=!0,Xs[Ftm(W)]=!S8,Xs["yt-spec-button-shape-next--disabled"]=!!S8,Xs[wam(A)]=!0,Xs["yt-spec-button-shape-next--focused"]=
!!w&&!x,Xs["yt-spec-button-shape-next--icon-trailing"]=LA,Xs["yt-spec-button-shape-next--icon-leading"]=aI,Xs["yt-spec-button-shape-next--icon-leading-trailing"]=dj,Xs["yt-spec-button-shape-next--icon-button"]=n||u,Xs["yt-spec-button-shape-next--icon-only-default"]=hK,Xs["yt-spec-button-shape-next--align-by-text"]=!!a,Xs["yt-spec-button-shape-next--segmented-start"]=V==="start",Xs["yt-spec-button-shape-next--segmented-end"]=V==="end",Xs["yt-spec-button-shape-next--override-small-size-icon"]=Sp,Xs["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!h,Xs["yt-spec-button-shape-next--disable-text-ellipsis"]=!!L,Xs["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=bCX(),Xs)),pA=_.Pj(function(k3){E==null||E(k3);M&&(e==null||e(k3))});
A=function(){return X?_.t(_.NE,{aTagConfig:X,disabled:x,className:ms,style:lCp(d).style,title:Bw!=null?Bw:"",ariaLabel:p,ariaCurrent:M&&c},_.t(_.qf,null,aCP(k,aI,dj,LA,Tz,vw,lw))):_.t("button",{"on:click":pA,class:ms,title:Bw!=null?Bw:"",style:x&&X?"pointer-events:none":lCp(d).style,disabled:x,"aria-pressed":M?!!c:void 0,"aria-label":p?p:void 0,"aria-disabled":S8,"aria-hidden":P,tabindex:xz},_.t(_.qf,null,aCP(k,aI,dj,LA,Tz,vw,lw)))};
w={};W=(w["yt-spec-button-shape-with-label"]=!0,w["yt-spec-button-shape-with-label--is-overlay"]=W==="overlay"||W==="overlay-dark",w);return _.t("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},u?_.t("label",{class:_.Hj(W)},A(),_.t("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},Xam(k))):A())};
Xam=function(W){var k=W.formattedButtonText,C=W.animatedTextProps,n=W.buttonText,N=W.oneOffCustomTextWrap;W=W.iconPosition;return C?_.t(_.gy,{numberText:C.numberText,numberValue:C.numberValue,heightPx:C.heightPx,fontSizeMultiplier:C.fontSizeMultiplier,shouldAnimate:C.shouldAnimate,forceRollUp:C.forceRollUp}):k?(C=W==="icon-with-label"||N,_.t(_.Ya,{text:Object.assign({},k,C?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!C})):n};
aCP=function(W,k,C,n,N,B,A){return _.t(_.qf,null,_.Tb(B&&(k||C||N),function(){return _.t(_.qf,null,_.t("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},B==null?void 0:B()))}),_.Tb((W.buttonText||W.formattedButtonText||W.animatedTextProps)&&!N,function(){return _.t(_.qf,null,_.t("div",{class:"yt-spec-button-shape-next__button-text-content"},Xam(W)))}),_.Tb(n,function(){return _.t(_.qf,null,_.t("div",{class:"yt-spec-button-shape-next__icon"},B==null?void 0:B()))}),_.Tb(C,function(){return _.t(_.qf,
null,_.t("div",{class:"yt-spec-button-shape-next__secondary-icon"},A==null?void 0:A()))}),_.Tb(!W.disabled&&!0,function(){return _.t(_.BJ,{model:{color:B94(W)}})}))};
dxX=function(W,k,C){MN(fC2)({data:W,icon:k?function(){return _.t(R9,null,k)}:void 0,
secondaryIcon:C?function(){return _.t(R9,null,C)}:void 0})};
VXz=function(W,k,C){var n=W.buttonText,N=W.formattedButtonText,B=W.formattedButtonTextLegacy,A=W.animatedTextProps,w=W.style,x=W.size,E=W.focused,a=W.disabled,X=W.onTap,d=W.alignByText,V=W.aTagConfig,c=W.customColors,M=W.segmentedPosition,p=W.toggled,e=W.toggleable,u=W.accessibilityLabel,h=W.onToggle,L=W.iconPosition,Bw=W.oneOffCustomTextWrap,P=W.disableTextEllipsis,xz=W.tooltipText,Sp=W.ariaHidden,vw=W.tabIndex,lw=W.state,G4=W.type;w==="call-to-action-inverse"&&(G4="text");w==="overlay-dark"&&G4!==
"filled"&&G4!=="tonal"&&(G4="tonal");var nA=!!k&&L==="leading",Xs=!!k&&L==="trailing",aI=!!k&&!!C&&L==="leading-trailing",LA=!!k&&L==="icon-only",dj=!!k&&L==="icon-only-40",hK=!!k&&L==="icon-with-label",Tz=LA||dj||hK;a&&(lw="disabled");var S8=lw==="disabled"||a;lw=N9J(W,!!k);var ms={},pA=(ms["yt-spec-button-shape-next"]=!0,ms[AgJ(G4)]=!0,ms[Ftm(w)]=!S8,ms["yt-spec-button-shape-next--disabled"]=!!S8,ms[wam(x)]=!0,ms["yt-spec-button-shape-next--focused"]=!!E&&!a,ms["yt-spec-button-shape-next--icon-trailing"]=
Xs,ms["yt-spec-button-shape-next--icon-leading"]=nA,ms["yt-spec-button-shape-next--icon-leading-trailing"]=aI,ms["yt-spec-button-shape-next--icon-button"]=LA||hK,ms["yt-spec-button-shape-next--icon-only-default"]=dj,ms["yt-spec-button-shape-next--align-by-text"]=!!d,ms["yt-spec-button-shape-next--segmented-start"]=M==="start",ms["yt-spec-button-shape-next--segmented-end"]=M==="end",ms["yt-spec-button-shape-next--override-small-size-icon"]=lw,ms["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!Bw,ms["yt-spec-button-shape-next--disable-text-ellipsis"]=!!P,ms["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=bCX(),ms),k3=function(){if(A)MN(_.gy)(A);else if(B)B(L==="icon-with-label"||Bw?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(N){var EA=L==="icon-with-label"||Bw;ZJX(Object.assign({},N,EA?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!EA})}else n&&oW(n)},
oe=function(EA){X==null||X(EA);
e&&(h==null||h(EA))},bw=V?mxP:zJ4,C7=V?"aria-current$":"aria-pressed$",j8=function(){k&&(nA||aI||Tz)&&function(){bV({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){k()})}();
(n||N||B||A)&&!Tz&&function(){bV({className:"yt-spec-button-shape-next__button-text-content"},function(){k3()})}();
Xs&&function(){bV({className:"yt-spec-button-shape-next__icon"},function(){k()})}();
aI&&function(){bV({className:"yt-spec-button-shape-next__secondary-icon"},function(){C()})}();
a||MN(_.BJ)({model:{color:B94(W)}})},CL=function(){var EA={};
bw(Object.assign({},(EA.className=_.Hj(pA),EA.onclick=V?void 0:oe,EA.disabled=a,EA["aria-disabled$"]=S8,EA.style=a&&V?"pointer-events:none":void 0,EA[C7]=e?!!p:void 0,EA["aria-label$"]=u,EA.title$=xz!=null?xz:"",EA["aria-hidden$"]=Sp,EA.tabindex$=vw,EA),V,lCp(c)),function(){j8()})};
hK?(x={},w=(x["yt-spec-button-shape-with-label"]=!0,x["yt-spec-button-shape-with-label--is-overlay"]=w==="overlay"||w==="overlay-dark",x),Dxm({className:_.Hj(w)},function(){CL();bV({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},k3)})):CL()};
Jg2=function(W,k,C){_.m("web_wiz_button_shape")?dxX(W,k,C):VXz(W,k,C)};
AW=function(W,k){_.dy(W,Object.assign({},k,{forceClickLogging:!0}))};
cgm=function(W,k,C,n){var N=void 0;return function(B){var A=_.fi(C?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(A){var w;N=(w=N)!=null?w:k==null?void 0:k.value;if(A)if(_.m("web_button_vm_click_client_ve_killswitch"))AW(A,Object.assign({},{form:{element:N,event:B}},void 0));else{var x;w=A==null?void 0:A.clickTrackingParams;var E,a=W==null?void 0:(x=W.loggingDirectives)==null?void 0:(E=x.clientVeSpec)==null?void 0:E.uiType;x=a&&!w?_.F8(a):void 0;AW(A,Object.assign({},{form:{element:N,event:B}},
{clickedVisualElement:x}))}}n&&n(B)}};
ICm=function(W){switch(W){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"}};
Sjp=function(W){switch(W){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"}};
MXm=function(W){switch(W){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"}};
QTm=function(W){switch(W){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"}};
pac=function(W,k){return _.hQ(W.entities,"engagementToolbarStateEntityPayload",k)};
eJm=function(W){(W=_.Yf(W))&&_.vUX(W)};
_.vUX=function(W){var k=_.VM();k&&_.GD(k,W)};
sT4=function(W,k,C){_.KY(W,"yt-open-popup-action",[k,C||W])};
G6z=function(W,k){var C=_.dA(W,"endpoint"),n=_.dA(W,"action");return(C=n?n:C)&&k&&(C=k.navigationEndpointPopupMap[C])&&(W=_.QK(C,W),(C=_.dA(W,"renderer"))&&k.supportedPopups.hasOwnProperty(C))?{openPopupAction:{popupType:k.popupTypeMap[C],popup:W}}:null};
yg2=function(W,k,C,n){if(n){var N;C=C==null?void 0:(N=C.data)==null?void 0:N.contents;(N=C instanceof Array&&C.length?C[0]:C)&&(C=_.dA(N,"renderer"))&&n.supportedPopups.hasOwnProperty(C)&&(k.stopPropagation(),sT4(W,{openPopupAction:{popupType:n.popupTypeMap[C],popup:N}}))}};
RJJ=function(W,k,C,n){n=n===void 0?!1:n;var N=$xm(k);if(N){N.href&&mg(N.href);var B=k.button;B=B!==void 0?B===0&&!wE(k):!wE(k);N.data&&B&&ZC2(W,N,k,C,n)}};
ZC2=function(W,k,C,n,N){N=N===void 0?!1:N;var B=_.Oe("pbj_navigate_limit",-1)===0;oUP(k);_.f().resolve(_.qI(QE));var A=k.data;if(Object.keys(A).length!==0)if(!_.m("unplugged_web_disable_actions_for_cec_endpoint")&&_.z(A,_.Nl))_.m("endpoint_behavior_command_executor_fix_killswitch")||(C.preventDefault(),C.stopPropagation()),_.CB(W,[A],W);else if(n=G6z(A,n))A.loggingUrls&&A.loggingUrls.forEach(function(x){x.baseUrl&&_.Sk(x.baseUrl)}),C.preventDefault(),C.stopPropagation(),sT4(W,n,k);
else{var w=iC3(0,k.data,C);if(W=k.getForm)W=W(),w.tempData=w.tempData||{},w.tempData=Object.assign({},w.tempData,W);W=_.vl(C);if(n=W.find(function(x){return!!x.visualElement}))w.createScreenConfig=w.createScreenConfig||{},w.createScreenConfig.clickedVisualElement=n.visualElement;
if(!B)if(C.preventDefault(),C.stopPropagation(),_.z(A,_.T92)&&!N&&_.gH.instance)_.gH.instance.resolveCommand(A,w);else if(_.m("kevlar_command_handler_formatted_string")&&!N&&_.gH.instance&&qjm(A))N=W.find(function(x){return!!x.is})||C.target,C={form:Object.assign({},w,{event:C,
element:N,originatingNode:k})},_.gH.instance.resolveCommand(A,C);else{A=_.vl(C);C=[];for(N=0;N<A.length;N++)(B=A[N].is)&&C.push(B);JyX({parents:C.join(","),text:k.innerText},function(){_.Pe(k,"yt-navigate",w)})}}};
uap=function(W){if(W=$xm(W))oUP(W),VRP(W.href)};
$xm=function(W){W=_.vl(W);for(var k,C=0;C<W.length;C++)if(k=W[C],k.tagName==="A"&&k.classList.contains("yt-simple-endpoint")){if(!k.data)break;return k}return null};
wE=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
UxP=function(W,k){var C={itct:k.clickTrackingParams};_.m("kevlar_client_side_screens")&&(!_.z(k,_.YZ)||_.m("kevlar_exclude_endpoint_killswitch"))&&(C.endpoint=JSON.stringify(k));_.m("enable_unknown_lact_fix_on_html5")&&_.f().resolve(_.qI(_.xa))&&(C.lact=_.ie());mY2(C);_.qL(W,C)};
oUP=function(W){W.href&&Object.keys(W.data).length!==0&&UxP(W.href,W.data)};
qjm=function(W){for(var k=_.b(OCc),C=k.next();!C.done;C=k.next())if(W[C.value])return!1;return!0};
_.lV=function(W,k){if(k){var C={};Lt2.forEach(function(n){n=jTm(k,n,"--yt-lightsource-");Object.assign(C,n)});
HCz.forEach(function(n){n=jTm(k,n,"--yt-basic-");Object.assign(C,n)});
_.Op(W,C)}};
jTm=function(W,k,C){var n={};n[C+_.Be(k)]=W&&W[k]?_.Xi(W[k]):"";return n};
_.EJ=function(W,k,C){tW[W]||(tW[W]={});tW[W][k]=C};
_.ah=function(W){tW[W]||(tW[W]={});return tW[W]};
rgp=function(W){if(!W)return{};var k=W.foregroundTitleColor,C=W.backgroundColor;W=W.borderColor;var n="text";W?n="outline":C&&(n="filled");return{type:n,customColors:{color:k?_.Xi(k):void 0,backgroundColor:C?_.Xi(C):void 0,borderColor:W?_.Xi(W):void 0}}};
Wbc=function(W){var k=W.renderer;var C=W.element;var n=W.commandController;var N=W.onTapCallback;var B=W.skipCommandHandling;var A=W.overrides;var w=W.forceIcon;var x=W.forceModernIconButton;var E=W.forceDisabled;var a=W.isSubscribe===void 0?!1:W.isSubscribe;var X=W.isPressed===void 0?!1:W.isPressed;var d=W.useButtonSize===void 0?!1:W.useButtonSize;W=gU3(k);a&&(W.style="mono",W.type="filled");w=!k.icon||!w&&k.text?k.icon?k.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:x?"icon-only":"icon-only-40";w==="icon-only-40"&&(W.type="text");var V;x=Object;a=x.assign;d=PNp(k,d);X=!!k.isSelected||!_.m("web_propagate_is_pressed_killswitch")&&!!X;var c=k.isSelected!==void 0;E=E===void 0?k.isDisabled:E;var M=k.text?_.t7(k.text):void 0;var p,e,u,h=((p=k.accessibilityData)==null?void 0:(e=p.accessibilityData)==null?void 0:e.label)||((u=k.accessibility)==null?void 0:u.label);p=h?h:_.y4(k.text);C=Ktw(k,C,n,N,B);n=hJI(k);n!=null&&n.length?(n=_.m8({innertubeCommand:DUK(n),
forceNewState:!0}),n=VPp(n)?n:void 0):n=void 0;return a.call(x,{},W,d,{iconPosition:w},A,{focused:!1,toggled:X,toggleable:c,disabled:E,formattedButtonText:M,accessibilityLabel:p,onTap:C,aTagConfig:n},rgp((V=k.colorData)==null?void 0:V.basicColorPaletteData),{oneOffCustomTextWrap:k.oneOffCustomTextWrap})};
Ktw=function(W,k,C,n,N){return function(B){var A=hJI(W);n(A,B);if(!N){A=_.b(A);for(var w=A.next();!w.done;w=A.next())AW(w.value,{form:{element:k,event:B},commandController:C})}}};
hJI=function(W){var k=[];W.command&&k.push(W.command);W.serviceEndpoint&&k.push(W.serviceEndpoint);W.navigationEndpoint&&k.push(W.navigationEndpoint);return k};
PNp=function(W,k){if(k)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
gU3=function(W){switch(W.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"}}};
_.X8=function(W){return _.BH(function(){kYP()();return Ms(W)},void 0,"Icv7j")};
fn=function(W,k){return _.hQ(W.entities,"likeStatusEntity",k)};
kBm=function(W,k){return _.hQ(W.entities,"likeCountEntity",k)};
_.CoK=function(W,k){return _.hQ(W.entities,"stringEntity",k)};
nHw=function(W,k){if(!W)return!1;var C,n=(C=_.z(W,_.AQ))==null?void 0:C.signal;if(n&&k.signalEndpointMap)return!!k.signalEndpointMap[n];var N;if((C=(N=_.z(W,_.dE))==null?void 0:N.request)&&k.continuationEndpointMap)return!!k.continuationEndpointMap[C];for(var B in W)if(k.commandEndpointMap[B])return!0;return!1};
NoJ=function(W,k){if(k.streamingEndpointMap)for(var C in W)if(k.streamingEndpointMap[C]&&(W=k.streamingEndpointMap[C]))return W()};
Yl2=function(W,k){var C,n=(C=_.z(W,_.AQ))==null?void 0:C.signal;if(n&&k.signalEndpointMap&&(C=k.signalEndpointMap[n]))return C();var N;if((C=(N=_.z(W,_.dE))==null?void 0:N.request)&&k.continuationEndpointMap&&(N=k.continuationEndpointMap[C]))return N();for(var B in W)if(k.commandEndpointMap[B]&&(W=k.commandEndpointMap[B]))return W()};
BoI=function(W){var k={"Content-Type":"application/json"};_.DE("EOM_VISITOR_DATA")?k["X-Goog-EOM-Visitor-Id"]=_.DE("EOM_VISITOR_DATA"):_.DE("VISITOR_DATA")&&(k["X-Goog-Visitor-Id"]=_.DE("VISITOR_DATA"));k["X-Youtube-Bootstrap-Logged-In"]=_.DE("LOGGED_IN",!1);_.DE("DEBUG_SETTINGS_METADATA")&&(k["X-Debug-Settings-Metadata"]=_.DE("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(k["X-Youtube-Client-Name"]=W),(W=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(k["X-Youtube-Client-Version"]=
W),(W=_.DE("CHROME_CONNECTED_HEADER"))&&(k["X-Youtube-Chrome-Connected"]=W),(W=_.DE("DOMAIN_ADMIN_STATE"))&&(k["X-Youtube-Domain-Admin-State"]=W),_.cv("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.DE("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(k["X-YouTube-Lava-Device-Context"]=W));return k};
bPm=function(W,k){k.watchNextResponse||k.reelItemWatchResponse?k.watchNextResponse?W.content=k.watchNextResponse:W.content=k.reelItemWatchResponse:k.playerResponse?W.player=k.playerResponse:k.reelWatchSequenceResponse&&(W.reelSequence=k.reelWatchSequenceResponse)};
m0=function(W){return function(){return new W}};
zf=function(W){var k=_.f();return function(){return k.resolve(W)}};
_.Df=function(W){if(!W)return null;for(var k=[],C=0;C<W.textSegments.length;C++){var n=W.textSegments[C];n.text?k.push(n):n.emojiId&&k.push({emoji_id:n.emojiId})}return{text_segments:k}};
lbm=function(W,k,C,n,N,B,A){B=B===void 0?[]:B;var w=new _.VF;w.endpoint=C;if(!C)return _.mw(new _.AM("handle undefined endpoint",k.tagName)),w;var x=sS2(C);x.length&&(_.CB(W,x,k,n),w.actions=x);C.loggingUrls&&C.loggingUrls.forEach(function(a){a.baseUrl&&Mq(a.baseUrl,a.attributionSrcMode)});
x=!_.m("web_skip_impression_click_killswitch")&&n&&n.impression;if(C.clickTrackingParams&&!ANJ(C)&&!Fb4(k)&&!x&&(x=_.kf(),!_.JW(x,k))){var E=k.getScreenLayer&&k.getScreenLayer();E?x.clickCommand(C,null,E):x.clickCommand(C,null)}x=!1;for(E=0;E<B.length;E++)if((0,B[E])(k,C,n)){x=!0;break}!x&&wbm(C)&&(w.ajaxPromise=xOK(W,k,C,n,N,A));return w};
Fb4=function(W){var k;return(W=(k=W.data)==null?void 0:k.navigationEndpoint)&&!!W.clickTrackingParams};
ANJ=function(W){var k=_.z(W,_.AQ);if(k&&(k=k.signal)&&tMm.indexOf(k)>=0)return!0;for(var C in W)if(EHm.indexOf(C)>=0)return!0;return!1};
wbm=function(W){var k;if(((k=_.z(W,_.AQ))==null?void 0:k.signal)==="CLIENT_SIGNAL")return!1;for(var C in W)if(abm.indexOf(C)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
JNw=function(W,k,C,n,N,B,A){var w=_.cJ.instance;if(w&&_.Ih(w,n))var x=_.Sr(w,n,N).then(function(a){return(a==null?0:a.data)?a:{data:a}});
else x=W.requestDataForServiceEndpoint(n,N),_.z(n,Xbm)||_.z(n,fb2)||_.z(n,_.dOP)||_.z(n,mOI)||_.zJ(new _.AM("No RequestBuilder for endpoint",n));var E=_.ME();E.promise.thenCatch(function(){var a=_.dA(n,"action")||_.dA(n,"command")||_.dA(n,"endpoint");a&&(a=n[a],a.hasOwnProperty("onFailureAction")?_.CB(k,[a.onFailureAction],C):a.hasOwnProperty("onFailureCommand")&&_.CB(k,a.onFailureCommand,C));x.cancel("Resolver promise rejected")});
x.then(function(a){if(a){var X=a.error;if(X){if(B&&B.onServerError)B.onServerError(n,a);E.reject(new _.AM("Response error",n,X))}else if(a=a.data)if(X=a.error){if(B&&B.onServerError)B.onServerError(n,a);E.reject(new _.AM("Returned error",n,X))}else{z42(k,C,a,n);DOX(a);if(X=eb3(a))for(var d=_.b(X),V=d.next();!V.done;V=d.next()){V=V.value;var c=_.f().resolve(_.qI(VMw))||QF;if(!_.cJ.instance||!c.some(function(p){return!!_.z(n,p)})||_.m("kevlar_response_processor_allowlist_killswitch")){var M=c=void 0;
((M=_.z((c=V)==null?void 0:c.commandMetadata,_.Ok))==null?0:M.sendPost)?_.kQ(k,[V]):_.CB(k,[V],C)}}(d=_.z(a==null?void 0:a.frameworkUpdates,pn))&&A&&A(d);if(B&&B.onSuccess)B.onSuccess(n,a);E.resolve(new _.vJ(a,X))}}else E.reject(new _.AM("Invalid service endpoint provided",n))},function(a){E.reject(a)});
return E.promise};
DOX=function(W){var k;(W=(k=_.z(W==null?void 0:W.onResponseReceivedCommand,_.cN4))==null?void 0:k.continuationItems)&&(W==null?void 0:W.length)===1&&_.z(W[0],IbI)&&_.cN("so_r",void 0,"search_overview_answer")};
xOK=function(W,k,C,n,N,B){var A;return(A=k.getNetworkManager&&k.getNetworkManager()?k.getNetworkManager():_.f().resolve(_.qI(_.Ah)))?JNw(A,W,k,C,n,N,B):_.eh("No network manager.")};
z42=function(W,k,C,n){if(C=C.trackingParams||C.loggingDirectives&&C.loggingDirectives.trackingParams){var N;(_.z(n,Slc)||_.z(n,MM3)||_.z(n,QQK))&&n.clickTrackingParams?N=_.Yf(n.clickTrackingParams):_.m("web_graft_to_parent_command")&&n.clickTrackingParams&&(N=_.Yf(n.clickTrackingParams));var B;n=(B=k.getScreenLayer)==null?void 0:B.call(k);k=_.kf().graftServerVe(C,N,n);_.hA(W,"yt-store-grafted-ve-action",[k])}};
_.pbc=function(W){var k=new Image;return new _.Wx(function(C,n){k.addEventListener("load",function(){C()});
k.addEventListener("error",function(){n()});
k.src=W})};
vH4=function(W){return!!W};
e42=function(W){return!!W};
sQc=function(W,k,C){var n=W.rowIndex;n!==void 0&&_.hA(W.hostElement,"yt-section-reactive-dismissal",[n,k,C])};
_.er=function(W,k,C){W=_.b(W);for(var n=W.next();!n.done;n=W.next()){n=n.value;if(n===k)break;for(var N=_.b(C),B=N.next();!B.done;B=N.next())if(B=B.value,n.tagName===B||!_.m("web_event_button_role_check_killswitch")&&n.role==="button"&&B==="BUTTON")return!0}return!1};
_.sJ=function(W,k,C){W=_.b(W);for(var n=W.next();!n.done;n=W.next()){n=n.value;if(n===k)break;for(var N=_.b(C),B=N.next();!B.done;B=N.next())if(n.id===B.value)return!0}return!1};
Gf=function(W,k){if(!W&&!k)return"medium";W=Math.max(W||0,k||0);return W>=256?"large":W>=96?"medium":"small"};
GB4=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Zf=function(){var W=_.f().resolve(_.qI(_.yF));return W?(W=W.getCurrentPage())?_.$a(W):null:null};
_.Rh=function(){var W=_.Zf();if(!W){var k=_.f().resolve(_.qI(_.yF)),C=k?typeof k:"no page manager";k=k?k.getCurrentPage():null;C=new _.AM("Player is missing when requested.",C,k?k.tagName:"no page");_.dI(C)}return W};
_.$a=function(W){return W&&W.getPlayer?W.getPlayer():null};
yNp=function(W,k){W={args:{raw_player_response:W}};k&&(W.args=Object.assign({},W.args,k));return W};
$Ow=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.ZPP=function(W,k){var C={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(C.url+="&list="+W.playlistId);W.playerParams&&(C.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:C}};k&&(W.clickTrackingParams=k);return W};
oHw=function(){return R4X||!!_.QK("yt.player.Application")};
ToK=function(){return iPm||!!document.querySelector("link#player-css")};
u3w=function(){function W(){R4X=!0;qlm.resolve()}
var k,C;return _.F(function(n){qlm||(qlm=new _.gn,oHw()?W():(k=document.createElement("script"),k.addEventListener("load",W),C=_.mJ(_.DE("PLAYER_JS_URL")),_.LL(k,C),document.head.appendChild(k)));return n.return(qlm.promise)})};
OPz=function(){function W(){iPm=!0;UOK.resolve()}
if(!UOK)if(UOK=new _.gn,ToK())W();else{var k=document.createElement("link");k.id="player-css";k.addEventListener("load",W);var C=_.mJ(_.DE("PLAYER_CSS_URL"));_.rj(k,C,"stylesheet");document.head.appendChild(k)}return UOK.promise};
Lb2=function(){return oHw()&&ToK()?Promise.resolve([]):Promise.all([u3w(),OPz()])};
jQ4=function(W,k,C){var n={args:{}};W&&(n.args.raw_player_response=W);k&&(n.args.raw_watch_next_response=k);C&&(n.args=Object.assign({},n.args,C));return n};
Pom=function(W,k,C){var n=!1;n=n===void 0?!0:n;W=typeof W==="string"?_.oh(document,W):W;var N=HP4+"_"+_.Hw(W),B=rNw[N];if(B&&n)return gHI(k,C)?B.api.loadVideoByPlayerVars(k.args||null):B.loadNewVideoConfig(k),B.api;B=new iV(W,N,k,C,void 0);rNw[N]=B;B.addOnDisposeCallback(function(){delete rNw[B.getId()]});
return B.api};
gHI=function(W,k){return k&&k.serializedExperimentFlags?k.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Kb2=function(){var W=new _.gn;W.resolved=!1;var k=W.resolve;W.resolve=function(C){W.resolved=!0;k(C)};
return W};
Wv3=function(W){var k={};h4P().install((k.document_disposed={callback:W},k))};
Tf=function(W,k){if(!W&&Math.random()<=_.Oe("kevlar_unified_player_logging_threshold")){W=Error("uh`"+(k?k:"Unspecified error"));if(_.m("kevlar_unified_player_throw_errors"))throw W;_.zJ(W)}};
_.kUK=function(){var W=_.QK("ytDebugData.callbacks");W||(W={},_.$g("ytDebugData.callbacks",W));return W};
ny2=function(W,k){var C=_.kUK();if(_.m("web_dd_iu")||C$2.includes(W))C[W]=k};
NRX=function(){return _.F(function(W){return W.return({isLeader:_.u13(_.ZF().getState()),c:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
YGz=function(){var W;_.F(function(k){if(k.nextAddress==1)return ny2("APP_STATE",NRX),_.l(k,_.f().resolve(_.qE),2);W=k.yieldResult;ny2("PI",function(){return _.F(function(C){return C.return(W.getVideoStats())})});
_.ab(k)})};
BRX=function(W){var k=_.T7(_.sk(_.NX.location.href));W=_.T7(_.sk(W));return _.m("kevlar_clear_non_displayable_url_params")?k==uV(W):uV(k)==uV(W)};
uV=function(W){var k=_.b14(W);W=W.slice(0);var C=["frags"];_.m("kevlar_hide_pp_url_param")&&C.push("pp");_.m("kevlar_hide_time_continue_url_param")&&C.push("time_continue");C=_.b(C);for(var n=C.next();!n.done;n=C.next())n=n.value,W=_.ud(_.T7(W),n);return _.T7(W)+(k?"#"+k:"")};
UJ=function(W,k){k=Number(k)*1E3;var C=Math.round((0,_.oX)()),n=C.toString();W={innertubeResponse:W,serverDateTimestampMs:n,lastModifiedTimestampMs:n,expireTimestampMs:(C+k).toString()};if(k=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=k;return W};
Fvw=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++AXw};
_.wPX=function(){var W=_.DH(),k=_.VM();k&&W&&_.$Q(k,[W],!0)};
lMp=function(W){return W&&xGP.some(function(k){return W.includes(k)})};
dGI=function(W){var k=_.z(W,_.pM);if(!k)return!1;var C=k.url,n=k.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!C)return _.dI(Error("zh")),!1;if(k.target==="TARGET_NEW_WINDOW"){var N={};_.m("resolve_url_parent_tracking_params")&&(!_.R4(C)||o4(window.location.href,C))&&(N={endpoint:W,itct:W.clickTrackingParams});mY2(N);W=null;try{if(n){a:{var B=C,A=N;n=n===void 0?!1:n;A&&_.qL(B,A);var w=_.QG(B),x=_.VG(w);B!=x&&_.pS(Error("Zf`"+B));B=x;try{if(n){x=B;x=tcK(x);mg(x);W=_.Ti(window,x,"_blank",
"attributionsrc");break a}}catch(d){_.I4(d)}mg(B);W=_.Ti(window,w,"_blank")}tEw(_.f().resolve(Eyz),W,C);return!0}}catch(d){_.dI(d)}_.qL(C,N);N={target:"_blank",noopener:_.m("set_window_noopener_ks")&&!k.allowOpener};k=window;w=Dl(C)?C:_.QG(typeof C.href!="undefined"?C.href:String(C));W=self.crossOriginIsolated!==void 0;B="strict-origin-when-cross-origin";window.Request&&(B=(new Request("/")).referrerPolicy);x=N.noreferrer;if(W&&x&&B==="unsafe-url")throw Error("qe");B=x&&!W;x=N.target||C.target;n=
[];A=[];var E=!1;for(X in N){var a=N[X];switch(X){case "width":case "height":case "top":case "left":n.push(X+"="+a);break;case "target":break;case "noopener":case "noreferrer":a?A.push(X):(E=!0,A.push(X+"=false"));break;case "attributionsrc":n.push(X+(a?"="+a:""));break;default:n.push(X+"="+(a?1:0))}}var X=x!==void 0&&!["_blank","_self","_top","_parent",""].includes(x);X=JK()&&X;aMp&&W&&n.length===0&&A.length>0&&!X&&!E?(A.length===2&&(A=["noreferrer"]),_.Ti(k,w,x,A[0]),W=XPK()):(X=n.join(","),_.QP()&&
k.navigator&&k.navigator.standalone&&x&&x!="_self"?(X=_.wu("A"),Gi(X,w),X.target=x,B&&(X.rel="noreferrer"),((N=N.attributionsrc)||N==="")&&X.setAttribute("attributionsrc",N),N=document.createEvent("MouseEvent"),N.initMouseEvent("click",!0,!0,k,1),X.dispatchEvent(N),X=XPK()):B?(X=_.Ti(k,"",x,X),k=_.VG(w),X&&(X.opener=null,k===""&&(k="javascript:''"),k='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+OJ(k)+'">',k=$3(k),(N=X.document)&&N.write&&(N.write(Zl(k)),
N.close()))):((X=_.Ti(k,w,x,X))&&N.noopener&&(X.opener=null),X&&N.noreferrer&&(X.opener=null)),W=X);tEw(_.f().resolve(Eyz),W,C);return!0}X=_.KS(C);X=lMp(X)||C==="https://studio.youtube.com/";k=!(!_.R4(C)||o4(window.location.href,C));N=C.indexOf("disable_polymer=1")>=0;if(k||N||X)mg(C),Dr(),_.zy(C,void 0,void 0,window.top,fMX);else return _.zJ(new _.AM("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.DGm=function(W,k){k=k===void 0?0:k;if(!(_.z(W,mGw)||_.z(W,zGw)||_.z(W,_.pM)&&_.z(W,_.pM).url))return!1;var C,n=(C=_.z(W,_.pM))==null?void 0:C.url;C=n?{externalLinkData:{url:n}}:null;return _.kf().clickCommand(W,C,k)};
_.Ln=function(W,k){return _.hQ(W.entities,"subscriptionStateEntity",k)};
VEz=function(W,k){return _.hQ(W.entities,"subscriptionNotificationStateEntity",k)};
JXm=function(W,k){return _.hQ(W.entities,"upcomingEventReminderStateEntity",k)};
cXJ=function(W,k){return _.hQ(W.entities,"engagementToolbarSurfaceEntityPayload",k)};
IMz=function(W,k){return _.hQ(W.entities,"triStateButtonStateEntityPayload",k)};
SGX=function(W,k){return _.hQ(W.entities,"commerceCartCheckoutButtonEntity",k)};
_.ME2=function(W,k){return _.hQ(W.entities,"playlistLoopStateEntity",k)};
QfX=function(W,k){return _.hQ(W.entities,"commandEntity",k)};
vyc=function(W,k,C,n,N){N=N===void 0?{}:N;return function(B){var A,w;var x=((A=W.loggingDirectives)==null?0:(w=A.clientVeSpec)==null?0:w.uiType)?_.F8(W.loggingDirectives.clientVeSpec.uiType):void 0;N.clickedVisualElement||(N.clickedVisualElement=x);x=pPP(W,k);C(x,B);x=_.b(x);for(A=x.next();!A.done;A=x.next()){A=A.value;w=n;var E=B,a=N;a.form?a.form.event=E:a.form={element:w,event:E};AW(A,a)}}};
pPP=function(W,k){var C=[];k?(W.toggledCommand&&C.push(W.toggledCommand),W.toggledServiceEndpoint&&C.push(W.toggledServiceEndpoint)):(W.defaultCommand&&C.push(W.defaultCommand),W.defaultServiceEndpoint&&C.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&C.push(W.defaultNavigationEndpoint));return C};
eGw=function(W,k){var C=W.toggledStyle||W.style,n;switch((n=k?C:W.style)==null?void 0:n.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
sfz=function(W,k){k=k.uniqueId+"-border";var C,n;var N=(n=(C=_.f().resolve(_.qI(_.cj)))==null?void 0:C())!=null?n:!1;return{animationRef:W,animationConfig:{name:k,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(N?"dark":"light")+"_v2.json"}}};
_.HJ=function(){return _.F(function(W){return W.nextAddress==1?_.l(W,_.f().resolve(_.qE),2):W.return(_.f().resolve(_.jr)())})};
_.rE=function(){return Xc(function(){return{lottieEl:void 0}})};
GUX=function(W,k){return W.startsWith(k.uniqueId)};
yXc=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,_.HJ(),2);k=n.yieldResult;if((C=k)==null||!C.addEventListener)return gE(),n.return();k.addEventListener("onCueRangeEnter",W);_.ab(n)})};
$GX=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,_.HJ(),2);k=n.yieldResult;if((C=k)==null||!C.removeEventListener)return gE(),n.return();k.removeEventListener("onCueRangeEnter",W);_.ab(n)})};
Z1P=function(W){var k,C,n,N,B;_.F(function(A){if(A.nextAddress==1)return _.l(A,_.HJ(),2);k=A.yieldResult;if((C=k)==null||!C.addCueRange)return gE(),A.return();n=_.b(W.timings);for(N=n.next();!N.done;N=n.next())B=N.value,k.addCueRange(W.uniqueId+"-"+B,B/1E3,(B+100)/1E3);_.ab(A)})};
RGp=function(W){var k,C,n,N,B;_.F(function(A){if(A.nextAddress==1)return _.l(A,_.HJ(),2);k=A.yieldResult;if((C=k)==null||!C.removeCueRange)return gE(),A.return();n=_.b(W.timings);for(N=n.next();!N.done;N=n.next())B=N.value,k.removeCueRange(W.uniqueId+"-"+B);_.ab(A)})};
oym=function(W){return W.join("")};
i1K=function(){var W,k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.HJ(),2);W=n.yieldResult;if((k=W)==null||!k.getPlayerState)return gE(),n.return();C=W.getPlayerState();return n.return(C===2)})};
gE=function(){_.zJ(new _.AM("Smartimation player does not exist or is corrupted"))};
UGJ=function(W){var k=TRI;qGp.push(W);u9p||(k(function(){for(var C=_.b(qGp),n=C.next();!n.done;n=C.next())n=n.value,n();qGp.length=0;u9p=!1}),u9p=!0)};
TRI=function(W){Promise.resolve().then(W)};
PJ=function(W){W=_.b(NqJ(W));var k=W.next().value,C=W.next().value,n=!1;_.Ee(function(){return function(){n=!0}});
return[k,function(N){UGJ(function(){n&&!_.m("cow_prevent_state_setter_after_cleanup_killswitch")||C(N)})}]};
Lvc=function(W){function k(E){var a;return _.F(function(X){if(X.nextAddress==1)return(a=!GUX(E,n)||!n.enabled)?X.jumpTo(2):_.l(X,i1K(),3);X.nextAddress!=2&&(a=X.yieldResult);if(a)return X.return();C();setTimeout(function(){x(!1)},1500);
_.ab(X)})}
function C(){setTimeout(function(){x(!0);var E;(E=B.lottieEl)==null||E.goToAndPlay(0)},150)}
var n=W.settings;var N=W.className;W=W.children;var B=_.rE(),A=_.b(PJ(!1)),w=A.next().value,x=A.next().value;n||(n={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.zJ(new _.AM("Smartimation Settings is undefined")));tj(function(){if(n.experimentEnabled)return n.enabled?yXc(k):(x(!1),$GX(k)),function(){$GX(k)}},[n.enabled,
n.experimentEnabled]);tj(function(){if(n.experimentEnabled)return Z1P(n),function(){RGp(n)}},[oym(n.timings)]);
return _.t("yt-smartimation",{class:_.Li(N,O1K(w,n))},_.Tb(n.experimentEnabled,function(){return _.t("div",{class:"smartimation__border"},_.t(uX4,{className:"smartimation__border-gradient",data:sfz(B,n)}))}),_.t("div",{class:"smartimation__content"},W))};
O1K=function(W,k){var C=["smartimation"];k.experimentEnabled&&C.push("smartimation--experiment-enabled");W&&C.push("smartimation--active-border");try{var n;var N=(n=window.CSS)!=null&&n.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(B){_.zJ(new _.AM("Smartimation CSS.supports threw an error")),N=!1}N&&C.push("smartimation--enable-masking");
return C.join(" ")};
jf2=function(){try{var W;return(W=window.CSS)!=null&&W.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(k){return _.zJ(new _.AM("Smartimation CSS.supports threw an error")),!1}};
WHm=function(W,k,C,n,N){var B=W.playlistId?H1J:rXJ;k=k();C=C();N=!!W.videoId&&N()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.FD(k))return gyX({data:W,actionType:B,disabled:N},C);if(W.videoId&&n())return P$J({data:W,actionType:B,disabled:N});switch(k){case "TRANSFER_STATE_UNKNOWN":return P$J({data:W,actionType:B,disabled:N});case "TRANSFER_STATE_FAILED":return W.videoId?Kvw({data:W,actionType:B,disabled:N}):hG2({data:W,actionType:B,disabled:N});case "TRANSFER_STATE_COMPLETE":return hG2({data:W,
actionType:B,disabled:N});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return gyX({data:W,actionType:B,disabled:N},C);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?Kvw({data:W,actionType:B,disabled:N}):P$J({data:W,actionType:B,disabled:N});default:return P$J({data:W,actionType:B,disabled:N})}};
k5w=function(W,k){var C=W.onTapCommand,n=_.fi(C);if(W.videoId&&_.z(n,_.Kn))return _.z(n,_.Kn).action=k,C;W.playlistId&&_.z(n,_.hW)&&(_.z(n,_.hW).action=k);return C};
P$J=function(W){var k=W.data;var C=W.actionType;W=W.disabled;return{text:C33,iconType:"OFFLINE_DOWNLOAD",onTap:k5w(k,C.ACTION_ADD),disabled:W}};
gyX=function(W,k){var C=W.data;var n=W.actionType;W=W.disabled;var N="OFFLINE_DOWNLOAD";k>=0&&k<=.1?N="OFFLINE_DOWNLOADING_ZERO":k>.1&&k<=.3?N="OFFLINE_DOWNLOADING_TWENTY":k>.3&&k<=.5?N="OFFLINE_DOWNLOADING_FORTY":k>.5&&k<=.7?N="OFFLINE_DOWNLOADING_SIXTY":k>.7&&k<1?N="OFFLINE_DOWNLOADING_EIGHTY":k===1&&(N="OFFLINE_PIN");return{text:n_P,iconType:N,onTap:k5w(C,n.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
hG2=function(W){var k=W.data;var C=W.actionType;W=W.disabled;return{text:NVX,iconType:"OFFLINE_PIN",onTap:k5w(k,C.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
Kvw=function(W){var k=W.data;var C=W.actionType;W=W.disabled;return{text:YPc,iconType:"OFFLINE_DOWNLOAD",onTap:k5w(k,C.ACTION_RETRY),disabled:W}};
BVp=function(){var W=_.b(PJ(!1)),k=W.next().value,C=W.next().value;return function(){C(!k)}};
bmm=function(W){return Xc(function(){return{value:W}})};
AFw=function(W,k){var C=bmm(W),n=bmm(k);tj(function(){C.value=W},[W]);
tj(function(){n.value=k},k&&k.length>=1?k:[void 0]);
var N=Xc(function(){return{value:void 0}});
if(W!==C.value||n.value!==k||N.value===void 0)N.value=Ms(W,k);var B=BVp();_.Ee(function(){function A(){var x=Ms(C.value,k);x!==N.value&&(N.value=x,B())}
var w=_.SY().subscribe(A);A();return w});
return N.value};
_.WB=function(W,k){return AFw(W,[k])};
_.kj=function(W,k){var C=kYP();return _.BH(function(){C();return Ms(W,[_.m$(k)||""])},void 0,"HaeHEc")};
FH2=function(W){var k=_.kj(_.V4,function(){return W().videoId}),C=_.kj(_.Je,function(){return W().playlistId});
return function(){return W().videoId?k:W().playlistId?C:_.b(_.kw("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
w73=function(W){var k=_.kj(c3,function(){return W().videoId}),C=_.kj(_.qVw,function(){return W().playlistId});
return function(){return W().videoId?k:W().playlistId?C:_.b(_.kw(0,void 0,"K4tgOc")).next().value}};
xQ2=function(W){var k=_.kj(_.g7w,function(){return W().videoId});
return function(){return W().videoId?k:_.b(_.kw(!1,void 0,"Oaxwcf")).next().value}};
l$p=function(W){var k=_.kj(OE3,function(){return W().videoId});
return function(){return W().videoId?k:_.b(_.kw("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
tuX=function(){return{}};
X7m=function(W){var k=W.backgroundLottieRef;var C=W.foregroundLottieRef;var n=W.children;var N=W.wrapperClass;W=W.disableAnimation;W=(_.m("web_animated_actions")||_.m("web_animated_actions_v2"))&&!W;return _.t("yt-animated-action",{class:_.Li("animated-action__container",N)},_.t("div",{class:"animated-action__content-with-background"},_.Tb(W,function(){return _.t(E_p,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:k,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(a$X()?"dark":"light")+"_v5.json"}}})}),n),_.Tb(W,function(){return _.t(E_p,{lottiePlayerProps:{animationRef:C,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(a$X()?"dark":"light")+"_v4.json"}}})}))};
E_p=function(W){var k=W.wrapperClass;var C=W.lottieClass;W=W.lottiePlayerProps;return _.t("div",{class:_.Hj("animated-action__lottie",k),"aria-hidden":"true"},_.t(uX4,{className:C,data:W}))};
a$X=function(){var W,k;return(k=(W=_.f().resolve(_.qI(_.cj)))==null?void 0:W())!=null?k:!1};
f$3=function(){var W,k;return(k=(W=_.f().resolve(_.qI(_.cj)))==null?void 0:W())!=null?k:!1};
mQm=function(W,k){W=W===void 0?dQw:W;switch(k.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:k.payload});default:return W}};
DQc=function(W,k){W=W===void 0?ztw:W;switch(k.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:k.payload});default:return W}};
JFw=function(W,k){W=W===void 0?Vu4:W;switch(k.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:k.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:k.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:k.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:k.payload});default:return W}};
I$2=function(W,k){W=W===void 0?cFw:W;switch(k.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:k.payload});default:return W}};
MuJ=function(W,k){W=W===void 0?SPc:W;switch(k.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:k.payload});case "SET_NAVIGATION_BUTTON":var C=k.payload.targetId,n=Object.assign({},W.navigationButtons);n[C]=k.payload.button;return Object.assign({},W,{navigationButtons:n});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:k.payload});case "SET_SECONDARY_HEADER":return C=k.payload.panelId,n=Object.assign({},W.secondaryHeader),n[C]=k.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:n});default:return W}};
etz=function(){return NL(Object.assign({},{entities:hW4,voiceSearch:$iw,engagementPanel:MuJ,bottomSheet:mQm,cinematicSetting:DQc,shorts:Ui2,drawerLayout:I$2,createPlaylist:JFw,locationCollection:QGw,reportChannel:p7z,reportForm:v_X},Olc))};
sGK=function(W,k){return"https://www.gstatic.com/youtube/img/lottie/"+W+"/"+k+".json"};
G5m=function(W){return{lottiePlayerProps:{animationConfig:{name:W.name,path:sGK("custom_animated_like_icon",W.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:W.totalFrames,lazyLoad:!0}};
yFw=function(W,k){_.aM.addLowPriorityJob(function(){var C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return _.F0(B,2),_.l(B,smw(),4);case 4:return _.l(B,fetch(W),5);case 5:return C=B.yieldResult,_.l(B,C.json(),6);case 6:n=B.yieldResult;Oi.set(W,n);requestAnimationFrame(function(){k(n)});
_.M7(B,0);break;case 2:N=_.EF(B),_.zJ(N),_.ab(B)}})})};
$Qw=function(W){var k={animationConfig:{},listeners:{}},C=function(){W(!0)};
k.listeners.data_failed=C;k.listeners.error=C;k.listeners.data_ready=function(){W(!1)};
return k};
CX=function(W){var k=W.model;var C=W.subscribed;var n=W.isOverlay;var N=W.element;var B=W.commandController;var A=W.notificationState;if(C){var w,x;var E=(k==null?void 0:(w=k.buttonStyle)==null?void 0:w.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:k==null?void 0:(x=k.unsubscribeButtonContent)==null?void 0:x.buttonText}else{var a;E=k==null?void 0:(a=k.subscribeButtonContent)==null?void 0:a.buttonText}a:{var X;switch(k==null?void 0:(X=k.buttonStyle)==
null?void 0:X.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":w="S";break a;default:w="M"}}a:if(n)n="overlay";else switch(k.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":n="overlay";break a;default:n="mono"}a:if(C)var d="tonal";else switch((d=k.buttonStyle)==
null?void 0:d.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":d="tonal";break a;default:d="filled"}return{style:n,type:d,state:k.disableSubscribeButton?"disabled":"active",size:w,focused:W.focused,toggled:C,accessibilityLabel:Zmm(k,C,A),buttonText:E,iconPosition:k.disableNotificationBell?"none":"leading-trailing",onTap:Rtm(k,C,N,B),disableTextEllipsis:!!W.disableTextEllipsis}};
Rtm=function(W,k,C,n){return function(N){if(k){var B;var A=W.disableNotificationBell?_.fi(W==null?void 0:(B=W.unsubscribeButtonContent)==null?void 0:B.onTapCommand):_.fi(W==null?void 0:W.onShowSubscriptionOptions)}else{var w;A=_.fi(W==null?void 0:(w=W.subscribeButtonContent)==null?void 0:w.onTapCommand)}A&&AW(A,{form:{element:C},commandController:n});N.stopPropagation()}};
Zmm=function(W,k,C){if(k){if(W==null?0:W.disableNotificationBell){var n;return W==null?void 0:(n=W.unsubscribeButtonContent)==null?void 0:n.accessibilityText}switch(C){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var N;return W==null?void 0:(N=W.bellAccessibilityData)==null?void 0:N.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var B;return W==null?void 0:(B=W.bellAccessibilityData)==null?void 0:B.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var A;return W==null?void 0:(A=
W.bellAccessibilityData)==null?void 0:A.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var w;return W==null?void 0:(w=W.bellAccessibilityData)==null?void 0:w.disabledLabel;default:var x;return W==null?void 0:(x=W.unsubscribeButtonContent)==null?void 0:x.accessibilityText}}else{var E;return W==null?void 0:(E=W.subscribeButtonContent)==null?void 0:E.accessibilityText}};
nX=function(W){if(!W)return null;switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W};
o_m=function(W,k,C){C.subscribed!==k&&((C=C.key)&&_.Q3(_.Nj("subscriptionStateEntity",C,{key:C,subscribed:k})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:k})),k||_.KY(W,"yt-unsubscribe-action"))};
TVm=function(W){W=_.z(_.fi(W),_.Yj);var k,C,n,N;return(N=_.z(W==null?void 0:(k=W.panelLoadingStrategy)==null?void 0:(C=k.inlineContent)==null?void 0:(n=C.sheetViewModel)==null?void 0:n.content,im3))==null?void 0:N.listItems};
qPX=function(W,k){if(W.onShowSubscriptionOptions&&k&&(W=TVm(W.onShowSubscriptionOptions),W!=null&&W.length)){var C=nX(k);W.forEach(function(n){n=_.z(n,_.BB);var N,B,A,w,x=n==null?void 0:(N=n.leadingImage)==null?void 0:(B=N.sources)==null?void 0:(A=B[0])==null?void 0:(w=A.clientResource)==null?void 0:w.imageName;n&&x&&(n.isSelected=x===C)})}};
udw=function(W,k,C,n){k&&C?W.style.width=C+"px":!k&&n&&(W.style.width=n+"px")};
UQX=function(W,k,C){var n;(n=W.lottieEl)==null||n.goToAndPlay(0);var N;(N=k.lottieEl)==null||N.goToAndPlay(0);_.bX(_.aM,function(){var B;(B=C.lottieEl)==null||B.goToAndPlay(0)},300)};
rFI=function(W){var k=_.yE(),C=_.yE(),n=_.yE(),N=_.rE(),B=_.rE(),A=_.rE(),w=_.f().resolve(Omz),x,E=(x=_.WB(_.Ln,W.data.stateEntityStoreKey))!=null?x:void 0,a,X,d,V=(d=_.WB(VEz,(X=(a=W.data.notificationStateEntityStoreKeys)==null?void 0:a.subsNotificationStateKey)!=null?X:""))!=null?d:void 0;x=!!W.data.disableNotificationBell;var c=!W.data.enableSubscribeButtonPostClickAnimation;a=_.b(PJ(0));var M=a.next().value,p=a.next().value;a=_.b(PJ(0));var e=a.next().value,u=a.next().value;a=_.b(PJ(!1));var h=
a.next().value,L=a.next().value;a=_.b(PJ(!1));var Bw=a.next().value,P=a.next().value,xz=fS(!1),Sp=fS("");a=_.b(PJ(!1));var vw=a.next().value,lw=a.next().value,G4=function(){P(!0);_.bX(_.aM,function(){P(!1)},1500)};
tj(function(){Bw&&!c&&E&&UQX(N,B,A)},[Bw]);
tj(function(){!c&&E&&(W.animateWidth&&udw(k.value,!!E.subscribed,M,e),E.subscribed&&E.key===Sp.value&&G4(),E.key&&(Sp.value=E.key))},[E==null?void 0:E.subscribed,
E==null?void 0:E.key]);var nA=a4(function(){var ms=W.data,pA=!(E==null||!E.subscribed),k3=!!W.isOverlay,oe=h?k.value:void 0,bw=V==null?void 0:V.state;qPX(ms,bw);return CX({model:ms,subscribed:pA,isOverlay:k3,element:oe,notificationState:bw,disableTextEllipsis:!0,focused:vw})},[W.data,
E,V,vw,W.isOverlay,h]),Xs=function(){var ms=_.f().resolve(_.qI(_.Ay));ms&&lw(ms.isKeyBoardInUse())},aI=function(){lw(!1)};
_.Zx(k,"yt-service-request-sent",function(ms){LA();E&&(ms.detail.endpoint.subscribeEndpoint||ms.detail.endpoint.unsubscribeEndpoint)&&o_m(k.value,!E.subscribed,E)});
_.GJ("yt-player-subscribe",function(ms){E&&ms===W.data.channelId&&o_m(k.value,!0,E)});
_.GJ("yt-player-unsubscribe",function(ms){E&&ms===W.data.channelId&&o_m(k.value,!1,E)});
_.GJ("yt-update-subscribe-button-action",function(ms){ms=_.z(ms,LH3);E&&ms&&ms.channelId===W.data.channelId&&o_m(k.value,!!ms.subscribed,E)});
_.Ee(function(){k.value&&(k.value.addEventListener("focusin",Xs),k.value.addEventListener("focusout",aI));_.wI(_.aM,function(){LA()});
L(!0);return function(){k.value&&(k.value.removeEventListener("focusin",Xs),k.value.removeEventListener("focusout",aI))}});
var LA=function(){if(!c&&W.animateWidth&&(C==null?0:C.value)&&(n==null?0:n.value)&&!xz.value){var ms=_.b((E==null?0:E.subscribed)?[C,n]:[n,C]),pA=ms.next().value;ms=ms.next().value;pA=Math.ceil(pA.value.getBoundingClientRect().width);ms=Math.ceil(ms.value.getBoundingClientRect().width);p(pA);u(ms);udw(k.value,!(E==null||!E.subscribed),pA,ms);xz.value=!0}},dj=function(){var ms=nX(V==null?void 0:V.state);
return c||ms!=="NOTIFICATIONS_NONE"?function(){return w(ms)}:function(){MN(jGw)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:A})}};
a=function(){var ms=nX(V==null?void 0:V.state);return c||ms!=="NOTIFICATIONS_NONE"?function(){return _.t(_.ka,{icon:ms!=null?ms:void 0})}:function(){return _.t(jGw,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:A})}};
var hK=!(E==null||!E.subscribed)&&!x&&!(V==null||!V.state),Tz=!(E==null?0:E.subscribed),S8=Tz&&!x&&!(V==null||!V.state);x={};X={};return _.t("yt-subscribe-button-view-model",{class:_.Hj("yt-subscribe-button-view-model-wiz",(x["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(E==null||!E.subscribed)&&W.animateWidth&&Bw,x["yt-subscribe-button-view-model-wiz--hidden"]=!(E==null?0:E.subscribed)&&W.data.hideWhenUnsubscribed,x)),el:k},_.t(Hmm,{backgroundLottieRef:N,foregroundLottieRef:B,wrapperClass:_.Hj("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(X["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=W.animateWidth&&Bw,X["yt-subscribe-button-view-model-wiz__static-width"]=!W.animateWidth,X)),disableAnimation:c},_.t("div",{el:C,class:_.Hj("yt-subscribe-button-view-model-wiz__container"),idomKey:W.data.channelId},_.m("web_wiz_button_shape")?_.t(fC2,{data:nA,icon:hK?a():void 0,secondaryIcon:hK?function(){return _.t(_.ka,{icon:"EXPAND"})}:void 0}):_.t(R9,null,function(){Jg2(nA,hK?dj():void 0,hK?function(){return w("EXPAND")}:
void 0)}))),_.t("div",{el:n,
class:"yt-subscribe-button-view-model-wiz__invisible"},!W.animateWidth||c||xz.value?null:_.m("web_wiz_button_shape")?_.t(fC2,{data:CX({model:W.data,subscribed:Tz,isOverlay:!!W.isOverlay,element:k.value,disableTextEllipsis:!0}),icon:S8?function(){var ms;return _.t(_.ka,{icon:(ms=nX(V==null?void 0:V.state))!=null?ms:void 0})}:void 0,
secondaryIcon:S8?function(){return _.t(_.ka,{icon:"EXPAND"})}:void 0}):_.t(R9,null,function(){Jg2(CX({model:W.data,
subscribed:Tz,isOverlay:!!W.isOverlay,element:k.value,disableTextEllipsis:!0}),S8?function(){return w(nX(V==null?void 0:V.state))}:function(){},S8?function(){return w("EXPAND")}:void 0)})))};
g_m=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
P3X=function(W,k,C){C.subscribed!==k&&((C=C.key)&&_.Q3(_.Nj("subscriptionStateEntity",C,{key:C,subscribed:k})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:k})),k||_.KY(W,"yt-unsubscribe-action"))};
KHm=function(W){W=_.z(_.fi(W),_.Yj);var k,C,n,N;return(N=_.z(W==null?void 0:(k=W.panelLoadingStrategy)==null?void 0:(C=k.inlineContent)==null?void 0:(n=C.sheetViewModel)==null?void 0:n.content,im3))==null?void 0:N.listItems};
htK=function(W,k){if(W.onShowSubscriptionOptions&&k&&(W=KHm(W.onShowSubscriptionOptions),W!=null&&W.length)){var C=g_m(k);W.forEach(function(n){n=_.z(n,_.BB);var N,B,A,w,x=n==null?void 0:(N=n.leadingImage)==null?void 0:(B=N.sources)==null?void 0:(A=B[0])==null?void 0:(w=A.clientResource)==null?void 0:w.imageName;n&&x&&(n.isSelected=x===C)})}};
WOc=function(W,k,C,n){k&&C?W.style.width=C+"px":!k&&n&&(W.style.width=n+"px")};
kOX=function(W,k,C){var n;(n=W.lottieEl)==null||n.goToAndPlay(0);var N;(N=k.lottieEl)==null||N.goToAndPlay(0);_.bX(_.aM,function(){var B;(B=C.lottieEl)==null||B.goToAndPlay(0)},300)};
Fo=function(){return _.f().resolve(_.qI(CmX))||{}};
npz=function(W){return typeof W==="function"};
_.w7=function(W){Object.keys(W);var k=function(C,n){var N=k.mapping||W;if(!C)return _.t(_.qf,null);if(Array.isArray(C)&&(C=Nz3(N,k,C),Array.isArray(C))){if(!C.length)return _.t(_.qf,null);if(C.length>1){for(var B=!1,A=!1,w=[],x={},E=0;E<C.length;x={data$jscomp$1820:void 0},E++)if(x.data$jscomp$1820=C[E],x.data$jscomp$1820){var a=YTp(x.data$jscomp$1820,N),X=a.mappingEntry;a=a.rendererName;X&&a&&(X&&(!npz(X)&&BzK(X)&&(A=!0),!npz(X)&&X.asyncId||(B=!0)),w.push(bQX(x.data$jscomp$1820,X,a,k,n)))}return A&&
!B?_.t(_.qf,null,Ai3()):_.t(_.qf,null,w)}C=C[0]}if(!C)return _.t(_.qf,null);C=Nz3(N,k,[C])[0];if(!C)return _.t(_.qf,null);B=YTp(C,N);N=B.mappingEntry;B=B.rendererName;return N&&B?_.t(_.qf,null,bQX(C,N,B,k,n)):_.t(_.qf,null)};
k.mapping=W;return k};
_.FOI=function(W){var k=void 0,C;for(C in W)if(W.hasOwnProperty(C)){k=C;break}return k};
Nz3=function(W,k,C){var n,N=(n=Fo().preProcessOptions)==null?void 0:n.idomOptions;if(!N)return C;Fo();return N.preProcessPropsIdom(W,C,k.triggerRerender)};
YTp=function(W,k){return(W=_.FOI(W))?{mappingEntry:k[W],rendererName:W}:{mappingEntry:void 0,rendererName:void 0}};
bQX=function(W,k,C,n,N){if(!k)return _.t(_.qf,null);var B={};N&&N[C]&&(B=Object.assign({},N[C]));W[C]!==void 0&&(B.data=W[C]);if(npz(k))return k.debugName||(k.debugName=C),_.t(k,B);k.asyncId&&(n.pendingIdsMap=n.pendingIdsMap||{},n.pendingIdsMap[C]=k.asyncId);return k.templateFn?k.templateFn(B):BzK(k)?Ai3():_.t(_.qf,null)};
BzK=function(W){var k;return(k=W.showPlaceholder)!=null?k:Fo().defaultShowPlaceholder};
Ai3=function(){var W=Fo().placeholder;return W()};
wz3=function(W,k){k=k===void 0?{shouldPersist:!0}:k;return{useUpdatableData:function(C,n){var N=[],B=_.b(_.h7(function(){var E=C();if(n!=null&&n.length&&N){var a=N.length>0;for(var X=!1,d=0;d<n.length;d++){var V=n[d]();a&&V!==N[d]&&(X=!0);N[d]=V}a=X}else a=!1;if(a)_.xj.remove(x());else if(a=_.xj.get(x()))return a;return E})),A=B.next().value,w=B.next().value,x=_.BH(function(){return W(C())},void 0,"VFraLb");
_.XM(function(){if(x()!=null){lX.set(x(),[A,w,!1]);var E=x();_.fy(function(){lX.delete(E)})}});
return[A,function(E){w(E);k.shouldPersist&&_.xj.set(x(),E)}]},
getData:function(C){var n;return(n=lX.get(W(C)))==null?void 0:n[0]()},
updateData:function(C,n){C=W(C);var N=lX.get(C);if(!N)return!1;var B=_.b(N);N=B.next().value;B=B.next().value;n=n(N());B(n);k.shouldPersist&&_.xj.set(C,n);return!0},
useUpdatableDataIdom:function(C,n){var N=W(C),B=_.xj.get(N),A=_.b(PJ(B!=null?B:C)),w=A.next().value,x=A.next().value,E=fS(B!=null?B:C);tj(function(){if(N!=null)return lX.set(N,[function(){return E.value},
function(a){x(a);E.value=a},
lX.has(N)]),_.aM.addJob(function(){_.ty(_.aM,function(){var a=lX.get(N);a&&(a[2]=!1)},0)},8),function(){var a;
((a=lX.get(N))==null?0:a[2])||lX.delete(N)}},[N]);
tj(function(){w!==C&&(x(C),E.value=C)},n?[].concat(_.J8(n),[N]):[N]);
return[w,x]}}};
xdm=function(W){var k=_.b(_.kw(!0,void 0,"bKtO6d")),C=k.next().value;k.next();return function(){var n=Ky(W.children());return _.t(_.NI,{cond:C,then:function(){return n},
else:W.fallback})}()};
_.Ex=function(W){var k=lLm(W),C=k.data,n=k.mapping,N=k.wrapper;k=k.pendingFallback;var B=function(){return tjp(_.m$(C))},A=function(){var w=B(),x=[];
w=_.b(w);for(var E=w.next();!E.done;E=w.next()){var a=void 0;E=E.value;var X=void 0;for(a in E)if(!(!E).hasOwnProperty(a)){X=a;break}(a=X)&&x.push(a)}return x};
return W.data?_.t(xdm,{fallback:k},function(){return _.t(_.bI,{each:A},function(w,x){var E=N?function(X){return N(function(){return n[w](X,x)},a,x)}:function(X){return n[w](X,x)};
E.debugName||(E.debugName=String(w));if(!n[String(w)])return document.createComment("");var a=Epc(B,w,x);return _.t(E,{data:a})})}):_.t(_.qf,null)};
lLm=function(W){var k=W.targetId||aLm(W.children);if(!W.data||!k||_.m("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var C="stamper-"+Xzm++,n=function(){var w;return(w=_.m$(W.targetId))!=null?w:C};
k=_.b(fLc(function(){var w=tjp(W.data());w.targetId=n;return w})).next().value;
var N=Object.assign({},Fo().replaceableMapping,W.children);if(W.replacementWrapper){var B=N.notificationTextRenderer,A=N.notificationMultiActionRenderer;B&&(N.notificationTextRenderer=function(w,x){return W.replacementWrapper(B({data:w.data},x))});
A&&(N.notificationMultiActionRenderer=function(w,x){return W.replacementWrapper(A({data:w.data},x))})}return Object.assign({},W,{data:k,
mapping:N,wrapper:function(w,x,E){return tXp({targetId:n,stamperIndex:E},w)}})};
Epc=function(W,k,C){var n;return _.BH(function(){var N=W()[C()];if(N)n=N[k];else return _.zJ(new _.AM("Stamper failed to find "+String(k)+" at index "+C()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),n;return N[k]},void 0,"DHuMIe")};
aLm=function(W){W=_.b(Object.keys(W));for(var k=W.next();!k.done;k=W.next())if(k=k.value,ddm.includes(k)||md2.includes(k)||zTP.includes(k))return!0;return!1};
tjp=function(W){return W?Array.isArray(W)?W:[W]:[]};
Ddm=function(W){W=_.z(W,_.aS);return(W==null?void 0:W.iconName)&&!(W==null?0:W.title)};
cip=function(W,k,C){var n;return _.t(_.qf,null,W==null?void 0:(n=W.actions)==null?void 0:n.map(function(N){return _.t("div",{class:function(){var B={"yt-flexible-actions-view-model-wiz__action":!0};B["yt-flexible-actions-view-model-wiz__action--row-action"]=k;B["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(Ddm(N))var A=!0;else if(A=_.z(N,_.Xo),(A==null?0:A.isToggled)&&Ddm(A==null?void 0:A.toggledButtonViewModel)||(A==null||!A.isToggled)&&Ddm(A==null?void 0:A.defaultButtonViewModel))A=
!0;else{var w;A=((w=_.z(N,VjI))==null?0:w.playlistId)?!0:!1}B=(B["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=A,B["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=C,B);return _.Hj(B)}},Jiw([N],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!k}}))}))};
ILX=function(W){var k=W.layout===1,C,n=((C=W.data)==null?void 0:C.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";C={};n=(C["yt-flexible-actions-view-model-wiz"]=!0,C["yt-flexible-actions-view-model-wiz--inline"]=!k,C["yt-flexible-actions-view-model-wiz--scrollable"]=n,C);var N,B;return _.t("yt-flexible-actions-view-model",{class:_.Hj(W.className,n)},(N=W.data)==null?void 0:(B=N.actionsRows)==null?void 0:B.map(function(A){if(k){var w;return _.t("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
cip(A,k,!((w=W.data)==null||!w.respectActionIntrinsicWidth)))}return cip(A,k,!1)}))};
ST3=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
Mjw=function(W){var k=_.z(W.data.toggleButtonViewModel,_.Xo),C,n=(C=W.data.dislikeEntityKey)!=null?C:"",N=_.WB(fn,n);k=Object.assign({},k,{isToggled:N?N.likeStatus==="DISLIKE":k.isToggled});return _.t("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.t(_.fX,{data:k,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(B){N&&B!==(N.likeStatus==="DISLIKE")&&N.key&&_.Q3(_.d7("likeStatusEntity",N.key,{likeStatus:B?"DISLIKE":"INDIFFERENT",hadUserInteraction:B}))}}))};
pzm=function(W){var k=_.m("web_supports_animations_api"),C=_.z(W.data.toggleButtonViewModel,_.Xo),n,N,B,A,w=_.b(PJ({numberText:(A=(n=W.likeCountEntity)==null?void 0:(N=n.likeCountIfIndifferent)==null?void 0:N.content)!=null?A:"",numberValue:Number((B=W.likeCountEntity)==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),x=w.next().value,E=w.next().value,a,X,d,V;n=_.b(PJ({numberText:(V=(a=W.likeCountEntity)==null?void 0:(X=a.likeCountIfLiked)==null?void 0:X.content)!=null?
V:"",numberValue:Number((d=W.likeCountEntity)==null?void 0:d.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));a=n.next().value;var c=n.next().value;X=_.b(PJ(void 0));var M=X.next().value,p=X.next().value,e;X=(e=W.data.likeStatusEntityKey)!=null?e:"";var u,h;e=(h=(u=W.likeCountEntity)==null?void 0:u.key)!=null?h:"";var L=_.WB(fn,X),Bw=_.WB(kBm,e);u=a4(function(){return(L==null?void 0:L.likeStatus)==="LIKE"},[L]);
tj(function(){var P,xz=Bw&&((P=Bw.likeCountIfIndifferent)==null?void 0:P.content)!==x.numberText;if(!M&&xz){var Sp,vw;E({numberText:(vw=Bw==null?void 0:(Sp=Bw.likeCountIfIndifferent)==null?void 0:Sp.content)!=null?vw:"",numberValue:Number(Bw==null?void 0:Bw.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var lw,G4;c({numberText:(G4=Bw==null?void 0:(lw=Bw.likeCountIfLiked)==null?void 0:lw.content)!=null?G4:"",numberValue:Number(Bw==null?void 0:Bw.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[Bw]);
C=Object.assign({},C,{isToggled:u});k=k&&W.likeCountEntity;return _.t("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.t(_.fX,{data:C,buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:k?x:void 0,animatedTextPropsToggled:k?a:void 0,onToggle:function(P){QgX(P,L,M,p)},
style:function(){return W.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
QgX=function(W,k,C,n){C&&_.aM.cancelJob(C);C=_.aM.addLowPriorityJob(function(){n(void 0)},5E3);
n(C);k&&W!==(k.likeStatus==="LIKE")&&k.key&&_.Q3(_.Nj("likeStatusEntity",k.key,{key:k.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
yiI=function(W){var k,C=_.z((k=W.data)==null?void 0:k.likeButtonViewModel,vpP),n;k=_.z((n=W.data)==null?void 0:n.dislikeButtonViewModel,eTm);var N,B=(N=_.WB(fn,(C==null?void 0:C.likeStatusEntityKey)||""))!=null?N:C==null?void 0:C.likeStatusEntity;n=a4(function(){var A=W.data,w;A=(A==null?void 0:(w=A.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"like-dislike",timings:A,enabled:(B==null?void 0:B.likeStatus)==="INDIFFERENT"&&A.length>0,experimentEnabled:A.length>0}},[W.data,
B]);return _.t("segmented-like-dislike-button-view-model",{class:_.Hj(W.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.t(_.sg2,{settings:n},_.t("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},C?_.t(pzm,{data:C,likeCountEntity:W.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,k?_.t(GO4,{data:k,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
$dz=function(W,k){var C=iW.get(W)||{layerNode:k};C.layerNode=k;QvK(W,C);W.getScreenLayer=function(){return mk(C.layerNode)}};
ZQI=function(W){var k;W=W.parentNode;for(var C;W&&((k=iW.get(W))==null||!k.isRenderer)&&!((C=W.polymerController)!=null?C:W).isRenderer_;)W=W.parentNode||W.host;if(k=W)return iW.get(k)};
RTm=function(W){if(W){iW.delete(W);var k=_.f().resolve(qP);pMw(W,k)}};
iQz=function(W,k,C){if(C===void 0?0:C){if(C=W.getAttribute("client-ve-type"),k.data&&!k.disableReactiveLogging||C)_.aW(function(){opp(W,_.m$(k.data))}),_.fy(function(){return void RTm(W)})}else typeof k.data!=="function"&&opp(W,k.data)};
opp=function(W,k){Tz3++;qTm(W,k)&&_.aM.addJob(function(){_.ty(_.aM,function(){if(qTm(W,k)&&W.ownerDocument.documentElement===document.documentElement&&W){var C;if(W.getAttribute("layer")){var n=C=Number(W.getAttribute("layer")),N=iW.get(W);N?N.layerNode.layer=n:$dz(W,new u44(n));(n=ZQI(W))&&(N=iW.get(W))!=null&&(N.layerNode.parent=n.layerNode)}else if(C=iW.get(W))C=mk(C.layerNode);else{C=mk;n=new u44;if(N=ZQI(W))n.parent=N.layerNode;$dz(W,n);C=C(n)}C!=null||(C=0);n=W.getAttribute("client-ve-type");
N=Number(n);var B=!1;n=!1;var A=iW.get(W),w;if((w=A)&&!(w=A[UdJ]!==k)&&(w=N)){var x;w=((x=iW.get(W))==null?void 0:x.clientVeType)===void 0}w&&(A[UdJ]=k,B=n=A.isRenderer=!0);iW.has(W)&&(iW.get(W).clientVeType=N);W.visualElement&&(n=!0);(x=k==null?void 0:k.loggingDirectives)&&x.clientVeSpec&&(A=OQJ(_.hv(),W),x=_.LOp(_.kf(),x,A||void 0,C))&&(W.visualElement=x);!W.visualElement&&N&&B&&(W.veType=N,x=void 0,_.m("wiz_next_client_ve_parent_fix")&&(x=OQJ(_.hv(),W)),x=_.Wj(_.kf(),W,x,C),W.visualElement=x);
n&&(x=_.f().resolve(qP),GhX(W,{data:k,observer:x,layer:C,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
qTm=function(W,k){return(k==null?0:k.trackingParams)||(k==null?0:k.loggingDirectives)||_.z(k==null?void 0:k.rendererContext,_.yPP)||W.getAttribute("client-ve-type")?!0:!1};
HQ2=function(W){return _.m("cow_logging_in_component_wrapper")?function(k){iQz(k,W,!0)}:jgm};
jgm=function(){};
_.ri4=function(W,k){return _.hQ(W.entities,"accountLinkStatusEntity",k)};
gp2=function(W,k){return _.hQ(W.entities,"hatsSurveyEntity",k)};
Pmp=function(W,k){return _.hQ(W.entities,"hatsSurveyStateEntity",k)};
KOw=function(W,k){return _.hQ(W.entities,"quantityIncrementerEntity",k)};
nWz=function(W){var k=W.data;var C=W.className===void 0?"":W.className;var n=W.setMinWidth;W=W.forceIconOnly;var N=_.yE(HQ2({data:k}));n=n?"ytwAccountLinkButtonViewModelHostMinWidth":"";var B=_.kj(_.ri4,function(){var X;return(X=_.m$(k).accountLinkStatusEntityKey)!=null?X:""}),A=_.kj(_.ri4,function(){var X;
return(X=_.m$(k).accountLinkStatusSecondaryEntityKey)!=null?X:""}),w=function(){if(!_.m("web_account_link_secondary_killswitch")){var X,d;
return((X=B())==null?void 0:X.linked)||((d=A())==null?void 0:d.linked)}var V;return(V=B())==null?void 0:V.linked};
_.XM(function(){var X=B();if(X){var d=hTm(new W6I,ksX(new C9w,!!X.linked));_.HJ().then(function(V){V&&(V.setAccountLinkState(_.zC(d.JSC$9926_serializeBinary(),4)),V.updateAccountLinkingConfig(!!X.linked))})}});
var x=function(){return _.z(_.m$(k).toggleButtonViewModel,_.Xo)};
_.GJ("yt-signal-action-show-account-link-dialog",function(){if(x()){var X=w()?x().toggledButtonViewModel:x().defaultButtonViewModel;X=_.z(X,_.aS);var d;if((d=B())==null?0:d.isWarning){d=_.z(_.m$(k).warningButtonViewModel,_.aS);if(!d){_.pS(Error("Ah"));return}X=d}var V;(d=_.fi((V=X)==null?void 0:V.onTap))&&_.bW([d],N.value)}else _.pS(Error("Bh"))});
var E=function(){var X=x();return Object.assign({},X,{isToggled:w()})},a=W?{iconPosition:"icon-only"}:{};
return _.t("account-link-button-view-model",{class:_.Hj("ytwAccountLinkButtonViewModelHost",C,n),el:N,"button-renderer":!0},_.t("div",null,_.t(_.NI,{cond:function(){var X;if((X=B())==null?0:X.isWarning)return(X=_.z(_.m$(k).warningButtonViewModel,_.aS))||_.pS(Error("Ah")),X},
then:function(X){return _.t(_.zn,{data:X,buttonOverrides:a})},
else:function(){return _.t(_.fX,{data:E,buttonShapeOverrides:a})}})))};
NYz=function(W){switch(W){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}};
Y_3=function(W){switch(W){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}};
BYX=function(W){switch(W){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"}};
_.AJK=function(W){var k=_.Oe("web_generic_client_event_wait_period ",0);k||(k=3E5);var C=bfw.get(W);!_.m("enable_web_client_experiment_event_timeout_killswitch")&&C&&(0,_.oX)()-C<k||(bfw.set(W,(0,_.oX)()),_.a9("genericClientExperimentEvent",{eventType:W}))};
xWX=function(W){var k=W.data;var C=W.children;var n=F6m(k),N=(k==null?0:k.thumbnailSize)?k.thumbnailSize:"medium";W=!(k==null||!k.doubleStack);var B=!(k==null||!k.experimentEnabled),A={},w=(A["collections-stack-wiz__collection-stack1"]=!0,A[wAX(N)]=!0,A);if(k==null?0:k.customClassName1stStack)w[k.customClassName1stStack]=!0;N={};var x=(N["collections-stack-wiz__collection-stack2"]=W,N["collections-stack-wiz__collection-stack2--responsive-mode"]=k==null?void 0:k.enableResponsiveMode,N);if(k==null?
0:k.customClassName2ndStack)x[k.customClassName2ndStack]=!0;return _.t("yt-collections-stack",{class:"collections-stack-wiz",hidden:!B},_.Tb(k,function(){return _.t("div",null,_.Tb(k.doubleStack,function(){return _.t("div",{class:_.Hj(x),style:"background-color:"+n})}),_.t("div",{class:_.Hj(w),
style:"background-color:"+n}),C)}))};
wAX=function(W){switch(W){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""}};
F6m=function(W){if(!W)return"";var k,C=(k=_.f().resolve(_.qI(_.cj)))==null?void 0:k(),n;if(!C&&((n=W.vibrantColorPalette)==null?0:n.iconInactiveColor))return fO(W.vibrantColorPalette.iconInactiveColor,"1");var N;return C&&((N=W.darkColorPalette)==null?0:N.iconInactiveColor)?fO(W.darkColorPalette.iconInactiveColor,"1"):W.color?fO(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.Di=function(W,k){if(!W.includes("DATE_PLACEHOLDER"))return W;var C=new Date(0);C.setUTCSeconds(k);return W.replace("DATE_PLACEHOLDER",lc3(C))};
_.Vg=function(W){W=_.txP(W);return _.m("web_watch_enable_single_column_grid_view")?W:!1};
_.txP=function(W){return W.watch.isWatchNarrowWidth};
EWw=function(W,k,C){return function(n){var N=W.command;N&&(AW(N,{form:{element:C}}),k([N],n))}};
XAc=function(W,k,C,n,N){return function(B){var A=acJ(W,C);A&&AW(A,{form:{element:n},commandController:N});k&&k.stopPropagation&&B.stopPropagation()}};
acJ=function(W,k){if(W.signInEndpoint&&!_.m("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(k){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
fcI=function(W,k){var C,n,N,B;k=k&&((C=W.unsubscribeAccessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)||((N=W.subscribeAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label);return W.longSubscriberCountText?[k,_.y4(W.longSubscriberCountText)].filter(function(A){return A}).join(" "):k};
Jy=function(W,k){return k||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
dWc=function(W,k){var C;switch((C=W.style)==null?void 0:C.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Jy(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Jy(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Jy(W,!0)};case "OVERLAY":return k?{style:"overlay",type:"tonal",state:Jy(W)}:{style:"overlay",type:"filled",state:Jy(W)};default:return k?{style:"mono",type:"tonal",state:Jy(W)}:{style:"mono",type:"filled",state:Jy(W)}}};
mWP=function(W,k){var C=W.map(function(n){return n.toString()});
return _.Pj(function(n){if(C.includes(n.key)){k&&n.preventDefault();var N;(N=n.currentTarget)==null||N.click()}})};
_.cB=function(){return mWP(["Enter"])};
_.zhK=function(){return mWP(["Enter"," "],!0)};
_.IS=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var k=[],C=W.target;C;)k.push(C),C=C.parentNode;k.push(window);W.__composedPath=k}return W.__composedPath};
_.DW4=function(W,k,C){W=_.b(W);for(var n=W.next();!n.done;n=W.next()){n=n.value;if(n===k)break;for(var N=_.b(C),B=N.next();!B.done;B=N.next())if(B=B.value,n.tagName===B||n.role==="button"&&B==="BUTTON")return!0}return!1};
JJX=function(W,k){var C,n=(C=k.observer)!=null?C:_.f().resolve(qP);if(W){C=Vx4(W);var N=[];k.showOption&&N.push(n.observe(W,function(){k.visibilityCallback(!0)},k.showOption));
k.hideOption&&N.push(n.observe(W,function(){k.visibilityCallback(!1)},k.hideOption));
k.prescanOption&&k.prescanCallback&&N.push(n.observe(W,function(){k.prescanCallback()},k.prescanOption));
var B;C.visibilityMonitorKeys=((B=C.visibilityMonitorKeys)!=null?B:[]).concat(N)}};
Vx4=function(W){var k;return(k=W.polymerController)!=null?k:W};
_.Mj=function(W){return!!_.SH(W)};
_.Qg=function(W,k){var C=EUm();tj(function(){var n=W.value;if(n)return cJw(n,k),IcK(n,k,void 0,void 0,void 0,C)},[k])};
_.pX=function(W,k,C,n,N,B){var A=EUm();_.XM(function(){var w=W.value;w&&(cJw(w,k(),B),w=IcK(w,k(),C,n,N,A),_.fy(w))})};
cJw=function(W,k,C){var n=S_w(k),N=Mxm(k);k=n&&Q6m;var B=N&&pAI;(n||N)&&JJX(W,{visibilityCallback:function(A){var w=_.f().resolve(_.uI);A&&n?w.resolveCommand(n,{form:{element:C?W:void 0},disableClickTracking:!0}):!A&&N&&w.resolveCommand(N,{form:{element:C?W:void 0},disableClickTracking:!0})},
showOption:k,hideOption:B})};
IcK=function(W,k,C,n,N,B){var A=new Map;if(k=_.SH(k)){var w;W=(n==null?void 0:(w=n.onTap)==null?void 0:w.value)||W;C=vWX(k,W,C==null?void 0:C.onTap,N,B);W.addEventListener("click",C);A.set("click",C)}return function(){for(var x=_.b(A),E=x.next();!E.done;E=x.next()){var a=_.b(E.value);E=a.next().value;a=a.next().value;W.removeEventListener(E,a)}}};
_.SH=function(W){var k;return(W=(k=_.z(W,ehX))==null?void 0:k.onTap)&&_.fi(W)};
S_w=function(W){var k;return(W=(k=_.z(W,ehX))==null?void 0:k.onVisible)&&_.fi(W)};
Mxm=function(W){var k;return(W=(k=_.z(W,ehX))==null?void 0:k.onHidden)&&_.fi(W)};
vWX=function(W,k,C,n,N){var B=function(w){_.f().resolve(_.uI).resolveCommand(W,w)},A=function(w){n&&_.DW4(_.IS(w),k,n)||B(w.target?{form:{element:w.target,
sourceData:W,mutationContext:N}}:void 0)};
C&&(A=function(w){C(w,B)});
return A};
s6z=function(W){var k=W.data;var C=W.className;W=W.alwaysShow;var n=_.yE();_.Qg(n,k.rendererContext);a:switch(k.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var N="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:N="ytThumbnailHoverOverlayViewModelStyleCover"}N=_.Hj("ytThumbnailHoverOverlayViewModelScrim",N);var B,A=(B=_.z(k==null?void 0:k.rendererContext,_.vB))==null?void 0:B.label,w=_.SH(k.rendererContext)!==void 0;B=w?"button":void 0;w=w?0:void 0;var x=_.zhK(),E={};return _.t("thumbnail-hover-overlay-view-model",
{el:n,class:_.Hj("ytThumbnailHoverOverlayViewModelHost",C,(E.ytThumbnailHoverOverlayViewModelHostForceHover=W,E)),"aria-label":A,role:B,tabindex:w,"on:keypress":x},_.t("div",{class:N},k.icon?_.t(_.pi,{data:k.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,k.text?_.t(_.Ya,{text:k.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
Gsp=function(W){switch(W){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}};
yJm=function(W){switch(W){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""}};
$WX=function(W){switch(W){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""}};
Zf2=function(W){switch(W){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}};
Rhc=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
oWz=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
TYK=function(W){return{size:ifJ(W.data.avatarImageSize),onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName}};
ifJ=function(W){switch(W){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"}};
q_z=function(W){function k(){C.endpoint&&_.zj(C.endpoint)}
var C=W.data;var n=W.decorations;var N=W.avatarButtonCustomClassName;W=W.isOverlay;return _.t("avatar-view-model",null,C.image?_.t(eH,{data:TYK({data:C,onTap:C.endpoint?k:void 0,decorations:n,badgeText:void 0,accessibilityText:C.accessibilityText,avatarButtonCustomClassName:N}),image:C.image,iconType:"RADAR_LIVE",overlays:function(){return _.t(sx,{data:C})},
isOverlay:W}):null)};
UWm=function(W){var k=W.data;var C=W.avatar;var n=W.onTap;var N=W.element;W=W.commandController;n=n?ujw(n,N,W):void 0;N=[];k.liveData&&N.push(0);var B;W=(B=k.liveData)==null?void 0:B.liveBadgeText;var A;B=(A=_.z(k.rendererContext,_.vB))==null?void 0:A.label;return TYK({data:C,onTap:n,decorations:N,badgeText:W,accessibilityText:B?B:k.a11yLabel})};
ujw=function(W,k,C){return function(){AW(W,{form:{element:k},commandController:C})}};
OfI=function(W,k,C,n){return k?UWm({data:W,avatar:k,onTap:C,element:n}):{size:"medium"}};
L6c=function(W){var k=W.data;W=W.className;var C=_.$I(),n=_.z(k.avatar,_.Gn),N=_.SH(k.rendererContext),B,A=OfI(k,n,N,(B=C.value)!=null?B:void 0);return _.t("yt-decorated-avatar-view-model",{class:_.Hj("yt-decorated-avatar-view-model-wiz",W),el:C},_.Tb(n==null?void 0:n.image,function(){var w,x,E;return _.t(eH,{data:A,image:n.image,iconType:"RADAR_LIVE",overlays:function(){return _.t(sx,{data:n})},
idomKey:n==null?void 0:(w=n.image)==null?void 0:(x=w.sources)==null?void 0:(E=x.at(0))==null?void 0:E.url})}))};
j6w=function(W){switch(W){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}};
Hfw=function(W){switch(W){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""}};
rJ4=function(W){var k=0;W.avatars&&(k+=W.avatars.length);W.decoratedText&&(k+=1);return k};
P9p=function(W){var k=W.data,C=k.avatars,n=k.text,N=k.rendererContext,B=k.decoratedText,A=(k=_.yE())&&_.Mj(N);_.Qg(k,N);var w=rJ4(W.data)>1,x,E=C&&C.length>0?j6w((x=_.z(C[0],_.Gn))==null?void 0:x.avatarImageSize):0,a,X=C&&C.length>0?(a=_.z(C[0],_.Gn))==null?void 0:a.avatarImageSize:"AVATAR_SIZE_UNKNOWN",d,V;x={};return _.t("yt-avatar-stack-view-model",{el:k,class:_.Hj("yt-avatar-stack-view-model-wiz",W.className,(x["yt-avatar-stack-view-model-wiz--tappable"]=A,x["yt-avatar-stack-view-model-wiz--is-overlay"]=
W.isOverlay,x["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,x)),tabindex:A?0:void 0,role:A?"link":void 0,"aria-label":(V=(d=_.z(N,_.vB))==null?void 0:d.label)!=null?V:""},_.Tb(C&&!W.hideAvatar,function(){return _.t("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Tb(B,function(){var c={};return _.t("div",{class:_.Hj("yt-avatar-stack-view-model-wiz__text-container",(c["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=X==="AVATAR_SIZE_XXS"||X==="AVATAR_SIZE_XS",
c["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=W.isOverlay&&(X==="AVATAR_SIZE_XXS"||X==="AVATAR_SIZE_XS"),c)),style:"width: "+E+"px; height: "+E+"px"},_.t(_.Ya,{text:B,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),C.slice().reverse().map(function(c){return _.t("div",{class:Hfw(X)},gWI(c,{avatarViewModel:{decorations:W.decorations?W.decorations:w?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:W.isOverlay}}))}))}),_.Tb(n,function(){return _.t(_.Ya,{text:n,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
K6m=function(W){switch(W){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}};
hh4=function(W){switch(W){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""}};
Wom=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
kF2=function(W){var k=W.data;return _.t("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden===void 0?!1:W.hidden},_.t(_.Ya,{text:k.title,className:"yt-thumbnail-overlay-title-view-model__title"}),k.subtitle?_.t(_.Ya,{text:k.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
ChX=function(W){switch(W){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"}};
nFm=function(W){var k=W.data;W=W.hidden===void 0?!1:W.hidden;var C={};W={class:_.Hj("yt-page-indicator-view-model",(C["yt-page-indicator-view-model__indicator--hidden"]=!k.indicatorCount,C)),hidden:W};if(k.indicatorCount){C=[];for(var n=0;n<k.indicatorCount;n++){var N={};N=_.Hj("yt-page-indicator-view-model__indicator",(N["yt-page-indicator-view-model__indicator--selected"]=k.selectedIndex===n,N));C.push(_.t("div",{class:N}))}k=_.t(_.qf,null,C)}else k=_.t(_.qf,null);return _.t("yt-page-indicator-view-model",
W,k)};
Ysc=function(W){W&&(NN2(W)?delete W.inlinePlayerData:"inlinePlaybackEndpoint"in W&&delete W.inlinePlaybackEndpoint)};
BN4=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var k,C,n;return((k=W.title)==null?void 0:(C=k.accessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)||""}if("accessibility"in W){var N,B;return((N=W.accessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)||""}return""};
NN2=function(W){return"inlinePlayerData"in W};
yg=function(W){return new bpc(W)};
_.AHm=function(W,k,C,n,N,B){var A=function(E){E.preventDefault()},w=function(){var E=W.value;
if(E)return(E._data=k)?(E.addEventListener("touchstart",I9z,{passive:!0}),E.addEventListener("click",MP2),k.clickTrackingParams&&(E.params={itct:k.clickTrackingParams}),QPm(E,k),Gi(E,pd2(k)||"")):E.addEventListener("click",A),function(){k?(E.removeEventListener("touchstart",I9z,{passive:!0}),E.removeEventListener("click",MP2)):E.removeEventListener("click",A)}},x=function(){var E=W.value;
if(E){var a=_.m8({innertubeCommand:k,elementsCommand:C,forceNewState:n,stopPropagation:B});if(a)return E._data=a._data,a["aria-haspopup$"]&&E.setAttribute("aria-haspopup",a["aria-haspopup$"].toString()),a["force-new-state$"]&&E.setAttribute("force-new-state",a["force-new-state$"].toString()),a.href$&&Gi(E,a.href$),a.rel$&&(E.rel=a.rel$),a.role$&&E.setAttribute("role",a.role$),a.target$&&(E.target=a.target$),E.params=a.params,a.onclick&&E.addEventListener("click",a.onclick),a.onpointerdown&&E.addEventListener("onpointerdown",
a.onpointerdown),function(){a.onclick&&E.removeEventListener("click",a.onclick);a.onpointerdown&&E.removeEventListener("onpointerdown",a.onpointerdown)}}};
tj(N?x:w,[k,C])};
Fow=function(W){var k=W.children;var C=W.className;var n=W.dir;var N=W.style;var B=W.role;var A=W.ariaSelected;var w=W.ariaLabel;var x=W.ariaHidden;var E=W.ariaLabelledby;var a=W.ariaDescribedby;var X=W.command;var d=W.elementsCommand;var V=W.forceNewState;var c=W.isPlaceholder;var M=W.tabIdentifier;var p=W.target;var e=W.tabIndex;var u=W.useATagConfig;var h=W.stopPropagation;W=_.yE();_.AHm(W,X,d,V,u,h);d=_.Pj(function(){return h===!1});
return _.t("a",{el:W,"on:click":d,class:C,style:N,dir:n,role:B?B:X?void 0:"group","aria-hidden":x?!0:void 0,"aria-label":w,"aria-labelledby":E,"aria-describedby":a,"aria-selected":A,tabindex:e!==void 0?e:void 0,target:p,"tab-identifier":M,"force-new-state":V?!0:void 0,"is-placeholder":c?!0:void 0},k)};
xT3=function(W){var k=W.data;W=_.Pj(function(){var N=_.z(k.onTap,_.XZ);N&&_.f().resolve(_.uI).resolveCommand(N);return!1});
var C={sources:[{url:k.thumbnailUrl,width:120,height:90}]},n=k.rating&&k.ratingA11yLabel&&k.reviewsCount&&k.reviewsCountA11yLabel;return _.t("place-data-view-model",null,k.placeName&&k.placeCategory?_.t("div",{class:"yt-spec-place-data-view-model-shape","on:click":W},_.t(_.pi,{data:C,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+wCK}),_.t(Fow,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.z(k.onTap,_.XZ),forceNewState:!0,
useATagConfig:!0},_.t("h3",{class:"yt-spec-place-data-view-model-shape__name",title:k.placeName},k.placeName)),_.t("div",{class:"yt-spec-place-data-view-model-shape__metadata"},n?_.t("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.t("span",{class:"score",title:k.ratingA11yLabel},k.rating),_.t("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.t(_.ka,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.t("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:k.reviewsCountA11yLabel},k.reviewsCount)):_.t("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.t("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.t("span",{class:"category",title:k.placeCategory},k.placeCategory)))):null)};
lsI=function(W){return function(k){W&&(W.thumbnailElRef=k.thumbnailElRef,W.thumbnail=k.thumbnail,W.thumbnailOverlays=k.thumbnailOverlays,W.thumbnailSize=k.thumbnailSize)}};
t0m=function(W){var k;return(k=W.sharedUi)==null?void 0:k.animatedThumbnailEnabled};
EF4=function(W){var k;return(k=W.sharedUi)==null?void 0:k.inlinePreviewEnabled};
_.asw=function(W){var k;return(k=W.sharedUi)==null?void 0:k.currentPageSubType};
XCm=function(){return _.t("div",{class:"yt-pinking"},_.t("svg",{class:"yt-pinking__pinking-left"},_.t("defs",null,_.t("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.t("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.t("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.t("svg",{class:"yt-pinking__pinking-right"},_.t("defs",null,_.t("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.t("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.t("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
fs2=function(W){switch(W){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"}};
JH3=function(W){var k=[],C=W.data,n=Gf(W.width,W.height),N=_.f().resolve(_.qI(dTw)),B=_.yE(function(){k.push("elRef.value set")});
_.Ee(function(){k.push("onInit");return function(){k.push("onCleanup")}});
_.Ee(function(){var p;(p=W.playbackRef)==null||p.call(W,{thumbnailElRef:B,thumbnail:C.image,thumbnailOverlays:C.overlays,thumbnailSize:n})});
var A=AFw(t0m),w,x=(w=W.aspectRatio)!=null?w:0,E=(w=(C.image?_.xp2(C.image):x)<=1&&x===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",a=function(){B.value||_.zJ(new _.AM("Thumbnail elRef.value is null",k.join("\n")));N&&B.value&&N(B.value)},X={};
a:{if(!W.disableRounding&&!W.isClip)switch(n){case "large":var d="yt-thumbnail-view-model--large";break a;case "small":d="yt-thumbnail-view-model--small";break a;default:d="yt-thumbnail-view-model--medium";break a}d=void 0}x=_.Hj("yt-thumbnail-view-model",W.className,fs2(x),d,(X["yt-thumbnail-view-model--cinematic"]=w,X));X=void 0;var V,c;(d=w?(V=W.data)==null?void 0:(c=V.backgroundColor)==null?void 0:c.lightTheme:void 0)&&(X="background-color:"+fO(d,"1")+";");var M;V=W.hovered&&n!=="large"&&((M=
C.overlays)==null?void 0:M.some(function(p){return _.z(p,mTJ)}));
return _.t("yt-thumbnail-view-model",{class:x,style:X,el:B},_.Tb(w,function(){return _.t("div",{class:"yt-thumbnail-view-model__blurred-image"},_.t(_.pi,{data:C.image,alt:"",contentMode:E,targetWidth:W.width,onload:a}))}),_.t("div",{class:"yt-thumbnail-view-model__image"},_.t(_.pi,{data:C.image,
alt:"",contentMode:E,targetWidth:W.width,onload:a}),null),_.Tb(!V,function(){return zpK(C.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:n,isClip:W.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:W.lockupExperiments}})}),_.Tb(W.hovered,function(){return DTz(C.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.Tb(W.hovered&&A,function(){return V0p(C.overlays)}),_.Tb(W.isClip,function(){return XCm()}))};
cHP=function(W){switch(W){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"}};
pC4=function(W){var k=_.b(PJ(-1)),C=k.next().value,n=k.next().value,N=Xc(function(){return new Is3(n)});
_.Ee(function(){Ssw(N,W.data.thumbnails.length);return function(){M0X(N)}});
var B;return _.t("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(B=W.data.thumbnails)==null?void 0:B.map(function(A,w){var x=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!W.data.primaryThumbnail&&w===0&&x.push("yt-collection-thumbnail-slideshow--first-slide");w<=C&&x.push("yt-collection-thumbnail-slideshow--show-slide");w=x.join(" ");return _.t("div",{class:w},Qjw(A,{thumbnailViewModel:{disableRounding:W.disableRounding}}))}))};
epw=function(W){var k=_.b(PJ(!1)),C=k.next().value,n=k.next().value;_.Ee(function(){if(W){var N=_.f().resolve(_.qI(vFc));if(N){var B={triggeringElement:W,onDwellTriggeredFn:function(){n(!0)},
onDwellEndFn:function(){n(!1)}};
N.registerElement(B);return function(){N.unregisterElement(B)}}}});
return C};
sjm=function(W){var k=_.b(_.kw(!1,void 0,"RIOonf")),C=k.next().value,n=k.next().value;_.Ee(function(){var N=W==null?void 0:W();if(N){var B=_.f().resolve(_.qI(vFc));if(B){var A={triggeringElement:N,onDwellTriggeredFn:function(){n(!0)},
onDwellEndFn:function(){n(!1)}};
B.registerElement(A);_.fy(function(){B.unregisterElement(A)})}}});
return C};
$T4=function(W){var k,C=(k=_.f().resolve(_.qI(_.cj)))==null?void 0:k(),n=epw(W.triggeringElement),N=!!W.data.primaryThumbnail,B=function(){var w;return _.t("div",null,GFJ(W.data.primaryThumbnail,{thumbnailViewModel:{width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:N?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:W.hovered,playbackRef:W.playbackRef}}),_.Tb(n&&((w=W.data.thumbnails)==null?void 0:w.length),function(){return _.t("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.t(yH3,{data:W.data,disableRounding:!N}))}))};
k=W.data.stackColor;var A={experimentEnabled:N,thumbnailSize:Gf(W.width,W.height),doubleStack:W.doubleStack,color:C?k==null?void 0:k.darkTheme:k==null?void 0:k.lightTheme,enableResponsiveMode:!1};return _.t("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Tb(N,function(){return _.t(xWX,{data:A},B())}),_.Tb(!N,B))};
ZpI=function(W,k,C){C?C(k):_.zj(k,W.target?{form:{element:W.target}}:void 0)};
_.Zi=function(W,k,C,n){_.XM(function(){var N=W.value;if(N){var B=new Map,A,w=(A=k())==null?void 0:A.onTap;w&&(A=function(x){a:{var E=x.composedPath();E=_.b(E);for(var a=E.next();!a.done;a=E.next()){a=a.value;if(a===N)break;if(a.className.indexOf("HostIsClickableAdComponent")>=0||a.tagName==="A".toString()||a.tagName==="BUTTON".toString()){E=!0;break a}}E=!1}E||(_.m("enable_square_image_components_ui_web_with_float_button")?_.Pe(W.value,"yt-navigate",{endpoint:_.fi(w)}):ZpI(x,w,C))},(n==null?0:n())||
_.m("enable_web_home_top_landscape_image_layout_level_click")?(N.addEventListener("tap",A),B.set("tap",A)):(N.addEventListener("click",A),B.set("click",A)));
_.fy(function(){for(var x=_.b(B),E=x.next();!E.done;E=x.next()){var a=_.b(E.value);E=a.next().value;a=a.next().value;N.removeEventListener(E,a)}})}})};
Rpp=function(W,k){var C,n=(C=W.interaction)==null?void 0:C.onTap;if(W=_.m8({elementsCommand:n,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(N){z5z(N)&&(N.preventDefault(),n&&ZpI(N,n,k))},VPp(W)?W:void 0};
oFw=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ip3=function(W){switch(W){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"}};
TNJ=function(W){switch(W){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"}};
_.qsp=function(W){return _.m("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.Oe("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Oe("rich_grid_dynamic_offset_offset_per_100",10)),_.Oe("rich_grid_dynamic_offset_lower_bound",-60)):0};
uBK=function(W,k){switch(k){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
UT2=function(W){var k=W.originalContainerWidth;var C=W.sizing;var n=W.standardUnit;if(W.isCompactList&&k<528)return 1;switch(C){case "STANDARD":return n;case "COMPACT":return n+1;case "EXTRA_COMPACT":return _.m("web_responsive_extra_compact_2x")?n*2:_.m("web_responsive_current")?n===1?2:n%2===0?n/2*3:n+2:n<4?n*2:Math.ceil(n*3/2);case "MINI":return n>1?n*2:3;default:return n}};
Lom=function(W){var k=W.containerWidth;var C=W.peek;var n=W.gutter;var N=W.numItems;W=W.ignoreMaxWidthLimit;k=C?Math.max((k-C-n*N)/N,0):Math.max((k-n*(N-1))/N,0);return W?k:Math.min(k,OpX)};
_.Tn=function(W){var k=W.containerWidth;var C=W.hasPeek;var n=W.sizing;var N=W.marginSettings;var B=W.isCompactList;var A=W.enableFullBleedForSingleCol;var w=W.standardUnitMinWidth;n=n||"STANDARD";C=!!C;W=k>=528?16:8;var x=C?k>=528?48:24:0;N=uBK(k,N);var E=Math.max(k-N*2,0);w=_.m("kevlar_disable_min_width_override")?void 0:w;w=Math.min(Math.max(Math.floor((E-x+W)/((w!=null?w:jjw)+_.qsp(k)+W)),1),6);var a=(A=!!A&&w===1)||w===1&&n!=="STANDARD";C=C||a?E:Math.min(E,(OpX+W)*w-W);n=UT2({originalContainerWidth:k,
sizing:n,standardUnit:w,isCompactList:B});return{itemWidth:Lom({containerWidth:C,peek:x,gutter:W,numItems:n,ignoreMaxWidthLimit:a}),gutter:W,maxContainerWidth:C,numItems:n,margin:A?0:N,contentMargin:uBK(k,1),typographyBump:Lom({containerWidth:C,peek:x,gutter:W,numItems:w,ignoreMaxWidthLimit:a})>400&&!(B&&k<528),standardUnit:w}};
HpK=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.rHK=function(W){if(W){var k;if((k=W.responsiveContainerConfiguration)==null?0:k.responsiveSize)return HpK(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
gFX=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
WCX=function(W,k,C,n,N,B,A,w){a:switch(W){case 4:B=!!(B&&B<100);break a;default:B=!1}a:switch(W){case 3:case 4:var x=n==="LOCKUP_CONTENT_TYPE_CHANNEL"||n==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:x=!1}a:switch(W){case 5:var E=!0;break a;case 4:E=!1;break a;default:E=!1}a:if(W===4&&n==="LOCKUP_CONTENT_TYPE_SOURCE")var a=1;else switch(W){case 3:a=1;break a;default:a=0}return{isOverlay:E,isCard:PhP(n,A),sizing:k!=null?k:"STANDARD",typographyBump:C!=null?C:!1,isTiny:B,isCentered:x,isCollection:Kop(n),
arrangement:a,addMarginForFullbleed:W===1&&n!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:hpm(n,N,w),disableRounding:W===5||PhP(n,A)||W===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Kop(n)?2:0,useLegacyTypography:!(w==null||!w.useLegacyTypography),useRichGridLegacyTypography:!(w==null||!w.useRichGridLegacyTypography)}};
Kop=function(W){switch(W){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}};
PhP=function(W,k){if(k&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
hpm=function(W,k,C){if(k&&(C==null||!C.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
kVm=function(W){switch(W){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"}};
NfK=function(W,k,C){a:switch(W.badgeStyle){case "BADGE_OVERLAY":var n=!0;break a;default:n=!1}return{type:k?16:CJK(W.badgeStyle),brNzRatingBadgeType:nGm(W.badgeStyle),text:W.badgeText,icon:W.iconName,isOverlay:n,modern:C||_.m("web_modern_badge_view_model")}};
CJK=function(W){switch(W){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
nGm=function(W){switch(W){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}};
Bfz=function(W){var k=W.data?NfK(W.data,!!W.workaroundShortsIsThumbnailBadge,W.modern):void 0;return _.t("yt-badge-view-model",{class:_.Hj("yt-badge-view-model-wiz",W.class)},_.Tb(k==null?void 0:k.brNzRatingBadgeType,function(){return _.t(Y8z,{data:k})}),_.Tb(k&&!k.brNzRatingBadgeType,function(){return _.t(_.qj,{data:k})}))};
_.uX=function(W){if(W){var k;return((k=_.f().resolve(_.qI(_.cj)))==null?0:k())?W.darkThemeImage:W.image}};
FCX=function(W,k,C,n,N,B){if(!C)return N&&B&&k==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+N+"px; height: "+B+"px;":"";N=C.size;C=C.allowFullWidth;if(k==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&C)return"width: 100%;";if(N===void 0)return"";switch(W){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+N+"px; height: "+N+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+N+"px; height: "+1/b9z*
N+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+N*AOc+"px; height: "+N+"px;";default:return(n==null?0:n.height)&&(n==null?0:n.width)?n.width/n.height>1?"max-width: "+N*AOc+"px;":"max-width: "+N+"px;":"max-width: "+N+"px;"}};
wUc=function(W){var k;return W&&((k=_.uX(W.themedImage))!=null?k:W.image)};
x8P=function(W){var k;return W==null?void 0:(k=W.sources)==null?void 0:k[0]};
tbw=function(W,k){var C,n;return!!((W==null?0:(C=W.byline)==null?0:C.hideAvatar)&&((n=_.z(k,loP))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
EGJ=function(W,k){var C,n;return!!((W==null?0:(C=W.byline)==null?0:C.addPadding)&&((n=_.z(k,loP))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
aop=function(W,k,C,n){var N={},B=(N["yt-content-metadata-view-model-wiz__delimiter"]=!0,N["yt-content-metadata-view-model-wiz__delimiter--standalone"]=n,N);return _.Tb(k-1>C,function(){return _.t("span",{class:_.Hj(B),"aria-hidden":!0},W)})};
foK=function(W,k){return _.t(_.Ya,{text:W.text,linkInheritColor:!0,className:XUm(k),userInput:!0})};
m8I=function(W){var k=W.metadataPart;var C=W.isOverlay;var n=W.useMediumText;var N=W.hideAvatar;var B=1;k.maxLines!==void 0&&(B=k.maxLines);return _.t(_.qf,null,_.Tb(k.avatarStack,function(){return d8K(k.avatarStack,{avatarStackViewModel:{isOverlay:C,useMediumText:n,hideAvatar:N}})}),_.Tb(k.text,function(){var A=B;
return _.t(_.qf,null,k.tooltip?_.t("span",{title:k.tooltip,role:"tooltip"},foK(k,A)):foK(k,A))}))};
XUm=function(W){switch(W){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"}};
ziJ=function(W){var k=W.metadataRow;var C=W.isInline;var n=W.delimiter;var N=W.isOverlay;var B=W.useMediumText;var A=W.extensions;var w=tbw(A==null?void 0:A.lockupMetadata,k);W=EGJ(A==null?void 0:A.lockupMetadata,k);A=!!((A==null?0:A.lockupMetadata)&&k.badges);var x={};W=(x["yt-content-metadata-view-model-wiz__metadata-row"]=!0,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=C,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=W,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
A,x);var E,a;return _.t("div",{class:_.Hj(W)},(E=k.badges)==null?void 0:E.map(function(X){return _.t("div",{class:"yt-content-metadata-view-model-wiz__badge"},d8K(X))}),(a=k.metadataParts)==null?void 0:a.map(function(X,d){return _.t(_.qf,null,m8I({metadataPart:X,
isOverlay:N,useMediumText:B,hideAvatar:w}),aop(n,k.metadataParts.length,d,!1))}),_.Tb(k.isSpacerRow&&!C,function(){return _.t("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
D8z=function(W){var k=W.className;var C=W.data;var n=W.layout===void 0?0:W.layout;var N=W.isOverlay===void 0?!1:W.isOverlay;var B=W.useMediumText;var A=W.extensions;W=_.yE();var w=n===0;n={};n=(n["yt-content-metadata-view-model-wiz"]=!0,n["yt-content-metadata-view-model-wiz--inline"]=w,n["yt-content-metadata-view-model-wiz--tappable"]=_.Mj(C.rendererContext),n["yt-content-metadata-view-model-wiz--medium-text"]=B,n);_.Qg(W,C.rendererContext);return _.t("yt-content-metadata-view-model",{class:_.Hj(k,
n),el:W},_.Tb(C.metadataRows,function(){return C.metadataRows.map(function(x,E){return _.t(_.qf,null,ziJ({metadataRow:x,isInline:w,delimiter:C.delimiter,isOverlay:N,useMediumText:B,extensions:A}),_.Tb(w&&!x.isSpacerRow,function(){return aop(C.delimiter,C.metadataRows.length,E,!0)}))})}))};
Vbm=function(W){switch(W){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"}};
JO2=function(W){if(W==null?0:W.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(W==null?void 0:W.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
cO2=function(W){if(W==null?0:W.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(W==null?void 0:W.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"}};
Io4=function(W){var k,C,n,N,B,A,w={},x=_.Hj(JO2(W.lockupStyle),cO2(W.lockupStyle),(w["yt-lockup-metadata-view-model-wiz"]=!0,w["yt-lockup-metadata-view-model-wiz--overlay"]=(k=W.lockupStyle)==null?void 0:k.isOverlay,w["yt-lockup-metadata-view-model-wiz--card"]=(C=W.lockupStyle)==null?void 0:C.isCard,w["yt-lockup-metadata-view-model-wiz--centered"]=(n=W.lockupStyle)==null?void 0:n.isCentered,w["yt-lockup-metadata-view-model-wiz--typography-bump"]=(N=W.lockupStyle)==null?void 0:N.typographyBump,w["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(B=W.lockupStyle)==null?void 0:B.useLegacyTypography,w["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(A=W.lockupStyle)==null?void 0:A.useRichGridLegacyTypography,w)),E,a,X,d,V,c;return _.t("yt-lockup-metadata-view-model",{class:x},_.Tb(W.data.image,function(){return _.t("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},Ux(W.data.image))}),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.t("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(E=W.data.title)==null?void 0:E.content},_.Tb(W.data.title,function(){return _.t(_.NE,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.t(_.Ya,{text:W.data.title}))})),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},Ux(W.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((a=W.lockupStyle)==null?void 0:a.typographyBump)||((X=W.lockupStyle)==null?void 0:X.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((d=W.lockupStyle)==null?void 0:d.arrangement)===0,addPadding:((V=W.lockupStyle)==null?void 0:V.arrangement)===1}}}}})),_.Tb(W.data.attribution,function(){return _.t("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},Ux(W.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.t("div",null,Ux(W.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:W.lockupStyle}}))),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},Ux(W.data.menuButton,((c=W.lockupStyle)==null?0:c.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
S8X=function(W){switch(W.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"}}};
Mbp=function(W){var k=_.asw(_.SY().getState())||"";return W?W+k:""};
Q2K=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
vGp=function(W){var k=_.b(_.kw(void 0,void 0,"BIquNb")),C=k.next().value,n=k.next().value,N=_.b(_.kw(void 0,void 0,"eR0GH"));k=N.next().value;var B=N.next().value,A=_.b(_.kw(void 0,void 0,"UmkP0"));N=A.next().value;var w=A.next().value;A=_.Pj(function(E){if(pUP(_.IS(E)))return!1;n(E);B(void 0);w(void 0);return!0});
var x=_.Pj(function(E){W==null||W(E);if(pUP(_.IS(E)))return!1;B(E);n(void 0);w(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:C,pointerDownEvent:k,pointerLeaveEvent:N},touchFeedbackOnPointerUp:A,touchFeedbackOnPointerDown:x,touchFeedbackOnPointerLeave:function(E){pUP(_.IS(E))||(w(E),B(void 0),n(void 0))}}};
pUP=function(W){var k=["BUTTON".toString()];W=_.b(W);for(var C=W.next();!C.done;C=W.next()){C=C.value;for(var n=_.b(k),N=n.next();!N.done;N=n.next())if(C.tagName===N.value)return!0}return!1};
eiI=function(W){switch(W){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"}};
s22=function(W){var k;return qt4(W,((k=W.content)==null?void 0:k.length)||0,!0)};
GVX=function(W){var k=s22(W),C,n;return(((C=W.content)==null?void 0:C.length)||0)>(((n=k.content)==null?void 0:n.length)||0)};
yOw=function(W){var k=W.isTruncated;var C=W.isAbsoluteButton;var n=W.lineHeight;var N=W.contentRef.value,B=W.placeholderTruncationTextRef.value,A=W.truncationTextRef.value;W=W.appDirection==="rtl";if(N&&B){var w=B.offsetLeft;W&&(w=N.offsetWidth-B.offsetWidth-B.offsetLeft);if(k){k=B.offsetWidth;B=N.offsetWidth;var x=C?B-k-70:w-70;n="linear-gradient(\n      to top, transparent 0%,\n      transparent "+n+"px,\n      #000 "+n+"px,\n      #000 100%), linear-gradient(\n      to "+((W?"left":"right")+",\n      #000 0px,\n      #000 "+
x+"px,\n      transparent "+(C?B-k:x+70)+"px)");N.style.setProperty("-webkit-mask-image",n);N.style.setProperty("mask-image",n)}else N.style.setProperty("-webkit-mask-image",""),N.style.setProperty("mask-image","");C?W?(A.style.setProperty("left","0"),A.style.setProperty("right","unset")):(A.style.setProperty("left",""),A.style.setProperty("right","0")):W?(A.style.setProperty("left","unset"),A.style.setProperty("right",w+"px")):(A.style.setProperty("left",w+"px"),A.style.setProperty("right","unset"))}};
$8w=function(W,k,C,n,N){var B=_.yE(),A=_.yE(),w=_.yE(),x=s22(W),E=_.f().resolve(_.Sc),a=_.b(PJ(GVX(W))),X=a.next().value,d=a.next().value,V=fS(null);tj(function(){function c(){if(B.value&&A.value&&w.value){var e=B.value;e.scrollHeight-e.offsetHeight>1?(d(!0),n||yOw({isTruncated:!0,isAbsoluteButton:!0,lineHeight:C,contentRef:B,placeholderTruncationTextRef:A,truncationTextRef:w,appDirection:E})):(e=GVX(W),d(e),n||yOw({isTruncated:e,isAbsoluteButton:!1,lineHeight:C,contentRef:B,placeholderTruncationTextRef:A,
truncationTextRef:w,appDirection:E}))}}
var M,p;(M=V.value)==null||(p=M.stop)==null||p.call(M);M=new _.Ox(c,17);c();V.value=M},[W.content,
k,C,E,n,N]);_.Ee(function(){var c=function(){var p,e;(p=V.value)==null||(e=p.fire)==null||e.call(p)};
if(window.ResizeObserver){var M=new ResizeObserver(c);M.observe(B.value);return function(){var p,e;(p=V.value)==null||(e=p.stop)==null||e.call(p);M.disconnect()}}window.addEventListener("resize",c);
return function(){var p,e;(p=V.value)==null||(e=p.stop)==null||e.call(p);window.removeEventListener("resize",c)}});
return{isTruncated:X,displayText:x,contentRef:B,placeholderTruncationTextRef:A,truncationTextRef:w}};
Z9m=function(W){return _.t("button",{"aria-disabled":!0,disabled:!0,class:W.className,el:W.elRef,style:"line-height: "+W.lineHeight+"px;"},_.t(_.Ya,{text:W.text}))};
Rip=function(W){var k=W.text;var C=W.alwaysShowTruncationText;var n=W.truncationText;var N=W.onExpandClick;var B=W.lineHeight===void 0?16:W.lineHeight;var A=W.maxLines===void 0?2:W.maxLines;var w=W.disableTextMask===void 0?!1:W.disableTextMask;var x=W.isOverlay===void 0?!1:W.isOverlay;var E=W.accessibilityLabel===void 0?"":W.accessibilityLabel;var a=W.useMediumText===void 0?!1:W.useMediumText;W=_.Pj(function(){return void(N==null?void 0:N())});
var X=$8w(k,A,B,w,a),d=X.isTruncated;k=X.displayText;var V=X.contentRef,c=X.placeholderTruncationTextRef;X=X.truncationTextRef;var M={};C=_.Hj((M["truncated-text-wiz__absolute-button"]=!w,M["truncated-text-wiz__bottom-button"]=w,M["truncated-text-wiz--hidden"]=!(C||d),M));w={};x=_.Hj((w["truncated-text-wiz"]=!0,w["truncated-text-wiz--overlay"]=x,w["truncated-text-wiz--medium-text"]=a,w));return _.t("truncated-text",{class:x,"on:click":W,style:"line-height: "+B+"px;"},_.t("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:V,style:"max-height: "+A*B+"px;"},_.t(_.Ya,{text:k}),_.t(Z9m,{text:n,lineHeight:B,elRef:c,className:"truncated-text-wiz__inline-button"})),_.t("button",{"aria-label":E,class:C,el:X,style:"line-height: "+B+"px;"},_.t(_.Ya,{text:n})))};
oG2=function(W){return{content:W!=null?W:""}};
q8J=function(W){var k=W.data;var C;W={class:W.className};a:switch(k.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var n="yt-video-attribute-view-model--vertical";break a;default:n="yt-video-attribute-view-model--horizontal"}a:switch(k.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var N="yt-video-attribute-view-model--image-small";break a;default:N="yt-video-attribute-view-model--image-large"}a:switch(k.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var B="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":B="yt-video-attribute-view-model--image-avatar";break a;default:B=""}a:switch(k.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var A="yt-video-attribute-view-model--metadata-header";break a;default:A=""}a:switch(k.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var w="yt-video-attribute-view-model--container-card";break a;default:w=""}var x=_.fi(k.onTap)||_.SH(k.rendererContext)?"yt-video-attribute-view-model--clickable":"";
n=["yt-video-attribute-view-model",n,N,B,A,w,x].join(" ");if(k.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var E="";else N=k.lightColorPalette,B=k.darkColorPalette,A=((E=_.f().resolve(_.qI(_.cj)))==null?0:E())&&B?B:N,E=(E=A==null?void 0:A.section2Color)?_.Xi(E):"";return _.t("yt-video-attribute-view-model",W,_.t("div",{class:n,style:_.WJ({"background-color":E})},_.t(Fow,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(C=_.fi(k.onTap))!=
null?C:_.SH(k.rendererContext),role:"group",forceNewState:!0},k.heroText||k.image?_.t(i9w,{data:k}):null,_.t(TfJ,{data:k,sizeSmall:k.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
uxJ=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(k){k.preventDefault();k.stopPropagation();if(W.overflowMenuOnTap){var C=_.m8({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(C==null?0:C.onclick)C.onclick(k)}}}};
i9w=function(W){W=W.data;var k,C=((k=_.f().resolve(_.qI(_.cj)))==null?0:k())&&W.darkThemeImage?W.darkThemeImage:W.image;k=uxJ(W);return _.t("div",{class:"yt-video-attribute-view-model__hero-section"},C?_.t(_.pi,{data:C,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):W.heroText?_.t("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.t("span",{class:"yt-video-attribute-view-model__hero-text"},W.heroText)):null,W.overflowMenuOnTap?
_.t("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.t(LX,{data:k,iconName:"MORE_VERT"})):null)};
TfJ=function(W){var k=W.data;var C=k.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",n={};W={class:_.Hj("yt-video-attribute-view-model__metadata",(n["yt-video-attribute-view-model--small-font"]=W.sizeSmall,n)),role:"link"};n=_.t("h1",{class:"yt-video-attribute-view-model__title"},k.title);C=k.subtitle?_.t("h4",{class:"yt-video-attribute-view-model__subtitle"},C?_.t(Rip,{text:oG2(k.subtitle),truncationText:oG2(k.subtitleTruncationText),maxLines:2}):_.t("span",null,k.subtitle)):null;if(k.secondarySubtitle){var N=
k.secondarySubtitle;if(N!=null&&N.attachmentRuns){for(var B=[],A=_.b(N.attachmentRuns),w=A.next();!w.done;w=A.next())w=w.value,w.element&&B.push(Object.assign({},w,{element:Object.assign({},w.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));N=Object.assign({},N,{attachmentRuns:B})}N=_.t("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.t(_.Ya,{text:N}))}else N=null;return _.t("div",W,n,C,N,k.buttonViewModel?
U8w(k.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
LC2=function(W){var k={};k=_.Hj("video-summary-content-view-model-wiz",W.className,(k["video-summary-content-view-model-wiz--is-search"]=!!W.isSearch,k));var C=_.z(W.data.likeButtonViewModel,vpP),n=_.z(W.data.dislikeButtonViewModel,eTm),N=a4(function(){var B=[],A,w=(A=W.data)==null?void 0:A.paragraphs;if(w==null||!w.length)return[];for(A=0;A<w.length;A++){var x=_.z(w[A],O9P),E=void 0;A>0&&(E=_.z(w[A-1],O9P));E&&!!E.marker===!!x.marker?B[B.length-1].paragraphs.push(x):B.push({isList:!!x.marker,paragraphs:[x]})}return B},
[W.data]);
return _.t("video-summary-content-view-model",{class:k},N.map(function(B){return B.isList?_.t("ul",{class:"video-summary-content-view-model-wiz__list"},B.paragraphs.map(function(A){return _.t("li",{class:"video-summary-content-view-model-wiz__list-item"},_.t(_.Ya,{text:A.text}))})):B.paragraphs.map(function(A){return _.t("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.t(_.Ya,{text:A.text}))})}),_.Tb(!!C&&!!n,function(){return _.t("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.t("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.t(pzm,{data:C,
disableIconAnimation:!0})),_.t(GO4,{data:n}))}))};
_.jH=function(W,k,C,n,N){n=n===void 0?{}:n;if(!N||Math.random()<5E-4){k=k||null;C=C||null;W=W instanceof Error?W:new _.AM(W);if(W.args)for(var B=_.b(W.args),A=B.next();!A.done;A=B.next())A=A.value,A instanceof Object&&(n=Object.assign({},A,n));n.category="H5 Ads Control Flow";k&&(n.slot=k?"slot:  "+k.slotType:"");C&&(n.layout=C?"layout:  "+C.layoutType:"",n.layoutId=C.layoutId);N&&(n.known_error_aggressively_sampled=!0);W.args=[n];_.zJ(W)}};
_.j2w=function(W,k){_.KY(W,"yt-open-popup-action",[_.oY(k),W])};
rOm=function(W){if(!W)return"";if(H9J[W])return H9J[W];HB||(HB=_.wu("A"));HB.href!==W&&Gi(HB,W);var k=HB.pathname;H9J[W]=k.startsWith("/")?k:"/"+k;return H9J[W]};
gG3=function(){var W=rOm(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var k;return(r7==null?void 0:(k=r7.response)==null?void 0:k.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.WL3=function(){var W=r7==null?void 0:r7.response,k=W==null?void 0:W.endpoint;if(!k)return(W==null?void 0:W.page)==="watch"?"watch":gG3();var C;W=(C=_.z(k==null?void 0:k.commandMetadata,_.Ok))==null?void 0:C.webPageType;C=!1;if(W&&!PJc.includes(W))switch(W){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var n;return((n=_.z(k==null?void 0:k.commandMetadata,_.Ok))==null?0:n.url)&&rOm(_.z(k.commandMetadata,_.Ok).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var N;return(k=(N=_.z(k,_.kZ))==null?void 0:N.browseId)?KCX[k]||"browse":"browse";default:C=!0}if(_.z(k,_.g7)||_.z(k,hi3))return"sponsorship";N=rOm(window.location.href);if(N.startsWith("/experiments"))return"experiments";if(N.startsWith("/create_channel"))return"create_channel";
if(_.z(k,_.pM)&&N.startsWith("/shorts"))return"shorts";if(_.z(k,_.pM)&&N.startsWith("/watch"))return"watch";C&&(k=new _.AM("Unsupported mWeb page type",{pathname:N,webPageType:W}),_.dI(k));return"browse"};
bWw=function(W){var k=W.data;var C=W.inlineMetadata;var n=W.aspectRatio;var N=W.scrimStyle;var B=W.useDefaultStyle;var A=W.className;var w=fS(new kew);W=_.m("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=B?W==="SHORTS_LOCKUP_STYLE_SLIM":k.style==="SHORTS_LOCKUP_STYLE_SLIM";C=C||W||!1;N=N!==void 0?N:1;var x=_.yE(function(p){w.value&&(w.value.hostElement=p,M())});
_.uT(x,{visibilityCallback:function(p){p&&k.onFirstVisible&&_.zj(k.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});A=_.Hj("shortsLockupViewModelHost",A);var E=_.m8({elementsCommand:k.onTap}),a=_.yE();_.AHm(a,_.fi(k.onTap));var X=_.Pj(function(p){if(E==null?0:E.onclick)E.onclick(p);return!1}),d=_.yE(),V=[];
V.push("shortsLockupViewModelHostThumbnailContainer");n===1?V.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):n===2&&V.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");W||V.push("shortsLockupViewModelHostThumbnailContainerRounded");_.m("web_shorts_2_by_3_lockups_study")||_.m("desktop_search_enable_two_by_three_shorts_aspect_ratio")||V.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var c,M=function(){if(w.value){var p;(p=c)==null||
PB(p);p=w.value;var e;p.hostElement&&((e=p.data)==null?0:e.inlinePlayerData)&&(c=yg({mediaRenderer:p,lockupElement:p.hostElement,thumbnailElement:d.value,videoPreviewOpts:CLX}))}};
tj(function(){w.value&&(w.value.data=k,M())},[k]);
return _.t("ytm-shorts-lockup-view-model",{el:x,class:A},_.t("a",{el:a,"on:click":X,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!C,tabindex:C?0:-1},_.t("div",{el:d,class:V.join(" ")},_.Tb(k.thumbnail,function(){return _.t(_.qf,null,_.t(_.pi,{data:k.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),C?_.t(niI,{data:k,
scrimStyle:N,useDefaultStyle:B}):null,N62(k.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),C&&k.menuOnTap?_.t(Y4J,{data:k,inlineMetadata:C}):null,C?null:_.t(B6m,{useDefaultStyle:B,data:k}))};
niI=function(W){var k=W.data;var C=W.scrimStyle;var n=W.useDefaultStyle;var N=_.m("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=n&&_.m("web_hide_primary_text_for_pivot_panel");var B={};n=_.Hj("shortsLockupViewModelHostInlineMetadata",(B.shortsLockupViewModelHostMetadataRounded=!(n?N==="SHORTS_LOCKUP_STYLE_SLIM":k.style==="SHORTS_LOCKUP_STYLE_SLIM"),B.shortsLockupViewModelHostInlineMetadataShortScrim=C===3&&!_.m("enable_shorts_lockup_new_scrim"),
B.shortsLockupViewModelHostInlineMetadataShortScrimNew=C===3&&_.m("enable_shorts_lockup_new_scrim"),B.shortsLockupViewModelHostInlineMetadataMediumScrim=C===2||C===4,B.shortsLockupViewModelHostShowOverPlayer=!0,B));var A,w;N={};return _.t("div",{class:n+" image-overlay-text"},_.t("h3",{class:_.Li("shortsLockupViewModelHostMetadataTitle",(N.shortsLockupViewModelHostMetadataTitleTextShadow=C===4,N)),"aria-label":k.accessibilityText},_.Tb(((A=k.overlayMetadata)==null?void 0:A.primaryText)&&!W,function(){return _.t(_.Ya,
{text:k.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((w=k.overlayMetadata)==null?0:w.secondaryText)?_.t(A_3,{data:k,
scrimStyle:C}):null)};
B6m=function(W){var k=W.data;var C=_.m("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=(W.useDefaultStyle?C==="SHORTS_LOCKUP_STYLE_SLIM":k.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var n=_.m8({elementsCommand:k.onTap});C=_.yE();_.AHm(C,_.fi(k.onTap));var N=_.Pj(function(X){if(n==null?0:n.onclick)n.onclick(X);return!1}),B,A,
w,x,E,a={};
return _.t("div",{class:W+" image-overlay-text","on:click":N},_.t("h3",{class:_.Li("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(a.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((B=k.overlayMetadata)==null?0:(A=B.primaryText)==null?0:A.content),a)),"aria-label":k.accessibilityText},_.t("a",{el:C,"on:click":N,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(w=k.overlayMetadata)==null?void 0:(x=w.primaryText)==
null?void 0:x.content},_.Tb(k.overlayMetadata,function(){return _.t(_.Ya,{text:k.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((E=k.overlayMetadata)==null?0:E.secondaryText)?_.t(A_3,{data:k,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,k.menuOnTap?_.t(Y4J,{data:k,inlineMetadata:!1}):null)};
A_3=function(W){var k=W.data;var C=W.scrimStyle;W=W.className;var n,N={};return _.t("div",{class:_.Li((N.shortsLockupViewModelHostMetadataSubhead=C!==4,N.shortsLockupViewModelHostMetadataSubheadNew=_.m("enable_shorts_lockup_new_scrim"),N.shortsLockupViewModelHostMetadataSubheadTextShadow=C===4,N),W),"aria-hidden":"true"},_.t(_.Ya,{text:(n=k.overlayMetadata)==null?void 0:n.secondaryText,noStyleRuns:!0}))};
Y4J=function(W){var k={};k=_.Hj((k.shortsLockupViewModelHostInlineMetadataMenu=W.inlineMetadata,k.shortsLockupViewModelHostOutsideMetadataMenu=!W.inlineMetadata,k.shortsLockupViewModelHostShowOverPlayer=!0,k));return _.t("div",{class:k},_.t(LX,{data:{style:W.inlineMetadata?"overlay":"mono",accessibilityLabel:W.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(C){C.preventDefault();C.stopPropagation();var n=_.m8({elementsCommand:W.data.menuOnTap,forceNewState:!0});
if(n==null?0:n.onclick)n.onclick(C)}},
iconName:"MORE_VERT"}))};
KX=function(W,k,C,n){return W&&k?W!==C||k!==n?(_.jH(Error("Hh"),void 0,void 0,{"stored-slot":W,"stored-layout":k,"latest-slot":C,"latest-layout":n}),!1):!0:!1};
FLp=function(W,k,C){return W({targetId:k},function(n){return C.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},n,{header:C.continuationItems?C.continuationItems[0]:void 0}):Object.assign({},n,{contents:C.continuationItems?C.continuationItems:[]})})};
wkI=function(W,k,C,n){if(k=k.trackingParams){var N,B=(N=C.getScreenLayer)==null?void 0:N.call(C);C=_.VM(B);N=_.DH(B);if(C&&N){var A=_.Yf(k);_.m("combine_ve_grafts")?W.graftServerVe(k,N,B):_.sr(C,N,A);n==null||n(A)}}};
lQm=function(W){var k;return((k=xmz.get(W))==null?void 0:k.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
aQm=function(W,k){var C={type:k.slotType,controlFlowManagerLayer:tmc.get(k.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k.slotEntryTrigger&&(C.entryTriggerType=k.slotEntryTrigger.triggerType);k.slotPhysicalPosition!==1&&(C.slotPhysicalPosition=k.slotPhysicalPosition);if(W){C.debugData={slotId:k.slotId};if(W=k.slotEntryTrigger)C.debugData.slotEntryTriggerData=Eiw(W);W=k.slotFulfillmentTriggers;C.debugData.fulfillmentTriggerData=[];W=_.b(W);for(var n=W.next();!n.done;n=W.next())C.debugData.fulfillmentTriggerData.push(Eiw(n.value));
k=k.slotExpirationTriggers;C.debugData.expirationTriggerData=[];k=_.b(k);for(W=k.next();!W.done;W=k.next())C.debugData.expirationTriggerData.push(Eiw(W.value))}return C};
Eiw=function(W,k){var C={type:W.triggerType};k!=null&&(C.category=k);W.triggeringSlotId!=null&&(C.triggerSourceData||(C.triggerSourceData={}),C.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(C.triggerSourceData||(C.triggerSourceData={}),C.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return C};
Xk4=function(W,k,C,n){k={opportunityType:k};W&&(n||C)&&(n=_.cD(n||[],function(N){return aQm(W,N)}),k.debugData=Object.assign({},C&&C.length>0?{associatedSlotId:C}:{},n.length>0?{slots:n}:{}));
return k};
fQm=function(W){return hy(W.opportunityAdapterMap).concat(hy(W.triggerAdapterMap)).concat(hy(W.fulfillmentAdapterFactoryMap)).concat(hy(W.slotAdapterFactoryMap)).concat(hy(W.layoutRenderingAdapterFactoryMap))};
hy=function(W){var k=[];W=_.b(W.values());for(var C=W.next();!C.done;C=W.next())C=C.value,C.isAdsControlFlowEventListener&&k.push(C);return k};
kx=function(W){var k=W.slotId,C=W.slotType,n=W.slotPhysicalPosition;return k===void 0?new WG("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):C===void 0?new WG("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):n===void 0?new WG("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:k,slotType:C,slotPhysicalPosition:n,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new dmm}};
mmp=function(W){var k=W.layoutId,C=W.layoutType;return k===void 0?new C6("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):C===void 0?new C6("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:k,layoutType:C,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new dmm,interactionLoggingAdsClientData:{}}};
zzK=function(W){if((W=W.value)&&W.querySelector("img")){var k=W.querySelector("img");k.addEventListener("error",function(){tGI(k.src).then(function(C){(C=_.pL(C).toString())?k.src=C:k.removeAttribute("src")}).catch(function(){k.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
N2=function(W,k){if(k&&(DmJ(k.viewableCommand)||DmJ(k.endOfSessionCommand))){W=W.value;var C=VmI(k==null?void 0:k.viewableCommand);k=VmI(k==null?void 0:k.endOfSessionCommand);if(!n6){var n=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);n6=new J_z((n==null?void 0:n.length)===2?n[1]:null)}c_w(n6,W);IQX(n6,W,C,k)}};
Yx=function(W){n6&&c_w(n6,W.value)};
DmJ=function(W){W=_.fi(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
VmI=function(W){if(!W)return[];var k=[],C,n;((n=(C=_.fi(W))==null?void 0:C.loggingUrls)!=null?n:[]).forEach(function(N){N.baseUrl&&k.push(N.baseUrl)});
return k};
S4J=function(W){return W.shorts.isDesktopSmallWidth};
_.MmJ=function(W){return W.shorts.isWatchWhileMode};
_.BG=function(W){return W.shorts.isFullscreen};
_.b2=function(W){return W.shorts.isShortsPipActive};
pkm=function(W){var k,C;if(W=(k=_.z(W.reelsAdCardButtoned,Qxc))==null?void 0:(C=k.animatedRenderingConfig)==null?void 0:C.easeOutSeconds)return W+"s"};
ez2=function(W,k,C){return _.F(function(n){return n.return(new Promise(function(N){var B=new Image;B.onload=function(){N(new vi3(W,k,C,B.naturalWidth,B.naturalHeight))};
B.src=C.toString()}))})};
sx3=function(W,k){return Math.round(W/1E-5)===Math.round(k/1E-5)};
Gez=function(W,k){return Math.round(W/1E-5)===Math.round(k/1E-5)};
y_3=function(W,k){return W.year===k.year&&W.month===k.month&&W.day===k.day};
$mX=function(W,k){return W.year!==k.year?W.year<k.year:W.month!==k.month?W.month<k.month:W.day<k.day};
Rz2=function(W){return W.day===ZWm(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1}};
oiw=function(){var W=new Date,k={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:k,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:Rz2(k)}};
iWm=function(W){return(new eW(2)).format(new Date(W.year,W.month,W.day))};
T6X=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
q43=function(W,k){W=(W+(Number(k.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;k=T6X(new Date(W));return{date:k,secondsSinceMidnight:Math.floor((W-(new Date(k.year,k.month,k.day)).getTime())/1E3)}};
unp=function(W,k){k=k.months.findIndex(function(C){return C.year===W.year&&C.month===W.month});
return k>=0?k:void 0};
Umw=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(k){return!1}return Umw(W.parentNode)};
Af=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
OWI=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
LLz=function(W,k,C){if(!W)return null;var n=Af(W);if(n&&C)return k=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+k);if(n&&!C)return document.createTextNode("");if(OWI(W))return C=W.alt,W=W.dataset.emojiId,!W&&k&&(k=_.FY(k,C))&&k.isCustomEmoji&&(W=k.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(C);n=W.cloneNode(!1);for(var N=0;N<W.childNodes.length;++N){var B=LLz(W.childNodes[N],k,C);B&&n.appendChild(B)}return n};
wq=function(W){return W?Af(W)?W:wq(W.lastChild):null};
jxm=function(W){return W?Af(W)?W:jxm(W.firstChild):null};
HWI=function(W){if(!W)return null;for(var k=W.previousSibling;k;)if(k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="BR")k=k.previousSibling;else if(k.nodeType===Node.TEXT_NODE&&/\s+/.test(k.textContent))k=k.previousSibling;else break;(k=wq(k))?W=k:W=(W=W.parentNode)?wq(W.previousElementSibling):null;return W};
r_P=function(W){if(!W)return null;for(var k=W.nextSibling;k;)if(k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="BR")k=k.nextSibling;else if(k.nodeType===Node.TEXT_NODE&&/\s+/.test(k.textContent))k=k.nextSibling;else break;return(k=jxm(k))?k:r_P(W.parentNode)};
giI=function(W){var k=_.xx(),C=k.JSC$9112_getStartNode();if(!Umw(C.parentNode))return null;k=k.JSC$9112_getStartOffset();if(C.nodeType===Node.TEXT_NODE){var n=_.vD(C,Af);if(n){if(W&&k===0||!W&&k===C.length)return n}else{if(W&&k===C.length)return!C||C.nodeName==="BR"||C.nextElementSibling&&_.l2(C.nextElementSibling,"display")==="block"?null:jxm(C.nextElementSibling);if(!W&&k===0)return C?wq(C.previousElementSibling):null}}if(C.nodeType===Node.ELEMENT_NODE)if(W){if(0<=k&&k<C.childNodes.length)return jxm(C.childNodes[k])}else if(0<
k&&k<=C.childNodes.length)return wq(C.childNodes[k-1]);return null};
PL3=function(W,k,C){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(C){var n=HWI(W);if(n&&!/^\s+\S/.test(W.wholeText.substr(0,k)))return n}else if((n=r_P(W))&&!/\S\s+/.test(W.wholeText.substr(k,W.wholeText.length)))return n;return W.nodeType===Node.ELEMENT_NODE?C?HWI(W.childNodes[k]):r_P(W.childNodes[k]):PL3(W.parentNode,k,C)};
KLw=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var k="";for(W=W.firstChild;W;W=W.nextSibling)k+=KLw(W);return k;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
tf=function(W,k){return W.year===k.year&&W.month===k.month&&W.day===k.day};
ER=function(W,k){return W.year!==k.year?W.year<k.year:W.month!==k.month?W.month<k.month:W.day<k.day};
hzP=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
Wn2=function(W){var k=YQP;k=k===void 0?YQP:k;k(new Date(W.year,W.month,W.day))};
aZ=function(W){return hzP(new Date(Number(W.seconds)*1E3))};
kaK=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
Cqm=function(W){return W.start!==void 0&&W.end!==void 0};
n5P=function(W){return Cqm(W)?W.start:W};
N5J=function(W){return Cqm(W)?W.end:void 0};
B5m=function(W,k){for(var C=[],n=new Date(W.start.year,W.start.month);n.getFullYear()<W.end.year||n.getFullYear()===W.end.year&&n.getMonth()<=W.end.month;){var N=C,B=N.push,A=n.getFullYear(),w=n.getMonth(),x=W,E=k,a=void 0,X=[],d=Object.freeze({extraCssClass:"invisible"}),V=new Date(A,w),c=hzP(V);V=V.getDay();for(var M=hzP(new Date);c.month===w;){V!==YEP&&a||(a=Array.from({length:7}).fill(d),X.push(a));var p={date:{year:A,month:w,day:c.day},extraCssClass:"",debugClass:""};p.extraCssClass=E(p.date,
c,M,x).trim();a[(V-YEP+7)%7]=p;c=c.day===ZWm(c.year,c.month)?c.month===11?{year:c.year+1,month:0,day:1}:{year:c.year,month:c.month+1,day:1}:{year:c.year,month:c.month,day:c.day+1};V=(V+1)%7}B.call(N,{weeks:X,monthLabel:XY.SHORTMONTHS[w]+" "+A,year:A,month:w,monthLabelExtraCssClass:X[0][2]===d?"shift-down-label":""});n.setMonth(n.getMonth()+1)}return C};
bZ2=function(W,k){k=k.months.findIndex(function(C){return C.year===W.year&&C.month===W.month});
return k>=0?k:void 0};
Fnw=function(W,k){a:{var C=C===void 0?[2,3]:C;C=_.b(C);for(var n=C.next();!n.done;n=C.next()){var N=new Date;if((new AqX(n.value)).parse(k,N,{validate:!0})){N.setHours(0,0,0,0);k=N;break a}}k=null}if(!k)return{isValid:!1,value:void 0};k=hzP(k);C=W.end;return ER(k,W.start)||ER(C,k)?{isValid:!1,value:void 0}:{isValid:!0,value:k}};
E5p=function(W){var k=wEc;k=k===void 0?xAK:k;var C=W.columnsToShow||[],n=lOc(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,k);return C.map(function(N,B){var A=W.columns[N];if(A===void 0)throw Error("Nh");var w=n?n[B]:"";var x=W.getCustomTooltip?W.getCustomTooltip(N,A.headerTooltipParagraphs):A.headerTooltipParagraphs;var E=tUm(W,N);return{type:N,index:B,style:w,classes:E,headerName:A.headerName||"",headerIcon:A.headerIcon,headerTooltipParagraphs:x||[],headerTooltipHelpContext:A.headerTooltipHelpContext,
sortOrders:A.sortOrders||[],selectionState:A.isSelectionCheckbox?W.selectionState:void 0}})};
tUm=function(W,k){var C=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],n=W.columns[k];if(n===void 0)return"";var N=C.includes("DEFAULTS")&&n.cssClass?[n.cssClass]:[];if(C.includes("SORTING")){n.sortOrders&&n.sortOrders.length&&N.push("sortable");if(W.sorting&&W.sorting.columnType===k)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var B="column-sorted";break a;default:B=""}else B="";B&&N.push(B)}C.includes("FLOATING")&&(k=W.columnsToShow.indexOf(k),W.leftFloatingColumns&&k<W.leftFloatingColumns&&
N.push("floating-column"),W.leftFloatingColumns&&k===W.leftFloatingColumns-1&&N.push("last-floating-column"));C.includes("RIGHT_ALIGN")&&n.rightAlignHeader&&N.push("right-align");return N.filter(function(A){return A}).join(" ")};
lOc=function(W,k,C,n){C=C===void 0?0:C;n=n===void 0?xAK:n;if(W){var N=[],B=0;aOX(W,k,n).forEach(function(A,w){var x="min-width:"+A.minWidth+"px;padding-left:"+A.paddingLeft+"px;padding-right:"+A.paddingRight+"px;flex:"+A.flexGrow+" 0 "+A.minWidth+"px;";A.maxWidth!==Infinity&&(x=[x,"max-width:"+A.maxWidth+"px;"].join(""));B>0&&w<C&&(x=[x,"left:"+B+"px;"].join(""));N.push(x);B+=A.minWidth+A.paddingLeft+A.paddingRight});
return N}};
aOX=function(W,k,C){C=C===void 0?xAK:C;return k.map(function(n,N){n=W&&W[n]||{};var B=N===0?C.paddingLeftFirstColumn:C.padding;n.paddingLeft!==void 0&&(B=n.paddingLeft);N=N===k.length-1?C.paddingRightLastColumn:C.padding;n.paddingRight!==void 0&&(N=n.paddingRight);return{paddingLeft:B,paddingRight:N,minWidth:n.minWidth!==void 0?n.minWidth:C.minWidth,maxWidth:n.maxWidth!==void 0?n.maxWidth:C.maxWidth,flexGrow:n.flexGrow!==void 0?n.flexGrow:C.flexGrow}})};
XE4=function(W){var k=W.reduce(function(n,N){var B=N.columnId,A={};N.headerText&&(A.headerName=_.y4(N.headerText));N.rightAlignHeader&&(A.rightAlignHeader=N.rightAlignHeader);var w;if((w=N.headerIcon)==null?0:w.iconType)A.headerIcon=_.Hp(N.headerIcon.iconType);n[B]=A;return n},{}),C=W.filter(function(n){return!n.hideColumn}).map(function(n){return n.columnId});
W=W.filter(function(n){return!!n.dimensions}).reduce(function(n,N){n[N.columnId]=N.dimensions;
return n},{});
return{columns:k,columnsToShow:C,columnDimensions:W}};
_.fOz=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(k){return k.text}).join(""):"":""};
VUm=function(W){var k=W.data;var C=W.onTap;var n=W.isSelected;var N=W.onFocusIn;if(!k)return{};W=dAm(k);n===void 0&&(n=k==null?void 0:k.isSelected);var B;return{text:mAm(k,W),startIcon:(B=k.icon)==null?void 0:B.iconType,state:n?0:2,type:0,onTap:z1I(k,C),accessibilityLabel:DAX(k,W),onFocusIn:function(){return N==null?void 0:N()}}};
mAm=function(W,k){if(!k)return W.text?_.fOz(W.text):void 0};
z1I=function(W,k){return function(C){k==null||k(C,W)}};
dAm=function(W){W=W.style&&W.style.styleType;return!Jqw&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
DAX=function(W,k){if(k){var C,n,N;return(N=(C=W.accessibilityData)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)!=null?N:mAm(W,!1)}};
f6=function(W){return{signalAction:{signal:W}}};
SE2=function(){return _.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?cqw:_.IO2};
MUX=function(W,k){W=W===void 0?"SOFT_RELOAD_PAGE":W;k=k===void 0?49504:k;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Ur(_.w8("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:k}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
Qsm=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ur(_.w8("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:SE2()}};
pEJ=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:SE2()}};
v5X=function(W,k){var C=_.Ur(_.w8("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),n=_.Ur(_.w8("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),N={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ur(_.w8("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};N.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[f6("SOFT_RELOAD_PAGE")]}};return{title:C,bodyText:n,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:N},
style:{value:k!=null?k:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
ssJ=function(W){W=W===void 0?{}:W;return{title:_.Ur(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.Ur(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ur(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[e1J]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.$AI=function(W,k,C,n,N,B,A,w){n=n===void 0?!1:n;N=N===void 0?!1:N;B=B===void 0?0:B;A=A===void 0?-Infinity:A;w=w===void 0?!1:w;var x=[],E=_.Ur(_.w8("SMART_DOWNLOADS",void 0,"Smart downloads"));A=_.Ur(Gap(B,A,W.length));B=void 0;n?(W.length>0?C=yqX(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.m("kevlar_manual_downloads_above"),E,A):w?(B={content:C.localizedOptInBannerTitleText===void 0?"":C.localizedOptInBannerTitleText},C={content:C.localizedPromptMessage===void 0?"":C.localizedPromptMessage},
N={buttonViewModel:{title:_.w8("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.w8("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:_.D$3}]}}}}},
C={alertBannerViewModel:{heading:B,body:C,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:N,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):C={backgroundPromoRenderer:{bodyText:_.Ur(_.w8("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"}}},B=C):N&&(B={content:C.localizedOptInBannerTitleText===
void 0?"":C.localizedOptInBannerTitleText},C={content:C.localizedOptInMessage===void 0?"":C.localizedOptInMessage},N={buttonViewModel:{title:_.w8("TURN_ON",void 0,"Turn on"),accessibilityText:_.w8("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}}}}},B={alertBannerViewModel:{heading:B,body:C,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:N,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});C=_.Ur(_.w8("YOUR_DOWNLOADS",void 0,"Your downloads"));N=void 0;k.length>0?(N=void 0,_.m("kevlar_display_downloads_numbers")&&(N=_.Ur(_.xQ("VIDEO_COUNT",k.length))),N=yqX(k,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,C,N)):n||W.length||(N={backgroundPromoRenderer:{bodyText:_.Ur(_.w8("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}}}});B&&!_.m("kevlar_manual_downloads_above")&&x.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});N&&x.push({richSectionRenderer:{content:N,loggingDirectives:{clientVeSpec:{uiType:51721}}}});B&&_.m("kevlar_manual_downloads_above")&&
x.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(k.length>0||n&&W.length>0)W=x.push,k={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ur(_.w8("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}}}}}},W.call(x,k);return{contents:x}};
_.R1w=function(W){return ZZ3(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.o52=function(W){return ZZ3(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
ZZ3=function(W,k){var C=[];W=yqX(W,k,!0);C.push({richSectionRenderer:{content:W}});return{contents:C}};
yqX=function(W,k,C,n,N){C=C===void 0?!1:C;W={isExpanded:C,contents:dq(W),entitySelectorType:k};n&&(W.title=n);N&&(W.subtitle=N);C||(_.m("kevlar_smart_downloads_show_more_button")?(C={buttonRenderer:{accessibility:{label:_.w8("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Ur(_.w8("SHOW_MORE",void 0,"Show more"))}},W.showMoreButton=C,C={buttonRenderer:{accessibility:{label:_.w8("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Ur(_.w8("SHOW_LESS",void 0,"Show less"))}},W.showLessButton=C):(C={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.w8("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}}}},W.previousButton=C,C=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.w8("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}}}},W.nextButton=C,C={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.w8("VIEW_ALL",void 0,"View all"),accessibilityText:_.w8("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:ql("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},W.menu=C));return{richShelfRenderer:W}};
dq=function(W){var k=[];W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,n7m(C)){var n=k,N=n.push;var B=void 0;if(C==null?0:(B=C.videoEntity)==null?0:B.videoId){B=IY(_.ZF().getState(),C.videoEntity.videoId);var A=_.ZF().getState();var w=_.KB(C.videoEntity.videoId,"mainVideoEntity");A=!!_.Eb(A.entities)[w];A={videoId:C.videoEntity.videoId,title:Or(C.videoEntity.title),shortBylineText:Or(C.channelEntity.title),thumbnail:C.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:A&&_.m("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Guw(C.videoEntity.videoId,B,C.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.w8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};C.videoEntity.lengthSeconds&&(A.thumbnailOverlays=cww(C.videoEntity.lengthSeconds,B));A.isWatched=B>0;_.m("kevlar_modern_downloads_page")&&(A.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:C.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.w8("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},A.badges=void 0);C=A}else C={};N.call(n,{richItemRenderer:{content:{videoRenderer:C},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(C84(C)){n=k;N=n.push;var x=w=B=void 0,E=void 0,a=void 0,X=void 0,d=void 0,V=void 0,c=void 0,M=void 0,p=void 0,e=void 0;A=C.mainPlaylistEntity.playlistId;var u=C==null?void 0:(e=C.mainPlaylistEntity)==null?void 0:(p=e.thumbnailStyleData)==null?void 0:(M=p[0])==null?void 0:(c=M.value)==null?void 0:(V=c.collageThumbnail)==
null?void 0:V.coverThumbnail;if(A&&u){V=ylK(A);!_.m("enable_offline_playlist_page")&&(C==null?0:(d=C.mainPlaylistEntity)==null?0:d.videos)&&(d=C==null?void 0:(X=C.mainPlaylistEntity)==null?void 0:(a=X.videos)==null?void 0:a[0],a=_.r8(d).entityId,a=JSON.parse(a).videoId,a!==void 0&&(X=IY(_.ZF().getState(),a),V=_.uW(a,A,void 0,void 0,X)));a=[];if(C==null?0:(E=C.mainPlaylistEntity)==null?0:(x=E.videos)==null?0:x.length)a=[NhX(),Object.assign({},(w=nDP(C==null?void 0:C.mainPlaylistEntity.videos.length))!=
null?w:{})];C={playlistId:A,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:u}},navigationEndpoint:V,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:a,title:Or(C.mainPlaylistEntity.title),shortBylineText:Or(C==null?void 0:(B=C.channelEntity)==null?void 0:B.title),badges:[{metadataBadgeRenderer:{label:_.w8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.m("kevlar_modern_downloads_page")&&(C.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:iZw,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:A,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.w8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},C.badges=void 0)}else C=void 0;N.call(n,{richItemRenderer:{content:{playlistRenderer:C},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return k};
Gap=function(W,k,C){W=W?T5P(W):"";k!==void 0&&isFinite(k)?k===0?k=_.w8("UPDATING",void 0,"Updating..."):(k=JwX(new Date(k),new Date),k=_.w8("UPDATED_TIME",{relative_time:k},"Updated "+k)):k="";var n="";W&&k&&(n=" \u2022 ");if(C&&_.m("kevlar_display_downloads_numbers")){C=_.xQ("VIDEO_COUNT",C);if(W||k)n=" \u2022 ";return C+n+W+n+k}return W+n+k};
qEw=function(W){return H83(W.entities).length};
_.uQm=function(W,k){var C=HpK(W.responsiveSize),n;W=!((n=W.responsiveMap)==null||!n.some(function(N){return N.containerSize==="CONTAINER_SIZE_NARROW"&&N.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:k,sizing:C,enableFullBleedForSingleCol:!1,isCompactList:C==="COMPACT"&&W}};
UAm=function(W,k){return _.hQ(W.entities,"votingEntity",k)};
OZP=function(W){if(W){var k;return((k=_.f().resolve(_.qI(_.cj)))==null?0:k())?W.darkTheme:W.lightTheme}};
LnX=function(W,k,C){return _.t(_.qf,null,Wa2(C,[[0,function(){return _.t("h2",{class:k},W)}],
[1,function(){return _.t("h3",{class:k},W)}],
[2,function(){return _.t("h4",{class:k},W)}]],function(){return _.t("h2",{class:k},W)}))};
jsw=function(W){var k=["shelf-header-layout-wiz"];W.disableHorizontalPadding&&k.push("shelf-header-layout-wiz--disable-horizontal-padding");W.disableVerticalPadding&&k.push("shelf-header-layout-wiz--disable-vertical-padding");W.useResponsiveLayout&&(k.push("shelf-header-layout-wiz--responsive"),W.forceSmallLayout&&k.push("shelf-header-layout-wiz--narrow"));W.isOverlay&&k.push("shelf-header-layout-wiz--is-overlay");W.onClick&&k.push("shelf-header-layout-wiz--tappable");var C=["shelf-header-layout-wiz__title"];
W.forceSmallLayout&&C.push("shelf-header-layout-wiz__title--small-title");var n=["shelf-header-layout-wiz__leading-image"];W.circularImage&&n.push("shelf-header-layout-wiz__leading-image--circular-image");var N=_.Pj(function(B){var A;(A=W.onClick)==null||A.call(W,B)});
return _.t("yt-shelf-header-layout",{class:k.join(" "),"on:click":N,tabindex:W.onClick?0:void 0},W.leadingIcon?_.t("div",{class:"shelf-header-layout-wiz__leading-icon"},_.t(_.ka,{icon:W.leadingIcon})):W.leadingImage?_.t("div",{class:n.join(" ")},W.leadingImage()):_.t(_.qf,null),_.t("div",{class:"shelf-header-layout-wiz__label-container"},W.superlabel?_.t("div",{class:"shelf-header-layout-wiz__superlabel"},W.superlabel()):_.t(_.qf,null),_.t("div",{class:"shelf-header-layout-wiz__title-row"},LnX(W.title(),
C.join(" "),W.tagLevel),_.Tb(W.detail,function(){return _.t("div",{class:"shelf-header-layout-wiz__detail"},W.detail())})),W.sublabel?_.t("div",{class:"shelf-header-layout-wiz__sublabel"},W.sublabel()):_.t(_.qf,null)),W.trailingActions?_.t("div",{class:"shelf-header-layout-wiz__trailing-actions"},W.trailingActions()):_.t(_.qf,null))};
HZm=function(W){var k=_.z(W==null?void 0:W.avatar,_.Gn),C,n=(C=W==null?void 0:W.image)!=null?C:_.uX(W==null?void 0:W.themedImage);return _.t(_.qf,null,_.Tb(n,function(){return _.t(_.pi,{data:n,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.Tb(k,function(){return _.t(_.m4,{data:k})}))};
Pqm=function(W){var k=_.z(W.bottomBadge,rqw),C=k&&W.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.t(_.qf,null,_.Tb(k,function(){return k&&_.t(g5m,{data:k,class:C})}),_.Tb(W.sublabel,function(){return _.t(_.Ya,{text:W.sublabel})}))};
KnI=function(W){var k=_.z(W.topBadge,rqw),C=k&&W.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.t(_.qf,null,_.Tb(k,function(){return k&&_.t(g5m,{data:k,class:C})}),_.Tb(W.superlabel,function(){return _.t(_.Ya,{text:W.superlabel})}))};
WYm=function(W){var k=W.data;var C=W.disableHorizontalPadding;var n=W.disableVerticalPadding;var N=W.forceSmallLayout;var B=W.useResponsiveLayout;W=W.isOverlay;var A=k.sublabel||k.bottomBadge,w=k.superlabel||k.topBadge,x=_.Mj(k.rendererContext);C={title:function(){return _.t(_.Ya,{text:k.headline})},
sublabel:A&&function(){return Pqm(k)},
superlabel:w&&function(){return KnI(k)},
leadingImage:k.leadingAccessory&&function(){return HZm(k.leadingAccessory)},
trailingActions:k.trailingActions&&function(){return _.t(_.qf,null,h1w(k.trailingActions))},
disableHorizontalPadding:C,disableVerticalPadding:n,forceSmallLayout:N,useResponsiveLayout:B,isOverlay:W,onClick:x?function(E){var a=_.SH(k.rendererContext);a&&_.dy(a,{form:{element:E.target,event:E}})}:void 0};
n=(n=OZP(k==null?void 0:k.backgroundColor))?"background-color: "+_.Xi(n)+";":void 0;return _.t("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:n},_.t(jsw,Object.assign({},C)))};
k22=function(W,k){if(W.simpleText)return Object.assign({},W,{simpleText:VI(W.simpleText,k)});if(!W.runs)return W;for(var C=Object.assign({},W,{runs:[]}),n=0,N=_.b(W.runs),B=N.next();!B.done;B=N.next())if(B=B.value,B.text)if(n+B.text.length<=k)C.runs.push(B),n+=B.text.length;else return C.runs.push(Object.assign({},B,{text:VI(B.text,k-n)})),C;return W};
Czw=function(W,k){return _.hQ(W.entities,"chipBarStateEntity",k)};
n92=function(W,k){return _.hQ(W.entities,"chipEntity",k)};
YIX=function(W,k,C,n){return function(){var N=N_m.has(W.displayType)&&W.selected,B=N&&W.deselectCommand?W.deselectCommand:W.tapCommand;!B||N&&n||_.zj(B,{form:{element:k==null?void 0:k.value}});C==null||C()}};
B_J=function(W,k){return{triggeringElement:W,onDwellTriggeredFn:function(){var C={triggeringElement:W,loadVideoPreviewEventData:k},n=document.querySelector(".video-preview");n&&n.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:C}))},
onDwellEndFn:function(){var C=document.querySelector(".video-preview");C&&C.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
bbw=function(W,k){var C=_.f().resolve(_.qI(vFc)),n=function(){var N=k();return C&&N?B_J(W.value,N):null};
_.XM(function(){var N=n();C&&N&&Promise.resolve().then(function(){C.registerElement(N)});
_.fy(function(){C&&N&&Promise.resolve().then(function(){C.unregisterElement(N)})})})};
FYJ=function(W){var k=W.dataset.resizeObserverId;if(k)return k;k=""+ARc++;return W.dataset.resizeObserverId=k};
wuw=function(W,k){var C=FYJ(W);zr.has(C)||zr.set(C,new Set);zr.get(C).add(k);DN.has(C)&&k(Object.assign({},{target:W},DN.get(C)))};
xvp=function(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=FYJ(k.target),n=Object.assign({},{target:k.target},DN.get(C));if(n!=null&&n.contentRect?n.contentRect.width!==k.contentRect.width||n.contentRect.height!==k.contentRect.height:1)for(DN.set(C,{borderBoxSize:k.borderBoxSize,contentBoxSize:k.contentBoxSize,contentRect:k.contentRect,devicePixelContentBoxSize:k.devicePixelContentBoxSize}),C=_.b(zr.get(C)||[]),n=C.next();!n.done;n=C.next())n=n.value,n(k)}};
tsc=function(){return Vr?Vr:Vr=new lWI(xvp)};
E94=function(W,k){var C=FYJ(W);zr.has(C)&&(zr.get(C).delete(k),zr.get(C).size===0&&(zr.delete(C),DN.delete(C),Vr.unobserve(W),delete W.dataset.resizeObserverId));zr.size===0&&Vr&&(Vr.disconnect(),Vr=void 0)};
XuP=function(W,k){var C=_.f().resolve(qP);return aW3.map(function(n){return C.observe(W,k,n)})};
fWc=function(W){var k=_.f().resolve(qP);W.forEach(function(C){k.unobserveByKey(C)})};
zE4=function(W){var k=Object.assign({},dvX,{canHaveZeroSize:!1}),C=_.b(Ixz()),n=C.next().value,N=C.next().value,B=function(A){var w=A.contentRect.height;if((A=A.contentRect.width)||w||k.canHaveZeroSize)n.width()===A&&n.height()===w||N(n,{height:w,width:A})};
_.Ee(function(){var A=W instanceof HTMLElement?W:W.value,w=mvP(B,k.throttleMs),x=[];k.useVisibilityObserver&&(x=XuP(A,function(E,a){requestAnimationFrame(function(){a==="visible"?(wuw(A,w),tsc().observe(A)):E94(A,w)})}));
x.length||(wuw(A,w),tsc().observe(A));_.fy(function(){x.length&&(fWc(x),x.length=0);E94(A,w)})});
return n};
VsJ=function(W){var k=W.data;var C=W.callback;var n=W.enableSingleChipSelection;var N=W.disableChipsScrollAnimation;var B=_.yE();W={};W=_.b(PJ(k.autoselectedChipIndex!=null?(W[k.autoselectedChipIndex]=!0,W):{}));var A=W.next().value,w=W.next().value,x=function(){var L=B.value;return L==null||L.scrollLeft-1<=0},E=function(){var L=B.value;
return L==null?!1:L.scrollLeft+1>=(L==null?NaN:L.scrollWidth)-(L==null?NaN:L.clientWidth)};
W=_.b(PJ(x()));var a=W.next().value,X=W.next().value;W=_.b(PJ(E()));var d=W.next().value,V=W.next().value;W=k.isHorizontallyScrollable;var c=function(L){B.value!=null&&(_.DE("HTML_DIR")==="rtl"&&(L=-L),B.value.scrollBy({left:L,behavior:N?"instant":"smooth"}))},M=function(){c(-320)},p=function(){c(320)},e=_.Pj(function(){var L=x(),Bw=E();
L!==a&&X(L);Bw!==d&&V(Bw)}),u={},h={};
return _.t("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(k==null?void 0:k.title)&&_.t("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},k.title),_.t("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.Tb(k.previousButton!=null,function(){var L={};return _.t("div",{class:_.Hj("ytChipsShelfViewModelLeftArrowContainer",(L.ytChipsShelfViewModelLeftArrowContainerIsHidden=a,L))},DvK(k.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:M}}))}),_.t("div",
{el:B,
"on:scroll":e,class:_.Hj("ytChipsShelfViewModelChipsScrollContainer",(u.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!W,u))},_.t("div",{class:_.Hj("ytChipsShelfViewModelChipsContainer",(h.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!W,h.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!W&&!1,h))},(k.contents||[]).map(function(L,Bw){return _.t("div",{class:"ytChipsShelfViewModelChipWrapper"},DvK(L,{chipViewModel:{callback:function(P,xz){if(n){var Sp=
{};w((Sp[Bw]=xz,Sp))}else Sp={},w(Object.assign({},A,(Sp[Bw]=xz,Sp)));C==null||C(P,xz,Bw)},
disableDeselection:n,selected:!!A[Bw]}}))}))),_.Tb(k.nextButton!=null,function(){var L={};
return _.t("div",{class:_.Hj("ytChipsShelfViewModelRightArrowContainer",(L.ytChipsShelfViewModelRightArrowContainerIsHidden=d,L))},DvK(k.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:p}}))})))};
cR4=function(W,k,C,n,N){W=k?W.switchOffCommand:W.switchOnCommand;if(n&&N)JRX(W,C,N);else{var B,A;(B=_.m8({elementsCommand:W}))==null||(A=B.onclick)==null||A.call(B,C)}};
JRX=function(W,k,C){W=_.m8({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){C(!1)},
onServerError:function(){C(!1)}}}});
if(W==null?0:W.onclick)W.onclick(k),C(!0)};
SIw=function(W){if(W)return _.z(W,IWX)};
MsJ=function(W){W=W.selectElementClass;var k={};W=_.Hj("checkbox-shape-wiz__checkbox",W,(k["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!W,k));return _.t("div",{class:W,"aria-hidden":"true"},_.t(_.ka,{icon:"BOX_EMPTY"}),_.t(_.ka,{icon:"BOX_CHECK",active:!0}))};
QNJ=function(W){var k=W.name;var C=W.onChange;var n=W.onClick;var N=W.checked===void 0?!1:W.checked;var B=W.labelRenderable;var A=W.hasLeadingLabel;var w=W.labelClass;var x=W.isCompact;var E=W.selectElementClass;var a=W.disableHorizontalPadding;W="checkbox"+_.Jf(_.cG);var X=_.yE(),d=_.Pj(function(M){n==null||n(M);return!1}),V=_.Pj(function(M){X.value.checked=N;
C==null||C(M);return!1}),c={};
w=_.Hj("checkbox-shape-wiz",w,(c["checkbox-shape-wiz--compact"]=!!x,c["checkbox-shape-wiz--disable-horizontal-padding"]=!!a,c));return _.t("checkbox-shape",null,_.t("label",{class:w},_.t("input",{el:X,class:"checkbox-shape-wiz__input",id:W,checked:N,name:k,type:"checkbox","on:change":V,"on:click":d}),_.Tb(!A,function(){return MsJ({isLeading:!0,selectElementClass:E})}),_.Tb(B,function(){return _.t("div",{class:"checkbox-shape-wiz__label"},B==null?void 0:B())}),_.Tb(A,function(){return MsJ({isLeading:!1,
selectElementClass:E})})))};
puP=function(W){var k=W.useCheckIcon===void 0?!1:W.useCheckIcon;var C=W.selectElementClass;W=k?"CHECK":"CIRCLE";var n="",N=_.m("radio_shape_filled_icon_manual_setting_killswitch");N&&(n=k?"CHECK":"CIRCLE_FILLED");var B={};C=_.Hj("radio-shape-wiz__radio",C,(B["radio-shape-wiz__radio--check-icon"]=!!k,B["radio-shape-wiz__radio--radio-default-style"]=!C,B));return N?_.t("div",{class:C,"aria-hidden":"true"},_.t(_.ka,{icon:W}),_.t(_.ka,{icon:n,active:!k})):_.t("div",{class:C,"aria-hidden":"true"},_.t(_.ka,
{icon:W}),_.t(_.ka,{icon:W,active:!k}))};
v9z=function(W){function k(){var L;((L=_.f().resolve(_.qI(_.Ay)))==null?0:L.isKeyBoardInUse())&&p.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function C(){p.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var n=W.name;var N=W.onChange;var B=W.onClick;var A=W.checked===void 0?!1:W.checked;var w=W.labelRenderable;var x=W.useCheckIcon;var E=W.hasLeadingLabel;var a=W.labelClass;var X=W.isCompact;var d=W.selectElementClass;var V=W.ariaLabel;var c=W.className;W=Xc(function(){return"radio"+_.Jf(_.cG)});
var M=_.yE(),p=_.yE(),e=_.Pj(function(L){M.value.checked=A;N==null||N(L);return!1}),u=_.Pj(function(L){B==null||B(L);
return!1}),h=["radio-shape-wiz"];
c&&h.push(c);c={};a=_.Hj("radio-shape-wiz__label-container",a,(c["radio-shape-wiz--compact"]=!!X,c));wA(function(){document.activeElement===M.value&&k()});
_.Ee(function(){var L=M.value;L.addEventListener("focusin",k);L.addEventListener("focusout",C);return function(){L.removeEventListener("focusin",k);L.removeEventListener("focusout",C)}});
return _.t("radio-shape",{class:h.join(" ")},_.t("input",{el:M,class:"radio-shape-wiz__input",id:W,"prop:checked":A,name:n,type:"radio","on:change":e,"on:click":u,"aria-label":V}),_.t("label",{class:a,for:W,el:p},_.Tb(!E,function(){return puP({checked:A,useCheckIcon:x,isLeading:!0,selectElementClass:d})}),_.Tb(w,function(){return _.t("div",{class:"radio-shape-wiz__label",
"aria-hidden":V?"true":"false"},w==null?void 0:w())}),_.Tb(E,function(){return puP({checked:A,
useCheckIcon:x,isLeading:!1,selectElementClass:d})})))};
sNw=function(W){var k=W.data;var C=W.isLeading;var n=W.hideSelectionTextChevron;if(C&&(k.leadingImage||k.leadingAccessory)||!C&&(k.trailingImage||k.trailingButton||k.trailingButtons||k.selectionText)){var N=_.Hj("yt-list-item-view-model-wiz__button-container");W={};var B=_.Hj("yt-list-item-view-model-wiz__image-container",(W["yt-list-item-view-model-wiz__leading"]=C,W["yt-list-item-view-model-wiz__trailing"]=!C,W)),A=C?k.leadingImage:k.trailingImage,w=_.Hj("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");W={};var x=_.Hj("yt-list-item-view-model-wiz__accessory",(W["yt-list-item-view-model-wiz__leading"]=C,W["yt-list-item-view-model-wiz__trailing"]=!C,W)),E=!!k.selectionText;a:switch(k.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":W="expand_more";break a;default:W="chevron_right"}var a=W;return function(){var X;return _.t(_.qf,null,_.Tb(A,function(){return _.t("div",{class:B,"aria-hidden":"true"},_.t(_.pi,{data:A,alt:"",
preserveWidth:!0,preserveHeight:!0,className:w}))}),_.Tb(C&&k.leadingAccessory,function(){return _.t("div",{class:B},eEX(k.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:w}}))}),_.Tb(!C&&k.trailingButton,function(){return _.t("div",{class:N},eEX(k.trailingButton,{buttonViewModel:{className:x}}))}),_.Tb(!C&&((X=k.trailingButtons)==null?void 0:X.buttons),function(){var d;
return _.t("div",{class:N},eEX((d=k.trailingButtons)==null?void 0:d.buttons,{buttonViewModel:{className:x},accountLinkButtonViewModel:{className:x},switchButtonViewModel:{className:x},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:x}}))}),_.Tb(!C&&E,function(){return _.t(_.qf,null,_.t(_.Ya,{text:k.selectionText,
className:_.Hj("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Tb(!n,function(){return _.t(_.ka,{icon:a,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
G2X=function(W){return W.title||W.subtitle?function(){return _.t("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.t("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Tb(W.title,function(){return _.t(_.Ya,{text:W.title,className:"yt-list-item-view-model-wiz__title"})})),_.Tb(W.subtitle,function(){return _.t(_.Ya,{text:W.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.t(_.qf,null)}};
yRX=function(W){function k(){var G4;((G4=_.f().resolve(_.qI(_.Ay)))==null?0:G4.isKeyBoardInUse())&&Bw.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function C(){Bw.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var n=W.data;var N=W.isMenuItem;var B=W.isCompact;var A=W.onTap;var w=W.trailingAccessory;var x=W.hideSelectionTextChevron;var E=W.disabled;var a=W.inPopup;var X=W.disableHorizontalPadding;var d=W.isOverlay;W=AFw(function(G4){a:if((n==null?0:n.entitySelectorType)&&(n==null?0:n.entityKey))switch(n.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":G4=_.CoK(G4,n.entityKey);G4=G4==null?void 0:G4.value;var nA=!1;G4==="CAPTIONS_UNAVAILABLE"&&(nA=!0,G4=
"");G4=Object.assign({},!!G4&&{selectionText:{content:G4}},{isSelected:!!G4},!!G4&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:nA});break a;default:G4={}}else G4={};return G4});
var V=_.m("enable_web_shorts_captions_language_command")?Object.assign({},n,W):n;W=!(V.isSelected===void 0||!V.selectionStyle||V.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var c=(_.Mj(V.rendererContext)||A)&&!W,M=_.Mj(V.rendererContext)||W;E=!!V.isDisabled||!!E;var p={};d=_.Hj("yt-list-item-view-model-wiz",(p["yt-list-item-view-model-wiz--is-overlay"]=!!d,p));p={};var e=_.Hj("yt-list-item-view-model-wiz__label",(p["yt-list-item-view-model-wiz__container"]=!W,p["yt-list-item-view-model-wiz__container--disabled"]=
E,p["yt-list-item-view-model-wiz__container--has-subtitle"]=!!V.subtitle,p["yt-list-item-view-model-wiz__container--compact"]=!!B,p["yt-list-item-view-model-wiz__container--tappable"]=c,p["yt-list-item-view-model-wiz__container--in-popup"]=!!a,p));E={};E=_.Hj("yt-list-item-view-model-wiz__container",(E["yt-list-item-view-model-wiz__container--tappable"]=M,E["yt-list-item-view-model-wiz__container--compact"]=!!B,E["yt-list-item-view-model-wiz__container--in-popup"]=!!a,E["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!X,E));p=V.leadingImage||V.leadingAccessory;var u=_.Hj("yt-list-item-view-model-wiz__image-container",p?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),h=_.m("apply_button_role_to_list_item");a=_.yE();var L=_.yE(),Bw=h?L:a,P=function(){var G4,nA,Xs;return _.t(_.qf,null,(G4=sNw({data:V,isLeading:!0,hideSelectionTextChevron:!!x}))==null?void 0:G4(),(nA=G2X(V))==null?void 0:nA(),w?_.t("div",{class:"yt-list-item-view-model-wiz__trailing"},w):(Xs=sNw({data:V,isLeading:!1,
hideSelectionTextChevron:!!x}))==null?void 0:Xs())},xz=function(){return h?_.t("div",{class:e,
el:L,role:M||c?"button":void 0,tabindex:A||c?0:void 0,"on:keydown":lw,"on:click":vw},P()):_.t("div",{class:e,el:L},P())},Sp={labelRenderable:xz,
isCompact:B,checked:V.isSelected,hasLeadingLabel:!!p,labelClass:E,selectElementClass:u,disableHorizontalPadding:!!X};_.Qg(a,V.rendererContext);var vw=_.Pj(function(G4){return void(A==null?void 0:A(G4))}),lw=_.cB();
_.Ee(function(){c&&(Bw.value.addEventListener("focusin",k),Bw.value.addEventListener("focusout",C));return function(){Bw.value&&c&&(Bw.value.removeEventListener("focusin",k),Bw.value.removeEventListener("focusout",C))}});
B=_.Pj(function(){return!1});
return _.t("yt-list-item-view-model",{el:a,class:d,role:N?"menuitem":"listitem",tabindex:h?void 0:A||c?0:void 0,"on:keydown":h?B:lw,"on:click":h?B:vw},_.Tb(W,function(){return Wa2(V.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.t(QNJ,Object.assign({},Sp))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.t(v9z,Object.assign({},Sp))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.t(v9z,Object.assign({},Sp,{useCheckIcon:!0}))}]],function(){return xz()})},function(){return xz()}))};
ibp=function(W,k,C){if(k)return[$vX];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[IZ];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return C?[IZ]:[Zbm,IZ];case "TRANSFER_STATE_PAUSED_BY_USER":return[REK,IZ];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[o9P,IZ];default:return[$vX]}};
T_J=function(W,k,C,n){return ibp(W,k,n).map(function(N){var B=N.text,A=N.iconType,w=N.videoAction;N=N.playlistAction;B=B?{content:B}:void 0;A=A&&{sources:[{clientResource:{imageName:A}}]};var x=(0,_.JU.unsafeClone)(C);if(x){var E=_.z(x,_.Kn),a=_.z(x,_.hW);E&&w?E.action=w:a&&N&&(a.action=N)}return{title:B,leadingImage:A,rendererContext:x&&{commandContext:{onTap:{innertubeCommand:x}}}}})};
qI2=function(W){W=_.SH(W.rendererContext);var k;return(k=_.z(W,_.hW))==null?void 0:k.playlistId};
uIm=function(W){var k;return(k=W.listItems)==null?void 0:k.some(function(C){var n;return _.Mj((n=_.z(C,_.BB))==null?void 0:n.rendererContext)})};
ObX=function(W){var k=W.data;var C=W.isCompact;var n=W.hideSelectionTextChevron;var N=W.inPopup;W=W.isOverlay;var B=uIm(k)&&N,A={};return _.t("yt-list-view-model",{class:_.Hj("yt-list-view-model-wiz",(A["yt-list-view-model-wiz--kaios-spat-nav"]=Jqw&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",A)),role:B?"menu":"list"},Uvz(k.listItems,{listItemViewModel:{isMenuItem:B,isCompact:C,hideSelectionTextChevron:n,inPopup:N,isOverlay:W},
downloadListItemViewModel:{isMenuItem:B,isCompact:C,inPopup:N}}))};
Sy=function(W){var k=_.f().resolve(_.qI(_.cj));return k!=null&&k()?W.darkThemeColorPalette:W.lightThemeColorPalette};
Qr=function(W){return{primaryTextColor:M2(W,0),secondaryTextColor:M2(W,1),optionColor:M2(W,2),backgroundColor:M2(W,3),videoBackgroundColor:M2(W,4)}};
M2=function(W,k){if(W){switch(k){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.a8(W)}};
LYz=function(W){return W?_.Xi(W):""};
jNP=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Hbm=function(W,k){var C;return"linear-gradient(to bottom, "+((C=k==null?void 0:k.map(function(n){var N=W?n.darkThemeColor:n.lightThemeColor;return N?_.Xi(N)+" "+((n==null?void 0:n.startLocation)||0)*100+"%":"transparent"}))==null?void 0:C.join(", "))+")"};
rRK=function(W){var k=W.className;var C=W.data;var n=W.isOverlay;var N=W.maxLinesOverride;var B=W.useMediumText;W=_.yE();var A=C.description,w=C.alwaysShowTruncationText,x=C.truncationText,E=C.maxLines,a,X=!((a=_.z(C.rendererContext,ehX))==null||!a.onTap),d,V,c=(V=(d=_.z(C.rendererContext,_.vB))==null?void 0:d.label)!=null?V:"";a=_.b(PJ(!1));var M=a.next().value,p=a.next().value;_.Qg(W,C.rendererContext);a=_.Pj(function(){C.expandOnTap&&p(!M);return!1});
d={};return _.t("yt-description-preview-view-model",{el:W,class:_.Hj("yt-description-preview-view-model-wiz",k,(d["yt-description-preview-view-model-wiz--clickable"]=X,d["yt-description-preview-view-model-wiz--is-overlay"]=n,d)),"on:click":a},_.Tb(A,function(){var e={};return M?_.t("div",{class:_.Hj("yt-description-preview-view-model-wiz__description",(e["yt-description-preview-view-model-wiz__description--medium-text"]=B,e))},_.t(_.Ya,{text:A})):_.t(Rip,{text:A,alwaysShowTruncationText:w,truncationText:x,
maxLines:N!=null?N:E,isOverlay:n,accessibilityLabel:c,useMediumText:B})}))};
KYw=function(W,k,C,n,N){var B=!W.metadata;var A=k?_.z(W.heroImage,g9K):_.z(W.animatedImage||W.image,g9K);if(!A)return{size:0};W=A.style;var w=A.layoutMode;A=x8P(wUc(A));if(k)k=Pzm(C,W,w,A,N);else a:if(B)k=C===1?{size:48}:{size:72};else switch(C){case 1:k={size:72};break a;case 2:k={size:120};break a;default:k=n<4?{size:120}:{size:160}}return k};
Pzm=function(W,k,C,n,N){if(!((n==null?0:n.height)&&(n==null?0:n.width)))return{size:0};var B=n.width;n=n.height;if(N)return k==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&B>n?{size:312/AOc}:k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(C!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||k!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&k!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&k!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(k==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||n===B)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||n>B)switch(W){case 1:case 3:return{size:240*b9z};default:return{size:360*b9z}}switch(W){case 1:case 2:return{size:1/AOc*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.hEm=function(W){if(!("matchMedia"in window))return _.pS(Error("Oh")),function(){return!1};
var k=window.matchMedia(W);W=_.b(_.kw(k.matches,void 0,"jLJc8e"));var C=W.next().value,n=W.next().value,N=function(B){n(B.matches)};
k.addEventListener?(k.addEventListener("change",N),_.fy(function(){k.removeEventListener("change",N)})):k.addListener&&(k.addListener(N),_.fy(function(){k.removeListener(N)}));
return C};
WMw=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
kH3=function(){var W=_.m("web_enable_sink_page_header_view_model"),k=W?_.kw:PJ;if(!("matchMedia"in window))return _.pS(Error("Oh")),0;var C=Xc(function(){return window.matchMedia("(max-width: 527.9px)")}),n=Xc(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),N=Xc(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),B=Xc(function(){return window.matchMedia("(min-width: 1024px)")}),A=_.b(k(C.matches)),w=A.next().value,x=A.next().value;
A=_.b(k(n.matches));var E=A.next().value,a=A.next().value;A=_.b(k(N.matches));var X=A.next().value,d=A.next().value;k=_.b(k(B.matches));var V=k.next().value,c=k.next().value,M=Xc(function(){return function(h){x(h.matches)}}),p=Xc(function(){return function(h){a(h.matches)}}),e=Xc(function(){return function(h){d(h.matches)}}),u=Xc(function(){return function(h){c(h.matches)}});
_.Ee(function(){C.addEventListener?(C.addEventListener("change",M),n.addEventListener("change",p),N.addEventListener("change",e),B.addEventListener("change",u)):C.addListener&&(C.addListener(M),n.addListener(p),N.addListener(e),B.addListener(u));var h=function(){C.removeEventListener?(C.removeEventListener("change",M),n.removeEventListener("change",p),N.removeEventListener("change",e),B.removeEventListener("change",u)):C.removeListener&&(C.removeListener(M),n.removeListener(p),N.removeListener(e),
B.removeListener(u))};
if(W)_.fy(h);else return h});
return W?function(){return w()?1:E()?2:X()?3:V()?4:0}:w?1:E?2:X?3:V?4:0};
CnX=function(W){var k=0;W=_.b([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var C=W.next();!C.done;C=W.next())C.value&&k++;return k};
NMp=function(W,k,C){var n=W.image,N=_.z(n,nhp),B=N==null?void 0:N.avatar,A=_.z(B,_.Gn);if(n&&B&&A){switch(k){case 1:A.avatarImageSize="AVATAR_SIZE_XL";break;case 2:A.avatarImageSize="AVATAR_SIZE_XXL";break;default:C<4?A.avatarImageSize="AVATAR_SIZE_XXL":A.avatarImageSize="AVATAR_SIZE_XXXL"}_.m("web_enable_sink_page_header_view_model")&&(_.l6(B,_.Gn,Object.assign({},A)),N.avatar=Object.assign({},B),_.l6(n,nhp,Object.assign({},N)),W.image=Object.assign({},n))}};
YWJ=function(W){return W===1||W===2?1:0};
BMw=function(W,k){return W?_.t("div",{class:"page-header-view-model-wiz__scroll-container"},k()):k()};
AmI=function(W){var k=W.data;var C=W.noPadding;var n=W.enableBanner;var N=W.cinematicContainerTopbarOffset;var B=W.allowCinematicContainerOverflow;var A=W.displayAsSidebar;var w=W.displayAsPanel;W=CnX(k);var x=!!k.heroImage,E=!!k.image||!!k.animatedImage,a=!!k.background,X=A||w?1:kH3(),d=X===1,V=X===2,c=d||V,M=X===4,p=KYw(k,x,X,W,A),e={};C=_.Hj((e["page-header-view-model-wiz"]=!0,e["page-header-view-model-wiz--no-padding"]=!!C,e["page-header-view-model-wiz--small-top-padding"]=d&&!k.actions||V&&!(E||
x),e["page-header-view-model-wiz--small-bottom-padding"]=c&&!k.actions,e["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!B,e["page-header-view-model-wiz--display-as-sidebar"]=A,e["page-header-view-model-wiz--display-as-panel"]=w,e));B={};var u=_.Hj((B["page-header-view-model-wiz__page-header-headline"]=!0,B["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=p.allowFullWidth,B)),h=c&&!p.allowFullWidth;w=(B=d&&(x||E)&&W>0)&&w;V={};w=(V["page-header-view-model-wiz__page-header-title"]=
!0,V["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!B,V["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=B&&!w,V["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=w,V["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=a,V);B={};B=(B["page-header-view-model-wiz__page-header-headline-image"]=!0,B["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
x&&c,B);var L;V={};var Bw=(V["page-header-view-model-wiz__page-header-banner-container"]=n,V["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=n&&((L=_.z(k.banner,_.bDJ))==null?void 0:L.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",V);L={};L=(L["page-header-view-model-wiz__page-header-content-metadata"]=!0,L["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=a,L);V={};V=(V["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
V["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!k.metadata||c,V["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!c,V);e={};e=(e["page-header-view-model-wiz__page-header-attribution"]=!0,e["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=a,e);var P={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:a,
maxLinesOverride:d?void 0:1,useMediumText:M},dynamicTextViewModel:{className:_.Hj(w)},contentPreviewImageViewModel:{className:_.Hj(B),imageSizeConfig:p},contentMetadataViewModel:{layout:d?1:0,className:_.Hj(L),isOverlay:a,useMediumText:M},flexibleActionsViewModel:{layout:YWJ(X),className:_.Hj(V)},attributionViewModel:{className:_.Hj(e),useMediumText:M},decoratedAvatarViewModel:{className:_.Hj(B)},cinematicContainerViewModel:{topbarOffset:N},flexibleContainer:{isOverlay:a}};E&&NMp(k,X,W);return _.t("yt-page-header-view-model",
{class:C},_.Tb(a,function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-background"},p6(k.background,P))}),BMw(!!A,function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-content"},_.Tb(n&&(k==null?void 0:k.banner),function(){return _.t("div",{class:_.Hj(Bw)},p6(k==null?void 0:k.banner,P))}),_.t("div",{class:u},_.Tb(E,function(){return p6((k==null?void 0:k.animatedImage)||(k==null?void 0:k.image),P)}),_.Tb(x&&!h,function(){return p6(k==null?void 0:k.heroImage,
P)}),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tb(x&&h,function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},p6(k==null?void 0:k.heroImage,P))}),_.Tb(k==null?void 0:k.title,function(){return p6(k==null?void 0:k.title,P)}),_.Tb(k.metadata,function(){return p6(k.metadata,P)}),_.Tb(k.description&&!d,function(){return p6(k.description,P)}),_.Tb(k.attribution&&!c,function(){return p6(k.attribution,P)}),_.Tb(k.actions&&
!c,function(){return p6(k.actions,P)}))),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tb(k.description&&d,function(){return p6(k.description,P)}),_.Tb(k.attribution&&c,function(){return p6(k.attribution,P)}),_.Tb(k.actions&&c,function(){return p6(k.actions,P)})),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tb(k.bottomMetadataFlexibleContainer,function(){return p6(k.bottomMetadataFlexibleContainer,P)})))}))};
wcJ=function(W){var k,C=((k=_.f().resolve(_.qI(_.cj)))==null?0:k())&&W.data.darkThemeImage?W.data.darkThemeImage:W.data.image;k=_.t("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.t("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},C?_.t(_.pi,{data:C,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),FM2(W.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));C=_.t(_.Ya,{text:W.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var n=W.data;if(n.bodyText){var N=[];n=_.b(n.bodyText);for(var B=n.next();!B.done;B=n.next())N.push(_.t(_.Ya,{text:B.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else N=_.t(_.qf,null);return _.t("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},k,C,N,FM2(W.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.t(_.Ya,{text:W.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.t(_.Ya,{text:W.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
lSK=function(W){W=(new x0J).parse(W);return(new CY).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(k){var C=k.split(":").map(Number),n=0,N=0;if(C.length===3)C=_.b(C),n=C.next().value,N=C.next().value,C=C.next().value;else if(C.length===2)C=_.b(C),N=C.next().value,C=C.next().value;else if(C.length===1)C=_.b(C).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(n*3600+N*60+C)+'" role="button">'+k+"</span>"})};
tJm=function(W){W=_.b(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var k=W.next(),C={};!k.done;C={clickHandler$jscomp$4:void 0},k=W.next()){k=k.value;C.clickHandler$jscomp$4=function(N){N=Number(N.target.getAttribute("data-time"));if(isNaN(N))throw Error("Qh");var B=document.querySelector("video");B&&(B.currentTime=N)};
var n=function(N){return function(B){B.key!=="Enter"&&B.key!=="Space"||(0,N.clickHandler$jscomp$4)(B)}}(C);
k.setAttribute("tabindex","0");k.removeEventListener("click",C.clickHandler$jscomp$4);k.removeEventListener("keydown",n);k.addEventListener("click",C.clickHandler$jscomp$4);k.addEventListener("keydown",n)}};
Ehc=function(){return _.t("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.t(vG,{percentWidth:100}),_.t(vG,{animationDelay:200}),_.t(vG,{animationDelay:400}),_.t(vG,{animationDelay:600}),_.t(vG,{animationDelay:800,percentWidth:60}),_.t("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.t(vG,{percentWidth:100}),_.t(vG,{animationDelay:200}),_.t(vG,{animationDelay:400}),_.t(vG,{animationDelay:600,percentWidth:50}))};
vG=function(W){return _.t("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.t("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
aSc=function(){var W=_.b(_.kw(function(){return""},void 0,"v2wS5e")),k=W.next().value;
return[function(){return k()()},
W.next().value]};
fSX=function(W){W=W===void 0?{}:W;return{title:_.Ur(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Ur(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ur(_.w8("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:_.Ur(_.w8("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:[Xcc]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
d04=function(W,k){W=W?T5P(W):"";k!==void 0&&isFinite(k)?k===0?k=_.w8("UPDATING",void 0,"Updating..."):(k=JwX(new Date(k),new Date),k=_.w8("UPDATED_TIME",{relative_time:k},"Updated "+k)):k="";var C="";W&&k&&(C=" \u2022 ");return _.Ur(W+C+k)};
D03=function(W,k,C,n,N,B){k=k===void 0?0:k;var A=m0c[k],w=A.title,x=A.iconType,E=A.topButtonRenderer,a=A.sectionClientVE;A=A.videoClientVE;var X;if(k!==1||W.length){C=[];W=_.b(W);for(n=W.next();!n.done;n=W.next()){var d=n.value;if(n7m(d))C.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:d.videoEntity.videoId,title:Or(d.videoEntity.title),shortBylineText:Or(d.channelEntity.title),thumbnail:d.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:d.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.w8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:A}}}}}});else if(C84(d)){n=C;var V=n.push;var c=void 0,M=void 0,p=void 0,e=void 0,u=void 0,h=void 0,L=void 0,Bw=void 0,P=d.mainPlaylistEntity.playlistId,xz=d==null?void 0:(Bw=d.mainPlaylistEntity)==null?void 0:(L=Bw.thumbnailStyleData)==null?void 0:(h=L[0])==null?void 0:(u=h.value)==null?void 0:(e=u.collageThumbnail)==null?void 0:e.coverThumbnail;e=ylK(P);if(!_.m("enable_offline_playlist_page")&&
(d==null?0:(p=d.mainPlaylistEntity)==null?0:p.videos)){b:{p=d==null?void 0:(M=d.mainPlaylistEntity)==null?void 0:M.videos;M=_.ZF().getState().entities;if(p!=null&&p.length&&M)for(p=_.b(p),u=p.next();!u.done;u=p.next())if(u=_.r8(u.value).entityId,(u=JSON.parse(u).videoId)&&LBp(M,u)==="TRANSFER_STATE_COMPLETE"){M=u;break b}M=""}M!==void 0&&(e=IY(_.ZF().getState(),M),e=_.uW(M,P,void 0,void 0,e))}M=ZTp(_.w8("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ylK(P));d=P&&xz&&M?{playlistId:P,navigationEndpoint:e,
viewPlaylistText:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:xz}},title:Or(d.mainPlaylistEntity.title),shortBylineText:Or(d==null?void 0:(c=d.channelEntity)==null?void 0:c.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:zgz,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:P,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.w8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:A}}}:
void 0;V.call(n,{gridPlaylistRenderer:d})}}A={gridRenderer:{items:C}};k===1&&(X=d04(N,B))}else if(n){var Sp=_.Ur((V=C==null?void 0:C.localizedPromptMessage)!=null?V:"");A={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ur(_.w8("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.D$3}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ur(_.w8("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};X=d04(N,B)}else Sp=_.Ur(_.w8("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
A={};return{contents:[{shelfRenderer:{title:w,titleAnnotation:X,icon:{iconType:x},subtitle:Sp,content:A,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:E}]}}}}],loggingDirectives:{clientVeSpec:{uiType:a}}}};
VJX=function(W,k,C,n,N,B,A,w){C=C===void 0?{}:C;n=n===void 0?!1:n;N=N===void 0?!1:N;B=B===void 0?!1:B;A=A===void 0?0:A;w=w===void 0?-Infinity:w;if(!k.length&&!W.length&&!n)return N?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:ssJ(C)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Ur(_.w8("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 x=[];W.length&&x.push(D03(W,0));n?x.push(D03(k,1,C,B,A,w)):N&&x.push({contents:[{statementBannerRenderer:fSX(C)}]});(n&&k.length||W.length)&&x.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ur(_.w8("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 x.map(function(E){return{itemSectionRenderer:E}})};
ey=function(W,k){if(typeof W!=="object")return null;W=_.b(Object.entries(W));for(var C=W.next();!C.done;C=W.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;if(C===k)return C;if(n=ey(n,k))return C+"."+n}return null};
sR=function(W){var k=W.content;return(W=W.styleRuns)&&k?{runs:W.map(function(C){var n={text:k.slice(C.startIndex,C.startIndex+C.length)};C.fontColor&&(n.textColor=C.fontColor);return n})}:{simpleText:k}};
ISz=function(W,k,C,n){var N=Jmw;n&&(W.quantity=n);if(!W.quantity||!W.maxQuantity)return{};n=W.minusButton;var B=W.plusButton,A,w,x,E;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(a){N(W,a)},
minusLabel:(A=_.z(n,cm4))==null?void 0:A.label,minimumReachedLabel:(w=_.z(n,cm4))==null?void 0:w.limitReachedLabel,plusLabel:(x=_.z(B,cm4))==null?void 0:x.label,maximumReachedLabel:(E=_.z(B,cm4))==null?void 0:E.limitReachedLabel,disabled:k,onRemoveCommand:C}};
Jmw=function(W,k){var C=W.quantityIncrementerEntityKey;if(C){var n={};n.quantity=k;_.Q3(_.d7("quantityIncrementerEntity",C,n));W.onChangeCommand&&_.zj(W.onChangeCommand)}};
SWm=function(W){return _.m("kevlar_comments_clone_data_killswitch")?W:_.JU.unsafeClone(W)};
pc3=function(W,k){(W=MJX(W))&&(k?Q0m.push({command:W,sourceData:{},commandContext:void 0}):_.f().resolve(_.uI).resolveCommand(W))};
MJX=function(W){return _.z(W,_.XZ)};
vh4=function(){var W=window.performance.timeOrigin+window.performance.now(),k=(new _.Gr).setSeconds(W/1E9);return _.ZA(k,2,_.gx(W%1E9),0)};
yr=function(W,k){var C=_.z(_.z(W,_.XZ),egX);C&&(k&&(C.serializedAdditionalMetadata=_.zC(k)),pc3(W,!0))};
s03=function(W){switch(W){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"}};
GHI=function(){return!!_.DE("ID_TOKEN")};
ZDc=function(W){return W instanceof Error&&W.cause instanceof ymX&&W.cause.rpcErrorCode!==void 0?!$04.includes(W.cause.rpcErrorCode):!0};
oh4=function(){return _.$n(Rgp,{authuser:""+(_.DE("SESSION_INDEX")||0)})};
$x=function(W,k,C,n){C=C===void 0?"MINI_APP_SDK_API_UNSPECIFIED":C;n=n===void 0?"":n;var N=new _.AM;C={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:n,sdkApi:C};W instanceof Error&&(N.message=W.message,N.name=W.name,W.cause instanceof ymX&&W.cause.rpcErrorCode!==void 0&&(C.rpcErrorCode=W.cause.rpcErrorCode));var B;(B=k.onError)==null||B.call(k,{loggingError:N,metadata:C})};
TMJ=function(W,k,C,n){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new ZN(k,C,n);default:return new iDm(k,C,n)}};
qWp=function(W){switch(W){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"}};
uUX=function(W){switch(W){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"}};
U0w=function(W){switch(W){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"}};
ODw=function(){return Math.floor(Math.random()*4)+1};
LM2=function(W,k,C,n){W=_.b(Object.entries(W));for(var N=W.next(),B={};!N.done;B={message$jscomp$954:void 0},N=W.next()){var A=_.b(N.value);N=A.next().value;A=A.next().value;B.message$jscomp$954=A;k.push(setTimeout(function(w){return function(){n(!1);C(w.message$jscomp$954.text)}}(B),B.message$jscomp$954.delayMs));
Number(N)>0&&k.push(setTimeout(function(){n(!0)},B.message$jscomp$954.delayMs-400))}};
j0w=function(W,k){var C=C===void 0?uW3:C;_.m("mweb_fix_monitor_visibility_after_render")?W&&FZ(function(){LyK(W,k,C)}):FZ(function(){LyK(W,k,C)})};
PnX=function(W){HDm||(HDm=rmc(new _.My(1,void 0,void 0,ghw),0));var k=HDm.format(Math.floor(W));k=_.SW==="be"||_.SW==="bg"||_.SW==="es"||_.SW==="et"||_.SW==="hu"||_.SW==="ka"||_.SW==="lv"||_.SW==="pl"||_.SW==="pt-PT"||_.SW==="sq"?k.replace(new RegExp("^(\\d)"+ghw.GROUP_SEP.replace(".","\\.")+"(\\d+("+ghw.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):k;return W>=1E3&&W<=9999&&k[1]==="."&&(_.SW==="sl"||_.SW==="it")?k.replace(".",""):k};
KM2=function(W,k){xf("ytd-button-renderer",{data:W,className:k?k.className:"",overrides:k==null?void 0:k.buttonOverrides},so)};
k9K=function(W,k,C,n){if(W)return n=n||W.likeStatus,k?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:C},defaultText:n==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:n==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:hgm(W,"LIKE"),defaultServiceEndpoint:WUw(W,"LIKE"),toggledServiceEndpoint:WUw(W,"INDIFFERENT"),defaultTooltip:_.y4(W.likeCountTooltipText),toggledTooltip:_.y4(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:C},defaultText:n==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:n==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:hgm(W,"DISLIKE"),defaultServiceEndpoint:WUw(W,"DISLIKE"),toggledServiceEndpoint:WUw(W,"INDIFFERENT"),defaultTooltip:_.y4(W.dislikeCountTooltipText),
toggledTooltip:_.y4(W.dislikeCountTooltipText)}};
hgm=function(W,k){if(k==="LIKE")return W.likeCommand;if(k==="DISLIKE")return W.dislikeNavigationEndpoint};
WUw=function(W,k){var C;return(C=W.serviceEndpoints)==null?void 0:C.find(function(n){var N;return((N=_.z(n,_.RZ))==null?void 0:N.status)===k})};
Cxc=function(W,k){k=k===void 0?{}:k;if(W){var C=!!k.activeState,n=k.iconSize,N=k.className,B=k["aria-hidden$"],A=k["aria-label$"],w=k.role;k=k.style$+";width: "+((k.width||n)+"px;height: ")+((k.height||n)+"px;color: ")+(k.color+";");W={icon:W};C!==void 0&&(W.active=C);n!==void 0&&(W.size=n);k!==void 0&&(W.style=k);N!==void 0&&(W.className=N);B!==void 0&&(W.ariaHidden=B);A!==void 0&&(W.ariaLabel=A);w!==void 0&&(W.role=w);xf("yt-icon",W,so)}};
_.YZX=function(W,k,C){return window.spf&&!_.m("web_disable_spfjs_client")?nPp(W,k,C):Nb4(W,k)};
nPp=function(W,k,C){var n=null,N=(new _.Wx(function(B,A){var w={};if(k){w.method=k.method;var x=k.postParams||{};oQz(W,k)&&(x[_.DE("XSRF_FIELD_NAME")]=_.DE("XSRF_TOKEN"));w.postData=_.W4(x);k.type&&(w.type=k.type);x=k.headers}w.headers=szm(W,x);_.m("debug_forward_web_query_parameters")&&(W=_.ZBP(W,window.location.search));w.experimental_headers=w.headers;w.onError=function(E){E.err&&E.xhr&&(E.err.params={url:E.xhr.responseURL,response:E.xhr.responseText.substr(0,64)});A(E.err)};
w.onPartDone=function(E){C&&C.call(null,E.part)};
w.onDone=function(E){var a=Bbm(E.response,"xsrf_token");o4(window.location.href,W)&&a&&_.z3("XSRF_TOKEN",a);if(a=Bbm(E.response,"service_worker_killswitch"))_.z3("SERVICE_WORKER_KILLSWITCH",a),RPK();B(E.response)};
n=spf.request(W,w)})).then(b2K);
N.thenCatch(function(B){var A=B instanceof _.ve,w=B&&B.hasOwnProperty("params")&&B.params.response?B.params.response:"";B instanceof Error&&(w?A?VHw(B):w===')]}\'\n{"reload":"now"}'?VHw(B):(A$X(B,W,w),FUP(B,w)?_.zJ(B):_.dI(B)):VHw(B));n&&n.abort()});
return N};
b2K=function(W){if(W.type==="multipart"){var k=W.timing;W=W.parts.reduce(function(C,n){Object.assign(C,n);return C},{});
W.timing=W.timing||{};Object.assign(W.timing,k);W.type="reduced"}return W};
Nb4=function(W,k){k=k===void 0?{}:k;var C=null,n=new _.Wx(function(N,B){k.onFinish=function(A){if(A.readyState===XMLHttpRequest.DONE)if(A.status===200){if(A.responseType!=="json"){var w=A.response;w.substring(0,5)===")]}'\n"&&(w=w.substring(5));try{var x=JSON.parse(w)}catch(E){x=E}}else x=A.response;x instanceof Error?B(x):(w=Bbm(x,"xsrf_token"),o4(window.location.href,W)&&w&&_.z3("XSRF_TOKEN",w),A=A.responseURL,window.performance&&window.performance.getEntriesByName?(w=window.performance.getEntriesByName(A).pop())?
A={responseStart:(0,_.oX)()-(w.responseEnd-w.responseStart)}:(Math.random()<.01&&(w=Error("bi"),w.params=A,_.zJ(w)),A={responseStart:-1}):A={responseStart:0},x.timing=x.timing||{},Object.assign(x.timing,A),N(x))}else B(Error("ai`"+A.status))};
(C=_.hj(W,k))||B(Error("ai`"+C.status))});
n.thenCatch(function(N){N instanceof Error&&(A$X(N,W),FUP(N)&&(N.level="WARNING"))});
_.m("cancel_pending_navs")&&n.thenCatch(function(){C.abort()});
return n};
Bbm=function(W,k){var C=W[k],n=W.parts;W.type==="multipart"&&n&&(C=(W=n.find(function(N){return k in N}))&&W[k]);
return C};
A$X=function(W,k,C){var n=W.message||"";k={original:n,url:k};if(C)if(n=n.match(/position:?\s*(\d+)/)){n=n&&Number(n[1])?Number(n[1]):0;var N=Math.max(n-25,0);k.position=n;k.response=C.substring(N,n+25)}else k.response=C.substring(0,50);_.Dx(W,k);try{W.message="JSON parse error"}catch(B){}};
FUP=function(W,k){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&k)for(var C=k.length,n=!1,N=0;N<C;N++)if(n&&k[N]==="\\")N++;else if(k[N]==='"')n=!n;else if(k[N]==="<"&&!n){W=!0;break}return W};
wQ3=function(){return document.documentElement.hasAttribute("dark")};
_.x53=function(W,k){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.I4(Error("ci`"+W));else{var C=_.f().resolve(_.qI(_.yF));if(C&&(C=C.getCurrentPage())&&C.getServiceTrackingParams&&(C=C.getServiceTrackingParams()))for(var n=0,N;N=C[n++];)if(N.service===W){if(W=N.params)for(C=0;n=W[C++];)k[n.key]=n.value;break}}};
_.lt4=function(W){var k=_.Zf();k&&(k=k.getPlayer())&&(k.pauseVideo(),W.playback_id=k.getVideoData().cpn,W.eid=k.getVideoData().eventId,Object.assign(W,k.getFeedbackProductData()))};
t4c=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.DE("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.DE("SESSION_INDEX")&&(W.authuser=String(_.DE("SESSION_INDEX")));_.m("enable_pageid_for_feedback")&&_.DE("DELEGATED_SESSION_ID")&&(W.pageId=String(_.DE("DELEGATED_SESSION_ID")));return W};
_.oZ=function(W){_.m("enable_ypc_spinners")&&_.KY(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.i2=function(W){_.m("enable_ypc_spinners")&&_.KY(W,"yt-close-popup-action",["yt-loading-renderer"])};
EPJ=function(W){return new Promise(function(k,C){_.dy({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(n,N){N||C("ChallengeService did not return a response.");var B;k({challengeCompleted:(B=N.verified)!=null?B:!1})},
onServerError:function(n,N){C(N)}}})})};
atI=function(W,k,C,n){k({recaptchaResponse:n}).then(function(N){N.challengeCompleted?_.Yg()?(C(3),_.f().resolve(_.uI).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):C(2):C(4)},function(){C(4)})};
XQw=function(W,k,C){_.ML("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.DE("HL"),function(){var n;(n=window.grecaptcha)==null||n.ready(function(){var N=window.grecaptcha;N?(C(N.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:atI.bind(null,W,EPJ,k)})),k(1)):k(4)})})};
ftw=function(W,k){return function(){switch(k()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.Tr=function(){if(!d52){var W=document.querySelector("#player.skeleton");W&&(_.xL(W),d52=!0)}};
_.zLw=function(){return m5P=o$p()};
J$p=function(){return _.F(function(W){return D5p!==void 0?W.return():_.l(W,V4X(),0)})};
V4X=function(){return _.F(function(W){if(W.nextAddress==1)return _.l(W,TL2(),2);m5P=W.yieldResult;D5p=_.aM.addLowPriorityJob(V4X,5E3);_.ab(W)})};
pQP=function(W){var k=k===void 0?c$I:k;var C,n,N=(C=W.responseContext)==null?void 0:(n=C.mainAppWebResponseContext)==null?void 0:n.trackingParam;if(!N){k.increment("MISSING");var B,A,w,x,E,a;_.zJ(new _.AM("282054944_a",{xPx:!!((B=W.responseContext)==null?0:(A=B.mainAppWebResponseContext)==null?0:A.loggedOut),pOK:((w=W.responseContext)==null?void 0:w.mainAppWebResponseContext)===void 0,fLU:W.responseContext===void 0,iT0:(x=W.playabilityStatus)==null?void 0:x.contextParams,xBl:(((E=W.streamingData)==
null?void 0:E.formats)||[]).length>0,zIK:(((a=W.streamingData)==null?void 0:a.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}C="";try{C=ItX(N)}catch(V){return k.increment("C_ERROR"),_.dI(V),2}try{var X=_.SZ2(C);var d=M4m(X)}catch(V){return k.increment("P_ERROR"),_.dI(V),2}d=_.HD(d,Qnm,1,_.rP());N=[];d=_.b(d);for(X=d.next();!X.done;X=d.next())n=X.value,X=n.getPath(),C=(0,_.JU.getValueByKeys)(W,X.split(".")),C=String(C===void 0||C===null?"":C),n=n.getValue()||"",B=/[+\-\/_]/g,
C.replace(B,"")!==n.replace(B,"")&&(k.increment("MISMATCH"),_.m("ab_mis_log_err")&&(C=new _.AM("282054944_p",{yub:X,g:String(C),e:String(n)}),_.dI(C)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(X)||(X.match(/enforcementMessageViewModel/i)?N.push(3):N.push(2)));if(N.length>0)return Math.max.apply(Math,_.J8(N));k.increment("SUCCESS");return 1};
snJ=function(W){var k=new q2;if(W.interpreterJavascript){var C=_.ErK(W.interpreterJavascript);C=HL2(C).toString();var n=new vPP;_.fU(n,6,C);_.B6(k,1,n,c8)}else W.interpreterUrl&&(C=_.XE(W.interpreterUrl),C=_.Ez(C).toString(),n=new _.eLm,_.fU(n,4,C),_.B6(k,2,n,c8));W.interpreterHash&&_.u2(k,3,W.interpreterHash,c8);W.program&&_.u2(k,4,W.program,c8);W.globalName&&_.u2(k,5,W.globalName,c8);W.clientExperimentsStateBlob&&_.u2(k,7,W.clientExperimentsStateBlob,c8);return k};
UR=function(W){var k={};W=_.b(W.split("&"));for(var C=W.next();!C.done;C=W.next())C=C.value.split("="),C.length===2&&(k[C[0]]=C[1]);return k};
G92=function(W){return Number(W.t)||7200};
mI4=function(){if(_.m("bg_st_hr"))return"havuokmhhs-0";var W,k=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(k)};
y$P=function(){return new Promise(function(W){var k=window.top;k.ntpevasrs!==void 0?W(new OR(k.ntpevasrs)):(k.ntpqfbel===void 0&&(k.ntpqfbel=[]),k.ntpqfbel.push(function(C){W(new OR(C))}))})};
$53=function(W){var k=W.vpA.bind(W);_.$g("yt.aba.att",k);W=W.lAX.bind(W);_.$g("yt.aba.att2",W)};
RLI=function(W){switch(_.KS(W.input)){case _.RY(Z22):var k={};return k.encryptedVideoId=W.innerTubeRequest.externalVideoId,k}return{}};
i2m=function(W){switch(_.KS(W.input)){case _.RY(Z22):if(_.m("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.RY(L6):if(_.m("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.RY(oPP):var k,C;if(_.m("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((C=_.z((k=W.config)==null?void 0:k.command,
Slc))==null?0:C.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.qZI=function(W){var k;if(W.playlistVideoRenderer&&((k=W.playlistVideoRenderer)==null?0:k.engagementBar))return TbX(W.playlistVideoRenderer.engagementBar);if(_.z(W,jy)){var C;if(W=(C=_.z(W,jy))==null?void 0:C.engagementBar)return TbX(W)}return""};
TbX=function(W){if(!W)return"";W=_.z(W,_.utz);if(W==null||!W.actions)return"";W=_.b(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.z(W.value,_.U5w);var k=void 0;if((k=W)==null||!k.itemId)break;return W.itemId}return""};
_.O2I=function(W){var k;if(W.playlistVideoRenderer&&((k=W.playlistVideoRenderer)==null?0:k.videoId))return W.playlistVideoRenderer.videoId;if(_.z(W,jy)){var C,n;if(W=(C=_.z(W,jy))==null?void 0:(n=C.playlistItemData)==null?void 0:n.videoId)return W}return""};
_.LU3=function(W){var k;if(W.playlistVideoRenderer&&((k=W.playlistVideoRenderer)==null?0:k.voteCount))return W.playlistVideoRenderer.voteCount;if(_.z(W,jy)){var C,n;if(W=(C=_.z(W,jy))==null?void 0:(n=C.playlistItemData)==null?void 0:n.voteCount)return W}return 0};
_.HG=function(W,k){return _.hQ(W.entities,"flowStateEntity",k)};
H23=function(W,k,C,n){var N=void 0;W=_.b(W[k.iconName]||[]);for(var B=W.next();!B.done;B=W.next()){B=B.value;var A=k.iconSize;var w=k.iconStyle;A=!A||A===B[2];var x=jn3[B[0]];n&&n!==B[1]||!A||w&&w!==x?w=!1:N?(w=jn3[B[0]],w=!!k.iconStyle||w==="youtube_outline",A=N.version<=B[1],w=(!!k.iconSize||B[2]===24)&&w&&A):w=!0;w&&(N={name:k.iconName,style:jn3[B[0]],size:B[2],version:B[1],allowMirroring:!!B[3],url:C(k.iconName,B)})}return N};
r$w=function(W,k,C,n){return W+(""+jn3[C[0]]+((n===void 0?0:n)?"_experimental":"")+"/"+k+"/v"+C[1]+"/")+(C[2]+"px.svg")};
rq=function(W){return _.m("web_bookmark_playlist_save_icon")?"bookmark":W};
gPw=function(W,k){return r$w("https://fonts.gstatic.com/s/i/",W,k)};
Pxm=function(W,k){return r$w("https://fonts.gstatic.com/s/i/",W,k,!0)};
KUJ=function(W,k){return r$w("https://www.gstatic.com/youtube/img/icons/web/",W,k)};
hLw=function(W){var k=W.enabled;var C=W.itemPlaybackModel;var n=W.thumbnailElRef;var N=W.containerElRef;var B=W.options;var A;_.XM(function(){var w=N==null?void 0:N.value;var x,E=(x=n())==null?void 0:x.value;x=C();var a=B();if(k&&x&&w&&E&&(a==null?0:a.thumbnail)){var X,d;w={mediaRenderer:{data:x,hostElement:w},lockupElement:w,thumbnailElement:E,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.fi((X=x.inlinePlayerData)==null?void 0:X.onVisible),navigationEndpoint:_.fi((d=x.inlinePlayerData)==
null?void 0:d.onSelect),thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays||[],accessibilityText:a.accessibilityText||""},thumbnailSize:a.thumbnailSize,enableRounding:a.enableRounding}}}else w=void 0;if(X=w){var V;(V=A)==null||PB(V);A=yg(X)}});
_.fy(function(){var w;(w=A)==null||PB(w)})};
Wqw=function(W){W=atob(W);for(var k=[],C=0;C<W.length;C++)k.push(W.charCodeAt(C));return new Blob([new Uint8Array(k)],{type:"image/png"})};
CCc=function(W,k,C,n){n=n===void 0?"INSERTION_POSITION_UNSPECIFIED":n;return W({targetId:k},function(N){var B,A=(B=N.contents)!=null?B:[];B=C!=null?C:[];var w=kEK(A);switch(n){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},N,{contents:[].concat(_.J8(A.slice(0,w)),_.J8(B),_.J8(A.slice(w+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},N,{contents:[].concat(_.J8(B),_.J8(A))});case "INSERTION_POSITION_LAST":return Object.assign({},N,{contents:[].concat(_.J8(A),_.J8(B))});
default:return N}})};
Nrm=function(W,k,C,n,N){N=N===void 0?"RELATIVE_INSERTION_POSITION_AFTER":N;return W({targetId:k},function(B){var A,w=(A=B.contents)!=null?A:[];A=nE2(w,C);if(A<0)return B;A=N==="RELATIVE_INSERTION_POSITION_BEFORE"?A:A+1;return Object.assign({},B,{contents:[].concat(_.J8(w.slice(0,A)),_.J8(n),_.J8(w.slice(A)))})})};
kEK=function(W){var k=W.findIndex(function(C){return _.z(C,_.K6)});
return k>=0?k:W.length};
nE2=function(W,k){return W.map(function(C){return _.z(C,_.YBX)}).findIndex(function(C){return(C==null?void 0:C.targetId)===k})};
bwJ=function(W,k,C){return W({targetId:k},function(n){var N,B=(N=n.contents)!=null?N:[];return Object.assign({},n,{contents:Brm(B,C)})})};
Brm=function(W,k){return W.filter(function(C){var n=k.includes;a:{C=_.b(Object.values(C));for(var N=C.next();!N.done;N=C.next())if((N=N.value)&&N.targetId){C=N.targetId;break a}C=""}return!n.call(k,C||"")})};
_.A1X=function(W,k){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:k,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Fqc=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
wt4=function(W){var k=Fqc(W);if(k==null?0:k.length)return k;W.loadModule("captions");return Fqc(W)};
xz3=function(W,k,C){if(W.getVideoData){var n,N=(n=wt4(W))==null?void 0:n.find(function(B){return B.languageCode===C});
n=_.KB("/youtube/app/player_caption_language_entity_key","stringEntity",2);k.dispatch(_.Nj("stringEntity",n,{key:n,value:(N==null?void 0:N.displayName)||""}));N?W.setOption("captions","track",N):(W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{}))}};
lG2=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
tKc=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
EEw=function(W){var k=tKc(W);if(k==null?0:k.length)return k;W.loadModule("captions");return tKc(W)};
aGX=function(W){var k=W.getOption("captions","track");if(k)return k;W.loadModule("captions");return W.getOption("captions","track")};
Xtp=function(W){var k=EEw(W);if(k!=null&&k.length){var C=aGX(W);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.rK({listItemViewModel:{title:{content:_.w8("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(C==null?0:C.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.J8(k.map(function(n){return{listItemViewModel:{title:{content:n.displayName},
isSelected:n.languageCode===(C==null?void 0:C.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:n.languageCode}}]}}}}}}}})))}}}}}}}}};
zfK=function(W){return new Promise(function(k,C){if(W===void 0)_.dI(Error("Di"),"ERROR"),C(Error("Di"));else{C=new _.fGm;var n=_.dzK();C=C.init();var N=_.mz4(_.DE("YPC_MB_URL"),!0);Promise.all([C,N]).then(function(){var B=payments.business.integration.ClientTokenFactory.createClientToken(W,n);k(B)})}})};
J1w=function(W,k,C,n,N,B,A){var w=_.ME();C=C.replace(/-/g,"+").replace(/_/g,"/");var x=_.tQ().get("hl"),E=_.hf(_.pO),a=k==null?void 0:k.element;a&&_.oZ(a);DzX(k,!0);_.VK3(E,C,w.resolve,function(){a&&_.i2(a)},function(X){a&&_.i2(a);
w.reject(X)},x,n?function(X){n&&_.Sr(W,n,{backend_analytics:X})}:void 0,w.resolve,N,B,A);
return w.promise};
DzX=function(W,k){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=k)};
c1J=function(){var W=_.w8("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Ur(W),actionButton:{buttonRenderer:pEJ()}}},popupType:"TOAST"}};
IG2=function(){var W=_.w8("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Ur(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
SBz=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
Wq=function(W,k,C,n){var N;return _.F(function(B){if(B.nextAddress==1)return _.F0(B,2),_.l(B,W,4);if(B.nextAddress!=2)return(N=_.xS(k.getState().entities).length>0)?B.return({title:_.Ur(_.w8("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Ur(_.w8("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Qsm()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
B.return(v5X(C,n));_.EF(B);return B.return(v5X(C,n))})};
MKP=function(W,k){return k?k==="PPSV"||rTP(W,k):!1};
Ql2=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
Cs=function(W){var k;return _.F(function(C){return C.nextAddress==1?_.l(C,ptz(W,"service:topbar:fallback"),2):(k=C.yieldResult)&&_.kN(k)?C.return(Ql2(_.kN(k))):C.return()})};
vEm=function(W){var k;return _.F(function(C){return C.nextAddress==1?_.l(C,ptz(W,"service:downloads_settings:fallback"),2):(k=C.yieldResult)&&_.kN(k)?C.return(k):C.return()})};
ptz=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return W?_.l(n,W.get(k),2):n.return();C=n.yieldResult;return!C||!_.kN(C)||!isNaN(Number(C.data.expireTimestampMs))&&C.isExpired()?n.return():n.return(C)})};
efK=function(W){var k=_.f().resolve(ns).getState().entities;return W.playlistId?MKP(k,W.playlistId):!1};
slz=function(W,k){var C;if(k==null?0:(C=k.requestTemplate)==null?0:C.panelId)W.panelId=k.requestTemplate.panelId;var n;if(k==null?0:(n=k.requestTemplate)==null?0:n.params)W.params=k.requestTemplate.params};
y1m=function(){if(GEz)return GEz();var W=!_.m("idb_response_store_auth_killswitch"),k={};GEz=RX("yt-it-response-store",{objectStores:(k.ResponseStore={addedAtVersion:1},k),shared:!W,upgrade:function(C,n){n(1)&&(C=JE(C,"ResponseStore",{keyPath:["key","clientName"]}),c$(C,"byExpiration","expireTimestampMs"),c$(C,"byInterface","clientName"))},
version:1});return GEz()};
$zz=function(W){return _.pH(y1m(),W)};
RfJ=function(W,k){var C;return _.F(function(n){return n.nextAddress==1?_.l(n,_.Z5(),2):(C=n.yieldResult)?n.return(new Zw4(W,k,C)):n.return()})};
oEK=function(W){var k=Object.keys(W)[0];if(k)return W.screenExit&&(k=k+";"+W.screenExit.screen),k};
iwm=function(W){var k=new Map;W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,C!=null&&(k.has(C.taskType)||k.set(C.taskType,[]),k.get(C.taskType).push(C));return k};
Tr2=function(W){return!isNaN(W)&&W>0};
qBK=function(W){W=[].concat(_.J8(W)).sort(function(C,n){return C-n});
var k=Math.floor(W.length/2);return W.length%2?W[k]:(W[k-1]+W[k])/2};
Uzw=function(){ukm||(Object.assign(j_,{handleError:function(W,k){var C={errorSeverity:k.errorSeverity.toString(),wizFeatureFlags:Object.entries(k.featureFlags).join("\n")};N7m(k,C);k=k.errorSeverity;k===3?_.dI(W,"ERROR",void 0,void 0,void 0,C):k===2&&_.dI(W,"WARNING",void 0,void 0,void 0,C);_.m("cow_if_errors_in_popup")&&k===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)},
enableComponentStacksInErrorMessages:!1}),ukm=!0)};
jlI=function(W,k){_.$g("yt.logging.errors.log",_.dI);Yx3();Ow3(liw(),k);window.onerror=W;_.m("wiz_next_error_handler_killswitch")||Uzw();LqJ=B74;window.addEventListener("unhandledrejection",function(C){if(C.reason instanceof Error){var n=C.reason;_.Dx(n,{source:"unhandledrejection"});n.name==="AbortError"&&(n.level="WARNING")}B74(C.reason);C.preventDefault()})};
_.Hw4=function(W){return W.a11y.ephemeralAction||null};
_.r13=function(W){var k,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp,vw,lw,G4,nA,Xs,aI,LA,dj,hK,Tz,S8,ms,pA,k3,oe,bw;return _.F(function(C7){if(C7.nextAddress==1)return _.l(C7,_.YS(W,{mode:"readonly",enableRetries:!0},function(j8){return B3(j8,"playbackData").then(function(CL){var EA=CL.map(function(Y2){return Y2.transfer}).filter(function(Y2){return!!Y2}),Nu=CL.map(function(Y2){return Y2.offlineVideoPolicy}).filter(function(Y2){return!!Y2}),AS=CL.filter(function(Y2){return!!Y2.key}).map(function(Y2){return _.KB(_.r8(Y2.key).entityId,
"downloadStatusEntity")});
EA=B3(j8,"transfer",EA);Nu=B3(j8,"offlineVideoPolicy",Nu);AS=B3(j8,"downloadStatusEntity",AS);var RJ=EA.then(function(Y2){Y2=Y2.reduce(function(VY,cY){(cY==null?0:cY.offlineVideoStreams)&&VY.push.apply(VY,_.J8(cY.offlineVideoStreams));return VY},[]).filter(function(VY){return!!VY});
return B3(j8,"offlineVideoStreams",Y2)});
return JM.all([EA,Nu,RJ,AS]).then(function(Y2){var VY=_.b(Y2);Y2=VY.next().value;var cY=VY.next().value;var e8=VY.next().value;VY=VY.next().value;return[CL,Y2,cY,e8,VY]})})}),2);
if(C7.nextAddress!=3)return k=C7.yieldResult,_.l(C7,_.YS(W,{mode:"readonly",enableRetries:!0},function(j8){return B3(j8,"mainDownloadsListEntity").then(function(CL){var EA,Nu;return(Nu=(EA=CL[0])==null?void 0:EA.downloads)!=null?Nu:[]})}),3);
C=C7.yieldResult;n=_.b(k);N=n.next().value;B=n.next().value;A=n.next().value;w=n.next().value;x=n.next().value;E=N;a=B;X=A;d=w;V=x;c={};M={};p={};e={};u={};h=[];L=_.b(a);for(Bw=L.next();!Bw.done;Bw=L.next())(P=Bw.value)&&(c[P.key]=P);xz=_.b(X);for(Sp=xz.next();!Sp.done;Sp=xz.next())(vw=Sp.value)&&(M[vw.key]=vw);lw=_.b(V);for(G4=lw.next();!G4.done;G4=lw.next())(nA=G4.value)&&(p[nA.key]=nA);Xs=_.b(d);for(aI=Xs.next();!aI.done;aI=Xs.next())(LA=aI.value)&&(e[LA.key]=LA);dj=_.b(C);for(hK=dj.next();!hK.done;hK=
dj.next())Tz=hK.value,S8=void 0,u[(S8=Tz.videoItem)!=null?S8:""]=!0,Tz.videoItem&&(pA=ms=void 0,k3=(pA=(ms=_.r8(Tz.videoItem))==null?void 0:ms.entityId)!=null?pA:"",h.push({externalVideoId:k3}));oe=E.filter(function(j8){if(!j8||!j8.key||!j8.offlineVideoPolicy)return!1;j8=_.r8(j8.key).entityId;j8=_.KB(j8,"downloadStatusEntity");var CL;return!(j8&&((CL=p[j8])==null?void 0:CL.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
bw=oe.map(function(j8){var CL=c[j8.transfer],EA=[];if(CL==null?0:CL.offlineVideoStreams)for(var Nu=_.b(CL.offlineVideoStreams),AS=Nu.next();!AS.done;AS=Nu.next())(AS=e[AS.value])&&EA.push(AS);Nu=M[j8.offlineVideoPolicy];AS=u;var RJ=j8==null?void 0:j8.playerResponseTimestamp,Y2=_.r8(Nu.key).entityId;j8=_.KB(Y2,"mainVideoEntity");if(Nu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var VY="OFFLINE_VIDEO_STATE_DISABLED";Nu.expirationTimestamp&&Number(Nu.expirationTimestamp)<Date.now()/1E3&&(VY="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Nu.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")VY="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(CL==null?void 0:CL.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":VY="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":VY="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":VY="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":VY="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":VY="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":VY="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:VY="OFFLINE_VIDEO_STATE_UNKNOWN"}if(VY==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(CL==null?void 0:CL.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":VY="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":VY="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":VY=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Y2={id:Y2,videoState:VY};if(CL==null?0:CL.cotn)Y2.cotn=CL.cotn;if(CL==null?0:CL.maximumDownloadQuality)Y2.selectedVideoQuality=CL==null?void 0:CL.maximumDownloadQuality;if(CL==null?0:CL.lastProgressTimeMs)Y2.lastProgressTimeMs=CL.lastProgressTimeMs;RJ&&(Y2.playerResponseSavedTimeMs=String(Number(RJ)*1E3));CL=String;RJ=0;EA=_.b(EA);for(VY=EA.next();!VY.done;VY=EA.next())if(VY=VY.value,VY.streamsProgress){VY=_.b(VY.streamsProgress);for(var cY=VY.next();!cY.done;cY=
VY.next()){var e8=void 0;RJ+=Number((e8=cY.value.numBytesDownloaded)!=null?e8:0)}}Y2.downloadedBytes=CL(RJ);Y2.selectedOfflineMode=AS[j8]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Nu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Y2.offlinePlaybackDisabledReason=Nu.offlinePlaybackDisabledReason);return Y2});
return C7.return({offlineVideos:bw,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:h}}})})};
gE2=function(){var W;return _.F(function(k){return k.nextAddress==1?_.l(k,_.C5(),2):(W=k.yieldResult)?k.return(_.r13(W)):k.return({state:"PES Unavailable"})})};
hfJ=function(){var W,k,C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,_.C5(),2);if(N.nextAddress!=3)return(W=N.yieldResult)?_.l(N,PCz(W),3):N.return({state:"PES Unavailable"});k=N.yieldResult;C={};n=k.reduce(function(B,A){B[A.key]=A;return B},C);
return N.return(Kq3(n))})};
Kq3=function(W){for(var k={},C=[],n=_.b(Object.keys(W)),N=n.next();!N.done;N=n.next()){var B=N.value;N=W[B];var A=void 0;if(((A=N)==null?void 0:A.entityType)==="mainVideoEntity"){delete W[B];var w=N.data;N={};if(w){var x=void 0;A=(x=w.videoId)!=null?x:"vid-"+B;B=W;N.video=w;delete N.video.formattedDescription;delete N.video.thumbnail;w.owner&&(x=B[w.owner],x==null?0:x.data)&&(delete B[x.key],N.video.owner=x.data,delete N.video.owner.avatar);if(w=w.downloadState)if(x=B[w],x==null?0:x.data)if(delete B[w],
w=x.data.playbackData)if(x=B[w],x!=null&&x.data){delete B[w];w=x.data;delete w.playerResponseJson;N.playbackData=w;if(w.transfer&&(x=B[w.transfer],x==null?0:x.data)){delete B[x.key];var E=x.data;N.transfer=E;x=[];E=_.b(E.offlineVideoStreams||[]);for(var a=E.next();!a.done;a=E.next())if(a=B[a.value])delete B[a.key],x.push(a.data);x&&(N.streams=x)}(w=w.offlineVideoPolicy)&&(w=B[w])&&w.data&&(delete B[w.key],N.offlineVideoPolicy=w.data)}k[A]=N}}else N&&N.entityType==="offlineOrchestrationActionWrapperEntity"&&
N.data&&(delete W[N.key],A=N.data,B=void 0,C.push({id:A.rootActionId,type:((B=A.actionProto)==null?void 0:B.actionType)||"",entity:N}))}k.wrapperEntities=C;Object.keys(W).length>0&&(k.unknownKeys=W);return k};
WXm=function(){var W,k,C,n,N,B,A,w,x;return _.F(function(E){if(E.nextAddress==1)return W=!!(new _.D3("")).expiringStorage_,n=!!((k=_.NX.crypto)==null?0:(C=k.subtle)==null?0:C.importKey),N=!!_.NX.BroadcastChannel,B=!!_.NX.navigator.locks,_.l(E,RVm(),2);A=E.yieldResult;w=W&&n&&N&&B&&A;x={isSupported:w};if(w)return E.return(x);x.missingBrowserFeatures=[];A||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
n||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");N||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");B||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return E.return(x)})};
kpX=function(){var W;return!((W=NK?NK:null)==null||!W.window)};
_.nKX=function(W){if(_.IJ()&&_.tp4("Chromium")>=120){var k=_.CtP().mediaSession;try{k.setActionHandler("enterpictureinpicture",function(){W()})}catch(C){}}};
NUp=function(W){for(var k=[],C=_.b(document.styleSheets),n=C.next(),N={};!n.done;N={node$jscomp$720:void 0},n=C.next())N.node$jscomp$720=n.value.ownerNode,N.node$jscomp$720&&(N.node$jscomp$720 instanceof HTMLStyleElement||N.node$jscomp$720 instanceof HTMLLinkElement)&&k.push(new Promise(function(B){return function(A){var w=B.node$jscomp$720.cloneNode(!0);w.onload=function(){A()};
w.onerror=function(){_.zJ(Error("fj"));A()};
W.document.head.appendChild(w)}}(N)));
return Promise.all(k)};
EKJ=function(W){var k=[_.h8(Yap),_.h8(BU3),_.h8(b4I)];Asp(window.document.documentElement,W.document.documentElement,[_.h8(FXz),_.h8(wym),_.h8(xBm),_.h8(lv2),_.h8(tvK)]);Asp(window.document.body,W.document.body,k)};
Asp=function(W,k,C){W=_.b(W.attributes);for(var n=W.next();!n.done;n=W.next())if(n=n.value)try{_.H6(C,k,n.name,n.value)}catch(N){}};
Xyp=function(W,k){W=new _.YN(W.document.documentElement);W.start(avw,k);return W};
fvK=function(W){var k=W.document.documentElement;k.addEventListener("click",function(C){RJJ(k,C)});
k.addEventListener("touchstart",function(C){uap(C)});
k.addEventListener("mousedown",function(C){uap(C)})};
mB4=function(W,k,C,n){n=n===void 0?!1:n;k=new dBm(k||W,C||W);return{x:W.x+((n===void 0?0:n)?k.lengthX*-1:k.lengthX)*.2,y:W.y+((n===void 0?0:n)?k.lengthY*-1:k.lengthY)*.2}};
z2c=function(W){if(!W)return!1;var k=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",C,n,N,B=(N=(C=W.errorScreen)==null?void 0:C.playerLegacyDesktopYpcTrailerRenderer)!=null?N:(n=W.errorScreen)==null?void 0:n.ypcTrailerRenderer;return!!k||!!B};
_.DBX=function(W,k){if(!W)return!1;var C,n=(C=W.errorScreen)==null?void 0:C.playerLegacyDesktopYpcOfferRenderer,N;k=!!(k==null?0:(N=k.playerOverlayRenderer)==null?0:N.gatedActionsOverlayRenderer);return!!z2c(W)||!!n||!!k};
VvI=function(W){return W.includes("gclid")||W.includes("gad_source")};
JsP=function(W){return new Promise(function(k){window.setTimeout(k,W)})};
cs3=function(W){var k={bicf:function(B){W.b66=B},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(B){W.uOo.push(B)}},C=window.top;
C.ntpevasrs=k;if(C.ntpqfbel!==void 0)for(var n=_.b(C.ntpqfbel),N=n.next();!N.done;N=n.next())N=N.value,N(k);C.ntpqfbel=void 0};
Ivm=function(W){return _.F(function(k){if(k.nextAddress==1)return _.F0(k,2),_.l(k,W.gIt(),4);if(k.nextAddress!=2)return _.M7(k,0);_.EF(k);_.ab(k)})};
Sac=function(W){var k,C;(k=W.ytcsi)==null||(C=k.tick)==null||C.call(k,"pot_ist")};
Mvm=function(W){if(W instanceof Error){var k=_.QK("yt.logging.errors.log");k&&k(W,"WARNING")}};
Q7z=function(W){try{var k=JSON.parse(W);if(k.bgChallenge)return k}catch(C){}};
vK4=function(){var W=window,k={networkStatusManagerPromise:_.f().resolve(new Dlp(_.Qw)),initialChallengeSli:_.m("wpo_att_sli")?new _.ckP("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var C=W.ytAtR,n;k==null||(n=k.initialChallengeSli)==null||_.Bq(n);if(C){if(C=Q7z(C)){var N;k==null||(N=k.initialChallengeSli)==null||_.bH(N,"SUCCESS");pyI(C,k)}W.ytAtR=void 0}else W.ytAtRC=function(B){if(B=Q7z(B)){var A;k==null||(A=k.initialChallengeSli)==null||_.bH(A,
"SUCCESS");pyI(B,k);W.ytAtRC=void 0}}};
Gp4=function(){if(e2w)return e2w;try{var W=_.wu("IFRAME");_.i5(W,_.k0(s73));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return e2w=W}catch(k){W=new _.AM("Failed to create sandbox iframe"),_.dI(W)}};
ysw=function(W){var k,C;return(C=W==null?void 0:(k=W.contentWindow)==null?void 0:k.fetch)!=null?C:window.fetch};
$BK=function(W){var k,C;return(C=W==null?void 0:(k=W.contentWindow)==null?void 0:k.JSON.parse)!=null?C:JSON.parse};
Z4w=function(W){var k,C;return(C=W==null?void 0:(k=W.contentWindow)==null?void 0:k.Request)!=null?C:window.Request};
i4p=function(){if(pjw()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else pjw()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",R22=null);W&&oKX(W)};
oKX=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(TUp===W)return;TUp=W}var k=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.ie()>k)&&pjw()==="visible"){k=-1;R22&&(k=Math.round((0,_.oX)()-R22));var C=String;var n=_.QK("_fact",window);n=n==null||n==-1?-1:Math.max(Date.now()-n,0);_.a9("foregroundHeartbeat",{firstActivityMs:C(n),clientDocumentNonce:NDm,index:String(qap),lastEventDeltaMs:String(k),trigger:W});
_.$g("_fact",-1,window);qap++;R22=(0,_.oX)()}};
_.uSI=function(){try{return!!self.sessionStorage}catch(W){return!1}};
UB4=function(){var W=navigator;return new Promise(function(k,C){var n;(n=W.webkitTemporaryStorage)!=null&&n.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(N,B){k({usage:N,quota:B})},function(N){C(N)}):C(Error("nj"))})};
O4J=function(W,k,C){W.componentType!==xw&&C instanceof HTMLElement&&k&&!_.m("cow_logging_in_component_wrapper")&&iQz(C,k,!0)};
LX3=function(W,k,C){k=k===void 0?{}:k;var n,N=(n=_.z(W.commandMetadata,_.Ok))==null?void 0:n.url;n=k.form||{};!C||n.element||n.skipDefaultElement||(k.form=k.form||{},k.form.element=C);if(N&&N!=="/service_ajax")return{type:0,command:W,form:k.form};if(_.m("kevlar_service_command_check")){if(_.Ih(_.f().resolve(_.xZ),W))return Object.assign({},{type:1,command:W},k)}else{var B;if((B=_.z(W.commandMetadata,_.Ok))==null?0:B.apiUrl)return Object.assign({},{type:1,command:W},k)}return{type:2,command:W,form:k.form}};
j7P=function(W){if(W.form){var k=W.form,C=Object.assign({},k);k=k.element;C=(delete C.element,C);if(k)return[_.kQ(k,[W.command,C,W.commandController])]}return[]};
H4I=function(W){if(W.form){var k=W.form,C=Object.assign({},k);k=k.element;C=(delete C.element,C);k&&_.CB(k,[W.command],k,C)}};
gKI=function(W,k,C){var n=new rs2(W,k),N=new A3(W,k,C);W={"/youtubei/v1/browse":new Fp(W,k,C),"/youtubei/v1/player":n,"/youtubei/v1/navigation/resolve_url":new wk,"/youtubei/v1/next":N,"/youtubei/v1/guide":new xN(C),"/youtubei/v1/search":new lH(W,k,C),"/youtubei/v1/reel/reel_item_watch":new t3(W,k,C),"/youtubei/v1/get_watch":new Ev(n,N)};W["/youtubei/v1/account/account_menu"]=new a5;W["/youtubei/v1/notification/get_notification_menu"]=new fs;return W};
mE=function(){var W=_.f().resolve(dk);return Promise.resolve(Ptm(W,_.NX.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
KXw=function(W){return W&&(W=_.z_(_.b14(W)))?(new URLSearchParams(W)).get("service"):null};
J3=function(W,k){_.oE(_.D7(),function(){_.cN("adl")});
_.f().resolve(h2m)(k);W=W.root;W.loadData&&W.loadData(k);(k==null?0:k.response)?_.bH(MFw(),"SUCCESS"):_.zJ(new _.AM("Lifecycle: No response in data",_.cv("IS_SHELL_LOAD"),k?k.page:"NO_PAGE",k?k.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((k==null?void 0:k.page)||"",k.endpoint);var C,n;((n=_.z(k==null?void 0:(C=k.endpoint)==null?void 0:C.commandMetadata,_.Ok))==null?0:n.webPageType)&&_.ZF().dispatch(_.Va(_.z(k.endpoint.commandMetadata,_.Ok).webPageType))};
WTm=function(){var W,k;return _.F(function(C){switch(C.nextAddress){case 1:W=window;if(!W.getDataPromise){C.jumpTo(2);break}_.F0(C,3);return _.l(C,W.getDataPromise(),5);case 5:return C.return(C.yieldResult);case 3:return _.EF(C),_.l(C,mE(),6);case 6:return C.return(C.yieldResult);case 2:if(W.getInitialData)return k=W.getInitialData(),W.getInitialData=void 0,C.return(k);throw Error("pj`"+_.NX.location.href);}})};
CUz=function(){_.z3("CSI_SERVICE_NAME","youtube");_.Vb({loadType:"cold"});_.m("kevlar_log_lcp")&&kdp(function(W){_.cN("lcp",W.value)})};
nbw=function(){var W=_.e_(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.z3("ADD_SCRAPER_ATTRIBUTES",!0)};
A23=function(W){var k=W.root;W=[NG2,YwX,_.cq];_.m("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.I5,BGc);bzI(function(C,n){return LX3(C,n,k)},function(C){if(!C.command)return[];
var n;((n=C.form)==null?0:n.element)?C.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},C.form,{endpoint:C.command})})):k.handleNavigate(C);return[]},W);
_.f().addProvider({provide:_.uI,useValue:_.gH.instance})};
w_c=function(){var W={},k={},C;for(C in FTI){var n=_.b(_.kw(FTI[C],void 0,"UAX5pb"));W[C]=n.next().value;k[C]=n.next().value}return[W,function(N){for(var B in N){var A=void 0;(A=k[B])==null||A(N[B])}}]};
_.tSz=function(W,k){var C=_.JU.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),n=_.JU.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null,N=null,B=null;if(n)N=_.JU.getValueByKeys(n,"titleText"),B=_.JU.unsafeClone(_.JU.getValueByKeys(n,"longBylineText")),C="",B&&(C=_.y4(B)),B=_.Go(C);else if(C){C=_.b(C);for(var A=C.next();!A.done;A=C.next())A=A.value,A.videoPrimaryInfoRenderer&&(N=_.JU.getValueByKeys.apply(_.JU,[A].concat(_.J8(xrI)))),
A.videoSecondaryInfoRenderer&&(B=_.JU.getValueByKeys.apply(_.JU,[A].concat(_.J8(lPJ))))}else _.pS(Error("uj"));var w;W.currentVideoEndpoint?w=W.currentVideoEndpoint:_.pS(Error("vj"));var x;k&&(x=_.JU.getValueByKeys(k,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:N,miniplayerSubtitle:B,watchEndpoint:w,playlistData:n};x&&(W.miniplayerRenderer=x);return W};
Ebz=function(W){if(W)return _.t7(W)};
_.aPK=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
X_m=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.Sq(W.draggedTime/W.videoDuration,0,1):_.Sq((W.playedTime||0)/W.videoDuration,0,1):0};
fPc=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.Sq(W.draggedTime/W.videoDuration,0,1):_.Sq((W.playedTime||0)/W.videoDuration,0,1):0};
mrP=function(W){var k,C,n;return _.z(W==null?void 0:(k=W.markersMap)==null?void 0:(C=k.find(function(N){return N.key==="HEATSEEKER"}))==null?void 0:(n=C.value)==null?void 0:n.heatmap,drc)};
zwc=function(W){var k,C;return(C=(k=mrP(W))==null?void 0:k.heatMarkersDecorations)!=null?C:[]};
Drw=function(W){if(_.m("mweb_supported_chapters_killswitch"))return!0;var k;return!!(W==null?0:(k=W.markersMap)==null?0:k.find(function(C){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(C.key)}))};
_.VSm=function(W){var k=Object,C=k.assign,n;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(n=W==null?void 0:W.getPlayerState())!=null?n:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return C.call(k,{},{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},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
J22=function(W){return function(k){var C=W(),n,N=(n=C.playerApi)==null?void 0:n.getPlayerState();k&&k!==C.playerState&&(k===1||k===2)&&C.setState({playerState:N})}};
IPz=function(W){return function(k){var C=W(),n=C.playerApi;n&&(k==null?void 0:k.type)==="newdata"&&(c2p&&(clearTimeout(c2p),c2p=void 0),_.m("web_shorts_use_progress_state_for_gapless")?(k=n==null?void 0:n.getProgressState(k==null?void 0:k.playertype),k=k.seekableEnd-k.seekableStart):k=n==null?void 0:n.getDuration(k==null?void 0:k.playertype),C.setState({playedTime:0,videoDuration:k}))}};
Swm=function(W){return function(k){var C=W(),n=C.playerApi;if(n){var N=n.getPresentingPlayerType();_.m("web_shorts_use_progress_state_for_gapless")?(n=n.getProgressState(N),n=n.seekableEnd-n.seekableStart):n=n.getDuration(N);C.setState({playedTime:k,videoDuration:n})}}};
p_3=function(W){var k=W.element;var C=W.veType;var n=W.storedVisualElement===void 0?null:W.storedVisualElement;var N=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var B=_.VM();B!==MSc&&(QF2.clear(),MSc=B);if(k.visualElement&&QF2.has(k.visualElement))return null;if(n&&QF2.has(n))return k.visualElement=n,null;C=_.Wj(_.kf(),{veType:C,elementIndex:N,clientYouTubeData:W});if(!C)return null;k.visualElement=C;QF2.add(C);return C};
_.MK=function(W,k,C,n){C=C===void 0?null:C;n=n===void 0?uW3:n;var N=N===void 0?null:N;FZ(function(){if(k){C instanceof Function&&(C=C());var B=p_3({element:k,veType:W,storedVisualElement:C,clientYouTubeData:void 0});B&&(LyK(k,N),n(B))}})};
ewI=function(W){_.MK(112394,W,function(){return vbK},function(k){vbK=k})};
y24=function(W,k){if(!W)return[];var C,n,N;W=((C=W.markersMap)==null?void 0:(n=C.find(function(B){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(B.key)}))==null?void 0:(N=n.value)==null?void 0:N.chapters)||[];
!sFc(W)||(k==null?0:k.ignoreStub)||(W=[Gdw()].concat(_.J8(W)));return W};
Gdw=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
sFc=function(W){if(W.length===0)return!1;var k;return((k=_.z(W[0],Qa))==null?void 0:k.timeRangeStartMillis)!==0};
ps=function(W){return W?W.timeRangeStartMillis||0:0};
ZzX=function(W,k){if(W.isDragging&&k)return W=$rc(W,k),W===-1?Gdw():y24(k)[W]};
$rc=function(W,k){return W.isDragging&&k?y24(k,{ignoreStub:!0}).findIndex(function(C,n,N){C=RwX(W);return obw(C,N,n).scrubberHovering}):-1};
RwX=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
obw=function(W,k,C){var n=ps(_.z(k[C],Qa));k=ps(_.z(k[C+1],Qa))||W.videoDuration;C=W.isDragging;var N;if(N=W.isDragging)N=W.draggedTime,N=N!==null&&N>=n&&N<k;var B=W.playedTime;return B!==null&&B>=n&&B<k?{videoPosition:"active",isScrubbing:C,scrubberHovering:N}:W.playedTime<n?{videoPosition:"pending",isScrubbing:C,scrubberHovering:N}:{videoPosition:"seen",isScrubbing:C,scrubberHovering:N}};
izm=function(W,k){return W.videoPosition==="seen"||(k===void 0?0:k)>0};
TGm=function(W,k,C){k=W/k.storyboardInterval;var n=y24(C);if(!n.length)return-k*72;C=0;n=_.b(n);for(var N=n.next();!N.done;N=n.next())if(ps(_.z(N.value,Qa))/1E3<W)C++;else break;return-(k*72)-C*56};
qwI=function(W){return W?W.width/W.columns:0};
uAI=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
Ur2=function(W,k){W=W.draggedTime*1E3;return W>=k.visibleTimeRangeStartMillis&&W<=k.visibleTimeRangeEndMillis};
_.OzK=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var k=Math.abs(Math.floor(W)),C=Math.floor(k/86400),n=Math.floor(k%86400/3600),N=Math.floor(k%3600/60);k=Math.floor(k%60);var B="";C>0&&(B+=C+":",n<10&&(B+="0"));if(C>0||n>0)B+=n+":",N<10&&(B+="0");B+=N+":";k<10&&(B+="0");B+=k;return W>=0?B:"-"+B};
LT4=function(W,k){return function(){var C=uAI(W());var n=k();var N=W().playerApi;if(N&&N.getNumberOfStoryboardLevels()!==0){var B=N.getStoryboardFrameIndex(C,1);B!==-1?n=N.getStoryboardFrame(B,1):(C=N.getStoryboardFrameIndex(C,0),N=N.getStoryboardFrame(C,0),n&&N&&(N.height*=3,N.width*=3),n=N)}else n=null;if(!n)return null;k()&&(n.width=90*n.columns,n.height=160*n.rows);return n}};
_.vq=function(W){if(!W||W.getVideoData)return W};
jFc=function(){var W;return{playerApi:(W=_.f().resolve(_.jr)())!=null?W:void 0}};
_.KTX=function(W){function k(e){e!==0||a?e>50&&(a||!d)?(X(!1),V(!0)):e<=50&&(a||d)&&(X(!1),V(!1)):X(!0)}
function C(){var e;return _.F(function(u){if(u.nextAddress==1)return _.l(u,_.HJ(),2);(e=u.yieldResult)&&(e.isMuted()?X(!0):X(!1));_.ab(u)})}
var n=W.noSlider;W=_.yE();var N=_.yE(),B=_.$I(),A=_.b(PJ(!1)),w=A.next().value,x=A.next().value,E=_.b(PJ(!1));A=E.next().value;E=E.next().value;var a=A,X=E;E=_.b(PJ(!0));A=E.next().value;E=E.next().value;var d=A,V=E;_.Ee(function(){function e(){x(!0)}
function u(){x(!1)}
n?(C(),k(a?0:100)):B&&B.value&&(B.value.addEventListener("focus",e),B.value.addEventListener("focusout",u),HzK(B.value).then(function(){k(Number(r2w(B.value)))}));
N&&N.value&&(N.value.addEventListener("focus",e),N.value.addEventListener("focusout",u));return function(){var h;B==null||(h=B.value)==null||h.removeEventListener("focus",e);var L;B==null||(L=B.value)==null||L.removeEventListener("focusout",u);N.value.removeEventListener("focus",e);N.value.removeEventListener("focusout",u)}});
var c=_.Pj(function(){if(B&&B.value){var e=Number(r2w(B.value));gbp(e);B.value.style.setProperty("--gradient-percent",e+"%");k(e)}return!1});
A={};var M=(A.ytdDesktopShortsVolumeControlsSliderContainer=!0,A.ytdDesktopShortsVolumeControlsSliderContainerExpanded=w,A);A={};w=(A.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,A.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=n?!1:w,A);_.Zx(N,"pointerenter",function(){x(!0)});
_.Zx(W,"pointerleave",function(){x(!1)});
A=_.Pj(function(){if(B&&B.value||n)PUK(B.value,a,n),X(!a);return!1});
E=_.m("web_shorts_keyboard_enable_mute_shortcut")?a?_.w8("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.w8("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):a?_.w8("UNMUTE_VOLUME",void 0,"Unmute"):_.w8("MUTE_VOLUME",void 0,"Mute");var p={sources:[{clientResource:{imageName:a?"VOLUME_OFF_FILLED":d?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.t("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:W},_.t("div",{class:_.Hj(w)}),_.t("button",{"aria-label":E,title:E,el:N,"on:click":A,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},p?_.t(_.pi,{data:p,alt:E,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.Tb(!n,function(){return _.t("div",{class:_.Hj(M)},_.t("input",{"aria-label":_.w8("VOLUME"),title:_.w8("VOLUME"),el:B,"on:input":c,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
HzK=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.HJ(),2);k=n.yieldResult;C=50;k&&(C=k.getVolume(),k.isMuted()?hw2(W,0):hw2(W,C));_.ab(n)})};
gbp=function(W){var k;_.F(function(C){if(C.nextAddress==1)return _.l(C,_.HJ(),2);if(k=C.yieldResult)k.unMute(!0),k.setVolume(W,!0);_.ab(C)})};
hw2=function(W,k){W&&(W.value=""+k,W.style.setProperty("--gradient-percent",k+"%"))};
r2w=function(W){var k;return(k=W==null?void 0:W.value)!=null?k:0};
PUK=function(W,k,C){var n;_.F(function(N){if(N.nextAddress==1)return _.l(N,_.HJ(),2);n=N.yieldResult;k&&n?(n.unMute(!0),!C&&W&&hw2(W,n.getVolume())):n&&(n.mute(!0),!C&&W&&hw2(W,0));_.ab(N)})};
W9w=function(){var W;_.F(function(k){if(k.nextAddress==1)return _.l(k,_.HJ(),2);W=k.yieldResult;if(!W)return k.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.ab(k)})};
kGm=function(W){var k=_.f().resolve(_.eq).getPlayerElement();k&&W&&(W===1?k.pause():k.play())};
ClX=function(W){_.hA(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ns4=function(W){_.hA(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
YNw=function(W){return _.xn(W.document.body,function(){return _.t(NJK,null)})};
BJI=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(k){return k.type}).includes("reload"):!1};
Esw=function(){sv(sv(sv(sv(sv(sv(sv(_.f().resolve(_.G_),_.bam),_.Axp),_.F9p),_.wiz),_.x_J),_.lww),_.t1p)};
awm=function(W,k){k=k===void 0?!1:k;var C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return k||!_.m("kevlar_shorts_seedless_retry_initial_load")||(C=window,n=!(!C.getDataPromise&&!C.getInitialData),n)?_.l(A,WTm(),2):(setTimeout(awm.bind(window,W,!0),1E3),A.return());if(A.nextAddress!=3)return N=A.yieldResult,_.l(A,XiK(N),3);B=A.yieldResult;J3(W,B);_.ab(A)})};
XiK=function(W){var k;if((k=W.response)==null||!k.replacementEndpoint)return _.nB(W);k=_.f().resolve(dk);W=W.response;_.z(W.replacementEndpoint,_.YZ)&&W.sequenceContinuation&&(_.z(W.replacementEndpoint,_.YZ).sequenceParams=W.sequenceContinuation);return ya(k,W.replacementEndpoint,{},_.NX.location.href,"shorts",function(){},function(){return!1})};
fwP=function(W){var k=_.ZF(),C,n=_.z((C=W.response)==null?void 0:C.frameworkUpdates,pn),N;C=_.z((N=W.playerResponse)==null?void 0:N.frameworkUpdates,pn);var B;W=_.z((B=W.reelWatchSequenceResponse)==null?void 0:B.frameworkUpdates,pn);n&&_.Ny(n,k);C&&_.Ny(C,k);W&&_.Ny(W,k)};
d_c=function(W){var k;_.m("enable_redirect_linking_for_desktop_web_client")&&((k=window.location.hash)==null?0:k.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
D_2=function(W){var k=_.f(),C=k.resolve(dk);k=k.resolve(_.m_K);W.endpoint&&(C=z7p(C,W.endpoint),C.content&&W.response&&_.$N(k,W.response,C.content),C.player&&W.playerResponse&&_.$N(k,W.playerResponse,C.player),C.reelSequence&&W.reelWatchSequenceResponse&&_.$N(k,W.reelWatchSequenceResponse,C.reelSequence))};
Z7=function(W,k){fwP(k);var C;(k==null?0:k.url)&&((C=window.location.hash)==null?0:C.includes("redirect_state"))&&(d_c(k),(C=KXw(k.url))&&_.KY(W.root,"yt-initialize-third-party",[C,k]));D_2(k);C=_.f();var n=C.resolve(V1p);k.playerResponse&&C.resolve(Jx4).handleResponse(k.playerResponse);if(k.playerResponse){C=void 0;if(_.m("ab_v_vid_sig")&&k.endpoint){var N,B=(N=_.z(k.endpoint,_.RA))!=null?N:_.z(k.endpoint,_.YZ);B&&(C=B.videoId)}cxc(n,k.playerResponse,C)}k.playerResponse&&lam(k.playerResponse)&&_.m("web_enable_ab_rsp_cl")?
J$p().then(function(){Iww(n,k.playerResponse);J3(W,k)}):J3(W,k)};
M14=function(W){if(W=W.root.data){var k=_.f().resolve(SNw);W.endpoint&&(W.response&&k.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&k.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&k.handleResponse(W.reelWatchSequenceResponse))}};
QDm=function(W){var k,C,n,N,B,A;return _.F(function(w){switch(w.nextAddress){case 1:k=window;if(!k.getDataPromise){w.jumpTo(2);break}_.F0(w,3);return _.l(w,k.getDataPromise(),5);case 5:C=w.yieldResult;Z7(W,C);_.M7(w,4);break;case 3:return _.EF(w),_.l(w,mE(),6);case 6:n=w.yieldResult,J3(W,n);case 4:return w.return();case 2:if(!_.m("sw_nav_preload_pbj")){w.jumpTo(7);break}k.fetchInitialData=function(){var x;return _.F(function(E){if(E.nextAddress==1)return _.l(E,mE(),2);x=E.yieldResult;J3(W,x);_.ab(E)})};
if(k.getInitialData){k.loadInitialData=function(x){Z7(W,x)};
N=k.getInitialData();k.getInitialData=void 0;Z7(W,N);w.jumpTo(8);break}k.fetchInitialData=void 0;return _.l(w,mE(),9);case 9:B=w.yieldResult,J3(W,B);case 8:return w.return();case 7:k.getInitialData?(A=k.getInitialData(),k.getInitialData=void 0,Z7(W,A)):k.loadInitialData=function(x){Z7(W,x)},_.ab(w)}})};
piw=function(W){var k=0;return function(){return k<W.length?{done:!1,value:W[k++]}:{done:!0}}};
vsP=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,k,C){if(W==Array.prototype||W==Object.prototype)return W;W[k]=C.value;return W};
e74=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<W.length;++k){var C=W[k];if(C&&C.Math==Math)return C}throw Error("a");};
_.oq=e74(this);R5=function(W,k){if(k)a:{var C=_.oq;W=W.split(".");for(var n=0;n<W.length-1;n++){var N=W[n];if(!(N in C))break a;C=C[N]}W=W[W.length-1];n=C[W];k=k(n);k!=n&&k!=null&&vsP(C,W,{configurable:!0,writable:!0,value:k})}};
R5("Symbol",function(W){if(W)return W;var k=function(B,A){this.$jscomp$symbol$id_=B;vsP(this,"description",{configurable:!0,writable:!0,value:A})};
k.prototype.toString=function(){return this.$jscomp$symbol$id_};
var C="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",n=0,N=function(B){if(this instanceof N)throw new TypeError("b");return new k(C+(B||"")+"_"+n++,B)};
return N});
R5("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var k="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),C=0;C<k.length;C++){var n=_.oq[k[C]];typeof n==="function"&&typeof n.prototype[W]!="function"&&vsP(n.prototype,W,{configurable:!0,writable:!0,value:function(){return sDK(piw(this))}})}return W});
R5("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var sDK=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},GGw=typeof Object.create=="function"?Object.create:function(W){var k=function(){};
k.prototype=W;return new k},yxm=function(){function W(){function C(){}
new C;Reflect.construct(C,[],function(){});
return new C instanceof C}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var k=Reflect.construct;return function(C,n,N){C=k(C,n);N&&Reflect.setPrototypeOf(C,N.prototype);return C}}return function(C,n,N){N===void 0&&(N=C);
N=GGw(N.prototype||Object.prototype);return Function.prototype.apply.call(C,N,n)||N}}(),$_c;
if(typeof Object.setPrototypeOf=="function")$_c=Object.setPrototypeOf;else{var Za3;a:{var R7p={a:!0},osK={};try{osK.__proto__=R7p;Za3=osK.a;break a}catch(W){}Za3=!1}$_c=Za3?function(W,k){W.__proto__=k;if(W.__proto__!==k)throw new TypeError("e`"+W);return W}:null}_.o5=$_c;
_.D=function(W,k){W.prototype=GGw(k.prototype);W.prototype.constructor=W;if(_.o5)(0,_.o5)(W,k);else for(var C in k)if(C!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(k,C);n&&Object.defineProperty(W,C,n)}else W[C]=k[C];W.superClass_=k.prototype};
_.b=function(W){var k=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(k)return k.call(W);if(typeof W.length=="number")return{next:piw(W)};throw Error("f`"+String(W));};
oL=function(W){for(var k,C=[];!(k=W.next()).done;)C.push(k.value);return C};
_.J8=function(W){return W instanceof Array?W:oL(_.b(W))};
_.iH=function(W){return ia3(W,W)};
ia3=function(W,k){W.raw=k;Object.freeze&&(Object.freeze(W),Object.freeze(k));return W};
T_=function(W,k){return Object.prototype.hasOwnProperty.call(W,k)};
TJ4=typeof Object.assign=="function"?Object.assign:function(W,k){for(var C=1;C<arguments.length;C++){var n=arguments[C];if(n)for(var N in n)T_(n,N)&&(W[N]=n[N])}return W};
R5("Object.assign",function(W){return W||TJ4});
var qNw=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},u_I=function(W){if(W.isRunning_)throw new TypeError("h");
W.isRunning_=!0};
qNw.prototype.JSC$6608_next_=function(W){this.yieldResult=W};
var U_w=function(W,k){W.abruptCompletion_={exception:k,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
qNw.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
_.l=function(W,k,C){W.nextAddress=C;return{value:k}};
qNw.prototype.jumpTo=function(W){this.nextAddress=W};
_.ab=function(W){W.nextAddress=0};
_.F0=function(W,k,C){W.catchAddress_=k;C!=void 0&&(W.finallyAddress_=C)};
_.lM=function(W,k){W.catchAddress_=0;W.finallyAddress_=k||0};
_.M7=function(W,k,C){W.nextAddress=k;W.catchAddress_=C||0};
_.EF=function(W,k){W.catchAddress_=k||0;k=W.abruptCompletion_.exception;W.abruptCompletion_=null;return k};
_.xO=function(W,k,C,n){n?W.finallyContexts_[n]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=k||0;W.finallyAddress_=C||0};
_.t8=function(W,k,C){C=W.finallyContexts_.splice(C||0)[0];(C=W.abruptCompletion_=W.abruptCompletion_||C)?C.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:C.jumpTo!=void 0&&W.finallyAddress_<C.jumpTo?(W.nextAddress=C.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=k};
_.OaI=function(W){this.JSC$6613_context_=new qNw;this.program_=W};
jDz=function(W,k){u_I(W.JSC$6613_context_);var C=W.JSC$6613_context_.yieldAllIterator_;if(C)return L9w(W,"return"in C?C["return"]:function(n){return{value:n,done:!0}},k,W.JSC$6613_context_.return);
W.JSC$6613_context_.return(k);return qK(W)};
L9w=function(W,k,C,n){try{var N=k.call(W.JSC$6613_context_.yieldAllIterator_,C);if(!(N instanceof Object))throw new TypeError("g`"+N);if(!N.done)return W.JSC$6613_context_.isRunning_=!1,N;var B=N.value}catch(A){return W.JSC$6613_context_.yieldAllIterator_=null,U_w(W.JSC$6613_context_,A),qK(W)}W.JSC$6613_context_.yieldAllIterator_=null;n.call(W.JSC$6613_context_,B);return qK(W)};
qK=function(W){for(;W.JSC$6613_context_.nextAddress;)try{var k=W.program_(W.JSC$6613_context_);if(k)return W.JSC$6613_context_.isRunning_=!1,{value:k.value,done:!1}}catch(C){W.JSC$6613_context_.yieldResult=void 0,U_w(W.JSC$6613_context_,C)}W.JSC$6613_context_.isRunning_=!1;if(W.JSC$6613_context_.abruptCompletion_){k=W.JSC$6613_context_.abruptCompletion_;W.JSC$6613_context_.abruptCompletion_=null;if(k.isException)throw k.exception;return{value:k.return,done:!0}}return{value:void 0,done:!0}};
_.Haw=function(W){this.next=function(k){u_I(W.JSC$6613_context_);W.JSC$6613_context_.yieldAllIterator_?k=L9w(W,W.JSC$6613_context_.yieldAllIterator_.next,k,W.JSC$6613_context_.JSC$6608_next_):(W.JSC$6613_context_.JSC$6608_next_(k),k=qK(W));return k};
this.throw=function(k){u_I(W.JSC$6613_context_);W.JSC$6613_context_.yieldAllIterator_?k=L9w(W,W.JSC$6613_context_.yieldAllIterator_["throw"],k,W.JSC$6613_context_.JSC$6608_next_):(U_w(W.JSC$6613_context_,k),k=qK(W));return k};
this.return=function(k){return jDz(W,k)};
this[Symbol.iterator]=function(){return this}};
rxz=function(W){function k(n){return W.next(n)}
function C(n){return W.throw(n)}
return new Promise(function(n,N){function B(A){A.done?n(A.value):Promise.resolve(A.value).then(k,C).then(B,N)}
B(W.next())})};
_.F=function(W){return rxz(new _.Haw(new _.OaI(W)))};
Vi4=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(k){return Promise.resolve(W.next(k))};
this["throw"]=function(k){return new Promise(function(C,n){var N=W["throw"];N!==void 0?C(N.call(W,k)):(C=W["return"],C!==void 0&&C.call(W),n(new TypeError("i")))})};
W["return"]!==void 0&&(this["return"]=function(k){return Promise.resolve(W["return"](k))})};
_.v6=function(){for(var W=Number(this),k=[],C=W;C<arguments.length;C++)k[C-W]=arguments[C];return k};
R5("globalThis",function(W){return W||_.oq});
R5("Reflect",function(W){return W?W:{}});
R5("Reflect.construct",function(){return yxm});
R5("Reflect.setPrototypeOf",function(W){return W?W:_.o5?function(k,C){try{return(0,_.o5)(k,C),!0}catch(n){return!1}}:null});
R5("Promise",function(W){function k(){this.batch_=null}
function C(A){return A instanceof N?A:new N(function(w){w(A)})}
if(W&&(typeof _.oq.PromiseRejectionEvent!=="undefined"||!_.oq.Promise||_.oq.Promise.toString().indexOf("[native code]")===-1))return W;k.prototype.asyncExecute=function(A){if(this.batch_==null){this.batch_=[];var w=this;this.asyncExecuteFunction(function(){w.executeBatch_()})}this.batch_.push(A)};
var n=_.oq.setTimeout;k.prototype.asyncExecuteFunction=function(A){n(A,0)};
k.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var A=this.batch_;this.batch_=[];for(var w=0;w<A.length;++w){var x=A[w];A[w]=null;try{x()}catch(E){this.asyncThrow_(E)}}}this.batch_=null};
k.prototype.asyncThrow_=function(A){this.asyncExecuteFunction(function(){throw A;})};
var N=function(A){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var w=this.createResolveAndReject_();try{A(w.resolve,w.reject)}catch(x){w.reject(x)}};
N.prototype.createResolveAndReject_=function(){function A(E){return function(a){x||(x=!0,E.call(w,a))}}
var w=this,x=!1;return{resolve:A(this.resolveTo_),reject:A(this.JSC$6629_reject_)}};
N.prototype.resolveTo_=function(A){if(A===this)this.JSC$6629_reject_(new TypeError("j"));else if(A instanceof N)this.settleSameAsPromise_(A);else{a:switch(typeof A){case "object":var w=A!=null;break a;case "function":w=!0;break a;default:w=!1}w?this.resolveToNonPromiseObj_(A):this.fulfill_(A)}};
N.prototype.resolveToNonPromiseObj_=function(A){var w=void 0;try{w=A.then}catch(x){this.JSC$6629_reject_(x);return}typeof w=="function"?this.settleSameAsThenable_(w,A):this.fulfill_(A)};
N.prototype.JSC$6629_reject_=function(A){this.settle_(2,A)};
N.prototype.fulfill_=function(A){this.settle_(1,A)};
N.prototype.settle_=function(A,w){if(this.state_!=0)throw Error("k`"+A+"`"+w+"`"+this.state_);this.state_=A;this.result_=w;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
N.prototype.scheduleUnhandledRejectionCheck_=function(){var A=this;n(function(){if(A.notifyUnhandledRejection_()){var w=_.oq.console;typeof w!=="undefined"&&w.error(A.result_)}},1)};
N.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var A=_.oq.CustomEvent,w=_.oq.Event,x=_.oq.dispatchEvent;if(typeof x==="undefined")return!0;typeof A==="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof w==="function"?A=new w("unhandledrejection",{cancelable:!0}):(A=_.oq.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A));A.promise=this;A.reason=this.result_;return x(A)};
N.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var A=0;A<this.onSettledCallbacks_.length;++A)B.asyncExecute(this.onSettledCallbacks_[A]);this.onSettledCallbacks_=null}};
var B=new k;N.prototype.settleSameAsPromise_=function(A){var w=this.createResolveAndReject_();A.callWhenSettled_(w.resolve,w.reject)};
N.prototype.settleSameAsThenable_=function(A,w){var x=this.createResolveAndReject_();try{A.call(w,x.resolve,x.reject)}catch(E){x.reject(E)}};
N.prototype.then=function(A,w){function x(d,V){return typeof d=="function"?function(c){try{E(d(c))}catch(M){a(M)}}:V}
var E,a,X=new N(function(d,V){E=d;a=V});
this.callWhenSettled_(x(A,E),x(w,a));return X};
N.prototype.catch=function(A){return this.then(void 0,A)};
N.prototype.callWhenSettled_=function(A,w){function x(){switch(E.state_){case 1:A(E.result_);break;case 2:w(E.result_);break;default:throw Error("l`"+E.state_);}}
var E=this;this.onSettledCallbacks_==null?B.asyncExecute(x):this.onSettledCallbacks_.push(x);this.isRejectionHandled_=!0};
N.resolve=C;N.reject=function(A){return new N(function(w,x){x(A)})};
N.race=function(A){return new N(function(w,x){for(var E=_.b(A),a=E.next();!a.done;a=E.next())C(a.value).callWhenSettled_(w,x)})};
N.all=function(A){var w=_.b(A),x=w.next();return x.done?C([]):new N(function(E,a){function X(c){return function(M){d[c]=M;V--;V==0&&E(d)}}
var d=[],V=0;do d.push(void 0),V++,C(x.value).callWhenSettled_(X(d.length-1),a),x=w.next();while(!x.done)})};
return N});
var uH=function(W,k,C){if(W==null)throw new TypeError("m`"+C);if(k instanceof RegExp)throw new TypeError("n`"+C);return W+""};
R5("String.prototype.startsWith",function(W){return W?W:function(k,C){var n=uH(this,k,"startsWith"),N=n.length,B=k.length;C=Math.max(0,Math.min(C|0,n.length));for(var A=0;A<B&&C<N;)if(n[C++]!=k[A++])return!1;return A>=B}});
R5("Object.setPrototypeOf",function(W){return W||_.o5});
R5("Symbol.dispose",function(W){return W?W:Symbol("o")});
R5("SuppressedError",function(W){function k(C,n,N){if(!(this instanceof k))return new k(C,n,N);N=Error(N);"stack"in N&&(this.stack=N.stack);this.message=N.message;this.error=C;this.suppressed=n}
if(W)return W;_.D(k,Error);k.prototype.name="SuppressedError";return k});
var gsm=function(W,k,C){W instanceof String&&(W=String(W));for(var n=W.length,N=0;N<n;N++){var B=W[N];if(k.call(C,B,N,W))return{i:N,v:B}}return{i:-1,v:void 0}};
R5("Array.prototype.find",function(W){return W?W:function(k,C){return gsm(this,k,C).v}});
R5("WeakMap",function(W){function k(){}
function C(x){var E=typeof x;return E==="object"&&x!==null||E==="function"}
function n(x){if(!T_(x,B)){var E=new k;vsP(x,B,{value:E})}}
function N(x){var E=Object[x];E&&(Object[x]=function(a){if(a instanceof k)return a;Object.isExtensible(a)&&n(a);return E(a)})}
if(function(){if(!W||!Object.seal)return!1;try{var x=Object.seal({}),E=Object.seal({}),a=new W([[x,2],[E,3]]);if(a.get(x)!=2||a.get(E)!=3)return!1;a.delete(x);a.set(E,4);return!a.has(x)&&a.get(E)==4}catch(X){return!1}}())return W;
var B="$jscomp_hidden_"+Math.random();N("freeze");N("preventExtensions");N("seal");var A=0,w=function(x){this.JSC$6636_id_=(A+=Math.random()+1).toString();if(x){x=_.b(x);for(var E;!(E=x.next()).done;)E=E.value,this.set(E[0],E[1])}};
w.prototype.set=function(x,E){if(!C(x))throw Error("p");n(x);if(!T_(x,B))throw Error("q`"+x);x[B][this.JSC$6636_id_]=E;return this};
w.prototype.get=function(x){return C(x)&&T_(x,B)?x[B][this.JSC$6636_id_]:void 0};
w.prototype.has=function(x){return C(x)&&T_(x,B)&&T_(x[B],this.JSC$6636_id_)};
w.prototype.delete=function(x){return C(x)&&T_(x,B)&&T_(x[B],this.JSC$6636_id_)?delete x[B][this.JSC$6636_id_]:!1};
return w});
R5("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),x=new W(_.b([[w,"s"]]));if(x.get(w)!="s"||x.size!=1||x.get({x:4})||x.set({x:4},"t")!=x||x.size!=2)return!1;var E=x.entries(),a=E.next();if(a.done||a.value[0]!=w||a.value[1]!="s")return!1;a=E.next();return a.done||a.value[0].x!=4||a.value[1]!="t"||!E.next().done?!1:!0}catch(X){return!1}}())return W;
var k=new WeakMap,C=function(w){this[0]={};this[1]=B();this.size=0;if(w){w=_.b(w);for(var x;!(x=w.next()).done;)x=x.value,this.set(x[0],x[1])}};
C.prototype.set=function(w,x){w=w===0?0:w;var E=n(this,w);E.list||(E.list=this[0][E.id]=[]);E.entry?E.entry.value=x:(E.entry={next:this[1],previous:this[1].previous,head:this[1],key:w,value:x},E.list.push(E.entry),this[1].previous.next=E.entry,this[1].previous=E.entry,this.size++);return this};
C.prototype.delete=function(w){w=n(this,w);return w.entry&&w.list?(w.list.splice(w.index,1),w.list.length||delete this[0][w.id],w.entry.previous.next=w.entry.next,w.entry.next.previous=w.entry.previous,w.entry.head=null,this.size--,!0):!1};
C.prototype.clear=function(){this[0]={};this[1]=this[1].previous=B();this.size=0};
C.prototype.has=function(w){return!!n(this,w).entry};
C.prototype.get=function(w){return(w=n(this,w).entry)&&w.value};
C.prototype.entries=function(){return N(this,function(w){return[w.key,w.value]})};
C.prototype.keys=function(){return N(this,function(w){return w.key})};
C.prototype.values=function(){return N(this,function(w){return w.value})};
C.prototype.forEach=function(w,x){for(var E=this.entries(),a;!(a=E.next()).done;)a=a.value,w.call(x,a[1],a[0],this)};
C.prototype[Symbol.iterator]=C.prototype.entries;var n=function(w,x){var E=x&&typeof x;E=="object"||E=="function"?k.has(x)?E=k.get(x):(E=""+ ++A,k.set(x,E)):E="p_"+x;var a=w[0][E];if(a&&T_(w[0],E))for(w=0;w<a.length;w++){var X=a[w];if(x!==x&&X.key!==X.key||x===X.key)return{id:E,list:a,index:w,entry:X}}return{id:E,list:a,index:-1,entry:void 0}},N=function(w,x){var E=w[1];
return sDK(function(){if(E){for(;E.head!=w[1];)E=E.previous;for(;E.next!=E.head;)return E=E.next,{done:!1,value:x(E)};E=null}return{done:!0,value:void 0}})},B=function(){var w={};
return w.previous=w.next=w.head=w},A=0;
return C});
R5("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var C=Object.seal({x:4}),n=new W(_.b([C]));if(!n.has(C)||n.size!=1||n.add(C)!=n||n.size!=1||n.add({x:4})!=n||n.size!=2)return!1;var N=n.entries(),B=N.next();if(B.done||B.value[0]!=C||B.value[1]!=C)return!1;B=N.next();return B.done||B.value[0]==C||B.value[0].x!=4||B.value[1]!=B.value[0]?!1:N.next().done}catch(A){return!1}}())return W;
var k=function(C){this.JSC$6650_map_=new Map;if(C){C=_.b(C);for(var n;!(n=C.next()).done;)this.add(n.value)}this.size=this.JSC$6650_map_.size};
k.prototype.add=function(C){C=C===0?0:C;this.JSC$6650_map_.set(C,C);this.size=this.JSC$6650_map_.size;return this};
k.prototype.delete=function(C){C=this.JSC$6650_map_.delete(C);this.size=this.JSC$6650_map_.size;return C};
k.prototype.clear=function(){this.JSC$6650_map_.clear();this.size=0};
k.prototype.has=function(C){return this.JSC$6650_map_.has(C)};
k.prototype.entries=function(){return this.JSC$6650_map_.entries()};
k.prototype.values=function(){return this.JSC$6650_map_.values()};
k.prototype.keys=k.prototype.values;k.prototype[Symbol.iterator]=k.prototype.values;k.prototype.forEach=function(C,n){var N=this;this.JSC$6650_map_.forEach(function(B){return C.call(n,B,B,N)})};
return k});
R5("Math.log2",function(W){return W?W:function(k){return Math.log(k)/Math.LN2}});
R5("Object.values",function(W){return W?W:function(k){var C=[],n;for(n in k)T_(k,n)&&C.push(k[n]);return C}});
R5("Object.is",function(W){return W?W:function(k,C){return k===C?k!==0||1/k===1/C:k!==k&&C!==C}});
R5("Array.prototype.includes",function(W){return W?W:function(k,C){var n=this;n instanceof String&&(n=String(n));var N=n.length;C=C||0;for(C<0&&(C=Math.max(C+N,0));C<N;C++){var B=n[C];if(B===k||Object.is(B,k))return!0}return!1}});
R5("String.prototype.includes",function(W){return W?W:function(k,C){return uH(this,k,"includes").indexOf(k,C||0)!==-1}});
R5("Array.from",function(W){return W?W:function(k,C,n){C=C!=null?C:function(w){return w};
var N=[],B=typeof Symbol!="undefined"&&Symbol.iterator&&k[Symbol.iterator];if(typeof B=="function"){k=B.call(k);for(var A=0;!(B=k.next()).done;)N.push(C.call(n,B.value,A++))}else for(B=k.length,A=0;A<B;A++)N.push(C.call(n,k[A],A));return N}});
R5("Object.entries",function(W){return W?W:function(k){var C=[],n;for(n in k)T_(k,n)&&C.push([n,k[n]]);return C}});
R5("Number.isFinite",function(W){return W?W:function(k){return typeof k!=="number"?!1:!isNaN(k)&&k!==Infinity&&k!==-Infinity}});
R5("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
R5("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
R5("Number.isInteger",function(W){return W?W:function(k){return Number.isFinite(k)?k===Math.floor(k):!1}});
R5("Number.isSafeInteger",function(W){return W?W:function(k){return Number.isInteger(k)&&Math.abs(k)<=Number.MAX_SAFE_INTEGER}});
R5("String.prototype.endsWith",function(W){return W?W:function(k,C){var n=uH(this,k,"endsWith");C===void 0&&(C=n.length);C=Math.max(0,Math.min(C|0,n.length));for(var N=k.length;N>0&&C>0;)if(n[--C]!=k[--N])return!1;return N<=0}});
var Pl4=function(W,k){W instanceof String&&(W+="");var C=0,n=!1,N={next:function(){if(!n&&C<W.length){var B=C++;return{value:k(B,W[B]),done:!1}}n=!0;return{done:!0,value:void 0}}};
N[Symbol.iterator]=function(){return N};
return N};
R5("Array.prototype.entries",function(W){return W?W:function(){return Pl4(this,function(k,C){return[k,C]})}});
R5("Math.imul",function(W){return W?W:function(k,C){k=Number(k);C=Number(C);var n=k&65535,N=C&65535;return n*N+((k>>>16&65535)*N+n*(C>>>16&65535)<<16>>>0)|0}});
R5("Math.trunc",function(W){return W?W:function(k){k=Number(k);if(isNaN(k)||k===Infinity||k===-Infinity||k===0)return k;var C=Math.floor(Math.abs(k));return k<0?-C:C}});
R5("Number.isNaN",function(W){return W?W:function(k){return typeof k==="number"&&isNaN(k)}});
R5("Array.prototype.keys",function(W){return W?W:function(){return Pl4(this,function(k){return k})}});
R5("Array.prototype.values",function(W){return W?W:function(){return Pl4(this,function(k,C){return C})}});
R5("Array.prototype.fill",function(W){return W?W:function(k,C,n){var N=this.length||0;C<0&&(C=Math.max(0,N+C));if(n==null||n>N)n=N;n=Number(n);n<0&&(n=Math.max(0,N+n));for(C=Number(C||0);C<n;C++)this[C]=k;return this}});
var Uv=function(W){return W?W:Array.prototype.fill};
R5("Int8Array.prototype.fill",Uv);R5("Uint8Array.prototype.fill",Uv);R5("Uint8ClampedArray.prototype.fill",Uv);R5("Int16Array.prototype.fill",Uv);R5("Uint16Array.prototype.fill",Uv);R5("Int32Array.prototype.fill",Uv);R5("Uint32Array.prototype.fill",Uv);R5("Float32Array.prototype.fill",Uv);R5("Float64Array.prototype.fill",Uv);
R5("Object.fromEntries",function(W){return W?W:function(k){var C={};if(!(Symbol.iterator in k))throw new TypeError("r`"+k);k=k[Symbol.iterator].call(k);for(var n=k.next();!n.done;n=k.next()){n=n.value;if(Object(n)!==n)throw new TypeError("s");C[n[0]]=n[1]}return C}});
R5("String.prototype.replaceAll",function(W){return W?W:function(k,C){if(k instanceof RegExp&&!k.global)throw new TypeError("t");return k instanceof RegExp?this.replace(k,C):this.replace(new RegExp(String(k).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),C)}});
R5("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
R5("String.prototype.repeat",function(W){return W?W:function(k){var C=uH(this,null,"repeat");if(k<0||k>1342177279)throw new RangeError("u");k|=0;for(var n="";k;)if(k&1&&(n+=C),k>>>=1)C+=C;return n}});
R5("Array.prototype.findIndex",function(W){return W?W:function(k,C){return gsm(this,k,C).i}});
R5("Array.prototype.flatMap",function(W){return W?W:function(k,C){var n=[];Array.prototype.forEach.call(this,function(N,B){N=k.call(C,N,B,this);Array.isArray(N)?n.push.apply(n,N):n.push(N)});
return n}});
R5("String.prototype.codePointAt",function(W){return W?W:function(k){var C=uH(this,null,"codePointAt"),n=C.length;k=Number(k)||0;if(k>=0&&k<n){k|=0;var N=C.charCodeAt(k);if(N<55296||N>56319||k+1===n)return N;k=C.charCodeAt(k+1);return k<56320||k>57343?N:(N-55296)*1024+k+9216}}});
R5("String.fromCodePoint",function(W){return W?W:function(k){for(var C="",n=0;n<arguments.length;n++){var N=Number(arguments[n]);if(N<0||N>1114111||N!==Math.floor(N))throw new RangeError("v`"+N);N<=65535?C+=String.fromCharCode(N):(N-=65536,C+=String.fromCharCode(N>>>10&1023|55296),C+=String.fromCharCode(N&1023|56320))}return C}});
R5("String.prototype.padStart",function(W){return W?W:function(k,C){var n=uH(this,null,"padStart");k-=n.length;C=C!==void 0?String(C):" ";return(k>0&&C?C.repeat(Math.ceil(k/C.length)).substring(0,k):"")+n}});
R5("Promise.prototype.finally",function(W){return W?W:function(k){return this.then(function(C){return Promise.resolve(k()).then(function(){return C})},function(C){return Promise.resolve(k()).then(function(){throw C;
})})}});
R5("Object.hasOwn",function(W){return W?W:function(k,C){return Object.prototype.hasOwnProperty.call(k,C)}});
var K93=function(W){W=Math.trunc(W)||0;W<0&&(W+=this.length);if(!(W<0||W>=this.length))return this[W]};
R5("Array.prototype.at",function(W){return W?W:K93});
var Ov=function(W){return W?W:K93};
R5("Int8Array.prototype.at",Ov);R5("Uint8Array.prototype.at",Ov);R5("Uint8ClampedArray.prototype.at",Ov);R5("Int16Array.prototype.at",Ov);R5("Uint16Array.prototype.at",Ov);R5("Int32Array.prototype.at",Ov);R5("Uint32Array.prototype.at",Ov);R5("Float32Array.prototype.at",Ov);R5("Float64Array.prototype.at",Ov);R5("String.prototype.at",function(W){return W?W:K93});
R5("Math.sign",function(W){return W?W:function(k){k=Number(k);return k===0||isNaN(k)?k:k>0?1:-1}});
R5("Array.prototype.flat",function(W){return W?W:function(k){k=k===void 0?1:k;var C=[];Array.prototype.forEach.call(this,function(n){Array.isArray(n)&&k>0?(n=Array.prototype.flat.call(n,k-1),C.push.apply(C,n)):C.push(n)});
return C}});
R5("String.raw",function(W){return W?W:function(k,C){if(k==null)throw new TypeError("w");for(var n=k.raw,N=n.length,B="",A=0;A<N;++A)B+=n[A],A+1<N&&A+1<arguments.length&&(B+=String(arguments[A+1]));return B}});
R5("Reflect.ownKeys",function(W){return W?W:function(k){var C=[],n=Object.getOwnPropertyNames(k);k=Object.getOwnPropertySymbols(k);for(var N=0;N<n.length;N++)(n[N].substring(0,14)=="jscomp_symbol_"?k:C).push(n[N]);return C.concat(k)}});
R5("Object.getOwnPropertyDescriptors",function(W){return W?W:function(k){for(var C={},n=Reflect.ownKeys(k),N=0;N<n.length;N++)C[n[N]]=Object.getOwnPropertyDescriptor(k,n[N]);return C}});
R5("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var C=Object.seal({}),n=Object.seal({}),N=new W([C]);if(!N.has(C)||N.has(n))return!1;N.delete(C);N.add(n);return!N.has(C)&&N.has(n)}catch(B){return!1}}())return W;
var k=function(C){this.JSC$6656_map_=new WeakMap;if(C){C=_.b(C);for(var n;!(n=C.next()).done;)this.add(n.value)}};
k.prototype.add=function(C){this.JSC$6656_map_.set(C,!0);return this};
k.prototype.has=function(C){return this.JSC$6656_map_.has(C)};
k.prototype.delete=function(C){return this.JSC$6656_map_.delete(C)};
return k});
R5("Promise.allSettled",function(W){function k(n){return{status:"fulfilled",value:n}}
function C(n){return{status:"rejected",reason:n}}
return W?W:function(n){var N=this;n=Array.from(n,function(B){return N.resolve(B).then(k,C)});
return N.all(n)}});
R5("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var h7z,Ls,jq,Hq,Wrm,kZP,C7c,nRI,f7,Ns4;h7z=h7z||{};_.NX=this||self;_.$g=function(W,k,C){W=W.split(".");C=C||_.NX;for(var n;W.length&&(n=W.shift());)W.length||k===void 0?C[n]&&C[n]!==Object.prototype[n]?C=C[n]:C=C[n]={}:C[n]=k};
Ls=function(W){var k=_.QK("WIZ_global_data.oxN3nb");W=k&&k[W];return W!=null?W:!1};
jq=_.NX._F_toggles||[];Hq=function(){};
Hq.get=function(){return null};
_.QK=function(W,k){W=W.split(".");k=k||_.NX;for(var C=0;C<W.length;C++)if(k=k[W[C]],k==null)return null;return k};
_.rk=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.Fsm=function(W){var k=typeof W;return k!="object"?k:W?Array.isArray(W)?"array":k:"null"};
_.qX=function(W){var k=_.Fsm(W);return k=="array"||k=="object"&&typeof W.length=="number"};
_.O2=function(W){var k=typeof W;return k=="object"&&W!=null||k=="function"};
_.Hw=function(W){return Object.prototype.hasOwnProperty.call(W,Wrm)&&W[Wrm]||(W[Wrm]=++kZP)};
Wrm="closure_uid_"+(Math.random()*1E9>>>0);kZP=0;C7c=function(W,k,C){return W.call.apply(W.bind,arguments)};
nRI=function(W,k,C){if(!W)throw Error();if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return function(){var N=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(N,n);return W.apply(k,N)}}return function(){return W.apply(k,arguments)}};
_.fN=function(W,k,C){_.fN=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?C7c:nRI;return _.fN.apply(null,arguments)};
_.lW=function(W,k){var C=Array.prototype.slice.call(arguments,1);return function(){var n=C.slice();n.push.apply(n,arguments);return W.apply(this,n)}};
_.gk=function(){return Date.now()};
f7=function(W){return W};
_.Pq=function(W,k){function C(){}
C.prototype=k.prototype;W.superClass_=k.prototype;W.prototype=new C;W.prototype.constructor=W;W.base=function(n,N,B){for(var A=Array(arguments.length-2),w=2;w<arguments.length;w++)A[w-2]=arguments[w];return k.prototype[N].apply(n,A)}};
Ns4=function(W){return W};var eY,sC;_.U=function(W,k,C,n){var N=arguments.length,B=N<3?k:n===null?n=Object.getOwnPropertyDescriptor(k,C):n,A;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")B=Reflect.decorate(W,k,C,n);else for(var w=W.length-1;w>=0;w--)if(A=W[w])B=(N<3?A(B):N>3?A(k,C,B):A(k,C))||B;return N>3&&B&&Object.defineProperty(k,C,B),B};
_.O=function(W,k){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,k)};
eY=function(W,k){if(k!==null&&k!==void 0){if(typeof k!=="object"&&typeof k!=="function")throw new TypeError("x");if(C===void 0){if(!Symbol.dispose)throw new TypeError("z");var C=k[Symbol.dispose]}if(typeof C!=="function")throw new TypeError("A");W.stack.push({value:k,dispose:C,async:!1})}return k};
sC=function(W){function k(B){W.error=W.hasError?new SuppressedError(B,W.error,"An error was suppressed during disposal."):B;W.hasError=!0}
function C(){for(;n=W.stack.pop();)try{if(!n.async&&N===1)return N=0,W.stack.push(n),Promise.resolve().then(C);if(n.dispose){var B=n.dispose.call(n.value);if(n.async)return N|=2,Promise.resolve(B).then(C,function(A){k(A);return C()})}else N|=1}catch(A){k(A)}if(N===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var n,N=0;C()};_.Pq(_.Ww,Error);_.Ww.prototype.name="CustomError";var YHX;var BsI=void 0,bom,Ar4=typeof TextDecoder!=="undefined",nz4,Cwp=typeof String.prototype.isWellFormed==="function",k4z=typeof TextEncoder!=="undefined";var Frc;_.aL=function(W){for(var k=[],C=0,n=0;n<W.length;n++){var N=W.charCodeAt(n);N<128?k[C++]=N:(N<2048?k[C++]=N>>6|192:((N&64512)==55296&&n+1<W.length&&(W.charCodeAt(n+1)&64512)==56320?(N=65536+((N&1023)<<10)+(W.charCodeAt(++n)&1023),k[C++]=N>>18|240,k[C++]=N>>12&63|128):k[C++]=N>>12|224,k[C++]=N>>6&63|128),k[C++]=N&63|128)}return k};
Frc=function(W){for(var k=[],C=0,n=0;C<W.length;){var N=W[C++];if(N<128)k[n++]=String.fromCharCode(N);else if(N>191&&N<224){var B=W[C++];k[n++]=String.fromCharCode((N&31)<<6|B&63)}else if(N>239&&N<365){B=W[C++];var A=W[C++],w=W[C++];N=((N&7)<<18|(B&63)<<12|(A&63)<<6|w&63)-65536;k[n++]=String.fromCharCode(55296+(N>>10));k[n++]=String.fromCharCode(56320+(N&1023))}else B=W[C++],A=W[C++],k[n++]=String.fromCharCode((N&15)<<12|(B&63)<<6|A&63)}return k.join("")};var wIX,x4P,lh3,tdP,ERm,ahz,XIw;_.Ks=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]};
wIX=/&/g;x4P=/</g;lh3=/>/g;tdP=/"/g;ERm=/'/g;ahz=/\x00/g;XIw=/[\x00&<>"']/;var h3=!!(jq[0]&4096),fhw=!!(jq[0]&8192),d4m=!!(jq[0]&2),m4w=!!(jq[0]&4),zvz=!!(jq[0]&16),D4K=!!(jq[0]>>14&1);var d3=h3?fhw:Ls(610401301),VdI=h3?d4m:Ls(513659523),Jr2=h3?m4w:Ls(568333945),aMp=h3?zvz:Ls(1331761403),crm=h3?D4K:Ls(1981196515);var mm,Ihm=_.NX.navigator;mm=Ihm?Ihm.userAgentData||null:null;var v$;_.$z=function(W,k){return Array.prototype.indexOf.call(W,k,void 0)};
_.eO=function(W,k,C){Array.prototype.forEach.call(W,k,C)};
_.W9=function(W,k,C){return Array.prototype.filter.call(W,k,C)};
_.cD=function(W,k,C){return Array.prototype.map.call(W,k,C)};
v$=function(W,k,C){return Array.prototype.some.call(W,k,C)};
_.F2w=function(W,k,C){return Array.prototype.every.call(W,k,C)};var k4=function(W){k4[" "](W);return W},Pgw;
k4[" "]=function(){};
Pgw=function(W,k){try{return k4(W[k]),!0}catch(C){}return!1};
_.KKI=function(W,k,C,n){n=n?n(k):k;return Object.prototype.hasOwnProperty.call(W,n)?W[n]:W[n]=C(k)};var SHX,MdP,Qoc,vR2,evI,H_p,so4,GZw,yrm,Jqw,Zom,Rvw,uu4;_.CtP=function(){return _.NX.navigator||null};
SHX=B3w();_.Cr=bIp();_.GW=DX("Edge");MdP=_.GW||_.Cr;_.nr=DX("Gecko")&&!(_.aJ(_.fI(),"WebKit")&&!DX("Edge"))&&!(DX("Trident")||DX("MSIE"))&&!DX("Edge");_.Nb=_.aJ(_.fI(),"WebKit")&&!DX("Edge");Qoc=_.Nb&&DX("Mobile");_.pIz=_.Xwp();vR2=_.fXz();evI=(MX()?mm.platform==="Linux":DX("Linux"))||_.dXc();H_p=_.EzK();so4=aXJ();GZw=DX("iPad");yrm=DX("iPod");_.$4X=_.QP();Jqw=_.aJ(_.fI(),"KaiOS");Zom=function(){var W=_.NX.document;return W?W.documentMode:void 0};
a:{var oRI="",ioc=function(){var W=_.fI();if(_.nr)return/rv:([^\);]+)(\)|;)/.exec(W);if(_.GW)return/Edge\/([\d\.]+)/.exec(W);if(_.Cr)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.Nb)return/WebKit\/(\S+)/.exec(W);if(SHX)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
ioc&&(oRI=ioc?ioc[1]:"");if(_.Cr){var TsI=Zom();if(TsI!=null&&TsI>parseFloat(oRI)){Rvw=String(TsI);break a}}Rvw=oRI}_.qHX=Rvw;if(_.NX.document&&_.Cr){var U4w=Zom();uu4=U4w?U4w:parseInt(_.qHX,10)||void 0}else uu4=void 0;_.OoJ=uu4;var aF4,X3m,LrX;_.Y4=JK();aF4=aXJ()||DX("iPod");X3m=DX("iPad");LrX=_.wwm();_.B9=_.IJ();_.D5=_.Fmm()&&!_.QP();var joK,bA,Hom,pDP,rrw,dMI,P72,gR4;joK={};bA=null;Hom=_.nr||_.Nb;pDP=Hom||typeof _.NX.btoa=="function";rrw=Hom||!_.D5&&typeof _.NX.atob=="function";_.zC=function(W,k){k===void 0&&(k=0);gR4();k=joK[k];for(var C=Array(Math.floor(W.length/3)),n=k[64]||"",N=0,B=0;N<W.length-2;N+=3){var A=W[N],w=W[N+1],x=W[N+2],E=k[A>>2];A=k[(A&3)<<4|w>>4];w=k[(w&15)<<2|x>>6];x=k[x&63];C[B++]=E+A+w+x}E=0;x=n;switch(W.length-N){case 2:E=W[N+1],x=k[(E&15)<<2]||n;case 1:W=W[N],C[B]=k[W>>2]+k[(W&3)<<4|E>>4]+x+n}return C.join("")};
dMI=function(W,k){if(rrw&&!k)return _.NX.atob(W);var C="";P72(W,function(n){C+=String.fromCharCode(n)});
return C};
_.SZ2=function(W){var k=[];P72(W,function(C){k.push(C)});
return k};
_.Pw=function(W){var k=W.length,C=k*3/4;C%3?C=Math.floor(C):_.E2("=.",W[k-1])&&(C=_.E2("=.",W[k-2])?C-2:C-1);var n=new Uint8Array(C),N=0;P72(W,function(B){n[N++]=B});
return N!==C?n.subarray(0,N):n};
P72=function(W,k){function C(x){for(;n<W.length;){var E=W.charAt(n++),a=bA[E];if(a!=null)return a;if(!_.tK(E))throw Error("E`"+E);}return x}
gR4();for(var n=0;;){var N=C(-1),B=C(0),A=C(64),w=C(64);if(w===64&&N===-1)break;k(N<<2|B>>4);A!=64&&(k(B<<4&240|A>>2),w!=64&&k(A<<6&192|w))}};
gR4=function(){if(!bA){bA={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),k=["+/=","+/","-_=","-_.","-_"],C=0;C<5;C++){var n=W.concat(k[C].split(""));joK[C]=n;for(var N=0;N<n.length;N++){var B=n[N];bA[B]===void 0&&(bA[B]=N)}}}};var OIP=typeof Uint8Array!=="undefined",sJm=!_.Cr&&typeof btoa==="function",G4m=/[-_.]/g,vzw={"-":"+",_:"/",".":"="},dx={};var fA,hv3;fA=function(W,k){if(k!==dx)throw Error("G");this.JSC$6687_value_=W;if(W!=null&&W.length===0)throw Error("F");};
_.zz=function(){return Kr4||(Kr4=new fA(null,dx))};
hv3=function(W){return new Uint8Array(Q12(W)||0)};
fA.prototype.isEmpty=function(){return this.JSC$6687_value_==null};
fA.prototype.sizeBytes=function(){var W=Q12(this);return W?W.length:0};
var Q12=function(W){if(dx!==dx)throw Error("G");var k=W.JSC$6687_value_;k=k==null||OIP&&k!=null&&k instanceof Uint8Array?k:typeof k==="string"?yKJ(k):null;return k==null?k:W.JSC$6687_value_=k},Kr4;var ZIw=void 0;var k2=typeof Symbol==="function"&&typeof Symbol()==="symbol",W3w=W8("jas",void 0,!0),sIc=W8(void 0,"0di"),o1=W8(void 0,"1oa"),dZ=W8(void 0,Symbol()),OAP=W8(void 0,"0ub"),wYw=W8(void 0,"0actk"),tt=W8("m_m","messagePrototypeMarker",!0),nBJ=W8(void 0,"vps"),jIP=W8();var iII,ozc,vY,k8X;iII={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ozc=Object.defineProperties;_.B8=k2?W3w:"internalArrayState";k8X=[];bb(k8X,7);vY=Object.freeze(k8X);var a1={},UXw={},Cap=function(W,k,C){this.iterable=W;this.mapper=k;this.thisArg=C};
Cap.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
Cap.prototype[Symbol.iterator]=function(){return this};
var nlX=Object.freeze({}),c8={};_.Ng2=v8(function(W){return W!==null&&W!==void 0});var Pww=v8(function(W){return typeof W==="number"}),gzc=v8(function(W){return typeof W==="string"}),hc4=v8(function(W){return typeof W==="boolean"}),Yum=v8(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),I5z=v8(function(W){return typeof W==="function"}),p$p=v8(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var KmX=typeof _.NX.BigInt==="function"&&typeof _.NX.BigInt(0)==="bigint";var AV4,Bg3,F34,b$J;_.mi=v8(function(W){return KmX?W>=Bg3&&W<=b$J:W[0]==="-"?Wsm(W,AV4):Wsm(W,F34)});
AV4=Number.MIN_SAFE_INTEGER.toString();Bg3=KmX?BigInt(Number.MIN_SAFE_INTEGER):void 0;F34=Number.MAX_SAFE_INTEGER.toString();b$J=KmX?BigInt(Number.MAX_SAFE_INTEGER):void 0;var wo3=typeof Uint8Array.prototype.slice==="function",Gz=0,yY=0,w6I;var hS,YB,qS,BY,lZK;hS=typeof BigInt==="function"?BigInt.asIntN:void 0;_.bE=typeof BigInt==="function"?BigInt.asUintN:void 0;YB=Number.isSafeInteger;qS=Number.isFinite;BY=Math.trunc;lZK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var NZK={};var qAI={},xc4=function(){try{var W=function(){return yxm(Map,[],this.constructor)};
_.D(W,Map);k4(new W);return!1}catch(k){return!0}}(),Ap=function(){this.JSC$6715_map_=new Map};
_.Y=Ap.prototype;_.Y.get=function(W){return this.JSC$6715_map_.get(W)};
_.Y.set=function(W,k){this.JSC$6715_map_.set(W,k);this.size=this.JSC$6715_map_.size;return this};
_.Y.delete=function(W){W=this.JSC$6715_map_.delete(W);this.size=this.JSC$6715_map_.size;return W};
_.Y.clear=function(){this.JSC$6715_map_.clear();this.size=this.JSC$6715_map_.size};
_.Y.has=function(W){return this.JSC$6715_map_.has(W)};
_.Y.entries=function(){return this.JSC$6715_map_.entries()};
_.Y.keys=function(){return this.JSC$6715_map_.keys()};
_.Y.values=function(){return this.JSC$6715_map_.values()};
_.Y.forEach=function(W,k){return this.JSC$6715_map_.forEach(W,k)};
Ap.prototype[Symbol.iterator]=function(){return this.entries()};
var DA=function(){if(xc4)return Object.setPrototypeOf(Ap.prototype,Map.prototype),Object.defineProperties(Ap.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ap;var W=function(){return yxm(Map,[],this.constructor)};
_.D(W,Map);return W}(),X6=function(W,k,C,n){C=C===void 0?ZAm:C;
n=n===void 0?ZAm:n;var N=DA.call(this)||this;N.arrayState=W[_.B8]|0;N.valueCtor=k;N.keyToApi=C;N.valueToApi=N.valueCtor?o2P:n;for(var B=0;B<W.length;B++){var A=W[B],w=C(A[0],!1,!0),x=A[1];k?x===void 0&&(x=null):x=n(A[1],!1,!0,void 0,void 0,N.arrayState);DA.prototype.set.call(N,w,x)}return N};
_.D(X6,DA);var lqI=function(W){if(W.arrayState&2)throw Error("K");};
_.Y=X6.prototype;_.Y.clear=function(){lqI(this);DA.prototype.clear.call(this)};
_.Y.delete=function(W){lqI(this);return DA.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.Y.entries=function(){if(this.valueCtor){var W=DA.prototype.keys.call(this);W=new Cap(W,iA2,this)}else W=DA.prototype.entries.call(this);return W};
_.Y.values=function(){if(this.valueCtor){var W=DA.prototype.keys.call(this);W=new Cap(W,X6.prototype.get,this)}else W=DA.prototype.values.call(this);return W};
_.Y.forEach=function(W,k){this.valueCtor?DA.prototype.forEach.call(this,function(C,n,N){W.call(k,N.get(n),n,N)}):DA.prototype.forEach.call(this,W,k)};
_.Y.set=function(W,k){lqI(this);W=this.keyToApi(W,!0,!1);return W==null?this:k==null?(DA.prototype.delete.call(this,W),this):DA.prototype.set.call(this,W,this.valueToApi(k,!0,!0,this.valueCtor,!1,this.arrayState))};
_.Y.has=function(W){return DA.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.Y.get=function(W){W=this.keyToApi(W,!1,!1);var k=DA.prototype.get.call(this,W);if(k!==void 0){var C=this.valueCtor;return C?(C=this.valueToApi(k,!1,!0,C,this.callToMutableOnAccess,this.arrayState),C!==k&&DA.prototype.set.call(this,W,C),C):k}};
X6.prototype[Symbol.iterator]=function(){return this.entries()};
X6.prototype.toJSON=void 0;var TxI;var Pbp=function(){},W_J=function(W,k){for(var C in W)!isNaN(C)&&k(W,+C,W[C])},Ks4=function(W){var k=new Pbp;
W_J(W,function(C,n,N){k[n]=RI(N)});
k.reviveUnknownFields=W.reviveUnknownFields;return k},HAI={reviveIntoImmutable:!0};var g2P;var YS4,BZm;var t2m,yT,kI,Bx,ElK,X2,NP,aqz,Xo4,zv,fq2,DB,c9,IU;t2m=_.sA(0);_.F2={};_.wv=function(W,k,C,n,N){k=yT(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k,C,N);if(k!==null||n&&W.noLegacyNull!==UXw)return k};
yT=function(W,k,C,n){if(k===-1)return null;var N=k+(C?0:-1),B=W.length-1;if(!(B<1+(C?0:-1))){if(N>=B){var A=W[B];if(A!=null&&typeof A==="object"&&A.constructor===Object){C=A[k];var w=!0}else if(N===B)C=A;else return}else C=W[N];if(n&&C!=null){n=n(C);if(n==null)return n;if(!Object.is(n,C))return w?A[k]=n:W[N]=n,n}return C}};
_.Uh=function(W,k,C,n){QT(W);var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p7(N,N[_.B8]|0,k,C,n);return W};
_.x4=function(W,k,C){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JtP(W,W[_.B8]|0,k,C)!==void 0};
_.lA=function(W,k,C,n){var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JtP(N,N[_.B8]|0,k,Bx(W,n,C))!==void 0};
_.rP=function(W){return W===nlX?2:4};
_.tp=function(W,k){W=_.wv(W,k,void 0,void 0,fAI);return W==null?_.zz():W};
kI=function(W,k,C,n){QT(W);var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.B8]|0;if(n==null){var A=z$m(N);if(Dum(A,N,B,C)===k)A.set(C,0);else return W}else B=V7m(N,B,C,k);p7(N,B,k,n);return W};
_.EM=function(W,k,C,n){var N=W[_.B8]|0,B=II(N);N=V7m(W,N,C,k,B);p7(W,N,k,n,B)};
Bx=function(W,k,C){return _.aU(W,k)===C?C:-1};
_.aU=function(W,k){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Dum(z$m(W),W,void 0,k,void 0)};
ElK=function(W,k,C){var n=W[_.B8]|0,N=II(n),B=yT(W,C,N);if(B!=null&&B[tt]===a1){if(!tS(B))return Mu(B),B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var A=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(B)&&(A=B);if(A){var w=A[_.B8]|0;w&2&&(A=S7(A,w))}A=Atc(A,k,!0);A!==B&&p7(W,n,C,A,N);return A};
_.q7=function(W,k,C,n){var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.B8]|0;k=JtP(N,B,k,C,n);if(k==null)return k;B=N[_.B8]|0;if(!tS(W,B)){var A=RCp(k);A!==k&&(Mu(W)&&(N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.B8]|0),k=A,p7(N,B,C,k,n))}return k};
_.HD=function(W,k,C,n){var N=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ctw(W,N,N[_.B8]|0,k,C,n,!1,!0)};
_.B6=function(W,k,C,n){C=IAm(C);_.Uh(W,k,C,n);return W};
_.b5=function(W,k,C,n){n=IAm(n);kI(W,k,C,n);return W};
X2=function(W,k,C){QT(W);var n=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=n[_.B8]|0;if(C==null)return p7(n,N,k),W;for(var B=C===vY?7:C[_.B8]|0,A=B,w=GC(B),x=w||Object.isFrozen(C),E=!0,a=!0,X=0;X<C.length;X++){var d=C[X];w||(d=tS(d),E&&(E=!d),a&&(a=d))}w||(B=E?13:5,B=a?B&-4097:B|4096);x&&B===A||(C=RI(C),A=0,B=e7(B,N));B!==A&&bb(C,B);p7(n,N,k,C);return W};
NP=function(W,k,C,n){M7I(W,k,C,n);return W};
aqz=function(W,k,C){M7I(W,k,fr,void 0,C,1,!0);return W};
_.dv=function(W,k,C){W=_.wv(W,k,void 0,C);W!=null&&(typeof W==="bigint"?(0,_.mi)(W)?W=Number(W):(W=hS(64,W),W=(0,_.mi)(W)?Number(W):String(W)):W=_.UA(W)?typeof W==="number"?WY(W):KA(W):void 0);return W};
_.ml=function(W,k){var C=C===void 0?!1:C;var n;return(n=_.xSp(_.wv(W,k)))!=null?n:C};
_.gP=function(W,k,C){C=C===void 0?0:C;var n;return(n=_.P8(_.wv(W,k)))!=null?n:C};
Xo4=function(W,k){var C=C===void 0?0:C;W=_.E2p(_.wv(W,k));return W!=null?W:C};
zv=function(W,k,C){C=C===void 0?t2m:C;W=_.wv(W,k);k=typeof W;W=W==null?W:k==="bigint"?_.sA(hS(64,W)):_.UA(W)?k==="string"?X8z(W):fZ4(W):void 0;return W!=null?W:C};
fq2=function(W){var k=k===void 0?t2m:k;W=_.wv(W,23);var C=typeof W;W=W==null?W:C==="bigint"?_.sA((0,_.bE)(64,W)):_.UA(W)?C==="string"?_.QIm(W):_.SAX(W):void 0;return W!=null?W:k};
DB=function(W,k){var C=C===void 0?0:C;var n;return(n=_.wv(W,k,void 0,void 0,_.ASw))!=null?n:C};
_.Vo=function(W,k,C,n){C=C===void 0?"":C;var N;return(N=_.lE(_.wv(W,k,n)))!=null?N:C};
_.Jp=function(W,k){var C=C===void 0?0:C;var n;return(n=_.rx(_.wv(W,k)))!=null?n:C};
c9=function(W,k){var C=C===void 0?"0":C;W=p82(_.wv(W,k),!0);return W!=null?W:C};
IU=function(W,k,C){return _.Vo(W,Bx(W,C,k))};
_.St=function(W,k,C,n){return _.q7(W,k,Bx(W,n,C),void 0)};
_.FK=function(W,k){return _.lE(_.wv(W,k,void 0,_.F2))};
_.CN=function(W,k,C){return _.Uh(W,k,w8J(C))};
_.da=function(W,k,C){return _.ZA(W,k,w8J(C),!1)};
_.Mb=function(W,k,C){return _.Uh(W,k,_.gx(C))};
_.AB=function(W,k,C){return _.Uh(W,k,kB(C))};
_.fU=function(W,k,C){return _.Uh(W,k,wZ(C))};
_.u2=function(W,k,C,n){return _.ZA(W,k,wZ(C),"",n)};
_.up=function(W,k,C){return _.Uh(W,k,C==null?C:_.OA(C))};
_.Qo=function(W,k,C){return _.ZA(W,k,C==null?C:_.OA(C),0)};var iE=function(W,k,C){this.buffer=W;if(C&&!k)throw Error();this.JSC$6727_isImmutable=k};var dcI=function(W,k,C,n){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.init(W,k,C,n)},pr,z0X,DcX,JV2,gB3;
_.Y=dcI.prototype;_.Y.init=function(W,k,C,n){var N=n===void 0?{}:n;n=N.aliasBytesFields===void 0?!1:N.aliasBytesFields;N=N.treatNewDataAsImmutable===void 0?!1:N.treatNewDataAsImmutable;this.aliasBytesFields=n;this.treatNewDataAsImmutable=N;W&&(W=pYw(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$6727_isImmutable,this.JSC$6730_start_=k||0,this.end_=C!==void 0?this.JSC$6730_start_+C:this.bytes_.length,this.cursor_=this.JSC$6730_start_)};
_.Y.free=function(){this.clear();mc3.length<100&&mc3.push(this)};
_.Y.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.aliasBytesFields=!1};
_.Y.reset=function(){this.cursor_=this.JSC$6730_start_};
_.Y.atEnd=function(){return this.cursor_==this.end_};
_.v9=function(W,k){var C=0,n=0,N=0,B=W.bytes_,A=W.cursor_;do{var w=B[A++];C|=(w&127)<<N;N+=7}while(N<32&&w&128);N>32&&(n|=(w&127)>>4);for(N=3;N<32&&w&128;N+=7)w=B[A++],n|=(w&127)<<N;pr(W,A);if(w<128)return k(C>>>0,n>>>0);throw Error("X");};
pr=function(W,k){W.cursor_=k;if(k>W.end_)throw Error("Y`"+k+"`"+W.end_);};
_.et=function(W){var k=W.bytes_,C=W.cursor_,n=k[C++],N=n&127;if(n&128&&(n=k[C++],N|=(n&127)<<7,n&128&&(n=k[C++],N|=(n&127)<<14,n&128&&(n=k[C++],N|=(n&127)<<21,n&128&&(n=k[C++],N|=n<<28,n&128&&k[C++]&128&&k[C++]&128&&k[C++]&128&&k[C++]&128&&k[C++]&128)))))throw Error("X");pr(W,C);return N};
_.sM=function(W){var k=W.bytes_,C=W.cursor_,n=k[C],N=k[C+1],B=k[C+2];k=k[C+3];pr(W,W.cursor_+4);return(n<<0|N<<8|B<<16|k<<24)>>>0};
z0X=function(W){var k=_.sM(W);W=_.sM(W);return n22(k,W)};
DcX=function(W){var k=_.sM(W),C=_.sM(W);W=(C>>31)*2+1;var n=C>>>20&2047;k=4294967296*(C&1048575)+k;return n==2047?k?NaN:W*Infinity:n==0?W*4.9E-324*k:W*Math.pow(2,n-1075)*(k+4503599627370496)};
_.V2w=function(W){for(var k=0,C=W.cursor_,n=C+10,N=W.bytes_;C<n;){var B=N[C++];k|=B;if((B&128)===0)return pr(W,C),!!(k&127)}throw Error("X");};
JV2=function(W,k){if(k<0)throw Error("Z`"+k);var C=W.cursor_,n=C+k;if(n>W.end_)throw Error("Y`"+(W.end_-C)+"`"+k);W.cursor_=n;return C};
gB3=function(W,k){if(k==0)return _.zz();var C=JV2(W,k);W.aliasBytesFields&&W.bytesAreImmutable_?C=W.bytes_.subarray(C,C+k):(W=W.bytes_,k=C+k,C=C===k?new Uint8Array(0):wo3?W.slice(C,k):new Uint8Array(W.subarray(C,k)));return C.length==0?_.zz():new fA(C,dx)};
dcI.prototype.getDataView=function(){var W=this.dataView_;W||(W=this.bytes_,W=this.dataView_=new DataView(W.buffer,W.byteOffset,W.byteLength));return W};
var mc3=[];var IqP=function(W,k,C,n){if(mc3.length){var N=mc3.pop();N.init(W,k,C,n);W=N}else W=new dcI(W,k,C,n);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;cV3(this,n)},cV3=function(W,k){k=k===void 0?{}:k;
W.discardUnknownFields=k.discardUnknownFields===void 0?!1:k.discardUnknownFields},h$m=function(W,k,C,n){if(Suw.length){var N=Suw.pop();
cV3(N,n);N.decoder_.init(W,k,C,n);return N}return new IqP(W,k,C,n)},j1K,rtp,M2m,Suw;
IqP.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Suw.length<100&&Suw.push(this)};
IqP.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
j1K=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var k=_.et(W.decoder_)>>>0,C=k>>>3;k&=7;if(!(k>=0&&k<=5))throw Error("T`"+k+"`"+W.fieldCursor_);if(C<1)throw Error("U`"+C+"`"+W.fieldCursor_);W.nextField_=C;W.nextWireType_=k;return!0};
rtp=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?rtp(W):_.V2w(W.decoder_);break;case 1:W=W.decoder_;pr(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)rtp(W);else{var k=_.et(W.decoder_)>>>0;W=W.decoder_;pr(W,W.cursor_+k)}break;case 5:W=W.decoder_;pr(W,W.cursor_+4);break;case 3:k=W.nextField_;do{if(!j1K(W))throw Error("V");if(W.nextWireType_==4){if(W.nextField_!=k)throw Error("W");break}rtp(W)}while(1);break;default:throw Error("T`"+W.nextWireType_+"`"+W.fieldCursor_);}};
M2m=function(W,k,C){var n=W.decoder_.end_,N=_.et(W.decoder_)>>>0,B=W.decoder_.cursor_+N,A=B-n;A<=0&&(W.decoder_.end_=B,C(k,W,void 0,void 0,void 0),A=B-W.decoder_.cursor_);if(A)throw Error("S`"+N+"`"+(N-A));W.decoder_.cursor_=B;W.decoder_.end_=n};
_.QwX=function(W){var k=_.et(W.decoder_)>>>0;W=W.decoder_;var C=JV2(W,k);W=W.bytes_;if(Ar4){var n=W,N;(N=bom)||(N=bom=new TextDecoder("utf-8",{fatal:!0}));k=C+k;n=C===0&&k===n.length?n:n.subarray(C,k);try{var B=N.decode(n)}catch(E){if(BsI===void 0){try{N.decode(new Uint8Array([128]))}catch(a){}try{N.decode(new Uint8Array([97])),BsI=!0}catch(a){BsI=!1}}!BsI&&(bom=void 0);throw E;}}else{B=C;k=B+k;C=[];for(var A=null,w,x;B<k;)w=W[B++],w<128?C.push(w):w<224?B>=k?CI():(x=W[B++],w<194||kz(x)?(B--,CI()):
C.push((w&31)<<6|x&63)):w<240?B>=k-1?CI():(x=W[B++],kz(x)||w===224&&x<160||w===237&&x>=160||kz(N=W[B++])?(B--,CI()):C.push((w&15)<<12|(x&63)<<6|N&63)):w<=244?B>=k-2?CI():(x=W[B++],kz(x)||(w<<28)+(x-144)>>30!==0||kz(N=W[B++])||kz(n=W[B++])?(B--,CI()):(w=(w&7)<<18|(x&63)<<12|(N&63)<<6|n&63,w-=65536,C.push((w>>10&1023)+55296,(w&1023)+56320))):CI(),C.length>=8192&&(A=Wmm(A,C),C.length=0);B=Wmm(A,C)}return B};
_.poX=function(W){var k=_.et(W.decoder_)>>>0;return gB3(W.decoder_,k)};
_.vl3=function(W,k,C){var n=_.et(W.decoder_)>>>0;for(n=W.decoder_.cursor_+n;W.decoder_.cursor_<n;)C.push(k(W.decoder_))};
Suw=[];_.US=function(W,k,C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,k,C)};
_.US.prototype.toJSON=function(){return VT(this)};
_.US.prototype.serialize=function(W){return JSON.stringify(VT(this,W))};
var QeX=function(W,k){if(k==null||k=="")return new W;k=JSON.parse(k);if(!Array.isArray(k))throw Error("$");return new W(umI(k))};
_.US.prototype.getExtension=function(W){Lsm(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);rSm(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.rP(),W.JSC$6740_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$6740_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.rP(),W.JSC$6740_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$6740_hasMessageId)};
_.US.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(S7(W,W[_.B8]|0,!1))};
_.US.prototype[tt]=a1;_.US.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var e0J=function(W,k){this.JSC$6742_lo=W>>>0;this.JSC$6742_hi=k>>>0},G8m=function(W){if(!W)return swX||(swX=new e0J(0,0));
if(!/^\d+$/.test(W))return null;bAJ(W);return new e0J(Gz,yY)},swX,E3I=function(W,k){this.JSC$6744_lo=W>>>0;
this.JSC$6744_hi=k>>>0},ll3=function(W){if(!W)return yVI||(yVI=new E3I(0,0));
if(!/^-?\d+$/.test(W))return null;bAJ(W);return new E3I(Gz,yY)},yVI;var $cw=function(){this.JSC$6746_buffer_=[]},tNP,Z$K;
$cw.prototype.length=function(){return this.JSC$6746_buffer_.length};
$cw.prototype.end=function(){var W=this.JSC$6746_buffer_;this.JSC$6746_buffer_=[];return W};
tNP=function(W,k,C){for(;C>0||k>127;)W.JSC$6746_buffer_.push(k&127|128),k=(k>>>7|C<<25)>>>0,C>>>=7;W.JSC$6746_buffer_.push(k)};
Z$K=function(W,k){for(;k>127;)W.JSC$6746_buffer_.push(k&127|128),k>>>=7;W.JSC$6746_buffer_.push(k)};
_.alw=function(W,k){if(k>=0)Z$K(W,k);else{for(var C=0;C<9;C++)W.JSC$6746_buffer_.push(k&127|128),k>>=7;W.JSC$6746_buffer_.push(1)}};
_.PY=function(W,k){W.JSC$6746_buffer_.push(k>>>0&255);W.JSC$6746_buffer_.push(k>>>8&255);W.JSC$6746_buffer_.push(k>>>16&255);W.JSC$6746_buffer_.push(k>>>24&255)};var R0X,OS,flP,zrm;R0X=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new $cw};
OS=function(W,k){k.length!==0&&(W.blocks_.push(k),W.totalLength_+=k.length)};
_.GCz=function(W,k){_.rZ(W,k,2);k=W.encoder_.end();OS(W,k);k.push(W.totalLength_);return k};
_.ytm=function(W,k){var C=k.pop();for(C=W.totalLength_+W.encoder_.length()-C;C>127;)k.push(C&127|128),C>>>=7,W.totalLength_++;k.push(C);W.totalLength_++};
_.rZ=function(W,k,C){Z$K(W.encoder_,k*8+C)};
flP=function(W,k,C){if(C!=null){switch(typeof C){case "string":G8m(C)}_.rZ(W,k,1);switch(typeof C){case "number":W=W.encoder_;kzK(C);_.PY(W,Gz);_.PY(W,yY);break;case "bigint":C=BigInt.asUintN(64,C);C=new e0J(Number(C&BigInt(4294967295)),Number(C>>BigInt(32)));W=W.encoder_;k=C.JSC$6742_hi;_.PY(W,C.JSC$6742_lo);_.PY(W,k);break;default:C=G8m(C),W=W.encoder_,k=C.JSC$6742_hi,_.PY(W,C.JSC$6742_lo),_.PY(W,k)}}};
zrm=function(W,k,C){_.rZ(W,k,2);Z$K(W.encoder_,C.length);OS(W,W.encoder_.end());OS(W,C)};var vBz,TgK,ugc;vBz=_.TC();_.ol2=_.TC();_.i$m=_.TC();TgK=_.TC();_.Gv=_.TC();_.quP=_.TC();ugc=_.TC();_.UcK=_.TC();_.O$X=_.TC();var qu=function(W,k,C){this.$$binaryReaderFn=W;this.$$binaryWriterFn=k;W=f7(vBz);this.$$isMsg=!!W&&C===W||!1},oB3=e$w(function(W,k,C,n,N){if(W.nextWireType_!==2)return!1;
M2m(W,ElK(k,n,C),N);return!0},$um),i7J=e$w(function(W,k,C,n,N){if(W.nextWireType_!==2)return!1;
M2m(W,ElK(k,n,C),N);return!0},$um),C53=Symbol(),u6m=Symbol(),Lip=Symbol(),YzX=Symbol(),PEI=Symbol(),Z7p,R$J;var IlP,L3w,jwP,H$m,rV2,glm,Paw,K3p,h0w,Wms,k42,nzz,N3I,B3b,bI8;IlP=function(W,k){var C=new R0X;Bjp(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C,uE(C53,ki2,n3z,k));OS(C,C.encoder_.end());W=new Uint8Array(C.totalLength_);k=C.blocks_;for(var n=k.length,N=0,B=0;B<n;B++){var A=k[B];W.set(A,N);N+=A.length}C.blocks_=[W];return W};
L3w=_.j7(function(W,k,C){if(W.nextWireType_!==1)return!1;_.HY(k,C,DcX(W.decoder_));return!0},xaK,ugc);
jwP=_.j7(function(W,k,C,n){if(W.nextWireType_!==1)return!1;_.EM(k,C,n,DcX(W.decoder_));return!0},xaK,ugc);
H$m=_.j7(function(W,k,C,n){if(W.nextWireType_!==5)return!1;var N=_.sM(W.decoder_);W=(N>>31)*2+1;var B=N>>>23&255;N&=8388607;_.EM(k,C,n,B==255?N?NaN:W*Infinity:B==0?W*1.401298464324817E-45*N:W*Math.pow(2,B-150)*(N+8388608));return!0},function(W,k,C){k=_.ASw(k);
k!=null&&(_.rZ(W,C,5),W=W.encoder_,C=w6I||(w6I=new DataView(new ArrayBuffer(8))),C.setFloat32(0,+k,!0),yY=0,Gz=C.getUint32(0,!0),_.PY(W,Gz))},_.TC());
_.yo=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;_.HY(k,C,_.v9(W.decoder_,Nxw));return!0},_.K7,_.Gv);
rV2=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;W=_.v9(W.decoder_,Nxw);_.HY(k,C,W===0?void 0:W);return!0},_.K7,_.Gv);
glm=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.v9(W.decoder_,Nxw));return!0},_.K7,_.Gv);
_.$4=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;_.HY(k,C,_.et(W.decoder_));return!0},X6c,TgK);
Paw=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;W=_.et(W.decoder_);_.HY(k,C,W===0?void 0:W);return!0},X6c,TgK);
K3p=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.et(W.decoder_));return!0},X6c,TgK);
h0w=_.j7(function(W,k,C){if(W.nextWireType_!==1)return!1;_.HY(k,C,z0X(W.decoder_));return!0},_.daI,_.quP);
Wms=_.F_p(function(W,k,C){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;k=_.muJ(k,k[_.B8]|0,C);W.nextWireType_==2?_.vl3(W,z0X,k):k.push(z0X(W.decoder_));return!0},function(W,k,C){k=_.AoI(eCp,k,!1);
if(k!=null)for(var n=0;n<k.length;n++)flP(W,C,k[n])},_.quP);
_.ZB=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;_.HY(k,C,_.V2w(W.decoder_));return!0},_.map,_.ol2);
k42=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.V2w(W.decoder_));return!0},_.map,_.ol2);
_.RU=_.j7(function(W,k,C){if(W.nextWireType_!==2)return!1;_.HY(k,C,_.QwX(W));return!0},_.Da3,_.i$m);
_.Cw8=_.j7(function(W,k,C,n){if(W.nextWireType_!==2)return!1;_.EM(k,C,n,_.QwX(W));return!0},_.Da3,_.i$m);
nzz=_.F_p(function(W,k,C){if(W.nextWireType_!==2)return!1;W=_.QwX(W);_.muJ(k,k[_.B8]|0,C).push(W);return!0},function(W,k,C){k=_.AoI(_.lE,k,!0);
if(k!=null)for(var n=0;n<k.length;n++){var N=W,B=C,A=k[n];A!=null&&zrm(N,B,N3J(A))}},_.i$m);
N3I=void 0;N3I=N3I===void 0?vBz:N3I;_.oU=new qu(function(W,k,C,n,N){if(W.nextWireType_!==2)return!1;n=Atc(void 0,n,!0);_.muJ(k,k[_.B8]|0,C).push(n);M2m(W,n,N);return!0},function(W,k,C,n,N){if(Array.isArray(k))for(var B=0;B<k.length;B++)VNw(W,k[B],C,n,N)},N3I);
_.iA=e$w(function(W,k,C,n,N,B){if(W.nextWireType_!==2)return!1;var A=k[_.B8]|0;V7m(k,A,B,C,II(A));k=ElK(k,n,C);M2m(W,k,N);return!0},VNw);
_.Y2s=_.j7(function(W,k,C){if(W.nextWireType_!==2)return!1;_.HY(k,C,_.poX(W));return!0},_.JoX,_.UcK);
B3b=_.j7(function(W,k,C,n){if(W.nextWireType_!==2)return!1;_.EM(k,C,n,_.poX(W));return!0},_.JoX,_.UcK);
bI8=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.et(W.decoder_)>>>0);return!0},function(W,k,C){k=_.E2p(k);
k!=null&&k!=null&&(_.rZ(W,C,0),Z$K(W.encoder_,k))},_.TC());
_.Tv=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;_.HY(k,C,_.et(W.decoder_));return!0},_.cow,_.O$X);var wws=function(){var W=AKx,k=Fms;this.fieldIndex=175237375;this.ctor=k;this.isRepeated=0;this.getExtensionFn=_.q7;this.defaultValue=void 0;this.JSC$6740_hasMessageId=W.messageId!=null?c8:void 0};
wws.prototype.register=function(){k4(this)};var xXI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(xXI,_.US);var lXx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(lXx,_.US);var erX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(erX,_.US);var tpz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(tpz,_.US);var EzS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(EzS,_.US);var aXI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(aXI,_.US);var Xw8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Xw8,_.US);Xw8.prototype.getData=function(){return _.tp(this,2)};var fX2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(fX2,_.US);var dXC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(dXC,_.US);dXC.prototype.getStyle=function(){return _.q7(this,xXI,1)};var Na=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Na,_.US);Na.prototype.getPayloadCase=function(){return _.aU(this,Ao)};
Na.prototype.getStyle=function(){return _.St(this,dXC,6,Ao)};
var mXz=function(){var W=new Na,k=new EzS;return _.b5(W,7,Ao,k)},zcC=function(){var W=new Na,k=new aXI;
return _.b5(W,8,Ao,k)},Ao=[1,
2,3,4,5,6,7,8];var DX2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(DX2,_.US);var VpI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(VpI,_.US);var JKY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(JKY,_.US);var cKC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(cKC,_.US);var IXZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(IXZ,_.US);var S2z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(S2z,_.US);var MpI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(MpI,_.US);var QJA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(QJA,_.US);QJA.prototype.getData=function(){return _.tp(this,2)};var pwI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(pwI,_.US);var v3K=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(v3K,_.US);v3K.prototype.getPayloadCase=function(){return _.aU(this,qb)};
var qb=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var uA=function(W,k){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=k===void 0?2:k};
_.D(uA,Error);var vzb=Promise;var ecY=function(W){this.channelPromise=W};
ecY.prototype.send=function(W,k,C){this.channelPromise.then(function(n){n.send(W,k,C)})};var sJs=function(W,k){this.data=W;this.channel=k};
sJs.prototype.reply=function(W,k,C){this.channel.send(W,k,C)};var G4s=function(W){this.JSC$6818_port_=W};
G4s.prototype.send=function(W,k,C){C=C===void 0?[]:C;var n=new MessageChannel;yKI(n.port1,k);this.JSC$6818_port_.postMessage(W,[n.port2].concat(C))};
var $XZ=function(W,k){yKI(W,k);return new G4s(W)},yKI=function(W,k){k&&(W.onmessage=function(C){k(new sJs(C.data,$XZ(C.ports[0])))})};var ZI8=function(W){this.verifier_=W},RcS=function(W){var k=Object.create(null);
(typeof W==="string"?[W]:W).forEach(function(C){if(C==="null")throw Error("ba");k[C]=!0});
return function(C){return k[C]===!0}};_.ozC=function(){if(!_.NX.addEventListener||!Object.defineProperty)return!1;var W=!1,k=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var C=function(){};
_.NX.addEventListener("test",C,k);_.NX.removeEventListener("test",C,k)}catch(n){}return W}();var iIA;_.UM=function(W){var k=W.destination;var C=W.iframe;var n=W.origin;var N=W.channelName===void 0?"ZNWN1d":W.channelName;var B=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return iIA({destination:k,getSource:function(){return C.contentWindow},
originVerifier:n instanceof ZI8?n:typeof n==="function"?new ZI8(n):new ZI8(RcS(n)),channelName:N,onMessage:B,onEstablished:W})};
iIA=function(W){var k=W.destination;var C=W.getSource;var n=W.originVerifier;var N=W.token===void 0?void 0:W.token;var B=W.channelName;var A=W.onMessage===void 0?void 0:W.onMessage;var w=W.onEstablished===void 0?void 0:W.onEstablished;return new ecY(new vzb(function(x,E){var a=function(X){X.source&&X.source===C()&&n.verifier_(X.origin)&&(X.data.n||X.data)===B&&(k.removeEventListener("message",a,!1),N&&X.data.t!==N?E(Error("ca`"+B+"`"+N+"`"+X.data.t)):(x($XZ(X.ports[0],A)),w&&w(X)))};
k.addEventListener("message",a,!1)}))};var T3s=function(W){try{W()}catch(k){Yz(k)}};var umA=function(W){var k=this;var C=W.getMessageType;var n=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var N=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=C;this.onUnregisteredMessage_=n;this.onBeforeRegisteredMessage_=N;this.onAfterRegisteredMessage_=W;this.onMessage=function(B){return q2I(k,B)}};
umA.prototype.register=function(W,k){this.registry_.set(W,k);return this};
var q2I=function(W,k){var C=W.getMessageType_(k.data),n=W.registry_.get(C);n?(T3s(function(){return W.onBeforeRegisteredMessage_(k,C)}),T3s(function(){return n(k)}),T3s(function(){return W.onAfterRegisteredMessage_(k,C)})):T3s(function(){return W.onUnregisteredMessage_(k,C)})};var UX8=function(W){this.JSC$6835_channel_=W},LmC,jJ8;
UX8.prototype.send=function(W,k,C){this.JSC$6835_channel_.send(VT(W),k,C)};
_.OIY=function(W,k){return function(C){var n=new W(C.data);return k(new sJs(n,C.channel))}};
LmC=function(W){return function(k){return W(new sJs(k.data,new UX8(k.channel)))}};
jJ8=function(W,k){return LmC(_.OIY(W,k))};var HIs=function(W,k,C,n){this.registry=W;this.delegate=k;this.receiveMessageConstructor=C;this.createInitMessage=n;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},p6c=function(W){var k=new umA({getMessageType:W.getPayloadCase});
return new HIs(k,new UX8(_.UM({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:jJ8(W.receiveMessageConstructor,k.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},rKx=function(W,k){W.createInitMessage=k};
HIs.prototype.send=function(W){if(!this.initialised)throw new uA("Attempted to send a message before initialisation.");this.delegate.send(W)};
var gzC=function(W,k){return _.F(function(C){if(!W.initialised)throw new uA("Attempted to send a message before initialisation.");return C.return(new Promise(function(n){W.delegate.send(k,jJ8(W.receiveMessageConstructor,n))}))})};
HIs.prototype.init=function(){var W=this;return _.F(function(k){if(W.initialised)throw new uA("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var C=W.delegate,n=C.send,N=W.createInitMessage;var B=new lXx;var A=[].concat(_.J8(W.features));B=_.$B(B,1,A,_.OA);n.call(C,N.call(W,B))}W.initialised=!0;_.ab(k)})};
var OM=function(W,k){if(W.initialised)throw new uA('Attempted to set up API "'+k+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(k);return W.registry};
_.oq.Object.defineProperties(HIs.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Pwb=function(W){this.channel=W;this.registered=!1};
Pwb.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new uA("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var k=new Na;var C=new tpz;C=_.CN(C,1,W);k=_.b5(k,2,Ao,C);this.channel.send(k)}else this.register();this.JSC$6849_audioEnabled=W};
Pwb.prototype.register=function(){OM(this.channel,1);this.registered=!0};
Pwb.prototype.isAudioEnabled=function(){return this.JSC$6849_audioEnabled};var KmZ=function(W){this.channel=W};
_.Y=KmZ.prototype;_.Y.onFirstFrameReady=function(W){OM(this.channel,2).register(11,function(k){k=_.St(k.data,DX2,11,qb);if(!k)throw new uA("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.Vo(k,1))})};
_.Y.onReady=function(W){OM(this.channel,2).register(4,function(k){k=_.St(k.data,JKY,4,qb);if(!k)throw new uA("Unexpectedly nonexistent GameReadyEvent");W(_.Vo(k,1))})};
_.Y.onLevelComplete=function(W){OM(this.channel,2).register(5,function(k){k=_.St(k.data,cKC,5,qb);if(!k)throw new uA("Unexpectedly nonexistent LevelCompleteEvent");W(_.Vo(k,1),_.gP(k,2))})};
_.Y.onGameOver=function(W){OM(this.channel,2).register(6,function(k){k=_.St(k.data,VpI,6,qb);if(!k)throw new uA("Unexpectedly nonexistent GameOverEvent");W(_.Vo(k,1))})};
_.Y.pause=function(){var W=this;if(!this.channel.isInitialised)return OM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new uA("Using unregistered Game Feature: pause.");var k=mXz();return new Promise(function(C){return _.F(function(n){if(n.nextAddress==1)return _.l(n,gzC(W.channel,k),2);C();_.ab(n)})})};
_.Y.resume=function(){var W=this;if(!this.channel.isInitialised)return OM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new uA("Using unregistered Game Feature: resume.");var k=zcC();return new Promise(function(C){return _.F(function(n){if(n.nextAddress==1)return _.l(n,gzC(W.channel,k),2);C();_.ab(n)})})};var hcz=function(W){this.channel=W};
hcz.prototype.onReady=function(W){OM(this.channel,5).register(8,function(k){if(!_.St(k.data,IXZ,8,qb))throw new uA("Unexpectedly nonexistent PageReadyEvent");W()})};var Wss=function(W){this.channel=W};
Wss.prototype.onChange=function(W){OM(this.channel,3).register(7,function(k){k=_.St(k.data,S2z,7,qb);if(!k)throw new uA("Unexpectedly nonexistent ScoreEvent");W(_.Vo(k,1),_.gP(k,2))})};var kzS={load:function(){throw new uA("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new uA("Storage used, but storage.onSave() listener not set!");}},CbA=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},n2A=function(W){OM(W.channel,4).register(2,kzS.load).register(3,kzS.save);
W.initialSetupDone=!0};
CbA.prototype.onLoad=function(W){this.initialSetupDone||n2A(this);this.loadRegistered||(this.loadRegistered=!0,OM(this.channel,4).register(2,function(k){var C,n,N;return _.F(function(B){if(B.nextAddress==1){C=_.St(k.data,MpI,2,qb);if(!C)throw new uA("Unexpectedly nonexistent StorageLoad");n=_.Vo(C,1);return _.l(B,W(n),2)}N=B.yieldResult;var A=k.reply,w=new Na;var x=new Xw8;x=_.fU(x,1,n);x=_.Uh(x,2,_.JS(N,!1));w=_.b5(w,3,Ao,x);A.call(k,w);_.ab(B)})}))};
CbA.prototype.onSave=function(W){this.initialSetupDone||n2A(this);this.saveRegistered||(this.saveRegistered=!0,OM(this.channel,4).register(3,function(k){var C,n,N;return _.F(function(B){if(B.nextAddress==1){C=_.St(k.data,QJA,3,qb);if(!C)throw new uA("Unexpectedly nonexistent StorageSave");n=_.Vo(C,1);N=hv3(C.getData());return _.l(B,W(n,N),2)}var A=k.reply,w=new Na;var x=new fX2;x=_.fU(x,1,n);w=_.b5(w,4,Ao,x);A.call(k,w);_.ab(B)})}))};var Nxb=function(W){this.channel=W};
Nxb.prototype.update=function(W){if(!this.channel.features.has(6))throw new uA("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var k=new Na,C=new dXC;W=_.B6(C,1,W);k=_.b5(k,6,Ao,W);this.channel.send(k)};
Nxb.prototype.register=function(){OM(this.channel,6)};var YAZ=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
YAZ.prototype.onUserActivity=function(W,k){this.userActivityLoggingIntervalMs=k;OM(this.channel,7).register(9,function(C){if(!_.St(C.data,pwI,9,qb))throw new uA("Unexpectedly nonexistent ClickEvent");W()})};var Bx8=function(W){var k=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new hcz(this.channel);this.game=new KmZ(this.channel);this.audio=new Pwb(this.channel);this.score=new Wss(this.channel);this.storage=new CbA(this.channel);this.style=new Nxb(this.channel);this.userActivity=new YAZ(this.channel);rKx(this.channel,function(C){var n=new erX;C=_.B6(n,1,C);C=_.Mb(C,3,k.userActivity.userActivityLoggingIntervalMs);n=k.audio.isAudioEnabled();n!==void 0&&_.CN(C,2,n);n=new Na;
return _.b5(n,5,Ao,C)})};var bAI=function(){this.timedFunctionContext=0};
bAI.prototype.timeExecution=function(W,k){var C=this;return function(){var n=_.v6.apply(0,arguments);C.timedFunctionContext=W;return k.apply(null,_.J8(n))}};var ASb=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},AU=function(W,k,C){var n=Fss(W,C);
W.priorityTasks[C].push(k);n&&W.priorityTasks[C].length===1&&W.flush()},Fss=function(W,k){return Object.keys(W.priorityTasks).map(function(C){return Number(C)}).filter(function(C){return!isNaN(C)&&C>k}).every(function(C){return W.priorityTasks[C].length===0})};
ASb.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)w8I(this,3),w8I(this,2),w8I(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(k){return void k.splice(0,k.length)}),W;
}finally{this.isFlushing=!1}}};
var w8I=function(W,k){for(;Fss(W,k)&&W.priorityTasks[k].length>0;)W.priorityTasks[k][0](),W.priorityTasks[k].shift()};
_.oq.Object.defineProperties(ASb.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var o34={};var xS8=globalThis.trustedTypes,Gic=xS8,$a3;var l5=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
l5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var lZS=_.iH([""]),t8s=ia3(["\x00"],["\\0"]),E28=ia3(["\n"],["\\n"]),aZb=ia3(["\x00"],["\\u0000"]);RrK(function(W){return W(lZS)})||RrK(function(W){return W(t8s)})||RrK(function(W){return W(E28)})||RrK(function(W){return W(aZb)});var Ma;_.X7=function(W,k){this.privateDoNotAccessOrElseWrappedUrl=k};
_.X7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.X82=fL("about:blank");Ma=fL("about:invalid#zClosurez");var iLw=function(W){this.isValid=W},fZz=new iLw(function(W){return/^[^:]*([/?#]|$)/.test(W)}),dSA=c6("data"),mSS=c6("http"),zCA=c6("https"),DSS=c6("ftp"),V8s=c6("mailto"),JSx=c6("intent"),cS2=c6("vnd.youtube"),TjJ=[dSA,
mSS,zCA,V8s,DSS,fZz],qzm=wj(function(){return typeof URL==="function"}),IZz=["data:",
"http:","https:","mailto:","ftp:"],Uam=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var yG=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
yG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var rMX=wj(function(){return new yG(xS8?xS8.emptyHTML:"")});var SAZ={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"},L_X=function(W,k){var C=Error.call(this,W+" cannot be used with intent "+SAZ[k]);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.type=W;this.intent=k;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.D(L_X,Error);_.u5=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.u5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var g3p=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
g3p.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var P5w="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var xjP=function(W){var k=_.QK("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};var C=!1;try{var n=W.lineNumber||W.line||"Not available"}catch(A){n="Not available",C=!0}try{var N=W.fileName||W.filename||W.sourceURL||_.NX.$googDebugFname||k}catch(A){N="Not available",C=!0}k=M8A(W);if(!(!C&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){C=W.message;
if(C==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)C=W.constructor.name;else if(C=W.constructor,Lr[C])C=Lr[C];else{C=String(C);if(!Lr[C]){var B=/function\s+([^\(]+)/m.exec(C);Lr[C]=B?B[1]:"[Anonymous]"}C=Lr[C]}C='Unknown Error of type "'+C+'"'}else C="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(C+=": "+W.toString())}return{message:C,name:W.name||"UnknownError",lineNumber:n,fileName:N,stack:k||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:k}},M8A=function(W,k){k||(k={});
k[QIs(W)]=!0;var C=W.stack||"",n=W.cause;n&&!k[QIs(n)]&&(C+="\nCaused by: ",n.stack&&n.stack.indexOf(n.toString())==0||(C+=typeof n==="string"?n:n.message+"\n"),C+=M8A(n,k));W=W.errors;if(Array.isArray(W)){n=1;var N;for(N=0;N<W.length&&!(n>4);N++)k[QIs(W[N])]||(C+="\nInner error "+n++ +": ",W[N].stack&&W[N].stack.indexOf(W[N].toString())==0||(C+=typeof W[N]==="string"?W[N]:W[N].message+"\n"),C+=M8A(W[N],k));N<W.length&&(C+="\n... "+(W.length-N)+" more inner errors")}return C},QIs=function(W){var k=
"";
typeof W.toString==="function"&&(k=""+W);return k+W.stack},Lr={};var p8A,T3,OJ,eC8,sIC,v2I,sg,QM,ySs;p8A=function(W,k){for(var C=W.split("%s"),n="",N=Array.prototype.slice.call(arguments,1);N.length&&C.length>1;)n+=C.shift()+N.shift();return n+C.join("%s")};
_.vv=function(W){return encodeURIComponent(String(W))};
T3=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
OJ=function(W){XIw.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(wIX,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(x4P,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(lh3,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(tdP,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(ERm,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(ahz,"&#0;")));return W};
eC8=function(W){var k={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var C=_.NX.document.createElement("div");return W.replace(v2I,function(n,N){var B=k[n];if(B)return B;N.charAt(0)=="#"&&(N=Number("0"+N.slice(1)),isNaN(N)||(B=String.fromCharCode(N)));B||(_.jN(C,$3(n+" ")),B=C.firstChild.nodeValue.slice(0,-1));return k[n]=B})};
sIC=function(W){return W.replace(/&([^;]+);/g,function(k,C){switch(C){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return C.charAt(0)!="#"||(C=Number("0"+C.slice(1)),isNaN(C))?k:String.fromCharCode(C)}})};
v2I=/&([^;\s<&]+);?/g;_.Gqc=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Gzs=String.prototype.repeat?function(W,k){return W.repeat(k)}:function(W,k){return Array(k+1).join(W)};
_.jt=function(W,k){if(!Number.isFinite(W))return String(W);W=String(W);var C=W.indexOf(".");C===-1&&(C=W.length);var n=W[0]==="-"?"-":"";n&&(W=W.substring(1));return n+(0,_.Gzs)("0",Math.max(0,k-C))+W};
sg=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.gk()).toString(36)};
QM=function(W){for(var k=0,C=0;C<W.length;++C)k=31*k+W.charCodeAt(C)>>>0;return k};
_.bd=function(W){return String(W).replace(/\-([a-z])/g,function(k,C){return C.toUpperCase()})};
_.Be=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
ySs=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(k,C,n){return C+n.toUpperCase()})};var $SI=function(){this.names=new Map};
$SI.prototype.getName=function(W){var k=this.names.get(W);if(k)return k;var C;k=(C=W.description)!=null?C:sg();this.names.set(W,k);return k};var ZAs=function(W){var k=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(C,n){return n+1+") "+C.toString()}).join("\n  "):"");
this.message=k.message;"stack"in k&&(this.stack=k.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.D(ZAs,Error);var ho=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.Y=ho.prototype;
_.Y.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var k=_.b(W),C=k.next();!C.done;C=k.next())C.value.remove(this);else W==null||W.remove(this);k=this.initialTeardown;if(KL(k))try{k()}catch(B){var n=B instanceof ZAs?B.errors:[B]}var N=this._teardowns;if(N)for(this._teardowns=null,k=_.b(N),C=k.next();!C.done;C=k.next()){C=C.value;try{KL(C)?C():C.unsubscribe()}catch(B){C=void 0,n=(C=n)!=null?C:[],B instanceof ZAs?n=[].concat(_.J8(n),_.J8(B.errors)):
n.push(B)}}if(n)throw new ZAs(n);}};
_.Y.add=function(W){if(W&&W!==this)if(this.closed)KL(W)?W():W.unsubscribe();else{if(W instanceof ho){if(W.closed||W._hasParent(this))return;W._addParent(this)}var k;(this._teardowns=(k=this._teardowns)!=null?k:[]).push(W)}};
_.Y._hasParent=function(W){var k=this._parentage;return k===W||Array.isArray(k)&&k.includes(W)};
_.Y._addParent=function(W){var k=this._parentage;this._parentage=Array.isArray(k)?(k.push(W),k):k?[k,W]:W};
_.Y._removeParent=function(W){var k=this._parentage;k===W?this._parentage=null:Array.isArray(k)&&ktp(k,W)};
_.Y.remove=function(W){var k=this._teardowns;k&&ktp(k,W);W instanceof ho&&W._removeParent(this)};
var RC8=new ho;RC8.closed=!0;ho.JSC$6945_EMPTY=RC8;var nOc=function(){setTimeout.apply(null,_.J8(_.v6.apply(0,arguments)))};var H9=function(W){ho.call(this);this.JSC$6950_isStopped=!1;this.destination=W instanceof H9?W:new rv(!W||KL(W)?{next:W!=null?W:void 0}:W);CMw(W)&&W.add(this)};
_.D(H9,ho);H9.JSC$6945_EMPTY=ho.JSC$6945_EMPTY;H9.create=function(W,k,C){return new gv(W,k,C)};
_.Y=H9.prototype;_.Y.next=function(W){this.JSC$6950_isStopped||this._next(W)};
_.Y.error=function(W){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._error(W))};
_.Y.complete=function(){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._complete())};
_.Y.unsubscribe=function(){this.closed||(this.JSC$6950_isStopped=!0,ho.prototype.unsubscribe.call(this))};
_.Y._next=function(W){this.destination.next(W)};
_.Y._error=function(W){this.destination.error(W);this.unsubscribe()};
_.Y._complete=function(){this.destination.complete();this.unsubscribe()};
var rv=function(W){this.partialObserver=W};
rv.prototype.next=function(W){var k=this.partialObserver;if(k.next)try{k.next(W)}catch(C){kO(C)}};
rv.prototype.error=function(W){var k=this.partialObserver;if(k.error)try{k.error(W)}catch(C){kO(C)}else kO(W)};
rv.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(k){kO(k)}};
var gv=function(W,k,C){H9.call(this);var n;KL(W)||!W?n={next:W!=null?W:void 0,error:k!=null?k:void 0,complete:C!=null?C:void 0}:n=W;this.destination=new rv(n)};
_.D(gv,H9);gv.JSC$6945_EMPTY=H9.JSC$6945_EMPTY;gv.create=H9.create;var BX=typeof Symbol==="function"&&Symbol.observable||"@@observable";var YO=function(W){W&&(this._subscribe=W)};
_.Y=YO.prototype;_.Y.lift=function(W){var k=new YO;k.source=this;k.operator=W;return k};
_.Y.subscribe=function(W,k,C){W=W&&W instanceof H9||W&&KL(W.next)&&KL(W.error)&&KL(W.complete)&&CMw(W)?W:new gv(W,k,C);k=this.operator;C=this.source;W.add(k?k.call(W,C):C?this._subscribe(W):this._trySubscribe(W));return W};
_.Y._trySubscribe=function(W){try{return this._subscribe(W)}catch(k){W.error(k)}};
_.Y.forEach=function(W,k){var C=this;k=YFp(k);return new k(function(n,N){var B=C.subscribe(function(A){try{W(A)}catch(w){N(w),B==null||B.unsubscribe()}},N,n)})};
_.Y._subscribe=function(W){var k;return(k=this.source)==null?void 0:k.subscribe(W)};
YO.prototype[BX]=function(){return this};
YO.prototype.pipe=function(){var W=_.v6.apply(0,arguments);return W.length?NTI(W)(this):this};
YO.create=function(W){return new YO(W)};var o2Y=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.D(o2Y,Error);var nU=function(){this.observers=[];this.hasError=this.JSC$6966_isStopped=this.closed=!1;this.thrownError=null};
_.D(nU,YO);_.Y=nU.prototype;_.Y.lift=function(W){var k=new P9(this,this);k.operator=W;return k};
_.Y._throwIfClosed=function(){if(this.closed)throw new o2Y;};
_.Y.next=function(W){this._throwIfClosed();if(!this.JSC$6966_isStopped){var k=this.observers.slice();k=_.b(k);for(var C=k.next();!C.done;C=k.next())C.value.next(W)}};
_.Y.error=function(W){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.hasError=this.JSC$6966_isStopped=!0;this.thrownError=W;for(var k=this.observers;k.length;)k.shift().error(W)}};
_.Y.complete=function(){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.JSC$6966_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.Y.unsubscribe=function(){this.JSC$6966_isStopped=this.closed=!0;this.observers=null};
_.Y._trySubscribe=function(W){this._throwIfClosed();return YO.prototype._trySubscribe.call(this,W)};
_.Y._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.Y._innerSubscribe=function(W){var k=this,C=this.JSC$6966_isStopped,n=this.observers;return this.hasError||C?ho.JSC$6945_EMPTY:(n.push(W),new ho(function(){return ktp(k.observers,W)}))};
_.Y._checkFinalizedStatuses=function(W){var k=this.thrownError,C=this.JSC$6966_isStopped;this.hasError?W.error(k):C&&W.complete()};
nU.create=function(W,k){return new P9(W,k)};
var P9=function(W,k){nU.call(this);this.destination=W;this.source=k};
_.D(P9,nU);P9.create=nU.create;P9.prototype.next=function(W){var k,C;(k=this.destination)==null||(C=k.next)==null||C.call(k,W)};
P9.prototype.error=function(W){var k,C;(k=this.destination)==null||(C=k.error)==null||C.call(k,W)};
P9.prototype.complete=function(){var W,k;(W=this.destination)==null||(k=W.complete)==null||k.call(W)};
P9.prototype._subscribe=function(W){var k,C;return(C=(k=this.source)==null?void 0:k.subscribe(W))!=null?C:ho.JSC$6945_EMPTY};var $0=function(W){nU.call(this);this._value=W};
_.D($0,nU);$0.create=nU.create;$0.prototype._subscribe=function(W){var k=nU.prototype._subscribe.call(this,W);!k.closed&&W.next(this._value);return k};
$0.prototype.getValue=function(){var W=this.thrownError,k=this._value;if(this.hasError)throw W;this._throwIfClosed();return k};
$0.prototype.next=function(W){nU.prototype.next.call(this,this._value=W)};
_.oq.Object.defineProperties($0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var pg=new YO(function(W){return W.complete()});var FRX=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var EOm=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var iAA={now:function(){return(iAA.delegate||Date).now()},
delegate:void 0};var Lg=function(W,k,C){W=W===void 0?Infinity:W;k=k===void 0?Infinity:k;C=C===void 0?iAA:C;nU.call(this);this.JSC$6988_bufferSize=W;this.windowTime=k;this.timestampProvider=C;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=k===Infinity;this.JSC$6988_bufferSize=Math.max(1,W);this.windowTime=Math.max(1,k)};
_.D(Lg,nU);Lg.create=nU.create;Lg.prototype.next=function(W){var k=this.buffer,C=this.infiniteTimeWindow,n=this.timestampProvider,N=this.windowTime;this.JSC$6966_isStopped||(k.push(W),!C&&k.push(n.now()+N));TxA(this);nU.prototype.next.call(this,W)};
Lg.prototype._subscribe=function(W){this._throwIfClosed();TxA(this);for(var k=this._innerSubscribe(W),C=this.infiniteTimeWindow,n=this.buffer.slice(),N=0;N<n.length&&!W.closed;N+=C?1:2)W.next(n[N]);this._checkFinalizedStatuses(W);return k};
var TxA=function(W){var k=W.JSC$6988_bufferSize,C=W.timestampProvider,n=W.buffer;W=W.infiniteTimeWindow;var N=(W?1:2)*k;k<Infinity&&N<n.length&&n.splice(0,n.length-N);if(!W){k=C.now();C=0;for(W=1;W<n.length&&n[W]<=k;W+=2)C=W;C&&n.splice(0,C+1)}};var uss=function(W,k){k=k===void 0?qAA:k;this.schedulerActionCtor=W;this.now=k};
uss.prototype.schedule=function(W,k,C){k=k===void 0?0:k;return(new this.schedulerActionCtor(this,W)).schedule(C,k)};
var qAA=iAA.now;var bUp=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.D(bUp,Error);var zt=function(W,k,C,n,N){H9.call(this,W);this.onUnsubscribe=N;k&&(this._next=function(B){try{k(B)}catch(A){this.destination.error(A)}});
C&&(this._error=function(B){try{C(B)}catch(A){this.destination.error(A)}this.unsubscribe()});
n&&(this._complete=function(){try{n()}catch(B){this.destination.error(B)}this.unsubscribe()})};
_.D(zt,H9);zt.JSC$6945_EMPTY=H9.JSC$6945_EMPTY;zt.create=H9.create;zt.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);H9.prototype.unsubscribe.call(this)};var q9=function(W,k){this.source=W;this.subjectFactory=k;this._subject=null;this._refCount=0;this._connection=null};
_.D(q9,YO);q9.create=YO.create;q9.prototype._subscribe=function(W){return USs(this).subscribe(W)};
var USs=function(W){var k=W._subject;if(!k||k.JSC$6966_isStopped)W._subject=W.subjectFactory();return W._subject};
q9.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
q9.prototype.connect=function(){var W=this,k=this._connection;if(!k){k=this._connection=new ho;var C=USs(this);k.add(this.source.subscribe(new zt(C,void 0,function(n){W._teardown();C.error(n)},function(){W._teardown();
C.complete()},function(){return W._teardown()})));
k.closed&&(this._connection=null,k=ho.JSC$6945_EMPTY)}return k};var MiX=Array.isArray;var pX3=Array.isArray,OAY=Object,vOz=OAY.getPrototypeOf,eap=OAY.prototype,sb3=OAY.keys;var Si=function(W,k,C){H9.call(this,W);this._next=k;this.shouldComplete=C};
_.D(Si,H9);Si.JSC$6945_EMPTY=H9.JSC$6945_EMPTY;Si.create=H9.create;Si.prototype._complete=function(){this.shouldComplete()?H9.prototype._complete.call(this):this.unsubscribe()};var qFX=["addListener","removeListener"],TT3=["addEventListener","removeEventListener"],U9m=["on","off"];var Kr=function(){ho.call(this)};
_.D(Kr,ho);Kr.JSC$6945_EMPTY=ho.JSC$6945_EMPTY;Kr.prototype.schedule=function(){return this};var Lss=function(W,k){return setInterval.apply(null,[W,k].concat(_.J8(_.v6.apply(2,arguments))))};var hp=function(W,k){ho.call(this);this.scheduler=W;this.work=k;this.pending=!1};
_.D(hp,Kr);hp.JSC$6945_EMPTY=Kr.JSC$6945_EMPTY;hp.prototype.schedule=function(W,k){k=k===void 0?0:k;if(this.closed)return this;this.state=W;W=this.id;var C=this.scheduler;W!=null&&(this.id=jIY(this,W,k));this.pending=!0;this.delay=k;this.id=this.id||this.requestAsyncId(C,this.id,k);return this};
hp.prototype.requestAsyncId=function(W,k,C){C=C===void 0?0:C;return Lss(W.flush.bind(W,this),C)};
var jIY=function(W,k,C){C=C===void 0?0:C;if(C!=null&&W.delay===C&&W.pending===!1)return k;clearInterval(k)};
hp.prototype.execute=function(W,k){if(this.closed)return Error("la");this.pending=!1;if(W=this._execute(W,k))return W;this.pending===!1&&this.id!=null&&(this.id=jIY(this,this.id,null))};
hp.prototype._execute=function(W){var k=!1;try{this.work(W)}catch(n){k=!0;var C=!!n&&n||Error(n)}if(k)return this.unsubscribe(),C};
hp.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,k=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;ktp(k,this);W!=null&&(this.id=jIY(this,W,null));this.delay=null;Kr.prototype.unsubscribe.call(this)}};var HAA=function(W,k){k=k===void 0?qAA:k;uss.call(this,W,k);this.actions=[];this.active=!1;this.scheduled=void 0};
_.D(HAA,uss);HAA.prototype.flush=function(W){var k=this.actions;if(this.active)k.push(W);else{var C;this.active=!0;do if(C=W.execute(W.state,W.delay))break;while(W=k.shift());this.active=!1;if(C){for(;W=k.shift();)W.unsubscribe();throw C;}}};var zl=new YO(WX);var Ogz=Array.isArray;var WT=function(W,k){hp.call(this,W,k);this.scheduler=W;this.work=k};
_.D(WT,hp);WT.JSC$6945_EMPTY=hp.JSC$6945_EMPTY;WT.prototype.schedule=function(W,k){k=k===void 0?0:k;if(k>0)return hp.prototype.schedule.call(this,W,k);this.delay=k;this.state=W;this.scheduler.flush(this);return this};
WT.prototype.execute=function(W,k){return k>0||this.closed?hp.prototype.execute.call(this,W,k):this._execute(W,k)};
WT.prototype.requestAsyncId=function(W,k,C){C=C===void 0?0:C;return C!=null&&C>0||C==null&&this.delay>0?hp.prototype.requestAsyncId.call(this,W,k,C):W.flush(this)};var rSs=function(){HAA.apply(this,arguments)};
_.D(rSs,HAA);var Ie2=new rSs(WT);var g2Y=function(){this.performanceMonitor=new bAI;this.queue=new ASb;this.internalSymbol=Symbol();this.debugNames=new $SI};
g2Y.prototype.getOnBackgrounded=function(){return zl};
_.oq.Object.defineProperties(g2Y.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var ko=function(W,k){k=Error.call(this,k?W+": "+k:String(W));this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=W;this.__proto__=ko.prototype;this.name=String(W)};
_.D(ko,Error);var Dd=function(W){ko.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=Dd.prototype};
_.D(Dd,ko);var VZ=function(){ko.call(this,1003);this.__proto__=VZ.prototype};
_.D(VZ,ko);var C0=function(){ko.call(this,1009);this.__proto__=C0.prototype};
_.D(C0,ko);var Pb8=function(){ko.call(this,1011);this.__proto__=Pb8.prototype};
_.D(Pb8,ko);var Ksz=function(){ko.call(this,1007);this.__proto__=VZ.prototype};
_.D(Ksz,ko);var dP=function(W){ko.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=dP.prototype};
_.D(dP,ko);var zAz=function(W){ko.call(this,1010,W);this.__proto__=DDw.prototype};
_.D(zAz,ko);var DDw=function(W){ko.call(this,1005,W);this.__proto__=DDw.prototype};
_.D(DDw,ko);var hCb=function(W){var k=_.v6.apply(1,arguments),C=this;this.orderedFactories=[];this.orderedFactories.push(W);k.forEach(function(n){C.orderedFactories.push(n)})};
hCb.prototype.isSupported=function(W){return this.orderedFactories.some(function(k){return k.isSupported(W)})};
hCb.prototype.makeBeacon=function(W,k){for(var C=0;C<this.orderedFactories.length;C++)if(this.orderedFactories[C].isSupported(k))return this.orderedFactories[C].makeBeacon(W,k);throw new C0;};var wHJ=Symbol("ma"),Wi8=Symbol("na"),Gt=function(W,k){this.value=W;this.timeline=k},sF=function(W,k){if(k.timeline!==W.timeline)throw new Ksz;
return W.value-k.value};
_.Y=Gt.prototype;_.Y.equals=function(W){return sF(this,W)===0};
_.Y.maximum=function(W){if(W.timeline!==this.timeline)throw new Ksz;return this.value>=W.value?this:W};
_.Y.round=function(){return new Gt(Math.round(this.value),this.timeline)};
_.Y.add=function(W){return new Gt(this.value+W,this.timeline)};
_.Y.toString=function(){return String(this.value)};var n0=function(W,k){this.context=W;this.JSC$7072_pinger=k};
n0.prototype.isSupported=function(W){return this.JSC$7072_pinger.isSupported(W)};
n0.prototype.makeBeacon=function(W,k){if(!this.isSupported(k))throw new C0;return new NJ(this.context,this.JSC$7072_pinger,k!=null?k:void 0,W)};
var NJ=function(W,k,C,n){var N=this;this.JSC$7078_pinger=k;this.properties=C;this.url=n;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var B;this.method=(B=C==null?void 0:C.beaconMethod)!=null?B:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){N.sendNow()})};
NJ.prototype.deactivate=function(){this.internalIsPending=!1};
NJ.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 W,k;this.JSC$7078_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(k=this.body)!=null?k:"",this.url)}else this.JSC$7078_pinger.ping(this.url);this.internalIsPending=!1}catch(C){}else this.internalIsPending=!1};
NJ.prototype.setHeader=function(W){this.customHeaders.set(W,void 0)};
_.oq.Object.defineProperties(NJ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var CEC=function(){for(var W=_.b(_.v6.apply(0,arguments)),k=W.next();!k.done;k=W.next())if(k=k.value,k.available()){this.timeProvider=k;return}this.timeProvider=new kCb};
_.Y=CEC.prototype;_.Y.available=function(){return this.timeProvider.available()};
_.Y.now=function(){return this.timeProvider.now()};
_.Y.setTimeout=function(W,k){return this.timeProvider.setTimeout(W,k)};
_.Y.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.Y.interval=function(W,k){var C=this.intervalObservable(W).subscribe(k);return function(){return void C.unsubscribe()}};
_.Y.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.oq.Object.defineProperties(CEC.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var kCb=function(){this.timeline=Symbol()};
_.Y=kCb.prototype;_.Y.available=function(){return!1};
_.Y.now=function(){return new Gt(0,this.timeline)};
_.Y.setTimeout=function(){return 0};
_.Y.clearTimeout=function(){};
_.Y.interval=function(){return function(){}};
_.Y.intervalObservable=function(){return zl};var Yo=function(W,k){this.intrinsicFunctionNamespace=W;this.performanceMonitor=k};
_.Y=Yo.prototype;_.Y.setTimeout=function(W,k){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),k)};
_.Y.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.Y.interval=function(W,k){var C=this.intervalObservable(W).subscribe(k);return function(){return void C.unsubscribe()}};
_.Y.intervalObservable=function(W){var k=this;return new YO(function(C){var n=0,N=k.intrinsicFunctionNamespace.setInterval(function(){C.next(n++)},W);
return function(){k.intrinsicFunctionNamespace.clearInterval(N)}})};
_.Y.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var nBI=function(W,k){Yo.call(this,W,k);this.timeline=Wi8};
_.D(nBI,Yo);nBI.prototype.now=function(){return new Gt(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
nBI.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Yo.prototype.available.call(this)};var NZS=function(W,k){Yo.call(this,W,k);this.timeline=wHJ};
_.D(NZS,Yo);NZS.prototype.now=function(){return new Gt(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
NZS.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Yo.prototype.available.call(this)};var BZs=function(W){this.context=W;if(YSz===void 0)a:{var k,C,n=(k=W.global)==null?void 0:(C=k.document)==null?void 0:C.createElement("meta");if(n)try{n.httpEquiv="origin-trial";n.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(n);YSz=n;break a}catch(N){}YSz=void 0}},
YSz;
BZs.prototype.isSupported=function(W){return kl4(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!BT(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
BZs.prototype.makeBeacon=function(W,k){if(!this.isSupported(k))throw new C0;return new b1(this.context,W,k)};
var b1=function(W,k,C){this.context=W;this.properties=C;this.JSC$7105_urlWithoutToken=k;var n;this.beaconMethod=(n=C==null?void 0:C.beaconMethod)!=null?n:"GET";W=kl4(this.context);if(W===void 0)throw Error();this.fetchLater=W;b7S(this,AtC(this))},b7S=function(W,k){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(k,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},AtC=function(W){W=W.JSC$7105_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
b1.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
b1.prototype.sendNow=function(){};
b1.prototype.setHeader=function(){};
_.oq.Object.defineProperties(b1.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7105_urlWithoutToken},
set:function(W){this.JSC$7105_urlWithoutToken=W;W=AtC(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);b7S(this,W)}},
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 FiY=function(W){this.context=W};
FiY.prototype.isSupported=function(){return!BT(this.context)&&!!this.context.global.fetch};
FiY.prototype.ping=function(){var W=this;return vX.apply(null,_.J8(_.v6.apply(0,arguments).map(function(k){return A8(W.context.global.fetch(k,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(V2(function(C){return C.status===200}))}))).pipe(AUz(function(k){return k}),x34())};
FiY.prototype.pingWithHeadersAndBody=function(W,k,C){for(var n=_.v6.apply(3,arguments),N=this,B=new Headers,A=_.b(k.entries()),w=A.next();!w.done;w=A.next()){var x=_.b(w.value);w=x.next().value;x=x.next().value;B.set(w,x)}var E,a=(E=W.keepAlive)!=null?E:!1;vX.apply(null,_.J8(n.map(function(X){return A8(N.context.global.fetch(X,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},a?{keepalive:!0}:{},{mode:"no-cors",headers:B,body:C}))).pipe(V2(function(d){return d.status===200}))}))).pipe(AUz(function(X){return X}),
x34())};var wY8,mvP;_.Au=function(){};
_.yP=function(W){return W};
wY8=function(W){var k=k||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,k))}};
_.FH=function(W){var k=!1,C;return function(){k||(C=W(),k=!0);return C}};
_.w2=function(W,k){var C=0;return function(n){_.NX.clearTimeout(C);var N=arguments;C=_.NX.setTimeout(function(){W.apply(void 0,N)},k)}};
mvP=function(W,k){var C=0,n=!1,N=[],B=function(){C=0;n&&(n=!1,A())},A=function(){C=_.NX.setTimeout(B,k);
var w=N;N=[];W.apply(void 0,w)};
return function(w){N=arguments;C?n=!0:A()}};var lAA=function(){return d3&&mm?mm.mobile:!xuS()&&(DX("iPod")||DX("iPhone")||DX("Android")||DX("IEMobile"))},xuS=function(){return d3&&mm?!mm.mobile&&(DX("iPad")||DX("Android")||DX("Silk")):DX("iPad")||DX("Android")&&!DX("Mobile")||DX("Silk")};var t7s;_.JU={};t7s="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.JU.add=function(W,k,C){if(W!==null&&k in W)throw Error("pa`"+k);W[k]=C};
_.JU.clear=function(W){for(var k in W)delete W[k]};
_.JU.clone=function(W){var k={},C;for(C in W)k[C]=W[C];return k};
_.JU.contains=function(W,k){return adX(W,k)};
_.JU.containsKey=function(W,k){return W!==null&&k in W};
_.JU.containsValue=adX;_.JU.create=d3P;_.JU.createImmutableView=function(W){var k=W;Object.isFrozen&&!Object.isFrozen(W)&&(k=Object.create(W),Object.freeze(k));return k};
_.JU.createSet=m32;_.JU.equals=function(W,k){for(var C in W)if(!(C in k)||W[C]!==k[C])return!1;for(var n in k)if(!(n in W))return!1;return!0};
_.JU.every=function(W,k,C){for(var n in W)if(!k.call(C,W[n],n,W))return!1;return!0};
_.JU.extend=function(W,k){for(var C,n,N=1;N<arguments.length;N++){n=arguments[N];for(C in n)W[C]=n[C];for(var B=0;B<t7s.length;B++)C=t7s[B],Object.prototype.hasOwnProperty.call(n,C)&&(W[C]=n[C])}};
_.JU.filter=function(W,k,C){var n={},N;for(N in W)k.call(C,W[N],N,W)&&(n[N]=W[N]);return n};
_.JU.findKey=XDX;_.JU.findValue=function(W,k,C){return(k=XDX(W,k,C))&&W[k]};
_.JU.forEach=function(W,k,C){for(var n in W)k.call(C,W[n],n,W)};
_.JU.get=function(W,k,C){return W!==null&&k in W?W[k]:C};
_.JU.getAllPropertyNames=function(W,k,C){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return E0m(W);for(var n={};W&&(W!==Object.prototype||k)&&(W!==Function.prototype||C);){for(var N=Object.getOwnPropertyNames(W),B=0;B<N.length;B++)n[N[B]]=!0;W=Object.getPrototypeOf(W)}return E0m(n)};
_.JU.getAnyKey=function(W){for(var k in W)return k};
_.JU.getAnyValue=function(W){for(var k in W)return W[k]};
_.JU.getCount=function(W){var k=0,C;for(C in W)k++;return k};
_.JU.getKeys=E0m;_.JU.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.JU.getValueByKeys=function(W,k){var C=_.qX(k),n=C?k:arguments;for(C=C?0:1;C<n.length;C++){if(W==null)return;W=W[n[C]]}return W};
_.JU.getValues=function(W){var k=[],C=0,n;for(n in W)k[C++]=W[n];return k};
_.JU.isEmpty=function(W){for(var k in W)return!1;return!0};
_.JU.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.JU.map=function(W,k,C){var n={},N;for(N in W)n[N]=k.call(C,W[N],N,W);return n};
_.JU.remove=function(W,k){var C;(C=k in W)&&delete W[k];return C};
_.JU.set=function(W,k,C){W[k]=C};
_.JU.setIfUndefined=function(W,k,C){return k in W?W[k]:W[k]=C};
_.JU.setWithReturnValueIfNotSet=function(W,k,C){if(k in W)return W[k];C=C();return W[k]=C};
_.JU.some=function(W,k,C){for(var n in W)if(k.call(C,W[n],n,W))return!0;return!1};
_.JU.transpose=function(W){var k={},C;for(C in W)k[W[C]]=C;return k};
_.JU.unsafeClone=fd4;var EBI,aAA,XYs,fAA,o4,muI,ct8,IAs,SSs;EBI=function(W,k,C,n,N,B,A){var w="";W&&(w+=W+":");C&&(w+="//",k&&(w+=k+"@"),w+=C,n&&(w+=":"+n));N&&(w+=N);B&&(w+="?"+B);A&&(w+="#"+A);return w};
aAA=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.ZE=function(W){return W.match(aAA)};
_.z_=function(W,k){return W?k?decodeURI(W):decodeURIComponent(W):W};
XYs=function(W){W=_.ZE(W)[1]||null;!W&&_.NX.self&&_.NX.self.location&&(W=_.NX.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.R4=function(W){return _.z_(_.ZE(W)[3]||null,!0)};
_.KS=function(W){return _.z_(_.ZE(W)[5]||null,!0)};
_.b14=function(W){var k=W.indexOf("#");return k<0?null:W.slice(k+1)};
fAA=function(W){W=_.ZE(W);return EBI(W[1],W[2],W[3],W[4])};
_.dub=function(W){W=_.ZE(W);return EBI(W[1],null,W[3],W[4])};
_.sk=function(W){W=_.ZE(W);return EBI(null,null,null,null,W[5],W[6],W[7])};
_.T7=function(W){var k=W.indexOf("#");return k<0?W:W.slice(0,k)};
o4=function(W,k){W=_.ZE(W);k=_.ZE(k);return W[3]==k[3]&&W[1]==k[1]&&W[4]==k[4]};
muI=function(W,k){if(W){W=W.split("&");for(var C=0;C<W.length;C++){var n=W[C].indexOf("="),N=null;if(n>=0){var B=W[C].substring(0,n);N=W[C].substring(n+1)}else B=W[C];k(B,N?T3(N):"")}}};
_.z$s=function(W){var k=W.indexOf("#");k<0&&(k=W.length);var C=W.indexOf("?");if(C<0||C>k){C=k;var n=""}else n=W.substring(C+1,k);return[W.slice(0,C),n,W.slice(k)]};
_.Dus=function(W,k){return k?W?W+"&"+k:k:W};
_.V7s=function(W,k){if(!k)return W;W=_.z$s(W);W[1]=_.Dus(W[1],k);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.JtY=function(W,k,C){if(Array.isArray(k))for(var n=0;n<k.length;n++)_.JtY(W,String(k[n]),C);else k!=null&&C.push(W+(k===""?"":"="+_.vv(k)))};
_.W4=function(W){var k=[],C;for(C in W)_.JtY(C,W[C],k);return k.join("&")};
_.$n=function(W,k){k=_.W4(k);return _.V7s(W,k)};
_.xo=function(W,k,C){C=C!=null?"="+_.vv(C):"";return _.V7s(W,k+C)};
ct8=function(W,k,C,n){for(var N=C.length;(k=W.indexOf(C,k))>=0&&k<n;){var B=W.charCodeAt(k-1);if(B==38||B==63)if(B=W.charCodeAt(k+N),!B||B==61||B==38||B==35)return k;k+=N+1}return-1};
IAs=/#|$/;_.e_=function(W,k){var C=W.search(IAs),n=ct8(W,0,k,C);if(n<0)return null;var N=W.indexOf("&",n);if(N<0||N>C)N=C;n+=k.length+1;return T3(W.slice(n,N!==-1?N:0))};
SSs=/[?&]($|#)/;_.ud=function(W,k){for(var C=W.search(IAs),n=0,N,B=[];(N=ct8(W,n,k,C))>=0;)B.push(W.substring(n,N)),n=Math.min(W.indexOf("&",N)+1||C,C);B.push(W.slice(n));return B.join("").replace(SSs,"$1")};
_.JB=function(W,k,C){return _.xo(_.ud(W,k),k,C)};var l1=function(W,k,C,n,N){this.allowedElements=W;this.elementPolicies=k;this.allowedGlobalAttributes=C;this.globalAttributePolicies=n;this.globallyAllowedAttributePrefixes=N},M7A=function(W,k,C){C=W.elementPolicies.get(C);
return(C==null?0:C.has(k))?C.get(k):W.allowedGlobalAttributes.has(k)?{policyAction:1}:(C=W.globalAttributePolicies.get(k))?C:W.globallyAllowedAttributePrefixes&&[].concat(_.J8(W.globallyAllowedAttributePrefixes)).some(function(n){return k.indexOf(n)===0})?{policyAction:1}:{policyAction:0}};var Q1A="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(" "),
pY8=[["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}]])]],vB2="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
e$b=[["dir",{policyAction:3,conditions:wj(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:wj(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:wj(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:wj(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],s1x=new l1(new Set(Q1A),new Map(pY8),new Set(vB2),new Map(e$b)),GC2=new l1(new Set(Q1A.concat(["BUTTON",
"INPUT"])),new Map(pY8),new Set(wj(function(){return vB2.concat(["class","id","name"])})),new Map(wj(function(){return e$b.concat([["style",
{policyAction:1}]])})));var yts,$us,R$I;yts=function(W,k,C,n){this.JSC$7165_sanitizerTable=W;this.styleElementSanitizer=k;this.styleAttributeSanitizer=C;this.JSC$7165_resourceUrlPolicy=n;this.changes=[]};
_.Z78=function(W,k){var C=document.implementation.createHTMLDocument("");W=$us(W,k,C);C=C.body;C.appendChild(W);C=(new XMLSerializer).serializeToString(C);C=C.slice(C.indexOf(">")+1,C.lastIndexOf("</"));return $3(C)};
$us=function(W,k,C){k=D3X(k,C);k=document.createTreeWalker(k,5,function(w){if(w.nodeType===3)w=1;else if(JUc(w))if(w=V3P(w),w===null)w=2;else{var x=W.JSC$7165_sanitizerTable;w=w!=="FORM"&&(x.allowedElements.has(w)||x.elementPolicies.has(w))?1:2}else w=2;return w});
for(var n=k.nextNode(),N=C.createDocumentFragment(),B=N;n!==null;){var A=void 0;if(n.nodeType===3)W.styleElementSanitizer&&B.nodeName==="STYLE"?(n=W.styleElementSanitizer(n.data),A=W.createTextNode(n)):A=W.createTextNode(n.data);else if(JUc(n))A=R$I(W,n,C);else throw Error("da");B.appendChild(A);if(n=k.firstChild())B=A;else for(;!(n=k.nextSibling())&&(n=k.parentNode());)B=B.parentNode}return N};
yts.prototype.createTextNode=function(W){return document.createTextNode(W)};
R$I=function(W,k,C){var n,N=V3P(k);C=C.createElement(N);k=k.attributes;for(var B=_.b(k),A=B.next();!A.done;A=B.next()){var w=A.value;A=w.name;w=w.value;var x=M7A(W.JSC$7165_sanitizerTable,A,N);a:{if(n=x.conditions){n=_.b(n);for(var E=n.next();!E.done;E=n.next()){var a=_.b(E.value);E=a.next().value;a=a.next().value;var X=void 0;if((E=(X=k.getNamedItem(E))==null?void 0:X.value)&&!a.has(E)){n=!1;break a}}}n=!0}if(n)switch(x.policyAction){case 1:WD(C,A,w);break;case 2:x=_.u7I(w);w=x!==void 0&&IZz.indexOf(x.toLowerCase())!==
-1?w:"about:invalid#zClosurez";WD(C,A,w);break;case 3:WD(C,A,w.toLowerCase());break;case 4:W.styleAttributeSanitizer?(w=W.styleAttributeSanitizer(w),WD(C,A,w)):WD(C,A,w);break;case 5:W.JSC$7165_resourceUrlPolicy?(x={type:2,attributeName:A,elementName:N},w=zsX(w),(w=W.JSC$7165_resourceUrlPolicy(w,x))&&WD(C,A,w.toString())):WD(C,A,w);break;case 6:if(W.JSC$7165_resourceUrlPolicy){x={type:2,attributeName:A,elementName:N};n=[];w=_.b(w.split(","));for(E=w.next();!E.done;E=w.next())a=_.b(E.value.trim().split(/\s+/,
2)),E=a.next().value,a=a.next().value,n.push({url:E,descriptor:a});w={parts:[]};n=_.b(n);for(E=n.next();!E.done;E=n.next())E=E.value,a=zsX(E.url),(a=W.JSC$7165_resourceUrlPolicy(a,x))&&w.parts.push({url:a.toString(),descriptor:E.descriptor});WD(C,A,cU4(w))}else WD(C,A,w)}}return C};
_.oBx=wj(function(){return new yts(s1x)});
_.i7I=wj(function(){return new yts(GC2)});var TZY=function(){this.calledBuild=!1;this.JSC$7177_sanitizerTable=s1x},qSA=function(){TZY.apply(this,arguments)};
_.D(qSA,TZY);qSA.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new yts(this.JSC$7177_sanitizerTable,void 0,void 0,this.JSC$7177_resourceUrlPolicy)};var u6s=/[^#]*/;var Oyw=function(W){try{return!!W&&W.location.href!=null&&Pgw(W,"foo")}catch(k){return!1}},O7Z=function(W){var k=Uus;
if(k)for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&W(k[C],C,k)},Li8=function(){var W=[];
O7Z(function(k){W.push(k)});
return W},Uus={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"},j1S=_.FH(function(){return Li8()}),rt8=function(){var W=H7Y("IFRAME"),
k={};
_.eO(j1S(),function(C){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(C)&&(k[C]=!0)});
return k},H7Y=function(W,k){k=k===void 0?document:k;
return k.createElement(String(W).toLowerCase())};var tu=function(W){this.context=W};
tu.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!BT(this.context)};
tu.prototype.ping=function(){var W=this;return fg(_.v6.apply(0,arguments).map(function(k){try{var C=W.context.global,n=!1;n=n===void 0?!1:n;C.google_image_requests||(C.google_image_requests=[]);var N=H7Y("IMG",C.document);n&&(N.attributionSrc="");N.src=k;C.google_image_requests.push(N);return!0}catch(B){return!1}}).every(function(k){return k}))};
tu.prototype.pingWithHeadersAndBody=function(W,k,C){this.ping.apply(this,_.J8(_.v6.apply(3,arguments)))};var gBx=function(W){this.context=W};
gBx.prototype.isSupported=function(W){return PEA&&!BT(this.context)&&SX2(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
gBx.prototype.makeBeacon=function(W,k){if(!this.isSupported(k))throw new C0;return new Ey(this.context,W)};
var PEA=!1,Ey=function(W,k){this.context=W;this.JSC$7199_urlWithoutToken=k;W=SX2(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(KiY(this),{})},KiY=function(W){W=W.JSC$7199_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
Ey.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Ey.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Ey.prototype.setHeader=function(){};
_.oq.Object.defineProperties(Ey.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7199_urlWithoutToken},
set:function(W){this.JSC$7199_urlWithoutToken=W;this.wrappedBeacon.setURL(KiY(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new C0;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var h$s=function(W){this.context=W};
h$s.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var k;return!BT(this.context)&&((k=this.context.global.navigator)==null?void 0:k.sendBeacon)!==void 0};
h$s.prototype.ping=function(){var W=this;return fg(_.v6.apply(0,arguments).map(function(k){var C;return(C=W.context.global.navigator)==null?void 0:C.sendBeacon(k)}).every(function(k){return k}))};
h$s.prototype.pingWithHeadersAndBody=function(W,k,C){this.ping.apply(this,_.J8(_.v6.apply(3,arguments)))};var FR=function(W){this.value=W},q3=function(W,k){return fg(W.value).pipe(bB(k))},UX=new FR(!1),wvm=new FR(!0);var sX=function(W){this.value=W;this.releasedSubject=new nU};
sX.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.oq.Object.defineProperties(sX.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7212_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var iUI=["FRAME","IMG","IFRAME"],GlI=/^[01](px)?$/,o0K=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Rsw=function(){var W=new o0K;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var W_I=function(W,k){var C=jOK(W);if(C)if(C.onCreativeLoad)C.onCreativeLoad(k);else{var n=k?[k]:[],N=function(B){for(var A=0;A<n.length;++A)try{n[A](1,B)}catch(w){}n={push:function(w){w(1,B)}}};
C.onCreativeLoad=function(B){n.push(B)};
C.setAttribute("data-creative-load-listener","");C.addEventListener("creativeLoad",function(B){N(B.detail)});
_.NX.addEventListener("message",function(B){LDw(C,N,B)})}};var aH=function(W,k){var C=this;this.global=W;this.parentContext=k;this.JSC$7223_onVisibilityChange=this.document?vX(fg(!0),Q2(this.document,"visibilitychange")).pipe(y2(this.parentContext.performanceMonitor,748),V2(function(){return C.getVisibilityState()}),iM()):fg("visible");
this.document?Q2(this.document,"DOMContentLoaded").pipe(y2(this.parentContext.performanceMonitor,739),ob(1)):fg(esP("DOMContentLoaded"))},FhX=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
aH.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
aH.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
aH.prototype.querySelectorAll=function(W){return this.document?_.T4(this.document.querySelectorAll(W)):[]};
aH.prototype.elementFromPoint=function(W,k){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,k);return W===null?null:new sX(W)};
var K$P=function(W,k,C){C=C===void 0?!1:C;if(k.ref===void 0||!W.document)return fg(k).pipe(y2(W.parentContext.performanceMonitor,749));var n=new Lg(1),N=function(){n.next(k)};
C||W_I(k.ref,N);TPp(k.ref,N);return n.pipe(y2(W.parentContext.performanceMonitor,749),ob(1))};
_.oq.Object.defineProperties(aH.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Pgw(this.global,"document")?this.global.document||null:null}}});var HUK=_.iH(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),rUw=_.iH(["./reach_worklet.js"]),g0m=_.iH(["./reach_worklet.js"]),kiA=_.iH(["./reach_worklet.html"]),C5x=_.iH(["./reach_worklet.js"]),n32=_.iH(["./reach_worklet.js"]);_.k0(kiA);_.k0(C5x);_.k0(n32);var Zd={left:0,top:0,width:0,height:0};var XH;_.Sq=function(W,k,C){return Math.min(Math.max(W,k),C)};
XH=function(W,k,C){return W+C*(k-W)};_.S3=function(W,k){this.x=W!==void 0?W:0;this.y=k!==void 0?k:0};
_.Y=_.S3.prototype;_.Y.clone=function(){return new _.S3(this.x,this.y)};
_.Y.equals=function(W){return W instanceof _.S3&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.Y.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.Y.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.Y.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.Y.translate=function(W,k){W instanceof _.S3?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof k==="number"&&(this.y+=k));return this};
_.Y.scale=function(W,k){this.x*=W;this.y*=typeof k==="number"?k:W;return this};_.lB=function(W,k){this.width=W;this.height=k};
_.Y=_.lB.prototype;_.Y.clone=function(){return new _.lB(this.width,this.height)};
_.Y.area=function(){return this.width*this.height};
_.Y.aspectRatio=function(){return this.width/this.height};
_.Y.isEmpty=function(){return!this.area()};
_.Y.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.Y.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.Y.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.Y.scale=function(W,k){this.width*=W;this.height*=typeof k==="number"?k:W;return this};var VE=function(W,k){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===Ejw&&k||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=NjA};
VE.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var YzS=function(W){return W instanceof VE&&W.constructor===VE&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===NjA?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},NjA={},Ejw={};
new VE(Ejw,"");var aO,lg,d2,Bj8,F_8,AoA,M3,xaS,tNY,llx,V$,E3A,Dax,zrs,ma8,VN8,JoZ,co8,IlY,sEw,SzC,QeS,p6C,MNS,f0,erZ;aO=function(W){return W?new f0(_.QZ(W)):YHX||(YHX=new f0)};
_.oh=function(W,k){return typeof k==="string"?W.getElementById(k):k};
lg=function(W,k){return(k||document).getElementsByTagName(String(W))};
_.bLs=function(W){return Bj8("yt-formatted-string","paper-input-input",W)};
d2=function(W,k,C,n){W=n||W;return(k=k&&k!="*"?String(k).toUpperCase():"")||C?W.querySelectorAll(k+(C?"."+C:"")):W.getElementsByTagName("*")};
Bj8=function(W,k,C){var n=document,N=W&&W!="*"?String(W).toUpperCase():"";return N||k?(C||n).querySelector(N+(k?"."+k:"")):d2(n,W,k,C)[0]||null};
F_8=function(W,k){_.JU.forEach(k,function(C,n){n=="style"?W.style.cssText=C:n=="class"?W.className=C:n=="for"?W.htmlFor=C:AoA.hasOwnProperty(n)?W.setAttribute(AoA[n],C):_.AK(n,"aria-")||_.AK(n,"data-")?W.setAttribute(n,C):W[n]=C})};
AoA={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"};_.tU=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.lB(W.clientWidth,W.clientHeight)};
_.w6A=function(W){var k=_.mG(W);W=W.defaultView;return new _.S3(W.pageXOffset||k.scrollLeft,W.pageYOffset||k.scrollTop)};
_.mG=function(W){return W.scrollingElement?W.scrollingElement:_.Nb||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
M3=function(W){return W?W.defaultView:window};
_.zK=function(W,k,C){return xaS(document,arguments)};
xaS=function(W,k){var C=k[1],n=llx(W,String(k[0]));C&&(typeof C==="string"?n.className=C:Array.isArray(C)?n.className=C.join(" "):F_8(n,C));k.length>2&&tNY(W,n,k,2);return n};
tNY=function(W,k,C,n){function N(w){w&&k.appendChild(typeof w==="string"?W.createTextNode(w):w)}
for(;n<C.length;n++){var B=C[n];if(!_.qX(B)||_.O2(B)&&B.nodeType>0)N(B);else{a:{if(B&&typeof B.length=="number"){if(_.O2(B)){var A=typeof B.item=="function"||typeof B.item=="string";break a}if(typeof B==="function"){A=typeof B.item=="function";break a}}A=!1}_.eO(A?_.T4(B):B,N)}}};
_.wu=function(W){return llx(document,W)};
llx=function(W,k){k=String(k);W.contentType==="application/xhtml+xml"&&(k=k.toLowerCase());return W.createElement(k)};
_.D8=function(){return document.createTextNode("\n")};
V$=function(W){if(W.nodeType!=1)return!1;switch(W.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};
E3A=function(W,k){tNY(_.QZ(W),W,arguments,1)};
_.Ju=function(W){for(var k;k=W.firstChild;)W.removeChild(k)};
_.cT=function(W,k){k.parentNode&&k.parentNode.insertBefore(W,k)};
_.IH=function(W,k){k.parentNode&&k.parentNode.insertBefore(W,k.nextSibling)};
_.xL=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.alb=function(W,k){var C=k.parentNode;C&&C.replaceChild(W,k)};
_.X6C=function(W){var k,C=W.parentNode;if(C&&C.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;k=W.firstChild;)C.insertBefore(k,W);_.xL(W)}};
_.MJ=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(k){return k.nodeType==1})};
_.daA=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.flY(W.nextSibling,!0)};
_.flY=function(W,k){for(;W&&W.nodeType!=1;)W=k?W.nextSibling:W.previousSibling;return W};
_.Gw=function(W){return _.O2(W)&&W.nodeType==1};
_.vf=function(W,k){if(!W||!k)return!1;if(W.contains&&k.nodeType==1)return W==k||W.contains(k);if(typeof W.compareDocumentPosition!="undefined")return W==k||!!(W.compareDocumentPosition(k)&16);for(;k&&W!=k;)k=k.parentNode;return k==W};
Dax=function(W,k){if(W==k)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(k)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var C=W.nodeType==1,n=k.nodeType==1;if(C&&n)return W.sourceIndex-k.sourceIndex;var N=W.parentNode,B=k.parentNode;return N==B?ma8(W,k):!C&&_.vf(N,k)?-1*zrs(W,k):!n&&_.vf(B,W)?zrs(k,W):(C?W.sourceIndex:N.sourceIndex)-(n?k.sourceIndex:B.sourceIndex)}n=_.QZ(W);C=n.createRange();C.selectNode(W);C.collapse(!0);W=n.createRange();W.selectNode(k);
W.collapse(!0);return C.compareBoundaryPoints(_.NX.Range.START_TO_END,W)};
zrs=function(W,k){var C=W.parentNode;if(C==k)return-1;for(;k.parentNode!=C;)k=k.parentNode;return ma8(k,W)};
ma8=function(W,k){for(;k=k.previousSibling;)if(k==W)return-1;return 1};
VN8=function(W){var k,C=arguments.length;if(!C)return null;if(C==1)return arguments[0];var n=[],N=Infinity;for(k=0;k<C;k++){for(var B=[],A=arguments[k];A;)B.unshift(A),A=A.parentNode;n.push(B);N=Math.min(N,B.length)}B=null;for(k=0;k<N;k++){A=n[0][k];for(var w=1;w<C;w++)if(A!=n[w][k])return B;B=A}return B};
_.QZ=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
JoZ=function(W){return W.contentDocument||W.contentWindow.document};
_.Q$=function(W,k){if("textContent"in W)W.textContent=k;else if(W.nodeType==3)W.data=String(k);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(k)}else _.Ju(W),W.appendChild(_.QZ(W).createTextNode(String(k)))};
co8={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};IlY={IMG:" ",BR:"\n"};sEw=function(W){var k;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?k=!W.disabled&&(!W.hasAttribute("tabindex")||SzC(W)):k=W.hasAttribute("tabindex")&&SzC(W);return k};
SzC=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
QeS=function(W){var k=[];MNS(W,k,!0);W=k.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
p6C=function(W){var k=[];MNS(W,k,!1);return k.join("")};
MNS=function(W,k,C){if(!(W.nodeName in co8))if(W.nodeType==3)C?k.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):k.push(W.nodeValue);else if(W.nodeName in IlY)k.push(IlY[W.nodeName]);else for(W=W.firstChild;W;)MNS(W,k,C),W=W.nextSibling};
_.v3S=function(W,k,C){if(!k&&!C)return null;var n=k?String(k).toUpperCase():null;return _.vD(W,function(N){return(!n||N.nodeName==n)&&(!C||typeof N.className==="string"&&_.ZX(N.className.split(/\s+/),C))},!0)};
_.vD=function(W,k,C){W&&!C&&(W=W.parentNode);for(C=0;W;){if(k(W))return W;W=W.parentNode;C++}return null};
f0=function(W){this.JSC$7241_document_=W||_.NX.document||document};
erZ=function(W){return W.JSC$7241_document_};
_.Y=f0.prototype;_.Y.getElement=function(W){return _.oh(this.JSC$7241_document_,W)};
_.Y.$=f0.prototype.getElement;_.Y.getElementsByTagName=function(W,k){return(k||this.JSC$7241_document_).getElementsByTagName(String(W))};
_.Y.getElementsByTagNameAndClass=function(W,k,C){return d2(this.JSC$7241_document_,W,k,C)};
_.Y.$$=f0.prototype.getElementsByTagNameAndClass;_.Y.setProperties=F_8;_.Y.JSC$7243_createDom=function(W,k,C){return xaS(this.JSC$7241_document_,arguments)};
_.Y.createElement=function(W){return llx(this.JSC$7241_document_,W)};
_.Y.createTextNode=function(W){return this.JSC$7241_document_.createTextNode(String(W))};
_.Y.getWindow=function(){return this.JSC$7241_document_.defaultView};
var EX=function(W){return _.w6A(W.JSC$7241_document_)};
_.Y=f0.prototype;_.Y.appendChild=function(W,k){W.appendChild(k)};
_.Y.append=E3A;_.Y.canHaveChildren=V$;_.Y.removeNode=_.xL;_.Y.getChildren=_.MJ;_.Y.contains=_.vf;_.Y=x0.prototype;_.Y.getWidth=function(){return this.right-this.left};
_.Y.getHeight=function(){return this.bottom-this.top};
_.Y.clone=function(){return new x0(this.top,this.right,this.bottom,this.left)};
_.Y.contains=function(W){return this&&W?W instanceof x0?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.Y.expand=function(W,k,C,n){_.O2(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(k),this.bottom+=Number(C),this.left-=Number(n));return this};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(W,k){W instanceof _.S3?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof k==="number"&&(this.top+=k,this.bottom+=k));return this};
_.Y.scale=function(W,k){k=typeof k==="number"?k:W;this.left*=W;this.right*=W;this.top*=k;this.bottom*=k;return this};var Xfm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Xfm,_.US);Xfm.prototype.getVersion=function(){return _.Vo(this,2)};var a02=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(a02,_.US);var FJ2=function(W,k){return _.fU(W,2,k)},ELm=function(W,k){return _.fU(W,3,k)};
a02.prototype.getModel=function(){return _.Vo(this,4)};
var xDw=function(W,k){return _.fU(W,4,k)},Adp=function(W,k){return _.fU(W,5,k)},t_m=function(W,k){return _.fU(W,9,k)},bNp=function(W,k){return X2(W,10,k)},BuP=function(W,k){return _.CN(W,11,k)},wfz=function(W,k){return _.fU(W,1,k)},l0m=function(W,k){return _.CN(W,7,k)};var NuJ="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var uB=function(W,k,C,n){W=W===void 0?window:W;k=k===void 0?null:k;C=C===void 0?new bAI:C;n=n===void 0?PBm():n;g2Y.call(this);var N=this;this.global=W;this.debugChannel=k;this.performanceMonitor=C;this.onPageHide=igI(function(){return Q2(N.global,"pagehide")}).pipe(y2(this.performanceMonitor,941));
this.onLoad=igI(function(){return Q2(N.global,"load")}).pipe(y2(this.performanceMonitor,738),ob(1));
this.onResize=igI(function(){return Q2(N.global,"resize")}).pipe(y2(this.performanceMonitor,741));
this.onMessage=igI(function(){return Q2(N.global,"message")}).pipe(y2(this.performanceMonitor,740));
this.document=new aH(this.global,this);this.timeProvider=new CEC(new NZS(this.intrinsicFunctionNamespace,this.performanceMonitor),new nBI(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new hCb(new BZs(this),new gBx(this),new n0(this,new FiY(this)),new n0(this,new h$s(this)),new n0(this,new tu(this)))};
_.D(uB,g2Y);var BT=function(W){var k=W.global;return!!W.global.HTMLFencedFrameElement&&!!k.fence&&typeof k.fence.reportEvent==="function"};
_.Y=uB.prototype;_.Y.reportFencedFrameEvent=function(W){BT(this)&&this.global.fence.reportEvent(W)};
_.Y.getOnBackgrounded=function(){return this.onPageHide.pipe(y2(this.performanceMonitor,942),bB(this.queue),V2(function(){}))};
_.Y.postMessage=function(W,k,C){C=C===void 0?[]:C;this.global.postMessage(W,k,C)};
_.Y.getWidth=function(){return Oyw(this.global)?this.global.width:0};
_.Y.getHeight=function(){return Oyw(this.global)?this.global.height:0};
_.Y.isMobile=function(){return xuS()||lAA()};
var Gl=function(W,k){try{var C=kbI(k,W.global,W.isMobile());return{left:C.left,top:C.top,width:C.getWidth(),height:C.getHeight()}}catch(n){return Zd}};
uB.prototype.validate=function(){var W=this.beaconFactory.isSupported()||BT(this);return this.global&&this.timeProvider.available()&&W};
var QOw=function(W){return(W=dD4(W.global))?A8(W):null};
_.oq.Object.defineProperties(uB.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Oyw(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}}});_.seZ=!_.Cr&&!_.Fmm();var xIw=function(W){return W};var tOw=function(W){return W.pipe(ei(function(k){var C=k.endOfSessionReason;var n;return((n=k.viewable)==null?void 0:n.extrapolateToNow().value)||C!=void 0}),ob(1),Ze())};var I0p=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Sgz=function(W){var k=W.sequenceNumber.toString(10).padStart(2,"0");
k=""+W.startTime+k;W.sequenceNumber<99&&W.sequenceNumber++;return k};var Ajc=N9(Kg(function(W){return W.endOfSessionReason===void 0}),V2(function(W){return Object.assign({},W,{timestamps:mD(W)})}),ei(function(W){var k=W.viewable;
W=W.timestamps;var C;return(C=k==null?void 0:k.extrapolateUsingTimestampMap(W).value)!=null?C:!1}),V2(function(W){var k=W.beaconFactory;
var C=W.timestampedExposureHistory;var n=W.timeOnScreen;var N=W.binaryContext;W=W.timestamps;if(k===void 0||C===void 0||n===void 0||N===void 0)return!1;if(n.extrapolateUsingTimestampMap(W).value.every(function(B){return B>=0}))return!0;
C=C.map(function(B){return B.timestamp+":"+B.value}).join(",");
n=M_2({bin:N,tos:n},W);k.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+n+("&eh="+C)).sendNow();return!0}),Kg(function(W){return!W}),Ze());var pfJ=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var lE4=function(W){var k=[];return W.pipe(V2(function(C){var n=C.beaconFactory,N=C.fetchBeaconFactory,B=C.timeOnScreen,A=C.timeOnScreenUrlPrefixes,w=C.payloadMapper,x=C.timeOnScreenPingId,E=C.timeOnScreenReason,a=C.urlSerializer,X=C.viewable,d=C.hasImpressionFired,V=C.inStatefulBeaconExperiment,c=C.supportsPendingBeacon,M=C.supportsFetchLater,p=C.turtlexReportEventData;if(!C.geometryMeasurable||!d||C.maxTimeOnScreen===void 0||B===void 0||A===void 0||w===void 0||x===void 0||a===void 0||n===void 0)return!1;
if(C.isTurtlex){if(E===void 0)return!1;A=C.reportFencedFrameEvent;if(!A)return!1;A({eventType:"active-view-time-on-screen",eventData:p!=null?p:"",destination:["buyer"]});return!0}if(!(V||M||E))return!1;p=mD(C);var e;X=(e=X==null?void 0:X.extrapolateUsingTimestampMap(p).value)!=null?e:!1;e=a(Object.assign({},C,{pingId:x,viewState:X?4:3,reasonCode:E!=null?E:"u",payloadMapper:w,urlPrefixes:A}),p);if(V){for(;k.length>A.length;)C=void 0,(C=k.shift())==null||C.deactivate();e.forEach(function(h,L){L>=k.length?
k.push(n.makeBeacon(h)):k[L].url=h});
return c&&N&&E!==void 0?(e.forEach(function(h){N.makeBeacon(h).sendNow()}),!0):E!==void 0}if(c&&N&&E!==void 0)return e.forEach(function(h){N.makeBeacon(h).sendNow()}),!0;
if(M&&N){for(;k.length>A.length;)c=void 0,(c=k.shift())==null||c.deactivate();var u=a(Object.assign({},C,{pingId:x,viewState:X?4:3,reasonCode:E!=null?E:"u",payloadMapper:w,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),p)[0];e.forEach(function(h,L){L>=k.length?k.push(n.makeBeacon(u,{endOfSession:!0})):k[L].url=u});
return E!==void 0?(e.forEach(function(h){N.makeBeacon(h).sendNow()}),!0):E!==void 0}return E!==void 0?(e.forEach(function(h){n.makeBeacon(h).sendNow()}),!0):!1}),Kg(function(C){return!C}),Ze())};var Enz=N9(ei(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),ei(function(W){return RAm(W)!==null}),$DX(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),V2(function(W){if(W.isTurtlex){var k=W.reportFencedFrameEvent;
if(k){var C;k({eventType:"active-view-unmeasurable",eventData:(C=W.turtlexReportEventData)!=null?C:"",destination:["buyer"]})}}else{C=void 0;var n=RAm(W);if(n==="x"){var N,B=(N=W.geometricMeasurementErrors)!=null?N:W.contextValidationErrors;B&&(k=B.stack,C=B.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:n,errorMessage:C,errorStack:k}),mD(W)).forEach(function(A){W.beaconFactory.makeBeacon(A).sendNow()})}}),
ob(1),Ze());var oLJ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var bSm=N9(ei(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),V2(function(W){return Object.assign({},W,{timestamps:mD(W)})}),ei(function(W){var k=W.viewable;
var C=W.hasImpressionFired;W=W.timestamps;var n;return!!C&&((n=k==null?void 0:k.extrapolateUsingTimestampMap(W).value)!=null?n:!1)}),$DX(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),V2(function(W){var k=W.beaconFactory,C=W.turtlexReportEventData;
if(W.isTurtlex){var n=W.reportFencedFrameEvent;if(!n)return!1;n({eventType:"active-view-viewable",eventData:C!=null?C:"",destination:["buyer"]});return!0}C=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(n=W.cpmavUrls)&&n.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(n,W).forEach(function(N){k.makeBeacon(N).sendNow()});
(n=W.viewableRelayUrls)&&n.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(n,W).forEach(function(N){k.makeBeacon(N).sendNow()});
C.forEach(function(N){k.makeBeacon(N,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),Kg(function(W){return!W}),Ze());var pH3=V2(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var yZ=function(W,k){this.callback=W;this.options=k;this.intersectionObserverV2=this.intersectionObserverV1=null},lDw=function(W,k){k?W.intersectionObserverV2||(k=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,k)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},GiC=function(W,k){W=k?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new Pb8;return W};
yZ.prototype.observe=function(W,k){GiC(this,W).observe(k)};
yZ.prototype.unobserve=function(W,k){GiC(this,W).unobserve(k)};
yZ.prototype.disconnect=function(W){GiC(this,W).disconnect()};
yZ.prototype.takeRecords=function(W){return GiC(this,W).takeRecords()};var W$P={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Zd,topWindowViewportExternalGeometry:Zd,measurementRequests:new nU,elementGeometrySourceName:"ns",elementGeometry:Zd,intersectionGeometry:Zd,viewportLocalAppOffset:{x:0,y:0}};var p0=function(W,k,C,n){this.left=W;this.top=k;this.width=C;this.height=n};
_.Y=p0.prototype;_.Y.clone=function(){return new p0(this.left,this.top,this.width,this.height)};
_.Y.boundingRect=function(W){var k=Math.max(this.left+this.width,W.left+W.width),C=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=k-this.left;this.height=C-this.top};
_.Y.contains=function(W){return W instanceof _.S3?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.Y.distance=function(W){var k=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(k*k+W*W)};
_.Y.getSize=function(){return new _.lB(this.width,this.height)};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(W,k){W instanceof _.S3?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof k==="number"&&(this.top+=k));return this};
_.Y.scale=function(W,k){k=typeof k==="number"?k:W;this.left*=W;this.width*=W;this.top*=k;this.height*=k;return this};var $ax,sy,KJw,e5,iLb,o3z,TjI,I8P,qzs,Uas;_.vT=function(W,k,C){if(typeof k==="string")(k=_.yoA(W,k))&&(W.style[k]=C);else for(var n in k){C=W;var N=k[n],B=_.yoA(C,n);B&&(C.style[B]=N)}};
$ax={};_.yoA=function(W,k){var C=$ax[k];if(!C){var n=_.bd(k);C=n;W.style[n]===void 0&&(n=(_.Nb?"Webkit":_.nr?"Moz":null)+ySs(n),W.style[n]!==void 0&&(C=n));$ax[k]=C}return C};
_.l2=function(W,k){var C=_.QZ(W);return C.defaultView&&C.defaultView.getComputedStyle&&(W=C.defaultView.getComputedStyle(W,null))?W[k]||W.getPropertyValue(k)||"":""};
_.pN=function(W,k){return _.l2(W,k)||(W.currentStyle?W.currentStyle[k]:null)||W.style&&W.style[k]};
_.ZLx=function(W){return _.pN(W,"position")};
sy=function(W,k,C){if(k instanceof _.S3){var n=k.x;k=k.y}else n=k,k=C;W.style.left=e5(n,!1);W.style.top=e5(k,!1)};
KJw=function(W){try{return W.getBoundingClientRect()}catch(k){return{left:0,top:0,right:0,bottom:0}}};
_.pU=function(W){var k=_.QZ(W),C=new _.S3(0,0);if(W==(k?_.QZ(k):document).documentElement)return C;W=KJw(W);k=EX(aO(k));C.x=W.left+k.x;C.y=W.top+k.y;return C};
_.RrS=function(W,k,C){if(k instanceof _.lB)C=k.height,k=k.width;else if(C==void 0)throw Error("sa");W.style.width=e5(k,!0);W.style.height=e5(C,!0)};
e5=function(W,k){typeof W=="number"&&(W=(k?Math.round(W):W)+"px");return W};
iLb=function(W){return o3z(W)};
o3z=function(W){var k=TjI;if(_.pN(W,"display")!="none")return k(W);var C=W.style,n=C.display,N=C.visibility,B=C.position;C.visibility="hidden";C.position="absolute";C.display="inline";W=k(W);C.display=n;C.position=B;C.visibility=N;return W};
TjI=function(W){var k=W.offsetWidth,C=W.offsetHeight,n=_.Nb&&!k&&!C;return(k===void 0||n)&&W.getBoundingClientRect?(W=KJw(W),new _.lB(W.right-W.left,W.bottom-W.top)):new _.lB(k,C)};
I8P=function(W){var k=_.pU(W);W=o3z(W);return new p0(k.x,k.y,W.width,W.height)};
qzs=function(W,k){W=W.style;"opacity"in W?W.opacity=k:"MozOpacity"in W?W.MozOpacity=k:"filter"in W&&(W.filter=k===""?"":"alpha(opacity="+Number(k)*100+")")};
_.Z0=function(W,k){W.style.display=k?"":"none"};
_.u7A=function(W){return"rtl"==_.pN(W,"direction")};
Uas=function(W){var k=_.l2(W,"marginLeft"),C=_.l2(W,"marginRight"),n=_.l2(W,"marginTop");W=_.l2(W,"marginBottom");return new x0(parseFloat(n),parseFloat(C),parseFloat(W),parseFloat(k))};
_.OLA=function(W){var k=_.l2(W,"borderLeftWidth"),C=_.l2(W,"borderRightWidth"),n=_.l2(W,"borderTopWidth");W=_.l2(W,"borderBottomWidth");return new x0(parseFloat(n),parseFloat(C),parseFloat(W),parseFloat(k))};var L_S=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)},dfz=RO(N9(V2(function(W){var k;
return(k=W.exposureOverride)!=null?k:L_S(W)}),V2(function(W){return isFinite(W)?W:0}))),IDm=RO(N9(V2(function(W){var k;
return(k=W.exposureOverride)!=null?k:L_S(W)}),V2(function(W){return isFinite(W)?W:-1})));var GK=function(W,k){this.a=W;this.b=k;if(W.clock.timeline!==k.clock.timeline)throw Error();};
GK.prototype.equivalentTo=function(W){return W instanceof GK?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
GK.prototype.extrapolateToTime=function(W){var k=this.a.extrapolateToTime(W).value,C=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[k,C]}};
_.oq.Object.defineProperties(GK.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),k=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,C=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[k,C]}}}});var y$=function(W,k){this.input=W;this.mapFunction=k;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
y$.prototype.equivalentTo=function(W){return W instanceof y$?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
y$.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.oq.Object.defineProperties(y$.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var $o=function(){};
$o.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
$o.prototype.extrapolateUsingTimestampMap=function(W){var k=this.clock.timeline,C,n=(C=W.get(k))!=null?C:this.clock.now();W.set(k,n);return this.extrapolateToTime(n)};
$o.prototype.map=function(W){return new jeb(this,W)};
$o.prototype.joinWith=function(W){return new HLA(this,W)};
var HLA=function(){GK.apply(this,arguments);this.map=$o.prototype.map;this.joinWith=$o.prototype.joinWith;this.extrapolateToNow=$o.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$o.prototype.extrapolateUsingTimestampMap};
_.D(HLA,GK);var jeb=function(){y$.apply(this,arguments);this.map=$o.prototype.map;this.joinWith=$o.prototype.joinWith;this.extrapolateToNow=$o.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$o.prototype.extrapolateUsingTimestampMap};
_.D(jeb,y$);var iB=function(W,k){this.lastMeasurement=k;this.extrapolateToNow=$o.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$o.prototype.extrapolateUsingTimestampMap;this.map=$o.prototype.map;this.joinWith=$o.prototype.joinWith;this.clock=W};
iB.prototype.equivalentTo=function(W){return W.active};
iB.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.oq.Object.defineProperties(iB.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var QWc=V2(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var aDp=N9(ei(function(W){return!isNaN(W)}),rT(function(W,k){return isNaN(W)?k:Math.min(W,k)},NaN),iM());var mfm=RO(N9(V2(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),V2(function(W){return isFinite(W)?Math.min(1,W):0})));var Mwm=N9(RO(V2(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var sW4=function(W,k){var C=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=k.pipe(iM()).subscribe(function(n){yYX(C);C.measurementRequestObserver=n})},$fK=function(W,k){yYX(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var C;return void((C=W.measurementRequestObserver)==null?void 0:C.next())},k)},yYX=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
sW4.prototype.dispose=function(){yYX(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var rox=function(){};var NAz=function(W,k){this.context=W;this.strategies=k};
_.D(NAz,rox);NAz.prototype.buildGeometrySource=function(W,k){var C=this.strategies.map(function(B){return B.buildGeometrySource(W,k)}),n=TwX(C.map(function(B){return B.geometrySource})),N=n.capturedErrors.pipe(g38());
return{geometrySource:n.chain.pipe(bB(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:N,strategyErrors:n.capturedErrors}].concat(_.J8(C.map(function(B){return B.additionalOutputs}))))}};
var g38=function(){return rT(function(W,k){k instanceof Dd?W.push(k.measurementStrategyFailureReason):W.push(-1);return W},[])};var BAp=function(W,k){this.context=W;this.poller=k};
_.D(BAp,rox);BAp.prototype.buildGeometrySource=function(W,k){var C=qoz(Ufw(this.context,this.poller),kmP(this.context,k.requestSource));return{geometrySource:iyX(W.measurableCreative.pipe(C),k.inApp),additionalOutputs:{}}};var YeK=function(W,k,C){C=C===void 0?byw(W,k):C;this.context=W;this.intersectionObserverStrategy=C};
_.D(YeK,rox);YeK.prototype.buildGeometrySource=function(W,k){var C=this.intersectionObserverStrategy(k.useV2);return{geometrySource:iyX(W.measurableCreative.pipe(C,AYw(this.context)),k.inApp),additionalOutputs:{}}};var P5b=function(W,k,C){var n=n===void 0?Symbol():n;this.element=W;this.immediateUrls=k;this.timeOnScreenUrls=C;this.symbol=n};var e_2=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),gwp=Object.freeze([1,.75,e_2.exposureThreshold,e_2.largeAdExposureThreshold,0]);var J_z=function(W){var k=k===void 0?36E5:k;var C=C===void 0?!0:C;this.creatives=new nU;this.elementsToUnregister=new nU;this.elementMap=new Map;var n=new uB(window,null);n.beaconFactory=new n0(n,new tu(n));nnX(n,this.creatives,this.elementsToUnregister,W,k,C).subscribe()},IQX=function(W,k,C,n){if(!W.elementMap.has(k)){var N=new sX(k);
W.elementMap.set(k,N);W.creatives.next(new P5b(N,C,n))}},c_w=function(W,k){W.elementsToUnregister.next(k);
var C=W.elementMap.get(k);C!==void 0&&(C.release(),W.elementMap.delete(k))};var A7w=function(W){var k=W.url;W=W.uaDataValues;this.JSC$7352_url_=k;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5},F8p=function(W){W=W.uaDataValues_;
if(!W)return"";var k=OX("uap",W.platform)+OX("uapv",W.platformVersion)+OX("uafv",W.uaFullVersion)+OX("uaa",W.architecture)+OX("uam",W.model)+OX("uab",W.bitness);W.fullVersionList&&(k+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(C){return encodeURIComponent(C.brand)+";"+encodeURIComponent(C.version)}).join("|")));
W.wow64!=null&&(k+="&uaw="+Number(W.wow64));return k.slice(1)};var K_2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(K_2,_.US);K_2.prototype.getId=function(){return _.Vo(this,1)};var Z8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Z8,_.US);Z8.prototype.getSeconds=function(){return zv(this,1)};
Z8.prototype.setSeconds=function(W){return _.ZA(this,1,kB(W),"0")};_.Gr=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(_.Gr,_.US);_.Gr.prototype.getSeconds=function(){return zv(this,1)};
_.Gr.prototype.setSeconds=function(W){return _.ZA(this,1,kB(W),"0")};
_.hr2=function(W){var k=Number(c9(W,1));W=_.gP(W,2);return new Date(k*1E3+W/1E6)};var RH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(RH,_.US);RH.prototype.getUrl=function(){return _.Vo(this,1)};
RH.prototype.setUrl=function(W){return _.u2(this,1,W)};
RH.prototype.getHeight=function(){return _.gP(this,2)};
RH.prototype.getWidth=function(){return _.gP(this,3)};var oH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(oH,_.US);oH.prototype.getAspectRatio=function(){return DB(this,1)};
oH.prototype.setAspectRatio=function(W){return _.ZA(this,1,_.ib(W),0)};
oH.prototype.getDuration=function(){return _.q7(this,Z8,2)};var WRb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(WRb,_.US);var kt8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(kt8,_.US);var CMb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(CMb,_.US);var nOC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(nOC,_.US);var NTA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(NTA,_.US);var YF8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(YF8,_.US);var BTA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(BTA,_.US);var bgS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(bgS,_.US);var A88=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(A88,_.US);var i1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(i1,_.US);var TK=[2,4,5,6,7];var FRS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(FRS,_.US);var fr=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(fr,_.US);_.Y=fr.prototype;_.Y.getId=function(){return _.q7(this,K_2,1)};
_.Y.getName=function(){return _.Vo(this,2)};
_.Y.setDescription=function(W){return _.u2(this,3,W)};
_.Y.getUrl=function(){return _.Vo(this,8)};
_.Y.setUrl=function(W){return _.u2(this,8,W)};
var qJ=function(W){return _.HD(W,RH,10,_.rP())};
fr.prototype.getOwner=function(W){var k=_.sS(this,40,_.lE,3,!0);Lmc(k,W);return k[W]};
fr.prototype.getVersion=function(){return zv(this,45)};
var u1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(u1,_.US);_.wXC=[0,rV2,Paw];_.x9Y=[0,rV2,Paw];var les=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(les,_.US);var Uy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Uy,_.US);Uy.prototype.getStatus=function(){return _.Jp(this,1)};
Uy.prototype.removeItem=function(W){return aqz(this,2,W)};var tis=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(tis,_.US);tis.prototype.getName=function(){return _.Vo(this,8)};var Oy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Oy,_.US);Oy.prototype.getCommand=function(){return _.Jp(this,1)};
Oy.prototype.getSource=function(){return _.q7(this,tis,2)};
Oy.prototype.setVisible=function(W){return _.da(this,5,W)};
Oy.prototype.removeItem=function(W){return aqz(this,7,W)};var EOs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(EOs,_.US);EOs.prototype.getCommand=function(){return _.Jp(this,1)};
EOs.prototype.removeItem=function(W){return aqz(this,4,W)};
var aes=_.nL(EOs);var L0=function(W,k,C){C=C===void 0?Error():C;var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.code=W;k+=":";C instanceof Error?(this.message=k+C.message,this.stack=C.stack||""):(this.message=k+String(C),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(L0,Error);_.XK=function(){this.JSC$7410_disposed_=this.JSC$7410_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.XK.prototype.JSC$7410_disposed_=!1;_.XK.prototype.isDisposed=function(){return this.JSC$7410_disposed_};
_.XK.prototype.dispose=function(){this.JSC$7410_disposed_||(this.JSC$7410_disposed_=!0,this.disposeInternal())};
_.XK.prototype[Symbol.dispose]=function(){this.dispose()};
_.Bf=function(W,k){W.addOnDisposeCallback(_.lW(_.LU,k))};
_.XK.prototype.addOnDisposeCallback=function(W,k){this.JSC$7410_disposed_?k!==void 0?W.call(k):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),k&&(W=W.bind(k)),this.onDisposeCallbacks_.push(W))};
_.XK.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var j5=function(W){_.XK.call(this);this.wpc=W};
_.D(j5,_.XK);j5.prototype.gIt=function(){return this.wpc.f()};
j5.prototype.tSo=function(W){return this.wpc.c(W)};
j5.prototype.r4=function(W){return this.wpc.m(DIX(W))};
j5.prototype.q3=function(W){return this.wpc.mws(DIX(W))};
var j3=function(W){_.XK.call(this);var k=this;this.sS=W;this.jwt="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.dfo=void 0;this.ubx=this.sS.p;this.jnt=this.tyt.bind(this);this.addOnDisposeCallback(function(){return void XXs(k)})};
_.D(j3,_.XK);var fez=function(W){var k;return _.F(function(C){if(C.nextAddress==1){if(!W.sS.wpc)throw new L0(30,"NWA");return W.jLA?C.return(W.jLA):_.l(C,W.sS.wpc(),2)}k=C.yieldResult;W.jLA=new j5(k);return C.return(W.jLA)})};
j3.prototype.snapshot=function(W){return this.sS.s(Object.assign({},W.nb&&{c:W.nb},W.idh&&{s:W.idh},W.yco!==void 0&&{p:W.yco}))};
j3.prototype.tyt=function(W){this.sS.e(W)};
j3.prototype.h0b=function(W,k){return this.sS.c(W,k,!1)};
var XXs=function(W){W.dfo!==void 0&&(W.jwt.forEach(function(k){var C;(C=W.dfo)==null||C.removeEventListener(k,W.jnt)}),W.dfo=void 0)};
j3.prototype.aTt=function(){return this.sS.l()};var d9A,HT=function(){_.XK.apply(this,arguments);this.rwA=1;this[d9A]=this.dispose};
_.D(HT,_.XK);HT.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.rwA++;return this};
HT.prototype.dispose=function(){--this.rwA||_.XK.prototype.dispose.call(this)};
d9A=Symbol.dispose;var UIw=function(W){this.ezS=W;W.addNewEventMetric("/client_streamz/bg/frs",_.kL("mk"))};
UIw.prototype.record=function(W,k){this.ezS.record("/client_streamz/bg/frs",W,k)};
var HSJ=function(W){this.sPY=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.kL("mn"),hU("ac"),hU("sc"),_.kL("rk"),_.kL("mk"))};
HSJ.prototype.record=function(W,k,C,n,N,B){this.sPY.record("/client_streamz/bg/wrl",W,k,C,n,N,B)};
var LhI=function(W){this.pal=W;W.addNewCounter("/client_streamz/bg/ec",_.kL("en"),_.kL("mk"))};
LhI.prototype.increment=function(W,k){this.pal.JSC$7659_incrementCounter("/client_streamz/bg/ec",W,k)};
var j4w=function(W){this.ccd=W;W.addNewEventMetric("/client_streamz/bg/el",_.kL("en"),_.kL("mk"))};
j4w.prototype.record=function(W,k,C){this.ccd.record("/client_streamz/bg/el",W,k,C)};
var OS2=function(W){this.iYd=W;W.addNewCounter("/client_streamz/bg/cec",hU("ec"),_.kL("mk"))};
OS2.prototype.increment=function(W,k){this.iYd.JSC$7659_incrementCounter("/client_streamz/bg/cec",W,k)};
var rjP=function(W){this.fF1=W;W.addNewCounter("/client_streamz/bg/po/csc",hU("cs"),_.kL("mk"))};
rjP.prototype.increment=function(W,k){this.fF1.JSC$7659_incrementCounter("/client_streamz/bg/po/csc",W,k)};
var gnw=function(W){this.rcY=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.kL("av"),_.kL("mk"))};
gnw.prototype.increment=function(W,k){this.rcY.JSC$7659_incrementCounter("/client_streamz/bg/po/ctav",W,k)};
var PIJ=function(W){this.nOl=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.kL("su"),_.kL("mk"))};
PIJ.prototype.increment=function(W,k){this.nOl.JSC$7659_incrementCounter("/client_streamz/bg/po/cwsc",W,k)};var YhX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(YhX,_.US);var Ndm=function(W,k){return _.$B(W,3,k,t8m)};var m9b=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(m9b,_.US);var zaS=[1,2,3];var D9A=[0,zaS,_.Cw8,K3p,k42];var Viz=[0,_.oU,[0,L3w,_.yo]];var J8Y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(J8Y,_.US);var c8s=[1,2,3];var IeA=[0,c8s,glm,jwP,_.iA,Viz];var SFZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(SFZ,_.US);var MiS=[0,_.oU,D9A,IeA];var QbA=[0,[1,2,3],_.iA,[0,_.RU,-1,_.ZB],_.iA,[0,_.RU,-1,_.$4,_.ZB],_.iA,[0,_.RU]];var pXx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(pXx,_.US);pXx.prototype.JSC$7479_serializeBinary=Szc([0,_.RU,QbA,nzz,_.oU,MiS,h0w,Wms]);var vO2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(vO2,_.US);var GtS=function(W){var k=new pXx;k=_.fU(k,1,W.JSC$7595_metricName);var C=ea8(W);k=_.$B(k,3,C,_.F6);C=[];for(var n=[],N=_.b(W.cellMap.keys()),B=N.next();!B.done;B=N.next())n.push(B.value.split(","));for(N=0;N<n.length;N++){B=n[N];for(var A=W.cellType,w=W.getCells(B)||[],x=[],E=0;E<w.length;E++){var a=w[E],X=a&&a.cellValue;a=new J8Y;switch(A){case 3:X=Number(X);Number.isFinite(X)&&kI(a,1,c8s,kB(X));break;case 2:kI(a,2,c8s,_.ib(Number(X)))}x.push(a)}A=x;for(w=0;w<A.length;w++){x=A[w];E=new SFZ;x=_.B6(E,
2,x);E=[];a=sbx(W);for(X=0;X<a.length;X++){var d=a[X],V=B[X],c=new m9b;switch(d){case 3:kI(c,1,zaS,wZ(String(V)));break;case 2:d=Number(V);Number.isFinite(d)&&kI(c,2,zaS,_.gx(d));break;case 1:kI(c,3,zaS,w8J(V==="true"))}E.push(c)}X2(x,1,E);C.push(x)}}X2(k,4,C);return k};var y8A=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var k=W.substring(W.indexOf("://")+3),C=k.indexOf("/");C!=-1&&(k=k.substring(0,C));C=W.substring(0,W.indexOf("://"));if(!C)throw Error("ua`"+W);if(C!=="http"&&C!=="https"&&C!=="chrome-extension"&&C!=="moz-extension"&&
C!=="file"&&C!=="android-app"&&C!=="chrome-search"&&C!=="chrome-untrusted"&&C!=="chrome"&&C!=="app"&&C!=="devtools")throw Error("va`"+C);W="";var n=k.indexOf(":");if(n!=-1){var N=k.substring(n+1);k=k.substring(0,n);if(C==="http"&&N!=="80"||C==="https"&&N!=="443")W=":"+N}return C+"://"+k+W};var ZgC=function(W,k,C){var n=String(_.NX.location.href);return n&&W&&k?[k,$9Y(y8A(n),W,C||null)].join(" "):null},$9Y=function(W,k,C){var n=[],N=[];
if((Array.isArray(C)?2:1)==1)return N=[k,W],_.eO(n,function(w){N.push(w)}),Ras(N.join(" "));
var B=[],A=[];_.eO(C,function(w){A.push(w.key);B.push(w.value)});
C=Math.floor((new Date).getTime()/1E3);N=B.length==0?[C,k,W]:[B.join(":"),C,k,W];_.eO(n,function(w){N.push(w)});
W=Ras(N.join(" "));W=[C,W];A.length==0||W.push(A.join(""));return W.join("_")},Ras=function(W){var k=pvX();
k.update(W);return k.digestString().toLowerCase()};var r2=function(W){this.JSC$7490_document_=W||{cookie:""}},oOb;
_.Y=r2.prototype;_.Y.isEnabled=function(){if(!_.NX.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};
_.Y.set=function(W,k,C){var n=!1;if(typeof C==="object"){var N=C.sameSite;n=C.secure||!1;var B=C.domain||void 0;var A=C.path||void 0;var w=C.maxAge}if(/[;=\s]/.test(W))throw Error("wa`"+W);if(/[;\r\n]/.test(k))throw Error("xa`"+k);w===void 0&&(w=-1);C=B?";domain="+B:"";A=A?";path="+A:"";n=n?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.JSC$7490_document_.cookie=W+"="+k+C+A+w+n+(N!=null?";samesite="+N:"")};
_.Y.get=function(W,k){for(var C=W+"=",n=(this.JSC$7490_document_.cookie||"").split(";"),N=0,B;N<n.length;N++){B=_.Ks(n[N]);if(B.lastIndexOf(C,0)==0)return B.slice(C.length);if(B==W)return""}return k};
_.Y.remove=function(W,k,C){var n=this.containsKey(W);this.set(W,"",{maxAge:0,path:k,domain:C});return n};
_.Y.getKeys=function(){return oOb(this).keys};
_.Y.getValues=function(){return oOb(this).values};
_.Y.isEmpty=function(){return!this.JSC$7490_document_.cookie};
_.Y.getCount=function(){return this.JSC$7490_document_.cookie?(this.JSC$7490_document_.cookie||"").split(";").length:0};
_.Y.containsKey=function(W){return this.get(W)!==void 0};
_.Y.containsValue=function(W){for(var k=oOb(this).values,C=0;C<k.length;C++)if(k[C]==W)return!0;return!1};
_.Y.clear=function(){for(var W=oOb(this).keys,k=W.length-1;k>=0;k--)this.remove(W[k])};
oOb=function(W){W=(W.JSC$7490_document_.cookie||"").split(";");for(var k=[],C=[],n,N,B=0;B<W.length;B++)N=_.Ks(W[B]),n=N.indexOf("="),n==-1?(k.push(""),C.push(N)):(k.push(N.substring(0,n)),C.push(N.substring(n+1)));return{keys:k,values:C}};
_.nH=new r2(typeof document=="undefined"?null:document);var jVX=function(){var W=_.NX.__SAPISID||_.NX.__APISID||_.NX.__3PSAPISID||_.NX.__1PSAPISID||_.NX.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new r2(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W},igA=function(W,k,C,n){(W=_.NX[W])||typeof document==="undefined"||(W=(new r2(document)).get(k));
return W?ZgC(W,C,n):null},RUK=function(W){var k=y8A(String(_.NX.location.href)),C=[];
if(jVX()){k=k.indexOf("https:")==0||k.indexOf("chrome-extension:")==0||k.indexOf("chrome-untrusted://new-tab-page")==0||k.indexOf("moz-extension:")==0;var n=k?_.NX.__SAPISID:_.NX.__APISID;n||typeof document==="undefined"||(n=new r2(document),n=n.get(k?"SAPISID":"APISID")||n.get("__Secure-3PAPISID"));(n=n?ZgC(n,k?"SAPISIDHASH":"APISIDHASH",W):null)&&C.push(n);k&&((k=igA("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&C.push(k),(W=igA("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&C.push(W))}return C.length==
0?null:C.join(" ")};var TTx=function(){this.minSize=1024};
TTx.prototype.compress=function(W){var k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return k=new CompressionStream("gzip"),C=(new Response(k.readable)).arrayBuffer(),n=k.writable.getWriter(),_.l(B,n.write((new TextEncoder).encode(W)),2);case 2:return _.l(B,n.close(),3);case 3:return N=Uint8Array,_.l(B,C,4);case 4:return B.return(new N(B.yieldResult))}})};
TTx.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var qFS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(qFS,_.US);var g2=function(W,k){this.intervalMs=W;this.callback=k;this.enabled=!1;this.nowFn=function(){return _.gk()};
this.lastTimeMs=this.nowFn()};
g2.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
g2.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
g2.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
g2.prototype.tick=function(){var W=this;if(this.enabled){var k=Math.max(this.nowFn()-this.lastTimeMs,0);k<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-k):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var u0A=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(u0A,_.US);var U9s=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(U9s,_.US);var Og2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Og2,_.US);Og2.prototype.getTransmissionType=function(){return _.Jp(this,1)};var G3J=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(G3J,_.US);G3J.prototype.getVersion=function(){return _.Vo(this,2)};var PT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(PT,_.US);var s4I=function(W){X2(yjP,1,W)};
PT.prototype.getModel=function(){return _.Vo(this,6)};
var LR2=_.nL(PT);var jb2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(jb2,_.US);var vnc=["platform","platformVersion","architecture","model","uaFullVersion"],yjP=new PT,eqX=null;var Hg8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Hg8,_.US);var r8A=function(W){return _.up(W,1,1)};var gOI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,4)};
_.D(gOI,_.US);_.K0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,36)};
_.D(_.K0,_.US);_.K0.prototype.getExperimentIds=function(){return _.q7(this,qFS,16)};var PMY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,19)};
_.D(PMY,_.US);PMY.prototype.setLogSource=function(W){return _.up(this,2,W)};
PMY.prototype.setScheduler=function(W){return _.up(this,10,W)};var haA=function(W,k){this.isServiceWorkerScope=k=k===void 0?!1:k;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new PMY;Number.isInteger(W)&&this.logRequest.setLogSource(W);k||(this.locale=document.documentElement.getAttribute("lang"));KRI(this,new Hg8)};
haA.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var KRI=function(W,k){_.B6(W.logRequest,1,k);_.Jp(k,1)||r8A(k);W.isServiceWorkerScope||(k=hu(W),_.Vo(k,5)||_.fU(k,5,W.locale));W.uach&&(k=hu(W),_.q7(k,PT,9)||_.B6(k,9,W.uach))},WDI=function(W,k){W.transmissionType=k},klz=function(W){var k=k===void 0?vnc:k;
var C=W.isServiceWorkerScope?void 0:M3();C?$Ic(C,k).then(function(n){W.uach=LR2(n!=null?n:"[]");n=hu(W);_.B6(n,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},hu=function(W){W=_.q7(W.logRequest,Hg8,1);
var k=_.q7(W,jb2,11);k||(k=new jb2,_.B6(W,11,k));return k};
haA.prototype.build=function(W,k,C,n,N,B){k=k===void 0?0:k;C=C===void 0?0:C;n=n===void 0?null:n;N=N===void 0?0:N;B=B===void 0?0:B;if(!this.isServiceWorkerScope){var A=hu(this);var w=new Og2;w=_.up(w,1,this.transmissionType);w=_.CN(w,2,this.isFinal);C=_.Mb(w,3,C>0?C:void 0);C=_.Mb(C,4,N>0?N:void 0);C=_.Mb(C,5,B>0?B:void 0);N=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=N[_.B8]|0;C=tS(C,B)?C:new C.constructor(S7(N,B,!0));_.B6(A,10,C)}A=this.logRequest.clone();C=Date.now().toString();A=
_.Uh(A,4,kB(C));W=W.slice();W=X2(A,3,W);n&&(A=new u0A,n=_.Mb(A,13,n),A=new U9s,n=_.B6(A,2,n),A=new gOI,n=_.B6(A,1,n),n=_.up(n,2,9),_.B6(W,18,n));k&&_.AB(W,14,k);return W};nN.prototype.currBackoffCount_=0;nN.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
nN.prototype.getValue=function(){return this.currValue_};
var CBs=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var AKx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,8)};
_.D(AKx,_.US);var n0b=_.nL(AKx);var Fms=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Fms,_.US);var WS;WS=new wws;var kT=function(W){_.XK.call(this);var k=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=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new haA(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!M3()&&!!M3().navigator&&M3().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(NP2())).searchParams&&!!(new URL(NP2())).searchParams.set;var C=r8A(new Hg8);KRI(this.logRequestBuilder,C);this.flushBackoff=new nN(1E4,3E5,.1);W=YXC(this,W.backgroundJobDeferrer);this.JSC$7568_flushTimer=new g2(this.flushBackoff.getValue(),W);this.backupTimer=new g2(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){BPs(k);
var n;(n=k.metalogService)==null||n.flush()}}),document.addEventListener("pagehide",function(){BPs(k);
var n;(n=k.metalogService)==null||n.flush()}))};
_.D(kT,_.XK);var YXC=function(W,k){return W.isBrowserSupported?k?function(){k().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
kT.prototype.disposeInternal=function(){BPs(this);this.JSC$7568_flushTimer.stop();this.backupTimer.stop();_.XK.prototype.disposeInternal.call(this)};
var bU8=function(W){W.clearcutUrl||(W.clearcutUrl=NP2());try{return(new URL(W.clearcutUrl)).toString()}catch(k){return(new URL(W.clearcutUrl,M3().location.origin)).toString()}};
kT.prototype.dispatch=function(W){if(W instanceof _.K0)this.log(W);else try{var k=new _.K0,C=W.serialize();var n=_.fU(k,8,C);this.log(n)}catch(N){Cx(this,4,1)}};
var Cx=function(W,k,C){W.metalogService&&W.metalogService.increment(k,C)};
kT.prototype.log=function(W){Cx(this,2,1);if(this.isBrowserSupported){W=W.clone();var k=this.sequencePosition++;W=_.AB(W,21,k);this.componentId&&_.fU(W,26,this.componentId);k=W;if(p82(_.wv(k,1))==null){var C=Date.now();C=Number.isFinite(C)?C.toString():"0";_.Uh(k,1,kB(C))}_.dv(k,15)!=null||_.AB(k,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(C=this.experimentIds.clone(),_.B6(k,16,C));Cx(this,1,1);k=this.pendingEvents.length-1E3+1;k>0&&(this.pendingEvents.splice(0,k),this.numLogsDroppedSinceLastFlush+=
k,Cx(this,3,k));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$7568_flushTimer.enabled||this.JSC$7568_flushTimer.start()}};
kT.prototype.flush=function(W,k){var C=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$7568_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,AU2(this);else{var n=Date.now();if(this.noFlushUntilMs>n&&this.startWaitingMs<n)k&&k("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?WDI(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var N=this.pendingEvents.length,
B=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),A=this.getAuthHeaderValue();if(A&&this.lastFailedAuth===A)k&&k("stale-auth-token");else{this.pendingEvents=[];this.JSC$7568_flushTimer.enabled&&this.JSC$7568_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;n=B.serialize();var w;this.JSC$7568_compressor&&this.JSC$7568_compressor.isSupported(n.length)&&
(w=this.JSC$7568_compressor.compress(n));var x=FDz(this,n,A),E=function(d){C.flushBackoff.reset();C.JSC$7568_flushTimer.setInterval(C.flushBackoff.getValue());if(d){var V=null;try{var c=JSON.stringify(JSON.parse(d.replace(")]}'\n","")));V=n0b(c)}catch(M){}V&&(d=Number(zv(V,1,_.sA("-1"))),d>0&&(C.startWaitingMs=Date.now(),C.noFlushUntilMs=C.startWaitingMs+d),Lsm(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,WS.fieldIndex),rSm(V,WS.fieldIndex),V=WS.ctor?WS.getExtensionFn(V,WS.ctor,WS.fieldIndex,
WS.JSC$6740_hasMessageId):WS.getExtensionFn(V,WS.fieldIndex,null,WS.JSC$6740_hasMessageId),V=V===null?void 0:V)&&(V=_.gP(V,1,-1),V!==-1&&(C.flushBackoff=new nN(V<1?1:V,3E5,.1),C.JSC$7568_flushTimer.setInterval(C.flushBackoff.getValue())))}W&&W();C.numRetriesSinceLastSuccessfulFlush=0},a=function(d,V){var c=_.HD(B,_.K0,3,_.rP());
var M=Number(zv(B,14));CBs(C.flushBackoff);C.JSC$7568_flushTimer.setInterval(C.flushBackoff.getValue());d===401&&A&&(C.lastFailedAuth=A);M&&(C.numLogsDroppedSinceLastFlush+=M);V===void 0&&(V=C.isRetryable(d));V&&(C.pendingEvents=c.concat(C.pendingEvents),C.disableAutomaticFlush||C.JSC$7568_flushTimer.enabled||C.JSC$7568_flushTimer.start());Cx(C,7,1);k&&k("net-send-failed",d);++C.numRetriesSinceLastSuccessfulFlush},X=function(){C.network&&C.network.send(x,E,a)};
w?w.then(function(d){Cx(C,5,N);x.requestHeaders["Content-Encoding"]="gzip";x.requestHeaders["Content-Type"]="application/binary";x.body=d;x.bodyType=2;X()},function(){Cx(C,6,N);
X()}):X()}}}};
var FDz=function(W,k,C){C=C===void 0?null:C;var n=n===void 0?W.withCredentials:n;var N={},B=new URL(bU8(W));C&&(N.Authorization=C);W.sessionIndex&&(N["X-Goog-AuthUser"]=W.sessionIndex,B.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(N,"X-Goog-PageId",{value:W.pageId}),B.searchParams.set("pageId",W.pageId));return{url:B.toString(),body:k,bodyType:1,requestHeaders:N,requestType:"POST",withCredentials:n,timeoutMillis:W.timeoutMillis}},BPs=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},AU2=function(W){wDS(W,function(k,C){k=new URL(k);
k.searchParams.set("format","json");var n=!1;try{n=M3().navigator.sendBeacon(k.toString(),C.serialize())}catch(N){}n||(W.isSendBeaconSupported=!1);return n})},wDS=function(W,k){if(W.pendingEvents.length!==0){var C=new URL(bU8(W));
C.searchParams.delete("format");var n=W.getAuthHeaderValue();n&&C.searchParams.set("auth",n);C.searchParams.set("authuser",W.sessionIndex||"0");for(n=0;n<10&&W.pendingEvents.length;++n){var N=W.pendingEvents.slice(0,32),B=W.logRequestBuilder.build(N,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!k(C.toString(),B)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(N.length)}W.JSC$7568_flushTimer.enabled&&W.JSC$7568_flushTimer.stop()}};
kT.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var NP2=function(){return"https://play.google.com/log?format=json&hasfast=true"};var x3z=function(){this.abortSupported=typeof AbortController!=="undefined"};
x3z.prototype.send=function(W,k,C){var n=this,N,B,A,w,x,E,a,X,d,V;return _.F(function(c){switch(c.nextAddress){case 1:return B=(N=n.abortSupported?new AbortController:void 0)?setTimeout(function(){N.abort()},W.timeoutMillis):void 0,_.F0(c,2,3),A=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&N?N.signal:null}),_.l(c,fetch(W.url,A),5);case 5:w=c.yieldResult;if(w.status!==200){(x=C)==null||x(w.status);c.jumpTo(3);break}if((E=k)==null){c.jumpTo(7);break}return _.l(c,w.text(),8);case 8:E(c.yieldResult);case 7:case 3:_.xO(c);clearTimeout(B);_.t8(c,0);break;case 2:a=_.EF(c);switch((X=a)==null?void 0:X.name){case "AbortError":(d=C)==null||d(408);break;default:(V=
C)==null||V(400)}c.jumpTo(3)}})};
x3z.prototype.getTransmissionType=function(){return 4};_.YL=function(W,k){k=k===void 0?"0":k;_.XK.call(this);this.logSource=W;this.sessionIndex=k;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};
_.D(_.YL,_.XK);var kWX=function(W,k){W.buildLabel=k;return W},WK2=function(W,k){W.network=k;
return W},ngm=function(W,k){W.JSC$7586_clearExperimentIds=k},hqm=function(W){W.JSC$7586_sendBeaconApiEnabled=!0;
return W};
_.YL.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.YL.prototype.build=function(){this.network||(this.network=new x3z);var W=new kT({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:RUK,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Bf(this,W);if(this.buildLabel){var k=this.buildLabel,C=hu(W.logRequestBuilder);
_.fU(C,7,k)}W.JSC$7568_compressor=new TTx;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$7586_clearExperimentIds&&((C=this.JSC$7586_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new qFS),k=W.experimentIds,C=C.serialize(),_.fU(k,4,C)):W.experimentIds&&_.Uh(W.experimentIds,4));this.JSC$7586_sendBeaconApiEnabled&&(W.JSC$7568_sendBeaconApiEnabled=W.isSendBeaconSupported);klz(W.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var BdI=function(W,k,C,n,N,B,A){W=W===void 0?-1:W;k=k===void 0?"":k;C=C===void 0?"":C;n=n===void 0?!1:n;N=N===void 0?"":N;_.XK.call(this);this.logSource=W;this.componentId=k;B?k=B:(W=new _.YL(W,"0"),W.componentId=k,_.Bf(this,W),C!==""&&(W.destinationUrl=C),n&&(W.serviceWorkerScopeEnabled=!0),N&&kWX(W,N),A&&WK2(W,A),k=W.build());this.JSC$7590_transport=k};
_.D(BdI,_.XK);BdI.prototype.flush=function(W){W=W||[];if(W.length){for(var k=new vO2,C=[],n=0;n<W.length;n++){var N=W[n],B=GtS(N);C.push(B);N.clear()}X2(k,1,C);this.JSC$7590_transport.dispatch(k);this.JSC$7590_transport.flush()}};var ldz=function(W){this.cellValue=W};var nx=function(W,k,C){this.JSC$7595_metricName=W;this.cellType=k;this.fields=C||[];this.cellMap=new Map},sbx=function(W){return W.fields.map(function(k){return k.fieldType})},ea8=function(W){return W.fields.map(function(k){return k.fieldName})};
_.Y=nx.prototype;_.Y.addCell=function(W){var k=_.v6.apply(1,arguments),C=this.getCells(k);C?C.push(new ldz(W)):this.JSC$7595_setCell(W,k)};
_.Y.JSC$7595_setCell=function(W){var k=this.JSC$7595_getKey(_.v6.apply(1,arguments));this.cellMap.set(k,[new ldz(W)])};
_.Y.getCells=function(){var W=this.JSC$7595_getKey(_.v6.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.Y.getCell=function(){var W=this.getCells(_.v6.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.Y.clear=function(){this.cellMap.clear()};
_.Y.JSC$7595_getKey=function(){var W=_.v6.apply(0,arguments);return W?W.join(","):"key"};var t3I=function(W,k){nx.call(this,W,3,k)};
_.D(t3I,nx);t3I.prototype.JSC$7598_incrementCounterBy=function(W){var k=_.v6.apply(1,arguments),C=0,n=this.getCell(k);n&&(C=n.cellValue);this.JSC$7595_setCell(C+W,k)};var E0s=function(W,k){nx.call(this,W,2,k)};
_.D(E0s,nx);E0s.prototype.record=function(W){this.addCell(W,_.v6.apply(1,arguments))};_.Ne=function(W){this.id=W};
_.Ne.prototype.toString=function(){return this.id};_.BS=function(W,k){this.type=W instanceof _.Ne?String(W):W;this.currentTarget=this.target=k;this.defaultPrevented=this.propagationStopped_=!1};
_.BS.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.BS.prototype.preventDefault=function(){this.defaultPrevented=!0};_.bs=function(W,k){_.BS.call(this,W?W.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;W&&this.init(W,k)};
_.Pq(_.bs,_.BS);
_.bs.prototype.init=function(W,k){var C=this.type=W.type,n=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=k;k=W.relatedTarget;k||(C=="mouseover"?k=W.fromElement:C=="mouseout"&&(k=W.toElement));this.relatedTarget=k;n?(this.clientX=n.clientX!==void 0?n.clientX:n.pageX,this.clientY=n.clientY!==void 0?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.offsetX=_.Nb||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.Nb||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(C=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.bs.superClass_.preventDefault.call(this)};
_.bs.prototype.stopPropagation=function(){_.bs.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.bs.prototype.preventDefault=function(){_.bs.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var adZ="closure_listenable_"+(Math.random()*1E6|0),Ab=function(W){return!(!W||!W[adZ])};var XDS=0;var fdz=function(W,k,C,n,N){this.listener=W;this.proxy=null;this.src=k;this.type=C;this.capture=!!n;this.handler=N;this.key=++XDS;this.removed=this.callOnce=!1},d3Y=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};ND.prototype.add=function(W,k,C,n,N){var B=W.toString();W=this.listeners[B];W||(W=this.listeners[B]=[],this.typeCount_++);var A=m3A(W,k,n,N);A>-1?(k=W[A],C||(k.callOnce=!1)):(k=new fdz(k,this.src,B,!!n,N),k.callOnce=C,W.push(k));return k};
ND.prototype.remove=function(W,k,C,n){W=W.toString();if(!(W in this.listeners))return!1;var N=this.listeners[W];k=m3A(N,k,C,n);return k>-1?(d3Y(N[k]),_.VpJ(N,k),N.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var zsZ=function(W,k){var C=k.type;if(!(C in W.listeners))return!1;var n=_.iw(W.listeners[C],k);n&&(d3Y(k),W.listeners[C].length==0&&(delete W.listeners[C],W.typeCount_--));return n};
ND.prototype.removeAll=function(W){W=W&&W.toString();var k=0,C;for(C in this.listeners)if(!W||C==W){for(var n=this.listeners[C],N=0;N<n.length;N++)++k,d3Y(n[N]);delete this.listeners[C];this.typeCount_--}return k};
ND.prototype.getListener=function(W,k,C,n){W=this.listeners[W.toString()];var N=-1;W&&(N=m3A(W,k,C,n));return N>-1?W[N]:null};
ND.prototype.hasListener=function(W,k){var C=W!==void 0,n=C?W.toString():"",N=k!==void 0;return _.JU.some(this.listeners,function(B){for(var A=0;A<B.length;++A)if(!(C&&B[A].type!=n||N&&B[A].capture!=k))return!0;return!1})};
var m3A=function(W,k,C,n){for(var N=0;N<W.length;++N){var B=W[N];if(!B.removed&&B.listener==k&&B.capture==!!C&&B.handler==n)return N}return-1};var D3Z,V3Y,JUC,Id2,SXA,ni,NN,pDY,M3b,QOb,Fb,v0Z,cUz;D3Z="closure_lm_"+(Math.random()*1E6|0);V3Y={};JUC=0;_.b6=function(W,k,C,n,N){if(n&&n.once)return ni(W,k,C,n,N);if(Array.isArray(k)){for(var B=0;B<k.length;B++)_.b6(W,k[B],C,n,N);return null}C=cUz(C);return Ab(W)?W.listen(k,C,_.O2(n)?!!n.capture:!!n,N):Id2(W,k,C,!1,n,N)};
Id2=function(W,k,C,n,N,B){if(!k)throw Error("za");var A=_.O2(N)?!!N.capture:!!N,w=Fb(W);w||(W[D3Z]=w=new ND(W));C=w.add(k,C,n,A,B);if(C.proxy)return C;n=SXA();C.proxy=n;n.src=W;n.listener=C;if(W.addEventListener)_.ozC||(N=A),N===void 0&&(N=!1),W.addEventListener(k.toString(),n,N);else if(W.attachEvent)W.attachEvent(M3b(k.toString()),n);else if(W.addListener&&W.removeListener)W.addListener(n);else throw Error("Aa");JUC++;return C};
SXA=function(){var W=QOb,k=function(C){return W.call(k.src,k.listener,C)};
return k};
ni=function(W,k,C,n,N){if(Array.isArray(k)){for(var B=0;B<k.length;B++)ni(W,k[B],C,n,N);return null}C=cUz(C);return Ab(W)?W.listenOnce(k,C,_.O2(n)?!!n.capture:!!n,N):Id2(W,k,C,!0,n,N)};
_.wm=function(W,k,C,n,N){if(Array.isArray(k))for(var B=0;B<k.length;B++)_.wm(W,k[B],C,n,N);else n=_.O2(n)?!!n.capture:!!n,C=cUz(C),Ab(W)?W.unlisten(k,C,n,N):W&&(W=Fb(W))&&(k=W.getListener(k,C,n,N))&&NN(k)};
NN=function(W){if(typeof W==="number"||!W||W.removed)return!1;var k=W.src;if(Ab(k))return zsZ(k.eventTargetListeners_,W);var C=W.type,n=W.proxy;k.removeEventListener?k.removeEventListener(C,n,W.capture):k.detachEvent?k.detachEvent(M3b(C),n):k.addListener&&k.removeListener&&k.removeListener(n);JUC--;(C=Fb(k))?(zsZ(C,W),C.typeCount_==0&&(C.src=null,k[D3Z]=null)):d3Y(W);return!0};
pDY=function(W,k,C,n,N){C=cUz(C);n=!!n;return Ab(W)?W.getListener(k,C,n,N):W?(W=Fb(W))?W.getListener(k,C,n,N):null:null};
M3b=function(W){return W in V3Y?V3Y[W]:V3Y[W]="on"+W};
QOb=function(W,k){if(W.removed)W=!0;else{k=new _.bs(k,this);var C=W.listener,n=W.handler||W.src;W.callOnce&&NN(W);W=C.call(n,k)}return W};
Fb=function(W){W=W[D3Z];return W instanceof ND?W:null};
v0Z="__closure_events_fn_"+(Math.random()*1E9>>>0);cUz=function(W){if(typeof W==="function")return W;W[v0Z]||(W[v0Z]=function(k){return W.handleEvent(k)});
return W[v0Z]};_.xT=function(){_.XK.call(this);this.eventTargetListeners_=new ND(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Pq(_.xT,_.XK);_.xT.prototype[adZ]=!0;_.Y=_.xT.prototype;_.Y.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.Y.addEventListener=function(W,k,C,n){_.b6(this,W,k,C,n)};
_.Y.removeEventListener=function(W,k,C,n){_.wm(this,W,k,C,n)};
_.Y.dispatchEvent=function(W){var k,C=this.parentEventTarget_;if(C)for(k=[];C;C=C.parentEventTarget_)k.push(C);C=this.actualEventTarget_;var n=W.type||W;if(typeof W==="string")W=new _.BS(W,C);else if(W instanceof _.BS)W.target=W.target||C;else{var N=W;W=new _.BS(n,C);_.JU.extend(W,N)}N=!0;var B;if(k)for(B=k.length-1;!W.propagationStopped_&&B>=0;B--){var A=W.currentTarget=k[B];N=esY(A,n,!0,W)&&N}W.propagationStopped_||(A=W.currentTarget=C,N=esY(A,n,!0,W)&&N,W.propagationStopped_||(N=esY(A,n,!1,W)&&
N));if(k)for(B=0;!W.propagationStopped_&&B<k.length;B++)A=W.currentTarget=k[B],N=esY(A,n,!1,W)&&N;return N};
_.Y.disposeInternal=function(){_.xT.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.Y.listen=function(W,k,C,n){return this.eventTargetListeners_.add(String(W),k,!1,C,n)};
_.Y.listenOnce=function(W,k,C,n){return this.eventTargetListeners_.add(String(W),k,!0,C,n)};
_.Y.unlisten=function(W,k,C,n){return this.eventTargetListeners_.remove(String(W),k,C,n)};
_.Y.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var esY=function(W,k,C,n){k=W.eventTargetListeners_.listeners[String(k)];if(!k)return!0;k=k.concat();for(var N=!0,B=0;B<k.length;++B){var A=k[B];if(A&&!A.removed&&A.capture==C){var w=A.listener,x=A.handler||A.src;A.callOnce&&zsZ(W.eventTargetListeners_,A);N=w.call(x,n)!==!1&&N}}return N&&!n.defaultPrevented};
_.xT.prototype.getListener=function(W,k,C,n){return this.eventTargetListeners_.getListener(String(W),k,C,n)};
_.xT.prototype.hasListener=function(W,k){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,k)};var ls=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var sOC=function(W,k){this.create_=W;this.reset_=k;this.occupants_=0;this.JSC$7630_head_=null};
sOC.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$7630_head_;this.JSC$7630_head_=W.next;W.next=null}else W=this.create_();return W};
sOC.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$7630_head_,this.JSC$7630_head_=W)};var GlA=function(){this.workTail_=this.workHead_=null};
GlA.prototype.add=function(W,k){var C=Rqz.get();C.set(W,k);this.workTail_?this.workTail_.next=C:this.workHead_=C;this.workTail_=C};
GlA.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var Rqz=new sOC(function(){return new yUz},function(W){return W.reset()}),yUz=function(){this.next=this.scope=this.fn=null};
yUz.prototype.set=function(W,k){this.fn=W;this.scope=k;this.next=null};
yUz.prototype.reset=function(){this.next=this.scope=this.fn=null};var $3b,on3,ZS4,ZUx;on3=!1;ZS4=new GlA;_.tb=function(W,k){$3b||ZUx();on3||($3b(),on3=!0);ZS4.add(W,k)};
ZUx=function(){var W=Promise.resolve(void 0);$3b=function(){W.then(iSK)}};var Rsb=function(W){W.prototype.$goog_Thenable=!0},o0S=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(k){return!1}};var iUA,TP8,qXs,U3A,OUs,LD8,g0s,hsA,nLS,kbA,LqJ;_.Wx=function(W,k){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.Au)try{var C=this;W.call(k,function(n){C.resolve_(2,n)},function(n){C.resolve_(3,n)})}catch(n){this.resolve_(3,n)}};
iUA=function(){this.next=this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
iUA.prototype.reset=function(){this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
TP8=new sOC(function(){return new iUA},function(W){W.reset()});
qXs=function(W,k,C){var n=TP8.get();n.JSC$7641_onFulfilled=W;n.JSC$7641_onRejected=k;n.context=C;return n};
_.nB=function(W){if(W instanceof _.Wx)return W;var k=new _.Wx(_.Au);k.resolve_(2,W);return k};
_.eh=function(W){return new _.Wx(function(k,C){C(W)})};
U3A=function(W,k,C){uRx(W,k,C,null)||_.tb(_.lW(k,W))};
_.EY=function(W){return new _.Wx(function(k,C){var n=W.length,N=[];if(n)for(var B=function(E,a){n--;N[E]=a;n==0&&k(N)},A=function(E){C(E)},w,x=0;x<W.length;x++)w=W[x],U3A(w,_.lW(B,x),A);
else k(N)})};
OUs=function(W){return new _.Wx(function(k){var C=W.length,n=[];if(C)for(var N=function(w,x,E){C--;n[w]=x?{fulfilled:!0,value:E}:{fulfilled:!1,reason:E};C==0&&k(n)},B,A=0;A<W.length;A++)B=W[A],U3A(B,_.lW(N,A,!0),_.lW(N,A,!1));
else k(n)})};
LD8=function(W){return new _.Wx(function(k,C){var n=W.length,N=[];if(n)for(var B=function(E){k(E)},A=function(E,a){n--;
N[E]=a;n==0&&C(N)},w,x=0;x<W.length;x++)w=W[x],U3A(w,B,_.lW(A,x));
else k(void 0)})};
_.ME=function(){var W,k,C=new _.Wx(function(n,N){W=n;k=N});
return new jOS(C,W,k)};
_.Wx.prototype.then=function(W,k,C){return HUS(this,ls(typeof W==="function"?W:null),ls(typeof k==="function"?k:null),C)};
Rsb(_.Wx);g0s=function(W,k,C,n){rUb(W,qXs(k||_.Au,C||null,n))};
_.aa=function(W,k){k=ls(k);k=qXs(k,k);k.always=!0;rUb(W,k);return W};
_.Wx.prototype.finally=function(W){var k=this;W=ls(W);return new Promise(function(C,n){g0s(k,function(N){W();C(N)},function(N){W();
n(N)})})};
_.Wx.prototype.thenCatch=function(W,k){return HUS(this,null,ls(W),k)};
_.Wx.prototype.catch=_.Wx.prototype.thenCatch;_.Wx.prototype.cancel=function(W){if(this.state_==0){var k=new _.ve(W);_.tb(function(){PBs(this,k)},this)}};
var PBs=function(W,k){if(W.state_==0)if(W.parent_){var C=W.parent_;if(C.callbackEntries_){for(var n=0,N=null,B=null,A=C.callbackEntries_;A&&(A.always||(n++,A.child==W&&(N=A),!(N&&n>1)));A=A.next)N||(B=A);N&&(C.state_==0&&n==1?PBs(C,k):(B?(n=B,n.next==C.callbackEntriesTail_&&(C.callbackEntriesTail_=n),n.next=n.next.next):KDZ(C),hsA(C,N,3,k)))}W.parent_=null}else W.resolve_(3,k)},rUb=function(W,k){W.callbackEntries_||W.state_!=2&&W.state_!=3||WJs(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=k:W.callbackEntries_=k;W.callbackEntriesTail_=k},HUS=function(W,k,C,n){var N=qXs(null,null,null);
N.child=new _.Wx(function(B,A){N.JSC$7641_onFulfilled=k?function(w){try{var x=k.call(n,w);B(x)}catch(E){A(E)}}:B;
N.JSC$7641_onRejected=C?function(w){try{var x=C.call(n,w);x===void 0&&w instanceof _.ve?A(w):B(x)}catch(E){A(E)}}:A});
N.child.parent_=W;rUb(W,N);return N.child};
_.Wx.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.Wx.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.Wx.prototype.resolve_=function(W,k){this.state_==0&&(this===k&&(W=3,k=new TypeError("Ba")),this.state_=1,uRx(k,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=k,this.state_=W,this.parent_=null,WJs(this),W!=3||k instanceof _.ve||kbA(this,k)))};
var uRx=function(W,k,C,n){if(W instanceof _.Wx)return g0s(W,k,C,n),!0;if(o0S(W))return W.then(k,C,n),!0;if(_.O2(W))try{var N=W.then;if(typeof N==="function")return CgA(W,N,k,C,n),!0}catch(B){return C.call(n,B),!0}return!1},CgA=function(W,k,C,n,N){var B=!1,A=function(x){B||(B=!0,C.call(N,x))},w=function(x){B||(B=!0,n.call(N,x))};
try{k.call(W,A,w)}catch(x){w(x)}},WJs=function(W){W.executing_||(W.executing_=!0,_.tb(W.executeCallbacks_,W))},KDZ=function(W){var k=null;
W.callbackEntries_&&(k=W.callbackEntries_,W.callbackEntries_=k.next,k.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return k};
_.Wx.prototype.executeCallbacks_=function(){for(var W;W=KDZ(this);)hsA(this,W,this.state_,this.result_);this.executing_=!1};
hsA=function(W,k,C,n){if(C==3&&k.JSC$7641_onRejected&&!k.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(k.child)k.child.parent_=null,nLS(k,C,n);else try{k.always?k.JSC$7641_onFulfilled.call(k.context):nLS(k,C,n)}catch(N){LqJ.call(null,N)}TP8.put(k)};
nLS=function(W,k,C){k==2?W.JSC$7641_onFulfilled.call(W.context,C):W.JSC$7641_onRejected&&W.JSC$7641_onRejected.call(W.context,C)};
kbA=function(W,k){W.hadUnhandledRejection_=!0;_.tb(function(){W.hadUnhandledRejection_&&LqJ.call(null,k)})};
LqJ=Yz;_.ve=function(W){_.Ww.call(this,W)};
_.Pq(_.ve,_.Ww);_.ve.prototype.name="cancel";var jOS=function(W,k,C){this.promise=W;this.resolve=k;this.reject=C};var Xb;_.Lt=function(W,k){_.xT.call(this);this.JSC$7653_interval_=W||1;this.timerObject_=k||_.NX;this.boundTick_=(0,_.fN)(this.tick_,this);this.last_=_.gk()};
_.Pq(_.Lt,_.xT);_.Y=_.Lt.prototype;_.Y.enabled=!1;_.Y.JSC$7655_timer_=null;_.Y.setInterval=function(W){this.JSC$7653_interval_=W;this.JSC$7655_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7655_timer_&&this.stop()};
_.Y.tick_=function(){if(this.enabled){var W=_.gk()-this.last_;W>0&&W<this.JSC$7653_interval_*.8?this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_-W):(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()))}};
_.Y.start=function(){this.enabled=!0;this.JSC$7655_timer_||(this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_),this.last_=_.gk())};
_.Y.stop=function(){this.enabled=!1;this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null)};
_.Y.disposeInternal=function(){_.Lt.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Xb=function(W,k,C){if(typeof W==="function")C&&(W=(0,_.fN)(W,C));else if(W&&typeof W.handleEvent=="function")W=(0,_.fN)(W.handleEvent,W);else throw Error("Ca");return Number(k)>2147483647?-1:_.NX.setTimeout(W,k||0)};
_.NuI=function(W){var k=null;return(new _.Wx(function(C,n){k=Xb(function(){C(void 0)},W);
k==-1&&n(Error("Da"))})).thenCatch(function(C){_.NX.clearTimeout(k);
throw C;})};var bg=function(W){_.XK.call(this);this.streamzLogger=W;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 _.Lt(this.flushInterval);this.JSC$7659_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Bf(this,this.JSC$7659_flushTimer)};
_.D(bg,_.XK);bg.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var YgY=function(W){W.JSC$7659_flushTimer.enabled||W.JSC$7659_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
bg.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.J8(W)).filter(function(k){return k.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);BuY(W);this.invocationCount=0;this.JSC$7659_flushTimer.enabled&&this.JSC$7659_flushTimer.stop()};
bg.prototype.addNewCounter=function(W){var k=_.v6.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new t3I(W,k))};
bg.prototype.addNewEventMetric=function(W){var k=_.v6.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new E0s(W,k))};
var bN8=function(W,k){return W.disabledMetrics.has(k)?void 0:W.metricMap.get(k)};
bg.prototype.JSC$7659_incrementCounter=function(W){this.JSC$7659_incrementCounterBy(W,1,_.v6.apply(1,arguments))};
bg.prototype.JSC$7659_incrementCounterBy=function(W,k){var C=_.v6.apply(2,arguments),n=bN8(this,W);n&&n instanceof t3I&&(n.JSC$7598_incrementCounterBy(k,C),YgY(this))};
bg.prototype.record=function(W,k){var C=_.v6.apply(2,arguments),n=bN8(this,W);n&&n instanceof E0s&&(n.record(k,C),YgY(this))};
var BuY=function(W){for(var k=0;k<W.length;k++)W[k].clear()};_.fx=function(W,k,C){C=C===void 0?{}:C;k=Error.call(this,k);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=W;this.metadata=C;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(_.fx,Error);_.fx.prototype.toString=function(){var W="RpcError("+(qeX(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.Ad8=_.NX.JSON.parse;_.dm=_.NX.JSON.stringify;_.fY=_.NX.JSON.parse;_.FJA=function(W){switch(W){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 wf2=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var xD8,l0s=function(){};
_.Pq(l0s,_.ucJ);l0s.prototype.createInstance=function(){return new XMLHttpRequest};
xD8=new l0s;_.mP=function(W){_.xT.call(this);this.headers=new Map;this.JSC$7668_xmlHttpFactory_=W||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};
_.Pq(_.mP,_.xT);var t_s=/^https?$/i,ELs=["POST","PUT"],a0A=[],jRw=function(W,k,C,n,N,B,A){var w=new _.mP;a0A.push(w);k&&w.listen("complete",k);w.listenOnce("ready",w.cleanupSend_);B&&(w.timeoutInterval_=Math.max(0,B));A&&(w.JSC$7668_withCredentials_=A);w.send(W,C,n,N)};
_.mP.prototype.cleanupSend_=function(){this.dispose();_.iw(a0A,this)};
_.mP.prototype.send=function(W,k,C,n){if(this.JSC$7668_xhr_)throw Error("Ea`"+this.JSC$7668_lastUri_+"`"+W);k=k?k.toUpperCase():"GET";this.JSC$7668_lastUri_=W;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=ls((0,_.fN)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7668_xhr_.open(k,String(W),!0),this.inOpen_=!1}catch(A){Xfs(this,A);return}W=C||"";C=new Map(this.headers);
if(n)if(Object.getPrototypeOf(n)===Object.prototype)for(var N in n)C.set(N,n[N]);else if(typeof n.keys==="function"&&typeof n.get==="function"){N=_.b(n.keys());for(var B=N.next();!B.done;B=N.next())B=B.value,C.set(B,n.get(B))}else throw Error("Fa`"+String(n));n=Array.from(C.keys()).find(function(A){return"content-type"==A.toLowerCase()});
N=_.NX.FormData&&W instanceof _.NX.FormData;!_.ZX(ELs,k)||n||N||C.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");k=_.b(C);for(n=k.next();!n.done;n=k.next())C=_.b(n.value),n=C.next().value,C=C.next().value,this.JSC$7668_xhr_.setRequestHeader(n,C);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(W),this.inSend_=!1}catch(A){Xfs(this,A)}};
_.mP.prototype.createXhr=function(){return this.JSC$7668_xmlHttpFactory_?this.JSC$7668_xmlHttpFactory_.createInstance():xD8.createInstance()};
_.mP.prototype.timeout_=function(){typeof h7z!="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 Xfs=function(W,k){W.JSC$7668_active_=!1;W.JSC$7668_xhr_&&(W.inAbort_=!0,W.JSC$7668_xhr_.abort(),W.inAbort_=!1);W.JSC$7668_lastError_=k;W.JSC$7668_lastErrorCode_=5;f0C(W);dDz(W)},f0C=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.mP.prototype.abort=function(W){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_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),dDz(this))};
_.mP.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),dDz(this,!0));_.mP.superClass_.disposeInternal.call(this)};
_.mP.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)mDs(this);else this.onReadyStateChangeEntryPoint_()};
_.mP.prototype.onReadyStateChangeEntryPoint_=function(){mDs(this)};
var mDs=function(W){if(W.JSC$7668_active_&&typeof h7z!="undefined")if(W.inSend_&&_.zq(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$7668_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$7668_lastErrorCode_=6;try{var k=_.zq(W)>2?W.JSC$7668_xhr_.statusText:""}catch(C){k=""}W.JSC$7668_lastError_=k+" ["+W.getStatus()+"]";f0C(W)}}finally{dDz(W)}}},dDz=function(W,k){if(W.JSC$7668_xhr_){W.JSC$7668_timeoutId_&&
(clearTimeout(W.JSC$7668_timeoutId_),W.JSC$7668_timeoutId_=null);
var C=W.JSC$7668_xhr_;W.JSC$7668_xhr_=null;k||W.dispatchEvent("ready");try{C.onreadystatechange=null}catch(n){}}};
_.mP.prototype.isActive=function(){return!!this.JSC$7668_xhr_};
_.mP.prototype.isComplete=function(){return _.zq(this)==4};
_.mP.prototype.isSuccess=function(){var W=this.getStatus(),k;if(!(k=wf2(W))){if(W=W===0)W=XYs(String(this.JSC$7668_lastUri_)),W=!t_s.test(W);k=W}return k};
_.zq=function(W){return W.JSC$7668_xhr_?W.JSC$7668_xhr_.readyState:0};
_.Y=_.mP.prototype;_.Y.getStatus=function(){try{return _.zq(this)>2?this.JSC$7668_xhr_.status:-1}catch(W){return-1}};
_.Y.getResponseText=function(){try{return this.JSC$7668_xhr_?this.JSC$7668_xhr_.responseText:""}catch(W){return""}};
_.Y.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(W){return null}};
_.Y.getAllResponseHeaders=function(){return this.JSC$7668_xhr_&&_.zq(this)>=2?this.JSC$7668_xhr_.getAllResponseHeaders()||"":""};
_.Y.getLastError=function(){return typeof this.JSC$7668_lastError_==="string"?this.JSC$7668_lastError_:String(this.JSC$7668_lastError_)};var Cpc=function(){};
Cpc.prototype.send=function(W,k,C){k=k===void 0?function(){}:k;
C=C===void 0?function(){}:C;
jRw(W.url,function(n){n=n.target;n.isSuccess()?k(n.getResponseText()):C(n.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
Cpc.prototype.getTransmissionType=function(){return 1};var zA2=function(W,k){this.logger=W;this.event=k;this.startTime=Ad()};
zA2.prototype.done=function(){this.logger.uH(this.event,Ad()-this.startTime)};
var Du=function(){HT.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.D(Du,HT);var VA=function(W,k,C){var n=Ad();k=k();W.uH(C,Ad()-n);return k},AMw=function(){Du.apply(this,arguments)};
_.D(AMw,Du);_.Y=AMw.prototype;_.Y.xtq=function(){};
_.Y.nD=function(){};
_.Y.uH=function(){};
_.Y.logError=function(){};
_.Y.zu=function(){};
_.Y.s3h=function(){};
_.Y.keS=function(){};
_.Y.eTL=function(){};
_.Y.m5A=function(){};
var DD8=function(W){Du.call(this);var k=this;this.logger=W;this.TEST_ONLY={vFU:function(){return k.logger},
getExperimentIds:function(){return k.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void k.logger.dispose()})};
_.D(DD8,Du);_.Y=DD8.prototype;_.Y.update=function(W){this.logger.dispose();this.logger=W};
_.Y.nD=function(W){this.logger.nD(W)};
_.Y.uH=function(W,k){this.logger.uH(W,k)};
_.Y.logError=function(W){this.logger.logError(W)};
_.Y.zu=function(){this.logger.zu()};
_.Y.s3h=function(W){this.logger.s3h(W)};
_.Y.keS=function(W){this.logger.keS(W)};
_.Y.eTL=function(W){this.logger.eTL(W)};
_.Y.m5A=function(W){this.logger.m5A(W)};
_.Y.xtq=function(W){this.logger.xtq(W)};
var V_2=function(W,k){_.XK.call(this);var C=this;this.callback=W;this.hfX=k;this.hO6=-k;this.addOnDisposeCallback(function(){return void clearTimeout(C.timer)})};
_.D(V_2,_.XK);var Jdz=function(W){if(W.timer===void 0){var k=Math.max(0,W.hO6+W.hfX-Ad());W.timer=setTimeout(function(){try{W.callback()}finally{W.hO6=Ad(),W.timer=void 0}},k)}},cdb=function(W,k){Du.call(this);
this.metrics=W;this.vY=k};
_.D(cdb,Du);_.Y=cdb.prototype;_.Y.xtq=function(W){this.metrics.uls.record(W,this.vY)};
_.Y.nD=function(W){this.metrics.eventCount.increment(W,this.vY)};
_.Y.uH=function(W,k){this.metrics.qnj.record(k,W,this.vY)};
_.Y.logError=function(W){this.metrics.errorCount.increment(W,this.vY)};
_.Y.s3h=function(W){this.metrics.p1f.increment(W,this.vY)};
_.Y.keS=function(W){this.metrics.sEd.increment(W,this.vY)};
_.Y.eTL=function(W){this.metrics.sUZ.increment(W,this.vY)};
var FKJ=function(W,k){k=k===void 0?[]:k;var C={vY:W.vY||"_",lKl:W.lKl||[],oqd:W.oqd|0,destinationUrl:W.destinationUrl,ilx:W.ilx||function(){},
voA:W.voA||function(B,A){return bHK(B,A,C.ilx,C.destinationUrl)}},n=C.voA("49",C.lKl.concat(k));
cdb.call(this,Khz(n),C.vY);var N=this;this.zRo=k;this.TEST_ONLY={getExperimentIds:function(){return N.options.lKl.concat(N.zRo).sort(function(B,A){return B-A})}};
this.options=C;this.service=n;this.l57=!W.voA;this.flushDebouncer=new V_2(function(){return void N.service.snapshotAndFlush()},C.oqd);
this.addOnDisposeCallback(function(){N.flushDebouncer.dispose();N.l57&&N.service.dispose()})};
_.D(FKJ,cdb);FKJ.prototype.m5A=function(W){var k=this;this.flushDebouncer.dispose();this.l57&&this.service.dispose();this.service=this.options.voA("49",this.options.lKl.concat(W));this.flushDebouncer=new V_2(function(){return void k.service.snapshotAndFlush()},this.options.oqd);
this.metrics=Khz(this.service);this.zRo=W};
FKJ.prototype.zu=function(){Jdz(this.flushDebouncer)};var vPP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(vPP,_.US);_.eLm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(_.eLm,_.US);var q2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,0,q2.messageId)};
_.D(q2,_.US);var I08=_.MNX(q2);q2.messageId="bfkj";var IEc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(IEc,_.US);var Sg2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Sg2,_.US);var M_A=_.nL(Sg2);_.gn=function(){var W=this;this.promise=new Promise(function(k,C){W.resolve=k;W.reject=C})};_.Jb=function(W){_.XK.call(this);var k=this;this.nIn=Math.floor(Math.random()*200);this.bau=new Sg2;if("challenge"in W&&I08(W.challenge)){var C=_.Vo(W.challenge,4,void 0,c8);var n=_.Vo(W.challenge,5,void 0,c8);_.Vo(W.challenge,7,void 0,c8)&&(this.bau=M_A(_.Vo(W.challenge,7,void 0,c8)))}else C=W.program,n=W.globalName;this.addOnDisposeCallback(function(){var c,M,p;return _.F(function(e){if(e.nextAddress==1)return _.l(e,k.tAj,2);c=e.yieldResult;M=c.shE;(p=M)==null||p();_.ab(e)})});
this.logger=w43(W.xQ||{},this.bau,W.y7b);_.Bf(this,this.logger);var N=new _.gn;this.tAj=N.promise;this.logger.nD("t");var B=this.logger.share(),A=new zA2(B,"t"),w=function(c,M,p,e){if(!k.logger.isDisposed()){var u="k";M?u="h":p&&(u="u");u!=="k"?e!==0&&(k.logger.nD(u),k.logger.uH(u,c)):k.nIn<=0?(k.logger.nD(u),k.logger.uH(u,c),k.nIn=Math.floor(Math.random()*200)):k.nIn--}},x=function(c,M,p,e){Promise.resolve().then(function(){A.done();
B.zu();B.dispose();N.resolve({fj4:c,shE:M,qsT:p,x8t:e})})};
if(!_.NX[n])throw this.logger.logError(25),Error("Ga");if(!_.NX[n].a)throw this.logger.logError(26),Error("Ha");try{var E=_.NX[n].a;n=[];for(var a=[],X=SeX(this.bau),d=0;d<X.length;d++)n.push(X[d]),a.push(1);var V=MOX(this.bau);for(X=0;X<V.length;X++)n.push(V[X]),a.push(2);this.oLs=_.b(E(C,x,!0,W.iol,w,[n,a],_.Vo(this.bau,5))).next().value;this.ubx=N.promise.then(function(){})}catch(c){throw this.logger.logError(28),c;
}};
_.D(_.Jb,_.XK);_.Jb.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ia");this.logger.nD("n");var k=this.logger.share();return this.tAj.then(function(C){var n=C.fj4;return new Promise(function(N){var B=new zA2(k,"n");n(function(A){B.done();k.xtq(A.length);k.zu();k.dispose();N(A)},[W.nb,
W.idh,W.gLd,W.yco])})})};
_.QLS=function(W,k){if(W.isDisposed())throw Error("Ia");W.logger.nD("n");var C=VA(W.logger,function(){return W.oLs([k.nb,k.idh,k.gLd,k.yco])},"n");
W.logger.xtq(C.length);W.logger.zu();return C};
_.Jb.prototype.tyt=function(W){this.tAj.then(function(k){var C;(C=k.qsT)==null||C(W)})};
_.Jb.prototype.h0b=function(W,k){return this.tAj.then(function(C){var n;return(n=C.x8t)==null?void 0:n(W,k,!1)})};
_.Jb.prototype.aTt=function(){return this.logger.share()};var pfI=function(){this.di7={};this.oxb=null},vLs=function(){pfI.instance||(pfI.instance=new pfI);
return pfI.instance},sLz=function(W,k){return eA8(W,_.q7(k,vPP,1,c8),_.q7(k,_.eLm,2,c8),_.Vo(k,3,void 0,c8))},eA8=function(W,k,C,n){if(!k&&!C)return Promise.resolve();
if(!n)return Eg4(k,C);var N;(N=W.di7)[n]||(N[n]=new Promise(function(B,A){Eg4(k,C).then(function(){W.oxb=n;B()},function(w){delete W.di7[n];
A(w)})}));
return W.di7[n]};var GbS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(GbS,_.US);var ydz=function(W,k){return _.u2(W,1,k)},$DZ=function(W,k){return _.u2(W,2,k)};var cS=function(W){_.XK.call(this);var k=this;this.options=W;this.m27=new _.gn;this.ubx=this.m27.promise;this.ecA=new _.gn;this.kt7=1;this.zPn=new _.gn;this.bYl=[];this.uHq=W.uHq||function(){};
this.logger=new DD8(w43(W.xQ||{}));ZN8(this,W.wx,W.nwt,W.j7I,W.yrl,Object.assign({},RAs,W.b77||{}));this.addOnDisposeCallback(function(){return void oLI(k)})};
_.D(cS,_.XK);cS.prototype.snapshot=function(W){var k=this;return _.F(function(C){switch(C.nextAddress){case 1:if(k.isDisposed())throw Error("Ia");if(k.fc||k.kr6){C.jumpTo(2);break}return _.l(C,k.ecA.promise,2);case 2:if(!k.fc){C.jumpTo(4);break}return _.l(C,k.fc.snapshot(W),5);case 5:return C.return(C.yieldResult);case 4:throw k.kr6;}})};
var iNb=function(W){var k;return _.F(function(C){if(W.isDisposed())throw Error("Ia");(k=W.zJ)!=null&&(k.endTimeMs=0,k.resolver(1));return _.l(C,W.zPn.promise,0)})},oLI=function(W){W.kr6=Error("Ka");
W.ecA.resolve();Q43(W.m27.promise);W.m27.reject(Error("Ka"));W.logger.dispose();Promise.all(W.bYl).then(function(){var C;return _.F(function(n){(C=W.fc)==null||C.dispose();W.fc=void 0;_.ab(n)})});
W.bYl=[];var k;(k=W.zJ)!=null&&(k.endTimeMs=0,k.resolver(1));Q43(W.zPn.promise);W.zPn.reject(Error("Ka"))};
cS.prototype.tyt=function(W){var k,C;(k=this.fc)==null||(C=k.tyt)==null||C.call(k,W)};
cS.prototype.h0b=function(W,k){var C,n,N;return(N=(C=this.fc)==null?void 0:(n=C.h0b)==null?void 0:n.call(C,W,k))!=null?N:Promise.resolve()};
var TuZ=function(W,k){var C=W.uHq;W.uHq=function(){C();k()}},qgA=function(W,k){W.isDisposed()||(W.fc=k,W.logger.update(k.aTt()),W.ecA.resolve(),W.m27.resolve(void 0),W.uHq())};
cS.prototype.handleError=function(W){if(!this.isDisposed()){this.kr6=W;this.ecA.resolve();var k,C;(C=(k=this.options).x4t)==null||C.call(k,W)}};
var uKS=function(W,k){k&&(Promise.all(W.bYl).then(function(){return void k.dispose()}),W.bYl=[])},Ia=function(W,k){W.kt7=k;
var C,n;(n=(C=W.options).uWZ)==null||n.call(C,k)},UD2=function(W){W.isDisposed()||(W.zPn.resolve(),W.zPn=new _.gn)},ZN8=function(W,k,C,n,N,B){n=n===void 0?vLs():n;
N=N===void 0?Promise.resolve(void 0):N;var A,w,x,E,a,X,d,V,c,M,p,e;_.F(function(u){switch(u.nextAddress){case 1:return _.l(u,0,3);case 3:w=null;if(!A){u.jumpTo(6);break}Ia(W,7);_.F0(u,7);return _.l(u,td(A.snapshot({}),B.bQ1,function(){return Promise.resolve("E:CTO")}),9);
case 9:w=u.yieldResult;_.M7(u,6);break;case 7:_.EF(u),w="E:UCE";case 6:x=void 0,E=A?B.lJY:B.hTQ,a=new nN(E,B.j3t,B.tbd,B.bsX),X=1;case 10:if(!(X<=B.maxAttempts)){u.jumpTo(12);break}if(X===1){u.jumpTo(13);break}Ia(W,0);W.zJ=new ON8(a.getValue(),B.krd,B.nx1);return _.l(u,W.zJ.promise,14);case 14:d=u.yieldResult,W.zJ=void 0,d===1?(X=1,a.reset()):CBs(a);case 13:_.F0(u,15);V=void 0;if(C){V=C;u.jumpTo(17);break}Ia(W,5);c=n.oxb;return _.l(u,td(LJC(k,c,w),B.jcj,function(){return Promise.reject(Error("La"))}),
18);
case 18:V=u.yieldResult;case 17:return Ia(W,3),_.l(u,td(sLz(n,V),B.u1t,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return Ia(W,8),_.l(u,N,20);case 20:return M=new _.Jb({challenge:V,xQ:W.options.xQ,iol:W.options.iol}),_.l(u,td(M.ubx,B.kGZ,function(){return Promise.reject(Error("Na"))}),21);
case 21:x=M;u.jumpTo(12);break;case 15:p=_.EF(u),W.handleError(p),UD2(W);case 11:X++;u.jumpTo(10);break;case 12:if(W.isDisposed()){u.jumpTo(5);break}x&&(C=void 0,uKS(W,A),A=x,qgA(W,x),UD2(W));Ia(W,2);W.zJ=new ON8(B.nQJ,B.krd,B.nx1);return _.l(u,W.zJ.promise,22);case 22:W.zJ=void 0;if(W.isDisposed()){u.jumpTo(5);break}u.jumpTo(3);break;case 5:(e=A)==null||e.dispose(),_.ab(u)}})};
cS.prototype.aTt=function(){return this.logger.share()};
var RAs={nQJ:432E5,krd:3E5,nx1:10,bQ1:1E4,jcj:3E4,u1t:3E4,kGZ:6E4,hTQ:1E3,lJY:6E4,j3t:6E5,tbd:.25,bsX:2,maxAttempts:10},ON8=function(W,k,C){var n=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(B){n.resolver=B});
var N=function(){var B=n.endTimeMs-Date.now();B<=C?n.resolver(0):setTimeout(N,Math.min(B,k))};
N()};var jLY,f5w=(jLY=Math.imul)!=null?jLY:function(W,k){return W*k|0},Eg=[196,
200,224,18],SZ=function(W,k,C){C=C===void 0?[]:C;this.maxItems=W;this.xm=k===void 0?0:k;this.iH=C},HN8=function(W){var k=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!k)return new SZ(W);var C=k.split(",");if(C.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SZ(W);k=C.slice(1);k.length===1&&k[0]===""&&(k=[]);C=Number(C[0]);return isNaN(C)||C<0||C>k.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SZ(W)):new SZ(W,C,k)};
SZ.prototype.serialize=function(){return String(this.xm)+","+this.iH.join()};
SZ.prototype.insert=function(W,k){var C=void 0;if(this.iH[this.xm]!==W){var n=this.iH.indexOf(W);n!==-1?(this.iH.splice(n,1),n<this.xm&&this.xm--,this.iH.splice(this.xm,0,W)):(C=this.iH[this.xm],this.iH[this.xm]=W)}this.xm=(this.xm+1)%this.maxItems;W=a53("iU5q-!O9@$",this.serialize());C&&W&&k(C);return W};
var rdx=function(W,k){this.logger=k;try{var C=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(n){C=!1}C&&(this.index=HN8(W))},gL8=function(W,k,C,n,N){var B=W.index?VA(W.logger,function(){return D7X(W.index,m7J(k),C,n,N)},"W"):"u";
W.logger.eTL(B)},Pgb=function(W,k,C){var n=_.b(W.index?VA(W.logger,function(){return VfK(m7J(k),C)},"R"):["u"]),N=n.next().value;
n=n.next().value;W.logger.keS(N);return n};var KJb={toString:function(W){var k=[],C=0;W-=-2147483648;k[C++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)k[C++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return k.join("")}};var kmY=function(W){W=hAS(W);for(var k=2654435769,C=2654435769,n=314159265,N=W.length,B=N,A=0,w=function(){k-=C;k-=n;k^=n>>>13;C-=n;C-=k;C^=k<<8;n-=k;n-=C;n^=C>>>13;k-=C;k-=n;k^=n>>>12;C-=n;C-=k;C^=k<<16;n-=k;n-=C;n^=C>>>5;k-=C;k-=n;k^=n>>>3;C-=n;C-=k;C^=k<<10;n-=k;n-=C;n^=C>>>15};B>=12;B-=12,A+=12)k+=W$Y(W,A),C+=W$Y(W,A+4),n+=W$Y(W,A+8),w();
n+=N;switch(B){case 11:n+=W[A+10]<<24;case 10:n+=W[A+9]<<16;case 9:n+=W[A+8]<<8;case 8:C+=W[A+7]<<24;case 7:C+=W[A+6]<<16;case 6:C+=W[A+5]<<8;case 5:C+=W[A+4];case 4:k+=W[A+3]<<24;case 3:k+=W[A+2]<<16;case 2:k+=W[A+1]<<8;case 1:k+=W[A]}w();return KJb.toString(n)},hAS=function(W){for(var k=[],C=0;C<W.length;C++)k.push(W.charCodeAt(C));
return k},W$Y=function(W,k){return W[k]+(W[k+1]<<8)+(W[k+2]<<16)+(W[k+3]<<24)};var CRS,Me=function(W){_.XK.call(this);this.logger=W;this.xWZ=new _.gn;this[CRS]=this.dispose};
_.D(Me,_.XK);var nwx=function(W,k){var C=setTimeout(function(){W.xWZ.resolve()},k);
W.addOnDisposeCallback(function(){return void clearTimeout(C)})};
Me.prototype.q3=function(W,k){var C=this.r4(W);k==null||k(C);return VA(this.logger,function(){return _.zC(C,2)},this.ial)};
var NwY=function(W,k,C,n){return VA(W.logger,function(){return C?W.q3(k,n):W.r4(k,n)},W.mj)};
CRS=Symbol.dispose;var YoI=function(W,k,C,n){Me.call(this,W);this.dnQ=k;this.xnt=C;this.mj="m";this.ial="x";this.zfj=0;nwx(this,n)};
_.D(YoI,Me);YoI.prototype.r4=function(W,k){var C=this;this.logger.nD(this.mj);++this.zfj>=this.xnt&&this.xWZ.resolve();var n=W();W=VA(this.logger,function(){return C.dnQ(n)},"C");
if(W===void 0)throw new L0(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new L0(18,"ODM:Invalid");k==null||k(W);return W};
var BwI=function(W,k,C){Me.call(this,W);this.btQ=k;this.mj="f";this.ial="z";nwx(this,C)};
_.D(BwI,Me);BwI.prototype.r4=function(){return this.btQ};
var by8=function(W,k,C){Me.call(this,W);this.vLQ=k;this.mj="w";this.ial="z";nwx(this,C)};
_.D(by8,Me);by8.prototype.r4=function(){var W=this;return VA(this.logger,function(){return _.Pw(W.vLQ)},"d")};
by8.prototype.q3=function(){return this.vLQ};
var AYb=function(W,k){Me.call(this,W);this.error=k;this.mj="e";this.ial="y"};
_.D(AYb,Me);var F$b=function(W,k){var C=(k(W.error.message)+":"+k(W.error.stack)).substring(0,2048);k=C.length+1;C=JMz(C);var n=new Uint8Array(4+C.length);n.set([42,k&127|128,k>>7,W.error.code]);n.set(C,4);return n};
AYb.prototype.r4=function(){if(this.uHw)return this.uHw;this.uHw=F$b(this,function(W){return"_"+kmY(W)});
return F$b(this,function(W){return W})};
var wHI=function(W,k,C){Me.call(this,W);this.bLQ=k;this.clientState=C;this.mj="S";this.ial="q"};
_.D(wHI,Me);wHI.prototype.r4=function(){var W=Math.floor(Date.now()/1E3),k=[Math.random()*255,Math.random()*255],C=k.concat([this.bLQ&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+C.length);W[0]=34;W[1]=C.length;W.set(C,2);C=W.subarray(2);for(var n=k=k.length;n<C.length;++n)C[n]^=C[n%k];this.logger.s3h(this.clientState);return W};var xfs={drl:3E4,bWE:2E4},QA=function(W){_.XK.call(this);var k=this;this.zqP=new _.gn;this.fzj=0;this.uh=void 0;this.state=2;this.sS=W.sS;this.wx=W.wx;this.b77=Object.assign({},xfs,W.b77||{});this.logger=W.sS.aTt();var C;this.onError=(C=W.onError)!=null?C:function(){};
this.gFa=W.gFa||!1;if(lDb(W)){var n=this.sS;this.htN=function(){return iNb(n).catch(function(A){A=k.reportError(new L0(k.lw?20:32,"TRG:Disposed",A));k.uh=A;var w;(w=k.lw)==null||w.dispose();k.lw=void 0;k.zqP.reject(A)})};
TuZ(n,function(){return void twC(k)});
n.kt7===2&&twC(this)}else this.htN=W.nkZ,twC(this);var N=this.logger.share();N.nD("o");var B=new zA2(N,"o");this.zqP.promise.then(function(){B.done();N.zu();N.dispose()},function(){return void N.dispose()});
this.addOnDisposeCallback(function(){k.lw?(k.lw.dispose(),k.lw=void 0):k.uh?k.logger.zu():(k.uh=k.reportError(new L0(32,"TNP:Disposed")),k.logger.zu(),k.zqP.reject(k.uh))});
_.Bf(this,this.logger)};
_.D(QA,_.XK);QA.prototype.gIt=function(){return this.zqP.promise};
var Ewz=function(W,k){if(!(k instanceof L0))if(k instanceof _.fx){var C=Error(k.toString());C.stack=k.stack;k=new L0(11,"EBH:Error",C)}else k=new L0(12,"BSO:Unknown",k);return W.reportError(k)},twC=function(W){var k,C,n,N,B,A,w,x,E,a,X,d,V,c,M;
return _.F(function(p){switch(p.nextAddress){case 1:k=void 0;W.fzj++;C=new _.gn;W.sS instanceof cS&&W.sS.bYl.push(C.promise);if(!W.gFa){p.jumpTo(2);break}n=new _.gn;setTimeout(function(){return void n.resolve()});
return _.l(p,n.promise,2);case 2:return N=W.logger.share(),_.F0(p,4,5),W.state=5,B={},A=[],_.l(p,td(W.sS.snapshot({nb:B,gLd:A}),W.b77.bWE,function(){return Promise.reject(new L0(15,"MDA:Timeout"))}),7);
case 7:w=p.yieldResult;if(W.isDisposed())throw new L0(W.lw?20:32,"MDA:Disposed");x=A[0];W.state=6;return _.l(p,td(aD8(W.wx,w),W.b77.drl,function(){return Promise.reject(new L0(10,"BWB:Timeout"))}),8);
case 8:E=p.yieldResult;if(W.isDisposed())throw new L0(W.lw?20:32,"BWB:Disposed");W.state=7;k=VA(N,function(){var u=XHA(W,E,C,x);u.xWZ.promise.then(function(){return void W.htN()});
return u},"i");
case 5:_.xO(p);N.dispose();_.t8(p,6);break;case 4:a=_.EF(p);(X=k)==null||X.dispose();if(!W.uh){d=Ewz(W,a);C.resolve();var e;if(e=W.sS instanceof cS&&W.fzj<2)a:if(a instanceof L0)e=a.code!==32&&a.code!==20&&a.code!==10;else{if(a instanceof _.fx)switch(a.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return V=(1+Math.random()*.25)*(W.lw?6E4:1E3),c=setTimeout(function(){return void W.htN()},V),W.addOnDisposeCallback(function(){return void clearTimeout(c)}),p.return();
W.uh=d}N.logError(W.lw?13:14);W.zqP.reject(W.uh);return p.return();case 6:W.state=8,W.fzj=0,(M=W.lw)==null||M.dispose(),W.lw=k,W.zqP.resolve(),_.ab(p)}})},XHA=function(W,k,C,n){var N=Xo4(k,2)*1E3;
if(N<=0)throw new L0(31,"TTM:Invalid");if(_.Vo(k,4))return new by8(W.logger,_.Vo(k,4),N);if(!Xo4(k,3))return new BwI(W.logger,hv3(_.tp(k,1)),N);if(!n)throw new L0(4,"PMD:Undefined");n=n(hv3(_.tp(k,1)));if(!(n instanceof Function))throw new L0(16,"APF:Failed");W.kmt=Math.floor((Date.now()+N)/1E3);W=new YoI(W.logger,n,Xo4(k,3),N);W.addOnDisposeCallback(function(){return void C.resolve()});
return W};
QA.prototype.r4=function(W){return fDA(this,Object.assign({},W),!1)};
QA.prototype.q3=function(W){return fDA(this,Object.assign({},W),!0)};
QA.prototype.tSo=function(W){if(W>150)return!1;try{return this.cache=new rdx(W,this.logger),!0}catch(k){return this.reportError(new L0(22,"GBJ:init",k)),!1}};
QA.prototype.reportError=function(W){this.logger.logError(W.code);this.onError(W);return W};
var df2=function(W,k){k=k instanceof L0?k:new L0(5,"TVD:error",k);return W.reportError(k)},fDA=function(W,k,C){try{if(W.isDisposed())throw new L0(21,"BNT:disposed");
if(!W.lw&&W.uh)throw W.uh;var n,N;return(N=(n=mfs(W,k,C))!=null?n:z_A(W,k,C))!=null?N:Dfs(W,k,C)}catch(B){if(!k.nLN)throw df2(W,B);return VwC(W,C,B)}},mfs=function(W,k,C){var n;
return(n=W.lw)==null?void 0:NwY(n,function(){return JYz(W,k)},C,function(N){var B;
if(W.lw instanceof YoI&&((B=k.nl)==null?0:B.x1T))try{var A;(A=W.cache)==null||gL8(A,JYz(W,k),N,k.nl.q3b,W.kmt-120)}catch(w){W.reportError(new L0(24,"ELX:write",w))}})},z_A=function(W,k,C){var n;
if((n=k.nl)!=null&&n.aJJ)try{var N,B=(N=W.cache)==null?void 0:Pgb(N,JYz(W,k),k.nl.q3b);return B?C?VA(W.logger,function(){return _.zC(B,2)},"a"):B:void 0}catch(A){W.reportError(new L0(23,"RXO:read",A))}},Dfs=function(W,k,C){var n={stack:[],
error:void 0,hasError:!1};try{if(!k.r6J)throw new L0(29,"SDF:notready");return NwY(eY(n,new wHI(W.logger,0,W.state)),function(){return JYz(W,k)},C)}catch(N){n.error=N,n.hasError=!0}finally{sC(n)}},VwC=function(W,k,C){var n={stack:[],
error:void 0,hasError:!1};try{var N=df2(W,C);return NwY(eY(n,new AYb(W.logger,N)),function(){return[]},k)}catch(B){n.error=B,n.hasError=!0}finally{sC(n)}},JYz=function(W,k){return k.bQ7?k.bQ7:k.nb?VA(W.logger,function(){return k.bQ7=JMz(k.nb)},"c"):[]},lDb=function(W){return v8(function(k){if(!p$p(k))return!1;
for(var C=_.b(Object.entries(W)),n=C.next();!n.done;n=C.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;if(!(n in k)){if(N.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!N(k[n]))return!1}return!0})}({sS:function(W){return v8(function(k){return k instanceof W})}(cS)},"");var cZm=function(){var W=_.L5();this.JSC$7807_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",hU("tick"),_.PD("from_st_cookie"))};
cZm.prototype.increment=function(W,k){this.JSC$7807_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,k)};
var cYS=function(){var W=_.L5();this.JSC$7813_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.kL("status"))};
cYS.prototype.increment=function(W){this.JSC$7813_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var IDs=function(){var W=_.L5();this.JSC$7816_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.kL("stage"),_.PD("is_using_ytd_player"),_.PD("has_expandable_tiles"))};
IDs.prototype.increment=function(W,k,C){this.JSC$7816_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,k,C)};
var Sos=function(){var W=_.L5();this.JSC$7819_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.kL("check_status"))};
Sos.prototype.increment=function(W){this.JSC$7819_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var Mws=function(){var W=_.L5();this.JSC$7822_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.kL("sig"),hU("de"))};
Mws.prototype.increment=function(W,k){this.JSC$7822_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,k)};
var QWC=function(){var W=_.L5();this.JSC$7825_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.kL("sig"),hU("de"))};
QWC.prototype.increment=function(W,k){this.JSC$7825_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,k)};
_.pHx=function(){var W=_.L5();this.JSC$7828_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.kL("action"))};
_.pHx.prototype.increment=function(W){this.JSC$7828_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var kxm=function(){var W=_.L5();this.JSC$7831_streamzService=W;W.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.kL("tagname"))};
kxm.prototype.increment=function(W){this.JSC$7831_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",W)};var px=window;var vwC=(new Date).getTime();var e_A=function(W){this.servicePromise_=W;W.then((0,_.fN)(function(){},this),function(){},this)},sWz=function(W,k,C){W.servicePromise_.then(function(n){var N=n[k];
if(!N)throw Error("Oa`"+k);return N.apply(n,C)})},$fS=function(W,k,C){for(var n=Array(arguments.length-2),N=2;N<arguments.length;N++)n[N-2]=arguments[N];
N=GmY(W,k).then(function(B){return B.apply(null,n)},function(B){B=Error("Pa`"+k+"`"+W,{cause:B});
delete yYZ[k];return _.eh(B)});
return new e_A(N)},yYZ={},GmY=function(W,k){var C=yYZ[k];
if(C)return C;C=(C=_.QK(k))?_.nB(C):(new _.Wx(function(n,N){var B=(new f0(document)).createElement("SCRIPT");B.async=!0;_.LL(B,_.to(YzS(W)));B.onload=B.onreadystatechange=function(){B.readyState&&B.readyState!="loaded"&&B.readyState!="complete"||n()};
B.onerror=function(A){N(Error("Qa`"+k+"`"+W,{cause:A}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(B)})).then(function(){var n=_.QK(k);
if(!n)throw Error("Ra`"+k+"`"+W);return n});
return yYZ[k]=C};var Zys={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},owY=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=cMX(function(){return _.F(function(k){if(k.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?k.return(Promise.resolve()):_.l(k,R_C(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.ab(k)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var k=_.b(W.rsaForList),C=k.next();!C.done;C=k.next()){C=C.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(C))}catch(n){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
owY.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var R_C=function(W){var k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:k=_.b(Object.values(Zys)),C=k.next();case 2:if(C.done){B.jumpTo(0);break}n=C.value;_.F0(B,5);return _.l(B,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:n}),7);case 7:N=B.yieldResult;N.state!=="granted"&&W.rsaForList.push(n);_.M7(B,3);break;case 5:_.EF(B);B.jumpTo(0);break;case 3:C=k.next(),B.jumpTo(2)}})};(new owY).initialize();var iyS=function(W){this.JSC$7845_loader_=W};
iyS.prototype.startHelp=function(W){sWz(this.JSC$7845_loader_,"startHelp",arguments)};
iyS.prototype.JSC$7847_loadChatSupport=function(W){sWz(this.JSC$7845_loader_,"loadChatSupport",arguments)};
var qo2=function(W,k){k=k||{};W=$fS(TwS,"help.service.Lazy.create",W,{apiKey:k.apiKey||k.apiKey,asxUiUri:k.asxUiUri||k.asxUiUri,environment:k.environment||k.environment,flow:k.flow||k.flow,frdProductData:k.frdProductData||k.frdProductData,frdProductDataSerializedJspb:k.frdProductDataSerializedJspb||k.frdProductDataSerializedJspb,helpCenterPath:k.helpCenterPath||k.helpCenterPath,locale:k.locale||k.locale||"en-US".replace(/-/g,"_"),nonce:k.nonce||k.nonce,productData:k.productData||k.productData,receiverUri:k.receiverUri||
k.receiverUri,renderApiUri:k.renderApiUri||k.renderApiUri,theme:k.theme||k.theme,window:k.window||k.window});return new iyS(W)},TwS=new VE(Ejw,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uM8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(uM8,_.US);var Uf8=_.nL(uM8);new Uint8Array([]);_.Oy8=new function(W,k,C,n){this.configType=W;this.flagName=C;this.defaultValue=n;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var jWs=function(){this.retriever=_.f().resolve(L$2)};Shp(Node);Shp(Element);var Hy8=Shp(HTMLElement);Shp(SVGElement);var rYx,gw8,sY,PRz;rYx=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
gw8=function(W){return W.classList?W.classList:rYx(W).match(/\S+/g)||[]};
_.vS=function(W,k){typeof W.className=="string"?W.className=k:W.setAttribute&&W.setAttribute("class",k)};
_.eZ=function(W,k){return W.classList?W.classList.contains(k):_.ZX(gw8(W),k)};
_.vj=function(W,k){if(W.classList)W.classList.add(k);else if(!_.eZ(W,k)){var C=rYx(W);_.vS(W,C+(C.length>0?" "+k:k))}};
sY=function(W,k){if(W.classList)Array.prototype.forEach.call(k,function(N){_.vj(W,N)});
else{var C={};Array.prototype.forEach.call(gw8(W),function(N){C[N]=!0});
Array.prototype.forEach.call(k,function(N){C[N]=!0});
k="";for(var n in C)k+=k.length>0?" "+n:n;_.vS(W,k)}};
_.QI=function(W,k){W.classList?W.classList.remove(k):_.eZ(W,k)&&_.vS(W,Array.prototype.filter.call(gw8(W),function(C){return C!=k}).join(" "))};
PRz=function(W,k){W.classList?Array.prototype.forEach.call(k,function(C){_.QI(W,C)}):_.vS(W,Array.prototype.filter.call(gw8(W),function(C){return!_.ZX(k,C)}).join(" "))};var K$Y=function(W){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},k3x=function(W,k){h_b(W);
var C=document.createElement("div"),n;(n=k.parentNode)==null||n.insertBefore(C,k);C.tabIndex=0;C.id="fc-focus-trap-pre-div";C=document.createElement("div");var N;(N=k.parentNode)==null||N.insertBefore(C,k.nextSibling);C.tabIndex=0;C.id="fc-focus-trap-post-div";var B=Wh8(W,k),A=Wh8(W,k,!0);B&&A&&(W.focusChangeHandler=function(){var w=W.document.activeElement;if(w)if(_.vf(k,w))W.previouslyFocusedElement=w;else if(w===W.document.activeElement)switch(W.previouslyFocusedElement){case B:A.focus();W.previouslyFocusedElement=
A;break;default:B.focus(),W.previouslyFocusedElement=B}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},h_b=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var k;(k=document.getElementById("fc-focus-trap-pre-div"))==null||k.remove();var C;(C=document.getElementById("fc-focus-trap-post-div"))==null||C.remove()},CI8=function(W,k,C,n,N){C=C===void 0?!0:C;
var B;N=(B=N===void 0?null:N)!=null?B:Wh8(W,k,n===void 0?!1:n);N!==null&&(N.focus(),C&&k3x(W,k))};
K$Y.prototype.disableButton=function(W,k){k=k===void 0?null:k;W.disabled=!0;k&&_.vj(W,k)};
var Wh8=function(W,k,C){C=C===void 0?!1:C;if(sEw(k)&&!C)return k;var n=C?[].slice.call(k.children,0).reverse():k.children;n=_.b(n);for(var N=n.next();!N.done;N=n.next())if(N=N.value,Hy8(N)&&(N=Wh8(W,N,C)))return N;return sEw(k)&&C?k:null};var nnZ=function(W){this.originalBodyOverflow="";this.JSC$7873_domHelper=aO(W)};_.Pq(_.du,_.XK);_.Y=_.du.prototype;_.Y.JSC$7876_id_=0;_.Y.disposeInternal=function(){_.du.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7874_listener_;delete this.handler_};
_.Y.start=function(W){this.stop();this.JSC$7876_id_=Xb(this.callback_,W!==void 0?W:this.JSC$7874_interval_)};
_.Y.stop=function(){this.isActive()&&_.NX.clearTimeout(this.JSC$7876_id_);this.JSC$7876_id_=0};
_.Y.fire=function(){this.stop();this.JSC$7876_doAction_()};
_.Y.isActive=function(){return this.JSC$7876_id_!=0};
_.Y.JSC$7876_doAction_=function(){this.JSC$7876_id_=0;this.JSC$7874_listener_&&this.JSC$7874_listener_.call(this.handler_)};_.j9=function(W){_.XK.call(this);this.handler_=W;this.JSC$7877_keys_={}};
_.Pq(_.j9,_.XK);var NA2=[];_.j9.prototype.listen=function(W,k,C,n){Array.isArray(k)||(k&&(NA2[0]=k.toString()),k=NA2);for(var N=0;N<k.length;N++){var B=_.b6(W,k[N],C||this.handleEvent,n||!1,this.handler_||this);if(!B)break;this.JSC$7877_keys_[B.key]=B}return this};
_.j9.prototype.listenOnce=function(W,k,C,n){return YeS(this,W,k,C,n)};
var YeS=function(W,k,C,n,N,B){if(Array.isArray(C))for(var A=0;A<C.length;A++)YeS(W,k,C[A],n,N,B);else{k=ni(k,C,n||W.handleEvent,N,B||W.handler_||W);if(!k)return W;W.JSC$7877_keys_[k.key]=k}return W};
_.j9.prototype.unlisten=function(W,k,C,n,N){if(Array.isArray(k))for(var B=0;B<k.length;B++)this.unlisten(W,k[B],C,n,N);else if(W=pDY(W,k,C||this.handleEvent,_.O2(n)?!!n.capture:!!n,N||this.handler_||this))NN(W),delete this.JSC$7877_keys_[W.key];return this};
_.j9.prototype.removeAll=function(){_.JU.forEach(this.JSC$7877_keys_,function(W,k){this.JSC$7877_keys_.hasOwnProperty(k)&&NN(W)},this);
this.JSC$7877_keys_={}};
_.j9.prototype.disposeInternal=function(){_.j9.superClass_.disposeInternal.call(this);this.removeAll()};
_.j9.prototype.handleEvent=function(){throw Error("Sa");};var Gq=function(){_.XK.call(this);this.services_={}};
_.Pq(Gq,_.XK);_.Y=Gq.prototype;_.Y.logger=null;_.Y.connect=function(W){W&&W()};
_.Y.isConnected=function(){return!0};
_.Y.registerService=function(W,k,C){this.services_[W]={callback:k,objectPayload:!!C}};
_.Y.getService=function(W,k){var C=this.services_[W];return C?C:this.defaultService_?{callback:_.lW(this.defaultService_,W),objectPayload:_.O2(k)}:null};
var BA8=function(W,k){if(k&&typeof W==="string")try{return JSON.parse(W)}catch(C){return null}else if(!k&&typeof W!=="string")return(0,_.dm)(W);return W};
Gq.prototype.disposeInternal=function(){Gq.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 yA=function(W,k){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=k||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};
yA.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof yA&&this.result_.cancel();else{if(this.parent_){var k=this.parent_;delete this.parent_;W?k.cancel(W):(k.branches_--,k.branches_<=0&&k.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new $T(this))}};
yA.prototype.continue_=function(W,k){this.blocked_=!1;bSs(this,W,k)};
var bSs=function(W,k,C){W.fired_=!0;W.result_=C;W.hadError_=!k;AjC(W)},wvs=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new FhS(W);
W.silentlyCanceled_=!1}};
yA.prototype.callback=function(W){wvs(this);bSs(this,!0,W)};
yA.prototype.errback=function(W){wvs(this);bSs(this,!1,W)};
var xI8=function(W,k,C){Zu(W,k,null,C)};
yA.prototype.finally=function(W){var k=this;return new Promise(function(C,n){Zu(k,function(N){W();C(N)},function(N){W();
n(N)})})};
var Zu=function(W,k,C,n){var N=W.fired_;N||(k===C?k=C=ls(k):(k=ls(k),C=ls(C)));W.sequence_.push([k,C,n]);N&&AjC(W)};
yA.prototype.then=function(W,k,C){var n,N,B=new _.Wx(function(A,w){N=A;n=w});
Zu(this,N,function(A){A instanceof $T?B.cancel():n(A);return lEz},this);
return B.then(W,k,C)};
Rsb(yA);var tO8=function(W,k){k instanceof yA?xI8(W,(0,_.fN)(k.branch,k)):xI8(W,function(){return k})};
yA.prototype.branch=function(W){var k=new yA;Zu(this,k.callback,k.errback,k);W&&(k.parent_=this,this.branches_++);return k};
yA.prototype.isError=function(W){return W instanceof Error};
var En2=function(W){return v$(W.sequence_,function(k){return typeof k[1]==="function"})},lEz={},AjC=function(W){if(W.unhandledErrorId_&&W.fired_&&En2(W)){var k=W.unhandledErrorId_,C=aEA[k];
C&&(_.NX.clearTimeout(C.JSC$7894_id_),delete aEA[k]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);k=W.result_;for(var n=C=!1;W.sequence_.length&&!W.blocked_;){var N=W.sequence_.shift(),B=N[0],A=N[1];N=N[2];if(B=W.hadError_?A:B)try{var w=B.call(N||W.defaultScope_,k);w===lEz&&(w=void 0);w!==void 0&&(W.hadError_=W.hadError_&&(w==k||W.isError(w)),W.result_=k=w);if(o0S(k)||typeof _.NX.Promise==="function"&&k instanceof _.NX.Promise)n=!0,W.blocked_=!0}catch(x){k=x,W.hadError_=
!0,En2(W)||(C=!0)}}W.result_=k;n&&(w=(0,_.fN)(W.continue_,W,!0),n=(0,_.fN)(W.continue_,W,!1),k instanceof yA?(Zu(k,w,n),k.blocking_=!0):k.then(w,n));C&&(k=new XvC(k),aEA[k.JSC$7894_id_]=k,W.unhandledErrorId_=k.JSC$7894_id_)},FhS=function(){_.Ww.call(this)};
_.Pq(FhS,_.Ww);FhS.prototype.message="Deferred has already fired";FhS.prototype.name="AlreadyCalledError";var $T=function(){_.Ww.call(this)};
_.Pq($T,_.Ww);$T.prototype.message="Deferred was canceled";$T.prototype.name="CanceledError";var XvC=function(W){this.JSC$7894_id_=_.NX.setTimeout((0,_.fN)(this.throwError,this),0);this.JSC$7894_error_=W};
XvC.prototype.throwError=function(){delete aEA[this.JSC$7894_id_];throw this.JSC$7894_error_;};
var aEA={};var fEs={1:"NativeMessagingTransport"},dIb=["pu","lru","pru","lpu","ppu"],zqA=function(){for(var W=10,k=mIz,C=k.length,n="";W-- >0;)n+=k.charAt(Math.floor(Math.random()*C));return n},mIz="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Ra=function(W){_.XK.call(this);this.JSC$7897_domHelper_=W||aO()};
_.Pq(Ra,_.XK);Ra.prototype.transportType=0;Ra.prototype.getWindow=function(){return this.JSC$7897_domHelper_.getWindow()};
Ra.prototype.getName=function(){return fEs[String(this.transportType)]||""};var oa=function(W,k,C,n,N){Ra.call(this,C);this.JSC$7900_channel_=W;this.protocolVersion_=N||2;this.peerHostname_=k||"*";this.JSC$7900_eventHandler_=new _.j9(this);this.maybeAttemptToConnectTimer_=new _.Lt(100,this.getWindow());this.oneSidedHandshake_=!!n;this.setupAckReceived_=new yA;this.setupAckSent_=new yA;this.JSC$7900_connected_=new yA;this.endpointId_=zqA();this.peerEndpointId_=null;this.oneSidedHandshake_?DIZ(this.JSC$7900_channel_)==1?tO8(this.JSC$7900_connected_,this.setupAckReceived_):
tO8(this.JSC$7900_connected_,this.setupAckSent_):(tO8(this.JSC$7900_connected_,this.setupAckReceived_),this.protocolVersion_==2&&tO8(this.JSC$7900_connected_,this.setupAckSent_));xI8(this.JSC$7900_connected_,this.notifyConnected_,this);this.JSC$7900_connected_.callback(!0);this.JSC$7900_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Pq(oa,Ra);oa.prototype.peerProtocolVersion_=null;oa.prototype.initialized_=!1;oa.prototype.transportType=1;var VOx={};oa.prototype.sendTimerId_=0;
var IEC=function(W){var k=W.event_.data;if(typeof k!=="string")return!1;var C=k.indexOf("|"),n=k.indexOf(":");if(C==-1||n==-1)return!1;var N=k.substring(0,C);C=k.substring(C+1,n);k=k.substring(n+1);if(n=is[N])return n.xpcDeliver(C,k,W.event_.origin),!0;n=Jj2(k)[0];for(var B in is){var A=is[B];if(DIZ(A)==1&&!A.isConnected()&&C=="tp"&&(n=="SETUP"||n=="SETUP_NTPV2")&&cjb(A,W.event_.origin))return delete is[A.name],A.name=N,is[N]=A,A.xpcDeliver(C,k),!0}return!1},SeZ=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},MOS=function(W,k){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||k!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||k!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},Q4x=function(W,k){k>W.peerProtocolVersion_&&(W.peerProtocolVersion_=k);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.Y=oa.prototype;_.Y.connect=function(){var W=this.getWindow(),k=_.Hw(W),C=VOx[k];typeof C!=="number"&&(C=0);C==0&&_.b6(W.postMessage?W:W.document,"message",IEC,!1,oa);VOx[k]=C+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.Y.maybeAttemptToConnect_=function(){var W=DIZ(this.JSC$7900_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$7900_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),SeZ(this))};
_.Y.send=function(W,k){var C=this.JSC$7900_channel_.peerWindowObject_;C&&(this.send=function(n,N){var B=this,A=this.JSC$7900_channel_.name;this.sendTimerId_=Xb(function(){B.sendTimerId_=0;try{var w=C.postMessage?C:C.document;w.postMessage&&w.postMessage(A+"|"+n+":"+N,B.peerHostname_)}catch(x){}},0)},this.send(W,k))};
_.Y.notifyConnected_=function(){var W=this.JSC$7900_channel_,k=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.LU(W.connectionDelay_),k!==void 0?(W.connectionDelay_=new _.du(W.connectCb_,k),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.Y.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),k=_.Hw(W),C=VOx[k];VOx[k]=C-1;C==1&&_.wm(W.postMessage?W:W.document,"message",IEC,!1,oa)}this.sendTimerId_&&(_.NX.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.LU(this.JSC$7900_eventHandler_);delete this.JSC$7900_eventHandler_;_.LU(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;oa.superClass_.disposeInternal.call(this)};
var Jj2=function(W){W=W.split(",");W[1]=W[1]||null;return W};_.Tq=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.qX(W)){for(var k=[],C=W.length,n=0;n<C;n++)k.push(W[n]);return k}return _.JU.getValues(W)};
_.pvS=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.qX(W)||typeof W==="string"){var k=[];W=W.length;for(var C=0;C<W;C++)k.push(C);return k}return _.JU.getKeys(W)}}};
_.vnC=function(W,k,C){if(W.forEach&&typeof W.forEach=="function")W.forEach(k,C);else if(_.qX(W)||typeof W==="string")Array.prototype.forEach.call(W,k,C);else for(var n=_.pvS(W),N=_.Tq(W),B=N.length,A=0;A<B;A++)k.call(C,N[A],n&&n[A],W)};var G1m,HS,gm,onx,s4A,eqZ,yjY,G3I,Rq2,$IC;
_.oA=function(W,k){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 C;W instanceof _.oA?(this.JSC$7905_ignoreCase_=k!==void 0?k:W.JSC$7905_ignoreCase_,_.qe(this,W.scheme_),this.userInfo_=W.userInfo_,_.us(this,W.JSC$7905_domain_),_.UY(this,W.JSC$7905_port_),_.OY(this,W.getPath()),_.Lx(this,W.JSC$7905_queryData_.clone()),_.jZ(this,W.fragment_)):W&&(C=_.ZE(String(W)))?(this.JSC$7905_ignoreCase_=!!k,_.qe(this,
C[1]||"",!0),this.userInfo_=HS(C[2]||""),_.us(this,C[3]||"",!0),_.UY(this,C[4]),_.OY(this,C[5]||"",!0),_.Lx(this,C[6]||"",!0),_.jZ(this,C[7]||"",!0)):(this.JSC$7905_ignoreCase_=!!k,this.JSC$7905_queryData_=new _.rm(null,this.JSC$7905_ignoreCase_))};
_.oA.prototype.toString=function(){var W=[],k=this.scheme_;k&&W.push(gm(k,eqZ,!0),":");var C=this.JSC$7905_domain_;if(C||k=="file")W.push("//"),(k=this.userInfo_)&&W.push(gm(k,eqZ,!0),"@"),W.push(s4A(_.vv(C))),C=this.JSC$7905_port_,C!=null&&W.push(":",String(C));if(C=this.getPath())this.JSC$7905_domain_&&C.charAt(0)!="/"&&W.push("/"),W.push(gm(C,C.charAt(0)=="/"?G3I:yjY,!0));(C=this.JSC$7905_queryData_.toString())&&W.push("?",C);(C=this.fragment_)&&W.push("#",gm(C,$IC));return W.join("")};
_.oA.prototype.resolve=function(W){var k=this.clone(),C=!!W.scheme_;C?_.qe(k,W.scheme_):C=!!W.userInfo_;C?k.userInfo_=W.userInfo_:C=!!W.JSC$7905_domain_;C?_.us(k,W.JSC$7905_domain_):C=W.JSC$7905_port_!=null;var n=W.getPath();if(C)_.UY(k,W.JSC$7905_port_);else if(C=!!W.JSC$7905_path_){if(n.charAt(0)!="/")if(this.JSC$7905_domain_&&!this.JSC$7905_path_)n="/"+n;else{var N=k.getPath().lastIndexOf("/");N!=-1&&(n=k.getPath().slice(0,N+1)+n)}N=n;if(N==".."||N==".")n="";else if(_.E2(N,"./")||_.E2(N,"/.")){n=
_.AK(N,"/");N=N.split("/");for(var B=[],A=0;A<N.length;){var w=N[A++];w=="."?n&&A==N.length&&B.push(""):w==".."?((B.length>1||B.length==1&&B[0]!="")&&B.pop(),n&&A==N.length&&B.push("")):(B.push(w),n=!0)}n=B.join("/")}else n=N}C?_.OY(k,n):C=W.JSC$7905_queryData_.toString()!=="";C?_.Lx(k,W.JSC$7905_queryData_.clone()):C=!!W.fragment_;C&&_.jZ(k,W.fragment_);return k};
_.oA.prototype.clone=function(){return new _.oA(this)};
_.qe=function(W,k,C){W.scheme_=C?HS(k,!0):k;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.us=function(W,k,C){W.JSC$7905_domain_=C?HS(k,!0):k;return W};
_.UY=function(W,k){if(k){k=Number(k);if(isNaN(k)||k<0)throw Error("Ta`"+k);W.JSC$7905_port_=k}else W.JSC$7905_port_=null;return W};
_.oA.prototype.getPath=function(){return this.JSC$7905_path_};
_.OY=function(W,k,C){W.JSC$7905_path_=C?HS(k,!0):k;return W};
_.Lx=function(W,k,C){k instanceof _.rm?(W.JSC$7905_queryData_=k,ZSz(W.JSC$7905_queryData_,W.JSC$7905_ignoreCase_)):(C||(k=gm(k,Rq2)),W.JSC$7905_queryData_=new _.rm(k,W.JSC$7905_ignoreCase_));return W};
_.$L=function(W,k,C){W.JSC$7905_queryData_.set(k,C);return W};
_.yQ=function(W,k){return W.JSC$7905_queryData_.get(k)};
_.jZ=function(W,k,C){W.fragment_=C?HS(k):k;return W};
_.PS=function(W){_.$L(W,"zx",sg());return W};
_.Gb=function(W,k){return W instanceof _.oA?W.clone():new _.oA(W,k)};
G1m=function(W,k){W instanceof _.oA||(W=_.Gb(W));k instanceof _.oA||(k=_.Gb(k));return W.resolve(k)};
HS=function(W,k){return W?k?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
gm=function(W,k,C){return typeof W==="string"?(W=encodeURI(W).replace(k,onx),C&&(W=s4A(W)),W):null};
onx=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
s4A=function(W){return W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
eqZ=/[#\/\?@]/g;yjY=/[#\?:]/g;G3I=/[#\?]/g;Rq2=/[#\?@]/g;$IC=/#/g;_.rm=function(W,k){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$7906_ignoreCase_=!!k};
_.Kx=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&muI(W.encodedQuery_,function(k,C){W.add(T3(k),C)}))};
_.Y=_.rm.prototype;_.Y.getCount=function(){_.Kx(this);return this.count_};
_.Y.add=function(W,k){_.Kx(this);this.encodedQuery_=null;W=hb(this,W);var C=this.keyMap_.get(W);C||this.keyMap_.set(W,C=[]);C.push(k);this.count_+=1;return this};
_.Y.remove=function(W){_.Kx(this);W=hb(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.Y.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.Y.isEmpty=function(){_.Kx(this);return this.count_==0};
_.Y.containsKey=function(W){_.Kx(this);W=hb(this,W);return this.keyMap_.has(W)};
_.Y.containsValue=function(W){var k=this.getValues();return _.ZX(k,W)};
_.Y.forEach=function(W,k){_.Kx(this);this.keyMap_.forEach(function(C,n){C.forEach(function(N){W.call(k,N,n,this)},this)},this)};
_.Y.getKeys=function(){_.Kx(this);for(var W=Array.from(this.keyMap_.values()),k=Array.from(this.keyMap_.keys()),C=[],n=0;n<k.length;n++)for(var N=W[n],B=0;B<N.length;B++)C.push(k[n]);return C};
_.Y.getValues=function(W){_.Kx(this);var k=[];if(typeof W==="string")this.containsKey(W)&&(k=k.concat(this.keyMap_.get(hb(this,W))));else{W=Array.from(this.keyMap_.values());for(var C=0;C<W.length;C++)k=k.concat(W[C])}return k};
_.Y.set=function(W,k){_.Kx(this);this.encodedQuery_=null;W=hb(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[k]);this.count_+=1;return this};
_.Y.get=function(W,k){if(!W)return k;W=this.getValues(W);return W.length>0?String(W[0]):k};
_.iSS=function(W,k,C){W.remove(k);C.length>0&&(W.encodedQuery_=null,W.keyMap_.set(hb(W,k),_.T4(C)),W.count_+=C.length)};
_.rm.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],k=Array.from(this.keyMap_.keys()),C=0;C<k.length;C++){var n=k[C],N=_.vv(n);n=this.getValues(n);for(var B=0;B<n.length;B++){var A=N;n[B]!==""&&(A+="="+_.vv(n[B]));W.push(A)}}return this.encodedQuery_=W.join("&")};
_.rm.prototype.clone=function(){var W=new _.rm;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var hb=function(W,k){k=String(k);W.JSC$7906_ignoreCase_&&(k=k.toLowerCase());return k},ZSz=function(W,k){k&&!W.JSC$7906_ignoreCase_&&(_.Kx(W),W.encodedQuery_=null,W.keyMap_.forEach(function(C,n){var N=n.toLowerCase();
n!=N&&(this.remove(n),_.iSS(this,N,C))},W));
W.JSC$7906_ignoreCase_=k};
_.rm.prototype.extend=function(W){for(var k=0;k<arguments.length;k++)_.vnC(arguments[k],function(C,n){this.add(n,C)},this)};var W1=function(W,k){Gq.call(this);for(var C=0,n;n=dIb[C];C++)if(n in W&&!/^https?:\/\//.test(W[n]))throw Error("Va`"+W[n]+"`"+n);this.cfg_=W;this.name=this.cfg_.cn||zqA();this.JSC$7901_domHelper_=k||aO();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.j9(this);W.lpu=W.lpu||fAA(this.JSC$7901_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||fAA(W.pu||"")+"/robots.txt";is[this.name]=this;pDY(window,"unload",TAZ)||ni(window,"unload",TAZ)};
_.Pq(W1,Gq);var qeS=RegExp("^%*tp$"),ucI=RegExp("^%+tp$");_.Y=W1.prototype;_.Y.connectionDelay_=null;_.Y.peerWindowDeferred_=null;_.Y.transport_=null;_.Y.state_=1;_.Y.isConnected=function(){return this.state_==2};
_.Y.peerWindowObject_=null;_.Y.iframeElement_=null;_.Y.connect=function(W){this.connectCb_=W||_.Au;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?xI8(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.Y.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7901_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}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 oa(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()()};
_.Y.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.LU(this.transport_);this.connectCb_=this.transport_=null;_.LU(this.connectionDelay_);this.connectionDelay_=null};
_.Y.send=function(W,k){if(this.isConnected()){try{var C=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(N){C=!1}if(C){_.O2(k)&&(k=(0,_.dm)(k));C=this.transport_;var n=C.send;qeS.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);n.call(C,W,k)}else this.close()}};
_.Y.xpcDeliver=function(W,k,C){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.fN)(this.xpcDeliver,this,W,k,C));else if(cjb(this,C)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=ucI.test(W)?W.substring(1):W,W=this.getService(W,k))&&(k=BA8(k,W.objectPayload),k!=null&&W.callback(k));else switch(W=this.transport_,C=Jj2(k),k=C[1],C[0]){case "SETUP_ACK":Q4x(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(Q4x(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":Q4x(W,1);MOS(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(C=W.peerProtocolVersion_,Q4x(W,2),MOS(W,2),C!=1&&W.peerEndpointId_==null||W.peerEndpointId_==k||SeZ(W),W.peerEndpointId_=k)}};
var DIZ=function(W){var k=W.cfg_.role;return typeof k==="number"?k:window.parent==W.peerWindowObject_?1:0},cjb=function(W,k){var C=W.cfg_.ph;
return _.tK(k==null?"":String(k))||_.tK(C==null?"":String(C))||k==W.cfg_.ph};
W1.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete is[this.name];_.LU(this.peerLoadHandler_);delete this.peerLoadHandler_;W1.superClass_.disposeInternal.call(this)};
var TAZ=function(){for(var W in is)_.LU(is[W])},is={};var OSA=function(W,k){this.JSC$7915_win=W;this.allowAdsHttpEndpoint=k;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7915_domHelper=aO(W);this.scrollManager=new nnZ(W);this.accessibilityManager=new K$Y(W);UI8(this)},UI8=function(W){var k=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");h_b(W.accessibilityManager);CI8(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));var N=W.scrollManager;N.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=N.originalBodyOverflow};
W.allowAdsPopup=W.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$7915_domHelper.appendChild(W.JSC$7915_domHelper.JSC$7241_document_.body,W.allowAdsPopup);var C=W.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$7915_domHelper.appendChild(W.allowAdsPopup,C);var n=W.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:k});W.JSC$7915_domHelper.appendChild(W.allowAdsPopup,
n);C=W.JSC$7915_domHelper.JSC$7243_createDom("IFRAME");C.className="fc-whitelist-dialog";C.frameBorder="0";C.id="fc-whitelist-iframe";C.tabIndex="0";_.i5(C,W.allowAdsHttpEndpoint);W.JSC$7915_domHelper.appendChild(n,C);n={};n.pu=_.Ez(W.allowAdsHttpEndpoint).toString();n.tp=1;n.cn="fc-whitelist-channel";n.ifrid=C.id;n.osh=!0;W.allowAdsCrossPageChannel=new W1(n);W.allowAdsCrossPageChannel.registerService("close",k);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$7915_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(N){if(N){var B=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");N.width&&B.style.setProperty("width",N.width,"important");N.height&&B.style.setProperty("height",N.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
OSA.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 kX=window,CF=document,LhA=kX.location,j48=function(){},HSI=/\[native code\]/,nF=function(W,k,C){return W[k]=W[k]||C},rjY=function(W){W=W.sort();
for(var k=[],C=void 0,n=0;n<W.length;n++){var N=W[n];N!=C&&k.push(N);C=N}return k},NR=function(){var W;
if((W=Object.create)&&HSI.test(W))W=W(null);else{W={};for(var k in W)W[k]=void 0}return W},YX=nF(kX,"gapi",{});var B1={};B1=nF(kX,"___jsl",NR());nF(B1,"I",0);nF(B1,"hel",10);var gn8=function(){var W=LhA.href;if(B1.dpo)var k=B1.h;else{k=B1.h;var C=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),n=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(C.exec(W)||n.exec(W)))try{k=decodeURIComponent(W[2])}catch(N){}}return k},PII=function(W){var k=nF(B1,"PQ",[]);
B1.PQ=[];var C=k.length;if(C===0)W();else for(var n=0,N=function(){++n===C&&W()},B=0;B<C;B++)k[B](N)},Kh2=function(W){return nF(nF(B1,"H",NR()),W,NR())};var bc=function(W){this.JSC$7917_obj_=W};
bc.prototype.value=function(){return this.JSC$7917_obj_};
bc.prototype.getWidth=function(){return this.JSC$7917_obj_.width};
bc.prototype.getHeight=function(){return this.JSC$7917_obj_.height};
bc.prototype.getStyle=function(){return this.JSC$7917_obj_.style};var hqs=function(W){this.JSC$7920_obj_=W||{}};
_.Y=hqs.prototype;_.Y.value=function(){return this.JSC$7920_obj_};
_.Y.setUrl=function(W){this.JSC$7920_obj_.url=W;return this};
_.Y.getUrl=function(){return this.JSC$7920_obj_.url};
_.Y.getStyle=function(){return this.JSC$7920_obj_.style};
_.Y.getId=function(){return this.JSC$7920_obj_.id};
_.Y.getContext=function(){return this.JSC$7920_obj_.context};
var WKA=function(W){W.JSC$7920_obj_.attributes=W.JSC$7920_obj_.attributes||{};return new bc(W.JSC$7920_obj_.attributes)};var kWZ=function(){hqs.apply(this,arguments)};
_.D(kWZ,hqs);var CpC=nF(B1,"perf",NR());nF(CpC,"g",NR());var ngs=nF(CpC,"i",NR());nF(CpC,"r",[]);NR();NR();var YhS=function(W,k,C){k&&k.length>0&&(k=Nds(k),C&&C.length>0&&(k+="___"+Nds(C)),k.length>28&&(k=k.substr(0,28)+(k.length-28)),C=k,k=nF(ngs,"_p",NR()),nF(k,C,NR())[W]=(new Date).getTime(),k=CpC.r,typeof k==="function"?k(W,"_p",C):k.push([W,"_p",C]))},Nds=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var BdA=NR(),bHS=[],AC=function(W){throw Error("Ya`"+W);};
bHS.push(["jsl",function(W){for(var k in W)if(Object.prototype.hasOwnProperty.call(W,k)){var C=W[k];typeof C=="object"?B1[k]=nF(B1,k,[]).concat(C):nF(B1,k,C)}if(k=W.u)W=nF(B1,"us",[]),W.push(k),(k=/^https:(.*)$/.exec(k))&&W.push("http:"+k[1])}]);
var AMb=/^(\/[a-zA-Z0-9_\-]+)+$/,FKI=[/\/amp\//,/\/amp$/,/^\/amp$/],w4x=/^[a-zA-Z0-9\-_\.,!]+$/,x7A=/^gapi\.loaded_[0-9]+$/,l58=/^[a-zA-Z0-9,._-]+$/,X48=function(W,k,C,n,N){var B=W.split(";"),A=B.shift(),w=BdA[A],x=null;w?x=w(B,k,C,n):AC("no hint processor for: "+A);x||AC("failed to generate load url");k=x;C=k.match(tfS);(n=k.match(Egz))&&n.length===1&&a5x.test(k)&&C&&C.length===1||AC("failed sanity: "+W);try{W="?";if(N&&N.length>0){IXX(N);var E=N.join(",");x=x+"?le="+E;W="&"}if(B1.rol){var a=B1.ol;
a&&a.length&&(x=""+x+W+"ol="+a.length)}}catch(X){}return x},m7I=function(W,k,C,n){W=f5b(W);
x7A.test(C)||AC("invalid_callback");k=d7b(k);n=n&&n.length?d7b(n):null;var N=function(B){return encodeURIComponent(B).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",N(W.version),"/m=",N(k),n?"/exm="+N(n):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+N(W.activeMods):"",W.resourceSig?"/rs="+N(W.resourceSig):"",W.zcms?"/t="+N(W.zcms):"","/cb=",N(C)].join("")},f5b=function(W){W.charAt(0)!=="/"&&AC("relative path");
for(var k=W.substring(1).split("/"),C=[];k.length;){W=k.shift();if(!W.length||W.indexOf(".")==0)AC("empty/relative directory");else if(W.indexOf("=")>0){k.unshift(W);break}C.push(W)}W={};for(var n=0,N=k.length;n<N;++n){var B=k[n].split("="),A=decodeURIComponent(B[0]),w=decodeURIComponent(B[1]);B.length==2&&A&&w&&(W[A]=W[A]||w)}k="/"+C.join("/");AMb.test(k)||AC("invalid_prefix");C=0;for(n=FKI.length;C<n;++C)FKI[C].test(k)&&AC("invalid_prefix");C=zlx(W,"k",!0);n=zlx(W,"am");N=zlx(W,"rs");W=zlx(W,"t");
return{pathPrefix:k,version:C,activeMods:n,resourceSig:N,zcms:W}},d7b=function(W){for(var k=[],C=0,n=W.length;C<n;++C){var N=W[C].replace(/\./g,"_").replace(/-/g,"_");
l58.test(N)&&k.push(N)}return k.join(",")},zlx=function(W,k,C){W=W[k];
!W&&C&&AC("missing: "+k);if(W){if(w4x.test(W))return W;AC("invalid: "+k)}return null},a5x=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Egz=/\/cb=/g,tfS=/\/\//g;
BdA.m=function(W,k,C,n){(W=W[0])||AC("missing_hint");return"https://apis.google.com"+m7I(W,k,C,n)};
var D7S=decodeURI("%73cript"),VfS=/^[-+_0-9\/A-Za-z]+={0,2}$/,JM2=function(W,k){for(var C=[],n=0;n<W.length;++n){var N=W[n],B;if(B=N){a:{for(B=0;B<k.length;B++)if(k[B]===N)break a;B=-1}B=B<0}B&&C.push(N)}return C},cMZ=function(){var W=B1.nonce;
return W!==void 0?W&&W===String(W)&&W.match(VfS)?W:B1.nonce=null:CF.querySelector?(W=CF.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(VfS)?B1.nonce=W:B1.nonce=null):null:null},MfS=function(W){if(CF.readyState!="loading")I52(W);
else{var k=cMZ(),C="";k!==null&&(C=' nonce="'+k+'"');W="<"+D7S+' src="'+encodeURI(W)+'"'+C+"></"+D7S+">";CF.write(Sh8?Sh8.createHTML(W):W)}},I52=function(W){var k=CF.createElement(D7S);
k.setAttribute("src",Sh8?Sh8.createScriptURL(W):W);W=cMZ();W!==null&&k.setAttribute("nonce",W);k.async="true";(W=CF.getElementsByTagName(D7S)[0])?W.parentNode.insertBefore(k,W):(CF.head||CF.body||CF.documentElement).appendChild(k)},p4S=function(W,k,C){QXs(function(){var n=k===gn8()?nF(YX,"_",NR()):NR();
n=nF(Kh2(k),"_",n);W(n)},C)},wFw=function(W,k){var C=k||{};
typeof k=="function"&&(C={},C.callback=k);var n=(k=C)&&k._c;if(n)for(var N=0;N<bHS.length;N++){var B=bHS[N][0],A=bHS[N][1];A&&Object.prototype.hasOwnProperty.call(n,B)&&A(n[B],W,k)}k=[];W?k=W.split(":"):C.features&&(k=C.features);if(!(W=C.h)&&(W=gn8(),!W))throw Error("Za");vgA(k||[],C,W)},vgA=function(W,k,C){W=rjY(W)||[];
var n=k.callback,N=k.config,B=k.timeout,A=k.ontimeout,w=k.onerror,x=void 0;typeof w=="function"&&(x=w);var E=null,a=!1;if(B&&!A||!B&&A)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";w=nF(Kh2(C),"r",[]).sort();var X=nF(Kh2(C),"L",[]).sort(),d=B1.le||[],V=[].concat(w),c=function(h,L){if(a)return 0;kX.clearTimeout(E);X.push.apply(X,M);var Bw=((YX||{}).config||{}).update;Bw?Bw(N):N&&nF(B1,"cu",[]).push(N);if(L){YhS("me0",h,V);try{p4S(L,C,x)}finally{YhS("me1",h,V)}}return 1};
B>0&&(E=kX.setTimeout(function(){a=!0;A()},B));
var M=JM2(W,X);if(M.length){M=JM2(W,w);var p=nF(B1,"CP",[]),e=p.length;p[e]=function(h){if(!h)return 0;YhS("ml1",M,V);var L=function(P){p[e]=null;c(M,h)&&PII(function(){n&&n();P()})},Bw=function(){var P=p[e+1];
P&&P()};
e>0&&p[e-1]?p[e]=function(){L(Bw)}:L(Bw)};
if(M.length){var u="loaded_"+B1.I++;YX[u]=function(h){p[e](h);YX[u]=null};
W=X48(C,M,"gapi."+u,w,d);w.push.apply(w,M);YhS("ml0",M,V);k.sync||kX.___gapisync?MfS(W):I52(W)}else p[e](j48)}else c(M)&&n&&n()},elY;
var sXA=null,GWz=_.NX.trustedTypes;if(GWz&&GWz.createPolicy){try{sXA=GWz.createPolicy("goog#gapi",{createHTML:Ns4,createScript:Ns4,createScriptURL:Ns4})}catch(W){_.NX.console&&_.NX.console.error(W.message)}elY=sXA}else elY=sXA;var Sh8=elY,QXs=function(W,k){if(B1.hee&&B1.hel>0)try{return W()}catch(C){k&&k(C),B1.hel--,wFw("debug_error",function(){try{window.___jsl.hefn(C)}catch(n){throw C;}})}else try{return W()}catch(C){throw k&&k(C),C;
}},yMs=YX.load;
yMs&&nF(B1,"ol",[]).push(yMs);YX.load=function(W,k){return QXs(function(){return wFw(W,k)})};var elP;var $7S=function(W,k){this.serviceId_=W;this.moduleId_=k||null};
$7S.prototype.toString=function(){return this.serviceId_};
$7S.prototype.getModuleId=function(){return this.moduleId_};var gem=new $7S("MpJwZc","MpJwZc");var KQz=new _.Ne("a"),Pdw=function(W,k,C){_.BS.call(this,W,k);this.node=k;this.kind=C};
_.D(Pdw,_.BS);var ZHz=function(){this.JSC$7933_keys_={};this.urlPrefix_="";this.JSC$7933_queryData_={}};
ZHz.prototype.toString=function(){var W=this.urlPrefix_+RlS(this),k=_.W4(this.JSC$7933_queryData_),C="";k!=""&&(C="?"+k);return W+C};
var og2=function(W){W=F$(W,"md");return!!W&&W!=="0"},RlS=function(W){var k=[],C=(0,_.fN)(function(n){this.JSC$7933_keys_[n]!==void 0&&k.push(n+"="+this.JSC$7933_keys_[n])},W);
og2(W)?(C("md"),C("k"),C("ck"),C("am"),C("rs"),C("gssmodulesetproto"),C("slk"),C("dti")):(C("sdch"),C("k"),C("ck"),C("am"),C("rt"),"d"in W.JSC$7933_keys_||w1(W,"d","0"),C("d"),C("exm"),C("excm"),(W.JSC$7933_keys_.excm||W.JSC$7933_keys_.exm)&&k.push("ed=1"),C("im"),C("dg"),C("sm"),F$(W,"br")!="1"&&F$(W,"br")!="0"||C("br"),C("br-d"),F$(W,"rb")=="1"&&C("rb"),F$(W,"zs")!=="0"&&C("zs"),iHS(W)!==""&&C("wt"),C("gssmodulesetproto"),C("ujg"),C("sp"),C("rs"),C("cb"),C("ee"),C("slk"),C("dti"),C("m"));return k.join("/")},
F$=function(W,k){return W.JSC$7933_keys_[k]?W.JSC$7933_keys_[k]:null},w1=function(W,k,C){C?W.JSC$7933_keys_[k]=C:delete W.JSC$7933_keys_[k]},TdY=function(W,k){W.urlPrefix_=k},qhs=function(W,k){k&&k.length>0?(k.sort(),w1(W,"exm",k.join(","))):w1(W,"exm",null)},uVx=function(W,k){k&&k.length>0?(k.sort(),w1(W,"excm",k.join(","))):w1(W,"excm",null)},U7s=function(W){return(W=F$(W,"m"))?W.split(","):[]},iHS=function(W){switch(F$(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},OHA=function(W,k){var C=Object.keys(k).filter(function(n){return!!Object.keys(k[n]).length}).map(function(n){var N=Object.keys(k[n]);
N.length>1&&N.sort();return n+":"+N.join(",")});
C.sort();w1(W,"ee",C.join(";"))},zuw=function(W){var k=F$(W,"ee");
if(!k)return{};W={};k=_.b(k.split(";"));for(var C=k.next();!C.done;C=k.next()){var n=_.b(C.value.split(":"));C=n.next().value;n=n.next().value;W[C]={};n=_.b(n.split(","));for(var N=n.next();!N.done;N=n.next())W[C][N.value]=!0}return W},LK8=function(W){delete W.JSC$7933_keys_.m;
delete W.JSC$7933_keys_.exm;delete W.JSC$7933_keys_.ed};
ZHz.prototype.clone=function(){return LN(this.toString())};
var LN=function(W,k){k=k===void 0?!0:k;var C=jXI(W),n=new ZHz,N=_.ZE(C)[5];_.JU.forEach(HHz,function(A){var w=N.match("/"+A+"=([^/]+)");w&&w1(n,A,w[1])});
var B="";B=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";TdY(n,W.substr(0,W.indexOf(B)+B.length));if(!k)return n;(W=_.ZE(C)[6]||null)&&muI(W,function(A,w){n.JSC$7933_queryData_[A]=w});
return n},f32=function(W){W=_.KS(jXI(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},jXI=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},HHz={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"},rMZ=RegExp("^loaded_(g|h)?[_\\d]+$");_.xX=function(W){this.JSC$7945_id_=W;this.opts={}};
_.xX.prototype.JSC$7947_setLabel=function(W){this.label_=W||void 0;return this};
_.xX.prototype.addUploadMetadata=function(W,k){var C=this.opts.data||{};C[W]=k;this.opts.data=C;return this};
var ggZ=function(W){var k=_.JU.filter(W.opts,function(C){return C!==null});
k=_.JU.isEmpty(k)?null:k;W=[W.JSC$7945_id_,W.label_,k];k=zcc(W);return W=W.slice(0,k+1)};
_.xX.prototype.toString=function(){var W=ggZ(this);return"("+_.cD(W,function(k){return JSON.stringify(k)}).join(",")+")"};
_.xX.prototype.getId=function(){return this.JSC$7945_id_};
_.xX.prototype.getOptions=function(){return _.JU.clone(this.opts)};var lc=function(){_.xX.call(this,"image-search")};
_.D(lc,_.xX);lc.prototype.setSize=function(W){this.opts.imgsz=W;return this};
lc.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
lc.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};var tC=function(){_.xX.call(this,"maps")};
_.D(tC,_.xX);tC.prototype.setZoom=function(W){this.opts.zoom=W;return this};
tC.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
tC.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};_.E3=function(){_.xX.call(this,"photos")};
_.D(_.E3,_.xX);_.E3.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
_.E3.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};var aR=function(){_.xX.call(this,"url")};
_.D(aR,_.xX);var PpZ=function(){var W=new aR;W.opts.type="video";W.opts.site="youtube.com";return W};
aR.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
aR.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};var X$=function(){_.xX.call(this,"video-search")};
_.D(X$,_.xX);var KKA=function(){var W=new X$;W.opts.site="youtube.com";return W};
X$.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
X$.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};var hlS=function(){_.xX.call(this,"web")};
_.D(hlS,_.xX);hlS.prototype.JSC$7947_setLabel=function(W){_.xX.prototype.JSC$7947_setLabel.call(this,W);return this};
hlS.prototype.addUploadMetadata=function(W,k){_.xX.prototype.addUploadMetadata.call(this,W,k);return this};var fF=function(){this.items_=[];this.opts={}},WaA=function(W){switch(W){case "image-search":return new lc;
case "maps":return new tC;case "photos":return new _.E3;case "url":return new aR;case "video-search":return new X$;case "web":return new hlS}return new _.xX(W)};
fF.prototype.addView=function(W){this.items_.push(typeof W==="string"?WaA(W):W);return this};
var kwA=function(W){return"("+_.cD(W.items_,function(k){return k.toString()}).join(",")+")"};
fF.prototype.toString=function(){return kwA(this)};
fF.prototype.getViews=function(W,k){k=k===void 0?[]:k;for(var C=this.items_,n=0;n<C.length;n++){var N=C[n];N instanceof fF?N.getViews(W,k):N.getId()==W&&k.push(N)}return k};
fF.prototype.getOptions=function(){return _.JU.clone(this.opts)};var MD=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new fF};
MD.prototype.nav_=null;MD.prototype.addView=function(W){this.nav_.addView(W);return this};
MD.prototype.getBaseUrl=function(){return this.basePickerUrl_};
MD.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.Ce8=function(W,k){W.callback_=k;return W};var n18=new Map;n18.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");n18.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");n18.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var NKb=new Set;NKb.add("application/vnd.google-apps.kix");NKb.add("application/vnd.google-apps.ritz");NKb.add("application/vnd.google-apps.punch");var X$2=function(W,k,C){var n=C&&_.Vo(C,1);C=YLY(C);var N=W[0].getId();switch(_.Jp(N,2)){case 13:return BKI(W,k,n,C);case 3:return bvY(W,k,n,C);case 10:return AES(W,k,n,C);case 27:return AES(W,k,n,C);case 12:return FaC(W,k);case 2:return w$z(W,k,n,C);case 5:return xqS(W,k,n,C);case 9:return l32(W,k,n,C);case 6:return tkZ(W,k,n,C);case 25:return E1Y(W,k,n,C);case 1:return _.x4(W[0],WRb,26)?a3A(W,k,n,C):AES(W,k,n,C);default:return{}}},tkZ=function(W,k,C,n){W=W.map(function(N){return{id:N.getId().getId(),
serviceId:"youtube",name:N.getName(),description:_.Vo(N,3),type:d1(N),lastEditedUtc:_.hr2(_.q7(N,_.Gr,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:N.getUrl(),embedUrl:_.Vo(N,13),thumbnails:me(qJ(N))}});
return{action:k,docs:W,viewToken:n,view:C||"youtube",v2Translated:!0}},w$z=function(W,k,C,n){var N=W.map(function(B){var A=B.getId().getId(),w=_.Vo(B,7),x=B.getName(),E=d1(B),a=_.hr2(_.q7(B,_.Gr,12)).getTime(),X=B.getUrl(),d=Number(fq2(B)),V=_.Vo(B,3),c=_.Vo(B,11),M=me(qJ(B));
var p=_.q7(B,u1,21);p=_.ml(p,1);var e=_.q7(B,u1,21);e=_.Vo(e,10);var u=_.Vo(B,13);var h=_.q7(B,u1,21);h=_.ml(h,9);var L=_.q7(B,u1,21);L=_.Vo(L,11);A={id:A,serviceId:"docs",mimeType:w,name:x,type:E,lastEditedUtc:a,url:X,sizeBytes:d,description:V,iconUrl:c,thumbnails:M,isShared:p,downloadUrl:e,embedUrl:u,copyable:h,resourceKey:L};w=_.q7(B,u1,21);_.ml(w,12)&&(A.uploadState="success",A.isNew=!0);w=_.q7(B,u1,21);_.x4(w,oH,3)&&(B=_.q7(B,u1,21),B=_.q7(B,oH,3),_.x4(B,Z8,2)&&(w=IL(B.getDuration().getSeconds()),
x=B.getDuration(),x=_.gP(x,2),A.duration=w+x/1E9),A.aspectRatio=B.getAspectRatio());return A});
return{action:k,docs:N,viewToken:n,view:C||"all",extraUserInputs:f3A(W),v2Translated:!0}},xqS=function(W,k,C,n){W=W.map(function(N){var B=_.q7(N,FRS,15);
B=_.q7(B,RH,1);NP(N,10,RH,B);return{id:N.getId().getId(),serviceId:"web",mimeType:_.Vo(N,7),name:N.getName(),type:d1(N),url:N.getUrl(),description:_.Vo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(N))}});
return{action:k,docs:W,viewToken:n,view:C||"image-search",v2Translated:!0}},l32=function(W,k,C,n){W=W.map(function(N){return{serviceId:"url",
name:qJ(N)[0].getUrl().split("/").pop(),type:d1(N),mimeType:_.Vo(N,7),url:N.getUrl(),description:_.Vo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(N))}});
return{action:k,docs:W,viewToken:n,view:C||"url",v2Translated:!0}},a3A=function(W,k,C,n){W=W.map(function(N){return{id:N.getId().getId(),
serviceId:"picasa",name:N.getName(),type:d1(N),description:_.Vo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(N))}});
return{action:k,docs:W,viewToken:n,view:C||"webcam",v2Translated:!0}},AES=function(W,k,C,n){return{action:k,
docs:W.map(dqA),viewToken:n,view:mq2(C||"upload",W),extraUserInputs:f3A(W),v2Translated:!0}},mq2=function(W,k){return k.some(function(C){var n;
return((n=_.q7(C,i1,30))==null?void 0:_.Jp(n,3))===9})?W+"/gmailphotos":W},bvY=function(W,k,C,n){var N=W.map(function(B){var A={id:B.getId().getId(),
serviceId:"picasa",mimeType:_.Vo(B,7),name:B.getName(),type:d1(B),lastEditedUtc:_.hr2(_.q7(B,_.Gr,12)).getTime(),url:B.getUrl(),sizeBytes:Number(fq2(B)),description:_.Vo(B,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(B)),mediaKey:B.getId().getId(),parentId:_.Vo(B,4)},w,x=(w=_.q7(B,nOC,18))==null?void 0:_.q7(w,CMb,3);x&&(A.latitude=DB(x,1),A.longitude=DB(x,2));var E;B=(E=_.q7(B,nOC,18))==null?void 0:zv(E,6);E=B!=null?IL(B):void 0;E&&(A.version=
E);return A});
return{action:k,docs:N,viewToken:n,view:C||"photos",extraUserInputs:f3A(W),v2Translated:!0}},BKI=function(W,k,C,n){W=W.map(function(N){return{id:N.getId().getId(),
serviceId:"et",name:qJ(N)[0].getUrl().split("/").pop(),description:_.Vo(N,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(N),"etjpg")}});
return{action:k,docs:W,viewToken:n,view:C||"et",v2Translated:!0}},E1Y=function(W,k,C,n){W=W.map(function(N){var B=N.getId().getId(),A=n["2"];
return{id:B,serviceId:A.type!=="gmail_themes"&&A.parent==="6226252643674576769"?"picasa":"static_themes",name:N.getName(),mimeType:_.Vo(N,7),type:d1(N),description:_.Vo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:N.getUrl(),embedUrl:N.getUrl(),thumbnails:me(qJ(N))}});
return{action:k,docs:W,viewToken:n,view:C||"photos",v2Translated:!0}},FaC=function(W,k){W=W.map(function(C){var n=_.q7(C,kt8,27);
n=_.sS(n,1,_.lE,_.rP())[0];return{id:C.getId().getId(),serviceId:"contacts",mimeType:_.Vo(C,7),name:C.getName(),description:_.Vo(C,3),url:"mailto:"+n,thumbnail:[{url:_.Vo(C,11)}],email:n}});
return{action:k,docs:W,view:"contacts",v2Translated:!0}},YLY=function(W){if(!W)return{};
var k=_.Vo(W,3);k=k&&JSON.parse(k)||{};return{0:_.Vo(W,1),1:_.Vo(W,2),2:k}},me=function(W,k){k=k===void 0?"":k;
if(!W.length)return null;k=="etjpg"&&(W=W.filter(function(C){return C.getUrl().includes("w1200-h300")}));
return W.map(function(C){return{url:C.getUrl(),height:C.getHeight(),width:C.getWidth(),type:k}})},f3A=function(W){return{isAttachment:W.some(function(k){return _.ml(k,31)})}},dqA=function(W){var k,C={id:(k=W.getId())==null?void 0:k.getId(),
serviceId:zub(W),mimeType:_.Vo(W,7),name:W.getName(),type:d1(W),sizeBytes:Number(fq2(W)),description:_.Vo(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:me(qJ(W)),isNew:!0};if(k=_.q7(W,i1,30)){C.dataUrl=_.Vo(k,1)||null;a:{var n=_.q7(W,i1,30);switch(_.Jp(n,3)){case 9:n=_.St(n,bgS,2,TK);n={remoteRefs:n&&_.Vo(n,1)};break a;case 10:case 15:n=_.St(n,BTA,4,TK);var N=qJ(W);n={photo_id:n&&_.Vo(n,1),media_key:W.getId().getId(),media_type:_.Jp(W,6)===1?1:2,image_url:N&&
N[0].getUrl(),width:N&&String(N[0].getWidth()),height:N&&String(N[0].getHeight())};break a}n=null}C.uploadMetadata=n;C.uploadId=_.Vo(k,9)||null;C.uploadState=DqI(k)||null}(n=k&&_.St(k,BTA,4,TK))&&(C.id=_.Vo(n,1));(n=k&&_.St(k,A88,5,TK))&&(C.contentId=_.Vo(n,1));(n=k&&_.St(k,NTA,7,TK))&&(C.contentId=_.Vo(n,1));(n=k&&_.St(k,YF8,6,TK))&&(C.contentId=_.Vo(n,1));(k==null?void 0:_.Jp(k,3))===1&&(C.mediaKey=W.getId().getId());return C},zub=function(W){var k;
switch(((k=_.q7(W,i1,30))==null?void 0:_.Jp(k,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},d1=function(W){switch(_.Jp(W,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 _.Vo(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},DqI=function(W){switch(W==null?void 0:_.Jp(W,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 I3x,VkA,JEz,cEx;_.zc=function(W,k){var C=k||{};k=C.document||document;var n=_.Ez(W).toString(),N=(new f0(k)).createElement("SCRIPT"),B={script_:N,timeout_:void 0},A=new yA(VkA,B),w=null,x=C.timeout!=null?C.timeout:5E3;x>0&&(w=window.setTimeout(function(){JEz(N,!0);A.errback(new cEx(1,"Timeout reached for loading script "+n))},x),B.timeout_=w);
N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||(JEz(N,C.cleanupWhenDone||!1,w),A.callback(null))};
N.onerror=function(){JEz(N,!0,w);A.errback(new cEx(0,"Error while loading script "+n))};
B=C.attributes||{};_.JU.extend(B,{type:"text/javascript",charset:"UTF-8"});F_8(N,B);_.LL(N,W);I3x(k).appendChild(N);return A};
I3x=function(W){var k=lg("HEAD",W);return k&&k.length!==0?k[0]:W.documentElement};
VkA=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&JEz(W,!0,this.timeout_)}};
JEz=function(W,k,C){C!=null&&_.NX.clearTimeout(C);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
k&&window.setTimeout(function(){_.xL(W)},0)};
cEx=function(W,k){var C="Jsloader error (code #"+W+")";k&&(C+=": "+k);_.Ww.call(this,C);this.code=W};
_.Pq(cEx,_.Ww);var SLY=_.iH(["https://apis.google.com/js/api.js"]),MkC=_.k0(SLY),eu2=function(W,k){var C=!1,n=QM8(W,k).then(function(B){C=!0;return B}),N=_.NuI(5E3).then(function(){return C?QM8(W,k):p$8(k).then(function(B){return v1s(B,W)})});
return LD8([n,N])},QM8=function(W,k){return sM2(k).then(function(C){return v1s(C,W)})},v1s=function(W,k){var C=_.AK(k,"gapi.")?k.slice(5):k;
return W[C]?_.nB(W[C]):new _.Wx(function(n,N){var B=Xb(function(){N(Error("bb"))},3E4);
W.load(k,{callback:function(){_.NX.clearTimeout(B);n(W[C])},
onerror:function(A){_.NX.clearTimeout(B);N(A)}})})},sM2=function(W){return W.gapi&&W.gapi.load?_.nB(W.gapi):p$8(W)},p$8=function(W){return _.zc(MkC,{document:W.document}).then(function(){return W.gapi})},Gw8=function(){};
Gw8.prototype.load=function(W,k){k=k===void 0?window:k;var C=Date.now();return eu2(W,k).then(function(n){var N=Date.now();return{library:n,loadStartMs:C,loadEndMs:N}},function(n){throw n instanceof Error?n:Error(String(n));
})};var OH2=function(){_.XK.call(this);this.gapiLoader_=new Gw8;this.origin_=null;this.gapiPickerIframeResolver_=_.ME();this.gapiIframesResolver_=_.ME();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.D(OH2,_.XK);var yE2=function(W,k){var C=_.QK("gapi.iframes",k);return C?(W=Date.now(),_.nB({library:C,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",k)},$q8=function(W,k,C,n,N,B){var A=!0;
A=A===void 0?!1:A;yE2(W,M3(k.ownerDocument)).then(function(w){var x=w.library;W.gapiIframesResolver_.resolve(x);w=W.gapiPickerIframeResolver_;var E=w.resolve,a=A;a=a===void 0?!1:a;var X={};X["host-message-handler"]=C;W.hostMessageHandlerInternal_=X;var d=_.Gb(n);d=_.Gb(d);d=_.UY(_.us(_.qe(new _.oA,d.scheme_),d.JSC$7905_domain_),d.JSC$7905_port_).toString();W.origin_=d;d=(new kWZ).setUrl(n);d.JSC$7920_obj_.where=k;d.JSC$7920_obj_.allowPost=a;d.JSC$7920_obj_.messageHandlers=X;a=_.QK("makeWhiteListIframesFilter",
x)([W.origin_]);d.JSC$7920_obj_.messageHandlersFilter=a;N!=null&&(d.JSC$7920_obj_.id=N);B!=null&&(d.JSC$7920_obj_.rpctoken=B);a=WKA(d);a.JSC$7917_obj_.style={display:"block","min-width":"100%",width:"1px"};a.JSC$7917_obj_.height="100%";WKA(d).value().allow="camera 'src' "+W.origin_;x=x.getContext().openChild(d.value());E.call(w,x)},function(w){W.gapiIframesResolver_.reject(w);
W.gapiPickerIframeResolver_.reject(w)});
return W.gapiPickerIframeResolver_.promise},Zvs=function(W,k){return _.EY([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(C){var n=_.b(C);C=n.next().value;return(n=n.next().value)?n.send("picker-message-handler",k,void 0,_.QK("makeWhiteListIframesFilter",C)([W.origin_])):_.eh(Error("cb"))})};
OH2.prototype.disposeInternal=function(){RuA(this);_.XK.prototype.disposeInternal.call(this)};
var RuA=function(W){W.gapiPickerIframeResolver_.promise.then(function(k){k&&(k.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var o1Y=function(){this.nextId=0};var TKA=function(W,k){switch(W.action){case "select-contacts":W=ivZ(W.contacts);break;case "visibility":W=W.visible;var C=new Oy;W=_.Qo(C,1,7).setVisible(W);C={};C["iframe-command"]=W.serialize();W=C;break;default:W=null}return W?Zvs(k,W):_.nB()},ivZ=function(W){if(!W||W.length==0)return null;
var k=new Oy;_.Qo(k,1,11);var C=new o1Y;W.forEach(function(n){if(n.email){var N=new fr;N=_.u2(N,2,n.name?n.name:n.email);var B=new kt8;n=_.SSm(B,1,_.F6,n.email,_.lE);n=_.B6(N,27,n);N=new K_2;B=":"+(C.nextId++).toString(36);N=_.u2(N,1,B);N=_.Qo(N,2,12);n=_.B6(n,1,N)}else n=null;n&&NP(k,7,fr,n)});
W={};W["iframe-command"]=k.serialize();return W};_.qLA=function(){if(vR2){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.fI()))?W[1]:"0"}return _.pIz?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.fI()))?W[0].replace(/_/g,"."):"10"):H_p?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.fI()))?W[1]:""):so4||GZw||yrm?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.fI()))?W[1].replace(/_/g,"."):""):""}();var DT;DT=function(W){return(W=W.exec(_.fI()))?W[1]:""};
_.uEA=function(){if(_.Y4)return DT(/Firefox\/([0-9.]+)/);if(_.Cr||_.GW||SHX)return _.qHX;if(_.B9){if(_.QP()||_.Xwp()){var W=DT(/CriOS\/([0-9.]+)/);if(W)return W}return DT(/Chrome\/([0-9.]+)/)}if(_.D5&&!_.QP())return DT(/Version\/([0-9.]+)/);if(aF4||X3m){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.fI()))return W[1]+"."+W[2]}else if(LrX)return(W=DT(/Android\s+([0-9.]+)/))?W:DT(/Version\/([0-9.]+)/);return""}();var UqS=function(){};
_.rk(UqS);UqS.prototype.nextId_=0;_.Jf=function(W){return":"+(W.nextId_++).toString(36)};var VU=function(W){_.xT.call(this);this.JSC$8015_dom_=W||aO();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};
_.Pq(VU,_.xT);VU.prototype.idGenerator_=UqS.getInstance();VU.prototype.getId=function(){return this.JSC$8015_id_||(this.JSC$8015_id_=_.Jf(this.idGenerator_))};
VU.prototype.getElement=function(){return this.JSC$8015_element_};
var JC=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.j9(W));return W.googUiComponentHandler_},OvY=function(W,k){if(W==k)throw Error("db");
var C;if(C=k&&W.parent_&&W.JSC$8015_id_){C=W.parent_;var n=W.JSC$8015_id_;C=C.childIndex_&&n?_.JU.get(C.childIndex_,n)||null:null}if(C&&W.parent_!=k)throw Error("db");W.parent_=k;VU.superClass_.setParentEventTarget.call(W,k)};
VU.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("eb");VU.superClass_.setParentEventTarget.call(this,W)};
VU.prototype.JSC$8017_createDom=function(){this.JSC$8015_element_=this.JSC$8015_dom_.createElement("DIV")};
VU.prototype.render=function(W){Lab(this,W)};
var Lab=function(W,k,C){if(W.inDocument_)throw Error("fb");W.JSC$8015_element_||W.JSC$8017_createDom();k?k.insertBefore(W.JSC$8015_element_,C||null):W.JSC$8015_dom_.JSC$7241_document_.body.appendChild(W.JSC$8015_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.Y=VU.prototype;_.Y.decorate=function(W){if(this.inDocument_)throw Error("fb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var k=_.QZ(W);this.JSC$8015_dom_&&this.JSC$8015_dom_.JSC$7241_document_==k||(this.JSC$8015_dom_=aO(W));this.decorateInternal(W);this.enterDocument()}else throw Error("gb");};
_.Y.canDecorate=function(){return!0};
_.Y.decorateInternal=function(W){this.JSC$8015_element_=W};
_.Y.enterDocument=function(){this.inDocument_=!0;jMs(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.Y.exitDocument=function(){jMs(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.Y.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);jMs(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$8015_element_&&_.xL(this.JSC$8015_element_);this.parent_=this.model_=this.JSC$8015_element_=this.childIndex_=this.children_=null;VU.superClass_.disposeInternal.call(this)};
_.Y.getModel=function(){return this.model_};
_.Y.addChild=function(W,k){var C=this.children_?this.children_.length:0;if(W.inDocument_&&(k||!this.inDocument_))throw Error("fb");if(C<0||C>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.JU.set(this.childIndex_,W.getId(),W),_.iw(this.children_,W)):_.JU.add(this.childIndex_,W.getId(),W);OvY(W,this);_.cKc(this.children_,C,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(k=this.getContentElement(),
(k.childNodes[C]||null)!=W.getElement()&&(W.getElement().parentElement==k&&k.removeChild(W.getElement()),C=k.childNodes[C]||null,k.insertBefore(W.getElement(),C))):k?(this.JSC$8015_element_||this.JSC$8017_createDom(),C=this.children_?this.children_[C+1]||null:null,Lab(W,this.getContentElement(),C?C.JSC$8015_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$8015_element_&&W.JSC$8015_element_.parentNode&&W.JSC$8015_element_.parentNode.nodeType==1&&W.enterDocument()};
_.Y.getContentElement=function(){return this.JSC$8015_element_};
var jMs=function(W,k){W.children_&&W.children_.forEach(k,void 0)};
VU.prototype.removeChild=function(W,k){if(W){var C=typeof W==="string"?W:W.getId();W=this.childIndex_&&C?_.JU.get(this.childIndex_,C)||null:null;C&&W&&(_.JU.remove(this.childIndex_,C),_.iw(this.children_,W),k&&(W.exitDocument(),W.JSC$8015_element_&&_.xL(W.JSC$8015_element_)),OvY(W,null))}if(!W)throw Error("ib");return W};_.Pq($7X,yMm);_.Pq(ZH4,yMm);var HvZ;var rEs=function(W,k){k?W.setAttribute("role",k):W.removeAttribute("role")},c1=function(W,k,C){Array.isArray(C)&&(C=C.join(" "));
var n="aria-"+k;C===""||C==void 0?(HvZ||(C={},HvZ=(C.atomic=!1,C.autocomplete="none",C.dropeffect="none",C.haspopup=!1,C.live="off",C.multiline=!1,C.multiselectable=!1,C.orientation="vertical",C.readonly=!1,C.relevant="additions text",C.required=!1,C.sort="none",C.busy=!1,C.disabled=!1,C.hidden=!1,C.invalid="false",C)),C=HvZ,k in C?W.setAttribute(n,C[k]):W.removeAttribute(n)):W.setAttribute(n,C)};var g1Z;_.IR=function(W,k,C){_.xT.call(this);this.target=W;this.handle=k||W;this.limits=C||new p0(NaN,NaN,NaN,NaN);this.JSC$8020_document_=_.QZ(W);this.JSC$8020_eventHandler_=new _.j9(this);_.Bf(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;_.b6(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=g1Z};
_.Pq(_.IR,_.xT);g1Z=_.NX.document&&_.NX.document.documentElement&&!!_.NX.document.documentElement.setCapture&&!!_.NX.document.releaseCapture;_.PeC=function(W,k){W.hysteresisDistanceSquared_=Math.pow(k,2)};
_.Y=_.IR.prototype;_.Y.getEnabled=function(){return this.enabled_};
_.Y.setEnabled=function(W){this.enabled_=W};
_.Y.disposeInternal=function(){_.IR.superClass_.disposeInternal.call(this);_.wm(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};
_.Y.startDrag=function(W){var k=W.type=="mousedown";if(!this.enabled_||this.dragging_||k&&(W.event_.button!=0||_.pIz&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new ST("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,k&&W.preventDefault();else return;else k&&W.preventDefault();k=this.JSC$8020_document_;var C=k.documentElement,n=!this.useSetCapture_;this.JSC$8020_eventHandler_.listen(k,["touchmove","mousemove"],this.handleMove_,
{capture:n,passive:!1});this.JSC$8020_eventHandler_.listen(k,["touchend","mouseup"],this.endDrag,n);this.useSetCapture_?(C.setCapture(!1),this.JSC$8020_eventHandler_.listen(C,"losecapture",this.endDrag)):this.JSC$8020_eventHandler_.listen(M3(k),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8020_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,n);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=EX(aO(this.JSC$8020_document_))}};
_.Y.endDrag=function(W,k){this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new ST("end",this,W.clientX,W.clientY,W,Ka2(this,this.deltaX),huA(this,this.deltaY),k||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.Y.handleMove_=function(W){if(this.enabled_){var k=W.clientX-this.clientX,C=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var n=this.startX-this.clientX,N=this.startY-this.clientY;if(n*n+N*N>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new ST("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}C=WwZ(this,k,C);k=C.x;C=C.y;this.dragging_&&this.dispatchEvent(new ST("beforedrag",
this,W.clientX,W.clientY,W,k,C))&&(kJS(this,W,k,C),W.preventDefault())}};
var WwZ=function(W,k,C){var n=EX(aO(W.JSC$8020_document_));k+=n.x-W.pageScroll.x;C+=n.y-W.pageScroll.y;W.pageScroll=n;W.deltaX+=k;W.deltaY+=C;return new _.S3(Ka2(W,W.deltaX),huA(W,W.deltaY))};
_.IR.prototype.onScroll_=function(W){var k=WwZ(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;kJS(this,W,k.x,k.y)};
var kJS=function(W,k,C,n){W.target.style.left=C+"px";W.target.style.top=n+"px";W.dispatchEvent(new ST("drag",W,k.clientX,k.clientY,k,C,n))},Ka2=function(W,k){var C=W.limits;
W=isNaN(C.left)?null:C.left;C=isNaN(C.width)?0:C.width;return Math.min(W!=null?W+C:Infinity,Math.max(W!=null?W:-Infinity,k))},huA=function(W,k){var C=W.limits;
W=isNaN(C.top)?null:C.top;C=isNaN(C.height)?0:C.height;return Math.min(W!=null?W+C:Infinity,Math.max(W!=null?W:-Infinity,k))};
_.IR.prototype.isDragging=function(){return this.dragging_};
var ST=function(W,k,C,n,N,B,A){_.BS.call(this,W);this.clientX=C;this.clientY=n;this.browserEvent=N;this.left=B!==void 0?B:k.deltaX;this.top=A!==void 0?A:k.deltaY};
_.Pq(ST,_.BS);var MR=function(W){this.JSC$8027_map_=new Map;var k=arguments.length;if(k>1){if(k%2)throw Error("oa");for(var C=0;C<k;C+=2)this.set(arguments[C],arguments[C+1])}else W&&this.addAll(W)};
_.Y=MR.prototype;_.Y.getCount=function(){return this.JSC$8027_map_.size};
_.Y.getValues=function(){return Array.from(this.JSC$8027_map_.values())};
_.Y.getKeys=function(){return Array.from(this.JSC$8027_map_.keys())};
_.Y.containsKey=function(W){return this.JSC$8027_map_.has(W)};
_.Y.containsValue=function(W){return this.getValues().some(function(k){return k==W})};
_.Y.equals=function(W,k){var C=this;k=k===void 0?function(n,N){return n===N}:k;
return this===W?!0:this.JSC$8027_map_.size!=W.getCount()?!1:this.getKeys().every(function(n){return k(C.JSC$8027_map_.get(n),W.get(n))})};
_.Y.isEmpty=function(){return this.JSC$8027_map_.size==0};
_.Y.clear=function(){this.JSC$8027_map_.clear()};
_.Y.remove=function(W){return this.JSC$8027_map_.delete(W)};
_.Y.get=function(W,k){return this.JSC$8027_map_.has(W)?this.JSC$8027_map_.get(W):k};
_.Y.set=function(W,k){this.JSC$8027_map_.set(W,k);return this};
_.Y.addAll=function(W){if(W instanceof MR){W=_.b(W.JSC$8027_map_);for(var k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;this.JSC$8027_map_.set(k,C)}}else if(W)for(W=_.b(Object.entries(W)),k=W.next();!k.done;k=W.next())C=_.b(k.value),k=C.next().value,C=C.next().value,this.JSC$8027_map_.set(k,C)};
_.Y.forEach=function(W,k){var C=this;k=k===void 0?this:k;this.JSC$8027_map_.forEach(function(n,N){return W.call(k,n,N,C)})};
_.Y.clone=function(){return new MR(this)};(function(){for(var W=["ms","moz","webkit","o"],k,C=0;k=W[C]&&!_.NX.requestAnimationFrame;++C)_.NX.requestAnimationFrame=_.NX[k+"RequestAnimationFrame"],_.NX.cancelAnimationFrame=_.NX[k+"CancelAnimationFrame"]||_.NX[k+"CancelRequestAnimationFrame"];if(!_.NX.requestAnimationFrame){var n=0;_.NX.requestAnimationFrame=function(N){var B=(new Date).getTime(),A=Math.max(0,16-(B-n));n=B+A;return _.NX.setTimeout(function(){N(B+A)},A)};
_.NX.cancelAnimationFrame||(_.NX.cancelAnimationFrame=function(N){clearTimeout(N)})}})();
var CTA=[[],[]],nI8=0,NIY=!1,YKY=0,bMx=function(W,k){var C=YKY++,n={measureTask:{id:C,fn:W.measure,context:k},mutateTask:{id:C,fn:W.mutate,context:k},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(n.args||(n.args=[]),n.args.length=0,n.args.push.apply(n.args,arguments),n.args.push(n.state)):n.args&&n.args.length!=0?(n.args[0]=n.state,n.args.length=1):n.args=[n.state];n.isScheduled||(n.isScheduled=!0,CTA[nI8].push(n));NIY||(NIY=!0,window.requestAnimationFrame(BIY))}},BIY=
function(){NIY=!1;
var W=CTA[nI8],k=W.length;nI8=(nI8+1)%2;for(var C,n=0;n<k;++n){C=W[n];var N=C.measureTask;C.isScheduled=!1;N.fn&&N.fn.apply(N.context,C.args)}for(n=0;n<k;++n)C=W[n],N=C.mutateTask,C.isScheduled=!1,N.fn&&N.fn.apply(N.context,C.args),C.state={};W.length=0};var ABz=_.iH(["about:blank"]),Fw8=_.iH(["javascript:undefined"]),wx8=_.k0(ABz);_.Ez(wx8);var xP2=_.k0(Fw8);_.Ez(xP2);var QU=function(W){_.xT.call(this);this.JSC$8033_element_=W;this.listenKeyIn_=_.b6(this.JSC$8033_element_,"focus",this,!0);this.listenKeyOut_=_.b6(this.JSC$8033_element_,"blur",this,!0)};
_.Pq(QU,_.xT);QU.prototype.handleEvent=function(W){var k=new _.bs(W.event_);k.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(k)};
QU.prototype.disposeInternal=function(){QU.superClass_.disposeInternal.call(this);NN(this.listenKeyIn_);NN(this.listenKeyOut_);delete this.JSC$8033_element_};var lxY=function(W,k){this.JSC$8036_element_=W;this.JSC$8036_dom_=k};var pF=function(W,k){VU.call(this,k);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=bMx({mutate:this.resizeBackground_},this);bMx({mutate:this.updateModalAndBackground_},this)};
_.Pq(pF,VU);_.Y=pF.prototype;_.Y.focusHandler_=null;_.Y.visible_=!1;_.Y.bgEl_=null;_.Y.bgIframeEl_=null;_.Y.tabCatcherElement_=null;_.Y.backwardTabWrapInProgress_=!1;_.Y.getCssClass=function(){return"goog-modalpopup"};
_.Y.getBackgroundElement=function(){return this.bgEl_};
_.Y.JSC$8017_createDom=function(){pF.superClass_.JSC$8017_createDom.call(this);var W=this.getElement(),k=_.Ks(this.getCssClass()).split(" ");sY(W,k);W.tabIndex=0;_.Z0(W,!1);t6I(this);EIA(this)};
var t6I=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var k=W.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.i5(k,wx8);W.bgIframeEl_=k;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.Z0(W.bgIframeEl_,!1);qzs(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$8015_dom_.JSC$7243_createDom("DIV",W.getCssClass()+"-bg"),_.Z0(W.bgEl_,!1))},EIA=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$8015_dom_.createElement("SPAN"),_.Z0(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.Y=pF.prototype;_.Y.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.Y.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.Y.decorateInternal=function(W){pF.superClass_.decorateInternal.call(this,W);W=_.Ks(this.getCssClass()).split(" ");sY(this.getElement(),W);t6I(this);EIA(this);this.getElement().tabIndex=0;_.Z0(this.getElement(),!1)};
_.Y.enterDocument=function(){this.bgIframeEl_&&_.cT(this.bgIframeEl_,this.getElement());_.cT(this.bgEl_,this.getElement());pF.superClass_.enterDocument.call(this);_.IH(this.tabCatcherElement_,this.getElement());this.focusHandler_=new QU(this.JSC$8015_dom_.JSC$7241_document_);JC(this).listen(this.focusHandler_,"focusin",this.onFocus);axY(this,!1)};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.LU(this.focusHandler_);pF.superClass_.exitDocument.call(this);_.xL(this.bgIframeEl_);_.xL(this.bgEl_);_.xL(this.tabCatcherElement_)};
_.Y.setVisible=function(W){if(W!=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_&&axY(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8015_dom_.JSC$7241_document_.activeElement}catch(N){}this.updateModalAndBackground_();JC(this).listen(this.JSC$8015_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8015_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);XxA(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ni(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){JC(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_)ni(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var k=this.JSC$8015_dom_,C=k.JSC$7241_document_.body,n=k.JSC$7241_document_.activeElement||C;if(!this.lastFocus_||this.lastFocus_==C){this.lastFocus_=null;break a}(n==C||k.contains(this.getElement(),n))&&this.lastFocus_.focus()}catch(N){}this.lastFocus_=
null}}};
var axY=function(W,k){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new lxY(W.JSC$8015_element_,W.JSC$8015_dom_));W=W.modalAriaVisibilityHelper_;if(k){W.hiddenElements_||(W.hiddenElements_=[]);k=W.JSC$8036_dom_.getChildren(W.JSC$8036_dom_.JSC$7241_document_.body);for(var C=0;C<k.length;C++){var n=k[C],N;if(N=n!=W.JSC$8036_element_)N=n.getAttribute("aria-hidden"),N=!(N==null||N==void 0?0:String(N));N&&(c1(n,"hidden",!0),W.hiddenElements_.push(n))}}else if(W.hiddenElements_){for(k=0;k<
W.hiddenElements_.length;k++)W.hiddenElements_[k].removeAttribute("aria-hidden");W.hiddenElements_=null}};
pF.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var XxA=function(W,k){W.bgIframeEl_&&_.Z0(W.bgIframeEl_,k);W.bgEl_&&_.Z0(W.bgEl_,k);_.Z0(W.getElement(),k);_.Z0(W.tabCatcherElement_,k)};
_.Y=pF.prototype;_.Y.onShow=function(){this.dispatchEvent("show")};
_.Y.onHide=function(){XxA(this,!1);this.dispatchEvent("hide")};
_.Y.isVisible=function(){return this.visible_};
_.Y.focus=function(){this.focusElement_()};
_.Y.resizeBackground_=function(){this.bgIframeEl_&&_.Z0(this.bgIframeEl_,!1);this.bgEl_&&_.Z0(this.bgEl_,!1);var W=this.JSC$8015_dom_.JSC$7241_document_;var k=_.tU(M3(this.JSC$8015_dom_.JSC$7241_document_)||window);var C=Math.max(k.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(k.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.Z0(this.bgIframeEl_,!0),_.RrS(this.bgIframeEl_,C,W));this.bgEl_&&(_.Z0(this.bgEl_,!0),_.RrS(this.bgEl_,
C,W))};
_.Y.reposition=function(){var W;if(_.ZLx(this.getElement())=="fixed")var k=W=0;else k=EX(this.JSC$8015_dom_),W=k.x,k=k.y;var C=iLb(this.getElement());var n=_.tU(M3(this.JSC$8015_dom_.JSC$7241_document_)||window);W=Math.max(W+n.width/2-C.width/2,0);k=Math.max(k+n.height/2-C.height/2,0);sy(this.getElement(),W,k);sy(this.tabCatcherElement_,W,k)};
_.Y.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&Xb(this.focusElement_,0,this)};
_.Y.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.Y.disposeInternal=function(){_.LU(this.popupShowTransition_);this.popupShowTransition_=null;_.LU(this.popupHideTransition_);this.popupHideTransition_=null;_.LU(this.bgShowTransition_);this.bgShowTransition_=null;_.LU(this.bgHideTransition_);this.bgHideTransition_=null;pF.superClass_.disposeInternal.call(this)};var S_=function(W,k,C){pF.call(this,k,C);this.JSC$8046_class_=W||"modal-dialog";this.buttons_=(new v1).addButton(fxs,!0).addButton(dPb,!1,!0)};
_.Pq(S_,pF);_.Y=S_.prototype;_.Y.escapeToCancel_=!0;_.Y.hasTitleCloseButton_=!0;_.Y.modal_=!0;_.Y.draggable_=!0;_.Y.backgroundElementOpacity_=.5;_.Y.title_="";_.Y.JSC$8048_dragger_=null;_.Y.JSC$8048_disposeOnHide_=!1;_.Y.titleEl_=null;_.Y.titleTextEl_=null;_.Y.titleTextId_=null;_.Y.titleCloseEl_=null;_.Y.contentEl_=null;_.Y.buttonEl_=null;_.Y.getCssClass=function(){return this.JSC$8046_class_};
_.Y.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.Q$(this.titleTextEl_,W)};
_.Y.getTitle=function(){return this.title_};
_.Y.getContent=function(){return""};
_.Y.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var mP2=function(W){W.getElement()||W.render();return W.getElement()};
S_.prototype.getBackgroundElement=function(){this.getElement()||this.render();return S_.superClass_.getBackgroundElement.call(this)};
var z6A=function(W,k){W.backgroundElementOpacity_=k;W.getElement()&&(k=W.getBackgroundElement())&&qzs(k,W.backgroundElementOpacity_)};
S_.prototype.setDraggable=function(W){this.draggable_=W;DPZ(this,W&&this.inDocument_)};
S_.prototype.JSC$8048_handleDrag=function(){};
var DPZ=function(W,k){var C=_.Ks(W.JSC$8046_class_+"-title-draggable").split(" ");W.getElement()&&(k?sY(W.titleEl_,C):PRz(W.titleEl_,C));k&&!W.JSC$8048_dragger_?(k=new _.IR(W.getElement(),W.titleEl_),W.JSC$8048_dragger_=k,sY(W.titleEl_,C),_.b6(W.JSC$8048_dragger_,"start",W.setDraggerLimits_,!1,W),_.b6(W.JSC$8048_dragger_,"drag",W.JSC$8048_handleDrag,!1,W)):!k&&W.JSC$8048_dragger_&&(W.JSC$8048_dragger_.dispose(),W.JSC$8048_dragger_=null)};
_.Y=S_.prototype;
_.Y.JSC$8017_createDom=function(){S_.superClass_.JSC$8017_createDom.call(this);var W=this.getElement(),k=this.JSC$8015_dom_;this.titleTextId_=this.getId();var C=this.getId()+".contentEl";this.titleEl_=k.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-title",this.titleTextEl_=k.JSC$7243_createDom("SPAN",{className:this.JSC$8046_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=k.JSC$7243_createDom("SPAN",this.JSC$8046_class_+"-title-close"));E3A(W,this.titleEl_,this.contentEl_=
k.JSC$7243_createDom("DIV",{className:this.JSC$8046_class_+"-content",id:C}),this.buttonEl_=k.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-buttons"));rEs(this.titleTextEl_,"heading");rEs(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;c1(this.titleCloseEl_,"label","Close");rEs(W,"dialog");c1(W,"labelledby",this.titleTextId_||"");_.Z0(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$8049_element_=this.buttonEl_,W.render());_.Z0(this.buttonEl_,!!this.buttons_);
z6A(this,this.backgroundElementOpacity_)};
_.Y.decorateInternal=function(W){S_.superClass_.decorateInternal.call(this,W);W=this.getElement();var k=this.JSC$8046_class_+"-content";this.contentEl_=d2(document,null,k,W)[0];this.contentEl_||(this.contentEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",k),W.appendChild(this.contentEl_));k=this.JSC$8046_class_+"-title";var C=this.JSC$8046_class_+"-title-text",n=this.JSC$8046_class_+"-title-close";(this.titleEl_=d2(document,null,k,W)[0])?(this.titleTextEl_=d2(document,null,C,this.titleEl_)[0],this.titleCloseEl_=
d2(document,null,n,this.titleEl_)[0]):(this.titleEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",k),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=QeS(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.zK("SPAN",{className:C,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;c1(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8015_dom_.JSC$7243_createDom("SPAN",
n),this.titleEl_.appendChild(this.titleCloseEl_));_.Z0(this.titleCloseEl_,this.hasTitleCloseButton_);k=this.JSC$8046_class_+"-buttons";(this.buttonEl_=d2(document,null,k,W)[0])?(this.buttons_=new v1(this.JSC$8015_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",k),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$8049_element_=this.buttonEl_,W.render()),_.Z0(this.buttonEl_,!!this.buttons_));z6A(this,this.backgroundElementOpacity_)};
_.Y.enterDocument=function(){S_.superClass_.enterDocument.call(this);JC(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);JC(this).listen(this.buttonEl_,"click",this.onButtonClick_);DPZ(this,this.draggable_);JC(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();rEs(W,"dialog");this.titleTextEl_.id!==""&&c1(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$8015_dom_;
var k=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(k)}this.isVisible()&&axY(this,!1)}};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);DPZ(this,!1);S_.superClass_.exitDocument.call(this)};
_.Y.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),S_.superClass_.setVisible.call(this,W))};
_.Y.onShow=function(){S_.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.Y.onHide=function(){S_.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8048_disposeOnHide_&&this.dispose()};
_.Y.setDraggerLimits_=function(){var W=this.JSC$8015_dom_.JSC$7241_document_,k=_.tU(M3(W)||window),C=Math.max(W.body.scrollWidth,k.width);W=Math.max(W.body.scrollHeight,k.height);var n=iLb(this.getElement());_.ZLx(this.getElement())=="fixed"?this.JSC$8048_dragger_.limits=new p0(0,0,Math.max(0,k.width-n.width),Math.max(0,k.height-n.height)):this.JSC$8048_dragger_.limits=new p0(0,0,C-n.width,W-n.height)};
_.Y.onTitleCloseClick_=function(){V6x(this)};
var V6x=function(W){if(W.hasTitleCloseButton_){var k=W.buttons_,C=k&&k.cancelButton_;C?(k=k.get(C),W.dispatchEvent(new eT(C,k))&&W.setVisible(!1)):W.setVisible(!1)}},JBA=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.Z0(W.titleCloseEl_,W.hasTitleCloseButton_)};
S_.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;S_.superClass_.disposeInternal.call(this)};
S_.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var k=this.buttons_.get(W);this.dispatchEvent(new eT(W,k))&&this.setVisible(!1)}};
S_.prototype.onKey_=function(W){var k=!1,C=!1,n=this.buttons_,N=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var B=n&&n.cancelButton_;N=N.tagName=="SELECT"&&!N.disabled;B&&!N?(C=!0,k=n.get(B),k=this.dispatchEvent(new eT(B,k))):N||(k=!0)}else{if(W.keyCode==9&&W.shiftKey&&N==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(a){}Xb(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(N.tagName=="BUTTON"&&!N.disabled)B=N.name;
else if(N==this.titleCloseEl_)V6x(this);else if(n){var A=n.defaultButton_,w;if(w=A)a:{w=lg("BUTTON",n.JSC$8049_element_);for(var x,E=0;x=w[E];E++)if(x.name==A||x.id==A){w=x;break a}w=null}N=(N.tagName=="TEXTAREA"||N.tagName=="SELECT"||N.tagName=="A")&&!N.disabled;!w||w.disabled||N||(B=A)}B&&n&&(C=!0,k=this.dispatchEvent(new eT(B,String(n.get(B)))))}else N!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||V6x(this);if(k||C)W.stopPropagation(),W.preventDefault();k&&this.setVisible(!1)};
var eT=function(W,k){this.type="dialogselect";this.key=W;this.caption=k};
_.Pq(eT,_.BS);var v1=function(W){MR.call(this);W||aO();this.cancelButton_=this.JSC$8049_element_=this.defaultButton_=null};
_.Pq(v1,MR);_.Y=v1.prototype;_.Y.clear=function(){MR.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.Y.set=function(W,k,C,n){MR.prototype.set.call(this,W,k);C&&(this.defaultButton_=W);n&&(this.cancelButton_=W);return this};
_.Y.addButton=function(W,k,C){return this.set(W.key,W.caption,k,C)};
_.Y.render=function(){if(this.JSC$8049_element_){_.jN(this.JSC$8049_element_,rMX);var W=aO(this.JSC$8049_element_);this.forEach(function(k,C){k=W.JSC$7243_createDom("BUTTON",{name:C},k);C==this.defaultButton_&&(k.className="goog-buttonset-default");this.JSC$8049_element_.appendChild(k)},this)}};
_.Y.decorate=function(W){if(W&&W.nodeType==1){this.JSC$8049_element_=W;W=lg("BUTTON",this.JSC$8049_element_);for(var k,C,n,N=0;k=W[N];N++)if(C=k.name||k.id,n=QeS(k)||k.value,C){var B=N==0;this.set(C,n,B,k.name=="cancel");B&&_.vj(k,"goog-buttonset-default")}}};
_.Y.getElement=function(){return this.JSC$8049_element_};
var fxs={key:"ok",caption:"OK"},dPb={key:"cancel",caption:"Cancel"},cBS={key:"yes",caption:"Yes"},Ix2={key:"no",caption:"No"},SKI={key:"save",caption:"Save"},M68={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new v1).addButton(fxs,!0,!0),(new v1).addButton(fxs,!0).addButton(dPb,!1,!0),(new v1).addButton(cBS,!0).addButton(Ix2,!1,!0),(new v1).addButton(cBS).addButton(Ix2,!0).addButton(dPb,!1,!0),(new v1).addButton(M68).addButton(SKI).addButton(dPb,!0,!0));_.Pq(RlK,S_);_.Pq(ogz,MD);var Q9z=_.iH(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),pxS=_.iH(["//apis.google.com/js/rpc.js"]),HH4=_.k0(Q9z),jXJ=_.k0(pxS),TdP=null;var QQ=function(W,k){_.xT.call(this);this.JSC$8058_element_=W;W=_.Gw(this.JSC$8058_element_)?this.JSC$8058_element_:this.JSC$8058_element_?this.JSC$8058_element_.body:null;this.isRtl_=!!W&&_.u7A(W);this.listenKey_=_.b6(this.JSC$8058_element_,_.nr?"DOMMouseScroll":"mousewheel",this,k)};
_.Pq(QQ,_.xT);QQ.prototype.handleEvent=function(W){var k=0,C=0,n=W.event_;n.type=="mousewheel"?(W=vIz(-n.wheelDelta),n.wheelDeltaX!==void 0?(k=vIz(-n.wheelDeltaX),C=vIz(-n.wheelDeltaY)):C=W):(W=n.detail,W>100?W=3:W<-100&&(W=-3),n.axis!==void 0&&n.axis===n.HORIZONTAL_AXIS?k=W:C=W);typeof this.maxDeltaX_==="number"&&(k=_.Sq(k,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(C=_.Sq(C,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(k=-k);k=new e6S(W,n,k,C);this.dispatchEvent(k)};
var vIz=function(W){return _.Nb&&(_.pIz||evI)&&W%40!=0?W:W/40};
QQ.prototype.disposeInternal=function(){QQ.superClass_.disposeInternal.call(this);NN(this.listenKey_);this.listenKey_=null};
var e6S=function(W,k,C,n){_.bs.call(this,k);this.type="mousewheel";this.detail=W;this.deltaX=C;this.deltaY=n};
_.Pq(e6S,_.bs);_.hf=function(W){var k="instance_";if(W.instance_&&W.hasOwnProperty(k))return W.instance_;k=new W;return W.instance_=k};var LKp;var s9I=_.iH(["https://about:blank"]),GJS=_.iH(['javascript:""']),yBY=_.iH(["about:blank"]);_.Pq(RL,RlK);_.Y=RL.prototype;_.Y.JSC$8066_url_="";_.Y.JSC$8066_iframe_=null;_.Y.iframeLoaded_=!1;_.Y.loadedFired_=!1;_.Y.callback_=function(){};
_.Y.enterDocument=function(){RL.superClass_.enterDocument.call(this);U7m(this.getBackgroundElement(),JC(this))};
_.Y.render=function(W){var k=this;RL.superClass_.render.call(this,W);this.useGapi_?yE2(this.iframeManager_,window).then(function(){return $Px(k)}).then(null,function(){k.callback_({action:"error"})}):ZMY(this)};
var $Px=function(W){var k=W.JSC$8015_dom_.JSC$7243_createDom("div",["picker-dialog-content","picker-frame"]);_.Z0(k,!1);W.getContentElement().appendChild(k);return $q8(W.iframeManager_,k,function(C){var n=aes(C["iframe-command"]);switch(n.getCommand()){case 1:C=W.callback_;n=_.q7(n,Uy,2);var N="";switch(n.getStatus()){case 2:N="cancel";break;case 1:N="picked";break;case 3:N="error"}var B=_.HD(n,fr,2,_.rP(nlX));n=B.length===0?{action:N}:X$2(B,N,_.q7(n,les,7));C.call(W,n);W.setVisible(!1);break;case 4:JBA(W);
W.callback_({action:"loaded"});break;case 7:case 8:C=W.callback_;a:{N=n.getCommand();B=_.q7(n,Uy,2);switch(N){case 7:N="uploadScheduled";break;case 8:N="uploadStateChange";break;default:n={};break a}n=_.HD(B,fr,2,_.rP(nlX));if(n.length===0)n={action:N};else{var A=_.q7(B,les,7);B=A&&_.Vo(A,1);A=YLY(A);n=AES(n,N,B,A)}}C.call(W,n)}},W.JSC$8066_url_,W.targetId_,W.rpcToken_).then(function(C){W.JSC$8066_iframe_=C.getIframeEl();
R6b(W);_.Z0(W.JSC$8066_iframe_.parentElement,!0);_.vj(W.getElement(),"picker-dialog");oIb(W);return C})},ZMY=function(W){W.JSC$8066_iframe_=W.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.i5(W.JSC$8066_iframe_,iMb(W));_.vj(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$8066_iframe_);JC(W).listen(W.JSC$8066_iframe_,"load",function(){return void R6b(W)});
W.JSC$8066_iframe_.src=W.JSC$8066_url_;oIb(W)},qKA=function(W){TIs(W,(0,_.fN)(function(k){k.setAuthToken(this.targetId_,this.rpcToken_)},W))},oIb=function(W){var k=_.yQ(_.Gb(W.JSC$8066_url_),"title");
k&&W.setTitle(k)},iMb=function(W){return _.tp4("Internet Explorer")>=7&&_.AK(W.JSC$8066_url_,"https")?_.k0(s9I):_.Cr?_.k0(GJS):_.k0(yBY)},R6b=function(W){qKA(W);
W.iframeLoaded_=!0;W.JSC$8066_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
RL.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var TIs=function(W,k){var C=W.JSC$8064_gadgetsDomHelper_;qhm(function(){k(C.getWindow().gadgets.rpc)},C)};
RL.prototype.setUrl=function(W){W=_.$L(new _.oA(W),"rpcService",this.targetId_);_.$L(W,"rpctoken",this.rpcToken_);_.jZ(W,"rpctoken="+this.rpcToken_);_.qe(W,"https");this.JSC$8066_url_=W.toString();this.JSC$8066_iframe_&&(this.JSC$8066_iframe_.src=this.JSC$8066_url_)};
var uPx=function(W,k){W.callback_=k;TIs(W,(0,_.fN)(function(C){C.register(this.targetId_,(0,_.fN)(this.handlePickerAction_,this))},W))};
RL.prototype.handlePickerAction_=function(W){var k=W.action;k=="loaded"&&(this.loadedFired_=!0,UP8(this,new ZH4(this.isVisible())),OMY(this),JBA(this),JC(this).unlisten(this.JSC$8015_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8066_iframe_.tabIndex=0);k!="picked"&&k!="cancel"||this.setVisible(!1);this.callback_(W)};
var OMY=function(W){W.JSC$8066_appId_&&UP8(W,new $7X(W.JSC$8066_appId_,window.location.protocol+"//"+window.location.host))};
RL.prototype.setRelayUrl=function(W){TIs(this,(0,_.fN)(function(k){k.setRelayUrl(this.targetId_,W)},this))};
var UP8=function(W,k){W.useGapi_&&TKA(k,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
TIs(W,(0,_.fN)(function(C){C.call(this.targetId_,"picker",null,k)},W))};
RL.prototype.resizePicker_=function(){var W=M3(this.JSC$8015_dom_.JSC$7241_document_)||window;if(_.yQ(_.Gb(this.JSC$8066_url_),"ignoreLimits")=="true")W=new _.lB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.yQ(_.Gb(this.JSC$8066_url_),"shadeDialog")=="true"){var k=mP2(this);k=Uas(k);var C=_.tU(W);W=C.width-80;C=C.height-40;k&&(W-=k.left?k.left:0,W-=k.right?k.right:0,C-=k.top?k.top:0,C-=k.bottom?k.bottom:0);W=new _.lB(W>0?W:0,C>0?C:0)}else(k=this.preferredDialogWidth_)?(k=Math.max(320,
Math.min(1051,k)),(C=this.preferredDialogHeight_)||(C=_.tU(W).height*.85),C=Math.max(480,Math.min(650,C))):(k=_.tU(W),C=k.width*.618,C=C<k.height?Math.round(Math.max(480,Math.min(650,C*.85))):Math.round(Math.max(480,Math.min(650,k.height*.85))),k=Math.round(C/.618)),W=_.tU(W),k=Math.min(k,Math.max(W.width,320)),C=Math.min(C,Math.max(W.height,480)),W=new _.lB(k,C);_.RrS(this.getContentElement(),W);this.reposition()};
RL.prototype.reposition=function(){if(_.yQ(_.Gb(this.JSC$8066_url_),"shadeDialog")=="true"){var W=iLb(this.getElement()),k=_.tU(this.JSC$8015_dom_.getWindow());W=Math.floor(k.width/2-W.width/2);k=mP2(this);if(k=Uas(k)){var C=k.left?k.left:0;C+=k.right?k.right:0;W=Math.floor(W-C/2)}W=W>0?W:0;k=EX(this.JSC$8015_dom_).y;sy(this.getElement(),W,k)}else RL.superClass_.reposition.call(this)};
RL.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var k=this.JSC$8015_dom_.getWindow();W?(this.resizePicker_(),JC(this).listen(k,"resize",this.resizePicker_),this.iframeLoaded_||JC(this).listen(k,"keydown",this.handleKeydown_)):(JC(this).unlisten(k,"resize",this.resizePicker_),this.iframeLoaded_||JC(this).unlisten(k,"keydown",this.handleKeydown_))}RL.superClass_.setVisible.call(this,W);UP8(this,new ZH4(W))};
RL.prototype.focus=function(){RL.superClass_.focus.call(this);if(this.JSC$8066_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8066_iframe_.focus()}catch(W){}};var bK=function(W,k){k=k===void 0?RL:k;MD.call(this,W);this.pickerConstructor=k;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.D(bK,ogz);bK.prototype.JSC$8071_disposeOnHide_=!1;
bK.prototype.build=function(){this.JSC$7972_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7972_appId_);this.getRelayUrl()||this.setRelayUrl(_.OY(_.jZ(_.Lx(_.Gb(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var W=new this.pickerConstructor(Lw8(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$8048_disposeOnHide_=this.JSC$8071_disposeOnHide_;
W.JSC$8066_appId_=this.JSC$7972_appId_;W.loadedFired_&&OMY(W);uPx(W,this.callback_);return W};
var j9I=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
bK.prototype.getHeight=function(){return this.dialogHeight_};
bK.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
bK.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
bK.prototype.getWidth=function(){return this.dialogWidth_};
var HMA=function(W){W.JSC$8071_disposeOnHide_=void 0;return W};
bK.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var rBx=function(W,k){W.urlParamMap_.set("selectButtonLabel",k);return W};
bK.prototype.setSize=function(W,k){this.dialogWidth_=W;this.dialogHeight_=k;return this};
bK.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var Lw8=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",kwA(W.nav_));var k=new _.oA(W.getBaseUrl());W.urlParamMap_.forEach(function(C,n){_.$L(k,n,C)});
return k};var KwA=function(W,k){W.name!==void 0?(this.name=W.name,this.code=gI2[W.name]):(this.code=W=W.code,this.name=PTb(W));_.Ww.call(this,p8A("%s %s",this.name,k))};
_.Pq(KwA,_.Ww);var PTb=function(W){var k=_.JU.findKey(gI2,function(C){return W==C});
if(k===void 0)throw Error("lb`"+W);return k},s3={},gI2=(s3.AbortError=3,s3.EncodingError=5,s3.InvalidModificationError=9,s3.InvalidStateError=7,s3.NotFoundError=1,s3.NotReadableError=4,s3.NoModificationAllowedError=6,s3.PathExistsError=12,s3.QuotaExceededError=10,s3.SecurityError=2,s3.SyntaxError=8,s3.TypeMismatchError=11,s3);var h6b=function(W,k){_.BS.call(this,W.type,k);this.event_=W};
_.Pq(h6b,_.BS);var W5Z=function(W,k,C){C===void 0&&(C=W.size);return W.slice?W.slice(k,C):null};var PpX=new WeakMap,ggX=function(W,k){W=[W];for(var C=k.length-1;C>=0;--C)W.push(typeof k[C],k[C]);return W.join("\v")};_.hlK(function(){if(!_.NX.Blob)return!1;var W=new Uint8Array(100);try{var k=new Blob([W])}catch(C){return!1}return k.size!=100?!1:!0});
var kX8=_.hlK(function(){if(!_.NX.Blob)return!1;var W=new Uint8Array(100);try{var k=new Blob([W])}catch(C){return!1}return W5Z(k,0,1)===null?!1:!0});_.NX.U3bHHf!=null||(_.NX.U3bHHf=0);_.NX.U3bHHf++;var kw2={};var qD=void 0;var n1w=Symbol("ub");var E1P=Ug("WizInjectionContext_Dispatcher");var Fac=Ug("WizInjectionContext_RootElement");var xqK=Ug("WizInjectionContext_AppContext"),w$4=Ug("WizInjectionContext_ModelRootElement"),l3z=Ug("WizInjectionContext_RendererData"),tkX=Ug("WizInjectionContext_InjectingConstructor"),a32={};var mqz=!1;var CDx=Symbol("xb"),vI4=Symbol("yb"),s9J=Symbol("zb"),iMw=v8(function(W){return p$p(W)&&CDx in W});var JE4={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:VdI,enableLazyTsx:Jr2,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var j_=Object.assign({},{attributes:{},handleError:function(W){throw W;}},JE4);var v1m=Symbol("Ab"),Gc={},Mkc=(Gc[v1m]=!0,Gc.debugName="[component]",Gc.getComponentStack=function(){for(var W=[],k=this;k;)euz(k)&&W.push(k.debugName),k=k.parent;return W},Gc.registerSignal=function(){},Gc.registerEffect=function(){},Gc);var Hf=null,gu=!1,kJX=1,hd=Symbol("Bb"),Yw={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 yU=Symbol("Cb"),$X=Symbol("Db"),KN=Symbol("Eb"),Fwp=Object.assign({},Yw,{value:yU,dirty:!0,error:null,equal:sMz,kind:"computed",producerMustRecompute:function(W){return W.value===yU||W.value===$X},
producerRecomputeValue:function(W){if(W.value===$X)throw Error("da");var k=W.value;W.value=$X;var C=BIP(W),n=!1;try{var N=W.computation();ru(null);n=k!==yU&&k!==KN&&N!==KN&&W.equal(k,N)}catch(B){N=KN,W.error=B}finally{bM3(W,C)}n?W.value=k:(W.value=N,W.version++)}});var EI2=function(){throw Error();};var XxI=null,xPz=Object.assign({},Yw,{equal:sMz,value:void 0,kind:"signal"});Object.assign({},Yw,{value:yU,dirty:!0,error:null,equal:sMz,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===yU||W.value===$X},
producerRecomputeValue:function(W){if(W.value===$X)throw Error("da");var k=W.value;W.value=$X;var C=BIP(W);try{var n=W.source();var N=W.computation(n,k===yU||k===KN?void 0:{source:W.sourceValue,value:k});W.sourceValue=n}catch(B){N=KN,W.error=B}finally{bM3(W,C)}k!==yU&&N!==KN&&W.equal(k,N)?W.value=k:(W.value=N,W.version++)}});Object.assign({},Yw,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var dPw=Symbol("Fb"),Cy=Symbol("Gb");var ny=Array.isArray;var M6p;var n6s={},pxX=SKJ(Object.assign({},{consumerAllowSignalWrites:!0},n6s)),hY=SKJ(Object.assign({},{consumerAllowSignalWrites:!0},n6s));var uP3=[];var qK2=0,ZT=function(){this.queue=new Set};
ZT.prototype.remove=function(W){this.queue.delete(W)};
var N0s=function(){ZT.apply(this,arguments)};
_.D(N0s,ZT);N0s.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
N0s.prototype.flush=function(){if(this.queue.size){var W=this.queue;this.queue=new Set;TIm(W)}};
var e6X=new N0s,YdA=function(){ZT.apply(this,arguments)};
_.D(YdA,ZT);YdA.prototype.schedule=function(W){var k=this;return _.F(function(C){if(C.nextAddress==1)return W.hasRun?C.jumpTo(2):_.l(C,Promise.resolve(),3);if(C.nextAddress!=2)return W.run(),C.return();k.queue.add(W);_.ab(C)})};
YdA.prototype.flush=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1){if(!W.queue.size)return C.return();k=W.queue;W.queue=new Set;return _.l(C,Promise.resolve(),2)}TIm(k);_.ab(C)})};
var GJX=new YdA,oIw=[e6X,GJX],ZMP=[];XxI=function(){yBP();for(var W=_.b(ZMP),k=W.next();!k.done;k=W.next())k=k.value,k()};var xw=Symbol("Mb");var AY=null,j9J,HMI=null,rB3;var RR={},B0Y=Object.assign({},Yw,(RR[CDx]=!0,RR.effectType=vI4,RR.isResettableContext=!0,RR.producerNode=void 0,RR.hasRun=!1,RR.effectFn=null,RR.consumerIsAlwaysLive=!0,RR.consumerAllowSignalWrites=!0,RR.consumerMarkedDirty=$P3,RR.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(gu)throw Error("Nb");this.dirty=!1;if(!this.hasRun||CT2(this)){this.hasRun=!0;AEX(this);var W=ug(this),k=BIP(this);I33("effectRun",this.debugName);try{tY(this.effectFn,{stack:this.componentStack})}finally{SLP("effectRun",
this.debugName),bM3(this,k),ug(W)}}}},RR.componentStack=void 0,RR.debugName="[effect]",RR[Symbol.dispose]=function(){Gwp(this);
if(Pf(this))for(var W=0;W<this.producerNode.length;W++)yEz(this.producerNode[W],this.producerIndexOfThis[W]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);W=_.b(oIw);for(var k=W.next();!k.done;k=W.next())k.value.remove(this);bvP(this)},RR));var PTw=Object.assign({},B0Y,{effectType:vI4});var Kw2=Object.assign({},B0Y,{effectType:s9J});var h6w=Symbol("Ob");var yDI=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 Tm=Symbol("Pb");var PH=function(){},nS=function(W){this.props=W;
this.__unmounted=!1};
nS.prototype.didPatch=function(){};
nS.prototype.didMount=function(){};
nS.prototype.didUnmount=function(){};
nS.prototype.didUpdate=function(){};var CD3={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},kXw={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}]}},IuJ={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},Yd2=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],N0m={"*":{async:1,dir:0,loading:2,target:3}};var bts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oR={},btm=(oR[1]=null,oR[2]=function(W,k){return k instanceof yG?Zl(k):Ma.toString()},oR[3]=function(W,k){return Dl(k)?_.VG(k):bts.test(String(k))?String(k):Ma.toString()},oR[4]=function(W,k){return k instanceof l5?_.Ez(k):Ma.toString()},oR[5]=function(W,k){return String(k)},oR[7]=null,oR[8]=null,oR[10]=null,oR);var ryJ=Symbol("Sb");var T5P=function(W){var k=ADI,C=W,n="",N="",B=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(C)).toString();else{for(var A=0;A<F5S.length;A++){var w=F5S[A];B=k[w];if(W>=B||B<=1&&W>.1*B){n=w;break}}n?(n+="B",N=" "):B=1;W=Math.round(C/B*10)/10+N+n}return W},F5S="Y Z E P T G M K  m u n".split(" "),ADI={"":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};_.wmx=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 jw={};RegExp.prototype.hasOwnProperty("sticky");var RIc=function(W){W=String(W);for(var k=function(n,N,B){for(var A=Math.min(N.length-B,n.length),w=0;w<A;w++){var x=N[B+w];if(n[w]!==("A"<=x&&x<="Z"?x.toLowerCase():x))return!1}return!0},C=0;(C=W.indexOf("<",C))!=-1;){if(k("\x3c/script",W,C)||k("\x3c!--",W,C))return"zSoyz";
C+=1}return W};var V7={default:"__default"};var E6K=Object.prototype.hasOwnProperty;wm3.prototype=Object.create(null);var iT=fRz();var $w=null;var Qqc=function(W){this.created=[];this.deleted=[];this.node=W};var pmm=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,k=W;W;)k=W,W=W.parentNode;return k};var mZ4=function(W,k){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=k;this.text=void 0};var Mf=null,Q7=null,cH=null,vH=null,cD2=[],JDp=DZJ,Gm=[],y7=[],HXz=function(W){return v6m(function(k,C,n){cH=Q7=k;Q7=null;C(n);V9K(null);Q7=cH;cH=cH.parentNode;return k},W)}(),jSw=function(W){return v6m(function(k,C,n){var N={nextSibling:k};
Q7=N;C(n);cH&&V9K(k.nextSibling);return N===Q7?null:Q7},W)}();var ZD=[],sqp=0;var RW=new wm3;var wy=new wm3;var xZY=fRz(),Ztw=xZY[V7.default],o62=xZY.style,$Zc=["focusin","focusout"];var Vhp=function(){},xLI=function(){},MhJ=function(){},cAp=function(){};var iR=Symbol("Zb");var L5m,OtX=UZJ;var rw=Symbol("$b");var Ykm={};var SkI=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(" ")),
IHK=new Set(["a","font","script","style","title"]);var Wv={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var kn=null,CS=function(W,k){nS.call(this,W);var C=this;this.functionComponent=k;this.hooks=[];this.hookCounter=0;this.disposeEffects=dw(function(n){C.effectContext=n;_.fy(function(){aHp(C,C.el)})},j_.alwaysTrackContexts||!!qD)};
_.D(CS,nS);CS.prototype.render=function(W){var k=kn;kn=this;this.hookCounter=0;var C=ru(hY),n=ug(this.effectContext);try{return I33("render",this.componentName),this.functionComponent(W)}finally{SLP("render",this.componentName),ug(n),ru(C),kn=k}};
_.oq.Object.defineProperties(CS.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.functionComponent.debugName)!=null?W:this.functionComponent.name)!=null?k:"[component]"}}});var QAp=Symbol("nc"),zBI=function(W,k,C){this.kind=W;this.props=k;this.children=C};
_.D(zBI,PH);zBI.prototype.render=function(){return mLz(this.kind,this.props,this.children)};
zBI.prototype.getChildren=function(){return this.children};var veX=[];EI2=function(W){throw Error("sb`"+W.debugName);};
(function(){var W=$w;$w=function(k){W==null||W(k);eBI(k)}})();var lRI=void 0,t9s={},E6S=new WeakMap,sAX={getComponent:function(W){if(W.hasAttribute("ng-version"))return t9s;if(!W.__wizComponent)return null;W=W.__wizComponent;E6S.set(W.propsAndState,W);return W.propsAndState},
getDirectiveMetadata:function(W){if(W===t9s)return{framework:"wiz",name:"<Root>",props:{}};W=E6S.get(W);if(!W)throw Error("oc");return{framework:"wiz",name:W.name,props:Object.fromEntries(Object.keys(W.props).map(function(k){return[k,k]}))}},
"\u0275setProfiler":function(W){var k;(k=lRI)==null||k();lRI=R6w(function(){W(2)})},
isSignal:function(W){return typeof W==="function"&&W[hd]!==void 0}};var yAX={nonNullableCondIsNull:function(){return Error("sc")}};_.t.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.t.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.t.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var Taw=function(){this.map=new Map};
Taw.prototype.push=function(W,k){var C=this.map;C.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(k,C.get(W)));C.set(W,k)};
Taw.prototype.pop=function(W){var k=this.map,C=k.get(W),n;C!==void 0&&((n=this.multi)==null?0:n.has(C))?(k.set(W,this.multi.get(C)),this.multi.delete(C)):k.delete(W);return C};var jAm={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(W){return Error("uc`"+W)},
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(W,k){return Error("yc`"+W+"`"+k)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("zc`"+W)},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Ac`"+String(W))}};L5m=DL4;var WIc=Symbol("Bc");thc({beforeRender:function(W){var k=ug(W.effectContext);try{var C;((C=W.__syncEffects)==null?0:C.length)&&CWK(W.__syncEffects)}finally{ug(k)}},
didPatch:function(W){var k=ug(W.effectContext);try{var C;((C=W.__syncEffects)==null?0:C.length)&&CWK(W.__syncEffects)}finally{ug(k)}},
didUnmount:function(W){var k;((k=W.hooks)==null?0:k.length)&&W.hooks.forEach(kDX)}});var aRs,XmA,fR2;aRs=_.NX.window;_.mh=(aRs==null?void 0:(XmA=aRs.yt)==null?void 0:XmA.config_)||(aRs==null?void 0:(fR2=aRs.ytcfg)==null?void 0:fR2.data_)||{};_.$g("yt.config_",_.mh);var dZZ={},B8X=[];_.AM=function(W){var k=_.v6.apply(1,arguments);var C=Error.call(this,W);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.args=[].concat(_.J8(k));Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(_.AM,Error);var FFX=function(W,k,C){this.actionName=W;this.optionalAction=k===void 0?!1:k;this.args=C===void 0?null:C;this.returnValue=[]};_.r=function(W){this.name=W};_.MP=new _.r("signalAction");var frJ=/^[\w.]*$/,xlc={q:!0,search_query:!0},wNz=String(FIX);var ic;ic=Symbol("Cc");_.Tc=function(W){this.name=W};
_.Tc.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dlw=function(W){this.key=W},Dlp=function(W){this.deferredKey=W},zdp=function(){var W=this;
this.providers=new Map;this.JSC$8275_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
zdp.prototype.addProvider=function(W){this.providers.set(W.provide,W);var k=this.JSC$8275_deferred.get(W.provide);if(k)try{k.resolver(this.resolve(W.provide))}catch(C){k.rejector(C)}};
zdp.prototype.resolve=function(W){return W instanceof Dlp?mZz(this,W):W instanceof dlw?zIS(this,W.key,[],!0):zIS(this,W,[])};
var mZz=function(W,k){k=k.deferredKey;if(W.JSC$8275_deferred.has(k))return W.JSC$8275_deferred.get(k).promise;var C={};C.promise=new Promise(function(n,N){C.resolver=n;C.rejector=N});
W.JSC$8275_deferred.set(k,C);return C.promise},zIS=function(W,k,C,n){n=n===void 0?!1:n;
if(C.indexOf(k)>-1)throw Error("Dc`"+k);if(W.cachedValues.has(k))return W.cachedValues.get(k);if(!W.providers.has(k)){if(n)return;throw Error("Ec`"+k);}n=W.providers.get(k);C.push(k);if(n.useValue!==void 0)var N=n.useValue;else if(n.useFactory)N=n[ic]?DZI(W,n[ic],C):[],N=n.useFactory.apply(n,_.J8(N));else if(n.useClass){N=n.useClass;var B=N[ic]?DZI(W,N[ic],C):[];N=new (Function.prototype.bind.apply(N,[null].concat(_.J8(B))))}else throw Error("Fc`"+k);C.pop();n.skipCache||W.cachedValues.set(k,N);return N},
DZI=function(W,k,C){return k?k.map(function(n){return n instanceof dlw?zIS(W,n.key,C,!0):zIS(W,n,C)}):[]};var mlX;var QE=new _.Tc("ENDPOINT_HANDLER_TOKEN");_.pM=new _.r("urlEndpoint");var V9S=function(){this.data=[];this.cachedPackedInt52=-1};
V9S.prototype.set=function(W,k){k=k===void 0?!0:k;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==k&&(this.data[W]=k,this.cachedPackedInt52=-1)};
V9S.prototype.get=function(W){return!!this.data[W]};
var JD8=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(k,C,n){return k+(C?Math.pow(2,n):0)},0));
return W.cachedPackedInt52};var $lP=function(W){var k=cDA;W=W===void 0?_.QK("yt.ads.biscotti.lastId_")||"":W;var C=Object,n=C.assign,N={};N.dt=vwC;N.flash="0";a:{try{var B=k.JSC$8281_win_.top.location.href}catch(Sp){B=2;break a}B=B?B===k.doc_.location.href?0:1:2}N=(N.frm=B,N);try{N.u_tz=-(new Date).getTimezoneOffset();var A=A===void 0?px:A;try{var w=A.history.length}catch(Sp){w=0}N.u_his=w;var x;N.u_h=(x=px.screen)==null?void 0:x.height;var E;N.u_w=(E=px.screen)==null?void 0:E.width;var a;N.u_ah=(a=px.screen)==null?void 0:a.availHeight;
var X;N.u_aw=(X=px.screen)==null?void 0:X.availWidth;var d;N.u_cd=(d=px.screen)==null?void 0:d.colorDepth}catch(Sp){}w=k.JSC$8281_win_;try{var V=w.screenX;var c=w.screenY}catch(Sp){}try{var M=w.outerWidth;var p=w.outerHeight}catch(Sp){}try{var e=w.innerWidth;var u=w.innerHeight}catch(Sp){}try{var h=w.screenLeft;var L=w.screenTop}catch(Sp){}try{e=w.innerWidth,u=w.innerHeight}catch(Sp){}try{var Bw=w.screen.availWidth;var P=w.screen.availTop}catch(Sp){}V=[h,L,V,c,Bw,P,M,p,e,u];c=WJm(!1,k.JSC$8281_win_.top);
M={};var xz=xz===void 0?_.NX:xz;p=new V9S;"SVGElement"in xz&&"createElementNS"in xz.document&&p.set(0);e=rt8();e["allow-top-navigation-by-user-activation"]&&p.set(1);e["allow-popups-to-escape-sandbox"]&&p.set(2);xz.crypto&&xz.crypto.subtle&&p.set(3);"TextDecoder"in xz&&"TextEncoder"in xz&&p.set(4);xz=JD8(p);k=(M.bc=xz,M.bih=c.height,M.biw=c.width,M.brdim=V.join(),M.vis=L$z(k.doc_),M.wgl=!!px.WebGLRenderingContext,M);C=n.call(C,N,k);C.ca_type="image";W&&(C.bid=W);return C},cDA=new function(){var W=
window.document;
this.JSC$8281_win_=window;this.doc_=W};
_.$g("yt.ads_.signals_.getAdSignalsString",function(W){return lrz($lP(W))});_.gk();navigator.userAgent.indexOf(" (CrKey ");var Srm="XMLHttpRequest"in _.NX?function(){return new XMLHttpRequest}:null;var IRZ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Sdx=[].concat(_.J8(IRZ),["client_dev_set_cookie"]);var yQX={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"},pNI="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(_.J8(IRZ)),OBc=!1,edm=_.ZBP,qr2=GD4;var tHm=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var M9z={messageWeights:[],callbackWeights:[{callback:rQp,weight:500}]};var QqC=function(){this.callbackWeights=[];this.messageWeights=[]},pms,liw=function(){if(!pms){var W=pms=new QqC;
W.messageWeights.length=0;W.callbackWeights.length=0;Ow3(W,M9z)}return pms},Ow3=function(W,k){k.messageWeights&&W.messageWeights.push.apply(W.messageWeights,k.messageWeights);
k.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,k.callbackWeights)};_.Pq(_.kg,_.XK);_.kg.prototype.subscribe=function(W,k,C){var n=this.topics_[W];n||(n=this.topics_[W]=[]);var N=this.JSC$8305_key_;this.subscriptions_[N]=W;this.subscriptions_[N+1]=k;this.subscriptions_[N+2]=C;this.JSC$8305_key_=N+3;n.push(N);return N};
var v6s=function(W){var k=fiw,C=!1,n=k.subscribe("handleError",function(N){C||(C=!0,this.unsubscribeByKey(n),W.apply(void 0,arguments))},k)};
_.kg.prototype.unsubscribe=function(W,k,C){if(W=this.topics_[W]){var n=this.subscriptions_;if(W=W.find(function(N){return n[N+1]==k&&n[N+2]==C}))return this.unsubscribeByKey(W)}return!1};
_.kg.prototype.unsubscribeByKey=function(W){var k=this.subscriptions_[W];if(k){var C=this.topics_[k];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(C&&_.iw(C,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!k};
_.kg.prototype.publish=function(W,k){var C=this.topics_[W];if(C){var n=Array(arguments.length-1),N=arguments.length,B;for(B=1;B<N;B++)n[B-1]=arguments[B];if(this.async_)for(B=0;B<C.length;B++)N=C[B],eIA(this.subscriptions_[N+1],this.subscriptions_[N+2],n);else{this.publishDepth_++;try{for(B=0,N=C.length;B<N&&!this.isDisposed();B++){var A=C[B];this.subscriptions_[A+1].apply(this.subscriptions_[A+2],n)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;C=this.pendingKeys_.pop();)this.unsubscribeByKey(C)}}return B!=
0}return!1};
var eIA=function(W,k,C){_.tb(function(){W.apply(k,C)})};
_.kg.prototype.clear=function(W){if(W){var k=this.topics_[W];k&&(k.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.kg.prototype.getCount=function(W){if(W){var k=this.topics_[W];return k?k.length:0}W=0;for(k in this.topics_)W+=this.getCount(k);return W};
_.kg.prototype.disposeInternal=function(){_.kg.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var fiw=new _.kg;var Oh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Oh,_.US);Oh.prototype.getColdHashData=function(){return _.Vo(this,3)};
Oh.prototype.getHotHashData=function(){return _.Vo(this,5)};
Oh.prototype.setHotHashData=function(W){return _.fU(this,5,W)};var Fg4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Fg4,_.US);var ZnX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(ZnX,_.US);_.Y=ZnX.prototype;_.Y.getDeviceId=function(){return _.Vo(this,6)};
_.Y.getExperimentIds=function(W){var k=_.sS(this,9,_.P8,3,!0);Lmc(k,W);return k[W]};
_.Y.getPlayerType=function(){return _.Jp(this,36)};
_.Y.setHomeGroupInfo=function(W){return _.B6(this,81,W)};
_.Y.clearLocationPlayabilityToken=function(){return _.Uh(this,89)};var nM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(nM,_.US);nM.prototype.setKey=function(W){return _.fU(this,1,W)};
nM.prototype.getValue=function(){return IU(this,2,oaI)};
var oaI=[2,3,4,5,6];var sq8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(sq8,_.US);sq8.prototype.setTrackingParams=function(W){return _.Uh(this,1,_.JS(W,!1))};var RxP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(RxP,_.US);var l6J=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(l6J,_.US);l6J.prototype.getExperimentIds=function(W){var k=_.sS(this,5,_.E2p,3,!0);Lmc(k,W);return k[W]};var bT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(bT,_.US);bT.prototype.getToken=function(){return _.FK(this,2)};
bT.prototype.setToken=function(W){return _.fU(this,2,W)};var YI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(YI,_.US);YI.prototype.setSafetyMode=function(W){return _.up(this,5,W)};var CM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(CM,_.US);CM.prototype.setClient=function(W){return _.B6(this,1,W)};var xwz={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 wlc;_.cl=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.NX.addEventListener("beforeinstallprompt",function(k){k.preventDefault();W.deferredInstallPrompt=k});
_.NX.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
wlc=function(){if(!_.NX.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.NX.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.NX.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.NX.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.NX.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var a62=function(){this.syncHeaders=!0},Xl2=function(W){var k={},C=[];
"USER_SESSION_ID"in _.mh&&C.push({key:"u",value:_.DE("USER_SESSION_ID")});if(C=RUK(C))k.Authorization=C,C=W=W==null?void 0:W.sessionIndex,C===void 0&&(C=Number(_.DE("SESSION_INDEX",0)),C=isNaN(C)?0:C),_.m("voice_search_auth_header_removal")||(k["X-Goog-AuthUser"]=C.toString()),"INNERTUBE_HOST_OVERRIDE"in _.mh||(k["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.mh&&(k["X-Goog-PageId"]=_.DE("DELEGATED_SESSION_ID"));return k};var GX8={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var qR=_.QK("ytglobal.prefsUserPrefsPrefs_")||{},yDA;_.$g("ytglobal.prefsUserPrefsPrefs_",qR);_.uc=function(){this.cookieName=_.DE("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.DE("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.nH.get(this.cookieName,void 0);W&&this.parse(W)};
_.tQ=function(){yDA||(yDA=new _.uc);return yDA};
_.uc.prototype.get=function(W,k){$ZC(W);Zt8(W);W=qR[W]!==void 0?qR[W].toString():null;return W!=null?W:k?k:""};
_.uc.prototype.set=function(W,k){$ZC(W);Zt8(W);if(k==null)throw Error("Ic");qR[W]=k.toString()};
_.uc.prototype.getFlag=function(W){return!!((RIC("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.Er=function(W,k,C){W="f"+(Math.floor(k/31)+1);k=1<<k%31;var n=RIC(W)||0;n=C?n|k:n&~k;n===0?delete qR[W]:(C=n.toString(16),qR[W]=C.toString())};
_.uc.prototype.remove=function(W){$ZC(W);Zt8(W);delete qR[W]};
_.uc.prototype.save=function(){var W=!0;_.m("web_secure_pref_cookie_killswitch")&&(W=!1);_.N7(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.uc.prototype.clear=function(){_.JU.clear(qR)};
_.uc.prototype.dump=function(){var W=[],k;for(k in qR)qR.hasOwnProperty(k)&&W.push(k+"="+encodeURIComponent(String(qR[k])));return W.join("&")};
var Zt8=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Jc`"+W);},$ZC=function(W){if(!/^\w+$/.test(W))throw Error("Kc`"+W);
},RIC=function(W){W=qR[W]!==void 0?qR[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.uc.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var k=0;k<W.length;k++){var C=W[k].split("="),n=C[0];(C=C[1])&&(qR[n]=C.toString())}};var NnK={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"},tII={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},EZP={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},Bnz={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var RE;_.U3=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.wI=function(W,k,C){return W.addJob(k,0,C)};
_.U3.prototype.addLowPriorityJob=function(W,k){return this.addJob(W,1,k)};
_.bX=function(W,k,C){return W.addJob(k,2,C)};
_.ty=function(W,k,C){return W.addJob(k,3,C)};
_.oE=function(W,k,C){return W.addJob(k,4,C)};
RE=function(W){var k=_.QK("yt.scheduler.instance.addImmediateJob");k?k(W):W()};
_.U3.prototype.debounce=function(W,k,C){var n=this,N=0,B=function(){N&&n.cancelJob(N);N=n.addJob(W,k,C);n.cancelDebouncedJobMap.set(B,N)};
return B};
_.U3.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var O3=function(){_.U3.apply(this,arguments)};
_.D(O3,_.U3);_.D7=function(){O3.instance||(O3.instance=new O3);return O3.instance};
O3.prototype.addJob=function(W,k,C){C!==void 0&&Number.isNaN(Number(C))&&(C=void 0);var n=_.QK("yt.scheduler.instance.addJob");return n?n(W,k,C):C===void 0?(W(),NaN):_.rA(W,C||0)};
O3.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var k=_.QK("yt.scheduler.instance.cancelJob");k?k(W):_.Pv(W)}};
O3.prototype.start=function(){var W=_.QK("yt.scheduler.instance.start");W&&W()};
O3.prototype.pause=function(){var W=_.QK("yt.scheduler.instance.pause");W&&W()};
_.aM=_.D7();_.FV.prototype.set=function(W,k){k===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.dm)(k))};
_.FV.prototype.get=function(W){try{var k=this.mechanism.get(W)}catch(C){return}if(k!==null)try{return JSON.parse(k)}catch(C){throw"Storage: Invalid value was encountered";}};
_.FV.prototype.remove=function(W){this.mechanism.remove(W)};var LF=function(W){this.mechanism=W};
_.Pq(LF,_.FV);var o6A=function(W){this.data=W},itb=function(W){return W===void 0||W instanceof o6A?W:new o6A(W)};
LF.prototype.set=function(W,k){LF.superClass_.set.call(this,W,itb(k))};
LF.prototype.getWrapper=function(W){W=LF.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
LF.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.Pq(wd,LF);_.T08=function(W){var k=W.creation;W=W.expiration;return!!W&&W<_.gk()||!!k&&k>_.gk()};
wd.prototype.set=function(W,k,C){if(k=itb(k)){if(C){if(C<_.gk()){wd.prototype.remove.call(this,W);return}k.expiration=C}k.creation=_.gk()}wd.superClass_.set.call(this,W,k)};
wd.prototype.getWrapper=function(W,k){var C=wd.superClass_.getWrapper.call(this,W);if(C)if(!k&&_.T08(C))wd.prototype.remove.call(this,W);else return C};var jT=function(){};
jT.prototype.next=function(){return H1};
var H1={done:!0,value:void 0},r1=function(W){return{value:W,done:!1}};
jT.prototype.__iterator__=function(){return this};
_.qdI=function(W){if(W instanceof jT)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.qX(W)){var k=0,C=new jT;C.next=function(){for(;;){if(k>=W.length)return H1;if(k in W)return r1(W[k++]);k++}};
return C}throw Error("Lc");};var uwC=function(W){if(W instanceof g1||W instanceof P1||W instanceof KF)return W;if(typeof W.next=="function")return new g1(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new g1(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new g1(function(){return W.__iterator__()});
throw Error("Mc");},g1=function(W){this.func_=W};
g1.prototype.__iterator__=function(){return new P1(this.func_())};
g1.prototype[Symbol.iterator]=function(){return new KF(this.func_())};
g1.prototype.toEs6=function(){return new KF(this.func_())};
var P1=function(W){this.JSC$8389_iter_=W};
_.D(P1,jT);P1.prototype.next=function(){return this.JSC$8389_iter_.next()};
P1.prototype[Symbol.iterator]=function(){return new KF(this.JSC$8389_iter_)};
P1.prototype.toEs6=function(){return new KF(this.JSC$8389_iter_)};
var KF=function(W){g1.call(this,function(){return W});
this.JSC$8392_iter_=W};
_.D(KF,g1);KF.prototype.next=function(){return this.JSC$8392_iter_.next()};var UZI=function(){};var hC=function(){};
_.Pq(hC,UZI);hC.prototype.getCount=function(){for(var W=0,k=_.b(this),C=k.next();!C.done;C=k.next())W++;return W};
hC.prototype[Symbol.iterator]=function(){return uwC(this.__iterator__(!0)).toEs6()};
hC.prototype.clear=function(){var W=Array.from(this);W=_.b(W);for(var k=W.next();!k.done;k=W.next())this.remove(k.value)};_.Pq(xg,hC);_.Y=xg.prototype;_.Y.isAvailable=function(){if(!crm||this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{performance.now();W.setItem("__sak","1");W.removeItem("__sak");performance.now();var k=!0}catch(C){k=C instanceof DOMException&&(C.name==="QuotaExceededError"||C.code===22||C.code===1014||C.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else k=!1;this.cachedIsStorageAvailable_=k}return this.cachedIsStorageAvailable_};
_.Y.set=function(W,k){W0(this);try{this.storage_.setItem(W,k)}catch(C){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.Y.get=function(W){W0(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.Y.remove=function(W){W0(this);this.storage_.removeItem(W)};
_.Y.getCount=function(){W0(this);return this.storage_.length};
_.Y.__iterator__=function(W){W0(this);var k=0,C=this.storage_,n=new jT;n.next=function(){if(k>=C.length)return H1;var N=C.key(k++);if(W)return r1(N);N=C.getItem(N);if(typeof N!=="string")throw"Storage mechanism: Invalid value was encountered";return r1(N)};
return n};
_.Y.clear=function(){W0(this);this.storage_.clear()};
_.Y.key=function(W){W0(this);return this.storage_.key(W)};
var W0=function(W){if(W.storage_==null)throw Error("Nc");var k;(crm?W.isAvailable():(k=W.cachedIsStorageAvailable_)!=null?k:W.isAvailable())||Yz(Error("Nc"))};_.Pq(AeI,xg);_.Pq(F7X,xg);_.Pq(lp,hC);lp.prototype.set=function(W,k){this.mechanism_.set(this.JSC$8407_prefix_+W,k)};
lp.prototype.get=function(W){return this.mechanism_.get(this.JSC$8407_prefix_+W)};
lp.prototype.remove=function(W){this.mechanism_.remove(this.JSC$8407_prefix_+W)};
lp.prototype.__iterator__=function(W){var k=this.mechanism_[Symbol.iterator](),C=this,n=new jT;n.next=function(){var N=k.next();if(N.done)return N;for(N=N.value;N.slice(0,C.JSC$8407_prefix_.length)!=C.JSC$8407_prefix_;){N=k.next();if(N.done)return N;N=N.value}return r1(W?N.slice(C.JSC$8407_prefix_.length):C.mechanism_.get(N))};
return n};_.D3=function(W){this.expiringStorage_=(W=_.w3X(W))?new wd(W):null;this.JSC$8411_domain_=document.domain||window.location.hostname};
_.D3.prototype.set=function(W,k,C,n){C=C||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,k,Date.now()+C*1E3);return}catch(B){}var N="";if(n)try{N=escape((0,_.dm)(k))}catch(B){return}else N=escape(k);_.N7(W,N,C,this.JSC$8411_domain_)};
_.D3.prototype.get=function(W,k){var C=void 0,n=!this.expiringStorage_;if(!n)try{C=this.expiringStorage_.get(W)}catch(N){n=!0}if(n&&(C=_.nH.get(W,void 0))&&(C=unescape(C),k))try{C=JSON.parse(C)}catch(N){this.remove(W),C=void 0}return C};
_.D3.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.ko3(W,"/",this.JSC$8411_domain_)};
_.D3.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var lFP=function(){var W;return function(){W||(W=new _.D3("ytidb"));return W}}();var ESP;_.Eh=[];ESP=!1;var Goc=aF4||X3m;var kv={},OtS=(kv.AUTH_INVALID="No user identifier specified.",kv.EXPLICIT_ABORT="Transaction was explicitly aborted.",kv.IDB_NOT_SUPPORTED="IndexedDB is not supported.",kv.MISSING_INDEX="Index not created.",kv.MISSING_OBJECT_STORES="Object stores not created.",kv.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",kv.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",kv.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",kv.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",kv.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",kv.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",kv.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",kv),C_={},L5s=(C_.AUTH_INVALID="ERROR",C_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",C_.EXPLICIT_ABORT="IGNORED",
C_.IDB_NOT_SUPPORTED="ERROR",C_.MISSING_INDEX="WARNING",C_.MISSING_OBJECT_STORES="ERROR",C_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",C_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",C_.QUOTA_EXCEEDED="WARNING",C_.QUOTA_MAYBE_EXCEEDED="WARNING",C_.UNKNOWN_ABORT="WARNING",C_.INCOMPATIBLE_DB_VERSION="WARNING",C_),n_={},jq8=(n_.AUTH_INVALID=!1,n_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,n_.EXPLICIT_ABORT=!1,n_.IDB_NOT_SUPPORTED=!1,n_.MISSING_INDEX=!1,n_.MISSING_OBJECT_STORES=!1,n_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,n_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,n_.QUOTA_EXCEEDED=!1,n_.QUOTA_MAYBE_EXCEEDED=!0,n_.UNKNOWN_ABORT=!0,n_.INCOMPATIBLE_DB_VERSION=!1,n_),zW=function(W,k,C,n,N){k=k===void 0?{}:k;C=C===void 0?OtS[W]:C;n=n===void 0?L5s[W]:n;N=N===void 0?jq8[W]:N;_.AM.call(this,C,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},k));this.type=W;this.message=C;this.level=n;this.retryable=N;Object.setPrototypeOf(this,zW.prototype)};
_.D(zW,_.AM);var Ht8=function(W,k){zW.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:k,foundObjectStores:W},OtS.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ht8.prototype)};
_.D(Ht8,zW);var dyX=function(W,k){var C=Error.call(this);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.index=W;this.objectStore=k;Object.setPrototypeOf(this,dyX.prototype)};
_.D(dyX,Error);var myc=["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 c4=function(W){this.executor=W},JM=function(W){var k=this;
this.state={status:"PENDING"};this.JSC$8439_onFulfilled=[];this.JSC$8439_onRejected=[];W=W.executor;var C=function(N){if(k.state.status==="PENDING"){k.state={status:"FULFILLED",value:N};N=_.b(k.JSC$8439_onFulfilled);for(var B=N.next();!B.done;B=N.next())B=B.value,B()}},n=function(N){if(k.state.status==="PENDING"){k.state={status:"REJECTED",
reason:N};N=_.b(k.JSC$8439_onRejected);for(var B=N.next();!B.done;B=N.next())B=B.value,B()}};
try{W(C,n)}catch(N){n(N)}};
JM.all=function(W){return new JM(new c4(function(k,C){var n=[],N=W.length;N===0&&k(n);for(var B={i$jscomp$505:0};B.i$jscomp$505<W.length;B={i$jscomp$505:B.i$jscomp$505},++B.i$jscomp$505)JM.resolve(W[B.i$jscomp$505]).then(function(A){return function(w){n[A.i$jscomp$505]=w;N--;N===0&&k(n)}}(B)).catch(function(A){C(A)})}))};
JM.resolve=function(W){return new JM(new c4(function(k,C){W instanceof JM?W.then(k,C):k(W)}))};
JM.reject=function(W){return new JM(new c4(function(k,C){C(W)}))};
JM.prototype.then=function(W,k){var C=this,n=W!=null?W:VWw,N=k!=null?k:DyK;return new JM(new c4(function(B,A){C.state.status==="PENDING"?(C.JSC$8439_onFulfilled.push(function(){rD8(C,C,n,B,A)}),C.JSC$8439_onRejected.push(function(){g68(C,C,N,B,A)})):C.state.status==="FULFILLED"?rD8(C,C,n,B,A):C.state.status==="REJECTED"&&g68(C,C,N,B,A)}))};
JM.prototype.catch=function(W){return this.then(void 0,W)};
var rD8=function(W,k,C,n,N){try{if(W.state.status!=="FULFILLED")throw Error("Qc");var B=C(W.state.value);B instanceof JM?PDS(W,k,B,n,N):n(B)}catch(A){N(A)}},g68=function(W,k,C,n,N){try{if(W.state.status!=="REJECTED")throw Error("Rc");
var B=C(W.state.reason);B instanceof JM?PDS(W,k,B,n,N):n(B)}catch(A){N(A)}},PDS=function(W,k,C,n,N){k===C?N(new TypeError("Sc")):C.then(function(B){B instanceof JM?PDS(W,k,B,n,N):n(B)},function(B){N(B)})};var NF;NF=window;_.oX=NF.ytcsi&&NF.ytcsi.now?NF.ytcsi.now:NF.performance&&NF.performance.timing&&NF.performance.now&&NF.performance.timing.navigationStart?function(){return NF.performance.timing.navigationStart+NF.performance.now()}:function(){return(new Date).getTime()};var Sf=function(W,k){this.JSC$8451_wrapped=W;this.options=k;this.transactionCount=0;this.startedMs=Math.round((0,_.oX)());this.hasUnknownAbortedTransaction=!1},WQZ,k7x,bf,Naz;
Sf.prototype.add=function(W,k,C){return _.v4(this,[W],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore(W).add(k,C)})};
Sf.prototype.clear=function(W){return _.v4(this,[W],{mode:"readwrite",enableRetries:!0},function(k){return k.objectStore(W).clear()})};
Sf.prototype.close=function(){this.JSC$8451_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
Sf.prototype.count=function(W,k){return _.v4(this,[W],{mode:"readonly",enableRetries:!0},function(C){return C.objectStore(W).count(k)})};
var JE=function(W,k,C){W=W.JSC$8451_wrapped.createObjectStore(k,C);return new Yv(W)};
Sf.prototype.delete=function(W,k){return _.v4(this,[W],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(W).delete(k)})};
var K58=function(W,k){return _.v4(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore("ResponseStore").index("byInterface").delete(k)})};
Sf.prototype.get=function(W,k){return _.v4(this,[W],{mode:"readonly",enableRetries:!0},function(C){return C.objectStore(W).get(k)})};
Sf.prototype.getAll=function(W,k,C){return _.v4(this,[W],{mode:"readonly",enableRetries:!0},function(n){return n.objectStore(W).getAll(k,C)})};
Sf.prototype.put=function(W,k,C){return _.v4(this,[W],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore(W).put(k,C)})};
Sf.prototype.objectStoreNames=function(){return Array.from(this.JSC$8451_wrapped.objectStoreNames)};
_.v4=function(W,k,C,n){var N,B,A,w,x,E,a,X,d,V,c,M;return _.F(function(p){switch(p.nextAddress){case 1:var e={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof C==="string"?e.mode=C:Object.assign(e,C);N=e;W.transactionCount++;B=N.enableRetries?3:1;A=0;case 2:if(w){p.jumpTo(4);break}A++;x=Math.round((0,_.oX)());_.F0(p,5);E=W.JSC$8451_wrapped.transaction(k,N.mode);e=new SbX(E);e=hIb(e,n);return _.l(p,e,7);case 7:return a=p.yieldResult,X=Math.round((0,_.oX)()),WQZ(W,x,X,A,void 0,
k.join(),N),p.return(a);case 5:d=_.EF(p);V=Math.round((0,_.oX)());c=zVX(d,W.JSC$8451_wrapped.name,k.join(),W.JSC$8451_wrapped.version);if((M=c instanceof zW&&!c.retryable)||A>=B)WQZ(W,x,V,A,c,k.join(),N),w=c;p.jumpTo(2);break;case 4:return p.return(Promise.reject(w))}})};
WQZ=function(W,k,C,n,N,B,A){k=C-k;N?(N instanceof zW&&(N.type==="QUOTA_EXCEEDED"||N.type==="QUOTA_MAYBE_EXCEEDED")&&XV("QUOTA_EXCEEDED",{dbName:dd(W.JSC$8451_wrapped.name),objectStoreNames:B,transactionCount:W.transactionCount,transactionMode:A.mode}),N instanceof zW&&N.type==="UNKNOWN_ABORT"&&(C-=W.startedMs,C<0&&C>=2147483648&&(C=0),XV("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:B,transactionDuration:k,transactionCount:W.transactionCount,dbDuration:C}),W.hasUnknownAbortedTransaction=!0),
k7x(W,!1,n,B,k,A.tag),_.aX(N)):k7x(W,!0,n,B,k,A.tag)};
k7x=function(W,k,C,n,N,B){XV("TRANSACTION_ENDED",{objectStoreNames:n,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:N,isSuccessful:k,tryCount:C,tag:B===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":B})};
Sf.prototype.getVersion=function(){return this.JSC$8451_wrapped.version};
Sf.prototype.getName=function(){return this.JSC$8451_wrapped.name};
var Yv=function(W){this.JSC$8466_wrapped=W};
Yv.prototype.add=function(W,k){return IX(this.JSC$8466_wrapped.add(W,k))};
Yv.prototype.autoIncrement=function(){return this.JSC$8466_wrapped.autoIncrement};
Yv.prototype.clear=function(){return IX(this.JSC$8466_wrapped.clear()).then(function(){})};
var c$=function(W,k,C){W.JSC$8466_wrapped.createIndex(k,C,{unique:!1})};
Yv.prototype.count=function(W){return IX(this.JSC$8466_wrapped.count(W))};
var CdY=function(W,k){return sh(W,{query:k},function(C){return C.delete().then(function(){return C.continue()})}).then(function(){})};
Yv.prototype.delete=function(W){return W instanceof IDBKeyRange?CdY(this,W):IX(this.JSC$8466_wrapped.delete(W))};
Yv.prototype.get=function(W){return IX(this.JSC$8466_wrapped.get(W))};
Yv.prototype.getAll=function(W,k){return"getAll"in IDBObjectStore.prototype?IX(this.JSC$8466_wrapped.getAll(W,k)):nes(this,W,k)};
var nes=function(W,k,C){var n=[];return sh(W,{query:k},function(N){if(!(C!==void 0&&n.length>=C))return n.push(N.getValue()),N.continue()}).then(function(){return n})};
Yv.prototype.index=function(W){try{return new B0(this.JSC$8466_wrapped.index(W))}catch(k){if(k instanceof Error&&k.name==="NotFoundError")throw new dyX(W,this.JSC$8466_wrapped.name);throw k;}};
Yv.prototype.getName=function(){return this.JSC$8466_wrapped.name};
Yv.prototype.keyPath=function(){return this.JSC$8466_wrapped.keyPath};
Yv.prototype.put=function(W,k){return IX(this.JSC$8466_wrapped.put(W,k))};
var sh=function(W,k,C){W=W.JSC$8466_wrapped.openCursor(k.query,k.direction);return Naz(W).then(function(n){return IF2(n,C)})},SbX=function(W){var k=this;
this.JSC$8474_wrapped=W;this.objectStoreCache=new Map;this.JSC$8474_aborted=!1;this.done=new Promise(function(C,n){k.JSC$8474_wrapped.addEventListener("complete",function(){C()});
k.JSC$8474_wrapped.addEventListener("error",function(N){N.currentTarget===N.target&&n(k.JSC$8474_wrapped.error)});
k.JSC$8474_wrapped.addEventListener("abort",function(){var N=k.JSC$8474_wrapped.error;if(N)n(N);else if(!k.JSC$8474_aborted){N=zW;for(var B=k.JSC$8474_wrapped.objectStoreNames,A=[],w=0;w<B.length;w++){var x=B.item(w);if(x===null)throw Error("Tc");A.push(x)}N=new N("UNKNOWN_ABORT",{objectStoreNames:A.join(),dbName:k.JSC$8474_wrapped.db.name,mode:k.JSC$8474_wrapped.mode});n(N)}})})},hIb=function(W,k){var C=new Promise(function(n,N){try{k(W).then(function(B){n(B)}).catch(N)}catch(B){N(B),W.abort()}});
return Promise.all([C,W.done]).then(function(n){return _.b(n).next().value})};
SbX.prototype.abort=function(){this.JSC$8474_wrapped.abort();this.JSC$8474_aborted=!0;throw new zW("EXPLICIT_ABORT");};
SbX.prototype.objectStore=function(W){W=this.JSC$8474_wrapped.objectStore(W);var k=this.objectStoreCache.get(W);k||(k=new Yv(W),this.objectStoreCache.set(W,k));return k};
var B0=function(W){this.JSC$8476_wrapped=W};
B0.prototype.count=function(W){return IX(this.JSC$8476_wrapped.count(W))};
B0.prototype.delete=function(W){return _.ip(this,{query:W},function(k){return k.delete().then(function(){return k.continue()})})};
B0.prototype.get=function(W){return IX(this.JSC$8476_wrapped.get(W))};
B0.prototype.getAll=function(W,k){return"getAll"in IDBIndex.prototype?IX(this.JSC$8476_wrapped.getAll(W,k)):Yks(this,W,k)};
var Yks=function(W,k,C){var n=[];return _.ip(W,{query:k},function(N){if(!(C!==void 0&&n.length>=C))return n.push(N.getValue()),N.continue()}).then(function(){return n})};
B0.prototype.keyPath=function(){return this.JSC$8476_wrapped.keyPath};
B0.prototype.unique=function(){return this.JSC$8476_wrapped.unique};
_.ip=function(W,k,C){W=W.JSC$8476_wrapped.openCursor(k.query===void 0?null:k.query,k.direction===void 0?"next":k.direction);return Naz(W).then(function(n){return IF2(n,C)})};
bf=function(W,k){this.request=W;this.cursor=k};
Naz=function(W){return IX(W).then(function(k){return k?new bf(W,k):null})};
bf.prototype.continue=function(W){this.cursor.continue(W);return Naz(this.request)};
bf.prototype.delete=function(){return IX(this.cursor.delete()).then(function(){})};
bf.prototype.getValue=function(){return this.cursor.value};
bf.prototype.update=function(W){return IX(this.cursor.update(W))};var Ak=function(W,k){this.name=W;this.options=k;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},BaS;
Ak.prototype.openDb=function(W,k,C){C=C===void 0?{}:C;return QYc(W,k,C)};
Ak.prototype.delete=function(W){W=W===void 0?{}:W;return _.Qn(this.name,W)};
BaS=function(W,k){return new zW("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:k})};
_.pH=function(W,k){if(!k)throw Vn("openWithToken",dd(W.name));return W.open()};
Ak.prototype.open=function(){var W=this;if(!this.isCompatible)throw BaS(this);if(this.connectionPromise)return this.connectionPromise;var k,C=function(){W.connectionPromise===k&&(W.connectionPromise=void 0)},n={blocking:function(B){B.close()},
closed:C,terminated:C,upgrade:this.options.upgrade},N=function(){var B,A,w,x,E,a,X,d,V,c;return _.F(function(M){switch(M.nextAddress){case 1:return A=(B=Error().stack)!=null?B:"",_.F0(M,2),_.l(M,W.openDb(W.name,W.options.version,n),4);case 4:for(var p=w=M.yieldResult,e=W.options,u=[],h=_.b(Object.keys(e.objectStores)),L=h.next();!L.done;L=h.next()){L=L.value;var Bw=e.objectStores[L],P=Bw.removedAtVersion===void 0?Number.MAX_VALUE:Bw.removedAtVersion;!(p.JSC$8451_wrapped.version>=Bw.addedAtVersion)||
p.JSC$8451_wrapped.version>=P||p.JSC$8451_wrapped.objectStoreNames.contains(L)||u.push(L)}x=u;if(x.length===0){M.jumpTo(5);break}E=Object.keys(W.options.objectStores);a=w.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.Oe("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,w.close(),_.aX(new zW("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:E,foundObjectStores:a})),M.return(N());if(!(W.timesDeletedToFixMissingObjectStore<_.Oe("ytidb_remake_db_retries",
1))){M.jumpTo(6);break}W.timesDeletedToFixMissingObjectStore++;return _.l(M,W.delete(),7);case 7:return _.aX(new zW("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:E,foundObjectStores:a})),M.return(N());case 6:throw new Ht8(a,E);case 5:return M.return(w);case 2:X=_.EF(M);if(X instanceof DOMException?X.name!=="VersionError":"DOMError"in self&&X instanceof DOMError?X.name!=="VersionError":!(X instanceof Object&&"message"in X)||X.message!=="An attempt was made to open a database using a lower version than the existing version."){M.jumpTo(8);
break}return _.l(M,W.openDb(W.name,void 0,Object.assign({},n,{upgrade:void 0})),9);case 9:d=M.yieldResult;V=d.getVersion();if(W.options.version!==void 0&&V>W.options.version+1)throw d.close(),W.isCompatible=!1,BaS(W,V);return M.return(d);case 8:throw C(),X instanceof Error&&!_.m("ytidb_async_stack_killswitch")&&(X.stack=X.stack+"\n"+A.substring(A.indexOf("\n")+1)),zVX(X,W.name,"",(c=W.options.version)!=null?c:-1);}})};
return this.connectionPromise=k=N()};var p3c=new Ak("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,k){k(1)&&JE(W,"databases",{keyPath:"actualName"})}});var Z5J,yeK=new function(){}(new function(){});new _.gn;var bYx=function(W,k){Ak.call(this,W,k);this.options=k;fH(W)};
_.D(bYx,Ak);var jYX=function(W,k){var C;return function(){C||(C=new bYx(W,k));return C}};
bYx.prototype.openDb=function(W,k,C){C=C===void 0?{}:C;return(this.options.shared?qbJ:TnX)(W,k,Object.assign({},C))};
bYx.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?L7K:uDw)(this.name,W)};var AAs={},H5w=RX("ytGcfConfig",{objectStores:(AAs.coldConfigStore={addedAtVersion:1},AAs.hotConfigStore={addedAtVersion:1},AAs),shared:!1,upgrade:function(W,k){k(1)&&(c$(JE(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),c$(JE(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var FQz=function(){_.XK.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.QK("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.J8(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.$g("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.D(FQz,_.XK);FQz.prototype.disposeInternal=function(){for(var W=_.b(this.localHotConfigJobQueue),k=W.next();!k.done;k=W.next()){var C=this.sharedHotConfigJobQueue;k=C.indexOf(k.value);k>=0&&C.splice(k,1)}this.localHotConfigJobQueue.length=0;_.XK.prototype.disposeInternal.call(this)};var xI=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new FQz;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(k){we8(W,k)},
setHotHashData:function(k){W.setHotHashData(k)},
setColdConfigGroup:function(k){xLA(W,k)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return lHs()},
getExportedHotConfigGroup:function(){return Fz()},
getExportedColdHashData:function(){return _.QK("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.QK("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){thC(W)},
resetInstance:function(){W.setHotHashData(void 0);EeS(W);delete xI.instance},
setDebounceTimer:function(k){W.debounceTimer=k},
getDebounceTimer:function(){return W.debounceTimer}}},aH8=function(){if(!xI.instance){var W=new xI;
xI.instance=W}return xI.instance},dLS=function(W){var k;
_.F(function(C){if(C.nextAddress==1)return _.m("start_client_gcf")||_.m("delete_gcf_config_db")?_.m("start_client_gcf")?_.l(C,_.Z5(),3):C.jumpTo(2):C.return();C.nextAddress!=2&&((k=C.yieldResult)&&_.bp()&&!_.m("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,thC(W)):(XeY(W),fHz(W)));return _.m("delete_gcf_config_db")?_.l(C,Wgz(),0):C.jumpTo(0)})},kn3=function(){var W;
return(W=Fz())!=null?W:_.DE("RAW_HOT_CONFIG_GROUP")},mL2=function(W){var k,C,n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:if(W.hotGlobalConfigGroup)return w.return(Fz());if(!W.isConfigDbInitialized)return k=Vn("getHotConfig IDB not initialized"),_.pS(k),w.return(Promise.reject(k));C=yn();n=_.DE("TIME_CREATED_MS");if(!C){N=Vn("getHotConfig token error");_.pS(N);w.jumpTo(2);break}return _.l(w,hVJ(C),3);case 3:if((B=w.yieldResult)&&B.timestamp>n)return we8(W,B.config),W.setHotHashData(B.hashData),w.return(Fz());case 2:fHz(W);if(!(C&&W.hotGlobalConfigGroup&&W.hotHashData)){w.jumpTo(4);
break}return _.l(w,gS2(W.hotGlobalConfigGroup,W.hotHashData,C,n),4);case 4:return W.hotGlobalConfigGroup?w.return(Fz()):(A=new _.AM("Config not available in ytConfig"),_.pS(A),w.return(Promise.reject(A)))}})},DLz=function(W){var k,C,n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:if(W.coldGlobalConfigGroup)return w.return(lHs());if(!W.isConfigDbInitialized)return k=Vn("getColdConfig IDB not initialized"),_.pS(k),w.return(Promise.reject(k));C=yn();n=_.DE("TIME_CREATED_MS");if(!C){N=Vn("getColdConfig");_.pS(N);w.jumpTo(2);break}return _.l(w,K7X(C),3);case 3:if((B=w.yieldResult)&&B.timestamp>n)return xLA(W,B.config),zBA(W,B.configData),EeS(W,B.hashData),w.return(lHs());case 2:XeY(W);if(!(C&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){w.jumpTo(4);break}return _.l(w,POI(W.coldGlobalConfigGroup,W.coldHashData,W.configData,C,n),4);case 4:return W.coldGlobalConfigGroup?w.return(lHs()):(A=new _.AM("Config not available in ytConfig"),_.pS(A),w.return(Promise.reject(A)))}})},thC=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!yn()){var k=Vn("scheduleGetConfigs");
_.pS(k)}W.initJob||(W.initJob=_.aM.addLowPriorityJob(function(){return _.F(function(C){switch(C.nextAddress){case 1:return _.F0(C,2),_.l(C,mL2(W),4);case 4:_.M7(C,3);break;case 2:_.EF(C);case 3:return _.F0(C,5),_.l(C,DLz(W),7);case 7:_.M7(C,6);break;case 5:_.EF(C);case 6:W.initJob&&(W.initJob=0),_.ab(C)}})},100))}},gaz=function(W,k,C){var n,N,B;
return _.F(function(A){switch(A.nextAddress){case 1:if(!_.m("start_client_gcf")){A.jumpTo(0);break}C&&we8(W,C);W.setHotHashData(k);n=yn();if(!n){A.jumpTo(3);break}if(C){A.jumpTo(4);break}return _.l(A,hVJ(n),5);case 5:N=A.yieldResult,C=(B=N)==null?void 0:B.config;case 4:return _.l(A,gS2(C,k,n),3);case 3:if(C)for(var w=C,x=_.b(W.configUpdateService.sharedHotConfigJobQueue),E=x.next();!E.done;E=x.next())E=E.value,E(w);_.ab(A)}})},PV2=function(W,k,C){var n,N,B,A;
return _.F(function(w){if(w.nextAddress==1){if(!_.m("start_client_gcf"))return w.jumpTo(0);EeS(W,k);return(n=yn())?C?w.jumpTo(4):_.l(w,K7X(n),5):w.jumpTo(0)}w.nextAddress!=4&&(N=w.yieldResult,C=(B=N)==null?void 0:B.config);if(!C)return w.jumpTo(0);A=C.configData;return _.l(w,POI(C,k,A,n),0)})},dwI=function(){var W=aH8(),k=(0,_.oX)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&k<_.Oe("send_config_hash_timer"))){k=_.QK("yt.gcf.config.coldConfigData");var C=_.QK("yt.gcf.config.hotHashData"),n=_.QK("yt.gcf.config.coldHashData");k&&C&&n&&(W.debounceTimer=(0,_.oX)());return{coldConfigData:k,hotHashData:C,coldHashData:n}}},XeY=function(W){xLA(W,_.DE("RAW_COLD_CONFIG_GROUP"));
EeS(W,_.DE("SERIALIZED_COLD_HASH_DATA"));var k;zBA(W,(k=W.coldGlobalConfigGroup)==null?void 0:k.configData)},fHz=function(W){we8(W,_.DE("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.DE("SERIALIZED_HOT_HASH_DATA"))},we8=function(W,k){W.hotGlobalConfigGroup=k;
_.$g("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},xLA=function(W,k){W.coldGlobalConfigGroup=k;
_.$g("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
xI.prototype.setHotHashData=function(W){this.hotHashData=W;_.$g("yt.gcf.config.hotHashData",this.hotHashData||null)};
var EeS=function(W,k){W.coldHashData=k;_.$g("yt.gcf.config.coldHashData",W.coldHashData||null)},zBA=function(W,k){W.configData=k;
_.$g("yt.gcf.config.coldConfigData",W.configData||null)},Fz=function(){return _.QK("yt.gcf.config.hotConfigGroup")},lHs=function(){return _.QK("yt.gcf.config.coldConfigGroup")};var gd={},Vh8=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";gd.assign=function(W){for(var k=Array.prototype.slice.call(arguments,1);k.length;){var C=k.shift();if(C){if(typeof C!=="object")throw new TypeError("Wc`"+C);for(var n in C)Object.prototype.hasOwnProperty.call(C,n)&&(W[n]=C[n])}}return W};
gd.shrinkBuf=function(W,k){if(W.length===k)return W;if(W.subarray)return W.subarray(0,k);W.length=k;return W};
var JAA={arraySet:function(W,k,C,n,N){if(k.subarray&&W.subarray)W.set(k.subarray(C,C+n),N);else for(var B=0;B<n;B++)W[N+B]=k[C+B]},
flattenChunks:function(W){var k,C;var n=C=0;for(k=W.length;n<k;n++)C+=W[n].length;var N=new Uint8Array(C);n=C=0;for(k=W.length;n<k;n++){var B=W[n];N.set(B,C);C+=B.length}return N}},cA8={arraySet:function(W,k,C,n,N){for(var B=0;B<n;B++)W[N+B]=k[C+B]},
flattenChunks:function(W){return[].concat.apply([],W)}};
gd.setTyped=function(){Vh8?(gd.Buf8=Uint8Array,gd.Buf16=Uint16Array,gd.Buf32=Int32Array,gd.assign(gd,JAA)):(gd.Buf8=Array,gd.Buf16=Array,gd.Buf32=Array,gd.assign(gd,cA8))};
gd.setTyped();var IHS=!0;try{new Uint8Array(1)}catch(W){IHS=!1}
var hNI=function(W){var k,C,n=W.length,N=0;for(k=0;k<n;k++){var B=W.charCodeAt(k);if((B&64512)===55296&&k+1<n){var A=W.charCodeAt(k+1);(A&64512)===56320&&(B=65536+(B-55296<<10)+(A-56320),k++)}N+=B<128?1:B<2048?2:B<65536?3:4}var w=new gd.Buf8(N);for(k=C=0;C<N;k++)B=W.charCodeAt(k),(B&64512)===55296&&k+1<n&&(A=W.charCodeAt(k+1),(A&64512)===56320&&(B=65536+(B-55296<<10)+(A-56320),k++)),B<128?w[C++]=B:(B<2048?w[C++]=192|B>>>6:(B<65536?w[C++]=224|B>>>12:(w[C++]=240|B>>>18,w[C++]=128|B>>>12&63),w[C++]=
128|B>>>6&63),w[C++]=128|B&63);return w};var iOX={};iOX=function(W,k,C,n){var N=W&65535|0;W=W>>>16&65535|0;for(var B;C!==0;){B=C>2E3?2E3:C;C-=B;do N=N+k[n++]|0,W=W+N|0;while(--B);N%=65521;W%=65521}return N|W<<16|0};for(var FE={},wD,SkA=[],MhI=0;MhI<256;MhI++){wD=MhI;for(var QA8=0;QA8<8;QA8++)wD=wD&1?3988292384^wD>>>1:wD>>>1;SkA[MhI]=wD}FE=function(W,k,C,n){C=n+C;for(W^=-1;n<C;n++)W=W>>>8^SkA[(W^k[n])&255];return W^-1};var W$={};W$={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 Q8w=[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],vZc=[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],Kgw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],RN4=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Nq=Array(576);LH(Nq);var Y1=Array(60);LH(Y1);var KH=Array(512);LH(KH);var P4=Array(256);LH(P4);var plX=Array(29);LH(plX);var eNI=Array(30);LH(eNI);var rhc,gZ3,PKz,HO3=!1;var tE;
tE=[new le(0,0,0,0,function(W,k){var C=65535;for(C>W.pending_buf_size-5&&(C=W.pending_buf_size-5);;){if(W.lookahead<=1){wK(W);if(W.lookahead===0&&k===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var n=W.block_start+C;if(W.strstart===0||W.strstart>=n)if(W.lookahead=W.strstart-n,W.strstart=n,B$(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(B$(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(k===4)return B$(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&B$(W,!1);return 1}),
new le(4,4,8,4,Tiz),new le(4,5,16,8,Tiz),new le(4,6,32,32,Tiz),new le(4,4,16,16,x1),new le(8,16,32,32,x1),new le(8,16,128,128,x1),new le(8,32,128,256,x1),new le(32,128,258,1024,x1),new le(32,258,258,4096,x1)];var j8z={};j8z=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 WW3=Object.prototype.toString;
Lg2.prototype.push=function(W,k){var C=this.strm,n=this.options.chunkSize;if(this.ended)return!1;var N=k===~~k?k:k===!0?4:0;typeof W==="string"?C.input=hNI(W):WW3.call(W)==="[object ArrayBuffer]"?C.input=new Uint8Array(W):C.input=W;C.next_in=0;C.avail_in=C.input.length;do{C.avail_out===0&&(C.output=new gd.Buf8(n),C.next_out=0,C.avail_out=n);W=OOI(C,N);if(W!==1&&W!==0)return pe8(this,W),this.ended=!0,!1;if(C.avail_out===0||C.avail_in===0&&(N===4||N===2))if(this.options.to==="string"){var B=gd.shrinkBuf(C.output,
C.next_out);k=B;B=B.length;if(B<65537&&(k.subarray&&IHS||!k.subarray))k=String.fromCharCode.apply(null,gd.shrinkBuf(k,B));else{for(var A="",w=0;w<B;w++)A+=String.fromCharCode(k[w]);k=A}this.chunks.push(k)}else k=gd.shrinkBuf(C.output,C.next_out),this.chunks.push(k)}while((C.avail_in>0||C.avail_out===0)&&W!==1);if(N===4)return(C=this.strm)&&C.state?(n=C.state.status,n!==42&&n!==69&&n!==73&&n!==91&&n!==103&&n!==113&&n!==666?W=k1(C,-2):(C.state=null,W=n===113?k1(C,-3):0)):W=-2,pe8(this,W),this.ended=
!0,W===0;N===2&&(pe8(this,0),C.avail_out=0);return!0};
var pe8=function(W,k){k===0&&(W.result=W.options.to==="string"?W.chunks.join(""):gd.flattenChunks(W.chunks));W.chunks=[];W.err=k;W.msg=W.strm.msg};var veS=typeof TextEncoder!=="undefined"?new TextEncoder:null,ppm=veS?function(W){return veS.encode(W)}:function(W){W=_.aL(W);
for(var k=new Uint8Array(W.length),C=0;C<k.length;C++)k[C]=W[C];return k};var NSc={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},bT2={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var xv=function(W,k){this.version=W;this.args=k};
xv.prototype.serialize=function(){return{version:this.version,args:this.args}};var YC2=function(W,k){this.topic=W;this.dataClass=k};
YC2.prototype.toString=function(){return this.topic};var eBA=_.QK("ytPubsub2Pubsub2Instance")||new _.kg;_.kg.prototype.subscribe=_.kg.prototype.subscribe;_.kg.prototype.unsubscribeByKey=_.kg.prototype.unsubscribeByKey;_.kg.prototype.publish=_.kg.prototype.publish;_.kg.prototype.clear=_.kg.prototype.clear;_.$g("ytPubsub2Pubsub2Instance",eBA);var NHJ=_.QK("ytPubsub2Pubsub2SubscribedKeys")||{};_.$g("ytPubsub2Pubsub2SubscribedKeys",NHJ);var bqp=_.QK("ytPubsub2Pubsub2TopicToKeys")||{};_.$g("ytPubsub2Pubsub2TopicToKeys",bqp);
var BHm=_.QK("ytPubsub2Pubsub2IsAsync")||{};_.$g("ytPubsub2Pubsub2IsAsync",BHm);_.$g("ytPubsub2Pubsub2SkipSubKey",null);var fyp=void 0,ayw=void 0;var Iy2=_.Oe("max_body_size_to_compress",5E5),SCp=_.Oe("min_body_size_to_compress",500),fv=!0,sKK=0,ma=0,eUp=_.Oe("compression_performance_threshold_lr",250),GMI=_.Oe("slow_compressions_before_abandon_count",4),zUm=!1,DsP=new Map,QKw=1,MYc=!0;_.Pq(zw,Zqm);zw.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 sAZ=function(W,k,C){C||(C=0);var n=W.W_;if(typeof k==="string")for(var N=0;N<16;N++)n[N]=k.charCodeAt(C)<<24|k.charCodeAt(C+1)<<16|k.charCodeAt(C+2)<<8|k.charCodeAt(C+3),C+=4;else for(N=0;N<16;N++)n[N]=k[C]<<24|k[C+1]<<16|k[C+2]<<8|k[C+3],C+=4;for(k=16;k<80;k++)C=n[k-3]^n[k-8]^n[k-14]^n[k-16],n[k]=(C<<1|C>>>31)&4294967295;k=W.chain_[0];C=W.chain_[1];N=W.chain_[2];for(var B=W.chain_[3],A=W.chain_[4],w,x,E=0;E<80;E++)E<40?E<20?(w=B^C&(N^B),x=1518500249):(w=C^N^B,x=1859775393):E<60?(w=C&N|B&(C|N),
x=2400959708):(w=C^N^B,x=3395469782),w=(k<<5|k>>>27)+w+A+x+n[E]&4294967295,A=B,B=N,N=(C<<30|C>>>2)&4294967295,C=k,k=w;W.chain_[0]=W.chain_[0]+k&4294967295;W.chain_[1]=W.chain_[1]+C&4294967295;W.chain_[2]=W.chain_[2]+N&4294967295;W.chain_[3]=W.chain_[3]+B&4294967295;W.chain_[4]=W.chain_[4]+A&4294967295};
zw.prototype.update=function(W,k){if(W!=null){k===void 0&&(k=W.length);for(var C=k-this.blockSize,n=0,N=this.buf_,B=this.inbuf_;n<k;){if(B==0)for(;n<=C;)sAZ(this,W,n),n+=this.blockSize;if(typeof W==="string")for(;n<k;){if(N[B]=W.charCodeAt(n),++B,++n,B==this.blockSize){sAZ(this,N);B=0;break}}else for(;n<k;)if(N[B]=W[n],++B,++n,B==this.blockSize){sAZ(this,N);B=0;break}}this.inbuf_=B;this.total_+=k}};
zw.prototype.digest=function(){var W=[],k=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var C=this.blockSize-1;C>=56;C--)this.buf_[C]=k&255,k/=256;sAZ(this,this.buf_);for(C=k=0;C<5;C++)for(var n=24;n>=0;n-=8)W[k]=this.chain_[C]>>n&255,++k;return W};var iqI;var tk=function(W){var k=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(a){k.databaseToken=a},
triggerThrottle:function(){k.throttledSend()},
cancelThrottle:function(){k.cancelThrottledSend()},
immediateSend:function(a){return _.F(function(X){return _.l(X,k.immediateSend(a),0)})},
requestWithinAgeLimit:function(a,X){return k.requestWithinAgeLimit(a,X)},
retryQueuedRequests:function(){k.retryQueuedRequests()}};
var C;this.throttleTimeout=(C=W.throttleTimeout)!=null?C:100;var n;this.retryMaxAttempts=(n=W.retryMaxAttempts)!=null?n:1;var N;this.requestAgeLimitMs=(N=W.requestAgeLimitMs)!=null?N:2592E6;var B;this.queuedRequestAgeLimitMs=(B=W.queuedRequestAgeLimitMs)!=null?B:12E4;var A;this.retryDelayMs=(A=W.retryDelayMs)!=null?A:5E3;var w;this.databaseToken=(w=W.databaseToken)!=null?w:void 0;this.enableCleaning=!!W.enableCleaning;var x;this.cleaningRate=(x=W.cleaningRate)!=null?x:.1;var E;this.potentialEsfErrorLimit=
(E=W.potentialEsfErrorLimit)!=null?E:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;lf(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&G78(this)},G78=function(W){lf(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.Y=tk.prototype;_.Y.writeThenSend=function(W,k){var C=this;k=k===void 0?{}:k;if(lf(this)&&this.initialized){var n={url:W,options:k,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(n,this.databaseToken).then(function(N){n.id=N;C.networkManager.isNetworkAvailable()&&C.immediateSend(n)}).catch(function(N){C.immediateSend(n);
yAZ(C,N)})}else this.sendFn(W,k)};
_.Y.sendThenWrite=function(W,k,C){var n=this;k=k===void 0?{}:k;if(lf(this)&&this.initialized){var N={url:W,options:k,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(N.skipRetry=C);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!N.skipRetry){if(!N.skipRetry){var B=k.onError?k.onError:function(){};
k.onError=function(A,w){return _.F(function(x){if(x.nextAddress==1)return _.l(x,n.logsStore.set(N,n.databaseToken).catch(function(E){yAZ(n,E)}),2);
B(A,w);_.ab(x)})}}this.sendFn(W,k,N.skipRetry)}else this.logsStore.set(N,this.databaseToken).catch(function(A){n.sendFn(W,k,N.skipRetry);
yAZ(n,A)})}else this.sendFn(W,k,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&C)};
_.Y.sendAndWrite=function(W,k){var C=this;k=k===void 0?{}:k;if(lf(this)&&this.initialized){var n={url:W,options:k,timestamp:this.now(),status:"NEW",sendCount:0},N=!1,B=k.onSuccess?k.onSuccess:function(){};
n.options.onSuccess=function(A,w){n.id!==void 0?C.logsStore.deleteRequest(n.id,C.databaseToken):N=!0;C.networkManager.networkStatusHint&&C.getBooleanFlag&&C.getBooleanFlag("vss_network_hint")&&C.networkManager.networkStatusHint(!0);B(A,w)};
this.sendFn(n.url,n.options,void 0,!0);this.logsStore.set(n,this.databaseToken).then(function(A){n.id=A;N&&C.logsStore.deleteRequest(n.id,C.databaseToken)}).catch(function(A){yAZ(C,A)})}else this.sendFn(W,k,void 0,!0)};
_.Y.throttledSend=function(){var W=this;if(!lf(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(C.nextAddress!=3)return k=C.yieldResult,k?_.l(C,W.immediateSend(k),3):(W.cancelThrottledSend(),C.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.ab(C)})},this.throttleTimeout))};
_.Y.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.Y.immediateSend=function(W){var k=this,C;return _.F(function(n){switch(n.nextAddress){case 1:if(!lf(k))throw Error("$c");if(W.id===void 0){n.jumpTo(2);break}return _.l(n,k.logsStore.markAsQueued(W.id,k.databaseToken),3);case 3:(C=n.yieldResult)||k.handleWarning(Error("ad"));case 2:if(k.requestWithinAgeLimit(W,k.requestAgeLimitMs)){n.jumpTo(4);break}k.handleWarning(Error("bd"));if(W.id===void 0){n.jumpTo(5);break}return _.l(n,k.logsStore.deleteRequest(W.id,k.databaseToken),5);case 5:return n.return();
case 4:W.skipRetry||(W=$LI(k,W));if(!W){n.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){n.jumpTo(8);break}return _.l(n,k.logsStore.deleteRequest(W.id,k.databaseToken),8);case 8:k.sendFn(W.url,W.options,!!W.skipRetry),_.ab(n)}})};
var $LI=function(W,k){if(!lf(W))throw Error("cd");var C=k.options.onError?k.options.onError:function(){};
k.options.onError=function(N,B){var A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:A=Oqw(B);(w=LWz(B))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("dd"),k.url,B);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&A||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){a.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){a.jumpTo(3);break}return _.l(a,W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){a.jumpTo(2);break}C(N,B);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((x=k)==null?void 0:x.id)===void 0){a.jumpTo(6);break}return _.l(a,W.logsStore.resetRequest(k.id,W.databaseToken,!1),6);case 6:return a.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!A&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return a.return();W.potentialEsfErrorCounter++;if(((E=k)==null?void 0:E.id)===void 0){a.jumpTo(8);
break}return k.sendCount<W.retryMaxAttempts?_.l(a,W.logsStore.resetRequest(k.id,W.databaseToken,!0,w?!1:void 0),12):_.l(a,W.logsStore.deleteRequest(k.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:C(N,B),_.ab(a)}})};
var n=k.options.onSuccess?k.options.onSuccess:function(){};
k.options.onSuccess=function(N,B){var A;return _.F(function(w){if(w.nextAddress==1)return((A=k)==null?void 0:A.id)===void 0?w.jumpTo(2):_.l(w,W.logsStore.deleteRequest(k.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);n(N,B);_.ab(w)})};
return k};
tk.prototype.requestWithinAgeLimit=function(W,k){W=W.timestamp;return this.now()-W>=k?!1:!0};
tk.prototype.retryQueuedRequests=function(){var W=this;if(!lf(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(k){k&&!W.requestWithinAgeLimit(k,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.F(function(C){if(C.nextAddress==1)return k.id===void 0?C.jumpTo(2):_.l(C,W.logsStore.resetRequest(k.id,W.databaseToken),2);W.retryQueuedRequests();_.ab(C)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var yAZ=function(W,k){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(k):W.handleError(k)},lf=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var jKX;var WkI={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 ZYI={},nfw=RX("ServiceWorkerLogsDatabase",{objectStores:(ZYI.SWHealthLog={addedAtVersion:1},ZYI),shared:!0,upgrade:function(W,k){k(1)&&c$(JE(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var xNI={},wjc=0;var azJ;var EO=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},pv=function(){if(!EO.instance){var W=_.QK("yt.networkRequestMonitor.instance")||new EO;
_.$g("yt.networkRequestMonitor.instance",W);EO.instance=W}return EO.instance};
EO.prototype.requestComplete=function(W,k){k&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,k)};
EO.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
EO.prototype.removeParams=function(W){return W.split("?")[0]};
EO.prototype.removeParams=EO.prototype.removeParams;EO.prototype.isEndpointCFR=EO.prototype.isEndpointCFR;EO.prototype.requestComplete=EO.prototype.requestComplete;EO.getInstance=pv;var aV=function(W){_.xT.call(this);var k=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(N,B){return setTimeout(N,B)},
cancelJob:function(N){clearTimeout(N)}};
var C,n;this.isOnline=(n=(C=window.navigator)==null?void 0:C.onLine)!=null?n:!0;this.onNavigatorChange=function(){return _.F(function(N){return _.l(N,RBz(k),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||oeA(this)};
_.D(aV,_.xT);aV.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete aV.instance};
aV.prototype.isNetworkAvailable=function(){return this.isOnline};
var oeA=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var k;return _.F(function(C){if(C.nextAddress==1)return W.isOnline?((k=window.navigator)==null?0:k.onLine)?C.jumpTo(3):_.l(C,RBz(W),3):_.l(C,RBz(W),3);oeA(W);_.ab(C)})},3E4)},RBz=function(W,k){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(C){var n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:return n=window.AbortController?new window.AbortController:void 0,B=(N=n)==null?void 0:N.signal,A=!1,_.F0(w,2,3),n&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){n.abort()},k||2E4)),_.l(w,fetch("/generate_204",{method:"HEAD",
signal:B}),5);case 5:A=!0;case 3:_.xO(w);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);A!==W.isOnline&&(W.isOnline=A,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));C(A);_.t8(w,0);break;case 2:_.EF(w),A=!1,w.jumpTo(3)}})})};var Xz=function(){_.xT.call(this);var W=this;this.shouldFlushErrors=!1;aV.instance||(aV.instance=new aV(_.aM));this.sharedNetworkStatusManager=aV.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.m("offline_error_handling")){var k=Xjw().get("errors",!0);if(k){for(var C in k)if(k[C]){var n=new _.AM(C,"sent via offline_errors");n.name=k[C].name;n.stack=k[C].stack;n.level=k[C].level;_.I4(n)}Xjw().set("errors",{},2592E3,!0)}}})};
_.D(Xz,_.xT);var iY8=function(){if(!Xz.instance){var W=_.QK("yt.networkStatusManager.instance")||new Xz;_.$g("yt.networkStatusManager.instance",W);Xz.instance=W}return Xz.instance};
_.Y=Xz.prototype;_.Y.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.Y.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.Y.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.Y.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.Y.listen=function(W,k){return this.sharedNetworkStatusManager.listen(W,k)};
_.Y.sendNetworkCheckRequest=function(W){W=RBz(this.sharedNetworkStatusManager,W);W.then(function(k){_.m("use_cfr_monitor")&&pv().requestComplete("generate_204",k)});
return W};
Xz.prototype.sendNetworkCheckRequest=Xz.prototype.sendNetworkCheckRequest;Xz.prototype.listen=Xz.prototype.listen;Xz.prototype.enableErrorFlushing=Xz.prototype.enableErrorFlushing;Xz.prototype.getWindowStatus=Xz.prototype.getWindowStatus;Xz.prototype.networkStatusHint=Xz.prototype.networkStatusHint;Xz.prototype.isNetworkAvailable=Xz.prototype.isNetworkAvailable;Xz.getInstance=iY8;_.Qw=function(W){W=W===void 0?{}:W;_.xT.call(this);var k=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=iY8();var C=_.QK("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);C&&(W.rateLimit?(this.rateLimit=W.rateLimit,C("networkstatus-online",function(){qkx(k,"publicytnetworkstatus-online")}),C("networkstatus-offline",function(){qkx(k,"publicytnetworkstatus-offline")})):(C("networkstatus-online",function(){k.dispatchEvent("publicytnetworkstatus-online")}),C("networkstatus-offline",
function(){k.dispatchEvent("publicytnetworkstatus-offline")})))};
_.D(_.Qw,_.xT);_.Qw.prototype.isNetworkAvailable=function(){var W=_.QK("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.Qw.prototype.networkStatusHint=function(W){var k=_.QK("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);k&&k(W)};
_.Qw.prototype.sendNetworkCheckRequest=function(W){var k=this,C;return _.F(function(n){C=_.QK("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(k.nsmInstance);return _.m("skip_network_check_if_cfr")&&pv().isEndpointCFR("generate_204")?n.return(new Promise(function(N){var B;k.networkStatusHint(((B=window.navigator)==null?void 0:B.onLine)||!0);N(k.isNetworkAvailable())})):C?n.return(C(W)):n.return(!0)})};
var qkx=function(W,k){W.rateLimit?W.lastJobTime?(_.aM.cancelJob(W.schedulerJob),W.schedulerJob=_.aM.addLowPriorityJob(function(){W.lastPublicSignalSent!==k&&(W.dispatchEvent(k),W.lastPublicSignalSent=k,W.lastJobTime=(0,_.oX)())},W.rateLimit-((0,_.oX)()-W.lastJobTime))):(W.dispatchEvent(k),W.lastPublicSignalSent=k,W.lastJobTime=(0,_.oX)()):W.dispatchEvent(k)};var DNX,f_=function(){tk.call(this,{logsStore:{cleanLogsStore:kjc,deleteRequest:W83,getMostRecentByStatus:P0I,markAsQueued:KWp,resetRequest:hUX,set:grJ},networkManager:_.VcX(),handleError:function(W,k,C){var n,N=C==null?void 0:(n=C.error)==null?void 0:n.code;if(N===400||N===415){var B;W=new _.AM(W.message,k,C==null?void 0:(B=C.error)==null?void 0:B.code);_.pS(W,void 0,void 0,void 0,!0)}else _.I4(W)},
handleWarning:_.pS,sendFn:mN3,now:_.oX,writeError:fzJ,jobManager:_.D7(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Oe("potential_esf_error_limit",10),getBooleanFlag:_.m,disableYtIdbTransactions:!(_.bp()&&_.J7X())});this.initializationPromise=new _.gn;_.m("networkless_immediately_drop_all_requests")&&C6p();L7K("LogsDatabaseV2")};
_.D(f_,tk);_.UL2=function(){var W=_.QK("yt.networklessRequestController.instance");W||(W=new f_,_.$g("yt.networklessRequestController.instance",W),_.m("networkless_logging")&&_.Z5().then(function(k){W.databaseToken=k;G78(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&YiP(W.databaseToken);_.m("networkless_immediately_drop_sw_health_store")&&uvC(W)}));
return W};
f_.prototype.writeThenSend=function(W,k){k||(k={});k=z8z(W,k);_.bp()||(this.initialized=!1);tk.prototype.writeThenSend.call(this,W,k)};
f_.prototype.sendThenWrite=function(W,k,C){k||(k={});k=z8z(W,k);_.bp()||(this.initialized=!1);tk.prototype.sendThenWrite.call(this,W,k,C)};
f_.prototype.sendAndWrite=function(W,k){k||(k={});k=z8z(W,k);_.bp()||(this.initialized=!1);tk.prototype.sendAndWrite.call(this,W,k)};
f_.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var uvC=function(W){var k;_.F(function(C){if(!W.databaseToken)throw k=Vn("clearSWHealthLogsDb"),k;return C.return(ByK(W.databaseToken).catch(function(n){W.handleError(n)}))})};_.Iz4=!1;_.c73=_.NX.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Iz4};_.$g("ytNetworklessLoggingInitializationOptions",_.c73);var EK=function(W){var k=this;this.config_=null;W?this.config_=W:kyp()&&(this.config_=_.TW());_.wI(_.aM,function(){Usm(k)},5E3)};
EK.prototype.isReady=function(){!this.config_&&kyp()&&(this.config_=_.TW());return!!this.config_};
var urP=function(W,k,C,n){!_.DE("VISITOR_DATA")&&k!=="visitor_id"&&Math.random()<.01&&_.pS(new _.AM("Missing VISITOR_DATA when sending innertube request.",k,C,n));if(!W.isReady()){var N=new _.AM("innertube xhrclient not ready",k,C,n);_.I4(N);throw N;}var B={headers:n.headers||{},method:"POST",postParams:C,postBody:n.postBody,postBodyFormat:n.postBodyFormat||"JSON",onTimeout:function(){n.onTimeout()},
onFetchTimeout:n.onTimeout,onSuccess:function(X,d){if(n.onSuccess)n.onSuccess(d)},
onFetchSuccess:function(X){if(n.onSuccess)n.onSuccess(X)},
onError:function(X,d){if(n.onError)n.onError(d)},
onFetchError:function(X){if(n.onError)n.onError(X)},
timeout:n.timeout,withCredentials:!0,compress:n.compress};B.headers["Content-Type"]||(B.headers["Content-Type"]="application/json");var A="";(N=W.config_.innertubeHostOverride)&&(A=N);var w=W.config_.innertubeUseThirdPartyAuth||!1,x=_.f6m(w,A,n);Object.assign(B.headers,x);B.headers.Authorization&&!A&&w&&(B.headers["x-origin"]=window.location.origin);var E=_.yK(A+("/youtubei/"+W.config_.innertubeApiVersion+"/"+k),{alt:"json"}),a=function(X){X=X===void 0?!1:X;var d;if(n.retry&&A!="www.youtube-nocookie.com"&&
(X||_.m("skip_ls_gel_retry")||B.headers["Content-Type"]!=="application/json"||(d=THX(k,C,x,w)),d)){var V=B.onSuccess,c=B.onFetchSuccess;B.onSuccess=function(e,u){qC3(d);V(e,u)};
C.onFetchSuccess=function(e,u){qC3(d);c(e,u)}}try{if(X&&n.retry&&!n.networklessOptions.bypassNetworkless)B.method="POST",n.networklessOptions.writeThenSend?_.UL2().writeThenSend(E,B):_.UL2().sendAndWrite(E,B);
else if(n.compress){var M=!n.networklessOptions.writeThenSend;if(B.postBody){var p=B.postBody;typeof p!=="string"&&(p=JSON.stringify(B.postBody));vrm(E,p,B,_.hj,M)}else vrm(E,JSON.stringify(B.postParams),B,Rd4,M)}else _.m("web_all_payloads_via_jspb")?_.hj(E,B):Rd4(E,B)}catch(e){if(e.name==="InvalidAccessError")d&&(qC3(d),d=0),_.pS(Error("fd"));else throw e;}d&&_.wI(_.aM,function(){Usm(W)},5E3)};
_.Sim()?RVm().then(function(X){a(X)}):a(!1)};var G0P=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(G0P,_.US);G0P.prototype.getIndex=function(){return zv(this,2)};
G0P.prototype.setIndex=function(W){return _.AB(this,2,W)};var OYY=0,QE2=_.Nb?"webkit":_.nr?"moz":_.Cr?"ms":SHX?"o":"";_.$g("ytDomDomGetNextId",_.QK("ytDomDomGetNextId")||function(){return++OYY});var LQ2={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},$1=function(W){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(W=
W||window.event){this.event=W;for(var k in W)k in LQ2||(this[k]=W[k]);this.scale=W.scale;this.rotation=W.rotation;var C=W.target||W.srcElement;C&&C.nodeType==3&&(C=C.parentNode);this.target=C;var n=W.relatedTarget;if(n)try{n=n.nodeName?n:null}catch(N){n=null}else this.type=="mouseover"?n=W.fromElement:this.type=="mouseout"&&(n=W.toElement);this.relatedTarget=n;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(N){}},jAs=function(W){if(document.body&&document.documentElement){var k=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+k}};
$1.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
$1.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
$1.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yw=_.NX.ytEventsEventsListeners||{};_.$g("ytEventsEventsListeners",yw);var y7K=_.NX.ytEventsEventsCounter||{count:0};_.$g("ytEventsEventsCounter",y7K);var $NP=_.FH(function(){var W=!1;try{var k=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,k)}catch(C){}return W});_.Pq(RM,_.XK);RM.prototype.onMouseMove_=function(W){W.pageX_===void 0&&jAs(W);var k=W.pageX_;W.pageY_===void 0&&jAs(W);this.position_=new _.S3(k,W.pageY_)};
RM.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.oX)();if(this.previousTime_!=0){var k=this.previousPosition_,C=this.position_,n=k.x-C.x;k=k.y-C.y;n=Math.sqrt(n*n+k*k)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((n-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(C=k=0;C<4;C++)k+=this.cycles_[C]||0;k>=3&&this.callback_();this.previousVelocity_=n}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
RM.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Ziw(this.mouseListenerKey_)};var Ty2={};var rWm=new _.r("rawColdConfigGroup");var Hn3=new _.r("rawHotConfigGroup");var HYb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(HYb,_.US);var sy3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(sy3,_.US);var FP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W,500)};
_.D(FP,_.US);FP.prototype.getPayloadCase=function(){return _.aU(this,rAz)};
FP.prototype.getContext=function(){return _.q7(this,sy3,33)};
var rAz=[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 qJz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(qJz,_.US);var ffp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(ffp,_.US);ffp.prototype.setVideoId=function(W){return kI(this,1,dEz,wZ(W))};
ffp.prototype.getPlaylistId=function(){return _.FK(this,Bx(this,dEz,2))};
var dEz=[1,2];var $EI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D($EI,_.US);$EI.prototype.getContext=function(){return _.q7(this,CM,1)};
$EI.prototype.getTier=function(){return _.Jp(this,7)};var ges,ue,Lv;ges=_.NX.ytPubsubPubsubInstance||new _.kg;ue=_.NX.ytPubsubPubsubSubscribedKeys||{};Lv=_.NX.ytPubsubPubsubTopicToKeys||{};_.qiw=_.NX.ytPubsubPubsubIsSynchronous||{};_.kg.prototype.subscribe=_.kg.prototype.subscribe;_.kg.prototype.unsubscribeByKey=_.kg.prototype.unsubscribeByKey;_.kg.prototype.publish=_.kg.prototype.publish;_.kg.prototype.clear=_.kg.prototype.clear;_.$g("ytPubsubPubsubInstance",ges);_.$g("ytPubsubPubsubTopicToKeys",Lv);_.$g("ytPubsubPubsubIsSynchronous",_.qiw);
_.$g("ytPubsubPubsubSubscribedKeys",ue);var H$=window;var dD=_.m("web_enable_lifecycle_monitoring")&&jEI()!==0,Pd8=_.m("web_enable_lifecycle_monitoring");var hBs=function(W){var k=this;var C=C===void 0?0:C;var n=n===void 0?_.D7():n;this.JSC$8673_defaultPriority=C;this.scheduler=n;this.completedResolver=new _.gn;this.scheduledPayloads=W;for(W={i$jscomp$529:0};W.i$jscomp$529<this.scheduledPayloads.length;W={payload$jscomp$18:void 0,i$jscomp$529:W.i$jscomp$529},W.i$jscomp$529++)W.payload$jscomp$18=this.scheduledPayloads[W.i$jscomp$529],C=function(N){return function(){N.payload$jscomp$18.job();k.scheduledPayloads[N.i$jscomp$529].processed=!0;k.scheduledPayloads.every(function(B){return B.processed===
!0})&&k.completedResolver.resolve()}}(W),n=this.scheduler.addJob(C,KQ2(this,W.payload$jscomp$18)),this.scheduledPayloads[W.i$jscomp$529]=Object.assign({},W.payload$jscomp$18,{job:C,
jobId:n})};
hBs.prototype.flushJobs=function(){var W=this,k=Array.from(this.scheduledPayloads.keys()).sort(function(n,N){return KQ2(W,W.scheduledPayloads[N])-KQ2(W,W.scheduledPayloads[n])});
k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=this.scheduledPayloads[C.value],C.jobId===void 0||C.processed||(this.scheduler.cancelJob(C.jobId),this.scheduler.addJob(C.job,10))};
hBs.prototype.cancel=function(){for(var W=_.b(this.scheduledPayloads),k=W.next();!k.done;k=W.next())k=k.value,k.jobId===void 0||k.processed||this.scheduler.cancelJob(k.jobId),k.processed=!0;this.completedResolver.resolve()};
var KQ2=function(W,k){var C;return(C=k.priority)!=null?C:W.JSC$8673_defaultPriority};var mf=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};dD&&Hi2(this.state)};
mf.prototype.install=function(W){this.plugins.push(W);return this};
mf.prototype.uninstall=function(){var W=this;_.v6.apply(0,arguments).forEach(function(k){k=W.plugins.indexOf(k);k>-1&&W.plugins.splice(k,1)})};
mf.prototype.transition=function(W,k){var C=this;dD&&r7m(this.state);var n=this.transitions.find(function(B){return Array.isArray(B.from)?B.from.find(function(A){return A===C.state&&B.to===W}):B.from===C.state&&B.to===W});
if(n){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);WIC(this,W,k);this.state=W;dD&&Hi2(this.state);n=n.action.bind(this);var N=this.plugins.filter(function(B){return B[W]}).map(function(B){return B[W]});
n(kDS(this,N),k)}else throw Error("gd`"+this.state+"`"+W);};
var kDS=function(W,k){var C=k.filter(function(N){return CWS(W,N)===10}),n=k.filter(function(N){return CWS(W,N)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var N=_.v6.apply(0,arguments);return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.runImmediateJobsAsync.apply(W,[C].concat(_.J8(N))),2);W.setJobSetWithScheduledJobs.apply(W,[n].concat(_.J8(N)));_.ab(B)})}:function(){var N=_.v6.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[C].concat(_.J8(N)));W.setJobSetWithScheduledJobs.apply(W,[n].concat(_.J8(N)))}};
mf.prototype.runImmediateJobsSync=function(W){var k=_.v6.apply(1,arguments);_.D7();for(var C=_.b(W),n=C.next(),N={};!n.done;N={lifecycle$jscomp$2:void 0},n=C.next())N.lifecycle$jscomp$2=n.value,RE(function(B){return function(){nQA(B.lifecycle$jscomp$2.name);P6m(function(){return B.lifecycle$jscomp$2.callback.apply(B.lifecycle$jscomp$2,_.J8(k))});
z$(B.lifecycle$jscomp$2.name)}}(N))};
mf.prototype.runImmediateJobsAsync=function(W){var k=_.v6.apply(1,arguments),C,n,N,B;return _.F(function(A){A.nextAddress==1&&(_.D7(),C=_.b(W),n=C.next(),N={});if(A.nextAddress!=3){if(n.done)return A.jumpTo(0);N.lifecycle$jscomp$3=n.value;N.asyncJobCompletion=void 0;B=function(w){return function(){nQA(w.lifecycle$jscomp$3.name);var x=P6m(function(){return w.lifecycle$jscomp$3.callback.apply(w.lifecycle$jscomp$3,_.J8(k))});
Yum(x)?w.asyncJobCompletion=_.m("web_lifecycle_error_handling_killswitch")?x.then(function(){z$(w.lifecycle$jscomp$3.name)}):x.then(function(){z$(w.lifecycle$jscomp$3.name)},function(E){gfw(E);
z$(w.lifecycle$jscomp$3.name)}):z$(w.lifecycle$jscomp$3.name)}}(N);
RE(B);return N.asyncJobCompletion?_.l(A,N.asyncJobCompletion,3):A.jumpTo(3)}N={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};n=C.next();return A.jumpTo(2)})};
mf.prototype.setJobSetWithScheduledJobs=function(W){var k=_.v6.apply(1,arguments),C=this,n=W.map(function(N){return{job:function(){nQA(N.name);P6m(function(){return N.callback.apply(N,_.J8(k))});
z$(N.name)},
priority:CWS(C,N)}});
n.length&&(this.jobSet=new hBs(n))};
var CWS=function(W,k){var C,n;return(n=(C=W.overridePriority)!=null?C:k.priority)!=null?n:0},nQA=function(W){dD&&W&&Hi2(W)},z$=function(W){dD&&W&&r7m(W)},WIC=function(W,k,C){Pd8&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+k+"'"),console.log("with message: ",C),console.groupEnd())};
_.oq.Object.defineProperties(mf.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var N88=function(W){mf.call(this,W===void 0?"none":W);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(){}}]},Yrx;
_.D(N88,mf);N88.prototype.runApplicationNavigationBegin=function(W,k){var C=this;this.navigationTimer=_.wI(_.aM,function(){C.currentState==="application_navigating"&&C.transition("none")},5E3);
W(k==null?void 0:k.event)};
N88.prototype.runApplicationNavigationEnd=function(W,k){this.navigationTimer&&(_.aM.cancelJob(this.navigationTimer),this.navigationTimer=null);W(k==null?void 0:k.event)};
_.jhc=function(){Yrx||(Yrx=new N88);return Yrx};var L0K=[];_.$g("yt.logging.transport.getScrapedGelPayloads",function(){return L0K});var gK=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
gK.prototype.storePayload=function(W,k){W=K82(W);this.store[W]?this.store[W].push(k):(this.memoizedKeySequences={},this.store[W]=[k]);this.totalEntries++;_.m("more_accurate_gel_parser")&&(k=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(k));return W};
gK.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var k=B8S(this,W.keys.splice(0,1)[0]),C=[],n=0;n<k.length;n++)this.store[k[n]]&&W.sizeLimit&&(this.store[k[n]].length<=W.sizeLimit?(C.push.apply(C,_.J8(this.store[k[n]])),delete this.store[k[n]]):C.push.apply(C,_.J8(this.store[k[n]].splice(0,W.sizeLimit))));this.totalEntries-=C.length;(W==null?0:W.sizeLimit)&&C.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=C.length,C.push.apply(C,_.J8(this.smartExtractMatchingEntries(W))));
return C};
gK.prototype.extractMatchingEntries=function(W){W=B8S(this,W);for(var k=[],C=0;C<W.length;C++)this.store[W[C]]&&(k.push.apply(k,_.J8(this.store[W[C]])),delete this.store[W[C]]);this.totalEntries-=k.length;return k};
gK.prototype.getSequenceCount=function(W){W=B8S(this,W);for(var k=0,C=0;C<W.length;C++){var n=void 0;k+=((n=this.store[W[C]])==null?void 0:n.length)||0}return k};
var B8S=function(W,k){var C=K82(k);if(W.memoizedKeySequences[C])return W.memoizedKeySequences[C];var n=Object.keys(W.store)||[];if(n.length<=1&&K82(k)===n[0])return n;for(var N=[],B=0;B<n.length;B++){var A=n[B].split("/");if(bBb(k.auth,A[0])){var w=k.isJspb;bBb(w===void 0?"undefined":w?"true":"false",A[1])&&bBb(k.cttAuthInfo,A[2])&&(w=k.tier,w=w===void 0?"undefined":JSON.stringify(w),bBb(w,A[3])&&N.push(n[B]))}}return W.memoizedKeySequences[C]=N},bBb=function(W,k){return W===void 0||W==="undefined"?
!0:W===k};
gK.prototype.getSequenceCount=gK.prototype.getSequenceCount;gK.prototype.extractMatchingEntries=gK.prototype.extractMatchingEntries;gK.prototype.smartExtractMatchingEntries=gK.prototype.smartExtractMatchingEntries;gK.prototype.storePayload=gK.prototype.storePayload;var MrX,Ifp,Qh2,hE,AQS,hx2,K03,cWP,JWX,lfz,SJw,UE2,zxm;MrX=_.Oe("initial_gel_batch_timeout",2E3);Ifp=_.Oe("gel_queue_timeout_max_ms",6E4);Qh2=_.Oe("gel_min_batch_size",5);hE=void 0;AQS=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
hx2=new AQS;K03=new AQS;cWP=new AQS;JWX=new AQS;SJw=!0;UE2=1;_.u84=new Map;zxm=_.NX.ytLoggingTransportTokensToCttTargetIds_||{};_.$g("ytLoggingTransportTokensToCttTargetIds_",zxm);var mE2=_.NX.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.$g("ytLoggingTransportTokensToJspbCttTargetIds_",mE2);var Kv={};var lT=_.NX.ytLoggingGelSequenceIdObj_||{};_.$g("ytLoggingGelSequenceIdObj_",lT);var njX=[];var aic=new Set,Ayw=0,mjI=0,dj3=0,wBw=[],FkP=[],zb3=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Gn2=function(){};
Gn2.prototype.getUrl=function(W,k){k=k===void 0?!1:k;return W.hasOwnProperty("shareEndpoint")?null:_.cyw(W,null,k)};
var iC3=function(W,k,C){W={endpoint:k,actions:[]};C=(C.path?C.path[0]:C.target).icon||"";k=C.indexOf(":");k>0&&(C=C.substr(k+1));C&&W.actions.push(C);return W};var vj2=/Command$/,pBw=/Endpoint$/,SxX=new Map;var FIZ,wN2;FIZ=1;_.vx=function(){this.actionRoutingMap=new Map};
_.vx.prototype.triggerAction=function(W){var k=new FFX(W,!1,_.v6.apply(1,arguments));this.handleAction(k);return k.returnValue};
_.vx.prototype.triggerOptionalAction=function(W){var k=new FFX(W,!0,_.v6.apply(1,arguments));this.handleAction(k);return k.returnValue};
_.Dm=function(W,k,C){k.forEach(function(n){var N=QSw(n);N&&W.triggerOptionalAction(N,n,C,void 0)})};
_.vx.prototype.handleAction=function(W){var k=this.actionRoutingMap.get(W.actionName);k&&wN2(W,k);W.optionalAction||W.returnValue.length!==0||(W=new _.AM("Unhandled action",W.actionName),_.pS(W))};
wN2=function(W,k){k.forEach(function(C){var n=null;C?n=C.apply(null,W.args):(C=Error("hd"),C.params=W.actionName,_.I4(C));W.returnValue.push(n)})};
_.e6=function(W,k,C){C||(C=FIZ++);for(var n=_.b(Object.keys(k)),N=n.next();!N.done;N=n.next()){N=N.value;var B=W.actionRoutingMap.get(N);B||(B=new Map,W.actionRoutingMap.set(N,B));W.registerActionHandler(C,N,k[N],B)}return C};
_.vx.prototype.registerActionHandler=function(W,k,C,n){n.set(W,_.MI(C))};
_.sK=function(W,k,C){k=_.b(Object.keys(k));for(var n=k.next();!n.done;n=k.next())(n=W.actionRoutingMap.get(n.value))&&n.delete(C)};
_.rk(_.vx);var ZXm=function(W,k){var C=_.vx.getInstance();_.Ee(function(){var n={},N=_.e6(C,(n[W]=k,n));_.fy(function(){var B={};_.sK(C,(B[W]="",B),N)})})};var T74=function(W,k,C){_.Ee(function(){var n=W.value;n?(n.addEventListener(k,C,void 0),_.fy(function(){n?n.removeEventListener(k,C,void 0):qxm(W)})):qxm(W)})};L5m=DL4;var W4p=new Set(["For","If","Match","Watch"]),xlC={},lr2=(xlC[V7.default]=function(){return itw},xlC.style=function(){return itw},xlC),to8;
for(to8 in lr2)j_.attributes[to8]=lr2[to8](j_.attributes[to8]);var qP=new _.Tc("VISIBILITY_OBSERVER");var wGX={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?NKw(this,this.id):n1w}};var EQC=function(W,k,C){if(W!==R9)return!1;W=HXz(document.createElement("div"),function(){var n=uR(!1);try{C[0]()}finally{uR(n)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var arb=function(W){W=W.clone();LK8(W);w1(W,"dg",null);w1(W,"d","0");qhs(W,null);uVx(W,null);w1(W,"ichc","0");return W},XNS=!0,frI=function(W,k,C){var n=C===void 0?{}:C;
C=n.cssRowKey===void 0?void 0:n.cssRowKey;var N=n.combinedSignature===void 0?void 0:n.combinedSignature;var B=n.extraEdges===void 0?void 0:n.extraEdges;n=n.callback===void 0?void 0:n.callback;w1(W,"m",k.join(","));B&&OHA(W,B);C&&(w1(W,"ck",C),N?w1(W,"rs",N):XNS&&(XNS=!1));if(n){if(n!=null&&!rMZ.test(n))throw Error("ab`"+n);w1(W,"cb",n)}W=W.toString();_.AK(W,"/")&&(W=fAA(document.location.href)+W);return _.to(W)};var mlS=function(W){return dl8(W).then(function(k){return JSON.parse(k.responseText)})},dl8=function(W){var k={},C=k.xmlHttpFactory?k.xmlHttpFactory.createInstance():xD8.createInstance();
return(new _.Wx(function(n,N){var B;try{C.open("GET",W,!0)}catch(x){N(new V_("Error opening XHR: "+x.message,W,C))}C.onreadystatechange=function(){if(C.readyState==4){_.NX.clearTimeout(B);var x;!(x=wf2(C.status))&&(x=C.status===0)&&(x=XYs(W),x=!(x=="http"||x=="https"||x==""));x?n(C):N(new zd8(C.status,W,C))}};
C.onerror=function(){N(new V_("Network error",W,C))};
if(k.headers)for(var A in k.headers){var w=k.headers[A];w!=null&&C.setRequestHeader(A,w)}k.withCredentials&&(C.withCredentials=k.withCredentials);k.responseType&&(C.responseType=k.responseType);k.mimeType&&C.overrideMimeType(k.mimeType);k.timeoutMs>0&&(B=_.NX.setTimeout(function(){C.onreadystatechange=function(){};
C.abort();N(new Dl8(W,C))},k.timeoutMs));
try{C.send(null)}catch(x){C.onreadystatechange=function(){},_.NX.clearTimeout(B),N(new V_("Error sending XHR: "+x.message,W,C))}})).thenCatch(function(n){n instanceof _.ve&&C.abort();
throw n;})},V_=function(W,k,C){_.Ww.call(this,W+", url="+k);
this.url=k;this.xhr=C};
_.Pq(V_,_.Ww);V_.prototype.name="XhrError";var zd8=function(W,k,C){V_.call(this,"Request Failed, status="+W,k,C);this.status=W};
_.Pq(zd8,V_);zd8.prototype.name="XhrHttpError";var Dl8=function(W,k){V_.call(this,"Request timed out",W,k)};
_.Pq(Dl8,V_);Dl8.prototype.name="XhrTimeoutError";Hq=Hq||{};var Jk=function(){_.XK.call(this)};
_.Pq(Jk,_.XK);Jk.prototype.initialize=function(){};var Vos=function(W,k){this.fn_=W;this.handler_=k};
Vos.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
Vos.prototype.abort=function(){this.handler_=this.fn_=null};var c0=function(W,k){_.XK.call(this);this.deps_=W;this.JSC$8800_id_=k;this.onloadCallbacks_=[];this.JSC$8800_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Pq(c0,_.XK);c0.prototype.moduleConstructor_=Jk;c0.prototype.module_=null;c0.prototype.getId=function(){return this.JSC$8800_id_};
c0.prototype.registerCallback=function(W,k){return JQZ(this.onloadCallbacks_,W,k)};
var cQs=function(W,k){JQZ(W.JSC$8800_onErrorCallbacks_,k)},JQZ=function(W,k,C){k=new Vos(k,C);
W.push(k);return k};
c0.prototype.isLoaded=function(){return!!this.module_};
c0.prototype.onLoad=function(W){var k=new this.moduleConstructor_;k.initialize(W());this.module_=k;k=(k=!!Irz(this.earlyOnloadCallbacks_,W()))||!!Irz(this.onloadCallbacks_,W());k||(this.JSC$8800_onErrorCallbacks_.length=0);return k};
c0.prototype.onError=function(W){(W=Irz(this.JSC$8800_onErrorCallbacks_,W))&&Yz(Error("nd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Irz=function(W,k){for(var C=[],n=0;n<W.length;n++)try{W[n].execute(k)}catch(N){Yz(N),C.push(N)}W.length=0;return C.length?C:null};
c0.prototype.disposeInternal=function(){c0.superClass_.disposeInternal.call(this);_.LU(this.module_)};var Srs,szs,vQI,eds,QzZ,pNA,Rdz,$lY,ZBY;
_.SF=function(W,k,C,n,N){n=n===void 0?!1:n;N=N===void 0?!1:N;var B=B===void 0?!0:B;this.scsReferenceUrl_=LN(_.Ez(W).toString(),B);this.cssRowKey_=k;this.combinedSignature_=C;this.useNegativeLoading_=n;this.requestedModuleMap_={};this.JSC$8803_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=F$(this.scsReferenceUrl_,"excm"))?W.split(","):[];this.shouldScanForCss_=N;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;DqJ();this.logger=null;_.IV(this,U7s(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Srs=function(W,k){if(k.href||k.getAttribute("data-href"))if(k=k.href||k.getAttribute("data-href"),f32(k)&&!LN(k).urlPrefix_.endsWith("_/js/")){k=U7s(LN(k));k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,W.loadedCssModuleList_.includes(C)||W.loadedCssModuleList_.push(C)}};
_.SF.prototype.JSC$8805_loadModules=function(W,k,C){var n=C===void 0?{}:C;C=n.extraEdges;var N=n.onError;var B=n.onSuccess;n=n.forceReload;this.JSC$8803_moduleInfoMap_=k;if(!W)throw Error("od");if(this.shouldScanForCss_){k=_.b(document.getElementsByTagName("style"));for(var A=k.next();!A.done;A=k.next())Srs(this,A.value);k=_.b(document.getElementsByTagName("link"));for(A=k.next();!A.done;A=k.next())Srs(this,A.value)}MoC(this,QzZ(this,W),C,N,B,n)};
var MoC=function(W,k,C,n,N,B){n=n===void 0?function(){}:n;
N=N===void 0?function(){}:N;
B=B===void 0?!1:B;pNA(W,k,function(A,w,x){x=x===void 0?w:x;W.enableFallbackFetch&&B?W.loadWithFetch(A,w,n,N,x):W.load(A,w,n,N,x,C)},C)||n(-1)};
_.SF.prototype.loadWithFetch=function(){_.F(function(){throw Error("pd");})};
_.SF.prototype.maybeSetAdditionalFields=function(){};
szs=function(W,k,C){if(W.useNegativeLoading_){var n=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:C,requestedModuleIds:vQI(W),requestedCssModuleIds:eds(W)};var N=W===void 0?{}:W;W=N.requestedModuleIds===void 0?[]:N.requestedModuleIds;C=N.requestedCssModuleIds===void 0?[]:N.requestedCssModuleIds;var B=N.cssRowKey===void 0?void 0:N.cssRowKey;var A=N.combinedSignature===void 0?void 0:N.combinedSignature;var w=N.extraEdges===void 0?void 0:N.extraEdges;
N=N.callback===void 0?void 0:N.callback;n=arb(n);w1(n,"d","1");qhs(n,W);uVx(n,C);k=frI(n,k,{cssRowKey:B,combinedSignature:A,extraEdges:w,callback:N})}else n=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:vQI(W),requestedCssModuleIds:eds(W)},w=W===void 0?{}:W,W=w.requestedCssModuleIds===void 0?[]:w.requestedCssModuleIds,C=w.cssRowKey===void 0?void 0:w.cssRowKey,B=w.combinedSignature===void 0?void 0:w.combinedSignature,A=w.extraEdges===void 0?
void 0:w.extraEdges,w=w.callback===void 0?void 0:w.callback,n=arb(n),uVx(n,W),k=frI(n,k,{cssRowKey:C,combinedSignature:B,extraEdges:A,callback:w});return k};
_.IV=function(W,k){for(var C=!1,n=[],N=0;N<k.length;++N){var B=k[N];W.requestedModuleMap_[B]||(W.requestedModuleMap_[B]=!0,W.requestedModuleList_.push(B),C=!0,n.push(B))}C&&(W.requestedModuleListSorted_=!1)};
_.MF=function(W,k){for(var C=[],n=0;n<k.length;++n){var N=k[n];W.requestedModuleMap_[N]&&(delete W.requestedModuleMap_[N],_.iw(W.requestedModuleList_,N),C.push(N))}};
_.SF.prototype.load=function(W,k,C,n,N){N=N===void 0?k:N;_.Ez(W);var B=this.useCors_,A=this.corsMode_,w=this.fetchPriority,x=_.wu("SCRIPT");_.LL(x,W);B&&(x.crossOrigin=A);x.async=!1;w&&x.setAttribute("fetchpriority",w);_.IV(this,k);_.GDz(this,W,x,k,C,n,N)};
_.GDz=function(W,k,C,n,N,B,A){A=A===void 0?n:A;W.lastScript_=C;W.insertPos.insertBefore(C,W.insertPos.firstChild);_.yQZ(C,n,function(){C.parentElement.removeChild(C);W.lastScript_==C&&(W.lastScript_=null);var w=new Set;n.map(function(E){return w.add(E)});
for(var x in W.JSC$8803_moduleInfoMap_)W.JSC$8803_moduleInfoMap_[x].isLoaded()&&w.add(x);Array.from(w);B()},function(w){C.parentElement.removeChild(C);
W.lastScript_==C&&(W.lastScript_=null);_.MF(W,w);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){N(-1,k)}):N(-1,k)},A)};
_.yQZ=function(W,k,C,n,N){N=N===void 0?k:N;var B=k.length,A=function(){B=0;W.onload=null;W.onerror=null;w=function(){}},w=function(){A();
var E=N.filter(function(a){return!VQ().getModuleInfo(a).isLoaded()});
E.length!==0?n(E,"Response was successful but was missing module(s) "+E+"."):C()},x=function(){B--;
B==0&&w()};
k.forEach(function(E){E=VQ().getModuleInfo(E);E.isLoaded()?x():(JQZ(E.earlyOnloadCallbacks_,x),cQs(E,x))});
W.onload=function(){return w()};
W.onerror=function(){A();n(k)}};
vQI=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
eds=function(W){W=W.loadedCssModuleList_;W.sort();return W};
QzZ=function(W,k){return k.filter(function(C){return!W.requestedModuleMap_[C]})};
pNA=function(W,k,C,n){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){pNA(W,k,C,n)}),!0;
if(!W.useNegativeLoading_){var N=[],B=Object.assign({},W.requestedModuleMap_);$lY(W,k,function(a){N.push(a.getId())},n,function(a){return!a.isLoaded()},B);
k=N}for(B=0;B<k.length;){for(var A=k.length-B,w=B==0?k:k.slice(B,k.length),x=szs(W,w,n),E=_.Ez(x).toString();E.length>W.urlMaxLength;)if(A>1)A-=Math.ceil((E.length-W.urlMaxLength)/6),A=Math.max(A,1),w=k.slice(B,B+A),x=szs(W,w,n),E=_.Ez(x).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=ZBY(W).then(function(a){Rdz(W,a,n)}),pNA(W,k.slice(B),C,n)):!1;
B+=A;W.useNegativeLoading_?C(x,w):C(x,w,B===k.length?k:[])}return!0};
Rdz=function(W,k,C){VQ().setAllModuleInfoString((k||{}).moduleGraph);$lY(W,vQI(W),function(n){_.IV(W,[n.getId()])},C);
W.pendingModuleGraphUpdate_=null};
$lY=function(W,k,C,n,N,B){B=B===void 0?{}:B;var A=VQ();k=_.b(k);for(var w=k.next();!w.done;w=k.next()){w=w.value;var x=A.getModuleInfo(w);if(!(B[w]||N&&!N(x))){B[w]=!0;var E=x.deps_||[];if(n){var a=[];n[w]&&(a=Object.keys(n[w]));E=E.concat(a)}$lY(W,E,C,n,N,B);C(x)}}};
ZBY=function(W){W=W.scsReferenceUrl_.clone();LK8(W);w1(W,"dg",null);w1(W,"md","1");return mlS(W.toString())};var tyz=new Uint8Array(123);var oQ2=[];var iBs=function(){this.JSC$7927_loader_=null};
_.Y=iBs.prototype;_.Y.setBatchModeEnabled=function(){};
_.Y.setAllModuleInfoString=function(){};
_.Y.addExtraEdge=function(){throw Error("qd");};
_.Y.removeExtraEdge=function(){throw Error("rd");};
_.Y.getModuleContext=function(){return null};
_.Y.isActive=function(){return!1};
_.Y.isUserActive=function(){return!1};
_.Y.registerCallback=function(){};var Q_=function(W,k,C,n){this.type=W;this.status=k;this.requestedModuleIds=C;this.url=n};
Q_.prototype.toString=function(){return T8s(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var T8s=function(W){switch(W.type){case Q_.JSC$8815_Type.UNAUTHORIZED:return"Unauthorized";case Q_.JSC$8815_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Q_.JSC$8815_Type.TIMEOUT:return"Timed out";case Q_.JSC$8815_Type.OLD_CODE_GONE:return"Out of date module id";case Q_.JSC$8815_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
Hq.ModuleLoadFailure=Q_;Hq.ModuleLoadFailure.JSC$8815_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var p_=function(){this.moduleIds_=this.JSC$7927_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8818_extraEdges_={};this.JSC$8818_callbackMap_={};this.JSC$8818_currentlyLoadingModule_=this.baseModuleInfo_=new c0([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new yA;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Pq(p_,iBs);var qrA=function(W,k){_.Ww.call(this,"Error loading "+W+": "+k)};
_.Pq(qrA,_.Ww);p_.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
p_.prototype.setAllModuleInfoString=function(W,k){if(!(this instanceof p_))this.setAllModuleInfoString(W,k);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var C=[],n=0,N=W.indexOf("/"),B=0,A=!1,w=0;;){var x=A?W.substring(B):W.substring(B,N);if(x.length===0)n++,B="sy"+n.toString(36),x=[];else{var E=x.indexOf(":");if(E<0)B=x,x=[];else if(E===x.length-1)B=x.substring(0,E),x=Array(C[w-1]);else{B=x.substring(0,E);x=x.substring(E+1).split(",");E=w;for(var a=0;a<x.length;a++)E-=
x[a].length===0?1:Number(x[a]),x[a]=C[E]}E=0;if(B.length===0)E=1;else if(B.charAt(0)==="+"||B.charAt(0)==="-")E=Number(B);E!==0&&(n+=E,B="sy"+n.toString(36))}C.push(B);ulI(this,B,x);if(A)break;B=N+1;N=W.indexOf("/",B);N===-1&&(A=!0);w++}this.moduleIds_=C}else if(W.startsWith("p$"))UlI(this,W);else{W=W.split("/");C=[];for(n=0;n<W.length;n++){w=W[n].split(":");N=w[0];A=[];if(w[1])for(A=w[1].split(","),w=0;w<A.length;w++)A[w]=C[parseInt(A[w],36)];C.push(N);ulI(this,N,A)}this.moduleIds_=C}k&&k.length?
(_.uw(this.loadingModuleIds_,k),this.lastInitialModuleId_=_.pI(k)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8818_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8818_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.fN)(this.getModuleContext,this))&&OBC(this,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.INIT_ERROR)),v0(this))}};
var UlI=function(W,k){var C=k.substring(2);for(k=0;k<64;k++)tyz["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(k)]=k;var n={buf:C,pos:0};OK(n);var N=OK(n),B=OK(n)+1;k=Array(N);var A=Array(N),w=Array(N);B=Array(B);var x=0,E=0,a=n.pos,X=n.buf.indexOf("|",n.pos);n.pos=X+1;for(X=0;X<N;X++){var d=OK(n),V=d&2,c=d&1;d>>>=2;c?(x+=d>>>1^-(d&1),d="sy"+x.toString(36)):(c=a,a+=d,d=C.substring(c,a));k[X]=d;V&&(B[E++]=d)}B[E]="";E=N&-2;C=N&1;for(x=0;x<E;x+=2)a=ExK(n),w[x]=a&7,w[x+
1]=a>>>3&7;C&&(C=ExK(n),w[E]=C&7);for(E=0;E<N;E++)w[E]===7&&(w[E]=OK(n));for(C=E=0;C<N;C++){x=w[C];a=x===0?oQ2:Array(x);A[C]=a;X=E;for(V=0;V<x;V++)X-=OK(n),a[V]=B[X];B[E]===k[C]&&E++}for(n=0;n<k.length;n++)ulI(W,k[n],A[n]);W.moduleIds_=k};
_.Y=p_.prototype;_.Y.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.Y.addExtraEdge=function(W,k){var C=this.getModuleInfo(W);C&&C.isLoaded()?this.load(k):(this.JSC$8818_extraEdges_[W]||(this.JSC$8818_extraEdges_[W]={}),this.JSC$8818_extraEdges_[W][k]=!0)};
_.Y.removeExtraEdge=function(W,k){if(this.JSC$8818_extraEdges_[W]){delete this.JSC$8818_extraEdges_[W][k];for(var C in this.JSC$8818_extraEdges_[W])return;delete this.JSC$8818_extraEdges_[W]}};
_.Y.isActive=function(){return this.loadingModuleIds_.length>0};
_.Y.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var v0=function(W){var k=W.lastActive_,C=W.isActive();C!=k&&(W.executeCallbacks_(C?"active":"idle"),W.lastActive_=C);k=W.isUserActive();k!=W.userLastActive_&&(W.executeCallbacks_(k?"userActive":"userIdle"),W.userLastActive_=k)},ulI=function(W,k,C){W.moduleInfoMap[k]?(W=W.moduleInfoMap[k].deps_,W!=C&&W.splice.apply(W,[0,
W.length].concat(_.J8(C)))):W.moduleInfoMap[k]=new c0(C,k)},jz8=function(W,k,C){var n=[];
IXX(k,n);k=[];for(var N={},B=0;B<n.length;B++){var A=n[B],w=W.getModuleInfo(A);if(!w)throw Error("sd`"+A);var x=new yA;N[A]=x;w.isLoaded()?x.callback(null):(LII(W,A,w,!!C,x),W.isModuleLoading(A)||k.push(A))}k.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(k):(W.requestedModuleIdsQueue_.push(k),v0(W)));return N},LII=function(W,k,C,n,N){C.registerCallback(N.callback,N);
cQs(C,function(B){N.errback(new qrA(k,B))});
W.isModuleLoading(k)?n&&(HBA(W,k),v0(W)):n&&HBA(W,k)};
p_.prototype.loadModules_=function(W,k,C){var n=this;k||(this.consecutiveFailures_=0);var N=rQ8(this,W);this.loadingModuleIds_=N;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.T4(N);v0(this);if(N.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,N);if(Object.keys(this.JSC$8818_extraEdges_).length>0&&!this.JSC$7927_loader_.supportsExtraEdges)throw Error("td");W=(0,_.fN)(this.JSC$7927_loader_.JSC$8805_loadModules,this.JSC$7927_loader_,_.T4(N),this.moduleInfoMap,{extraEdges:this.JSC$8818_extraEdges_,
forceReload:!!C,onError:function(B,A){var w=n.requestedLoadingModuleIds_;B=B!=null?B:void 0;n.consecutiveFailures_++;var x=_.T4(N);n.requestedLoadingModuleIds_=w;N.forEach(_.lW(_.iw,n.requestedModuleIds_),n);B==401?(OBC(n,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.UNAUTHORIZED,B)),n.requestedModuleIdsQueue_.length=0):B==410?(gQA(n,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.OLD_CODE_GONE,B)),PWZ(n)):n.consecutiveFailures_>=3?(gQA(n,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.CONSECUTIVE_FAILURES,
B,x,A)),PWZ(n)):n.loadModules_(n.requestedLoadingModuleIds_,!0,B==8001||!1)},
onTimeout:(0,_.fN)(this.handleLoadTimeout_,this)});(k=Math.pow(this.consecutiveFailures_,2)*5E3)?_.NX.setTimeout(W,k):W()}};
var rQ8=function(W,k){k=k.filter(function(N){return W.moduleInfoMap[N].isLoaded()?(_.NX.setTimeout(function(){return Error("ud`"+N)},0),!1):!0});
for(var C=[],n=0;n<k.length;n++)C=C.concat(KIZ(W,k[n]));IXX(C);return!W.batchModeEnabled_&&C.length>1?(k=C.shift(),W.requestedModuleIdsQueue_=C.map(function(N){return[N]}).concat(W.requestedModuleIdsQueue_),[k]):C},KIZ=function(W,k){var C=_.JU.createSet(W.requestedModuleIds_),n=[];
C[k]||n.push(k);k=[k];for(var N=0;N<k.length;N++)for(var B=W.getModuleInfo(k[N]).deps_,A=B.length-1;A>=0;A--){var w=B[A];W.getModuleInfo(w).isLoaded()||C[w]||(n.push(w),k.push(w))}n.reverse();IXX(n);return n};
p_.prototype.JSC$8813_setLoaded=function(){if(this.JSC$8818_currentlyLoadingModule_){var W=this.JSC$8818_currentlyLoadingModule_.getId(),k=[];if(this.JSC$8818_extraEdges_[W]){for(var C=_.b(Object.keys(this.JSC$8818_extraEdges_[W])),n=C.next();!n.done;n=C.next()){n=n.value;var N=this.getModuleInfo(n);N&&!N.isLoaded()&&(this.removeExtraEdge(W,n),k.push(n))}this.loadMultiple(k)}this.isDisposed()||(this.moduleInfoMap[W].onLoad((0,_.fN)(this.getModuleContext,this))&&OBC(this,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.INIT_ERROR)),
_.iw(this.userInitiatedLoadingModuleIds_,W),_.iw(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&PWZ(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),v0(this),this.JSC$8818_currentlyLoadingModule_=null)}};
p_.prototype.isModuleLoading=function(W){if(_.ZX(this.loadingModuleIds_,W))return!0;for(var k=0;k<this.requestedModuleIdsQueue_.length;k++)if(_.ZX(this.requestedModuleIdsQueue_[k],W))return!0;return!1};
p_.prototype.load=function(W,k){return jz8(this,[W],k)[W]};
p_.prototype.loadMultiple=function(W){return jz8(this,W)};
var HBA=function(W,k){_.ZX(W.userInitiatedLoadingModuleIds_,k)||W.userInitiatedLoadingModuleIds_.push(k)};
p_.prototype.beforeLoadModuleCode=function(W){var k=this;this.JSC$8818_currentlyLoadingModule_&&this.JSC$8818_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8813_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&hdZ(this,this.moduleInfoMap[W].deps_||[],function(C){C.module_=new Jk;_.iw(k.loadingModuleIds_,C.getId())},function(C){return!C.isLoaded()});
this.JSC$8818_currentlyLoadingModule_=this.getModuleInfo(W)};
p_.prototype.handleLoadTimeout_=function(){gQA(this,new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.TIMEOUT));PWZ(this)};
var gQA=function(W,k){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(C){return[C]}).concat(W.requestedModuleIdsQueue_):OBC(W,k)},OBC=function(W,k){var C=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var n=[],N=0;N<W.requestedModuleIdsQueue_.length;N++){var B=W.requestedModuleIdsQueue_[N].filter(function(x){var E=KIZ(this,x);return v$(C,function(a){return _.ZX(E,a)})},W);
_.uw(n,B)}for(N=0;N<C.length;N++)_.DXz(n,C[N]);for(N=0;N<n.length;N++){for(B=0;B<W.requestedModuleIdsQueue_.length;B++)_.iw(W.requestedModuleIdsQueue_[B],n[N]);_.iw(W.userInitiatedLoadingModuleIds_,n[N])}if(N=W.JSC$8818_callbackMap_.error)for(B=0;B<N.length;B++)for(var A=N[B],w=0;w<n.length;w++)A("error",n[w],k);for(n=0;n<C.length;n++)if(W.moduleInfoMap[C[n]])W.moduleInfoMap[C[n]].onError(k);W.requestedLoadingModuleIds_.length=0;v0(W)},PWZ=function(W){for(;W.requestedModuleIdsQueue_.length;){var k=
W.requestedModuleIdsQueue_.shift().filter(function(C){return!this.getModuleInfo(C).isLoaded()},W);
if(k.length>0){W.loadModules_(k);return}}v0(W)};
p_.prototype.registerCallback=function(W,k){Array.isArray(W)||(W=[W]);for(var C=0;C<W.length;C++){var n=W[C],N=k,B=this.JSC$8818_callbackMap_;B[n]||(B[n]=[]);B[n].push(N)}};
p_.prototype.executeCallbacks_=function(W){for(var k=this.JSC$8818_callbackMap_[W],C=0;k&&C<k.length;C++)k[C](W)};
var hdZ=function(W,k,C,n,N){n=n===void 0?function(){return!0}:n;
N=N===void 0?{}:N;k=_.b(k);for(var B=k.next();!B.done;B=k.next()){B=B.value;var A=W.getModuleInfo(B);!N[B]&&n(A)&&(N[B]=!0,hdZ(W,A.deps_||[],C,n,N),C(A))}};
p_.prototype.dispose=function(){_.dIw(_.JU.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8818_callbackMap_={};this.isDisposed_=!0};
p_.prototype.isDisposed=function(){return this.isDisposed_};
_.D0=function(){return new p_};var W78=[5E3,2E4],kox=function(){this.JSC$7927_loader_=null;this.JSC$8826_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8826_queue_=[];this.JSC$8826_extraEdges_=Object.create(null);this.JSC$8826_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.D(kox,iBs);_.Y=kox.prototype;_.Y.setAllModuleInfoString=function(){this.JSC$8826_currentlyLoadingModule_&&this.JSC$8826_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8813_setLoaded()};
_.Y.getModuleInfo=function(W){var k=this.JSC$8826_moduleInfoMap_[W];k||(k=new c0([],W),this.JSC$8826_moduleInfoMap_[W]=k);return k};
_.Y.addExtraEdge=function(W,k){this.getModuleInfo(W).isLoaded()?this.load(k):(this.JSC$8826_extraEdges_[W]||(this.JSC$8826_extraEdges_[W]={}),this.JSC$8826_extraEdges_[W][k]=!0)};
_.Y.removeExtraEdge=function(W,k){if(this.JSC$8826_extraEdges_[W]){delete this.JSC$8826_extraEdges_[W][k];for(var C in this.JSC$8826_extraEdges_[W])return;delete this.JSC$8826_extraEdges_[W]}};
_.Y.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.Y.load=function(W){COY(this,[W]);return nSx(this,W)};
_.Y.loadMultiple=function(W){var k=this,C=Object.create(null),n=[];W.forEach(function(N){C[N]||(C[N]=nSx(k,N),n.push(N))});
COY(this,n);return C};
_.Y.beforeLoadModuleCode=function(W){var k;((k=this.JSC$8826_currentlyLoadingModule_)==null?void 0:k.getId())==="synthetic_module_overhead"&&this.JSC$8813_setLoaded();var C,n;NnS(this,(n=(C=this.JSC$8826_moduleInfoMap_[W])==null?void 0:C.deps_)!=null?n:[],function(N){N.module_=new Jk},function(N){return!N.isLoaded()});
this.JSC$8826_currentlyLoadingModule_=this.getModuleInfo(W)};
_.Y.JSC$8813_setLoaded=function(){if(this.JSC$8826_currentlyLoadingModule_){var W=this.JSC$8826_currentlyLoadingModule_.getId(),k=[];if(this.JSC$8826_extraEdges_[W]){for(var C=_.b(Object.keys(this.JSC$8826_extraEdges_[W])),n=C.next();!n.done;n=C.next())n=n.value,this.getModuleInfo(n).isLoaded()||(this.removeExtraEdge(W,n),k.push(n));this.loadMultiple(k)}this.JSC$8826_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8826_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$8826_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.Y.setModulesAsLoading=function(){var W=this;_.v6.apply(0,arguments).forEach(function(k){W.loadingModules_[k]=!0})};
_.Y.unsetModulesAsLoading=function(){var W=this;_.v6.apply(0,arguments).forEach(function(k){delete W.loadingModules_[k]})};
var nSx=function(W,k){return new _.Wx(function(C,n){var N=W.getModuleInfo(k);N.isLoaded()?C(null):(N.registerCallback(function(){C(null)}),cQs(N,function(B){var A="Error loading "+k+": "+B;
B instanceof Hq.ModuleLoadFailure&&B.url&&(A=A+", requested url: "+B.url.toString());n(Error(A))}))})},COY=function(W,k){k=k.filter(function(C){return!W.isModuleLoading(C)&&!W.getModuleInfo(C).isLoaded()});
k.length>0&&(W.setModulesAsLoading.apply(W,_.J8(k)),W.JSC$8826_queue_.push(k),Yb2(W))},Yb2=function(W){for(var k={};W.activeLoads_<Infinity&&W.JSC$8826_queue_.length>0;k={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})k.ids$jscomp$36=W.JSC$8826_queue_.shift().filter(function(C){return!W.getModuleInfo(C).isLoaded()}),k.ids$jscomp$36.length>0&&(W.activeLoads_++,k.finishLoad=function(C){return function(){W.activeLoads_--;
Yb2(W);C.finishLoad=function(){}}}(k),_.EY(k.ids$jscomp$36.map(function(C){return nSx(W,C)})).then(function(C){return function(){(0,C.finishLoad)()}}(k)),k.attempt$jscomp$6=0,k.load$jscomp$1=function(C){return function(){if(Object.keys(W.JSC$8826_extraEdges_).length>0&&!W.JSC$7927_loader_.supportsExtraEdges)throw Error("td");
W.JSC$7927_loader_.JSC$8805_loadModules(C.ids$jscomp$36,W.JSC$8826_moduleInfoMap_,{extraEdges:W.JSC$8826_extraEdges_,onError:function(n,N){var B=W78[C.attempt$jscomp$6++];B!==void 0?setTimeout(function(){(0,C.load$jscomp$1)()},B):(W.unsetModulesAsLoading.apply(W,_.J8(C.ids$jscomp$36)),(0,C.finishLoad)(),C.ids$jscomp$36.forEach(function(A){A=W.getModuleInfo(A);
if(!A.isLoaded())A.onError(new Hq.ModuleLoadFailure(Hq.ModuleLoadFailure.JSC$8815_Type.CONSECUTIVE_FAILURES,n,C.ids$jscomp$36,N))}))}})}}(k),(0,k.load$jscomp$1)())},NnS=function(W,k,C,n,N){n=n===void 0?function(){return!0}:n;
N=N===void 0?{}:N;k=_.b(k);for(var B=k.next();!B.done;B=k.next()){B=B.value;var A=W.getModuleInfo(B);!N[B]&&n(A)&&(N[B]=!0,NnS(W,A.deps_||[],C,n,N),C(A))}};var Bn2=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var XGp=Symbol("wd");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var b5A=!Bn2||HTMLElement.es5Shimmed||_.NX.Reflect===void 0||_.NX.customElements===void 0||_.NX.customElements.polyfillWrapFlushCallback||!1,AeA,LxX=function(){var W=HTMLElement;if(b5A)return W;if(AeA!==void 0)return AeA;var k=_.NX.Reflect,C=function(){return k.construct(W,[],this.constructor)};
C.prototype=W.prototype;C.prototype.constructor=C;C.es5Shimmed=!0;Object.setPrototypeOf(C,W);return AeA=C},F7S=!1;b5A||F7S||(F7S=!0,_.NX.HTMLElement=LxX());/*

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 D2w=/(url\()([^)]*)(\))/g,m2X=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,zDw,LM;var Iq=!window.ShadyDOM||!window.ShadyDOM.inUse,w3S=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),xyI=!window.customElements.polyfillWrapFlushCallback,lFY;if(lFY=Iq&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var tWA=new CSSStyleSheet;tWA.replaceSync("");var ESY=document.createElement("div");ESY.attachShadow({mode:"open"});ESY.shadowRoot.adoptedStyleSheets=[tWA];lFY=ESY.shadowRoot.adoptedStyleSheets[0]===tWA}catch(W){lFY=!1}
var aFz=lFY,X3s=window.Polymer&&window.Polymer.rootPath||Jf4(document.baseURI||window.location.href),AD=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,enK=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,fFS=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,cm=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qe=window.Polymer&&window.Polymer.legacyWarnings||!1,dyS=window.Polymer&&window.Polymer.syncInitialRender||
!1,w0=window.Polymer&&window.Polymer.legacyUndefined||!1,myC=window.Polymer&&window.Polymer.orderedComputed||!1,eF=window.Polymer&&window.Polymer.removeNestedTemplates||!1,sO=window.Polymer&&window.Polymer.fastDomIf||!1,G$=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,zVS=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,DyS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var y_={},VWb={},lD=function(){return HTMLElement.apply(this,arguments)||this};
_.D(lD,HTMLElement);lD.import=function(W,k){return W?(W=y_[W]||VWb[W.toLowerCase()])&&k?W.querySelector(k):W:null};
lD.prototype.attributeChangedCallback=function(W,k,C){k!==C&&this.register()};
lD.prototype.register=function(W){if(W=W||this.id){if(pt&&(y_[W]||VWb[W.toLowerCase()])!==void 0)throw y_[W]=VWb[W.toLowerCase()]=null,Error("xd`"+W);this.id=W;y_[W]=VWb[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.oq.Object.defineProperties(lD.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.j6(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=Jf4(W)}return this.__assetpath}}});
_.oq.Object.defineProperties(lD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
lD["import"]=lD.import;lD.prototype.modules=y_;customElements.define("dom-module",lD);var JeZ=0,INm=0,Hx=[],cez=0,cfJ=!1,IFA=document.createTextNode(""),SbZ,Ve;(new window.MutationObserver(SRI)).observe(IFA,{characterData:!0});_.$v={after:function(W){return{run:function(k){return window.setTimeout(k,W)},
cancel:function(k){window.clearTimeout(k)}}},
run:function(W,k){return window.setTimeout(W,k)},
cancel:function(W){window.clearTimeout(W)}};
_.A7={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
SbZ={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
Ve={run:function(W){cfJ||(cfJ=!0,IFA.textContent=cez++);Hx.push(W);return JeZ++},
cancel:function(W){var k=W-INm;if(k>=0){if(!Hx[k])throw Error("yd`"+W);Hx[k]=null}}};var MWA=0,Zm=function(W){var k=W.__mixinApplications;k||(k=new WeakMap,W.__mixinApplications=k);var C=MWA++;return function(n){var N=n.__mixinSet;if(N&&N[C])return n;var B=k,A=B.get(n);A||(A=W(n),B.set(n,A),n=Object.create(A.__mixinSet||N||null),n[C]=!0,A.__mixinSet=n);return A}};_.bD=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var QYC=Zm(function(W){var k=function(){var C=W.call(this)||this;C.__dataEnabled=!1;C.__dataReady=!1;C.__dataInvalid=!1;C.__data={};C.__dataPending=null;C.__dataOld=null;C.__dataInstanceProps=null;C.__dataCounter=0;C.__serializing=!1;C._initializeProperties();return C};
_.D(k,W);k.createProperties=function(C){var n=this.prototype,N;for(N in C)N in n||n._createPropertyAccessor(N)};
k.attributeNameForProperty=function(C){return C.toLowerCase()};
k.typeForProperty=function(){};
k.prototype._createPropertyAccessor=function(C,n){this._addPropertyToAttributeMap(C);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[C]||(this.__dataHasAccessor[C]=!0,this._definePropertyAccessor(C,n))};
k.prototype._addPropertyToAttributeMap=function(C){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var n=this.__dataAttributes[C];n||(n=this.constructor.attributeNameForProperty(C),this.__dataAttributes[n]=C);return n};
k.prototype._definePropertyAccessor=function(C,n){Object.defineProperty(this,C,{get:function(){return this.__data[C]},
set:n?function(){}:function(N){this._setPendingProperty(C,N,!0)&&this._invalidateProperties()}})};
k.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
k.prototype._initializeProperties=function(){for(var C in this.__dataHasAccessor)this.hasOwnProperty(C)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[C]=this[C],delete this[C])};
k.prototype._initializeInstanceProperties=function(C){Object.assign(this,C)};
k.prototype._setProperty=function(C,n){this._setPendingProperty(C,n)&&this._invalidateProperties()};
k.prototype._getProperty=function(C){return this.__data[C]};
k.prototype._setPendingProperty=function(C,n){var N=this.__data[C],B=this._shouldPropertyChange(C,n,N);B&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||C in this.__dataOld||(this.__dataOld[C]=N),this.__data[C]=n,this.__dataPending[C]=n);return B};
k.prototype._isPropertyPending=function(C){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(C))};
k.prototype._invalidateProperties=function(){var C=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ve.run(function(){C.__dataInvalid&&(C.__dataInvalid=!1,C._flushProperties())}))};
k.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
k.prototype._flushProperties=function(){this.__dataCounter++;var C=this.__data,n=this.__dataPending,N=this.__dataOld;this._shouldPropertiesChange(C,n,N)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(C,n,N));this.__dataCounter--};
k.prototype._shouldPropertiesChange=function(C,n){return!!n};
k.prototype._propertiesChanged=function(){};
k.prototype._shouldPropertyChange=function(C,n,N){return N!==n&&(N===N||n===n)};
k.prototype.attributeChangedCallback=function(C,n,N,B){n!==N&&this._attributeToProperty(C,N);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,C,n,N,B)};
k.prototype._attributeToProperty=function(C,n,N){if(!this.__serializing){var B=this.__dataAttributes;C=B&&B[C]||C;this[C]=this._deserializeValue(n,N||this.constructor.typeForProperty(C))}};
k.prototype._propertyToAttribute=function(C,n,N){this.__serializing=!0;N=arguments.length<3?this[C]:N;this._valueToNodeAttribute(this,N,n||this.constructor.attributeNameForProperty(C));this.__serializing=!1};
k.prototype._valueToNodeAttribute=function(C,n,N){n=this._serializeValue(n);if(N==="class"||N==="name"||N==="slot")C=(0,_.bD)(C);n===void 0?C.removeAttribute(N):C.setAttribute(N,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)};
k.prototype._serializeValue=function(C){switch(typeof C){case "boolean":return C?"":void 0;default:return C!=null?C.toString():void 0}};
k.prototype._deserializeValue=function(C,n){switch(n){case Boolean:return C!==null;case Number:return Number(C);default:return C}};
return k});var p3C=0,Myw=[];var vSA=Zm(function(W){function k(B){B=Object.getPrototypeOf(B);return B.prototype instanceof N?B:null}
function C(B){if(!B.hasOwnProperty("__ownProperties")){var A=null;if(B.hasOwnProperty("properties")){var w=B.properties;if(w){A={};for(var x in w){var E=w[x];A[x]=typeof E==="function"?{type:E}:E}}}B.__ownProperties=A}return B.__ownProperties}
var n=QYC(W),N=function(){return n.apply(this,arguments)||this};
_.D(N,n);N.finalize=function(){if(!this.hasOwnProperty("__finalized")){var B=k(this);B&&B.finalize();this.__finalized=!0;this._finalizeClass()}};
N._finalizeClass=function(){var B=C(this);B&&this.createProperties(B)};
N.typeForProperty=function(B){return(B=this._properties[B])&&B.type};
N.prototype._initializeProperties=function(){p3C++;this.constructor.finalize();n.prototype._initializeProperties.call(this)};
N.prototype.connectedCallback=function(){n.prototype.connectedCallback&&n.prototype.connectedCallback.call(this);this._enableProperties()};
N.prototype.disconnectedCallback=function(){n.prototype.disconnectedCallback&&n.prototype.disconnectedCallback.call(this)};
_.oq.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var B=this;if(!this.hasOwnProperty("__observedAttributes")){QZm(this.prototype);var A=this._properties;this.__observedAttributes=A?Object.keys(A).map(function(w){return B.prototype._addPropertyToAttributeMap(w)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var B=k(this);this.__properties=Object.assign({},B&&B._properties,C(this))}return this.__properties}}});
return N});var pGX={},vxw=/-[a-z]/g,eD4=/([A-Z])/g;for(var eV8={},sY8=HTMLElement.prototype;sY8;){for(var GoC=Object.getOwnPropertyNames(sY8),yeS=0;yeS<GoC.length;yeS++)eV8[GoC[yeS]]=!0;sY8=Object.getPrototypeOf(sY8)}var $ys=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},Z5I=Zm(function(W){var k=QYC(W);
W=function(){return k.apply(this,arguments)||this};
_.D(W,k);W.createPropertiesForAttributes=function(){for(var C=this.observedAttributes,n=0;n<C.length;n++)this.prototype._createPropertyAccessor(rI(C[n]))};
W.attributeNameForProperty=function(C){return gI(C)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);k.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(C){for(var n in C)this._setProperty(n,C[n])};
W.prototype._ensureAttribute=function(C,n){this.hasAttribute(C)||this._valueToNodeAttribute(this,n,C)};
W.prototype._serializeValue=function(C){switch(typeof C){case "object":if(C instanceof Date)return C.toString();if(C){if($ys(C))return C;try{return JSON.stringify(C)}catch(n){return""}}default:return k.prototype._serializeValue.call(this,C)}};
W.prototype._deserializeValue=function(C,n){switch(n){case Object:try{var N=JSON.parse(C)}catch(B){N=C}break;case Array:try{N=JSON.parse(C)}catch(B){N=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+C)}break;case Date:N=isNaN(C)?String(C):Number(C);N=new Date(N);break;default:N=k.prototype._deserializeValue.call(this,C,n)}return N};
W.prototype._definePropertyAccessor=function(C,n){if(!eV8[C]){var N=this[C];N!==void 0&&(this.__data?this._setPendingProperty(C,N):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[C]=N))}k.prototype._definePropertyAccessor.call(this,C,n)};
W.prototype._hasAccessor=function(C){return this.__dataHasAccessor&&this.__dataHasAccessor[C]};
W.prototype._isPropertyPending=function(C){return!!(this.__dataPending&&C in this.__dataPending)};
return W});var RVs={"dom-if":!0,"dom-repeat":!0},oSs=!1,i5s=!1,TnS=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(k){return k}});
return function(k,C,n){C=C.getAttribute(n);W&&n.startsWith("on-")?k.setAttribute(n,W.createScript(C,n)):k.setAttribute(n,C)}}(),qbI=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k._parseTemplate=function(C,n){if(!C._templateInfo){var N=C._templateInfo={};N.nodeInfoList=[];N.nestedTemplate=!!n;N.stripWhiteSpace=n&&n.stripWhiteSpace||C.hasAttribute&&C.hasAttribute("strip-whitespace");this._parseTemplateContent(C,N,{parent:null})}return C._templateInfo};
k._parseTemplateContent=function(C,n,N){return this._parseTemplateNode(C.content,n,N)};
k._parseTemplateNode=function(C,n,N){var B=!1;C.localName!="template"||C.hasAttribute("preserve-content")?C.localName==="slot"&&(n.hasInsertionPoint=!0):B=this._parseTemplateNestedTemplate(C,n,N)||B;if(!oSs){oSs=!0;var A=document.createElement("textarea");A.placeholder="a";i5s=A.placeholder===A.textContent}i5s&&C.localName==="textarea"&&C.placeholder&&C.placeholder===C.textContent&&(C.textContent=null);C.firstChild&&this._parseTemplateChildNodes(C,n,N);C.hasAttributes&&C.hasAttributes()&&(B=this._parseTemplateNodeAttributes(C,
n,N)||B);return B||N.noted};
k._parseTemplateChildNodes=function(C,n,N){if(C.localName!=="script"&&C.localName!=="style")for(var B=C.firstChild,A=0,w;B;B=w){if(B.localName=="template"){var x=B.getAttribute("is");if(x&&RVs[x])for(w=B,w.removeAttribute("is"),B=w.ownerDocument.createElement(x),w.parentNode.replaceChild(B,w),B.appendChild(w);w.attributes.length;)x=w.attributes[0].name,TnS(B,w,x),w.removeAttribute(x)}w=B.nextSibling;if(B.nodeType===Node.TEXT_NODE){for(x=w;x&&x.nodeType===Node.TEXT_NODE;)B.textContent+=x.textContent,
w=x.nextSibling,C.removeChild(x),x=w;if(n.stripWhiteSpace&&!B.textContent.trim()){C.removeChild(B);continue}}x={parentIndex:A,parentInfo:N};this._parseTemplateNode(B,n,x)&&(x.infoIndex=n.nodeInfoList.push(x)-1);B.parentNode&&A++}};
k._parseTemplateNestedTemplate=function(C,n,N){n=this._parseTemplate(C,n);(n.content=C.content.ownerDocument.createDocumentFragment()).appendChild(C.content);N.templateInfo=n;return!0};
k._parseTemplateNodeAttributes=function(C,n,N){for(var B=!1,A=Array.from(C.attributes),w=A.length-1,x;x=A[w];w--)B=this._parseTemplateNodeAttribute(C,n,N,x.name,x.value)||B;return B};
k._parseTemplateNodeAttribute=function(C,n,N,B,A){return B.slice(0,3)==="on-"?(C.removeAttribute(B),N.events=N.events||[],N.events.push({name:B.slice(3),value:A}),!0):B==="id"?(N.id=A,!0):!1};
k._contentForTemplate=function(C){var n=C._templateInfo;return n&&n.content||C.content};
k.prototype._stampTemplate=function(C,n){C&&!C.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(C);n=n||this.constructor._parseTemplate(C);var N=n.nodeInfoList;C=document.importNode(n.content||C.content,!0);C.__noInsertionPoint=!n.hasInsertionPoint;var B=C.nodeList=Array(N.length);C.$={};for(var A=0,w=N.length,x=void 0;A<w&&(x=N[A]);A++){var E=B[A]=sZw(C,x);x.id&&(C.$[x.id]=E);var a=E,X=x,d=n;X.templateInfo&&(a._templateInfo=X.templateInfo,a._parentTemplateInfo=
d);if(x.events&&x.events.length)for(a=0,X=x.events,d=void 0;a<X.length&&(d=X[a]);a++)this._addMethodEventListenerToNode(E,d.name,d.value,this)}return C};
k.prototype._addMethodEventListenerToNode=function(C,n,N,B){N=GrX(B||C,N);this._addEventListenerToNode(C,n,N);return N};
k.prototype._addEventListenerToNode=function(C,n,N){C.addEventListener(n,N)};
k.prototype._removeEventListenerFromNode=function(C,n,N){C.removeEventListener(n,N)};
return k});var nt=0,Fw=[],uDb={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Uyz=/[A-Z]/,O5A=function(W,k,C,n,N){var B=N?KM(W):W;if(k=k[B])for(B=0;B<k.length;B++){var A=k[B];if(A.info.lastRun!==nt&&(!N||i6m(W,A.trigger))){A.info.lastRun=nt;A=A.info;for(var w=C,x=n,E=0,a=w.length-1,X=-1;E<=a;){var d=E+a>>1,V=x.get(w[d].methodInfo)-x.get(A.methodInfo);if(V<0)E=d+1;else if(V>0)a=d-1;else{X=d;break}}X<
0&&(X=a+1);w.splice(X,0,A)}}},k_K=[],L7S=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"),oV=Zm(function(W){var k=qbI(Z5I(W));
W=function(){var C=k.call(this)||this;C.__isPropertyEffectsClient=!0;return C};
_.D(W,k);W.prototype._initializeProperties=function(){k.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};
W.prototype._registerHost=function(){if(RV.length){var C=RV[RV.length-1];C._enqueueClient(this);this.__dataHost=C}};
W.prototype._initializeProtoProperties=function(C){this.__data=Object.create(C);this.__dataPending=Object.create(C);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(C){var n=this.__readOnly,N;for(N in C)n&&n[N]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[N]=this.__dataPending[N]=C[N])};
W.prototype._addPropertyEffect=function(C,n,N){this._createPropertyAccessor(C,n=="__readOnly");var B=oxm(this,n,!0)[C];B||(B=this[n][C]=[]);B.push(N)};
W.prototype._removePropertyEffect=function(C,n,N){C=oxm(this,n,!0)[C];N=C.indexOf(N);N>=0&&C.splice(N,1)};
W.prototype._hasPropertyEffect=function(C,n){n=this[n];return!(!n||!n[C])};
W.prototype._hasReadOnlyEffect=function(C){return this._hasPropertyEffect(C,"__readOnly")};
W.prototype._hasNotifyEffect=function(C){return this._hasPropertyEffect(C,"__notifyEffects")};
W.prototype._hasReflectEffect=function(C){return this._hasPropertyEffect(C,"__reflectEffects")};
W.prototype._hasComputedEffect=function(C){return this._hasPropertyEffect(C,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(C,n,N,B){if(B||KM(Array.isArray(C)?C[0]:C)!==C){if(!B&&(B=Ct(this,C),C=RDP(this,C,n),!C||!k.prototype._shouldPropertyChange.call(this,C,n,B)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(C,n,N)){if(N=this.__dataLinkedPaths)for(var A in N)B=N[A],hB(A,C)?(B=Wm(A,B,C),this._setPendingPropertyOrPath(B,n,!0,!0)):hB(B,C)&&(B=Wm(B,A,C),this._setPendingPropertyOrPath(B,n,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[C])return this._setPendingProperty(C,
n,N);this[C]=n}return!1};
W.prototype._setUnmanagedPropertyToNode=function(C,n,N){if(N!==C[n]||typeof N=="object")n==="className"&&(C=(0,_.bD)(C)),C[n]=N};
W.prototype._setPendingProperty=function(C,n,N){var B=this.__dataHasPaths&&Px(C);if(this._shouldPropertyChange(C,n,(B?this.__dataTemp:this.__data)[C])){this.__dataPending||(this.__dataPending={},this.__dataOld={});C in this.__dataOld||(this.__dataOld[C]=this.__data[C]);B?this.__dataTemp[C]=n:this.__data[C]=n;this.__dataPending[C]=n;if(B||this.__notifyEffects&&this.__notifyEffects[C])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[C]=N;return!0}return!1};
W.prototype._setProperty=function(C,n){this._setPendingProperty(C,n,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(C){this.__dataPendingClients=this.__dataPendingClients||[];C!==this&&this.__dataPendingClients.push(C)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var C=this.__dataPendingClients;if(C){this.__dataPendingClients=null;for(var n=0;n<C.length;n++){var N=C[n];N.__dataEnabled?N.__dataPending&&N._flushProperties():N._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(C,n){for(var N in C)!n&&this.__readOnly&&this.__readOnly[N]||this._setPendingPropertyOrPath(N,C[N],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(C,n,N){C=this.__dataHasPaths;this.__dataHasPaths=!1;var B;if(B=this.__computeEffects)if(myC){nt++;var A=L4w(this),w=[],x;for(x in n)O5A(x,B,w,A,C);for(;x=w.shift();)H6I(this,"",n,N,x)&&O5A(x.methodInfo,B,w,A,C);Object.assign(N,this.__dataOld);Object.assign(n,this.__dataPending);this.__dataPending=null}else for(A=n;NZ(this,B,A,N,C);)Object.assign(N,this.__dataOld),Object.assign(n,this.__dataPending),A=this.__dataPending,this.__dataPending=null;B=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(n,N,C);this._flushClients();NZ(this,this.__reflectEffects,n,N,C);NZ(this,this.__observeEffects,n,N,C);if(B){A=this.__notifyEffects;w=nt++;for(var E in B)if(B[E]){if(x=A){var a=A;x=w;var X=E,d=n,V=N,c=C,M=!1,p=c?KM(X):X;if(a=a[p]){p=0;for(var e=a.length,u=void 0;p<e&&(u=a[p]);p++)u.info&&u.info.lastRun===x||c&&!i6m(X,u.trigger)||(u.info&&(u.info.lastRun=x),u.fn(this,X,d,V,u.info,c,void 0),M=!0)}x=M}if(x)var h=!0;else{if(x=C)x=E,X=n,d=KM(x),d!==
x?(d=gI(d)+"-changed",qR3(this,d,X[x],x),x=!0):x=!1;x&&(h=!0)}}var L;h&&(L=this.__dataHost)&&L._invalidateProperties&&L._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(C,n,N){this.__propagateEffects&&NZ(this,this.__propagateEffects,C,n,N);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,C,n,N)};
W.prototype._runEffectsForTemplate=function(C,n,N,B){var A=this,w=function(x,E){NZ(A,C.propertyEffects,x,N,E,C.nodeList);for(var a=C.firstChild;a;a=a.nextSibling)A._runEffectsForTemplate(a,x,N,E)};
C.runEffects?C.runEffects(w,n,B):w(n,B)};
W.prototype.linkPaths=function(C,n){C=k6(C);n=k6(n);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[C]=n};
W.prototype.unlinkPaths=function(C){C=k6(C);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[C]};
W.prototype.notifySplices=function(C,n){var N={path:""};C=Ct(this,C,N);YvI(this,C,N.path,n)};
W.prototype.get=function(C,n){return Ct(n||this,C)};
W.prototype.set=function(C,n,N){N?RDP(N,C,n):this.__readOnly&&this.__readOnly[C]||this._setPendingPropertyOrPath(C,n,!0)&&this._invalidateProperties()};
W.prototype.push=function(C){var n=_.v6.apply(1,arguments),N={path:""},B=Ct(this,C,N),A=B.length,w=B.push.apply(B,_.J8(n));n.length&&x6(this,B,N.path,A,n.length,[]);return w};
W.prototype.pop=function(C){var n={path:""};C=Ct(this,C,n);var N=!!C.length,B=C.pop();N&&x6(this,C,n.path,C.length,0,[B]);return B};
W.prototype.splice=function(C,n,N){var B=_.v6.apply(3,arguments),A={path:""},w=Ct(this,C,A);n<0?n=w.length-Math.floor(-n):n&&(n=Math.floor(n));var x=arguments.length===2?w.splice(n):w.splice.apply(w,[n,N].concat(_.J8(B)));(B.length||x.length)&&x6(this,w,A.path,n,B.length,x);return x};
W.prototype.shift=function(C){var n={path:""};C=Ct(this,C,n);var N=!!C.length,B=C.shift();N&&x6(this,C,n.path,0,0,[B]);return B};
W.prototype.unshift=function(C){var n=_.v6.apply(1,arguments),N={path:""},B=Ct(this,C,N),A=B.unshift.apply(B,_.J8(n));n.length&&x6(this,B,N.path,0,n.length,[]);return A};
W.prototype.notifyPath=function(C,n){if(arguments.length==1){var N={path:""};n=Ct(this,C,N);N=N.path}else N=Array.isArray(C)?k6(C):C;this._setPendingPropertyOrPath(N,n,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(C,n){this._addPropertyEffect(C,"__readOnly");n&&(this["_set"+(C[0].toUpperCase()+C.substring(1))]=function(N){this._setProperty(C,N)})};
W.prototype._createPropertyObserver=function(C,n,N){var B={property:C,method:n,dynamicFn:!!N};this._addPropertyEffect(C,"__observeEffects",{fn:Tqw,info:B,trigger:{name:C}});N&&this._addPropertyEffect(n,"__observeEffects",{fn:Tqw,info:B,trigger:{name:n}})};
W.prototype._createMethodObserver=function(C,n){var N=nNz(C);if(!N)throw Error("zd`"+C);hDX(this,N,"__observeEffects",jZP,null,n)};
W.prototype._createNotifyingProperty=function(C){this._addPropertyEffect(C,"__notifyEffects",{fn:uYw,info:{eventName:gI(C)+"-changed",property:C}})};
W.prototype._createReflectedProperty=function(C){var n=this.constructor.attributeNameForProperty(C);n[0]==="-"?console.warn("Property "+C+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(C,"__reflectEffects",{fn:U2X,info:{attrName:n}})};
W.prototype._createComputedProperty=function(C,n,N){var B=nNz(n);if(!B)throw Error("Ad`"+n);n=hDX(this,B,"__computeEffects",H6I,C,N);oxm(this,"__computeInfo")[C]=n};
W.prototype._marshalArgs=function(C,n,N){for(var B=this.__data,A=[],w=0,x=C.length;w<x;w++){var E=C[w],a=E.name,X=E.structured,d=E.wildcard,V=E.value;E.literal||(d?(E=hB(a,n),X=Nkm(B,N,E?n:a),V={path:E?n:a,value:X,base:E?Ct(B,a):X}):V=X?Nkm(B,N,a):B[a]);if(w0&&!this._overrideLegacyUndefined&&V===void 0&&C.length>1)return Fw;A[w]=V}return A};
W.addPropertyEffect=function(C,n,N){this.prototype._addPropertyEffect(C,n,N)};
W.createPropertyObserver=function(C,n,N){this.prototype._createPropertyObserver(C,n,N)};
W.createMethodObserver=function(C,n){this.prototype._createMethodObserver(C,n)};
W.createNotifyingProperty=function(C){this.prototype._createNotifyingProperty(C)};
W.createReadOnlyProperty=function(C,n){this.prototype._createReadOnlyProperty(C,n)};
W.createReflectedProperty=function(C){this.prototype._createReflectedProperty(C)};
W.createComputedProperty=function(C,n,N){this.prototype._createComputedProperty(C,n,N)};
W.bindTemplate=function(C){return this.prototype._bindTemplate(C)};
W.prototype._bindTemplate=function(C,n){var N=this.constructor._parseTemplate(C),B=this.__preBoundTemplateInfo==N;if(!B)for(var A in N.propertyEffects)this._createPropertyAccessor(A);n?(N=Object.create(N),N.wasPreBound=B,this.__templateInfo?(C=C._parentTemplateInfo||this.__templateInfo,n=C.lastChild,N.parent=C,C.lastChild=N,(N.previousSibling=n)?n.nextSibling=N:C.firstChild=N):this.__templateInfo=N):this.__preBoundTemplateInfo=N;return N};
W._addTemplatePropertyEffect=function(C,n,N){(C.hostProps=C.hostProps||{})[n]=!0;C=C.propertyEffects=C.propertyEffects||{};(C[n]=C[n]||[]).push(N)};
W.prototype._stampTemplate=function(C,n){n=n||this._bindTemplate(C,!0);RV.push(this);C=k.prototype._stampTemplate.call(this,C,n);RV.pop();n.nodeList=C.nodeList;if(!n.wasPreBound)for(var N=n.childNodes=[],B=C.firstChild;B;B=B.nextSibling)N.push(B);C.templateInfo=n;N=n.nodeList;B=n.nodeInfoList;if(B.length)for(var A=0;A<B.length;A++){var w=N[A],x=B[A].bindings;if(x)for(var E=0;E<x.length;E++){var a=x[E],X=w,d=a;if(d.isCompound){for(var V=X.__dataCompoundStorage||(X.__dataCompoundStorage={}),c=d.parts,
M=Array(c.length),p=0;p<c.length;p++)M[p]=c[p].literal;c=d.target;V[c]=M;d.literal&&d.kind=="property"&&(c==="className"&&(X=(0,_.bD)(X)),X[c]=d.literal)}K4K(w,this,a)}w.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients());return C};
W.prototype._removeBoundDom=function(C){C=C.templateInfo;var n=C.previousSibling,N=C.nextSibling,B=C.parent;n?n.nextSibling=N:B&&(B.firstChild=N);N?N.previousSibling=n:B&&(B.lastChild=n);C.nextSibling=C.previousSibling=null;C=C.childNodes;for(n=0;n<C.length;n++)N=C[n],(0,_.bD)((0,_.bD)(N).parentNode).removeChild(N)};
W._parseTemplateNode=function(C,n,N){var B=k._parseTemplateNode.call(this,C,n,N);if(C.nodeType===Node.TEXT_NODE){var A=this._parseBindings(C.textContent,n);A&&(C.textContent=WEX(A)||" ",P2I(this,n,N,"text","textContent",A),B=!0)}return B};
W._parseTemplateNodeAttribute=function(C,n,N,B,A){var w=this._parseBindings(A,n);if(w){A=B;var x="property";Uyz.test(B)?x="attribute":B[B.length-1]=="$"&&(B=B.slice(0,-1),x="attribute");var E=WEX(w);E&&x=="attribute"&&(B=="class"&&C.hasAttribute("class")&&(E+=" "+C.getAttribute(B)),C.setAttribute(B,E));x=="attribute"&&A=="disable-upgrade$"&&C.setAttribute(B,"");C.localName==="input"&&A==="value"&&C.setAttribute(A,"");C.removeAttribute(A);x==="property"&&(B=rI(B));P2I(this,n,N,x,B,w,E);return!0}return k._parseTemplateNodeAttribute.call(this,
C,n,N,B,A)};
W._parseTemplateNestedTemplate=function(C,n,N){var B=k._parseTemplateNestedTemplate.call(this,C,n,N),A=C.parentNode,w=N.templateInfo,x=A.localName==="dom-if",E=A.localName==="dom-repeat";eF&&(x||E)&&(A.removeChild(C),N=N.parentInfo,N.templateInfo=w,N.noted=!0,B=!1);C=w.hostProps;if(sO&&x)C&&(n.hostProps=Object.assign(n.hostProps||{},C),eF||(N.parentInfo.noted=!0));else for(var a in C)P2I(this,n,N,"property","_host_"+a,[{mode:"{",source:a,dependencies:[a],hostProp:!0}]);return B};
W._parseBindings=function(C,n){for(var N=[],B=0,A;(A=L7S.exec(C))!==null;){A.index>B&&N.push({literal:C.slice(B,A.index)});B=A[1][0];var w=!!A[2];A=A[3].trim();var x=!1,E="",a=-1;B=="{"&&(a=A.indexOf("::"))>0&&(E=A.substring(a+2),A=A.substring(0,a),x=!0);a=nNz(A);var X=[];if(a){var d=a,V=d.args;d=d.methodName;for(var c=0;c<V.length;c++){var M=V[c];M.literal||X.push(M)}if((V=n.dynamicFns)&&V[d]||a.static)X.push(d),a.dynamicFn=!0}else X.push(A);N.push({source:A,mode:B,negate:w,customEvent:x,signature:a,
dependencies:X,event:E});B=L7S.lastIndex}B&&B<C.length&&(C=C.substring(B))&&N.push({literal:C});return N.length?N:null};
W._evaluateBinding=function(C,n,N,B,A,w){C=n.signature?jZP(C,N,B,A,n.signature):N!=n.source?Ct(C,n.source):w&&Px(N)?Ct(C,N):C.__data[N];n.negate&&(C=!C);return C};
_.oq.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return uDb}}});
return W}),RV=[];var jYZ=window.ShadyCSS&&window.ShadyCSS.cssBuild,T$=Zm(function(W){function k(n,N,B,A){if(!jYZ){for(var w=N.content.querySelectorAll("style"),x=FEw(N),E=wqw(B),a=N.content.firstElementChild,X=0;X<E.length;X++){var d=E[X];d.textContent=n._processStyleText(d.textContent,A);N.content.insertBefore(d,a)}for(a=E=0;a<x.length;a++)X=x[a],d=w[E],d!==X?(X=X.cloneNode(!0),d.parentNode.insertBefore(X,d)):E++,X.textContent=n._processStyleText(X.textContent,A)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(N,
B);if(DyS&&jYZ&&aFz&&(N=N.content.querySelectorAll("style"))){var V="";Array.from(N).forEach(function(c){V+=c.textContent;c.parentNode.removeChild(c)});
n._styleSheet=new CSSStyleSheet;n._styleSheet.replaceSync(V)}}
var C=vSA(oV(W));W=function(){return C.call(this)||this};
_.D(W,C);W._finalizeClass=function(){C._finalizeClass.call(this);var n;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(n=this.__ownObservers)&&this.createObservers(n,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var n=this.template;n&&(typeof n==="string"?(console.error("template getter must return HTMLTemplateElement"),n=null):cm||(n=n.cloneNode(!0)));this.prototype._template=n};
W.createProperties=function(n){for(var N in n){var B=this.prototype,A=N,w=n[N],x=n;w.computed&&(w.readOnly=!0);w.computed&&(B._hasReadOnlyEffect(A)?console.warn("Cannot redefine computed property '"+A+"'."):B._createComputedProperty(A,w.computed,x));w.readOnly&&!B._hasReadOnlyEffect(A)?B._createReadOnlyProperty(A,!w.computed):w.readOnly===!1&&B._hasReadOnlyEffect(A)&&console.warn("Cannot make readOnly property '"+A+"' non-readOnly.");w.reflectToAttribute&&!B._hasReflectEffect(A)?B._createReflectedProperty(A):
w.reflectToAttribute===!1&&B._hasReflectEffect(A)&&console.warn("Cannot make reflected property '"+A+"' non-reflected.");w.notify&&!B._hasNotifyEffect(A)?B._createNotifyingProperty(A):w.notify===!1&&B._hasNotifyEffect(A)&&console.warn("Cannot make notify property '"+A+"' non-notify.");w.observer&&B._createPropertyObserver(A,w.observer,x[w.observer]);B._addPropertyToAttributeMap(A)}};
W.createObservers=function(n,N){for(var B=this.prototype,A=0;A<n.length;A++)B._createMethodObserver(n[A],N)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);C.prototype._initializeProperties.call(this);this.rootPath=X3s;this.importPath=this.constructor.importPath;var n=this.constructor;if(!n.hasOwnProperty("__propertyDefaults")){n.__propertyDefaults=null;var N=n._properties,B;for(B in N){var A=N[B];"value"in A&&(n.__propertyDefaults=n.__propertyDefaults||{},n.__propertyDefaults[B]=A)}}if(n=n.__propertyDefaults)for(var w in n)N=n[w],
this._canApplyPropertyDefault(w)&&(N=typeof N.value=="function"?N.value.call(this):N.value,this._hasAccessor(w)?this._setPendingProperty(w,N,!0):this[w]=N)};
W.prototype._canApplyPropertyDefault=function(n){return!this.hasOwnProperty(n)};
W._processStyleText=function(n,N){return Vyp(n,N)};
W._finalizeTemplate=function(n){var N=this.prototype._template;if(N&&!N.__polymerFinalized){N.__polymerFinalized=!0;var B=this.importPath;B=B?_.j6(B):"";k(this,N,n,B);this.prototype._bindTemplate(N)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);C.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);C.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));C.prototype._readyClients.call(this)};
W.prototype._attachDom=function(n){var N=(0,_.bD)(this);if(N.attachShadow)return n?(N.shadowRoot||(N.attachShadow({mode:"open",shadyUpgradeFragment:n}),N.shadowRoot.appendChild(n),this.constructor._styleSheet&&(N.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dyS&&window.ShadyDOM&&window.ShadyDOM.flushInitial(N.shadowRoot),N.shadowRoot):null;throw Error("Cd");};
W.prototype.updateStyles=function(n){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,n)};
W.prototype.resolveUrl=function(n,N){!N&&this.importPath&&(N=_.j6(this.importPath));return _.j6(n,N)};
W._parseTemplateContent=function(n,N,B){N.dynamicFns=N.dynamicFns||this._properties;return C._parseTemplateContent.call(this,n,N,B)};
W._addTemplatePropertyEffect=function(n,N,B){!Qe||N in this._properties||B.info.part.signature&&B.info.part.signature.static||B.info.part.hostProp||n.nestedTemplate||console.warn("Property '"+N+"' used in template but not declared in 'properties'; attribute will not be observed.");return C._addTemplatePropertyEffect.call(this,n,N,B)};
_.oq.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var n=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof n==="function"&&(n=n());if(n===void 0){if(n=this.hasOwnProperty("is")){n=this.is;var N=null;if(n&&(!pt||fFS)&&(N=lD.import(n,"template"),pt&&!N))throw Error("Bd`"+n);n=N}n=n||Object.getPrototypeOf(this.prototype).constructor.template}this._template=n}return this._template},
set:function(n){this._template=n}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var n=this.importMeta;n?this._importPath=Jf4(n.url):this._importPath=(n=lD.import(this.is))&&n.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var H5b=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),f7w=function(W,k){res(W,k);
this.value=k.reduce(function(C,n,N){return C+dK4(n)+W[N+1]},W[0]).toString()},res;
f7w.prototype.toString=function(){return this.value};
_.gSA=function(W){var k=_.v6.apply(1,arguments);res(W,k);var C=document.createElement("template");k=k.reduce(function(n,N,B){if(N instanceof HTMLTemplateElement)N=N.innerHTML;else if(N instanceof f7w)N=dK4(N);else throw Error("Ed`"+N);return n+N+W[B+1]},W[0]);
H5b&&(k=H5b.createHTML(k));C.innerHTML=k;return C};
res=function(W,k){if(!Array.isArray(W)||!Array.isArray(W.raw)||k.length!==W.length-1)throw new TypeError("Fd");};var qF=T$(HTMLElement);var POA=Zm(function(W){var k=T$(W);W=function(){var C=k.call(this)||this;C.__lastItems=null;C.__lastMulti=null;C.__selectedMap=null;return C};
_.D(W,k);W.prototype.__updateSelection=function(C,n){var N=n.path;N=="items"?(n=n.base||[],N=this.__lastItems,C!==this.__lastMulti&&this.clearSelection(),N&&(N=Xqz(n,N),this.__applySplices(N)),this.__lastItems=n,this.__lastMulti=C):n.path=="items.splices"?this.__applySplices(n.value.indexSplices):(C=N.slice(6),n=parseInt(C,10),C.indexOf(".")<0&&C==n&&this.__deselectChangedIdx(n))};
W.prototype.__applySplices=function(C){for(var n=this,N=this.__selectedMap,B={},A=0;A<C.length;B={s$jscomp$108:void 0},A++){B.s$jscomp$108=C[A];N.forEach(function(a){return function(X,d){X<a.s$jscomp$108.index||(X>=a.s$jscomp$108.index+a.s$jscomp$108.removed.length?N.set(d,X+a.s$jscomp$108.addedCount-a.s$jscomp$108.removed.length):N.set(d,-1))}}(B));
for(var w=0;w<B.s$jscomp$108.addedCount;w++){var x=B.s$jscomp$108.index+w;N.has(this.items[x])&&N.set(this.items[x],x)}}this.__updateLinks();var E=0;N.forEach(function(a,X){a<0?(n.multi?n.splice("selected",E,1):n.selected=n.selectedItem=null,N.delete(X)):E++})};
W.prototype.__updateLinks=function(){var C=this;this.__dataLinkedPaths={};if(this.multi){var n=0;this.__selectedMap.forEach(function(N){N>=0&&C.linkPaths("items."+N,"selected."+n++)})}else this.__selectedMap.forEach(function(N){C.linkPaths("selected","items."+N);
C.linkPaths("selectedItem","items."+N)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(C){return this.__selectedMap.has(C)};
W.prototype.isIndexSelected=function(C){return this.isSelected(this.items[C])};
W.prototype.__deselectChangedIdx=function(C){var n=this,N=this.__selectedIndexForItemIndex(C);if(N>=0){var B=0;this.__selectedMap.forEach(function(A,w){N==B++&&n.deselect(w)})}};
W.prototype.__selectedIndexForItemIndex=function(C){if(C=this.__dataLinkedPaths["items."+C])return parseInt(C.slice(9),10)};
W.prototype.deselect=function(C){var n=this.__selectedMap.get(C);if(n>=0){this.__selectedMap.delete(C);var N;this.multi&&(N=this.__selectedIndexForItemIndex(n));this.__updateLinks();this.multi?this.splice("selected",N,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(C){this.deselect(this.items[C])};
W.prototype.select=function(C){this.selectIndex(this.items.indexOf(C))};
W.prototype.selectIndex=function(C){var n=this.items[C];this.isSelected(n)?this.toggle&&this.deselectIndex(C):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(n,C),this.__updateLinks(),this.multi?this.push("selected",n):this.selected=this.selectedItem=n)};
_.oq.Object.defineProperties(W,{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 W}),K7S=POA(qF),uf=function(){return K7S.apply(this,arguments)||this};
_.D(uf,K7S);_.oq.Object.defineProperties(uf,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(uf.is,uf);var hVI=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
hVI&&Object.assign(Polymer,hVI);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:Vyp,resolveUrl:_.j6,pathFromUrl:Jf4};Polymer.DomModule=lD;Polymer.Async={timeOut:_.$v,animationFrame:_.A7,idlePeriod:SbZ,microTask:Ve};Polymer.dedupingMixin=Zm;Polymer.wrap=_.bD;Polymer.PropertiesChanged=QYC;Polymer.telemetry={instanceCount:p3C,incrementInstanceCount:function(){p3C++},
registrations:Myw,register:QZm,dumpRegistrations:function(){Myw.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=vSA;Polymer.CaseMap={dashToCamelCase:rI,camelToDashCase:gI};Polymer.PropertyAccessors=Z5I;Polymer.TemplateStamp=qbI;Polymer.Path={isPath:Px,root:KM,isAncestor:yfI,isDescendant:hB,translate:Wm,matches:$2K,normalize:k6,split:Z6P,get:Ct,set:RDP,isDeep:Px};Polymer.Settings={useShadow:Iq,useNativeCSSProperties:w3S,useNativeCustomElements:xyI,get rootPath(){return X3s},setRootPath:function(W){X3s=W},
get sanitizeDOMValue(){return AD},setSanitizeDOMValue:function(W){AD=W},
get passiveTouchGestures(){return enK},setPassiveTouchGestures:function(W){enK=W},
get strictTemplatePolicy(){return pt},setStrictTemplatePolicy:function(W){pt=W},
get allowTemplateFromDomModule(){return fFS},setAllowTemplateFromDomModule:function(W){fFS=W},
get legacyOptimizations(){return cm},setLegacyOptimizations:function(W){cm=W},
get syncInitialRender(){return dyS},setSyncInitialRender:function(W){dyS=W},
get legacyUndefined(){return w0},setLegacyUndefined:function(W){w0=W},
get legacyWarnings(){return Qe},setLegacyWarnings:function(W){Qe=W},
get orderedComputed(){return myC},setOrderedComputed:function(W){myC=W},
get fastDomIf(){return sO},setFastDomIf:function(W){sO=W},
get removeNestedTemplates(){return eF},setRemoveNestedTemplates:function(W){eF=W},
get suppressTemplateNotifications(){return G$},setSuppressTemplateNotifications:G$};Polymer.rootPath!==void 0&&(X3s=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(AD=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(enK=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(pt=Polymer.strictTemplatePolicy);fFS=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(cm=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(dyS=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(w0=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Qe=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(myC=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(sO=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(eF=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(G$=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return AD},
set:function(W){AD=W}});Polymer.PropertyEffects=oV;Polymer.StyleGather={stylesFromModules:A3P,stylesFromModule:bsI,stylesFromTemplate:FEw,stylesFromModuleImports:wqw,cssFromModules:l73,cssFromModule:xKX,cssFromTemplate:tqI,cssFromModuleImports:function(W){return(W=lD.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=T$;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Xqz};Polymer.html=_.gSA;Polymer.htmlLiteral=function(W){return new f7w(W,_.v6.apply(1,arguments))};Polymer.Element=qF;Polymer.ArraySelectorMixin=POA;Polymer.ArraySelector=uf;var Wg2=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ky8=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,KlK=/@media\s(.*)/;var Vqc=null,DKP=window.HTMLImports&&window.HTMLImports.whenReady||null,J3K;var CK8=null,UO=null,OO=function(){this.customStyles=[];this.enqueued=!1;c3m(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},nZs=function(W){!W.enqueued&&UO&&(W.enqueued=!0,c3m(UO))};
OO.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),nZs(this))};
OO.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var k;W.getStyle?k=W.getStyle():k=W;return k};
OO.prototype.processStyles=function(){for(var W=this.customStyles,k=0;k<W.length;k++){var C=W[k];if(!C.__shadyCSSCachedStyle){var n=this.getStyleForCustomStyle(C);n&&(n=n.__appliedElement||n,CK8&&CK8(n),C.__shadyCSSCachedStyle=n)}}return W};
OO.prototype.addCustomStyle=OO.prototype.addCustomStyle;OO.prototype.getStyleForCustomStyle=OO.prototype.getStyleForCustomStyle;OO.prototype.processStyles=OO.prototype.processStyles;Object.defineProperties(OO.prototype,{transformCallback:{get:function(){return CK8},
set:function(W){CK8=W}},
validateCallback:{get:function(){return UO},
set:function(W){var k=!1;UO||(k=!0);UO=W;k&&nZs(this)}}});var Svw=!(window.ShadyDOM&&window.ShadyDOM.inUse),I7z,Rq;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Rq=window.ShadyCSS.cssBuild);var Nis=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?I7z=window.ShadyCSS.nativeCss:window.ShadyCSS?(Mqc(window.ShadyCSS),window.ShadyCSS=void 0):Mqc(window.WebComponents&&window.WebComponents.flags);var rpI=I7z;var YpA=new OO;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,k){YpA.processStyles();mKc(W,k)},
styleElement:function(){YpA.processStyles()},
styleDocument:function(W){YpA.processStyles();mKc(document.body,W)},
getComputedStyleValue:function(W,k){return znI(W,k)},
flushCustomStyles:function(){},
nativeCss:rpI,nativeShadow:Svw,cssBuild:Rq,disableRuntime:Nis});window.ShadyCSS.CustomStyleInterface=YpA;var Bix=window.ShadyCSS.CustomStyleInterface,jF=function(){var W=HTMLElement.call(this)||this;W._style=null;Bix.addCustomStyle(W);return W};
_.D(jF,HTMLElement);jF.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var k=W.getAttribute("include");k&&(W.removeAttribute("include"),W.textContent=l73(k)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
jF.prototype.getStyle=jF.prototype.getStyle;window.customElements.define("custom-style",jF);Polymer.CustomStyle=jF;var H0=function(){this._timer=this._callback=this._asyncModule=null},rD,AhY;
H0.prototype.setConfig=function(W,k){var C=this;this._asyncModule=W;this._callback=k;this._timer=this._asyncModule.run(function(){C._timer=null;rD.delete(C);C._callback()})};
H0.prototype.cancel=function(){this.isActive()&&(bOI(this),rD.delete(this))};
var bOI=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
H0.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
H0.prototype.isActive=function(){return this._timer!=null};
_.gD=function(W,k,C){W instanceof H0?bOI(W):W=new H0;W.setConfig(k,C);return W};
rD=new Set;_.P0=function(W){rD.add(W)};
AhY=function(){var W=!!rD.size;rD.forEach(function(k){try{k.flush()}catch(C){setTimeout(function(){throw C;})}});
return W};var pqI=typeof document.head.style.touchAction==="string",Q53=["mousedown","mousemove","mouseup","click"],oNX=[0,1,4,2],Fgz;try{Fgz=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){Fgz=!1}var RnK=Fgz,vNI=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){vNI=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(k){}})();
var G_3=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),y33=[],wlC={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},PHP={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},$Kz=function(W){var k=W.sourceCapabilities;if(!k||k.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){k=!1;for(var C=upz(W),n=0;n<C.length;n++){if(C[n].nodeType===Node.ELEMENT_NODE)if(C[n].localName==="label")y33.push(C[n]);
else if(wlC[C[n].localName]){var N=C[n];var B=Array.prototype.slice.call(N.labels||[]);if(!B.length){B=[];try{var A=N.getRootNode();if(N.id){var w=A.querySelectorAll("label[for = '"+N.id+"']");for(N=0;N<w.length;N++)B.push(w[N])}}catch(x){}}for(N=0;N<B.length;N++)k=k||y33.indexOf(B[N])>-1}if(C[n]===xw2)return}k||(W.preventDefault(),W.stopPropagation())}},xw2=null,K_=null,OsK=0,LE3=0,UKw=-1,j5X=!1;
document.addEventListener("touchend",function(W){K_||Zs3(!0);xw2=upz(W)[0];K_=_.gD(K_,_.$v.after(2500),function(){Zs3();K_=xw2=null})},vNI?{passive:!0}:!1);
var upz=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},d0={},Xw=[];
Hsm({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){aq(this.info)},
mousedown:function(W){if(Ed(W)){var k=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),C=this;Tk2(this.info,function(n){Ed(n)||(JD("up",k,n),aq(C.info))},function(n){Ed(n)&&JD("up",k,n);
aq(C.info)});
JD("down",k,W)}},
touchstart:function(W){JD("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){JD("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
Hsm({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;aq(this.info)},
mousedown:function(W){if(Ed(W)){var k=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),C=this,n=function(N){var B=N.clientX,A=N.clientY;r3w(C.info,B,A)&&(C.info.state=C.info.started?N.type==="mouseup"?"end":"track":"start",C.info.state==="start"&&ft("tap"),C.info.addMove({x:B,y:A}),Ed(N)||(C.info.state="end",aq(C.info)),k&&gN3(C.info,k,N),C.info.started=!0)};
Tk2(this.info,n,function(N){C.info.started&&n(N);aq(C.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var k=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var C=W.clientX,n=W.clientY;r3w(this.info,C,n)&&(this.info.state==="start"&&ft("tap"),this.info.addMove({x:C,y:n}),gN3(this.info,k,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var k=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),gN3(this.info,k,W))}});
Hsm({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(W){Ed(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){Ed(W)&&KEm(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){KEm(this.info,W.changedTouches[0],W)}});var l6I=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k.prototype._addEventListenerToNode=function(C,n,N){m5(C,n,N)||W.prototype._addEventListenerToNode.call(this,C,n,N)};
k.prototype._removeEventListenerFromNode=function(C,n,N){zX(C,n,N)||W.prototype._removeEventListenerFromNode.call(this,C,n,N)};
return k});var hk=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k.prototype._shouldPropertyChange=function(C,n,N){return hnp(this,C,n,N,!0)};
return k}),tIA=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k.prototype._shouldPropertyChange=function(C,n,N){return hnp(this,C,n,N,this.mutableData)};
_.oq.Object.defineProperties(k,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return k});
hk._mutablePropertyChange=hnp;var WlI=!1;var EZY=l6I(tIA(oV(HTMLElement))),WF=function(){var W=EZY.call(this)||this;if(pt)throw Error("Hd");W.root=null;W.$=null;W.__children=null;return W};
_.D(WF,EZY);_.Y=WF.prototype;_.Y.attributeChangedCallback=function(){this.mutableData=!0};
_.Y.connectedCallback=function(){kvc()||(this.style.display="none");this.render()};
_.Y.disconnectedCallback=function(){this.__removeChildren()};
_.Y.__insertChildren=function(){(0,_.bD)((0,_.bD)(this).parentNode).insertBefore(this.root,this)};
_.Y.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.Y.render=function(){var W=this;if(!this.__children){var k=k||this.querySelector("template");if(!k){var C=new MutationObserver(function(){if(k=W.querySelector("template"))C.disconnect(),W.render();else throw Error("Id");});
C.observe(this,{childList:!0});return}this.root=this._stampTemplate(k);this.$=this.root.$;this.__children=[];for(var n=this.root.firstChild;n;n=n.nextSibling)this.__children[this.__children.length]=n;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.oq.Object.defineProperties(WF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",WF);Polymer.Debouncer=H0;Polymer.Gestures={gestures:d0,recognizers:Xw,deepTargetFind:qvJ,addListener:m5,removeListener:zX,register:Hsm,setTouchAction:_.DR,prevent:ft,resetMouseCanceller:function(){K_&&K_.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:m5,remove:zX};Polymer.GestureEventListeners=l6I;Polymer.MutableData=hk;Polymer.OptionalMutableData=tIA;Polymer.DomBind=WF;_.kM=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var k=AhY()}while(W||k)};var CA4=null;n4I.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:n4I,writable:!0}});var xbP=oV(n4I),w9P=hk(xbP),a6A=oV(function(){}),S9=function(W){var k=a6A.call(this)||this;
k._configureProperties(W);k.root=k._stampTemplate(k.__dataHost);var C=[];k.children=C;for(var n=k.root.firstChild;n;n=n.nextSibling)C.push(n),n.__templatizeInstance=k;k.__templatizeOwner&&k.__templatizeOwner.__hideTemplateChildren__&&k._showHideChildren(!0);C=k.__templatizeOptions;(W&&C.instanceProps||!C.instanceProps)&&k._enableProperties();return k};
_.D(S9,a6A);_.Y=S9.prototype;_.Y._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var k in this.__hostProps)this._setPendingProperty(k,this.__dataHost["_host_"+k]);for(var C in W)this._setPendingProperty(C,W[C])};
_.Y.forwardHostProp=function(W,k){this._setPendingPropertyOrPath(W,k,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.Y._addEventListenerToNode=function(W,k,C){var n=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,k,function(B){B.model=n;C(B)});
else{var N=this.__dataHost.__dataHost;N&&N._addEventListenerToNode(W,k,C)}};
_.Y._showHideChildren=function(W){YMw(W,this.children)};
_.Y._setUnmanagedPropertyToNode=function(W,k,C){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&k=="textContent"?W.__polymerTextContent__=C:a6A.prototype._setUnmanagedPropertyToNode.call(this,W,k,C)};
_.Y.dispatchEvent=function(){return!0};
_.oq.Object.defineProperties(S9.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var k;W=this;do W=W.__dataHost.__dataHost;while((k=W.__templatizeOptions)&&!k.parentModel);this.__parentModel=W}return W}}});
var brc=hk(S9);var C3=function(){var W=qF.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.D(C3,qF);_.Y=C3.prototype;_.Y.__debounceRender=function(){var W=this;this.__renderDebouncer=_.gD(this.__renderDebouncer,Ve,function(){return W.__render()});
_.P0(this.__renderDebouncer)};
_.Y.disconnectedCallback=function(){qF.prototype.disconnectedCallback.call(this);var W=(0,_.bD)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.bD)(W).host)||this.__teardownInstance()};
_.Y.connectedCallback=function(){qF.prototype.connectedCallback.call(this);kvc()||(this.style.display="none");this.if&&this.__debounceRender()};
_.Y.__ensureTemplate=function(){var W=this;if(!this.__template){var k=this._templateInfo?this:(0,_.bD)(this).querySelector("template");if(!k){var C=new MutationObserver(function(){if((0,_.bD)(W).querySelector("template"))C.disconnect(),W.__render();else throw Error("Ld");});
C.observe(this,{childList:!0});return!1}this.__template=k}return!0};
_.Y.__ensureInstance=function(){var W=(0,_.bD)(this).parentNode;if(this.__hasInstance()){var k=this.__getInstanceNodes();if(k&&k.length&&(0,_.bD)(this).previousSibling!==k[k.length-1])for(var C=0,n=void 0;C<k.length&&(n=k[C]);C++)(0,_.bD)(W).insertBefore(n,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.Y.render=function(){_.kM()};
_.Y.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();G$&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.Y.__hasInstance=function(){};
_.Y.__getInstanceNodes=function(){};
_.Y.__createAndInsertInstance=function(){};
_.Y.__teardownInstance=function(){};
_.Y._showHideChildren=function(){};
_.oq.Object.defineProperties(C3,{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:C3.prototype.__debounceRender},restamp:{type:Boolean,observer:C3.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var XlA=function(){var W=C3.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.D(XlA,C3);_.Y=XlA.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.Y.__createAndInsertInstance=function(W){var k=this,C=this.__dataHost||this;if(pt&&!this.__dataHost)throw Error("Jd");var n=C._bindTemplate(this.__template,!0);n.runEffects=function(N,B,A){var w=k.__syncInfo;if(k.if)w&&(k.__syncInfo=null,k._showHideChildren(),B=Object.assign(w.changedProps,B)),N(B,A);else if(k.__instance)if(w||(w=k.__syncInfo={runEffects:N,changedProps:{}}),A)for(var x in B)N=KM(x),w.changedProps[N]=k.__dataHost[N];else Object.assign(w.changedProps,B)};
this.__instance=C._stampTemplate(this.__template,n);(0,_.bD)(W).insertBefore(this.__instance,this)};
_.Y.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.Y.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.Y._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,YMw(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var f6s=function(){var W=C3.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.D(f6s,C3);_.Y=f6s.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.children};
_.Y.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=MZ(this.__template,this,{mutableData:!0,forwardHostProp:function(k,C){this.__instance&&(this.if?this.__instance.forwardHostProp(k,C):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[KM(k)]=!0))}}));
this.__instance=new this.__ctor;(0,_.bD)(W).insertBefore(this.__instance.root,this)};
_.Y.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var k=(0,_.bD)(W[0]).parentNode;if(k){k=(0,_.bD)(k);for(var C=0,n=void 0;C<W.length&&(n=W[C]);C++)k.removeChild(n)}}this.__instance=this.__invalidProps=null}};
_.Y.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var k in W)this.__instance._setPendingProperty(k,this.__dataHost[k]);this.__instance._flushProperties()}};
_.Y._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.wH=sO?XlA:f6s;customElements.define(_.wH.is,_.wH);Polymer.enqueueDebouncer=_.P0;Polymer.flush=_.kM;Polymer.Templatize={templatize:MZ,modelForElement:fBp};Polymer.TemplateInstanceBase=S9;Polymer.DomIf=_.wH;var dwA=tIA(qF),Fr=function(){var W=dwA.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.D(Fr,dwA);_.Y=Fr.prototype;_.Y.disconnectedCallback=function(){dwA.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.Y.connectedCallback=function(){dwA.prototype.connectedCallback.call(this);kvc()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.bD)((0,_.bD)(this).parentNode),k=0;k<this.__instances.length;k++)this.__attachInstance(k,W);this.__chunkingId&&this.__render()}};
_.Y.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var k=this.template=this._templateInfo?this:this.querySelector("template");if(!k){var C=new MutationObserver(function(){if(W.querySelector("template"))C.disconnect(),W.__render();else throw Error("Md");});
C.observe(this,{childList:!0});return!1}var n={};n[this.as]=!0;n[this.indexAs]=!0;n[this.itemsIndexAs]=!0;this.__ctor=MZ(k,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(N,B){for(var A=this.__instances,w=0,x=void 0;w<A.length&&(x=A[w]);w++)x.forwardHostProp(N,B)},
notifyInstanceProp:function(N,B,A){$2K(this.as,B)&&(N=N[this.itemsIndexAs],B==this.as&&(this.items[N]=A),B=Wm(this.as,"items."+N,B),this.notifyPath(B,A))}})}return!0};
_.Y.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.Y.__functionFromPropertyValue=function(W){if(typeof W==="string"){var k=this.__getMethodHost();return function(){return k[W].apply(k,arguments)}}return W};
_.Y.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.Y.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.Y.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.Y.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.Y.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var k=this.__observePaths,C=0;C<k.length;C++)W.indexOf(k[C])===0&&this.__debounceRender(this.__render,this.delay)};
_.Y.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.Y.__debounceRender=function(W,k){k=k===void 0?0:k;this.__renderDebouncer=_.gD(this.__renderDebouncer,k>0?_.$v.after(k):Ve,W.bind(this));_.P0(this.__renderDebouncer)};
_.Y.render=function(){this.__debounceRender(this.__render);_.kM()};
_.Y.__render=function(){var W=this;if(this.__ensureTemplatized()){var k=this.items||[],C=this.__sortAndFilterItems(k),n=this.__calculateLimit(C.length);this.__updateInstances(k,n,C);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);G$&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Y.__sortAndFilterItems=function(W){for(var k=this,C=Array(W.length),n=0;n<W.length;n++)C[n]=n;this.__filterFn&&(C=C.filter(function(N,B,A){return k.__filterFn(W[N],B,A)}));
this.__sortFn&&C.sort(function(N,B){return k.__sortFn(W[N],W[B])});
return C};
_.Y.__calculateLimit=function(W){var k=W,C=this.__instances.length;if(this.initialCount){var n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(k=Math.min(W,this.initialCount),this.__chunkCount=(n=Math.max(k-C,0))||1):(n=Math.min(Math.max(W-C,0),this.__chunkCount),k=Math.min(C+n,W));this.__shouldMeasureChunk=n===this.__chunkCount;this.__shouldContinueChunking=k<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return k};
_.Y.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.Y.__updateInstances=function(W,k,C){var n=this.__itemsIdxToInstIdx={},N;for(N=0;N<k;N++){var B=this.__instances[N],A=C[N],w=W[A];n[A]=N;B?(B._setPendingProperty(this.as,w),B._setPendingProperty(this.indexAs,N),B._setPendingProperty(this.itemsIndexAs,A),B._flushProperties()):this.__insertInstance(w,N,A)}for(W=this.__instances.length-1;W>=N;W--)this.__detachAndRemoveInstance(W)};
_.Y.__detachInstance=function(W){W=this.__instances[W];for(var k=(0,_.bD)(W.root),C=0;C<W.children.length;C++)k.appendChild(W.children[C]);return W};
_.Y.__attachInstance=function(W,k){k.insertBefore(this.__instances[W].root,this)};
_.Y.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.Y.__stampInstance=function(W,k,C){var n={};n[this.as]=W;n[this.indexAs]=k;n[this.itemsIndexAs]=C;return new this.__ctor(n)};
_.Y.__insertInstance=function(W,k,C){W=this.__stampInstance(W,k,C);C=(C=this.__instances[k+1])?C.children[0]:this;(0,_.bD)((0,_.bD)(this).parentNode).insertBefore(W.root,C);return this.__instances[k]=W};
_.Y._showHideChildren=function(W){for(var k=0;k<this.__instances.length;k++)this.__instances[k]._showHideChildren(W)};
_.Y.__handleItemPath=function(W,k){var C=W.slice(6),n=C.indexOf(".");W=n<0?C:C.substring(0,n);if(W==parseInt(W,10)){C=n<0?"":C.substring(n+1);this.__handleObservedPaths(C);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(C?"."+C:""),k,!1,!0),W._flushProperties();return!0}};
_.Y.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.Y.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.Y.modelForElement=function(W){return fBp(this.template,W)};
_.oq.Object.defineProperties(Fr,{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:Fr.prototype.__sortChanged},filter:{type:Function,observer:Fr.prototype.__filterChanged},observe:{type:String,observer:Fr.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!G$,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.*)"]}}});
Fr.prototype._setRenderedItemCount=function(){};
customElements.define(Fr.is,Fr);Polymer.DomRepeat=Fr;var mwx=function(W,k){var C=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=k;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){C._schedule()};
this.connect();this._schedule()},zNz=function(W){var k=(0,_.bD)(W);
if(vm(W))return k.assignedNodes({flatten:!0});W=[];for(var C=0;C<k.childNodes.length;C++){var n=k.childNodes[C];vm(n)?W.push.apply(W,_.J8((0,_.bD)(n).assignedNodes({flatten:!0}))):W.push(n)}return W};
_.Y=mwx.prototype;_.Y.connect=function(){var W=this;vm(this._target)?this._listenSlots([this._target]):(0,_.bD)(this._target).children&&(this._listenSlots((0,_.bD)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(k){W._processMutations(k)}):(this._nativeChildrenObserver=new MutationObserver(function(k){W._processMutations(k)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.Y.disconnect=function(){vm(this._target)?this._unlistenSlots([this._target]):(0,_.bD)(this._target).children&&(this._unlistenSlots((0,_.bD)(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};
_.Y._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,Ve.run(function(){return W.flush()}))};
_.Y._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.Y._processSlotMutations=function(W){if(W)for(var k=0;k<W.length;k++){var C=W[k];C.addedNodes&&this._listenSlots(C.addedNodes);C.removedNodes&&this._unlistenSlots(C.removedNodes)}};
_.Y.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 W={target:this._target,addedNodes:[],removedNodes:[]},k=zNz(this._target),C=Xqz(k,this._effectiveNodes),n=0,N=void 0;n<C.length&&(N=C[n]);n++)for(var B=0,A=void 0;B<N.removed.length&&(A=N.removed[B]);B++)W.removedNodes.push(A);
n=0;for(N=void 0;n<C.length&&(N=C[n]);n++)for(B=N.index;B<N.index+N.addedCount;B++)W.addedNodes.push(k[B]);this._effectiveNodes=k;k=!1;if(W.addedNodes.length||W.removedNodes.length)k=!0,this.callback.call(this._target,W);return k};
_.Y._listenSlots=function(W){for(var k=0;k<W.length;k++){var C=W[k];vm(C)&&C.addEventListener("slotchange",this._boundSchedule)}};
_.Y._unlistenSlots=function(W){for(var k=0;k<W.length;k++){var C=W[k];vm(C)&&C.removeEventListener("slotchange",this._boundSchedule)}};var n3=Element.prototype,Dw8=n3.matches||n3.matchesSelector||n3.mozMatchesSelector||n3.msMatchesSelector||n3.oMatchesSelector||n3.webkitMatchesSelector,VIY=function(W,k){return Dw8.call(W,k)},e9=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},SpY;
_.Y=e9.prototype;_.Y.observeNodes=function(W){return new mwx(this.node,W)};
_.Y.unobserveNodes=function(W){W.disconnect()};
_.Y.notifyObserver=function(){};
_.Y.deepContains=function(W){if((0,_.bD)(this.node).contains(W))return!0;var k=W;for(W=W.ownerDocument;k&&k!==W&&k!==this.node;)k=(0,_.bD)(k).parentNode||(0,_.bD)(k).host;return k===this.node};
_.Y.getOwnerRoot=function(){return(0,_.bD)(this.node).getRootNode()};
_.Y.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.bD)(this.node).assignedNodes({flatten:!0}):[]};
_.Y.getDestinationInsertionPoints=function(){for(var W=[],k=(0,_.bD)(this.node).assignedSlot;k;)W.push(k),k=(0,_.bD)(k).assignedSlot;return W};
_.Y.importNode=function(W,k){return(0,_.bD)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,k)};
_.Y.getEffectiveChildNodes=function(){return zNz(this.node)};
_.Y.queryDistributedElements=function(W){for(var k=this.getEffectiveChildNodes(),C=[],n=0,N=k.length,B=void 0;n<N&&(B=k[n]);n++)B.nodeType===Node.ELEMENT_NODE&&VIY(B,W)&&C.push(B);return C};
_.oq.Object.defineProperties(e9.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var NV=function(W){this.event=W};
_.oq.Object.defineProperties(NV.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 Jhx=e9;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var chS=window.ShadyDOM.Wrapper,I68=function(){return chS.apply(this,arguments)||this};
_.D(I68,chS);Object.getOwnPropertyNames(e9.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(I68.prototype[W]=e9.prototype[W])});
mbc(I68.prototype,["classList"]);Jhx=I68;Object.defineProperties(NV.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.Ek(W).getOwnerRoot();for(var k=this.path,C=0;C<k.length;C++){var n=k[C];if(_.Ek(n).getOwnerRoot()===W)return n}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else dbm(),mbc(e9.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),zm3();SpY=Jhx;_.Ek=function(W){W=W||document;if(W instanceof Jhx)return W;if(W instanceof NV)return W;var k=W.__domApi;k||(W instanceof Event?k=new NV(W):k=new Jhx(W),W.__domApi=k);return k};var MIb=/:host\(:dir\((ltr|rtl)\)\)/g,Q8b=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,plS=/:dir\((?:ltr|rtl)\)/,vZC=!(!window.ShadyDOM||!window.ShadyDOM.inUse),GX=[],YM=null,sd="",eNA=Zm(function(W){vZC||YM||(sd=document.documentElement.getAttribute("dir"),YM=new MutationObserver(DbP),YM.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var k=Z5I(W);W=function(){var C=k.call(this)||this;C.__autoDirOptOut=!1;return C};
_.D(W,k);W._processStyleText=function(C,n){C=k._processStyleText.call(this,C,n);!vZC&&plS.test(C)&&(C=this._replaceDirInCssText(C),this.__activateDir=!0);return C};
W._replaceDirInCssText=function(C){C=C.replace(MIb,':host([dir="$1"])');return C=C.replace(Q8b,':host([dir="$2"]) $1')};
W.prototype.ready=function(){k.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){k.prototype.connectedCallback&&k.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(YM&&YM.takeRecords().length&&DbP(),GX.push(this),this.__autoDirOptOut||this.setAttribute("dir",sd))};
W.prototype.disconnectedCallback=function(){k.prototype.disconnectedCallback&&k.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var C=GX.indexOf(this);C>-1&&GX.splice(C,1)}};
W.__activateDir=!1;return W});var s8x=function(W){for(;W;){var k=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(k)return k.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
Zm(function(W){var k=T$(W),C=s8x(k);W=function(){return k.call(this)||this};
_.D(W,k);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:k.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||k.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(n){return k.prototype._canApplyPropertyDefault.call(this,n)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(n))};
W.prototype.attributeChangedCallback=function(n,N,B,A){n=="disable-upgrade"?this.__isUpgradeDisabled&&B==null&&(k.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.bD)(this).isConnected&&k.prototype.connectedCallback.call(this)):k.prototype.attributeChangedCallback.call(this,n,N,B,A)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||k.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||k.prototype.disconnectedCallback.call(this)};
_.oq.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C.call(this).concat("disable-upgrade")}}});
return W});var ye=!1,Jpp=[],$6=[];var MtX=window.ShadyDOM,QUw=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",v4w):document.readyState==="interactive"||document.readyState==="complete"?v4w():window.addEventListener("DOMContentLoaded",v4w);var Gvp=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=""},emm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,sUm=/@import[^;]*;/gim,irp=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Tvw=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,qMc=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,u2w=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,RmP=/^@[^\s]*keyframes/,
Zrm=/\s+/g;var Ubm={};var jUp=Promise.resolve();var GyA=new Set;var yhS=/;\s*/m,$wY=/^\s*(initial)|(inherit)\s*$/,ZOZ=/\s*!important/,RNz=function(){this._map={}};
RNz.prototype.set=function(W,k){W=W.trim();this._map[W]={properties:k,dependants:{}}};
RNz.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var oZs=null,BF=function(){this._measureElement=this._currentElement=null;this._map=new RNz};
_.Y=BF.prototype;_.Y.detectMixin=function(W){W=ky8.test(W)||Wg2.test(W);ky8.lastIndex=0;Wg2.lastIndex=0;return W};
_.Y.transformTemplate=function(W,k){if(W._gatheredStyle===void 0){var C=[];for(var n=W.content.querySelectorAll("style"),N=0;N<n.length;N++){var B=n[N];if(B.hasAttribute("shady-unscoped")){if(!Svw){var A=B.textContent;if(!GyA.has(A)){GyA.add(A);var w=document.createElement("style");w.setAttribute("shady-unscoped","");w.textContent=A;document.head.appendChild(w)}B.parentNode.removeChild(B)}}else C.push(B.textContent),B.parentNode.removeChild(B)}(C=C.join("").trim())?(n=document.createElement("style"),
n.textContent=C,W.content.insertBefore(n,W.content.firstChild),C=n):C=null;W._gatheredStyle=C}return(W=W._gatheredStyle)?this.JSC$9036_transformStyle(W,k):null};
_.Y.JSC$9036_transformStyle=function(W,k){k=k===void 0?"":k;var C=PAc(W);this.transformRules(C,k);W.textContent=g4P(C);return C};
_.Y.transformCustomStyle=function(W){var k=this,C=PAc(W);hmm(C,function(n){n.selector===":root"&&(n.selector="html");k.transformRule(n)});
W.textContent=g4P(C);return C};
_.Y.transformRules=function(W,k){var C=this;this._currentElement=k;hmm(W,function(n){C.transformRule(n)});
this._currentElement=null};
_.Y.transformRule=function(W){W.cssText=iOZ(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var iOZ=function(W,k,C){k=k.replace(Wg2,function(n,N,B,A){return W._produceCssProperties(n,N,B,A,C)});
return W._consumeCssProperties(k,C)};
_.Y=BF.prototype;_.Y._getInitialValueForProperty=function(W){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(W)};
_.Y._fallbacksFromPreviousRules=function(W){for(var k=this,C=W;C.parent;)C=C.parent;var n={},N=!1;hmm(C,function(B){(N=N||B===W)||B.selector===W.selector&&Object.assign(n,k._cssTextToMap(B.parsedCssText))});
return n};
_.Y._consumeCssProperties=function(W,k){for(var C;C=ky8.exec(W);){var n=C[0],N=C[1];C=C.index;var B=C+n.indexOf("@apply"),A=C+n.length;n=W.slice(0,B);W=W.slice(A);B=k?this._fallbacksFromPreviousRules(k):{};Object.assign(B,this._cssTextToMap(n));N=this._atApplyToCssProperties(N,B);W=n+N+W;ky8.lastIndex=C+N.length}return W};
_.Y._atApplyToCssProperties=function(W,k){W=W.replace(yhS,"");var C=[],n=this._map.get(W);n||(this._map.set(W,{}),n=this._map.get(W));if(n){this._currentElement&&(n.dependants[this._currentElement]=!0);var N,B=n.properties;for(N in B){var A=k&&k[N];n=[N,": var(",W,"_-_",N];A&&n.push(",",A.replace(ZOZ,""));n.push(")");ZOZ.test(B[N])&&n.push(" !important");C.push(n.join(""))}}return C.join("; ")};
_.Y._replaceInitialOrInherit=function(W,k){var C=$wY.exec(k);C&&(k=C[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return k};
_.Y._cssTextToMap=function(W,k){k=k===void 0?!1:k;W=W.split(";");for(var C,n,N={},B=0;B<W.length;B++)if(C=W[B])n=C.split(":"),n.length>1&&(C=n[0].trim(),n=n.slice(1).join(":"),k&&(n=this._replaceInitialOrInherit(C,n)),N[C]=n);return N};
_.Y._invalidateMixinEntry=function(W){if(oZs)for(var k in W.dependants)k!==this._currentElement&&oZs(k)};
_.Y._produceCssProperties=function(W,k,C,n,N){var B=this;C&&WGK(C,function(c,M){M&&B._map.get(M)&&(n="@apply "+M+";")});
if(!n)return W;var A=this._consumeCssProperties(""+n,N);N=W.slice(0,W.indexOf("--"));var w=A=this._cssTextToMap(A,!0),x=this._map.get(k),E=x&&x.properties;E?w=Object.assign(Object.create(E),A):this._map.set(k,w);var a=[],X,d=!1;for(X in w){var V=A[X];V===void 0&&(V="initial");!E||X in E||(d=!0);a.push(k+"_-_"+X+": "+V)}d&&this._invalidateMixinEntry(x);x&&(x.properties=w);C&&(N=W+";"+N);return N+a.join("; ")+";"};
BF.prototype.detectMixin=BF.prototype.detectMixin;BF.prototype.transformStyle=BF.prototype.JSC$9036_transformStyle;BF.prototype.transformCustomStyle=BF.prototype.transformCustomStyle;BF.prototype.transformRules=BF.prototype.transformRules;BF.prototype.transformRule=BF.prototype.transformRule;BF.prototype.transformTemplate=BF.prototype.transformTemplate;BF.prototype._separator="_-_";Object.defineProperty(BF.prototype,"invalidCallback",{get:function(){return oZs},
set:function(W){oZs=W}});var bP=new BF,Ti2=function(){this.customStyleInterface=null;bP.invalidCallback=Orw},A9=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(k){bP.transformCustomStyle(k)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.Y=Ti2.prototype;_.Y.prepareTemplate=function(W,k){A9(this);kKw(W)===""&&(Ubm[k]=W,k=bP.transformTemplate(W,k),W._styleAst=k)};
_.Y.flushCustomStyles=function(){A9(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var k=0;k<W.length;k++){var C=this.customStyleInterface.getStyleForCustomStyle(W[k]);C&&bP.transformCustomStyle(C)}this.customStyleInterface.enqueued=!1}}};
_.Y.styleSubtree=function(W,k){A9(this);k&&mKc(W,k);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,k=0;k<W.length;k++)this.styleSubtree(W[k]);else for(W=W.children||W.childNodes,k=0;k<W.length;k++)this.styleSubtree(W[k])};
_.Y.styleElement=function(W){A9(this);var k=W.localName,C;k?k.indexOf("-")>-1?C=k:C=W.getAttribute&&W.getAttribute("is")||"":C=W.is;k=Ubm[C];if(!(k&&kKw(k)!==""||!k||Llz(k))){if(Llz(k)||k._applyShimValidatingVersion!==k._applyShimNextVersion)this.prepareTemplate(k,C),HrP(k);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=k._styleAst,W.textContent=g4P(k._styleAst)}};
_.Y.styleDocument=function(W){A9(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Fh=new Ti2,qpI=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,k){Fh.flushCustomStyles();Fh.prepareTemplate(W,k)},
prepareTemplateStyles:function(W,k,C){window.ShadyCSS.prepareTemplate(W,k,C)},
prepareTemplateDom:function(){},
styleSubtree:function(W,k){Fh.flushCustomStyles();Fh.styleSubtree(W,k)},
styleElement:function(W){Fh.flushCustomStyles();Fh.styleElement(W)},
styleDocument:function(W){Fh.flushCustomStyles();Fh.styleDocument(W)},
getComputedStyleValue:function(W,k){return znI(W,k)},
flushCustomStyles:function(){Fh.flushCustomStyles()},
nativeCss:rpI,nativeShadow:Svw,cssBuild:Rq,disableRuntime:Nis};qpI&&(window.ShadyCSS.CustomStyleInterface=qpI)}window.ShadyCSS.ApplyShim=bP;var uiY;uiY=window.ShadyCSS;_.w4=Zm(function(W){W=l6I(T$(W));var k=jYZ?W:eNA(W),C=s8x(k),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return k.call(this)||this};
_.D(W,k);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(N,B,A){(this.__dataAttributes&&this.__dataAttributes[N]||N==="disable-upgrade")&&this.attributeChangedCallback(N,B,A,null)};
W.prototype.setAttribute=function(N,B){if(zVS&&!this._legacyForceObservedAttributes){var A=this.getAttribute(N);k.prototype.setAttribute.call(this,N,B);this.__attributeReaction(N,A,String(B))}else k.prototype.setAttribute.call(this,N,B)};
W.prototype.removeAttribute=function(N){if(zVS&&!this._legacyForceObservedAttributes){var B=this.getAttribute(N);k.prototype.removeAttribute.call(this,N);this.__attributeReaction(N,B,null)}else k.prototype.removeAttribute.call(this,N)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||k.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(N){return k.prototype._canApplyPropertyDefault.call(this,N)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(N))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(k.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(k.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(N,B,A,w){B!==A&&(N=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.bD)(this).isConnected&&this.connectedCallback()):(k.prototype.attributeChangedCallback.call(this,N,B,A,w),this.attributeChanged(N,B,A)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(cm&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var N=Object.getPrototypeOf(this);N.hasOwnProperty("__hasRegisterFinished")||(this._registered(),N.__hasRegisterFinished=!0);k.prototype._initializeProperties.call(this);this.root=this;this.created();zVS&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var N=this.attributes,B=0,A=N.length;B<A;B++){var w=N[B];this.__attributeReaction(w.name,null,w.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();k.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(N){return this._serializeValue(N)};
W.prototype.deserialize=function(N,B){return this._deserializeValue(N,B)};
W.prototype.reflectPropertyToAttribute=function(N,B,A){this._propertyToAttribute(N,B,A)};
W.prototype.serializeValueToAttribute=function(N,B,A){this._valueToNodeAttribute(A||this,N,B)};
W.prototype.extend=function(N,B){if(!N||!B)return N||B;for(var A=Object.getOwnPropertyNames(B),w=0,x=void 0;w<A.length&&(x=A[w]);w++){var E=Object.getOwnPropertyDescriptor(B,x);E&&Object.defineProperty(N,x,E)}return N};
W.prototype.mixin=function(N,B){for(var A in B)N[A]=B[A];return N};
W.prototype.chainObject=function(N,B){N&&B&&N!==B&&(N.__proto__=B);return N};
W.prototype.instanceTemplate=function(N){N=this.constructor._contentForTemplate(N);return document.importNode(N,!0)};
W.prototype.fire=function(N,B,A){A=A||{};B=B===null||B===void 0?{}:B;N=new Event(N,{bubbles:A.bubbles===void 0?!0:A.bubbles,cancelable:!!A.cancelable,composed:A.composed===void 0?!0:A.composed});N.detail=B;(0,_.bD)(A.node||this).dispatchEvent(N);return N};
W.prototype.listen=function(N,B,A){N=N||this;var w=this.__boundListeners||(this.__boundListeners=new WeakMap),x=w.get(N);x||(x={},w.set(N,x));w=B+A;x[w]||(x[w]=this._addMethodEventListenerToNode(N,B,A,this))};
W.prototype.unlisten=function(N,B,A){N=N||this;var w=this.__boundListeners&&this.__boundListeners.get(N);A=B+A;var x=w&&w[A];x&&(this._removeEventListenerFromNode(N,B,x),w[A]=null)};
W.prototype.setScrollDirection=function(N,B){_.DR(B||this,n[N]||"auto")};
W.prototype.$$=function(N){return this.root.querySelector(N)};
W.prototype.distributeContent=function(){var N=_.Ek(this);window.ShadyDOM&&N.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.Ek(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(N){return _.Ek(this).queryDistributedElements(N)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(N){return N.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var N=this.getEffectiveChildNodes(),B=[],A=0,w;w=N[A];A++)w.nodeType!==Node.COMMENT_NODE&&B.push(w.textContent);return B.join("")};
W.prototype.queryEffectiveChildren=function(N){return(N=this.queryDistributedElements(N))&&N[0]};
W.prototype.queryAllEffectiveChildren=function(N){return this.queryDistributedElements(N)};
W.prototype.getContentChildNodes=function(N){return(N=this.root.querySelector(N||"slot"))?_.Ek(N).getDistributedNodes():[]};
W.prototype.getContentChildren=function(N){return this.getContentChildNodes(N).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(N){return this!==N&&(0,_.bD)(this).contains(N)&&(0,_.bD)(this).getRootNode()===(0,_.bD)(N).getRootNode()};
W.prototype.isLocalDescendant=function(N){return this.root===(0,_.bD)(N).getRootNode()};
W.prototype.scopeSubtree=function(N,B){return p9w(N,B===void 0?!1:B)};
W.prototype.getComputedStyleValue=function(N){return uiY.getComputedStyleValue(this,N)};
W.prototype.debounce=function(N,B,A){this._debouncers=this._debouncers||{};return this._debouncers[N]=_.gD(this._debouncers[N],A>0?_.$v.after(A):Ve,B.bind(this))};
W.prototype.isDebouncerActive=function(N){this._debouncers=this._debouncers||{};N=this._debouncers[N];return!(!N||!N.isActive())};
W.prototype.flushDebouncer=function(N){this._debouncers=this._debouncers||{};(N=this._debouncers[N])&&N.flush()};
W.prototype.cancelDebouncer=function(N){this._debouncers=this._debouncers||{};(N=this._debouncers[N])&&N.cancel()};
W.prototype.async=function(N,B){return B>0?_.$v.run(N.bind(this),B):~Ve.run(N.bind(this))};
W.prototype.cancelAsync=function(N){N<0?Ve.cancel(~N):_.$v.cancel(N)};
W.prototype.create=function(N,B){N=document.createElement(N);if(B)if(N.setProperties)N.setProperties(B);else for(var A in B)N[A]=B[A];return N};
W.prototype.elementMatches=function(N,B){return VIY(B||this,N)};
W.prototype.toggleAttribute=function(N,B){var A=this;arguments.length===3&&(A=arguments[2]);arguments.length==1&&(B=!A.hasAttribute(N));if(B)return(0,_.bD)(A).setAttribute(N,""),!0;(0,_.bD)(A).removeAttribute(N);return!1};
W.prototype.toggleClass=function(N,B,A){A=A||this;arguments.length==1&&(B=!A.classList.contains(N));B?A.classList.add(N):A.classList.remove(N)};
W.prototype.transform=function(N,B){B=B||this;B.style.webkitTransform=N;B.style.transform=N};
W.prototype.translate3d=function(N,B,A,w){this.transform("translate3d("+N+","+B+","+A+")",w||this)};
W.prototype.arrayDelete=function(N,B){if(Array.isArray(N)){if(B=N.indexOf(B),B>=0)return N.splice(B,1)}else if(B=Ct(this,N).indexOf(B),B>=0)return this.splice(N,B,1);return null};
W.prototype._logger=function(N,B){Array.isArray(B)&&B.length===1&&Array.isArray(B[0])&&(B=B[0]);switch(N){case "log":case "warn":case "error":console[N].apply(console,_.J8(B))}};
W.prototype._log=function(){this._logger("log",_.v6.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.v6.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.v6.apply(0,arguments))};
W.prototype._logf=function(N){return["[%s::%s]",this.is,N].concat(_.J8(_.v6.apply(1,arguments)))};
_.oq.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var N=(0,_.bD)(this).getRootNode();return N instanceof DocumentFragment?N.host:N}}});
_.oq.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return zVS&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],QZm(this.prototype)),this.__observedAttributes):C.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=mwx;Polymer.DomApi=SpY;Polymer.EventApi=NV;Polymer.dom=_.Ek;Polymer.dom.matchesSelector=VIY;Polymer.dom.flush=_.kM;Polymer.dom.addDebouncer=_.P0;Polymer.DirMixin=eNA;Polymer.RenderStatus={beforeNextRender:_.SMm,afterNextRender:_.ZR,flush:function(){for(;Jpp.length||$6.length;)VtX(Jpp),VtX($6);ye=!1}};Polymer.LegacyElementMixin=_.w4;var Uwz;Uwz=hk._mutablePropertyChange;var OOA={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,k,C){return Uwz(this,W,k,C,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,k,C){return Uwz(this,W,k,C,!0)}};
Polymer.OptionalMutableDataBehavior=OOA;var C1w={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},b0w={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},B2P=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},b0w),LgA=(0,_.w4)(HTMLElement),fU4=function(W,k){W||console.warn("Polymer.Class requires `info` argument");k=k?k(LgA):LgA;k=Aum(W,k,W.behaviors);k.is=k.prototype.is=
W.is;return k};Polymer.Class=fU4;Polymer.mixinBehaviors=function(W,k){return Aum({},(0,_.w4)(k),W)};
Polymer.GenerateClassFromInfo=Aum;_.Av=function(W){var k=typeof W==="function"?W:_.Av.Class(W);W._legacyForceObservedAttributes&&(k.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(k.is,k);return k};
_.Av.Class=fU4;Polymer._polymerFn=_.Av;var j82=window.onLegacyPolymerFunctionDefinedCallback;j82&&j82();var mkm={templatize:function(W,k){this._templatizerTemplate=W;this.ctor=MZ(W,this,{mutableData:!!k,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return fBp(this._templatizerTemplate,W)}};Polymer.Templatizer=mkm;_.xM=(0,_.w4)(HTMLElement).prototype;Polymer.Base=_.xM;var wTw=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.iD=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.D(_.iD,PolymerFakeBaseClass);var TX=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.D(TX,PolymerFakeBaseClass);var xJ4=Symbol("Nd"),mJ4=[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 HOx=HOx||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},rhC;(function(W){function k(L,Bw,P){var xz=h.get(L);if(!xz){if(!P)return;xz=new e;h.set(L,xz)}L=xz.get(Bw);if(!L){if(!P)return;L=new e;xz.set(Bw,L)}return L}
function C(L,Bw,P){if(n(L,Bw,P))return!0;Bw=d(Bw);return Bw!==null?C(L,Bw,P):!1}
function n(L,Bw,P){Bw=k(Bw,P,!1);return Bw===void 0?!1:!!Bw.has(L)}
function N(L,Bw,P){if(n(L,Bw,P))return B(L,Bw,P);Bw=d(Bw);if(Bw!==null)return N(L,Bw,P)}
function B(L,Bw,P){Bw=k(Bw,P,!1);if(Bw!==void 0)return Bw.get(L)}
function A(L,Bw){var P=w(L,Bw);L=d(L);if(L===null)return P;var xz=A(L,Bw);if(xz.length<=0)return P;if(P.length<=0)return xz;Bw=new u;L=[];P=_.b(P);for(var Sp=P.next();!Sp.done;Sp=P.next())Sp=Sp.value,Bw.has(Sp)||(Bw.add(Sp),L.push(Sp));P=_.b(xz);for(xz=P.next();!xz.done;xz=P.next())xz=xz.value,Bw.has(xz)||(Bw.add(xz),L.push(xz));return L}
function w(L,Bw){L=k(L,Bw,!1);var P=[];L&&L.forEach(function(xz,Sp){return P.push(Sp)});
return P}
function x(L){return L===void 0}
function E(L){return typeof L==="object"?L!==null:typeof L==="function"}
function a(L){return typeof L==="function"}
function X(L){return typeof L==="symbol"?L:String(L)}
function d(L){var Bw=Object.getPrototypeOf(L);if(typeof L!=="function"||L===p||Bw!==p)return Bw;var P=Object.getPrototypeOf(L.prototype);if(P==null||P===Object.prototype)return Bw;P=P.constructor;return typeof P!=="function"||P===L?Bw:P}
function V(){function L(){this._keys=[];this._values=[];this._cache=Bw}
var Bw={};L.prototype={get size(){return this._keys.length},has:function(P){return P===this._cache?!0:this._find(P)>=0?(this._cache=P,!0):!1},
get:function(P){var xz=this._find(P);if(xz>=0)return this._cache=P,this._values[xz]},
set:function(P,xz){this.delete(P);this._keys.push(P);this._values.push(xz);this._cache=P;return this},
delete:function(P){P=this._find(P);return P>=0?(this._keys.splice(P,1),this._values.splice(P,1),this._cache=Bw,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Bw},
forEach:function(P){for(var xz=this.size,Sp=0;Sp<xz;++Sp){var vw=this._keys[Sp],lw=this._values[Sp];this._cache=vw;P.call(this,lw,vw,this)}},
_find:function(P){for(var xz=this._keys,Sp=xz.length,vw=0;vw<Sp;++vw)if(xz[vw]===P)return vw;return-1}};
return L}
function c(){function L(){this._map=new e}
L.prototype={get size(){return this._map.length},has:function(Bw){return this._map.has(Bw)},
add:function(Bw){this._map.set(Bw,Bw);return this},
delete:function(Bw){return this._map.delete(Bw)},
clear:function(){this._map.clear()},
forEach:function(Bw,P){this._map.forEach(Bw,P)}};
return L}
function M(){function L(){this._key=P()}
function Bw(nA,Xs){for(var aI=0;aI<Xs;++aI)nA[aI]=Math.random()*255|0}
function P(){do{if(Sp)var nA=Sp.randomBytes(16);else typeof Uint8Array==="function"?(nA=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(nA):Bw(nA,16)):(nA=Array(16),Bw(nA,16));nA[6]=nA[6]&79|64;nA[8]=nA[8]&191|128;for(var Xs="",aI=0;aI<16;++aI){var LA=nA[aI];if(aI===4||aI===6||aI===8)Xs+="-";LA<16&&(Xs+="0");Xs+=LA.toString(16).toLowerCase()}nA="@@WeakMap@@"+Xs}while(vw.call(lw,nA));lw[nA]=!0;return nA}
function xz(nA,Xs){if(!vw.call(nA,G4)){if(!Xs)return;Object.defineProperty(nA,G4,{value:Object.create(null)})}return nA[G4]}
var Sp=typeof global!=="undefined"&&typeof HOx==="object"&&typeof require==="function"&&require("crypto"),vw=Object.prototype.hasOwnProperty,lw={},G4=P();L.prototype={has:function(nA){return(nA=xz(nA,!1))?this._key in nA:!1},
get:function(nA){if(nA=xz(nA,!1))return nA[this._key]},
set:function(nA,Xs){xz(nA,!0)[this._key]=Xs;return this},
delete:function(nA){return(nA=xz(nA,!1))&&this._key in nA?delete nA[this._key]:!1},
clear:function(){this._key=P()}};
return L}
var p=Object.getPrototypeOf(Function),e=typeof Map==="function"?Map:V(),u=typeof Set==="function"?Set:c(),h=new (typeof WeakMap==="function"?WeakMap:M());W.decorate=function(L,Bw,P,xz){if(x(xz)){if(x(P)){if(!Array.isArray(L))throw new TypeError;if(!a(Bw))throw new TypeError;for(P=L.length-1;P>=0;--P)if(xz=(0,L[P])(Bw),!x(xz)){if(!a(xz))throw new TypeError;Bw=xz}return Bw}if(!Array.isArray(L))throw new TypeError;if(!E(Bw))throw new TypeError;P=X(P);for(xz=L.length-1;xz>=0;--xz)(0,L[xz])(Bw,P)}else{if(Array.isArray(L))if(E(Bw)){if(x(P))throw new TypeError;
if(!E(xz))throw new TypeError;}else throw new TypeError;else throw new TypeError;P=X(P);for(var Sp=L.length-1;Sp>=0;--Sp){var vw=(0,L[Sp])(Bw,P,xz);if(!x(vw)){if(!E(vw))throw new TypeError;xz=vw}}return xz}};
W.metadata=function(L,Bw){return function(P,xz){if(x(xz)){if(!a(P))throw new TypeError;k(P,void 0,!0).set(L,Bw)}else{if(!E(P))throw new TypeError;xz=X(xz);k(P,xz,!0).set(L,Bw)}}};
W.defineMetadata=function(L,Bw){var P;if(E(Bw))x(P)||(P=X(P));else throw new TypeError;k(Bw,P,!0).set("parameters",L)};
W.hasMetadata=function(L,Bw,P){if(E(Bw))x(P)||(P=X(P));else throw new TypeError;return C(L,Bw,P)};
W.hasOwnMetadata=function(L,Bw,P){if(E(Bw))x(P)||(P=X(P));else throw new TypeError;return n(L,Bw,P)};
W.getMetadata=function(L,Bw,P){if(E(Bw))x(P)||(P=X(P));else throw new TypeError;return N(L,Bw,P)};
W.getOwnMetadata=function(L,Bw,P){if(E(Bw))x(P)||(P=X(P));else throw new TypeError;return B(L,Bw,P)};
W.getMetadataKeys=function(L,Bw){if(E(L))x(Bw)||(Bw=X(Bw));else throw new TypeError;return A(L,Bw)};
W.getOwnMetadataKeys=function(L,Bw){if(E(L))x(Bw)||(Bw=X(Bw));else throw new TypeError;return w(L,Bw)};
W.deleteMetadata=function(L,Bw,P){if(E(Bw))x(P)||(P=X(P));else throw new TypeError;var xz=k(Bw,P,!1);if(!x(xz)){if(!xz.delete(L))return!1;if(xz.size>0)return!0;L=h.get(Bw);L.delete(P);if(L.size>0)return!0;h.delete(Bw);return!0}};
(function(L){if(typeof L.Reflect!=="undefined"){if(L.Reflect!==W)for(var Bw in W)L.Reflect[Bw]=W[Bw]}else L.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(rhC||(rhC={}));var Okp=self;var gZx=[0,_.$4,_.RU,_.$4];var PK2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(PK2,_.US);var Kgb=_.ht(PK2,[0,_.Y2s,_.oU,gZx,_.RU,_.Tv]);_.Pq(_.uD,_.XK);_.Y=_.uD.prototype;_.Y.start=function(){this.stop();this.usingListeners_=!1;var W=hNA(this),k=WWx(this);W&&!k&&this.JSC$9079_win_.mozRequestAnimationFrame?(this.JSC$9079_id_=_.b6(this.JSC$9079_win_,"MozBeforePaint",this.callback_),this.JSC$9079_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9079_id_=W&&k?W.call(this.JSC$9079_win_,this.callback_):this.JSC$9079_win_.setTimeout(wY8(this.callback_),20)};
_.Y.stop=function(){if(this.isActive()){var W=hNA(this),k=WWx(this);W&&!k&&this.JSC$9079_win_.mozRequestAnimationFrame?NN(this.JSC$9079_id_):W&&k?k.call(this.JSC$9079_win_,this.JSC$9079_id_):this.JSC$9079_win_.clearTimeout(this.JSC$9079_id_)}this.JSC$9079_id_=null};
_.Y.fire=function(){this.stop();this.JSC$9081_doAction_()};
_.Y.isActive=function(){return this.JSC$9079_id_!=null};
_.Y.JSC$9081_doAction_=function(){this.usingListeners_&&this.JSC$9079_id_&&NN(this.JSC$9079_id_);this.JSC$9079_id_=null;this.JSC$9079_listener_.call(this.handler_,_.gk())};
_.Y.disposeInternal=function(){this.stop();_.uD.superClass_.disposeInternal.call(this)};
var hNA=function(W){W=W.JSC$9079_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},WWx=function(W){W=W.JSC$9079_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.Ox=function(W,k,C){_.XK.call(this);this.JSC$9082_listener_=C!=null?W.bind(C):W;this.JSC$9082_interval_=k;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9082_timer_=null};
_.D(_.Ox,_.XK);_.Y=_.Ox.prototype;_.Y.fire=function(W){this.args_=arguments;this.JSC$9082_timer_||this.pauseCount_?this.shouldFire_=!0:kMC(this)};
_.Y.stop=function(){this.JSC$9082_timer_&&(_.NX.clearTimeout(this.JSC$9082_timer_),this.JSC$9082_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.Y.pause=function(){this.pauseCount_++};
_.Y.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9082_timer_||(this.shouldFire_=!1,kMC(this))};
_.Y.disposeInternal=function(){_.XK.prototype.disposeInternal.call(this);this.stop()};
var kMC=function(W){W.JSC$9082_timer_=Xb(function(){W.JSC$9082_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,kMC(W))},W.JSC$9082_interval_);
var k=W.args_;W.args_=null;W.JSC$9082_listener_.apply(null,k)};var C0b=function(W,k){this.childIterator_=W[_.NX.Symbol.iterator]();this.mapFn_=k};
C0b.prototype[Symbol.iterator]=function(){return this};
C0b.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var nrI=function(W,k){return new C0b(W,k)};var NHI={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 wMm=function(W){var k=YCA(W);if(!k)throw Error("Rd`"+W);return k},YCA=function(W){var k={};
W=String(W);var C=W.charAt(0)=="#"?W:"#"+W;if(BHs.test(C))return k.hex=Yt3(C),k.type="hex",k;C=EV4(W);return C.length?(k.hex=AZw(C[0],C[1],C[2]),k.type="rgb",k):NHI&&(W=NHI[W.toLowerCase()])?(k.hex=W,k.type="named",k):null},bq8=/#(.)(.)(.)/,Yt3=function(W){if(!BHs.test(W))throw Error("Td`"+W);
W.length==4&&(W=W.replace(bq8,"#$1$1$2$2$3$3"));return W.toLowerCase()},xHc=function(W){W=Yt3(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},AZw=function(W,k,C){W=Number(W);
k=Number(k);C=Number(C);if(W!=(W&255)||k!=(k&255)||C!=(C&255))throw Error("Ud`"+W+"`"+k+"`"+C);k=W<<16|k<<8|C;return W<16?"#"+(16777216|k).toString(16).slice(1):"#"+k.toString(16)},BHs=/^#(?:[0-9a-f]{3}){1,2}$/i,AvY=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,EV4=function(W){var k=W.match(AvY);
if(k){W=Number(k[1]);var C=Number(k[2]);k=Number(k[3]);if(W>=0&&W<=255&&C>=0&&C<=255&&k>=0&&k<=255)return[W,C,k]}return[]};var FW8={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},XY=FW8;XY=FW8;var ZWm,wpZ,xss;ZWm=function(W,k){switch(k){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
wpZ=function(W,k,C,n,N){W=new Date(W,k,C);N=N||0;return W.valueOf()+(((n!==void 0?n:3)-N+7)%7-((W.getDay()+6)%7-N+7)%7)*864E5};
_.lP=function(W,k,C){typeof W==="number"?(this.date=xss(W,k||0,C||1),ly2(this,C||1)):_.O2(W)?(this.date=xss(W.getFullYear(),W.getMonth(),W.getDate()),ly2(this,W.getDate())):(this.date=new Date(_.gk()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),ly2(this,W))};
xss=function(W,k,C){k=new Date(W,k,C);W>=0&&W<100&&k.setFullYear(k.getFullYear()-1900);return k};
_.Y=_.lP.prototype;_.Y.firstDayOfWeek_=XY.FIRSTDAYOFWEEK;_.Y.firstWeekCutOffDay_=XY.FIRSTWEEKCUTOFFDAY;_.Y.clone=function(){var W=new _.lP(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.Y.getFullYear=function(){return this.date.getFullYear()};
_.Y.getYear=function(){return this.getFullYear()};
_.Y.getMonth=function(){return this.date.getMonth()};
_.Y.getDate=function(){return this.date.getDate()};
_.Y.getTime=function(){return this.date.getTime()};
_.Y.getDay=function(){return this.date.getDay()};
_.Y.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.Y.getUTCMonth=function(){return this.date.getUTCMonth()};
_.Y.getUTCDate=function(){return this.date.getUTCDate()};
_.Y.getUTCDay=function(){return this.date.getDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.Y.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.Y.setFullYear=function(W){this.date.setFullYear(W)};
_.Y.setYear=function(W){this.setFullYear(W)};
_.Y.setMonth=function(W){this.date.setMonth(W)};
_.Y.setDate=function(W){this.date.setDate(W)};
_.Y.setTime=function(W){this.date.setTime(W)};
_.Y.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.Y.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.Y.setUTCDate=function(W){this.date.setUTCDate(W)};
_.Y.add=function(W){if(W.years||W.months){var k=this.getMonth()+W.months+W.years*12,C=this.getYear()+Math.floor(k/12);k%=12;k<0&&(k+=12);var n=Math.min(ZWm(C,k),this.getDate());this.setDate(1);this.setFullYear(C);this.setMonth(k);this.setDate(n)}W.days&&(C=this.getYear(),k=C>=0&&C<=99?-1900:0,W=new Date((new Date(C,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+k),this.setMonth(W.getMonth()),this.setDate(W.getDate()),ly2(this,W.getDate()))};
_.Y.JSC$9095_toIsoString=function(W){var k=this.getFullYear(),C=k<0?"-":k>=1E4?"+":"";return[C+_.jt(Math.abs(k),C?6:4),_.jt(this.getMonth()+1,2),_.jt(this.getDate(),2)].join(W?"-":"")};
_.Y.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.Y.toString=function(){return this.JSC$9095_toIsoString()};
var ly2=function(W,k){W.getDate()!=k&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<k?1:-1))};
_.lP.prototype.valueOf=function(){return this.date.valueOf()};var En=function(W,k,C,n,N){this.reversed=!!k;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!C;W&&t9(this,W,n);this.depth=N!=void 0?N:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Pq(En,jT);var t9=function(W,k,C,n){if(W.node=k)W.tagType=typeof C==="number"?C:W.node.nodeType!=1?0:W.reversed?-1:1;typeof n==="number"&&(W.depth=n)};
_.Y=En.prototype;_.Y.JSC$9110_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.Y.clone=function(){return new En(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.Y.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return H1;var W=this.node;var k=this.reversed?-1:1;if(this.tagType==k){var C=this.reversed?W.lastChild:W.firstChild;C?t9(this,C):t9(this,W,k*-1)}else(C=this.reversed?W.previousSibling:W.nextSibling)?t9(this,C):t9(this,W.parentNode,k*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?r1(W):H1};
_.Y.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.Y.splice=function(W){var k=this.node,C=this.reversed?1:-1;this.tagType==C&&(this.tagType=C*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;En.prototype.next.call(this);this.reversed=!this.reversed;C=_.qX(arguments[0])?arguments[0]:arguments;for(var n=C.length-1;n>=0;n--)_.IH(C[n],k);_.xL(k)};var tYS=function(){},ay=function(W){for(var k=[],C=W.getTextRangeCount(),n=0;n<C;n++)k.push(W.getTextRange(n));
return k};
tYS.prototype.isReversed=function(){return!1};
tYS.prototype.getWindow=function(){return M3(_.QZ(this.JSC$9112_getStartNode()))};
var ErS=function(W,k){En.call(this,W,k,!0)};
_.Pq(ErS,En);var Xh=function(W,k,C,n,N){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!N;if(W){this.startNode_=W;this.startOffset_=k;this.endNode_=C;this.endOffset_=n;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,k=W[k])this.startNode_=k,this.startOffset_=0;else{W.length&&(this.startNode_=_.pI(W));var B=!0}C.nodeType==1&&((this.endNode_=C.childNodes[n])?this.endOffset_=0:this.endNode_=C)}En.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);B&&this.next()};
_.Pq(Xh,ErS);_.Y=Xh.prototype;_.Y.JSC$9118_getStartNode=function(){return this.startNode_};
_.Y.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)};
_.Y.next=function(){return this.isLast()?H1:Xh.superClass_.next.call(this)};
_.Y.JSC$9110_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;Xh.superClass_.JSC$9110_copyFrom.call(this,W)};
_.Y.clone=function(){var W=new Xh(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$9110_copyFrom(this);return W};var ay8=function(){};
ay8.prototype.__iterator__=function(){return new Xh(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var f3=function(W){this.range_=W};
_.Pq(f3,ay8);var Xps=function(W){var k=_.QZ(W).createRange();if(W.nodeType==3)k.setStart(W,0),k.setEnd(W,W.length);else if(V$(W)||W.nodeType==3){for(var C,n=W;(C=n.firstChild)&&(V$(C)||C.nodeType==3);)n=C;k.setStart(n,0);for(n=W;(C=n.lastChild)&&(V$(C)||C.nodeType==3);)n=C;k.setEnd(n,n.nodeType==1?n.childNodes.length:n.length)}else C=W.parentNode,W=Array.prototype.indexOf.call(C.childNodes,W),k.setStart(C,W),k.setEnd(C,W+1);return k},fy8=function(W,k,C,n){var N=_.QZ(W).createRange();
N.setStart(W,k);N.setEnd(C,n);return N};
_.Y=f3.prototype;_.Y.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.Y.getContainer=function(){return this.range_.commonAncestorContainer};
_.Y.compareBrowserRangeEndpoints=function(W,k,C){return this.range_.compareBoundaryPoints(C==1?k==1?_.NX.Range.START_TO_START:_.NX.Range.START_TO_END:k==1?_.NX.Range.END_TO_START:_.NX.Range.END_TO_END,W)};
_.Y.isCollapsed=function(){return this.range_.collapsed};
_.Y.select=function(W){this.selectInternal(M3(_.QZ(this.range_.startContainer)).getSelection(),W)};
_.Y.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.Y.insertNode=function(W,k){var C=this.range_.cloneRange();C.collapse(k);C.insertNode(W);C.detach();return W};
_.Y.collapse=function(W){this.range_.collapse(W)};_.Pq(Ud,f3);Ud.prototype.selectInternal=function(W,k){!k||this.isCollapsed()?Ud.superClass_.selectInternal.call(this,W,k):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.Pq(Od,f3);Od.prototype.compareBrowserRangeEndpoints=function(W,k,C){return Od.superClass_.compareBrowserRangeEndpoints.call(this,W,k,C)};
Od.prototype.selectInternal=function(W,k){k?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var dsY=function(W){return _.Nb?new Od(W):_.nr?new Ud(W):new f3(W)};var d4=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},ms8;
_.Pq(d4,tYS);ms8=function(W,k){var C=new d4;C.browserRangeWrapper_=W;C.isReversed_=!!k;return C};
_.zUs=function(W){W=_.Nb?new Od(Xps(W)):_.nr?new Ud(Xps(W)):new f3(Xps(W));return ms8(W)};
_.mF=function(W,k,C,n){var N=new d4;N.isReversed_=DsY(W,k,C,n);if(_.Gw(W)&&!V$(W)){var B=W.parentNode;k=Array.prototype.indexOf.call(B.childNodes,W);W=B}_.Gw(C)&&!V$(C)&&(B=C.parentNode,n=Array.prototype.indexOf.call(B.childNodes,C),C=B);N.isReversed_?(N.startNode_=C,N.startOffset_=n,N.endNode_=W,N.endOffset_=k):(N.startNode_=W,N.startOffset_=k,N.endNode_=C,N.endOffset_=n);return N};
_.Y=d4.prototype;_.Y.clone=function(){var W=new d4;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.Y.JSC$9112_getType=function(){return"text"};
_.Y.getBrowserRangeObject=function(){return z0(this).range_};
_.Y.getTextRangeCount=function(){return 1};
_.Y.getTextRange=function(){return this};
var z0=function(W){var k;if(!(k=W.browserRangeWrapper_)){k=W.JSC$9112_getStartNode();var C=W.JSC$9112_getStartOffset(),n=W.JSC$9112_getEndNode(),N=W.JSC$9112_getEndOffset();k=_.Nb?new Od(fy8(k,C,n,N)):_.nr?new Ud(fy8(k,C,n,N)):new f3(fy8(k,C,n,N));k=W.browserRangeWrapper_=k}return k};
_.Y=d4.prototype;_.Y.getContainer=function(){return z0(this).getContainer()};
_.Y.JSC$9112_getStartNode=function(){var W;(W=this.startNode_)||(W=this.startNode_=z0(this).range_.startContainer);return W};
_.Y.JSC$9112_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=z0(this).range_.startOffset};
_.Y.JSC$9112_getEndNode=function(){var W;(W=this.endNode_)||(W=this.endNode_=z0(this).range_.endContainer);return W};
_.Y.JSC$9112_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=z0(this).range_.endOffset};
_.Y.isReversed=function(){return this.isReversed_};
_.Y.JSC$9112_containsRange=function(W,k){if(W.JSC$9112_getType()=="text"){var C=z0(this);W=z0(W);k=k&&!W.isCollapsed();W=W.range_;C=k?C.compareBrowserRangeEndpoints(W,0,1)>=0&&C.compareBrowserRangeEndpoints(W,1,0)<=0:C.compareBrowserRangeEndpoints(W,0,0)>=0&&C.compareBrowserRangeEndpoints(W,1,1)<=0}else C=!1;return C};
_.Y.isCollapsed=function(){return z0(this).isCollapsed()};
_.Y.JSC$9112_getText=function(){return z0(this).range_.toString()};
_.Y.__iterator__=function(){return new Xh(this.JSC$9112_getStartNode(),this.JSC$9112_getStartOffset(),this.JSC$9112_getEndNode(),this.JSC$9112_getEndOffset())};
_.Y.select=function(){z0(this).select(this.isReversed_)};
_.Y.JSC$9112_removeContents=function(){var W=z0(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var k=W.previousSibling;p6C(W)==""&&_.xL(W);k&&p6C(k)==""&&_.xL(k)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.Y.insertNode=function(W,k){W=z0(this).insertNode(W,k);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.Y.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var VYb=function(){};
_.Pq(VYb,tYS);VYb.prototype.JSC$9112_containsRange=function(W,k){var C=ay(this);W=ay(W);return(k?v$:_.F2w)(W,function(n){return v$(C,function(N){return N.JSC$9112_containsRange(n,k)})})};
VYb.prototype.insertNode=function(W,k){k?_.cT(W,this.JSC$9112_getStartNode()):_.IH(W,this.JSC$9112_getEndNode());return W};var Jv8,cvs=erZ(aO()).documentElement;Jv8=cvs.requestFullscreen?"fullscreenchange":cvs.webkitRequestFullscreen?"webkitfullscreenchange":cvs.mozRequestFullScreen?"mozfullscreenchange":cvs.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var IyA=function(){var W=erZ(aO());return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var D2=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Pq(D2,VYb);_.Y=D2.prototype;_.Y.clone=function(){var W=new D2;W.browserRanges_=_.T4(this.browserRanges_);return W};
_.Y.JSC$9112_getType=function(){return"mutli"};
_.Y.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.Y.getTextRangeCount=function(){return this.browserRanges_.length};
_.Y.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=ms8(dsY(this.browserRanges_[W])));return this.ranges_[W]};
_.Y.getContainer=function(){if(!this.container_){for(var W=[],k=this.getTextRangeCount(),C=0;C<k;C++)W.push(this.getTextRange(C).getContainer());this.container_=VN8.apply(null,W)}return this.container_};
var VH=function(W){W.sortedRanges_||(W.sortedRanges_=ay(W),W.sortedRanges_.sort(function(k,C){var n=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();var N=C.JSC$9112_getStartNode();C=C.JSC$9112_getStartOffset();return n==N&&k==C?0:DsY(n,k,N,C)?1:-1}));
return W.sortedRanges_};
_.Y=D2.prototype;_.Y.JSC$9112_getStartNode=function(){return VH(this)[0].JSC$9112_getStartNode()};
_.Y.JSC$9112_getStartOffset=function(){return VH(this)[0].JSC$9112_getStartOffset()};
_.Y.JSC$9112_getEndNode=function(){return _.pI(VH(this)).JSC$9112_getEndNode()};
_.Y.JSC$9112_getEndOffset=function(){return _.pI(VH(this)).JSC$9112_getEndOffset()};
_.Y.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.Y.JSC$9112_getText=function(){return ay(this).map(function(W){return W.JSC$9112_getText()}).join("")};
_.Y.__iterator__=function(){return new J9(this)};
_.Y.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var k=this.getTextRangeCount(),C=0;C<k;C++)W.addRange(this.getTextRange(C).getBrowserRangeObject())};
_.Y.JSC$9112_removeContents=function(){ay(this).forEach(function(W){W.JSC$9112_removeContents()})};
_.Y.collapse=function(W){if(!this.isCollapsed()){var k=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;k.collapse(W);this.ranges_=[k];this.sortedRanges_=[k];this.browserRanges_=[k.getBrowserRangeObject()]}};
var J9=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=VH(W).map(function(k){return _.qdI(k)}));
En.call(this,W?this.JSC$9118_getStartNode():null,!1,!0)};
_.Pq(J9,ErS);_.Y=J9.prototype;_.Y.JSC$9118_getStartNode=function(){return this.iterators_[0].JSC$9118_getStartNode()};
_.Y.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.Y.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],k=W.next();if(k.done)this.currentIdx_++;else return t9(this,W.node,W.tagType,W.depth),k}return H1};
_.Y.JSC$9110_copyFrom=function(W){this.iterators_=_.T4(W.iterators_);J9.superClass_.JSC$9110_copyFrom.call(this,W)};
_.Y.clone=function(){var W=new J9(null);W.JSC$9110_copyFrom(this);return W};var SC8,DsY;_.xx=function(){var W=window.getSelection();return W&&SC8(W)};
SC8=function(W){var k=!1;if(W.createRange)try{var C=W.createRange()}catch(N){return null}else if(W.rangeCount){if(W.rangeCount>1){C=new D2;k=W.rangeCount;for(var n=0;n<k;n++)C.browserRanges_.push(W.getRangeAt(n));return C}C=W.getRangeAt(0);k=DsY(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return ms8(dsY(C),k)};
_.cF=function(W,k){return _.mF(W,k,W,k)};
_.Iy=function(W,k,C,n){return _.mF(W,k,C,n)};
DsY=function(W,k,C,n){if(W==C)return n<k;var N;if(W.nodeType==1&&k)if(N=W.childNodes[k])W=N,k=0;else if(_.vf(W,C))return!0;if(C.nodeType==1&&n)if(N=C.childNodes[n])C=N,n=0;else if(_.vf(C,W))return!1;return(Dax(W,C)||k-n)>0};var Sz=function(){_.xT.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.fN)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.fN)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.fN)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.fN)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.fN)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.fN)(this.dispatchProgressEvent_,this)};
_.Pq(Sz,_.xT);Sz.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new KwA(W,"aborting read");}};
Sz.prototype.getError=function(){return this.reader_.error&&new KwA(this.reader_.error,"reading file")};
Sz.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new h6b(W,this))};
Sz.prototype.disposeInternal=function(){Sz.superClass_.disposeInternal.call(this);delete this.reader_};
var QKb=function(W){var k=new Sz,C=MYC(k);k.reader_.readAsArrayBuffer(W);return C},pps=function(W){var k=new Sz,C=MYC(k);
k.reader_.readAsDataURL(W);return C},MYC=function(W){var k=new yA;
W.listen("loadend",_.lW(function(C,n){var N=n.reader_.result,B=n.getError();N==null||B?C.errback(B):C.callback(N);n.dispose()},k,W));
return k};var MV=function(){_.xT.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9152_eventHandler_=new _.j9(this);this.JSC$9152_isInitialized_=!1};
_.Pq(MV,_.xT);var vrs=new _.Ne("d"),eU8=new _.Ne("beforedragstart"),sKS=new _.Ne("dragstart"),GMA=new _.Ne("beforedragmove"),yvs=new _.Ne("dragmove"),$sI=new _.Ne("beforedragend"),Zqs=new _.Ne("dragend"),RUS=new _.Ne("e");MV.prototype.isDragging=function(){return!!this.JSC$9152_dragger_};
var orx=function(W,k){k.dlgGrowthDirection_=0;k.dlgDragHoverClass_=void 0;k.dlgDragPermission=0;W.dragLists_.push(k)},iqA=function(W,k){W.getHandleForDragItem_=k};
MV.prototype.init=function(){if(!this.JSC$9152_isInitialized_){for(var W=this.dragLists_.length,k=0;k<W;k++)for(var C=_.MJ(this.dragLists_[k]),n=C.length,N=0;N<n;++N){var B=C[N],A=this.getHandleForDragItem_(B),w=_.Hw(A);this.dragItemForHandle_[w]=B;this.dragItemHoverClasses_&&(this.JSC$9152_eventHandler_.listen(B,"mouseover",this.handleDragItemMouseover_),this.JSC$9152_eventHandler_.listen(B,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9152_eventHandler_.listen(A,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9152_eventHandler_.listen(A,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(B);this.JSC$9152_eventHandler_.listen(A,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9152_isInitialized_=!0}};
MV.prototype.disposeInternal=function(){this.JSC$9152_eventHandler_.dispose();for(var W=this.dragLists_.length,k=0;k<W;k++){var C=this.dragLists_[k];C.dlgGrowthDirection_=void 0;C.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;THZ(this);MV.superClass_.disposeInternal.call(this)};
var qCx=function(W,k){for(var C=W.dragLists_.length,n=0;n<C;n++){var N=W.dragLists_[n];N.dlgBounds_=I8P(N)}C=W.dragItems_.length;for(n=0;n<C;n++)N=W.dragItems_[n],N!=k&&(N.dlgBounds_=I8P(N))};
_.Y=MV.prototype;
_.Y.handlePotentialDragStart_=function(W){var k=_.Hw(W.currentTarget);k=this.dragItemForHandle_[k];if(k.parentElement.dlgDragPermission!=2){this.currDragItem_=k;a:{k=this.currDragItem_;for(var C=k.cloneNode(!0),n=lg("TEXTAREA",k),N=lg("TEXTAREA",C),B=0;B<n.length;B++)N[B].value=n[B].value;switch(k.tagName){case "TR":k=_.zK("TABLE",null,_.zK("TBODY",null,C));break a;case "TD":case "TH":k=_.zK("TABLE",null,_.zK("TBODY",null,_.zK("TR",null,C)));break a;case "TEXTAREA":C.value=k.value;default:k=C;break a}k=
void 0}this.draggerEl_=k;this.draggerElClasses_&&sY(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.QZ(this.currDragItem_).body.appendChild(this.draggerEl_);C=_.pU(this.currDragItem_);k=this.draggerEl_;n=_.pU(k);if(C instanceof _.S3){var A=C.y;C=C.x}sy(k,k.offsetLeft+(C-n.x),k.offsetTop+(Number(A)-n.y));this.JSC$9152_dragger_=new _.IR(this.draggerEl_);_.PeC(this.JSC$9152_dragger_,this.hysteresisDistance_);
_.b6(this.JSC$9152_dragger_,"start",this.handleDragStart_,!1,this);_.b6(this.JSC$9152_dragger_,"end",this.handleDragEnd_,!1,this);_.b6(this.JSC$9152_dragger_,"earlycancel",this.JSC$9154_cleanup_,!1,this);this.dispatchEvent(new QH(vrs,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_));this.JSC$9152_dragger_.startDrag(W)}};
_.Y.handleDragStart_=function(W){if(this.dispatchEvent(new QH(eU8,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.daA(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?sY(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var k=o3z(this.draggerEl_);this.draggerEl_.halfWidth=k.width/2;this.draggerEl_.halfHeight=k.height/2;k=this.draggerEl_.getBoundingClientRect();
var C=W.clientY,n=Ka2(this.JSC$9152_dragger_,W.clientX);if(n>k.right){var N=this.currDragItem_.getBoundingClientRect();this.JSC$9152_dragger_.deltaX=n-(n-N.left)/N.width*k.width}C=huA(this.JSC$9152_dragger_,C);C>k.bottom&&(this.JSC$9152_dragger_.deltaY+=C-k.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";qCx(this,this.currDragItem_);this.currDragItem_.style.display="";_.b6(this.JSC$9152_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new QH(sKS,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_))}else W.preventDefault(),this.JSC$9154_cleanup_()};
_.Y.handleDragMove_=function(W){var k=_.pU(this.draggerEl_);k=new _.S3(k.x+this.draggerEl_.halfWidth,k.y+this.draggerEl_.halfHeight);a:{var C=null;if(this.currDragItem_.style.display!="none"){C=this.currDragItem_.parentNode;var n=I8P(C);if(urY(k,n))break a}n=this.dragLists_.length;for(var N=0;N<n;N++){var B=this.dragLists_[N];if(B!=C&&urY(k,B.dlgBounds_)){C=B;break a}}C=null}if(C){if(C==null)throw Error("Vd");n=0;N=!1;B=void 0;switch(C.dlgGrowthDirection_){case 0:n=k.y;var A=Uss;var w=Oqb;break;case 4:N=
!0;case 2:n=k.x;A=LW2;w=Oqb;break;case 5:N=!0;case 3:n=k.x,A=jKZ,w=Hqs}for(var x=null,E,a=_.MJ(C),X=a.length,d=0;d<X;d++){var V=a[d];if(V!=this.currDragItem_){var c=A(V.dlgBounds_);if(N){var M=rvs(V,k);B===void 0&&(B=M);w(n,c)&&(E==void 0||M<B||M==B&&(w(c,E)||c==E))&&(x=V,E=c);M<B&&(B=M)}else w(n,c)&&(E==void 0||w(c,E))&&(x=V,E=c)}}A=x!==null&&rvs(x,k)>B?null:x}else A=null;if(!this.dispatchEvent(new QH(GMA,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_,k,C,A)))return!1;if(C&&C.dlgDragPermission!=
1)this.currDragItem_.parentNode==C&&_.daA(this.currDragItem_)==A||C.insertBefore(this.currDragItem_,A),this.currDragItem_.style.display="",C.dlgDragHoverClass_&&_.vj(C,C.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",w=this.dragLists_.length,E=0;E<w;E++)n=this.dragLists_[E],n.dlgDragHoverClass_&&_.QI(n,n.dlgDragHoverClass_);C!=this.currHoverList_&&(this.currHoverList_=C,qCx(this,this.currDragItem_));this.dispatchEvent(new QH(yvs,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_,
k,C,A));return!1};
_.Y.JSC$9154_cleanup_=function(){THZ(this);this.JSC$9152_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,k=0;k<W;k++)this.dragLists_[k].dlgBounds_=null;W=this.dragItems_.length;for(k=0;k<W;k++)this.dragItems_[k].dlgBounds_=null};
_.Y.handleDragEnd_=function(W){if(!this.dispatchEvent(new QH($sI,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_)))return!1;THZ(this);this.dispatchEvent(new QH(Zqs,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9152_dragger_));this.JSC$9154_cleanup_();return!0};
var THZ=function(W){_.LU(W.JSC$9152_dragger_);var k=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.xL(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?PRz(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var C=W.dragLists_.length,n=0;n<C;n++){var N=W.dragLists_[n];N.dlgDragHoverClass_&&
_.QI(N,N.dlgDragHoverClass_)}k&&W.dispatchEvent(new QH(RUS,W,null,W.currDragItem_,W.draggerEl_,W.JSC$9152_dragger_))};
_.Y=MV.prototype;_.Y.getHandleForDragItem_=function(W){return W};
_.Y.handleDragItemMouseover_=function(W){sY(W.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemMouseout_=function(W){PRz(W.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemHandleMouseover_=function(W){sY(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.Y.handleDragItemHandleMouseout_=function(W){PRz(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var urY=function(W,k){return W.x>k.left&&W.x<k.left+k.width&&W.y>k.top&&W.y<k.top+k.height},rvs=function(W,k){W=W.dlgBounds_;
return Math.abs(k.y-(W.top+(W.height-1)/2))},Uss=function(W){return W.top+W.height-1},LW2=function(W){return W.left+W.width-1},jKZ=function(W){return W.left||0},Oqb=function(W,k){return W<k},Hqs=function(W,k){return W>k},QH=function(W,k,C,n,N,B){_.BS.call(this,W);
this.event=C;this.currDragItem=n;this.draggerEl=N;this.JSC$9156_dragger=B};
_.Pq(QH,_.BS);_.Pq(Hm,_.XK);var grI=new _.S3(0,0);Hm.prototype.JSC$9160_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Hm.prototype.JSC$9160_onMouseMove=function(W){var k=this.containerIsActuallyContent_?grI:EX(aO(this.containerNode_)),C=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+k.x,this.scrollBounds_.left,this.scrollBounds_.width):0,n=this.calculateScrollDelta(W.clientY+k.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=C;this.scrollDelta_.y=n;!(C=!C&&!n)&&(C=this.constrainScroll_)&&(C=W.clientX+k.x,W=W.clientY+k.y,k=this.containerBounds_,C=!(k.left<=C&&k.left+k.width>=
C&&k.top<=W&&k.top+k.height>=W));C?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Hm.prototype.calculateScrollDelta=function(W,k,C){var n=0;W<k?n=-8:W>k+C&&(n=8);return n};
Hm.prototype.disposeInternal=function(){Hm.superClass_.disposeInternal.call(this);this.JSC$9158_eventHandler_.dispose();this.scrollTimer_.dispose()};var P0A={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"}}},p3=P0A;p3=P0A;var vF={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 KW8=function(){},v3=function(W){if(typeof W=="number"){var k=new KW8;
k.standardOffset_=W;var C=W;if(C==0)C="Etc/GMT";else{var n=["Etc/GMT",C<0?"-":"+"];C=Math.abs(C);n.push(Math.floor(C/60)%100);C%=60;C!=0&&n.push(":",_.jt(C,2));C=n.join("")}k.timeZoneId_=C;C=W;C==0?C="UTC":(n=["UTC",C<0?"+":"-"],C=Math.abs(C),n.push(Math.floor(C/60)%100),C%=60,C!=0&&n.push(":",C),C=n.join(""));W=hUS(W);k.tzNames_=[C,C];k.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};k.transitions_=[];return k}k=new KW8;k.timeZoneId_=W.id;k.standardOffset_=-W.std_offset;k.tzNames_=W.names;
k.tzNamesExt_=W.names_ext;k.transitions_=W.transitions;return k},hUS=function(W){var k=["GMT"];
k.push(W<=0?"+":"-");W=Math.abs(W);k.push(_.jt(Math.floor(W/60)%100,2),":",_.jt(W%60,2));return k.join("")},W8x=function(W,k){k=Date.UTC(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate(),k.getUTCHours(),k.getUTCMinutes())/36E5;
for(var C=0;C<W.transitions_.length&&k>=W.transitions_[C];)C+=2;return C==0?0:W.transitions_[C-1]},kjC=function(W,k){W=W.standardOffset_-W8x(W,k);
return W===-1440?0:W};var eW=function(W,k){this.patternParts_=[];this.JSC$9171_dateTimeSymbols_=k||XY;typeof W=="number"?C68(this,W):nfb(this,W)},NyZ=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],ez=function(W){return W.getHours?W.getHours():0},nfb=function(W,k){for(a1p&&(k=k.replace(/\u200f/g,""));k;){for(var C=k,n=0;n<NyZ.length;++n){var N=k.match(NyZ[n]);
if(N){var B=N[0];k=k.substring(B.length);n==0&&(B=="''"?B="'":(B=B.substring(1,N[1]=="'"?B.length-1:B.length),B=B.replace(/''/g,"'")));W.patternParts_.push({text:B,type:n});break}}if(C===k)throw Error("Wd`"+k);}};
eW.prototype.format=function(W,k){if(!W)throw Error("Xd");var C=k?(W.getTimezoneOffset()-kjC(k,W))*6E4:0,n=C?new Date(W.getTime()+C):W,N=n;k&&n.getTimezoneOffset()!=W.getTimezoneOffset()&&(n=new Date(n.getTime()+(n.getTimezoneOffset()-W.getTimezoneOffset())*6E4),N=new Date(W.getTime()+(C+(C>0?-864E5:864E5))));C=[];for(var B=0;B<this.patternParts_.length;++B){var A=this.patternParts_[B].text;1==this.patternParts_[B].type?C.push(YiY(this,A,W,n,N,k)):C.push(A)}return C.join("")};
var C68=function(W,k){if(k<4)var C=W.JSC$9171_dateTimeSymbols_.DATEFORMATS[k];else if(k<8)C=W.JSC$9171_dateTimeSymbols_.TIMEFORMATS[k-4];else if(k<12)C=W.JSC$9171_dateTimeSymbols_.DATETIMEFORMATS[k-8],C=C.replace("{1}",W.JSC$9171_dateTimeSymbols_.DATEFORMATS[k-8]),C=C.replace("{0}",W.JSC$9171_dateTimeSymbols_.TIMEFORMATS[k-8]);else if(k===12)C=W.JSC$9171_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(k===13)C=W.JSC$9171_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{C68(W,10);return}nfb(W,C)},sn=function(W,k){k=String(k);
W=W.JSC$9171_dateTimeSymbols_||XY;if(W.ZERODIGIT!==void 0&&!EDP){for(var C=[],n=0;n<k.length;n++){var N=k.charCodeAt(n);C.push(48<=N&&N<=57?String.fromCharCode(W.ZERODIGIT+N-48):k.charAt(n))}k=C.join("")}return k},EDP=!1,a1p=!1,bi8=function(W,k,C,n){C=C.getFullYear();
C<=0&&n&&(C=1-C);return sn(W,ByS(C,k))},ByS=function(W,k){k==2&&(W%=100);
W<0&&k++;return _.jt(W,k)},G0=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("Yd");
},A7b=function(W,k){G0(k);
k=ez(k);return W.JSC$9171_dateTimeSymbols_.AMPMS[k>=12&&k<24?1:0]},YiY=function(W,k,C,n,N,B){var A=k.length;
switch(k.charAt(0)){case "G":return C=n.getFullYear()>0?1:0,A>=4?W.JSC$9171_dateTimeSymbols_.ERANAMES[C]:W.JSC$9171_dateTimeSymbols_.ERAS[C];case "y":return bi8(W,A,n,!0);case "Y":return C=(new Date(wpZ(n.getFullYear(),n.getMonth(),n.getDate(),W.JSC$9171_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9171_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),A==2&&(C%=100),sn(W,ByS(C,A));case "u":return bi8(W,A,n,!1);case "M":a:switch(C=n.getMonth(),A){case 5:A=W.JSC$9171_dateTimeSymbols_.NARROWMONTHS[C];break a;
case 4:A=W.JSC$9171_dateTimeSymbols_.MONTHS[C];break a;case 3:A=W.JSC$9171_dateTimeSymbols_.SHORTMONTHS[C];break a;default:A=sn(W,_.jt(C+1,A))}return A;case "k":return G0(N),sn(W,_.jt(ez(N)||24,A));case "S":return sn(W,(N.getMilliseconds()/1E3).toFixed(Math.min(3,A)).slice(2)+(A>3?_.jt(0,A-3):""));case "E":return C=n.getDay(),A>=4?W.JSC$9171_dateTimeSymbols_.WEEKDAYS[C]:W.JSC$9171_dateTimeSymbols_.SHORTWEEKDAYS[C];case "a":return A7b(W,N);case "b":return A7b(W,N);case "B":return A7b(W,N);case "h":return G0(N),
sn(W,_.jt(ez(N)%12||12,A));case "K":return G0(N),sn(W,_.jt(ez(N)%12,A));case "H":return G0(N),sn(W,_.jt(ez(N),A));case "c":a:switch(C=n.getDay(),A){case 5:A=W.JSC$9171_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[C];break a;case 4:A=W.JSC$9171_dateTimeSymbols_.STANDALONEWEEKDAYS[C];break a;case 3:A=W.JSC$9171_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[C];break a;default:A=sn(W,_.jt(C,1))}return A;case "L":a:switch(C=n.getMonth(),A){case 5:A=W.JSC$9171_dateTimeSymbols_.STANDALONENARROWMONTHS[C];break a;
case 4:A=W.JSC$9171_dateTimeSymbols_.STANDALONEMONTHS[C];break a;case 3:A=W.JSC$9171_dateTimeSymbols_.STANDALONESHORTMONTHS[C];break a;default:A=sn(W,_.jt(C+1,A))}return A;case "Q":return C=Math.floor(n.getMonth()/3),A<4?W.JSC$9171_dateTimeSymbols_.SHORTQUARTERS[C]:W.JSC$9171_dateTimeSymbols_.QUARTERS[C];case "d":return sn(W,_.jt(n.getDate(),A));case "m":return G0(N),sn(W,_.jt(N.getMinutes?N.getMinutes():0,A));case "s":return G0(N),sn(W,_.jt(N.getSeconds(),A));case "v":return(B||v3(C.getTimezoneOffset())).timeZoneId_;
case "V":return W=B||v3(C.getTimezoneOffset()),A<=2?W.timeZoneId_:W8x(W,C)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return C=wpZ(N.getFullYear(),N.getMonth(),N.getDate(),W.JSC$9171_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9171_dateTimeSymbols_.FIRSTDAYOFWEEK),sn(W,_.jt(Math.floor(Math.round((C-(new Date((new Date(C)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,A));case "z":return W=B||v3(C.getTimezoneOffset()),A<4?W.tzNames_[W8x(W,C)>0?2:0]:W.tzNames_[W8x(W,C)>0?3:1];case "Z":return k=B||v3(C.getTimezoneOffset()),A<4?(A=-kjC(k,C),W=[A<0?"-":"+"],A=Math.abs(A),W.push(_.jt(Math.floor(A/60)%100,2),_.jt(A%60,2)),A=W.join("")):A=sn(W,hUS(kjC(k,C))),A;default:return""}};var F88=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,wjC=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,AqX=function(W){this.patternParts_=[];this.JSC$9180_dateTimeSymbols_=XY;if(typeof W=="number"){W>11&&(W=10);if(W<4)var k=this.JSC$9180_dateTimeSymbols_.DATEFORMATS[W];else W<8?k=this.JSC$9180_dateTimeSymbols_.TIMEFORMATS[W-4]:(k=this.JSC$9180_dateTimeSymbols_.DATETIMEFORMATS[W-8],k=k.replace("{1}",this.JSC$9180_dateTimeSymbols_.DATEFORMATS[W-8]),k=k.replace("{0}",this.JSC$9180_dateTimeSymbols_.TIMEFORMATS[W-
8]));xNA(this,k)}else xNA(this,W)},xNA=function(W,k){for(var C=!1,n="",N=0;N<k.length;N++){var B=k.charAt(N);
if(F88.test(B))for(n.length>0&&(W.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});N<k.length-1&&k.charAt(N+1)==" ";)N++;else if(C)B=="'"?N+1<k.length&&k.charAt(N+1)=="'"?(n+="'",N++):C=!1:n+=B;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(B)>=0){n.length>0&&(W.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n="");for(var A=k.charAt(N),w=N+1;w<k.length&&k.charAt(w)==A;)w++;A=w-N;A<=0?w=!1:(w="MydhHmsSDkK".indexOf(B),
w=w>0||w==0&&A<3);W.patternParts_.push({text:B,count:A,abutStart:!1,numeric:w});N+=A-1}else B=="'"?N+1<k.length&&k.charAt(N+1)=="'"?(n+="'",N++):C=!0:n+=B}n.length>0&&W.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1});k=!1;for(C=0;C<W.patternParts_.length;C++)W.patternParts_[C].numeric?!k&&C+1<W.patternParts_.length&&W.patternParts_[C+1].numeric&&(k=!0,W.patternParts_[C].abutStart=!0):k=!1};
AqX.prototype.parse=function(W,k,C){var n=!1,N=!1;C&&(n=C.predictive||!1,N=C.validate||!1);if(n)for(C=0;C<this.patternParts_.length;C++){var B=this.patternParts_[C];if(B.count>0&&("abBhHkKm".indexOf(B.text.charAt(0))<0||B.count>2||B.abutStart))throw Error("Zd`"+B.text.charAt(0));}B=new lzz;C=[0];B.dayPeriodIndex=-1;for(var A=0;A<this.patternParts_.length&&!(n&&C[0]>=W.length);A++){if(this.patternParts_[A].count==0){a:{var w=W;var x=C,E=this.patternParts_[A],a=n;if(E.text.match(F88)!=null){if(E=x[0],
tcS(w,x),x[0]>E){w=!0;break a}}else{if(w.indexOf(E.text,x[0])==x[0]){x[0]+=E.text.length;w=!0;break a}if(a&&E.text.indexOf(w.substring(x[0]))==0){x[0]+=w.length-x[0];w=!0;break a}}w=!1}if(w)continue;return 0}if(this.patternParts_[A].abutStart){a:{x=W;E=C;a=A;var X=E[0],d=0;for(w=a;w<this.patternParts_.length;w++){var V=this.patternParts_[w],c=V.count;if(c===0)break;if(w==a&&(c-=d,d++,c==0)){w=0;break a}var M=w>a&&V.numeric,p=E[0];if(!EfA(this,x,E,V,c,B,!1)||M&&E[0]-p<c)w=a-1,E[0]=X}w-=a}if(w<=0)return 0;
A+=w-1}else if(!EfA(this,W,C,this.patternParts_[A],0,B,n))return 0}a:{W=N;if(k==null)throw Error("$d");B.era!=void 0&&B.year!=void 0&&B.era==0&&B.year>0&&(B.year=-(B.year-1));B.year!=void 0&&k.setFullYear(B.year);n=k.getDate();k.setDate(1);B.month!=void 0&&k.setMonth(B.month);B.day!=void 0?k.setDate(B.day):(N=ZWm(k.getFullYear(),k.getMonth()),k.setDate(n>N?N:n));typeof k.setHours==="function"&&(B.hours==void 0&&(B.hours=k.getHours()),B.hours<12&&(B.ampm!=void 0&&B.ampm>0?B.hours+=12:B.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(B.dayPeriodName)||["night1","night2"].includes(B.dayPeriodName)&&B.hours>=6)&&(B.hours+=12)),k.setHours(B.hours));typeof k.setMinutes==="function"&&B.minutes!=void 0&&k.setMinutes(B.minutes);typeof k.setSeconds==="function"&&B.seconds!=void 0&&k.setSeconds(B.seconds);typeof k.setMilliseconds==="function"&&B.milliseconds!=void 0&&k.setMilliseconds(B.milliseconds);if(W&&(B.year&&B.year!=k.getFullYear()||B.month&&B.month!=
k.getMonth()||B.day&&B.day!=k.getDate()||B.hours&&B.hours>=24||B.minutes&&B.minutes>=60||B.seconds&&B.seconds>=60||B.milliseconds&&B.milliseconds>=1E3))k=!1;else{B.tzOffset!=void 0&&k.setTime(k.getTime()+(B.tzOffset-k.getTimezoneOffset())*60*1E3);B.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),k.getTime()<W.getTime()&&k.setFullYear(W.getFullYear()+100));if(B.dayOfWeek!=void 0)if(B.day==void 0)B=(7+B.dayOfWeek-k.getDay())%7,B>3&&(B-=7),W=k.getMonth(),k.setDate(k.getDate()+B),k.getMonth()!=
W&&k.setDate(k.getDate()+(B>0?-7:7));else if(B.dayOfWeek!=k.getDay()){k=!1;break a}k=!0}}return k?C[0]:0};
var EfA=function(W,k,C,n,N,B,A){tcS(k,C);if(n.numeric&&N>0&&C[0]+N>k.length)return!1;switch(n.text.charAt(0)){case "G":return yH(k,C,[W.JSC$9180_dateTimeSymbols_.ERAS],function(w){return B.era=w}),!0;
case "M":case "L":return azI(W,k,C,N,n,B);case "E":return yH(k,C,[W.JSC$9180_dateTimeSymbols_.WEEKDAYS,W.JSC$9180_dateTimeSymbols_.SHORTWEEKDAYS],function(w){return B.dayOfWeek=w});
case "B":case "b":return N=[],W=[[].concat(W.JSC$9180_dateTimeSymbols_.AMPMS)],N.push("isAm"),N.push("isPm"),k=yH(k,C,W,function(w){return B.dayPeriodIndex=w},A),B.dayPeriodName=N[B.dayPeriodIndex],A?k:!0;
case "a":return k=yH(k,C,[W.JSC$9180_dateTimeSymbols_.AMPMS],function(w){return B.ampm=w},A),A?k:!0;
case "y":return Xjb(W,k,C,n,N,B);case "Q":return yH(k,C,[W.JSC$9180_dateTimeSymbols_.QUARTERS,W.JSC$9180_dateTimeSymbols_.SHORTQUARTERS],function(w){B.month=w*3;B.day=1});
case "d":return $M(W,k,C,n,N,function(w){B.day=w}),!0;
case "S":return fzI(W,k,C,N,B);case "h":case "K":case "H":case "k":return k=$M(W,k,C,n,N,function(w){B.hours=n.text.charAt(0)==="h"&&w===12?0:w},A),A?k:!0;
case "m":return k=$M(W,k,C,n,N,function(w){B.minutes=w},A),A?k:!0;
case "s":return $M(W,k,C,n,N,function(w){B.seconds=w}),!0;
case "z":case "Z":case "v":return dNs(W,k,C,B);default:return!1}},Xjb=function(W,k,C,n,N,B){var A=C[0];
N=Z2(W,k,C,N);N===null&&(N=Z2(W,k,C,0,!0));if(N===null)return!1;N>=0&&C[0]-A==2&&n.count==2?(W=N,k=(new Date).getFullYear()-80,C=k%100,B.ambiguousYear=W==C,W+=Math.floor(k/100)*100+(W<C?100:0),B.year=W):B.year=N;return!0},azI=function(W,k,C,n,N,B){return N.numeric&&$M(W,k,C,N,n,function(A){B.month=A-1})?!0:yH(k,C,[W.JSC$9180_dateTimeSymbols_.MONTHS,
W.JSC$9180_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$9180_dateTimeSymbols_.SHORTMONTHS,W.JSC$9180_dateTimeSymbols_.STANDALONESHORTMONTHS],function(A){B.month=A})},fzI=function(W,k,C,n,N){var B=C[0];
W=Z2(W,k,C,n);if(W===null)return!1;C=C[0]-B;N.milliseconds=C<3?W*Math.pow(10,3-C):Math.round(W/Math.pow(10,C-3));return!0},dNs=function(W,k,C,n){k.indexOf("GMT",C[0])==C[0]&&(C[0]+=3);
if(C[0]>=k.length)return n.tzOffset=0,!0;var N=C[0],B=Z2(W,k,C,0,!0);if(B===null)return!1;if(C[0]<k.length&&k.charAt(C[0])==":"){var A=B*60;C[0]++;B=Z2(W,k,C,0);if(B===null)return!1;A+=B}else A=B,A=A<24&&C[0]-N<=3?A*60:A%100+A/100*60;n.tzOffset=-A;return!0},$M=function(W,k,C,n,N,B,A){A=A||!1;
var w=C[0];W=Z2(W,k,C,N);if(W===null)return!1;if(A&&C[0]-w<n.count){if(C[0]<k.length)return!1;W*=Math.pow(10,n.count-(C[0]-w))}B(W);return!0},yH=function(W,k,C,n,N){N=N||!1;
for(var B,A=0;A<C.length;A++){B=k;for(var w=C[A],x=N,E=0,a=null,X=W.substring(B[0]).toLowerCase(),d=0;d<w.length;d++){var V=w[d].toLowerCase();if(x&&V.indexOf(X)==0){E=X.length;a=d;break}w[d].length>E&&X.indexOf(V)==0&&(E=w[d].length,a=d)}a!==null&&(B[0]+=E);B=a;if(B!==null)return n(B),!0}return!1},tcS=function(W,k){(W=W.substring(k[0]).match(wjC))&&(k[0]+=W[0].length)},Z2=function(W,k,C,n,N){k=n>0?k.substring(0,C[0]+n):k;
N=N||!1;if(W.JSC$9180_dateTimeSymbols_.ZERODIGIT){n=[];for(var B=C[0];B<k.length;B++){var A=k.charCodeAt(B)-W.JSC$9180_dateTimeSymbols_.ZERODIGIT;n.push(0<=A&&A<=9?String.fromCharCode(A+48):k.charAt(B))}k=n.join("")}else k=k.substring(C[0]);W=k.match(new RegExp("^"+(N?"[+-]?":"")+"\\d+"));if(!W)return null;C[0]+=W[0].length;return parseInt(W[0],10)},lzz=function(){};
lzz.prototype.ambiguousYear=!1;_.mNx={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 z82={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"},DNZ=z82,VcZ=z82;VcZ=DNZ=z82;var c7x,Ry,iP,rmc,oy,J7S;
_.My=function(W,k,C,n){var N;if(N=k){a:if(k&&k.length===3){for(N=0;N<3;N++){var B=k[N];if(B<"A"||B>"Z"&&B<"a"||B>"z"){N=!1;break a}}N=!0}else N=!1;N=!N}if(N)throw new TypeError("ae");this.intlCurrencyCode_=k?k.toUpperCase():null;this.currencyStyle_=C||0;this.overrideNumberFormatSymbols_=n||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=Ry(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:oy(this,Ry(this).DECIMAL_PATTERN);break;case 2:oy(this,Ry(this).SCIENTIFIC_PATTERN);break;case 3:oy(this,Ry(this).PERCENT_PATTERN);break;case 4:W=Ry(this).CURRENCY_PATTERN;k=["0"];if(C=
vF[iP(this)]){C=C[0]&7;if(C>0)for(k.push("."),n=0;n<C;n++)k.push("0");W=W.replace(/0.00/g,k.join(""))}oy(this,W);break;case 5:J7S(this,1);break;case 6:J7S(this,2);break;default:throw Error("de");}else oy(this,W)};
c7x=!1;Ry=function(W){return W.overrideNumberFormatSymbols_||(c7x?VcZ:DNZ)};
iP=function(W){return W.intlCurrencyCode_||Ry(W).DEF_CURRENCY_CODE};
rmc=function(W,k){if(k>308)throw Error("ce`"+k);W.maximumFractionDigits_=k;return W};
oy=function(W,k){var C=[0];W.positivePrefix_=Izz(W,k,C);for(var n=C[0],N=-1,B=0,A=0,w=0,x=-1,E=k.length,a=!0;C[0]<E&&a;C[0]++)switch(k.charAt(C[0])){case "#":A>0?w++:B++;x>=0&&N<0&&x++;break;case "0":if(w>0)throw Error("je`"+k);A++;x>=0&&N<0&&x++;break;case ",":x>0&&W.groupingArray_.push(x);x=0;break;case ".":if(N>=0)throw Error("ke`"+k);N=B+A+w;break;case "E":if(W.useExponentialNotation_)throw Error("le`"+k);W.useExponentialNotation_=!0;W.minExponentDigits_=0;C[0]+1<E&&k.charAt(C[0]+1)=="+"&&(C[0]++,
W.useSignForPositiveExponent_=!0);for(;C[0]+1<E&&k.charAt(C[0]+1)=="0";)C[0]++,W.minExponentDigits_++;if(B+A<1||W.minExponentDigits_<1)throw Error("me`"+k);a=!1;break;default:C[0]--,a=!1}A==0&&B>0&&N>=0&&(A=N,A==0&&A++,w=B-A,B=A-1,A=1);if(N<0&&w>0||N>=0&&(N<B||N>B+A)||x==0)throw Error("ne`"+k);w=B+A+w;W.maximumFractionDigits_=N>=0?w-N:0;N>=0&&(W.minimumFractionDigits_=B+A-N,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(N>=0?N:w)-B;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
B+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,x));W.decimalSeparatorAlwaysShown_=N==0||N==w;n=C[0]-n;W.positiveSuffix_=Izz(W,k,C);C[0]<k.length&&k.charAt(C[0])==";"?(C[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=Izz(W,k,C),C[0]+=n,W.negativeSuffix_=Izz(W,k,C)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
J7S=function(W,k){W.compactStyle_=k;oy(W,Ry(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;rmc(W,2);if(W.minimumFractionDigits_>0)throw Error("be");W.significantDigits_=2};
_.My.prototype.parse=function(W,k){k=k||[0];if(this.compactStyle_!==0)throw Error("ee");W=W.replace(/ |\u202f/g,"\u00a0");var C=W.indexOf(this.positivePrefix_,k[0])==k[0],n=W.indexOf(this.negativePrefix_,k[0])==k[0];C&&n&&(this.positivePrefix_.length>this.negativePrefix_.length?n=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(C=!1));C?k[0]+=this.positivePrefix_.length:n&&(k[0]+=this.negativePrefix_.length);if(W.indexOf(Ry(this).INFINITY,k[0])==k[0]){k[0]+=Ry(this).INFINITY.length;var N=
Infinity}else{N=W;var B=!1,A=!1,w=!1,x=-1,E=1,a=Ry(this).DECIMAL_SEP,X=Ry(this).GROUP_SEP,d=Ry(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");X=X.replace(/\u202f/g,"\u00a0");for(var V="";k[0]<N.length;k[0]++){var c=N.charAt(k[0]),M=Sis(this,c);if(M>=0&&M<=9)V+=M,w=!0;else if(c==a.charAt(0)){if(B||A)break;V+=".";B=!0}else if(c==X.charAt(0)&&("\u00a0"!=X.charAt(0)||k[0]+1<N.length&&Sis(this,N.charAt(k[0]+1))>=0)){if(B||A)break}else if(c==d.charAt(0)){if(A)break;V+="E";A=!0;x=k[0]}else if(c==
"+"||c=="-"){if(w&&x!=k[0]-1)break;V+=c}else if(this.multiplier_==1&&c==Ry(this).PERCENT.charAt(0)){if(E!=1)break;E=100;if(w){k[0]++;break}}else if(this.multiplier_==1&&c==Ry(this).PERMILL.charAt(0)){if(E!=1)break;E=1E3;if(w){k[0]++;break}}else break}this.multiplier_!=1&&(E=this.multiplier_);N=parseFloat(V)/E}if(C){if(W.indexOf(this.positiveSuffix_,k[0])!=k[0])return NaN;k[0]+=this.positiveSuffix_.length}else if(n){if(W.indexOf(this.negativeSuffix_,k[0])!=k[0])return NaN;k[0]+=this.negativeSuffix_.length}return n?
-N:N};
_.My.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(W))return Ry(this).NAN;var k=[];var C=W;if(this.compactStyle_==0)C=T0;else{C=Math.abs(C);var n=McI(this,C<=1?0:QEA(C)).divisorBase;C=McI(this,n+QEA(pj8(this,qV(C,-n)).intValue))}W=qV(W,-C.divisorBase);(n=W<0||W==0&&1/W<0)?C.negative_prefix?k.push(C.negative_prefix):(k.push(C.prefix),k.push(this.negativePrefix_)):(k.push(C.prefix),k.push(this.positivePrefix_));if(isFinite(W))if(W*=
n?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var N=W;if(N==0)vfA(this,N,this.minimumIntegerDigits_,k),e8A(this,0,k);else{var B=Math.floor(Math.log(N)/Math.log(10)+2E-15);N=qV(N,-B);var A=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(A=B%this.maximumIntegerDigits_,A<0&&(A=this.maximumIntegerDigits_+A),N=qV(N,A),B-=A,A=1):this.minimumIntegerDigits_<1?(B++,N=qV(N,-1)):(B-=this.minimumIntegerDigits_-1,N=qV(N,this.minimumIntegerDigits_-
1));vfA(this,N,A,k);e8A(this,B,k)}}else vfA(this,W,this.minimumIntegerDigits_,k);else k.push(Ry(this).INFINITY);n?C.negative_suffix?k.push(C.negative_suffix):(isFinite(W)&&k.push(C.suffix),k.push(this.negativeSuffix_)):(isFinite(W)&&k.push(C.suffix),k.push(this.positiveSuffix_));return k.join("")};
var pj8=function(W,k){var C=qV(k,W.maximumFractionDigits_);W.significantDigits_>0&&(C=sE8(C,W.significantDigits_,W.maximumFractionDigits_));C=Math.round(C);if(isFinite(C)){var n=Math.floor(qV(C,-W.maximumFractionDigits_));C=Math.floor(C-qV(n,W.maximumFractionDigits_));if(C<0||C>=qV(1,W.maximumFractionDigits_))n=Math.round(k),C=0}else n=k,C=0;return{intValue:n,fracValue:C}},vfA=function(W,k,C,n){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("ge");
n||(n=[]);k=pj8(W,k);var N=k.intValue,B=k.fracValue,A=W.minimumFractionDigits_>0||B>0||!1;k=W.minimumFractionDigits_;A&&(k=W.minimumFractionDigits_);for(var w="",x=N;x>1E20;)w="0"+w,x=Math.round(qV(x,-1));w=x+w;var E=Ry(W).DECIMAL_SEP;x=Ry(W).ZERO_DIGIT.codePointAt(0);var a=w.length,X=0;if(N>0||C>0){for(N=a;N<C;N++)n.push(String.fromCodePoint(x));if(W.groupingArray_.length>=2)for(C=1;C<W.groupingArray_.length;C++)X+=W.groupingArray_[C];C=a-X;if(C>0){N=W.groupingArray_;X=a=0;for(var d,V=Ry(W).GROUP_SEP,
c=w.length,M=0;M<c;M++)if(n.push(String.fromCodePoint(x+Number(w.charAt(M)))),c-M>1)if(d=N[X],M<C){var p=C-M;(d===1||d>0&&p%d===1)&&n.push(V)}else X<N.length&&(M===C?X+=1:d===M-C-a+1&&(n.push(V),a+=d,X+=1))}else{C=w;w=W.groupingArray_;N=Ry(W).GROUP_SEP;d=C.length;V=[];for(a=w.length-1;a>=0&&d>0;a--){X=w[a];for(c=0;c<X&&d-c-1>=0;c++)V.push(String.fromCodePoint(x+Number(C.charAt(d-c-1))));d-=X;d>0&&V.push(N)}n.push.apply(n,V.reverse())}}else A||n.push(String.fromCodePoint(x));(W.decimalSeparatorAlwaysShown_||
A)&&n.push(E);B=String(B);A=B.split("e+");A.length==2&&(B=String(sE8(parseFloat(A[0]),W.significantDigits_,1)),B=B.replace(".",""),B+=(0,_.Gzs)("0",parseInt(A[1],10)-B.length+1));W.maximumFractionDigits_+1>B.length&&(B="1"+(0,_.Gzs)("0",W.maximumFractionDigits_-B.length)+B);for(W=B.length;B.charAt(W-1)=="0"&&W>k+1;)W--;for(k=1;k<W;k++)n.push(String.fromCodePoint(x+Number(B.charAt(k))))},e8A=function(W,k,C){C.push(Ry(W).EXP_SYMBOL);
k<0?(k=-k,C.push(Ry(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&C.push(Ry(W).PLUS_SIGN);k=""+k;for(var n=Ry(W).ZERO_DIGIT,N=k.length;N<W.minExponentDigits_;N++)C.push(n);W=n.codePointAt(0)-GjZ;for(n=0;n<k.length;n++)C.push(String.fromCodePoint(W+k.codePointAt(n)))},Sis=function(W,k){k=k.codePointAt(0);
if(48<=k&&k<58)return k-48;W=Ry(W).ZERO_DIGIT.codePointAt(0);return W<=k&&k<W+10?k-W:-1},GjZ="0".codePointAt(0),Izz=function(W,k,C){for(var n="",N=!1,B=k.length;C[0]<B;C[0]++){var A=k.charAt(C[0]);
if(A=="'")C[0]+1<B&&k.charAt(C[0]+1)=="'"?(C[0]++,n+="'"):N=!N;else if(N)n+=A;else switch(A){case "#":case "0":case ",":case ".":case ";":return n;case "\u00a4":if(C[0]+1<B&&k.charAt(C[0]+1)=="\u00a4")C[0]++,n+=iP(W);else switch(W.currencyStyle_){case 0:A=iP(W);n+=A in vF?vF[A][1]:A;break;case 2:A=iP(W);var w=vF[A];n+=w?A==w[1]?A:A+" "+w[1]:A;break;case 1:A=iP(W),n+=A in vF?vF[A][2]:A}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("ie");W.multiplier_=100;W.negativePercentSignExpected_=!1;n+=Ry(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("ie");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;n+=Ry(W).PERMILL;break;default:n+=A}}return n},T0={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},McI=function(W,k){W=W.compactStyle_==1?p3.COMPACT_DECIMAL_SHORT_PATTERN:p3.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=p3.COMPACT_DECIMAL_SHORT_PATTERN);if(k<3)return T0;k=Math.min(14,k);var C=W[qV(1,k)];for(--k;!C&&k>=3;)C=W[qV(1,k)],k--;if(!C)return T0;C=C.other;var n=W="",N=C.indexOf(";");N>=0&&(C=C.substring(0,N),N=C.substring(N+1))&&(n=/([^0]*)(0+)(.*)/.exec(N),W=n[1],n=n[3]);return C&&C!="0"?(C=/([^0]*)(0+)(.*)/.exec(C))?{divisorBase:k+
1-(C[2].length-1),negative_prefix:W,negative_suffix:n,prefix:C[1],suffix:C[3]}:T0:T0},QEA=function(W){if(!isFinite(W))return W>0?W:0;
for(var k=0;(W/=10)>=1;)k++;return k},qV=function(W,k){if(!W||!isFinite(W)||k==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+k))},y7S=function(W,k){return W&&isFinite(W)?qV(Math.round(qV(W,k)),-k):W},sE8=function(W,k,C){if(!W)return W;
k=k-QEA(W)-1;return k<-C?y7S(W,-C):y7S(W,k)};var $NY=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},Zib=$NY;
Zib=$NY;var R8I;R8I=function(W,k){var C=W|0;if(void 0===k){k=Math;var n=k.min,N=W+"",B=N.indexOf(".");k=n.call(k,B===-1?0:N.length-B-1,3)}n=Math.pow(10,k);W={v:k,f:(W*n|0)%n};return C==1&&W.v==0?"one":"other"};
_.sb=R8I;_.sb=R8I;var ofs,iib,TyA,uZz,UNs;_.qib=function(W){this.JSC$9223_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=DNZ;var k=p3;if(ofs!==W||iib!==k)ofs=W,iib=k,TyA=new _.My(1);this.numberFormatter_=TyA};
ofs=null;iib=null;TyA=null;uZz=RegExp("'([{}#].*?)'","g");UNs=RegExp("''","g");
_.qib.prototype.format=function(W){if(this.JSC$9223_pattern_){this.initialLiterals_=[];var k=Oib(this,this.JSC$9223_pattern_);this.parsedPattern_=L82(this,k);this.JSC$9223_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.T4(this.initialLiterals_),k=[],jEA(this,this.parsedPattern_,W,!1,k),W=k.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var jEA=function(W,k,C,n,N){for(var B=0;B<k.length;B++)switch(k[B].type){case 4:N.push(k[B].value);break;case 3:var A=k[B].value;var w=W,x=N,E=C[A];E===void 0?x.push("Undefined parameter - "+A):(w.literals_.push(E),x.push(w.buildPlaceholder_(w.literals_)));break;case 2:A=k[B].value;w=W;x=C;E=n;var a=N,X=A.argumentIndex;x[X]===void 0?a.push("Undefined parameter - "+X):(X=A[x[X]],X===void 0&&(X=A.other),jEA(w,X,x,E,a));break;case 0:A=k[B].value;HiA(W,A,C,_.sb,n,N);break;case 1:A=k[B].value,HiA(W,A,
C,Zib,n,N)}},HiA=function(W,k,C,n,N,B){var A=k.argumentIndex,w=k.argumentOffset,x=+C[A];
isNaN(x)?B.push("Undefined or invalid parameter - "+A):(w=x-w,A=k[C[A]],A===void 0&&(n=n(Math.abs(w)),A=k[n],A===void 0&&(A=k.other)),k=[],jEA(W,A,C,N,k),C=k.join(""),N?B.push(C):(W=W.numberFormatter_.format(w),B.push(C.replace(/#/g,W))))},Oib=function(W,k){var C=W.initialLiterals_,n=W.buildPlaceholder_.bind(W);
k=k.replace(UNs,function(){C.push("'");return n(C)});
return k=k.replace(uZz,function(N,B){C.push(B);return n(C)})},r7s=function(W){var k=0,C=[],n=[],N=/[{}]/g;
N.lastIndex=0;for(var B;B=N.exec(W);){var A=B.index;B[0]=="}"?(C.pop(),C.length==0&&(B={type:1},B.value=W.substring(k,A),n.push(B),k=A+1)):(C.length==0&&(k=W.substring(k,A),k!=""&&n.push({type:0,value:k}),k=A+1),C.push("{"))}W=W.substring(k);W!=""&&n.push({type:0,value:W});return n},gf8=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,P6s=/^\s*(\w+)\s*,\s*selectordinal\s*,/,K8A=/^\s*(\w+)\s*,\s*select\s*,/,L82=function(W,k){var C=[];
k=r7s(k);for(var n=0;n<k.length;n++){var N={};if(0==k[n].type)N.type=4,N.value=k[n].value;else if(1==k[n].type){var B=k[n].value;switch(gf8.test(B)?0:P6s.test(B)?1:K8A.test(B)?2:/^\s*\w+\s*/.test(B)?3:5){case 2:N.type=2;N.value=h8C(W,k[n].value);break;case 0:N.type=0;N.value=W0Z(W,k[n].value);break;case 1:N.type=1;N.value=kfA(W,k[n].value);break;case 3:N.type=3,N.value=k[n].value}}C.push(N)}return C},h8C=function(W,k){var C="";
k=k.replace(K8A,function(w,x){C=x;return""});
var n={};n.argumentIndex=C;k=r7s(k);for(var N=0;N<k.length;){var B=k[N].value;N++;var A=void 0;1==k[N].type&&(A=L82(W,k[N].value));n[B.replace(/\s/g,"")]=A;N++}return n},W0Z=function(W,k){var C="",n=0;
k=k.replace(gf8,function(x,E,a){C=E;a&&(n=parseInt(a,10));return""});
var N={};N.argumentIndex=C;N.argumentOffset=n;k=r7s(k);for(var B=0;B<k.length;){var A=k[B].value;B++;var w=void 0;1==k[B].type&&(w=L82(W,k[B].value));N[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=w;B++}return N},kfA=function(W,k){var C="";
k=k.replace(P6s,function(w,x){C=x;return""});
var n={};n.argumentIndex=C;n.argumentOffset=0;k=r7s(k);for(var N=0;N<k.length;){var B=k[N].value;N++;var A=void 0;1==k[N].type&&(A=L82(W,k[N].value));n[B.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=A;N++}return n};
_.qib.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var CV8;
CV8={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 dip=function(){this.rdtfSymbols_=naY||CV8;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
dip.prototype.format=function(W,k){a:{k=NEx(this,k);switch(this.style_){case 2:if(k.NARROW!=void 0){k=k.NARROW;break a}case 1:if(k.SHORT!=void 0){k=k.SHORT;break a}default:k=k.LONG;break a}k=void 0}if(!this.alwaysNumeric_&&k&&k.R&&k.R[""+W])W=k.R[""+W];else if(k){var C=Math.abs(W);W=(new _.qib("{N,plural,"+(W>0||W==0&&1/W==Infinity?k.F:k.P)+"}")).format({N:C})}else W="";return W};
var NEx=function(W,k){switch(k){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var YJz=function(W,k,C,n,N,B,A,w){this.x0=W;this.y0=k;this.x1=C;this.y1=n;this.x2=N;this.y2=B;this.x3=A;this.y3=w};
YJz.prototype.clone=function(){return new YJz(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
YJz.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var BEz=function(W,k){if(k==0)return W.x0;if(k==1)return W.x3;var C=XH(W.x0,W.x1,k),n=XH(W.x1,W.x2,k);W=XH(W.x2,W.x3,k);C=XH(C,n,k);n=XH(n,W,k);return XH(C,n,k)},bn2=function(W,k){var C=(k-W.x0)/(W.x3-W.x0);
if(C<=0)return 0;if(C>=1)return 1;for(var n=0,N=1,B=0,A=0;A<8;A++){B=BEz(W,C);var w=(BEz(W,C+1E-6)-B)/1E-6;if(Math.abs(B-k)<1E-6)return C;if(Math.abs(w)<1E-6)break;else B<k?n=C:N=C,C-=(B-k)/w}for(A=0;Math.abs(B-k)>1E-6&&A<8;A++)B<k?(n=C,C=(C+N)/2):(N=C,C=(C+n)/2),B=BEz(W,C);return C};var uP=function(){_.xT.call(this);this.JSC$9244_name_="closure_frame"+AWs++;this.iframesForDisposal_=[];F0C[this.JSC$9244_name_]=this},Un;
_.Pq(uP,_.xT);var F0C={},AWs=0,wJb=function(W,k){var C=aO(W);_.vnC(k,function(n,N){Array.isArray(n)||(n=[n]);_.eO(n,function(B){B=C.JSC$7243_createDom("INPUT",{type:"hidden",name:N,value:B});W.appendChild(B)})})};
_.Y=uP.prototype;_.Y.JSC$9246_form_=null;_.Y.JSC$9246_iframe_=null;_.Y.iframeName_=null;_.Y.nextIframeId_=0;_.Y.JSC$9246_active_=!1;_.Y.complete_=!1;_.Y.success_=!1;_.Y.lastContent_=null;_.Y.JSC$9246_lastErrorCode_=0;_.Y.iframeDisposalTimer_=null;
_.Y.send=function(W,k,C,n){if(this.JSC$9246_active_)throw Error("oe");W=new _.oA(W);k=k?k.toUpperCase():"GET";C&&_.PS(W);Un||(Un=_.zK("FORM"),Un.acceptCharset="utf-8",C=Un.style,C.position="absolute",C.visibility="hidden",C.top=C.left="-10px",C.width=C.height="10px",C.overflow="hidden",document.body.appendChild(Un));this.JSC$9246_form_=Un;k=="GET"&&wJb(this.JSC$9246_form_,W.JSC$7905_queryData_);n&&wJb(this.JSC$9246_form_,n);C=W.toString();C=MfX(C);n=this.JSC$9246_form_;C=_.sz(fL(C));C!==void 0&&(n.action=
C);this.JSC$9246_form_.method=k;xEA(this);lf2(this)};
_.Y.abort=function(W){if(this.JSC$9246_active_){var k=On(this);if(k)if(Ab(k))k.removeAllListeners(void 0);else if(k=Fb(k)){var C=0,n;for(n in k.listeners)for(var N=k.listeners[n].concat(),B=0;B<N.length;++B)NN(N[B])&&++C}this.success_=this.JSC$9246_active_=this.complete_=!1;this.JSC$9246_lastErrorCode_=W||7;this.dispatchEvent("abort");trI(this)}};
_.Y.disposeInternal=function(){this.JSC$9246_active_&&this.abort();uP.superClass_.disposeInternal.call(this);this.JSC$9246_iframe_&&EaA(this);lf2(this);this.JSC$9246_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9246_form_=null;this.JSC$9246_lastErrorCode_=0;delete F0C[this.JSC$9244_name_]};
_.Y.isComplete=function(){return this.complete_};
_.Y.isSuccess=function(){return this.success_};
_.Y.isActive=function(){return this.JSC$9246_active_};
_.Y.getResponseText=function(){return this.lastContent_};
_.Y.getLastError=function(){return _.FJA(this.JSC$9246_lastErrorCode_)};
var xEA=function(W){W.JSC$9246_active_=!0;W.complete_=!1;W.JSC$9246_lastErrorCode_=0;W.iframeName_=W.JSC$9244_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$9246_iframe_=aO(W.JSC$9246_form_).JSC$7243_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var k=W.JSC$9246_iframe_.style;k.visibility="hidden";k.width=k.height="10px";k.display="none";_.Nb?k.marginTop=k.marginLeft="-10px":(k.position="absolute",k.top=k.left="-10px");erZ(aO(W.JSC$9246_form_)).body.appendChild(W.JSC$9246_iframe_);k=
W.iframeName_+"_inner";var C=JoZ(W.JSC$9246_iframe_);if(document.baseURI){var n=OJ(k);n='<head><base href="'+OJ(document.baseURI)+'"></head><body><iframe id="'+n+'" name="'+n+'"></iframe>';n=$3(n)}else n=OJ(k),n=$3('<body><iframe id="'+n+'" name="'+n+'"></iframe>');C.write(Zl(n));_.b6(C.getElementById(k),"load",W.onIframeLoaded_,!1,W);n=lg("TEXTAREA",W.JSC$9246_form_);for(var N=0,B=n.length;N<B;N++){var A=n[N].value;p6C(n[N])!=A&&(_.Q$(n[N],A),n[N].value=A)}n=C.importNode(W.JSC$9246_form_,!0);n.target=
k;n.action=W.JSC$9246_form_.action;C.body.appendChild(n);N=lg("SELECT",W.JSC$9246_form_);B=lg("SELECT",n);A=0;for(var w=N.length;A<w;A++)for(var x=lg("OPTION",N[A]),E=lg("OPTION",B[A]),a=0,X=x.length;a<X;a++)E[a].selected=x[a].selected;N=lg("INPUT",W.JSC$9246_form_);B=lg("INPUT",n);A=0;for(w=N.length;A<w;A++)if(N[A].type=="file"&&N[A].value!=B[A].value){W.JSC$9246_form_.target=k;n=W.JSC$9246_form_;break}try{W.errorHandled_=!1,n.submit(),C.close(),_.nr&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(d){_.wm(C.getElementById(k),"load",W.onIframeLoaded_,!1,W),C.close(),L3(W,2)}};
uP.prototype.onIframeLoaded_=function(){_.wm(On(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$9246_iframe_?JoZ(On(this)):null;this.complete_=!0;this.JSC$9246_active_=!1;try{var k=W.body;this.lastContent_=k.textContent||k.innerText}catch(N){var C=1}var n;C||typeof this.errorChecker_!="function"||(n=this.errorChecker_(W))&&(C=4);C?L3(this,C):(this.success_=!0,this.JSC$9246_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),trI(this))}catch(N){L3(this,1)}};
var L3=function(W,k){W.errorHandled_||(W.success_=!1,W.JSC$9246_active_=!1,W.complete_=!0,W.JSC$9246_lastErrorCode_=k,W.dispatchEvent("complete"),W.dispatchEvent("error"),trI(W),W.errorHandled_=!0)},trI=function(W){EaA(W);
lf2(W);W.JSC$9246_form_=null;W.dispatchEvent("ready")},EaA=function(W){var k=W.JSC$9246_iframe_;
k&&(k.onreadystatechange=null,k.onload=null,k.onerror=null,W.iframesForDisposal_.push(k));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.nr?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$9246_iframe_=null;W.iframeName_=null};
uP.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.xL(W)}};
var lf2=function(W){W.JSC$9246_form_&&W.JSC$9246_form_==Un&&_.Ju(W.JSC$9246_form_)},On=function(W){return W.JSC$9246_iframe_?JoZ(W.JSC$9246_iframe_).getElementById(W.iframeName_+"_inner"):null};
uP.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9246_active_){var W=this.JSC$9246_iframe_?JoZ(On(this)):null;W&&!Pgw(W,"documentUri")?(_.wm(On(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?L3(this,3):L3(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.jz=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var afA;_.HF=function(W){this.errorMessage_=null;this.result_=[];this.JSC$9248_buffer_="";this.stack_=[];this.JSC$9248_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
afA={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};_.HF.prototype.isInputValid=function(){return this.streamState_!=3};
_.HF.prototype.done=function(){return this.streamState_===2};
var r4=function(W,k,C){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$9248_pos_+"/"+C+". With input:\n"+k;throw Error(W.errorMessage_);};
_.HF.prototype.acceptsBinaryInput=function(){return!1};
_.HF.prototype.parse=function(W){function k(){for(;d<W.length;)if(_.jz(W[d]))d++,B.JSC$9248_pos_++;else break;return d<E}
function C(){for(var c;;){c=W[d++];if(!c)break;B.JSC$9248_pos_++;switch(B.state_){case x.INIT:c==="{"?B.state_=x.OBJECT_OPEN:c==="["?B.state_=x.ARRAY_OPEN:_.jz(c)||r4(B,W,d);continue;case x.KEY_START:case x.OBJECT_OPEN:if(_.jz(c))continue;if(B.state_===x.KEY_START)A.push(x.KEY_END);else if(c==="}"){N("{}");B.state_=n();continue}else A.push(x.OBJECT_END);c==='"'?B.state_=x.STRING:r4(B,W,d);continue;case x.KEY_END:case x.OBJECT_END:if(_.jz(c))continue;c===":"?(B.state_===x.OBJECT_END&&(A.push(x.OBJECT_END),
B.depth_++),B.state_=x.VALUE):c==="}"?(B.depth_--,N(),B.state_=n()):c===","?(B.state_===x.OBJECT_END&&A.push(x.OBJECT_END),B.state_=x.KEY_START):r4(B,W,d);continue;case x.ARRAY_OPEN:case x.VALUE:if(_.jz(c))continue;if(B.state_===x.ARRAY_OPEN)if(B.depth_++,B.state_=x.VALUE,c==="]"){B.depth_--;if(B.depth_===0){B.state_=x.ARRAY_END;return}N("[]");B.state_=n();continue}else A.push(x.ARRAY_END);c==='"'?B.state_=x.STRING:c==="{"?B.state_=x.OBJECT_OPEN:c==="["?B.state_=x.ARRAY_OPEN:c==="t"?B.state_=x.TRUE1:
c==="f"?B.state_=x.FALSE1:c==="n"?B.state_=x.NULL1:c!=="-"&&("0123456789".indexOf(c)!==-1?B.state_=x.NUM_DIGIT:r4(B,W,d));continue;case x.ARRAY_END:if(c===",")A.push(x.ARRAY_END),B.state_=x.VALUE,B.depth_===1&&(X=d);else if(c==="]"){B.depth_--;if(B.depth_===0)return;N();B.state_=n()}else if(_.jz(c))continue;else r4(B,W,d);continue;case x.STRING:var M=d;a:for(;;){for(;B.unicodeCount_>0;)if(c=W[d++],B.unicodeCount_===4?B.unicodeCount_=0:B.unicodeCount_++,!c)break a;if(c==='"'&&!B.slashed_){B.state_=
n();break}if(c==="\\"&&!B.slashed_&&(B.slashed_=!0,c=W[d++],!c))break;if(B.slashed_)if(B.slashed_=!1,c==="u"&&(B.unicodeCount_=1),c=W[d++])continue;else break;w.lastIndex=d;c=w.exec(W);if(!c){d=W.length+1;break}d=c.index+1;c=W[c.index];if(!c)break}B.JSC$9248_pos_+=d-M;continue;case x.TRUE1:if(!c)continue;c==="r"?B.state_=x.TRUE2:r4(B,W,d);continue;case x.TRUE2:if(!c)continue;c==="u"?B.state_=x.TRUE3:r4(B,W,d);continue;case x.TRUE3:if(!c)continue;c==="e"?B.state_=n():r4(B,W,d);continue;case x.FALSE1:if(!c)continue;
c==="a"?B.state_=x.FALSE2:r4(B,W,d);continue;case x.FALSE2:if(!c)continue;c==="l"?B.state_=x.FALSE3:r4(B,W,d);continue;case x.FALSE3:if(!c)continue;c==="s"?B.state_=x.FALSE4:r4(B,W,d);continue;case x.FALSE4:if(!c)continue;c==="e"?B.state_=n():r4(B,W,d);continue;case x.NULL1:if(!c)continue;c==="u"?B.state_=x.NULL2:r4(B,W,d);continue;case x.NULL2:if(!c)continue;c==="l"?B.state_=x.NULL3:r4(B,W,d);continue;case x.NULL3:if(!c)continue;c==="l"?B.state_=n():r4(B,W,d);continue;case x.NUM_DECIMAL_POINT:c===
"."?B.state_=x.NUM_DIGIT:r4(B,W,d);continue;case x.NUM_DIGIT:if("0123456789.eE+-".indexOf(c)!==-1)continue;else d--,B.JSC$9248_pos_--,B.state_=n();continue;default:r4(B,W,d)}}}
function n(){var c=A.pop();return c!=null?c:x.VALUE}
function N(c){B.depth_>1||(c||(c=X===-1?B.JSC$9248_buffer_+W.substring(a,d):W.substring(X,d)),B.deliverMessageAsRawString_?B.result_.push(c):B.result_.push(JSON.parse(c)),X=d)}
for(var B=this,A=B.stack_,w=B.stringInputPattern_,x=afA,E=W.length,a=0,X=-1,d=0;d<E;)switch(B.streamState_){case 3:return r4(B,W,d),null;case 2:return k()&&r4(B,W,d),null;case 0:if(k()){var V=W[d++];B.JSC$9248_pos_++;if(V==="["){B.streamState_=1;a=d;B.state_=x.ARRAY_OPEN;continue}else r4(B,W,d)}return null;case 1:return C(),B.depth_===0&&B.state_==x.ARRAY_END?(B.streamState_=2,B.JSC$9248_buffer_=W.substring(d)):B.JSC$9248_buffer_=X===-1?B.JSC$9248_buffer_+W.substring(a):W.substring(X),B.result_.length>
0?(V=B.result_,B.result_=[],V):null}return null};_.Pq(_.r0,wd);g0.prototype.getValue=function(){return this.JSC$9256_value_};
g0.prototype.clone=function(){return new g0(this.JSC$9256_key_,this.JSC$9256_value_)};var g4=function(W){this.nodes_=[];if(W)a:{if(W instanceof g4){var k=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var C=this.nodes_,n=0;n<k.length;n++)C.push(new g0(k[n],W[n]));break a}}else k=_.JU.getKeys(W),W=_.JU.getValues(W);for(C=0;C<k.length;C++)this.insert(k[C],W[C])}};
_.Y=g4.prototype;_.Y.insert=function(W,k){var C=this.nodes_;C.push(new g0(W,k));W=C.length-1;k=this.nodes_;for(C=k[W];W>0;){var n=W-1>>1;if(k[n].JSC$9256_key_>C.JSC$9256_key_)k[W]=k[n],W=n;else break}k[W]=C};
_.Y.remove=function(){var W=this.nodes_,k=W.length,C=W[0];if(!(k<=0)){if(k==1)W.length=0;else{W[0]=W.pop();W=0;k=this.nodes_;for(var n=k.length,N=k[W];W<n>>1;){var B=W*2+1,A=W*2+2;B=A<n&&k[A].JSC$9256_key_<k[B].JSC$9256_key_?A:B;if(k[B].JSC$9256_key_>N.JSC$9256_key_)break;k[W]=k[B];W=B}k[W]=N}return C.getValue()}};
_.Y.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.Y.getValues=function(){for(var W=this.nodes_,k=[],C=W.length,n=0;n<C;n++)k.push(W[n].getValue());return k};
_.Y.getKeys=function(){for(var W=this.nodes_,k=[],C=W.length,n=0;n<C;n++)k.push(W[n].JSC$9256_key_);return k};
_.Y.containsValue=function(W){return this.nodes_.some(function(k){return k.getValue()==W})};
_.Y.containsKey=function(W){return this.nodes_.some(function(k){return k.JSC$9256_key_==W})};
_.Y.clone=function(){return new g4(this)};
_.Y.getCount=function(){return this.nodes_.length};
_.Y.isEmpty=function(){return this.nodes_.length===0};
_.Y.clear=function(){this.nodes_.length=0};_.PF=function(W,k){this.JSC$9262_map_={};this.JSC$9262_keys_=[];this.version_=this.size=0;var C=arguments.length;if(C>1){if(C%2)throw Error("oa");for(var n=0;n<C;n+=2)this.set(arguments[n],arguments[n+1])}else W&&this.addAll(W)};
_.Y=_.PF.prototype;_.Y.getCount=function(){return this.size};
_.Y.getValues=function(){K3(this);for(var W=[],k=0;k<this.JSC$9262_keys_.length;k++)W.push(this.JSC$9262_map_[this.JSC$9262_keys_[k]]);return W};
_.Y.getKeys=function(){K3(this);return this.JSC$9262_keys_.concat()};
_.Y.containsKey=function(W){return this.has(W)};
_.Y.has=function(W){return h9(this.JSC$9262_map_,W)};
_.Y.containsValue=function(W){for(var k=0;k<this.JSC$9262_keys_.length;k++){var C=this.JSC$9262_keys_[k];if(h9(this.JSC$9262_map_,C)&&this.JSC$9262_map_[C]==W)return!0}return!1};
_.Y.equals=function(W,k){if(this===W)return!0;if(this.size!=W.getCount())return!1;k=k||XJS;K3(this);for(var C,n=0;C=this.JSC$9262_keys_[n];n++)if(!k(this.get(C),W.get(C)))return!1;return!0};
var XJS=function(W,k){return W===k};
_.PF.prototype.isEmpty=function(){return this.size==0};
_.PF.prototype.clear=function(){this.JSC$9262_map_={};this.version_=this.size=this.JSC$9262_keys_.length=0};
_.PF.prototype.remove=function(W){return this.delete(W)};
_.PF.prototype.delete=function(W){return h9(this.JSC$9262_map_,W)?(delete this.JSC$9262_map_[W],--this.size,this.version_++,this.JSC$9262_keys_.length>2*this.size&&K3(this),!0):!1};
var K3=function(W){if(W.size!=W.JSC$9262_keys_.length){for(var k=0,C=0;k<W.JSC$9262_keys_.length;){var n=W.JSC$9262_keys_[k];h9(W.JSC$9262_map_,n)&&(W.JSC$9262_keys_[C++]=n);k++}W.JSC$9262_keys_.length=C}if(W.size!=W.JSC$9262_keys_.length){k={};for(n=C=0;C<W.JSC$9262_keys_.length;){var N=W.JSC$9262_keys_[C];h9(k,N)||(W.JSC$9262_keys_[n++]=N,k[N]=1);C++}W.JSC$9262_keys_.length=n}};
_.Y=_.PF.prototype;_.Y.get=function(W,k){return h9(this.JSC$9262_map_,W)?this.JSC$9262_map_[W]:k};
_.Y.set=function(W,k){h9(this.JSC$9262_map_,W)||(this.size+=1,this.JSC$9262_keys_.push(W),this.version_++);this.JSC$9262_map_[W]=k};
_.Y.addAll=function(W){if(W instanceof _.PF)for(var k=W.getKeys(),C=0;C<k.length;C++)this.set(k[C],W.get(k[C]));else for(k in W)this.set(k,W[k])};
_.Y.forEach=function(W,k){for(var C=this.getKeys(),n=0;n<C.length;n++){var N=C[n],B=this.get(N);W.call(k,B,N,this)}};
_.Y.clone=function(){return new _.PF(this)};
_.Y.transpose=function(){for(var W=new _.PF,k=0;k<this.JSC$9262_keys_.length;k++){var C=this.JSC$9262_keys_[k];W.set(this.JSC$9262_map_[C],C)}return W};
_.Y.keys=function(){return uwC(this.__iterator__(!0)).toEs6()};
_.Y.values=function(){return uwC(this.__iterator__(!1)).toEs6()};
_.Y.entries=function(){var W=this;return nrI(this.keys(),function(k){return[k,W.get(k)]})};
_.Y.__iterator__=function(W){K3(this);var k=0,C=this.version_,n=this,N=new jT;N.next=function(){if(C!=n.version_)throw Error("pe");if(k>=n.JSC$9262_keys_.length)return H1;var B=n.JSC$9262_keys_[k++];return r1(W?B:n.JSC$9262_map_[B])};
return N};
var h9=function(W,k){return Object.prototype.hasOwnProperty.call(W,k)};var dE2=function(){this.JSC$9265_map_=new _.PF;this.JSC$9265_head_=new ff8("");this.JSC$9265_head_.next=this.JSC$9265_head_.prev=this.JSC$9265_head_},mEA=function(W,k){if(k=W.JSC$9265_map_.get(k))k.remove(),W.insert_(k);
return k};
_.Y=dE2.prototype;_.Y.get=function(W,k){return(W=mEA(this,W))?W.value:k};
_.Y.set=function(W,k){var C=mEA(this,W);C?C.value=k:(C=new ff8(W,k),this.JSC$9265_map_.set(W,C),this.insert_(C))};
_.Y.peek=function(){return this.JSC$9265_head_.next.value};
_.Y.shift=function(){return zxs(this,this.JSC$9265_head_.next)};
_.Y.pop=function(){return zxs(this,this.JSC$9265_head_.prev)};
_.Y.remove=function(W){return(W=this.JSC$9265_map_.get(W))?(this.removeNode(W),!0):!1};
_.Y.removeNode=function(W){W.remove();this.JSC$9265_map_.remove(W.key)};
_.Y.getCount=function(){return this.JSC$9265_map_.getCount()};
_.Y.isEmpty=function(){return this.JSC$9265_map_.isEmpty()};
_.Y.getKeys=function(){return this.map(function(W,k){return k})};
_.Y.getValues=function(){return this.map(function(W){return W})};
_.Y.contains=function(W){return this.some(function(k){return k==W})};
_.Y.containsKey=function(W){return this.JSC$9265_map_.containsKey(W)};
_.Y.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9265_head_.prev)};
_.Y.forEach=function(W,k){for(var C=this.JSC$9265_head_.next;C!=this.JSC$9265_head_;C=C.next)W.call(k,C.value,C.key,this)};
_.Y.map=function(W,k){for(var C=[],n=this.JSC$9265_head_.next;n!=this.JSC$9265_head_;n=n.next)C.push(W.call(k,n.value,n.key,this));return C};
_.Y.some=function(W,k){for(var C=this.JSC$9265_head_.next;C!=this.JSC$9265_head_;C=C.next)if(W.call(k,C.value,C.key,this))return!0;return!1};
_.Y.every=function(W,k){for(var C=this.JSC$9265_head_.next;C!=this.JSC$9265_head_;C=C.next)if(!W.call(k,C.value,C.key,this))return!1;return!0};
_.Y.insert_=function(W){W.next=this.JSC$9265_head_.next;W.prev=this.JSC$9265_head_;this.JSC$9265_head_.next=W;for(W.next.prev=W;this.getCount()>40;)this.removeNode(this.JSC$9265_head_.prev)};
var zxs=function(W,k){W.JSC$9265_head_!=k&&W.removeNode(k);return k.value},ff8=function(W,k){this.key=W;
this.value=k};
ff8.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var DEb=function(){g4.apply(this,arguments)};
_.D(DEb,g4);DEb.prototype.enqueue=function(W,k){this.insert(W,k)};var Vrs=function(){var W=Error();W.name="SecurityError";throw W;},XPK=function(){return{get opener(){return null},
get closed(){return!0},get location(){Vrs()},get document(){Vrs()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Sy3={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 pTm={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 JWS={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(pTm).join("|");var cWY=function(){function W(w){w.substr(-1)!==";"&&(w+=";");return A(w)}
for(var k=Object.keys(JWS).sort(QHm),C=Object.keys(pTm).sort(QHm),n=0,N=0;n<C.length;n++)k[N]===C[n]?(C[n]+=";?",N++):C[n]+=";";var B=new RegExp("&(?:"+C.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),A=voP();return function(w){return String(w).replace(B,W)}}();/*

 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 If8={};var SJ8=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"),MrS=/[\\&]/,QhA=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),pJz=RegExp('[&<>"]',"g"),va2=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),exb=function(W){return W.charCodeAt(0)===92?W.charAt(1):cWY(W)},sh8=function(W){return MrS.test(W)?W.replace(QhA,exb):W},Gf8=function(W){try{var k,C="";
if(typeof N!=="string"){var n=N;var N=";/?:@&=+$,-_.!~*'()#"}typeof n==="undefined"&&(n=!0);var B,A=If8[N];if(A)var w=A;else{A=If8[N]=[];for(B=0;B<128;B++){var x=String.fromCharCode(B);/^[0-9a-z]$/i.test(x)?A.push(x):A.push("%"+("0"+B.toString(16).toUpperCase()).slice(-2))}for(B=0;B<N.length;B++)A[N.charCodeAt(B)]=N[B];w=A}var E=0;for(k=W.length;E<k;E++){var a=W.charCodeAt(E);if(n&&a===37&&E+2<k&&/^[0-9a-f]{2}$/i.test(W.slice(E+1,E+3)))C+=W.slice(E,E+3),E+=2;else if(a<128)C+=w[a];else if(a>=55296&&
a<=57343){if(a>=55296&&a<=56319&&E+1<k){var X=W.charCodeAt(E+1);if(X>=56320&&X<=57343){C+=encodeURIComponent(W[E]+W[E+1]);E++;continue}}C+="%EF%BF%BD"}else C+=encodeURIComponent(W[E])}return C}catch(d){return W}},yWC=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},WO=function(W,k){return pJz.test(W)?k?W.replace(va2,yWC):W.replace(pJz,yWC):W};/*

 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 kq;if(String.fromCodePoint)kq=function(W){try{return String.fromCodePoint(W)}catch(k){if(k instanceof RangeError)return String.fromCharCode(65533);throw k;}};
else{var $EA=String.fromCharCode,ZnS=Math.floor;kq=function(){var W=[],k=-1,C=arguments.length;if(!C)return"";for(var n="";++k<C;){var N=Number(arguments[k]);if(!isFinite(N)||N<0||N>1114111||ZnS(N)!==N)return String.fromCharCode(65533);if(N<=65535)W.push(N);else{N-=65536;var B=(N>>10)+55296;N=N%1024+56320;W.push(B,N)}if(k+1===C||W.length>16384)n+=$EA.apply(null,W),W.length=0}return n}};var RxY=function(W){this.root=this.current=W;this.entering=!0};
RxY.prototype.next=function(){var W=this.current,k=this.entering;if(W===null)return null;a:switch(W._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var C=!0;break a;default:C=!1}k&&C?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:k,node:W}};
var ke=function(W,k){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=k;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};
ke.prototype.appendChild=function(W){CT(W);W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
var CT=function(W){W._prev?W._prev._next=W._next:W._parent&&(W._parent._firstChild=W._next);W._next?W._next._prev=W._prev:W._parent&&(W._parent._lastChild=W._prev);W._parent=null;W._next=null;W._prev=null},oaA=function(W,k){CT(k);
k._next=W._next;k._next&&(k._next._prev=k);k._prev=W;W._next=k;k._parent=W._parent;k._next||(k._parent._lastChild=k)};
ke.prototype.insertBefore=function(W){CT(W);W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.oq.Object.defineProperties(ke.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var ekI=/[ \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,
sHm={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 inA=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]/),
TE2=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),qJ2=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),u8z=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),UEA=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),OnA=/`+/,L0S=/^`+/,jhC=/\.\.\./g,Hnx=/--+/g,rWs=/^<([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])?)*)>/,
ga2=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,PVA=/^ *(?:\n *)?/,K0x=/^[ \t\n\x0b\x0c\x0d]/,hxA=/[ \t\n\x0b\x0c\x0d]+/g,WkA=/^\s/,knx=/ *$/,CXs=/^ */,njZ=/^ *(?:\n|$)/,N7s=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Yxx=/^[^\n`\[\]\\!<&*_'"]+/m,nT=function(W){var k=new ke("text");k._literal=W;return k},Nn=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
Nn.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
Nn.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Yq=function(W){W.match(PVA);return!0},B7z=function(W,k,C){var n=0;
var N=W.pos;if(k===39||k===34)n++,W.pos++;else for(;W.peek()===k;)n++,W.pos++;if(n===0)n=null;else{var B=N===0?"\n":W.subject.charAt(N-1);var A=W.peek();A=A===-1?"\n":kq(A);var w=WkA.test(A);A=inA.test(A);var x=WkA.test(B);var E=inA.test(B);B=!w&&!(A&&!x&&!E);w=!x&&!(E&&!w&&!A);k===95?(x=B&&(!w||E),A=w&&(!B||A)):(x=k===39||k===34?B&&!w:B,A=w);W.pos=N;n={numdelims:n,can_open:x,can_close:A}}if(!n)return!1;N=n.numdelims;A=W.pos;W.pos+=N;A=k===39?"\u2019":k===34?"\u201c":W.subject.slice(A,W.pos);A=nT(A);
C.appendChild(A);W.delimiters={cc:k,numdelims:N,origdelims:N,node:A,previous:W.delimiters,next:null,can_open:n.can_open,can_close:n.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},bXA=function(W,k){k.previous!==null&&(k.previous.next=k.next);
k.next===null?W.delimiters=k.previous:k.next.previous=k.previous},Ay8=function(W,k){var C,n,N=[],B=!1;
N[95]=k;N[42]=k;N[39]=k;N[34]=k;for(C=W.delimiters;C!==null&&C.previous!==k;)C=C.previous;for(;C!==null;){var A=C.cc;if(C.can_close){var w=C.previous;for(n=!1;w!==null&&w!==k&&w!==N[A];){B=(C.can_open||w.can_close)&&(w.origdelims+C.origdelims)%3===0;if(w.cc===C.cc&&w.can_open&&!B){n=!0;break}w=w.previous}var x=C;if(A===42||A===95)if(n){var E=C.numdelims>=2&&w.numdelims>=2?2:1;var a=w.node;var X=C.node;w.numdelims-=E;C.numdelims-=E;a._literal=a._literal.slice(0,a._literal.length-E);X._literal=X._literal.slice(0,
X._literal.length-E);var d=new ke(E===1?"emph":"strong");for(E=a._next;E&&E!==X;){var V=E._next;CT(E);d.appendChild(E);E=V}oaA(a,d);E=w;V=C;E.next!==V&&(E.next=V,V.previous=E);w.numdelims===0&&(CT(a),bXA(W,w));C.numdelims===0&&(CT(X),w=C.next,bXA(W,C),C=w)}else C=C.next;else A===39?(C.node._literal="\u2019",n&&(w.node._literal="\u2018"),C=C.next):A===34&&(C.node._literal="\u201d",n&&(w.node.literal="\u201c"),C=C.next);n||B||(N[A]=x.previous,x.can_open||bXA(W,x))}else C=C.next}for(;W.delimiters!==
null&&W.delimiters!==k;)bXA(W,W.delimiters)},FkY=function(W){W=W.match(TE2);
return W===null?null:sh8(W.substr(1,W.length-2))},wBb=function(W){var k=W.match(qJ2);
if(k===null){k=W.pos;for(var C=0,n;(n=W.peek())!==-1;)if(n===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(n===40)W.pos+=1,C+=1;else if(n===41)if(C<1)break;else W.pos+=1,--C;else if(K0x.exec(kq(n))!==null)break;else W.pos+=1;k=W.subject.substr(k,W.pos-k);return Gf8(sh8(k))}return Gf8(sh8(k.substr(1,k.length-2)))},xjY=function(W){W=W.match(N7s);
return W===null||W.length>1001?0:W.length},li8=function(W,k,C,n){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:k,previous:W.brackets,previousDelimiter:W.delimiters,index:C,image:n,active:!0}},tHs=function(W,k){var C;
return(C=W.match(Yxx))?(W.options.smart?k.appendChild(nT(C.replace(jhC,"\u2026").replace(Hnx,function(n){var N=0,B=0;n.length%3===0?B=n.length/3:n.length%2===0?N=n.length/2:n.length%3===2?(N=1,B=(n.length-2)/3):(N=2,B=(n.length-4)/3);n="";var A;for(A=0;A<B;A++)n+="\u2014";for(A=0;A<N;A++)n+="\u2013";return n}))):k.appendChild(nT(C)),!0):!1},Ej8=function(W,k,C){W.subject=k;
W.pos=0;k=W.pos;var n=xjY(W);if(n===0)return 0;var N=W.subject.substr(0,n);if(W.peek()===58)W.pos++;else return W.pos=k,0;Yq(W);n=wBb(W);if(n===null||n.length===0)return W.pos=k,0;var B=W.pos;Yq(W);var A=FkY(W);A===null&&(A="",W.pos=B);var w=!0;W.match(njZ)===null&&(A===""?w=!1:(A="",W.pos=B,w=W.match(njZ)!==null));if(!w)return W.pos=k,0;N=GKI(N);if(N==="")return W.pos=k,0;C[N]||(C[N]={destination:n,title:A});return W.pos-k},aiC=function(W,k){var C,n=W.peek();
if(n===-1)return!1;switch(n){case 10:W.pos+=1;if((C=k._lastChild)&&C.type==="text"&&C._literal[C._literal.length-1]===" "){var N=C._literal[C._literal.length-2]===" ";C._literal=C._literal.replace(knx,"");k.appendChild(new ke(N?"linebreak":"softbreak"))}else k.appendChild(new ke("softbreak"));W.match(CXs);C=!0;break;case 92:C=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,C=new ke("linebreak"),k.appendChild(C)):u8z.test(C.charAt(W.pos))?(k.appendChild(nT(C.charAt(W.pos))),W.pos+=1):k.appendChild(nT("\\"));
C=!0;break;case 96:a:if(C=W.match(L0S),C===null)C=!1;else{N=W.pos;for(var B;(B=W.match(OnA))!==null;)if(B===C){B=new ke("code");B._literal=W.subject.slice(N,W.pos-C.length).trim().replace(hxA," ");k.appendChild(B);C=!0;break a}W.pos=N;k.appendChild(nT(C));C=!0}break;case 42:case 95:C=B7z(W,n,k);break;case 39:case 34:C=W.options.smart&&B7z(W,n,k);break;case 91:C=W.pos;W.pos+=1;N=nT("[");k.appendChild(N);li8(W,N,C,!1);C=!0;break;case 33:C=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,N=nT("!["),k.appendChild(N),
li8(W,N,C+1,!0)):k.appendChild(nT("!"));C=!0;break;case 93:var A,w=!1,x;W.pos+=1;var E=W.pos;N=W.brackets;if(N===null)k.appendChild(nT("]"));else if(N.active){C=N.image;var a=W.pos;W.peek()===40&&(W.pos++,Yq(W)&&(B=wBb(W))!==null&&Yq(W)&&(K0x.test(W.subject.charAt(W.pos-1))&&(A=FkY(W)),1)&&Yq(W)&&W.peek()===41?(W.pos+=1,w=!0):W.pos=a);if(!w){var X=W.pos,d=xjY(W);d>2?x=W.subject.slice(X,X+d):N.bracketAfter||(x=W.subject.slice(N.index,E));d===0&&(W.pos=a);x&&(x=W.refmap[GKI(x)])&&(B=x.destination,A=
x.title,w=!0)}if(w){E=new ke(C?"image":"link");E._destination=B;E._title=A||"";for(B=N.node._next;B;)A=B._next,CT(B),E.appendChild(B),B=A;k.appendChild(E);Ay8(W,N.previousDelimiter);W.brackets=W.brackets.previous;CT(N.node);if(!C)for(N=W.brackets;N!==null;)N.image||(N.active=!1),N=N.previous}else W.brackets=W.brackets.previous,W.pos=E,k.appendChild(nT("]"))}else k.appendChild(nT("]")),W.brackets=W.brackets.previous;C=!0;break;case 60:(C=W.match(rWs))?(C=C.slice(1,C.length-1),N=new ke("link"),N._destination=
Gf8("mailto:"+C),N._title="",N.appendChild(nT(C)),k.appendChild(N),C=!0):(C=W.match(ga2))?(C=C.slice(1,C.length-1),N=new ke("link"),N._destination=Gf8(C),N._title="",N.appendChild(nT(C)),k.appendChild(N),C=!0):C=!1;C||(C=W.match(SJ8),C===null?C=!1:(N=new ke("html_inline"),N._literal=C,k.appendChild(N),C=!0));break;case 38:(C=W.match(UEA))?(k.appendChild(nT(cWY(C))),C=!0):C=!1;break;default:C=tHs(W,k)}C||(W.pos+=1,k.appendChild(nT(kq(n))));return!0};
Nn.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;aiC(this,W););W._string_content=null;Ay8(this,null)};
Nn.prototype.parse=Nn.prototype.parseInlines;var XBA=[/./,/^<(?: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")],fib=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],djx=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,mjA=/^[#`~*+_=<>0-9-\|]|\|/,zbx=/[^ \t\f\v\r\n]/,Dj2=/^[*+-]/,VHb=/^(\d{1,9})([.)])/,JyS=/^#{1,6}(?:[ \t]+|$)/,cy8=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Iiz=/^(?:`{3,}|~{3,})(?= *$)/,SxS=/^(?:=+|-+)[ \t]*$/,MH8=/\r\n|\n|\r/,$JK=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Z02=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,QSb={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,k){for(W=k._firstChild;W;){if(yuK(W)&&W._next){k._listData.tight=!1;break}for(var C=W._firstChild;C;){if(yuK(C)&&(W._next||C._next)){k._listData.tight=!1;break}C=C._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var k=W.currentLine;if(W.indented||Kt(k,W.nextNonspace)!==62)return 1;BO(W);bF(W,1,!1);Pm(Kt(k,W.offset))&&bF(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,k){if(W.blank){if(k._firstChild==null)return 1;BO(W)}else if(W.indent>=k._listData.markerOffset+k._listData.padding)bF(W,k._listData.markerOffset+k._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!Rkw(W)},
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(W,k){var C=W.currentLine,n=W.indent;if(k._isFenced){if((n=n<=3&&C.charAt(W.nextNonspace)===k._fenceChar&&C.slice(W.nextNonspace).match(Iiz))&&n[0].length>=k._fenceLength)return W.finalize(k,W.lineNumber),2;for(k=k._fenceOffset;k>0&&Pm(Kt(C,W.offset));)bF(W,1,!0),k--}else if(n>=4)bF(W,4,!0);else if(W.blank)BO(W);else return 1;return 0},
finalize:function(W,k){if(k._isFenced){var C=k._string_content,n=C.indexOf("\n");W=C.slice(0,n);C=C.slice(n+1);k.info=sh8(W.trim());k._literal=C}else k._literal=k._string_content.replace(/(\n *)+$/,"\n");k._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,k){return!W.blank||k._htmlBlockType!==6&&k._htmlBlockType!==7?0:1},
finalize:function(W,k){k._literal=k._string_content.replace(/(\n *)+$/,"");k._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,k){for(var C,n=!1;Kt(k._string_content,0)===91&&(C=Ej8(W.inlineParser,k._string_content,W.refmap));)k._string_content=k._string_content.slice(C),n=!0;n&&!zbx.test(k._string_content)&&CT(k)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return hD(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,k){if(!k._rowIsDelimiter){W=k._isHeader?"th":"td";for(var C=k._parent._tableColumns,n=k._string_content,N=0,B="",A,w=k._sourcepos[0][0];N<n.length;){switch(n[N]){case "|":A&&(A._string_content=B.trim(),B="",A=null,C--,C<=0&&(N=n.length));break;default:if(!A){A=new ke(W,[[w,N],[w,N]]);var x=k._parent._columnAlignment,E=k._parent._tableColumns-C;x&&E<=x.length&&E>=0&&(A._alignment=x[E]);k.appendChild(A)}B+=n[N];A._sourcepos[1][1]=N}N++}A&&(A._string_content=B.trim());k._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},pBb=[function(W){if(W.indented||Kt(W.currentLine,W.nextNonspace)!==62)return 0;BO(W);bF(W,1,!1);Pm(Kt(W.currentLine,W.offset))&&bF(W,1,!0);Al(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var k;if(!W.indented&&(k=W.currentLine.slice(W.nextNonspace).match(JyS))){BO(W);bF(W,k[0].length,!1);Al(W);var C=W.addChild("heading",W.nextNonspace);C.level=k[0].trim().length;C._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");bF(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var k;if(!W.indented&&(k=W.currentLine.slice(W.nextNonspace).match(cy8))){var C=k[0].length;Al(W);var n=W.addChild("code_block",W.nextNonspace);n._isFenced=!0;n._fenceLength=C;n._fenceChar=k[0][0];n._fenceOffset=W.indent;BO(W);bF(W,C,!1);return 2}return 0},
function(W,k){if(!W.indented&&Kt(W.currentLine,W.nextNonspace)===60){var C=W.currentLine.slice(W.nextNonspace),n;for(n=1;n<=7;n++)if(XBA[n].test(C)&&(n<7||k.type!=="paragraph"))return Al(W),W.addChild("html_block",W.offset)._htmlBlockType=n,2}return 0},
function(W,k){var C;if(!W.indented&&k.type==="paragraph"&&(C=W.currentLine.slice(W.nextNonspace).match(SxS))){Al(W);var n=new ke("heading",k.sourcepos);n.level=C[0][0]==="="?1:2;n._string_content=k._string_content;oaA(k,n);CT(k);W.tip=n;bF(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&djx.test(W.currentLine.slice(W.nextNonspace))?(Al(W),W.addChild("thematic_break",W.nextNonspace),bF(W,W.currentLine.length-W.offset,!1),2):0},
function(W,k){var C,n;if(!(n=W.indented&&k.type!=="list")){a:{var N=k,B=W.currentLine.slice(W.nextNonspace);n={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(C=B.match(Dj2))n.type="bullet",n.bulletChar=C[0][0];else{if(!(C=B.match(VHb))||N.type==="paragraph"&&C[1]!=="1"){C=null;break a}n.type="ordered";n.start=parseInt(C[1],10);n.delimiter=C[2]}var A=Kt(W.currentLine,W.nextNonspace+C[0].length);if(A!==-1&&A!==9&&A!==32||N.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
C[0].length).match(zbx))C=null;else{BO(W);bF(W,C[0].length,!0);N=W.column;B=W.offset;do bF(W,1,!0),A=Kt(W.currentLine,W.offset);while(W.column-N<5&&Pm(A));A=Kt(W.currentLine,W.offset)===-1;var w=W.column-N;w>=5||w<1||A?(n.padding=C[0].length+1,W.column=N,W.offset=B,Pm(Kt(W.currentLine,W.offset))&&bF(W,1,!0)):n.padding=C[0].length+w;C=n}}n=!C}if(n)return 0;Al(W);(n=W.tip.type!=="list")||(k=k._listData,n=!(k.type===C.type&&k.delimiter===C.delimiter&&k.bulletChar===C.bulletChar));n&&(k=W.addChild("list",
W.nextNonspace),k._listData=C);k=W.addChild("item",W.nextNonspace);k._listData=C;return 1},
function(W){var k;return((k=W.options.shouldParseIndentAsCodeBlock)!=null?k:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(bF(W,4,!0),Al(W),W.addChild("code_block",W.offset),2):0},
function(W,k){var C=hD(W.currentLine),n=hD(W.lookahead);if(C!==0&&n<0&&Math.abs(C)==Math.abs(n)&&!Rkw(k.type)){Al(W);k=W.addChild("table",W.nextNonspace);k._tableRows=1;k._tableColumns=Math.abs(C);C=W.lookahead;if(Z02.test(C)){n=[];for(var N=0,B=!1,A=0,w=void 0;N<C.length;){var x=A>=3;switch(C[N]){case "-":A++;break;case "|":B&&(n.push(w),w=void 0,A=0);B=!0;break;case ":":w||x||(w="left"),!w&&x&&(w="right"),w==="left"&&x&&(w="center")}N++}C=n}else C=void 0;k._columnAlignment=C;k=W.addChild("row",
W.nextNonspace);k._isHeader=!0;bF(W,W.currentLine.length-W.offset,!1);k._string_content=W.currentLine;return 1}return 0},
function(W,k){if(k.type=="table"&&hD(W.currentLine)!==0){Al(W);var C=k;k=W.addChild("row",W.nextNonspace);hD(W.currentLine)<0?k._rowIsDelimiter=!0:C._tableRows+=1;bF(W,W.currentLine.length-W.offset,!1);k._string_content=W.currentLine;return 2}return 0}],x0J=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=oow();this.refmap={};this.lastLineLength=0;this.inlineParser=new Nn(W);this.options=W;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=QSb;this.blockStarts=pBb},vjA=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
x0J.prototype.addChild=function(W,k){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new ke(W,[[this.lineNumber,k+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var Al=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var k=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=k}W.allClosed=!0}},bF=function(W,k,C){for(var n=W.currentLine,N,B;k>0&&(B=n[W.offset]);)B==="\t"?(N=4-W.column%4,C?(W.partiallyConsumedTab=N>k,N=N>k?k:N,W.column+=N,W.offset+=W.partiallyConsumedTab?0:1,k-=N):(W.partiallyConsumedTab=!1,W.column+=N,W.offset+=1,--k)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--k)},BO=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},ebx=function(W){for(var k=W.currentLine,C=W.offset,n=W.column,N;(N=k.charAt(C))!=="";)if(N===" ")C++,n++;
else if(N==="\t")C++,n+=4-n%4;else break;W.blank=N==="\n"||N==="\r"||N==="";W.nextNonspace=C;W.nextNonspaceColumn=n;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
x0J.prototype.finalize=function(W,k){var C=W._parent;W._open=!1;W.sourcepos[1]=[k,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=C};
x0J.prototype.parse=function(W){this.tip=this.doc=oow();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var k=W.split(MH8),C=k.length;W.charCodeAt(W.length-1)===10&&--C;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<C;W++)a:{var n=void 0,N=k[W],B=k[W+1],A=!0,w=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;N.indexOf("\x00")!==-1&&(N=N.replace(/\0/g,"\ufffd"));this.currentLine=N;for(this.lookahead=B;(n=w._lastChild)&&n._open;){w=n;ebx(this);switch(this.blocks[w.type].continue(this,w)){case 0:break;case 1:A=!1;break;case 2:this.lastLineLength=N.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!A){w=w._parent;break}}this.allClosed=w===this.oldtip;this.lastMatchedContainer=
w;n=w.type!=="paragraph"&&QSb[w.type].acceptsLines;B=this.blockStarts;for(A=B.length;!n;){ebx(this);if(!this.indented&&!mjA.test(N.slice(this.nextNonspace))){BO(this);break}for(var x=0;x<A;){var E=B[x](this,w);if(E===1){w=this.tip;break}else if(E===2){w=this.tip;n=!0;break}else x++}if(x===A){BO(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Al(this);this.blank&&w.lastChild&&(w.lastChild._lastLineBlank=!0);n=w.type;B=this.blank&&!(n==="block_quote"||n==="code_block"&&w._isFenced||
n==="item"&&!w._firstChild&&w.sourcepos[0][0]===this.lineNumber);for(A=w;A;)A._lastLineBlank=B,A=A._parent;this.blocks[n].acceptsLines?(vjA(this),n==="html_block"&&w._htmlBlockType>=1&&w._htmlBlockType<=5&&fib[w._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(w,this.lineNumber)):this.offset<N.length&&!this.blank&&(this.addChild("paragraph",this.offset),BO(this),vjA(this))}else vjA(this);this.lastLineLength=N.length}for(;this.tip;)this.finalize(this.tip,C);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");N=new RxY(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;C=N.next();)k=C.node,W=k.type,C.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(k);this.options.time&&console.timeEnd("inline parsing");return this.doc};i04.prototype.render=function(W){W=new RxY(W);var k;this.buffer="";for(this.lastOut="\n";k=W.next();){var C=k.node.type;if(this[C])this[C](k.node,k.entering)}return this.buffer};
i04.prototype.out=function(W){FF(this,W)};
var FF=function(W,k){W.buffer+=k;W.lastOut=k};
i04.prototype.cr=function(){this.lastOut!=="\n"&&FF(this,"\n")};var sSA=/^javascript:|vbscript:|file:|data:/i,GnA=/^data:image\/(?:png|gif|jpeg|webp)/i,yyb=function(W){return sSA.test(W)&&!GnA.test(W)};
CY.prototype=Object.create(i04.prototype);_.Y=CY.prototype;_.Y.text=function(W){this.out(W.literal)};
_.Y.html_inline=function(W){this.options.safe?FF(this,"\x3c!-- raw HTML omitted --\x3e"):FF(this,W.literal)};
_.Y.html_block=function(W){this.cr();this.options.safe?FF(this,"\x3c!-- raw HTML omitted --\x3e"):FF(this,W.literal);this.cr()};
_.Y.softbreak=function(){FF(this,this.options.softbreak)};
_.Y.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.Y.link=function(W,k){var C=this.attrs(W);k?(this.options.safe&&yyb(W.destination)||C.push(["href",WO(W.destination,!0)]),W.title&&C.push(["title",WO(W.title,!0)]),this.tag("a",C)):this.tag("/a")};
_.Y.image=function(W,k){k?(this.disableTags===0&&(this.options.safe&&yyb(W.destination)?FF(this,'<img src="" alt="'):FF(this,'<img src="'+WO(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&FF(this,'" title="'+WO(W.title,!0)),FF(this,'" />')))};
_.Y.emph=function(W,k){this.tag(k?"em":"/em")};
_.Y.strong=function(W,k){this.tag(k?"strong":"/strong")};
_.Y.paragraph=function(W,k){var C=W.parent.parent;W=this.attrs(W);C!==null&&C.type==="list"&&C.listTight||(k?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.Y.heading=function(W,k){var C="h"+W.level;W=this.attrs(W);k?(this.cr(),this.tag(C,W)):(this.tag("/"+C),this.cr())};
_.Y.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.Y.code_block=function(W){var k=W.info?W.info.split(/\s+/):[],C=this.attrs(W);k.length>0&&k[0].length>0&&C.push(["class","language-"+WO(k[0],!0)]);this.cr();this.tag("pre");this.tag("code",C);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.Y.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.Y.block_quote=function(W,k){W=this.attrs(W);k?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.Y.list=function(W,k){var C=W.listType==="bullet"?"ul":"ol",n=this.attrs(W);k?(W=W.listStart,W!==null&&W!==1&&n.push(["start",W.toString()]),this.cr(),this.tag(C,n)):(this.cr(),this.tag("/"+C));this.cr()};
_.Y.item=function(W,k){W=this.attrs(W);k?this.tag("li",W):(this.tag("/li"),this.cr())};
_.Y.custom_inline=function(W,k){k&&W.onEnter?FF(this,W.onEnter):!k&&W.onExit&&FF(this,W.onExit)};
_.Y.custom_block=function(W,k){this.cr();k&&W.onEnter?FF(this,W.onEnter):!k&&W.onExit&&FF(this,W.onExit);this.cr()};
_.Y.table=function(W,k){W=this.attrs(W);k?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.Y.row=function(W,k){W._rowIsDelimiter||(W=this.attrs(W),k?this.tag("tr",W):this.tag("/tr"))};
_.Y.td=function(W,k){var C=this.attrs(W);W._alignment&&C.push(["align",W._alignment]);k?this.tag("td",C):this.tag("/td")};
_.Y.th=function(W,k){var C=this.attrs(W);W._alignment&&C.push(["align",W._alignment]);k?this.tag("th",C):this.tag("/th")};
_.Y.out=function(W){FF(this,WO(W,!1))};
_.Y.tag=function(W,k,C){if(!(this.disableTags>0)){this.buffer+="<"+W;if(k&&k.length>0){W=0;for(var n;(n=k[W])!==void 0;)this.buffer+=" "+n[0]+'="'+n[1]+'"',W++}C&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.Y.attrs=function(W){var k=[];this.options.sourcepos&&(W=W.sourcepos)&&k.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return k};
CY.prototype.text=CY.prototype.text;CY.prototype.html_inline=CY.prototype.html_inline;CY.prototype.html_block=CY.prototype.html_block;CY.prototype.softbreak=CY.prototype.softbreak;CY.prototype.linebreak=CY.prototype.linebreak;CY.prototype.link=CY.prototype.link;CY.prototype.image=CY.prototype.image;CY.prototype.emph=CY.prototype.emph;CY.prototype.strong=CY.prototype.strong;CY.prototype.paragraph=CY.prototype.paragraph;CY.prototype.heading=CY.prototype.heading;CY.prototype.code=CY.prototype.code;
CY.prototype.code_block=CY.prototype.code_block;CY.prototype.thematic_break=CY.prototype.thematic_break;CY.prototype.block_quote=CY.prototype.block_quote;CY.prototype.list=CY.prototype.list;CY.prototype.item=CY.prototype.item;CY.prototype.custom_inline=CY.prototype.custom_inline;CY.prototype.custom_block=CY.prototype.custom_block;CY.prototype.table=CY.prototype.table;CY.prototype.row=CY.prototype.row;CY.prototype.td=CY.prototype.td;CY.prototype.th=CY.prototype.th;CY.prototype.out=CY.prototype.out;
CY.prototype.tag=CY.prototype.tag;CY.prototype.attrs=CY.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 $j8,ZXs,tgm;(function(){function W(Q,I){return Q<I?-1:Q>I?1:Q>=I?0:NaN}
function k(Q){return function(I,y){return W(Q(I),y)}}
function C(){for(var Q=0,I=arguments.length,y={},H;Q<I;++Q){if(!(H=arguments[Q]+"")||H in y)throw Error("re`"+H);y[H]=[]}return new n(y)}
function n(Q){this._=Q}
function N(Q,I){return Q.trim().split(/^|\s+/).map(function(y){var H="",nI=y.indexOf(".");nI>=0&&(H=y.slice(nI+1),y=y.slice(0,nI));if(y&&!I.hasOwnProperty(y))throw Error("se`"+y);return{type:y,name:H}})}
function B(Q,I,y){for(var H=0,nI=Q.length;H<nI;++H)if(Q[H].name===I){Q[H]=khi;Q=Q.slice(0,H).concat(Q.slice(H+1));break}y!=null&&Q.push({name:I,value:y});return Q}
function A(Q){var I=Q,y=I.indexOf(":");y>=0&&(I=Q.slice(0,y))!=="xmlns"&&(Q=Q.slice(y+1));return RS.hasOwnProperty(I)?{space:RS[I],local:Q}:Q}
function w(Q){return function(){var I=this.ownerDocument,y=this.namespaceURI;return y==="http://www.w3.org/1999/xhtml"&&I.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?I.createElement(Q):I.createElementNS(y,Q)}}
function x(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}
function E(Q){Q=A(Q);return(Q.local?x:w)(Q)}
function a(){}
function X(Q){return Q==null?a:function(){return this.querySelector(Q)}}
function d(Q){return Array(Q.length)}
function V(Q,I){this.ownerDocument=Q.ownerDocument;this.namespaceURI=Q.namespaceURI;this._next=null;this._parent=Q;this.__data__=I}
function c(Q){return function(){return Q}}
function M(Q,I,y,H,nI,Fm){for(var Xm=0,cw,jp=I.length,LI=Fm.length;Xm<LI;++Xm)(cw=I[Xm])?(cw.__data__=Fm[Xm],H[Xm]=cw):y[Xm]=new V(Q,Fm[Xm]);for(;Xm<jp;++Xm)if(cw=I[Xm])nI[Xm]=cw}
function p(Q,I,y,H,nI,Fm,Xm){var cw,jp,LI={},r3=I.length,NS=Fm.length,ub=Array(r3),xB;for(cw=0;cw<r3;++cw)if(jp=I[cw])ub[cw]=xB="$"+Xm.call(jp,jp.__data__,cw,I),xB in LI?nI[cw]=jp:LI[xB]=jp;for(cw=0;cw<NS;++cw)xB="$"+Xm.call(Q,Fm[cw],cw,Fm),(jp=LI[xB])?(H[cw]=jp,jp.__data__=Fm[cw],LI[xB]=null):y[cw]=new V(Q,Fm[cw]);for(cw=0;cw<r3;++cw)(jp=I[cw])&&LI[ub[cw]]===jp&&(nI[cw]=jp)}
function e(Q,I){return Q<I?-1:Q>I?1:Q>=I?0:NaN}
function u(Q){return function(){this.removeAttribute(Q)}}
function h(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}
function L(Q,I){return function(){this.setAttribute(Q,I)}}
function Bw(Q,I){return function(){this.setAttributeNS(Q.space,Q.local,I)}}
function P(Q,I){return function(){var y=I.apply(this,arguments);y==null?this.removeAttribute(Q):this.setAttribute(Q,y)}}
function xz(Q,I){return function(){var y=I.apply(this,arguments);y==null?this.removeAttributeNS(Q.space,Q.local):this.setAttributeNS(Q.space,Q.local,y)}}
function Sp(Q){return function(){this.style.removeProperty(Q)}}
function vw(Q,I,y){return function(){this.style.setProperty(Q,I,y)}}
function lw(Q,I,y){return function(){var H=I.apply(this,arguments);H==null?this.style.removeProperty(Q):this.style.setProperty(Q,H,y)}}
function G4(Q,I){return Q.style.getPropertyValue(I)||(Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView).getComputedStyle(Q,null).getPropertyValue(I)}
function nA(Q){return function(){delete this[Q]}}
function Xs(Q,I){return function(){this[Q]=I}}
function aI(Q,I){return function(){var y=I.apply(this,arguments);y==null?delete this[Q]:this[Q]=y}}
function LA(){this.textContent=""}
function dj(Q){return function(){this.textContent=Q}}
function hK(Q){return function(){var I=Q.apply(this,arguments);this.textContent=I==null?"":I}}
function Tz(){this.innerHTML=""}
function S8(Q){return function(){this.innerHTML=Q}}
function ms(Q){return function(){var I=Q.apply(this,arguments);this.innerHTML=I==null?"":I}}
function pA(){return null}
function k3(){var Q=this.parentNode;Q&&Q.removeChild(this)}
function oe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function bw(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function C7(Q,I,y){Q=j8(Q,I,y);return function(H){var nI=H.relatedTarget;nI&&(nI===this||nI.compareDocumentPosition(this)&8)||Q.call(this,H)}}
function j8(Q,I,y){return function(){Q.call(this,this.__data__,I,y)}}
function CL(Q){return Q.trim().split(/^|\s+/).map(function(I){var y="",H=I.indexOf(".");H>=0&&(y=I.slice(H+1),I=I.slice(0,H));return{type:I,name:y}})}
function EA(Q){return function(){var I=this.__on;if(I){for(var y=0,H=-1,nI=I.length,Fm;y<nI;++y)(Fm=I[y],Q.type&&Fm.type!==Q.type||Fm.name!==Q.name)?I[++H]=Fm:this.removeEventListener(Fm.type,Fm.listener,Fm.capture);++H?I.length=H:delete this.__on}}}
function Nu(Q,I,y){var H=VX2.hasOwnProperty(Q.type)?C7:j8;return function(nI,Fm,Xm){nI=this.__on;var cw;Fm=H(I,Fm,Xm);if(nI){Xm=0;for(var jp=nI.length;Xm<jp;++Xm)if((cw=nI[Xm]).type===Q.type&&cw.name===Q.name){this.removeEventListener(cw.type,cw.listener,cw.capture);this.addEventListener(cw.type,cw.listener=Fm,cw.capture=y);cw.value=I;return}}this.addEventListener(Q.type,Fm,y);cw={type:Q.type,name:Q.name,value:I,listener:Fm,capture:y};nI?nI.push(cw):this.__on=[cw]}}
function AS(Q,I,y){var H=Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView,nI=H.CustomEvent;typeof nI==="function"?nI=new nI(I,y):(nI=H.document.createEvent("Event"),y?(nI.initEvent(I,y.bubbles,y.cancelable),nI.detail=y.detail):nI.initEvent(I,!1,!1));Q.dispatchEvent(nI)}
function RJ(Q,I){return function(){return AS(this,Q,I)}}
function Y2(Q,I){return function(){return AS(this,Q,I.apply(this,arguments))}}
function VY(Q,I){this._groups=Q;this._parents=I}
function cY(){return new VY([[document.documentElement]],CYt)}
function e8(){this._="@"+(++nVZ).toString(36)}
function R1(Q,I,y){Q.prototype=I.prototype=y;y.constructor=Q}
function Ie(Q,I){Q=Object.create(Q.prototype);for(var y in I)Q[y]=I[y];return Q}
function qZ(){}
function F7(Q){var I;Q=(Q+"").trim().toLowerCase();return(I=Nt$.exec(Q))?(I=parseInt(I[1],16),new VK(I>>8&15|I>>4&240,I>>4&15|I&240,(I&15)<<4|I&15,1)):(I=YUT.exec(Q))?e3(parseInt(I[1],16)):(I=Btu.exec(Q))?new VK(I[1],I[2],I[3],1):(I=bhA.exec(Q))?new VK(I[1]*255/100,I[2]*255/100,I[3]*255/100,1):(I=APB.exec(Q))?Uk(I[1],I[2],I[3],I[4]):(I=FNE.exec(Q))?Uk(I[1]*255/100,I[2]*255/100,I[3]*255/100,I[4]):(I=wMi.exec(Q))?Pl(I[1],I[2]/100,I[3]/100,1):(I=xH$.exec(Q))?Pl(I[1],I[2]/100,I[3]/100,I[4]):JgA.hasOwnProperty(Q)?
e3(JgA[Q]):Q==="transparent"?new VK(NaN,NaN,NaN,0):null}
function e3(Q){return new VK(Q>>16&255,Q>>8&255,Q&255,1)}
function Uk(Q,I,y,H){H<=0&&(Q=I=y=NaN);return new VK(Q,I,y,H)}
function IO(Q){Q instanceof qZ||(Q=F7(Q));if(!Q)return new VK;Q=Q.rgb();return new VK(Q.r,Q.g,Q.b,Q.opacity)}
function IW(Q,I,y,H){return arguments.length===1?IO(Q):new VK(Q,I,y,H==null?1:H)}
function VK(Q,I,y,H){this.r=+Q;this.g=+I;this.b=+y;this.opacity=+H}
function m_(Q){Q=Math.max(0,Math.min(255,Math.round(Q)||0));return(Q<16?"0":"")+Q.toString(16)}
function Pl(Q,I,y,H){H<=0?Q=I=y=NaN:y<=0||y>=1?Q=I=NaN:I<=0&&(Q=NaN);return new Jj(Q,I,y,H)}
function Y6(Q){if(Q instanceof Jj)return new Jj(Q.h,Q.s,Q.l,Q.opacity);Q instanceof qZ||(Q=F7(Q));if(!Q)return new Jj;if(Q instanceof Jj)return Q;Q=Q.rgb();var I=Q.r/255,y=Q.g/255,H=Q.b/255,nI=Math.min(I,y,H),Fm=Math.max(I,y,H),Xm=NaN,cw=Fm-nI,jp=(Fm+nI)/2;cw?(Xm=I===Fm?(y-H)/cw+(y<H)*6:y===Fm?(H-I)/cw+2:(I-y)/cw+4,cw/=jp<.5?Fm+nI:2-Fm-nI,Xm*=60):cw=jp>0&&jp<1?0:Xm;return new Jj(Xm,cw,jp,Q.opacity)}
function Tw(Q,I,y,H){return arguments.length===1?Y6(Q):new Jj(Q,I,y,H==null?1:H)}
function Jj(Q,I,y,H){this.h=+Q;this.s=+I;this.l=+y;this.opacity=+H}
function UF(Q,I,y){return(Q<60?I+(y-I)*Q/60:Q<180?y:Q<240?I+(y-I)*(240-Q)/60:I)*255}
function XP(Q){if(Q instanceof z4)return new z4(Q.l,Q.a,Q.b,Q.opacity);if(Q instanceof H8){if(isNaN(Q.h))return new z4(Q.l,0,0,Q.opacity);var I=Q.h*cgs;return new z4(Q.l,Math.cos(I)*Q.c,Math.sin(I)*Q.c,Q.opacity)}Q instanceof VK||(Q=IO(Q));var y=n7(Q.r),H=n7(Q.g),nI=n7(Q.b);I=ep(.2225045*y+.7168786*H+.0606169*nI);if(y===H&&H===nI)var Fm=y=I;else Fm=ep((.4360747*y+.3850649*H+.1430804*nI)/.96422),y=ep((.0139322*y+.0971045*H+.7141733*nI)/.82521);return new z4(116*I-16,500*(Fm-I),200*(I-y),Q.opacity)}
function z4(Q,I,y,H){this.l=+Q;this.a=+I;this.b=+y;this.opacity=+H}
function ep(Q){return Q>lVS?Math.pow(Q,1/3):Q/ICs+Sj8}
function oJ(Q){return Q>XG?Q*Q*Q:ICs*(Q-Sj8)}
function lb(Q){return 255*(Q<=.0031308?12.92*Q:1.055*Math.pow(Q,1/2.4)-.055)}
function n7(Q){return(Q/=255)<=.04045?Q/12.92:Math.pow((Q+.055)/1.055,2.4)}
function CA(Q){if(Q instanceof H8)return new H8(Q.h,Q.c,Q.l,Q.opacity);Q instanceof z4||(Q=XP(Q));if(Q.a===0&&Q.b===0)return new H8(NaN,0,Q.l,Q.opacity);var I=Math.atan2(Q.b,Q.a)*MXs;return new H8(I<0?I+360:I,Math.sqrt(Q.a*Q.a+Q.b*Q.b),Q.l,Q.opacity)}
function Fs(Q,I,y,H){return arguments.length===1?CA(Q):new H8(Q,I,y,H==null?1:H)}
function H8(Q,I,y,H){this.h=+Q;this.c=+I;this.l=+y;this.opacity=+H}
function DZ(Q,I,y,H){if(arguments.length===1){var nI=Q;if(nI instanceof zi)nI=new zi(nI.h,nI.s,nI.l,nI.opacity);else{nI instanceof VK||(nI=IO(nI));var Fm=nI.g/255,Xm=nI.b/255,cw=(QTs*Xm+nI.r/255*-1.7884503806-3.5172982438*Fm)/(QTs+-1.7884503806-3.5172982438);Xm-=cw;var jp=(1.97294*(Fm-cw)- -.29227*Xm)/-.90649;Xm=(Fm=Math.sqrt(jp*jp+Xm*Xm)/(1.97294*cw*(1-cw)))?Math.atan2(jp,Xm)*MXs-120:NaN;nI=new zi(Xm<0?Xm+360:Xm,Fm,cw,nI.opacity)}}else nI=new zi(Q,I,y,H==null?1:H);return nI}
function zi(Q,I,y,H){this.h=+Q;this.s=+I;this.l=+y;this.opacity=+H}
function KU(Q,I,y,H,nI){var Fm=Q*Q,Xm=Fm*Q;return((1-3*Q+3*Fm-Xm)*I+(4-6*Fm+3*Xm)*y+(1+3*Q+3*Fm-3*Xm)*H+Xm*nI)/6}
function MS(Q){return function(){return Q}}
function Bm(Q,I){return function(y){return Q+y*I}}
function jW(Q,I,y){return Q=Math.pow(Q,y),I=Math.pow(I,y)-Q,y=1/y,function(H){return Math.pow(Q+H*I,y)}}
function gj(Q,I){var y=I-Q;return y?Bm(Q,y>180||y<-180?y-360*Math.round(y/360):y):MS(isNaN(Q)?I:Q)}
function N3(Q){return(Q=+Q)===1?EL:function(I,y){return y-I?jW(I,y,Q):MS(isNaN(I)?y:I)}}
function EL(Q,I){var y=I-Q;return y?Bm(Q,y):MS(isNaN(Q)?I:Q)}
function KO(Q){return function(I){var y=I.length,H=Array(y),nI=Array(y),Fm=Array(y),Xm;for(Xm=0;Xm<y;++Xm){var cw=IW(I[Xm]);H[Xm]=cw.r||0;nI[Xm]=cw.g||0;Fm[Xm]=cw.b||0}H=Q(H);nI=Q(nI);Fm=Q(Fm);cw.opacity=1;return function(jp){cw.r=H(jp);cw.g=nI(jp);cw.b=Fm(jp);return cw+""}}}
function U2(Q,I){return Q=+Q,I-=Q,function(y){return Q+I*y}}
function At(Q){return function(){return Q}}
function ae(Q){return function(I){return Q(I)+""}}
function gZ(Q,I){var y=KZ2.lastIndex=h3P.lastIndex=0,H,nI,Fm,Xm=-1,cw=[],jp=[];Q+="";for(I+="";(H=KZ2.exec(Q))&&(nI=h3P.exec(I));)(Fm=nI.index)>y&&(Fm=I.slice(y,Fm),cw[Xm]?cw[Xm]+=Fm:cw[++Xm]=Fm),(H=H[0])===(nI=nI[0])?cw[Xm]?cw[Xm]+=nI:cw[++Xm]=nI:(cw[++Xm]=null,jp.push({i:Xm,x:U2(H,nI)})),y=h3P.lastIndex;y<I.length&&(Fm=I.slice(y),cw[Xm]?cw[Xm]+=Fm:cw[++Xm]=Fm);return cw.length<2?jp[0]?ae(jp[0].x):At(I):(I=jp.length,function(LI){for(var r3=0,NS;r3<I;++r3)cw[(NS=jp[r3]).i]=NS.x(LI);return cw.join("")})}
function Y0(Q,I,y,H,nI,Fm){var Xm,cw,jp;if(Xm=Math.sqrt(Q*Q+I*I))Q/=Xm,I/=Xm;if(jp=Q*y+I*H)y-=Q*jp,H-=I*jp;if(cw=Math.sqrt(y*y+H*H))y/=cw,H/=cw,jp/=cw;Q*H<I*y&&(Q=-Q,I=-I,jp=-jp,Xm=-Xm);return{translateX:nI,translateY:Fm,rotate:Math.atan2(I,Q)*paC,skewX:Math.atan(jp)*paC,scaleX:Xm,scaleY:cw}}
function OF(Q,I,y,H){function nI(LI){return LI.length?LI.pop()+" ":""}
function Fm(LI,r3,NS,ub,xB,x3){LI!==NS||r3!==ub?(xB=xB.push("translate(",null,I,null,y),x3.push({i:xB-4,x:U2(LI,NS)},{i:xB-2,x:U2(r3,ub)})):(NS||ub)&&xB.push("translate("+NS+I+ub+y)}
function Xm(LI,r3,NS,ub){LI!==r3?(LI-r3>180?r3+=360:r3-LI>180&&(LI+=360),ub.push({i:NS.push(nI(NS)+"rotate(",null,H)-2,x:U2(LI,r3)})):r3&&NS.push(nI(NS)+"rotate("+r3+H)}
function cw(LI,r3,NS,ub){LI!==r3?ub.push({i:NS.push(nI(NS)+"skewX(",null,H)-2,x:U2(LI,r3)}):r3&&NS.push(nI(NS)+"skewX("+r3+H)}
function jp(LI,r3,NS,ub,xB,x3){LI!==NS||r3!==ub?(xB=xB.push(nI(xB)+"scale(",null,",",null,")"),x3.push({i:xB-4,x:U2(LI,NS)},{i:xB-2,x:U2(r3,ub)})):NS===1&&ub===1||xB.push(nI(xB)+"scale("+NS+","+ub+")")}
return function(LI,r3){var NS=[],ub=[];LI=Q(LI);r3=Q(r3);Fm(LI.translateX,LI.translateY,r3.translateX,r3.translateY,NS,ub);Xm(LI.rotate,r3.rotate,NS,ub);cw(LI.skewX,r3.skewX,NS,ub);jp(LI.scaleX,LI.scaleY,r3.scaleX,r3.scaleY,NS,ub);LI=r3=null;return function(xB){for(var x3=-1,cX=ub.length,wT;++x3<cX;)NS[(wT=ub[x3]).i]=wT.x(xB);return NS.join("")}}}
function Jo(Q){return function(I,y){var H=Q((I=Tw(I)).h,(y=Tw(y)).h),nI=EL(I.s,y.s),Fm=EL(I.l,y.l),Xm=EL(I.opacity,y.opacity);return function(cw){I.h=H(cw);I.s=nI(cw);I.l=Fm(cw);I.opacity=Xm(cw);return I+""}}}
function gq(Q){return function(I,y){var H=Q((I=Fs(I)).h,(y=Fs(y)).h),nI=EL(I.c,y.c),Fm=EL(I.l,y.l),Xm=EL(I.opacity,y.opacity);return function(cw){I.h=H(cw);I.c=nI(cw);I.l=Fm(cw);I.opacity=Xm(cw);return I+""}}}
function PG(Q){return function H(y){function nI(Fm,Xm){var cw=Q((Fm=DZ(Fm)).h,(Xm=DZ(Xm)).h),jp=EL(Fm.s,Xm.s),LI=EL(Fm.l,Xm.l),r3=EL(Fm.opacity,Xm.opacity);return function(NS){Fm.h=cw(NS);Fm.s=jp(NS);Fm.l=LI(Math.pow(NS,y));Fm.opacity=r3(NS);return Fm+""}}
y=+y;nI.gamma=H;return nI}(1)}
function qC(){return BZ||(vUZ(wDX),BZ=zH.now()+$qp)}
function wDX(){BZ=0}
function u_(){this._call=this._time=this._next=null}
function ax(Q,I,y){var H=new u_;H.restart(Q,I,y);return H}
function Xn(){BZ=(Zvm=zH.now())+$qp;fJ=DS=0;try{qC();++fJ;for(var Q=RuI,I;Q;)(I=BZ-Q._time)>=0&&Q._call.call(null,I),Q=Q._next;--fJ}finally{fJ=0;Q=RuI;for(var y=Infinity;Q;)if(Q._call){y>Q._time&&(y=Q._time);var H=Q;Q=Q._next}else I=Q._next,Q._next=null,Q=H?H._next=I:RuI=I;V5=H;fW(y);BZ=0}}
function BSX(){var Q=zH.now(),I=Q-Zvm;I>1E3&&($qp-=I,Zvm=Q)}
function fW(Q){fJ||(DS&&(DS=clearTimeout(DS)),Q-BZ>24?(Q<Infinity&&(DS=setTimeout(Xn,Q-zH.now()-$qp)),Jm&&(Jm=clearInterval(Jm))):(Jm||(Zvm=zH.now(),Jm=setInterval(BSX,1E3)),fJ=1,vUZ(Xn)))}
function eJs(Q,I,y){var H=new u_;I=I==null?0:+I;H.restart(function(nI){H.stop();Q(nI+I)},I,y);
return H}
function Wpw(Q,I,y,H,nI,Fm){var Xm=Q.__transition;if(!Xm)Q.__transition={};else if(y in Xm)return;tg6(Q,y,{name:I,index:H,group:nI,on:EVC,tween:aV$,time:Fm.time,delay:Fm.delay,duration:Fm.duration,ease:Fm.ease,timer:null,state:0})}
function kT4(Q,I){Q=S5(Q,I);if(Q.state>0)throw Error("te");return Q}
function b4(Q,I){Q=S5(Q,I);if(Q.state>2)throw Error("ue");return Q}
function S5(Q,I){Q=Q.__transition;if(!Q||!(Q=Q[I]))throw Error("ve");return Q}
function tg6(Q,I,y){function H(jp){var LI,r3;if(y.state!==1)return Fm();for(ub in Xm){var NS=Xm[ub];if(NS.name===y.name){if(NS.state===3)return eJs(H);NS.state===4?(NS.state=6,NS.timer.stop(),NS.on.call("interrupt",Q,Q.__data__,NS.index,NS.group),delete Xm[ub]):+ub<I&&(NS.state=6,NS.timer.stop(),delete Xm[ub])}}eJs(function(){y.state===3&&(y.state=4,y.timer.restart(nI,y.delay,y.time),nI(jp))});
y.state=2;y.on.call("start",Q,Q.__data__,y.index,y.group);if(y.state===2){y.state=3;cw=Array(r3=y.tween.length);var ub=0;for(LI=-1;ub<r3;++ub)if(NS=y.tween[ub].value.call(Q,Q.__data__,y.index,y.group))cw[++LI]=NS;cw.length=LI+1}}
function nI(jp){jp=jp<y.duration?y.ease.call(null,jp/y.duration):(y.timer.restart(Fm),y.state=5,1);for(var LI=-1,r3=cw.length;++LI<r3;)cw[LI].call(null,jp);y.state===5&&(y.on.call("end",Q,Q.__data__,y.index,y.group),Fm())}
function Fm(){y.state=6;y.timer.stop();delete Xm[I];for(var jp in Xm)return;delete Q.__transition}
var Xm=Q.__transition,cw;Xm[I]=y;y.timer=ax(function(jp){y.state=1;y.timer.restart(H,y.delay,y.time);y.delay<=jp&&H(jp-y.delay)},0,y.time)}
function XMt(Q,I){var y,H;return function(){var nI=b4(this,Q),Fm=nI.tween;if(Fm!==y){H=y=Fm;Fm=0;for(var Xm=H.length;Fm<Xm;++Fm)if(H[Fm].name===I){H=H.slice();H.splice(Fm,1);break}}nI.tween=H}}
function fV$(Q,I,y){var H,nI;if(typeof y!=="function")throw Error();return function(){var Fm=b4(this,Q),Xm=Fm.tween;if(Xm!==H){nI=(H=Xm).slice();Xm={name:I,value:y};for(var cw=0,jp=nI.length;cw<jp;++cw)if(nI[cw].name===I){nI[cw]=Xm;break}cw===jp&&nI.push(Xm)}Fm.tween=nI}}
function Cr4(Q,I,y){var H=Q._id;Q.each(function(){var nI=b4(this,H);(nI.value||(nI.value={}))[I]=y.apply(this,arguments)});
return function(nI){return S5(nI,H).value[I]}}
function sTz(Q,I){var y;return(typeof I==="number"?U2:I instanceof F7?G62:(y=F7(I))?(I=y,G62):gZ)(Q,I)}
function dHT(Q){return function(){this.removeAttribute(Q)}}
function mHA(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}
function zZT(Q,I,y){var H,nI;return function(){var Fm=this.getAttribute(Q);return Fm===y?null:Fm===H?nI:nI=I(H=Fm,y)}}
function DH7(Q,I,y){var H,nI;return function(){var Fm=this.getAttributeNS(Q.space,Q.local);return Fm===y?null:Fm===H?nI:nI=I(H=Fm,y)}}
function Vgu(Q,I,y){var H,nI,Fm;return function(){var Xm=y(this);if(Xm==null)return void this.removeAttribute(Q);var cw=this.getAttribute(Q);return cw===Xm?null:cw===H&&Xm===nI?Fm:Fm=I(H=cw,nI=Xm)}}
function JP$(Q,I,y){var H,nI,Fm;return function(){var Xm=y(this);if(Xm==null)return void this.removeAttributeNS(Q.space,Q.local);var cw=this.getAttributeNS(Q.space,Q.local);return cw===Xm?null:cw===H&&Xm===nI?Fm:Fm=I(H=cw,nI=Xm)}}
function cPC(Q,I){function y(){var H=this,nI=I.apply(H,arguments);return nI&&function(Fm){H.setAttributeNS(Q.space,Q.local,nI(Fm))}}
y._value=I;return y}
function IVS(Q,I){function y(){var H=this,nI=I.apply(H,arguments);return nI&&function(Fm){H.setAttribute(Q,nI(Fm))}}
y._value=I;return y}
function SU1(Q,I){return function(){kT4(this,Q).delay=+I.apply(this,arguments)}}
function Mg$(Q,I){return I=+I,function(){kT4(this,Q).delay=I}}
function Qdi(Q,I){return function(){b4(this,Q).duration=+I.apply(this,arguments)}}
function pME(Q,I){return I=+I,function(){b4(this,Q).duration=I}}
function vVB(Q,I){if(typeof I!=="function")throw Error();return function(){b4(this,Q).ease=I}}
function eZ7(Q){return(Q+"").trim().split(/^|\s+/).every(function(I){var y=I.indexOf(".");y>=0&&(I=I.slice(0,y));return!I||I==="start"})}
function sdt(Q,I,y){var H,nI,Fm=eZ7(I)?kT4:b4;return function(){var Xm=Fm(this,Q),cw=Xm.on;if(cw!==H)(nI=(H=cw).copy()).on(I,y);Xm.on=nI}}
function Ghu(Q){return function(){var I=this.parentNode,y;for(y in this.__transition)if(+y!==Q)return;I&&I.removeChild(this)}}
function yPT(Q,I){var y,H,nI;return function(){var Fm=G4(this,Q),Xm=(this.style.removeProperty(Q),G4(this,Q));return Fm===Xm?null:Fm===y&&Xm===H?nI:nI=I(y=Fm,H=Xm)}}
function $H7(Q){return function(){this.style.removeProperty(Q)}}
function Zh7(Q,I,y){var H,nI;return function(){var Fm=G4(this,Q);return Fm===y?null:Fm===H?nI:nI=I(H=Fm,y)}}
function RZ6(Q,I,y){var H,nI,Fm;return function(){var Xm=G4(this,Q),cw=y(this);cw==null&&(cw=(this.style.removeProperty(Q),G4(this,Q)));return Xm===cw?null:Xm===H&&cw===nI?Fm:Fm=I(H=Xm,nI=cw)}}
function oVB(Q,I,y){function H(){var nI=this,Fm=I.apply(nI,arguments);return Fm&&function(Xm){nI.style.setProperty(Q,Fm(Xm),y)}}
H._value=I;return H}
function ih1(Q){return function(){this.textContent=Q}}
function Ttt(Q){return function(){var I=Q(this);this.textContent=I==null?"":I}}
function mS(Q,I,y,H){this._groups=Q;this._parents=I;this._name=y;this._id=H}
function ncP(Q){return{type:Q}}
function NpP(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function o1P(){}
function ygA(Q,I){var y=new o1P;if(Q instanceof o1P)Q.each(function(Xm,cw){y.set(cw,Xm)});
else if(Array.isArray(Q)){var H=-1,nI=Q.length,Fm;if(I==null)for(;++H<nI;)y.set(H,Q[H]);else for(;++H<nI;)y.set(I(Fm=Q[H],H,Q),Fm)}else if(Q)for(H in Q)y.set(H,Q[H]);return y}
function ivX(){}
function $xs(Q){return function(I){for(var y={},H=0;H<Q.length;H++)y[Q[H]]=I[H]||"";return y}}
function qUE(Q,I){var y=$xs(Q);return function(H,nI){return I(y(H),nI,Q)}}
function uf$(Q){var I=Object.create(null),y=[];Q.forEach(function(H){for(var nI in H)nI in I||y.push(I[nI]=nI)});
return y}
function ZCA(Q){function I(Xm,cw){function jp(){if(x3)return Y6z;if(cX)return cX=!1,RJI;var UL,FM=NS,YQ;if(Xm.charCodeAt(FM)===34){for(;NS++<r3&&Xm.charCodeAt(NS)!==34||Xm.charCodeAt(++NS)===34;);(UL=NS)>=r3?x3=!0:(YQ=Xm.charCodeAt(NS++))===10?cX=!0:YQ===13&&(cX=!0,Xm.charCodeAt(NS)===10&&++NS);return Xm.slice(FM+1,UL-1).replace(/""/g,'"')}for(;NS<r3;){if((YQ=Xm.charCodeAt(UL=NS++))===10)cX=!0;else if(YQ===13)cX=!0,Xm.charCodeAt(NS)===10&&++NS;else if(YQ!==Fm)continue;return Xm.slice(FM,UL)}return x3=
!0,Xm.slice(FM,r3)}
var LI=[],r3=Xm.length,NS=0,ub=0,xB,x3=r3<=0,cX=!1;Xm.charCodeAt(r3-1)===10&&--r3;for(Xm.charCodeAt(r3-1)===13&&--r3;(xB=jp())!==Y6z;){for(var wT=[];xB!==RJI&&xB!==Y6z;)wT.push(xB),xB=jp();cw&&(wT=cw(wT,ub++))==null||LI.push(wT)}return LI}
function y(Xm){return Xm.map(H).join(Q)}
function H(Xm){return Xm==null?"":nI.test(Xm)?'"'+Xm.replace(/"/g,'""')+'"':Xm}
var nI=new RegExp('["'+Q+"\n\r]"),Fm=Q.charCodeAt(0);return{parse:function(Xm,cw){var jp,LI;Xm=I(Xm,function(r3,NS){if(jp)return jp(r3,NS-1);LI=r3;jp=cw?qUE(r3,cw):$xs(r3)});
Xm.columns=LI||[];return Xm},
parseRows:I,format:function(Xm,cw){cw==null&&(cw=uf$(Xm));return[cw.map(H).join(Q)].concat(Xm.map(function(jp){return cw.map(function(LI){return H(jp[LI])}).join(Q)})).join("\n")},
formatRows:function(Xm){return Xm.map(y).join("\n")}}}
function UH$(Q){if(!Q.ok)throw Error("we`"+Q.status+"`"+Q.statusText);return Q.text()}
function oUY(Q){return function(I,y,H){arguments.length===2&&typeof y==="function"&&(H=y,y=void 0);return fetch(I,y).then(UH$).then(function(nI){return Q(nI,H)})}}
function iCx(Q,I,y,H){if(isNaN(I)||isNaN(y))return Q;var nI,Fm=Q._root;H={data:H};var Xm=Q._x0,cw=Q._y0,jp=Q._x1,LI=Q._y1,r3,NS,ub,xB,x3;if(!Fm)return Q._root=H,Q;for(;Fm.length;)if((ub=I>=(r3=(Xm+jp)/2))?Xm=r3:jp=r3,(xB=y>=(NS=(cw+LI)/2))?cw=NS:LI=NS,nI=Fm,!(Fm=Fm[x3=xB<<1|ub]))return nI[x3]=H,Q;var cX=+Q._x.call(null,Fm.data);var wT=+Q._y.call(null,Fm.data);if(I===cX&&y===wT)return H.next=Fm,nI?nI[x3]=H:Q._root=H,Q;do nI=nI?nI[x3]=Array(4):Q._root=Array(4),(ub=I>=(r3=(Xm+jp)/2))?Xm=r3:jp=r3,(xB=
y>=(NS=(cw+LI)/2))?cw=NS:LI=NS;while((x3=xB<<1|ub)===(ub=(wT>=NS)<<1|cX>=r3));return nI[ub]=Fm,nI[x3]=H,Q}
function Fi(Q,I,y,H,nI){this.node=Q;this.x0=I;this.y0=y;this.x1=H;this.y1=nI}
function OhZ(Q){return Q[0]}
function LN1(Q){return Q[1]}
function BpI(Q,I,y,H,nI,Fm){this._x=Q;this._y=I;this._x0=y;this._y0=H;this._x1=nI;this._y1=Fm;this._root=void 0}
function T9A(Q){for(var I={data:Q.data},y=I;Q=Q.next;)y=y.next={data:Q.data};return I}
function TK2(Q,I){if((I=(Q=I?Q.toExponential(I-1):Q.toExponential()).indexOf("e"))<0)return null;var y=Q.slice(0,I);return[y.length>1?y[0]+y.slice(2):y,+Q.slice(I+1)]}
function jdE(Q){return Q=TK2(Math.abs(Q)),Q?Q[1]:NaN}
function HhS(Q,I){return function(y,H){for(var nI=y.length,Fm=[],Xm=0,cw=Q[0],jp=0;nI>0&&cw>0;){jp+cw+1>H&&(cw=Math.max(1,H-jp));Fm.push(y.substring(nI-=cw,nI+cw));if((jp+=cw+1)>H)break;cw=Q[Xm=(Xm+1)%Q.length]}return Fm.reverse().join(I)}}
function rP6(Q){return function(I){return I.replace(/[0-9]/g,function(y){return Q[+y]})}}
function bVX(Q){return new A0P(Q)}
function A0P(Q){if(!(I=gV6.exec(Q)))throw Error("xe`"+Q);var I;this.fill=I[1]||" ";this.align=I[2]||">";this.sign=I[3]||"-";this.symbol=I[4]||"";this.zero=!!I[5];this.width=I[6]&&+I[6];this.comma=!!I[7];this.precision=I[8]&&+I[8].slice(1);this.trim=!!I[9];this.type=I[10]||""}
function qjs(Q,I){I=TK2(Q,I);if(!I)return Q+"";Q=I[0];I=I[1];return I<0?"0."+Array(-I).join("0")+Q:Q.length>I+1?Q.slice(0,I+1)+"."+Q.slice(I+1):Q+Array(I-Q.length+2).join("0")}
function ua8(Q){return Q}
function PY7(Q){function I(cw){function jp(Re){var dK=YQ,I1=nn,Y3,L7;if(FM==="c")I1=ww(Re)+I1,Re="";else{Re=+Re;var ES=Re<0;Re=ww(Math.abs(Re),wT);if(UL){var Yn=Re.length,cx=1,OL=-1;a:for(;cx<Yn;++cx)switch(Re[cx]){case ".":OL=Y3=cx;break;case "0":OL===0&&(OL=cx);Y3=cx;break;default:if(!+Re[cx])break a;OL>0&&(OL=0)}Re=OL>0?Re.slice(0,OL)+Re.slice(Y3+1):Re}ES&&+Re===0&&(ES=!1);dK=(ES?NS==="("?NS:"-":NS==="-"||NS==="("?"":NS)+dK;I1=(FM==="s"?UxY[8+OCC/3]:"")+I1+(ES&&NS==="("?")":"");if(Wf)for(ES=-1,
Y3=Re.length;++ES<Y3;)if(L7=Re.charCodeAt(ES),48>L7||L7>57){I1=(L7===46?nI+Re.slice(ES+1):Re.slice(ES))+I1;Re=Re.slice(0,ES);break}}cX&&!xB&&(Re=y(Re,Infinity));L7=dK.length+Re.length+I1.length;ES=L7<x3?Array(x3-L7+1).join(LI):"";cX&&xB&&(Re=y(ES+Re,ES.length?x3-I1.length:Infinity),ES="");switch(r3){case "<":Re=dK+Re+I1+ES;break;case "=":Re=dK+ES+Re+I1;break;case "^":Re=ES.slice(0,L7=ES.length>>1)+dK+Re+I1+ES.slice(L7);break;default:Re=ES+dK+Re+I1}return Fm(Re)}
cw=bVX(cw);var LI=cw.fill,r3=cw.align,NS=cw.sign,ub=cw.symbol,xB=cw.zero,x3=cw.width,cX=cw.comma,wT=cw.precision,UL=cw.trim,FM=cw.type;FM==="n"?(cX=!0,FM="g"):LtA[FM]||(wT==null&&(wT=12),UL=!0,FM="g");if(xB||LI==="0"&&r3==="=")xB=!0,LI="0",r3="=";var YQ=ub==="$"?H[0]:ub==="#"&&/[boxX]/.test(FM)?"0"+FM.toLowerCase():"",nn=ub==="$"?H[1]:/[%p]/.test(FM)?Xm:"",ww=LtA[FM],Wf=/[defgprs%]/.test(FM);wT=wT==null?6:/[gprs]/.test(FM)?Math.max(1,Math.min(21,wT)):Math.max(0,Math.min(20,wT));jp.toString=function(){return cw+
""};
return jp}
var y=Q.grouping&&Q.thousands?HhS(Q.grouping,Q.thousands):ua8,H=Q.currency,nI=Q.decimal,Fm=Q.numerals?rP6(Q.numerals):ua8,Xm=Q.percent||"%";return{format:I,formatPrefix:function(cw,jp){var LI=I((cw=bVX(cw),cw.type="f",cw));cw=Math.max(-8,Math.min(8,Math.floor(jdE(jp)/3)))*3;var r3=Math.pow(10,-cw),NS=UxY[8+cw/3];return function(ub){return LI(r3*ub)+NS}}}}
function Xp(){this.reset()}
function jTs(Q,I,y){var H=Q.s=I+y,nI=H-I;Q.t=I-(H-nI)+(y-nI)}
function qL2(Q){return Q>1?oS:Q<-1?-oS:Math.asin(Q)}
function KN7(){}
function HC2(Q){var I=Q[0];Q=Q[1];var y=iX(Q);return[y*iX(I),y*bO(I),bO(Q)]}
function rg8(Q,I){return[Q[1]*I[2]-Q[2]*I[1],Q[2]*I[0]-Q[0]*I[2],Q[0]*I[1]-Q[1]*I[0]]}
function gUx(Q){var I=uE2(Q[0]*Q[0]+Q[1]*Q[1]+Q[2]*Q[2]);Q[0]/=I;Q[1]/=I;Q[2]/=I}
function hZZ(){var Q=[],I;return{point:function(y,H){I.push([y,H])},
lineStart:function(){Q.push(I=[])},
lineEnd:KN7,rejoin:function(){Q.length>1&&Q.push(Q.pop().concat(Q.shift()))},
result:function(){var y=Q;Q=[];I=null;return y}}}
function UqK(Q,I,y,H){this.x=Q;this.z=I;this.o=y;this.e=H;this.v=!1;this.n=this.p=null}
function WyT(Q,I,y,H,nI){var Fm=[],Xm=[];Q.forEach(function(NS){if(!((ub=NS.length-1)<=0)){var ub,xB=NS[0],x3=NS[ub],cX=xB;if(zR(cX[0]-x3[0])<1E-6&&zR(cX[1]-x3[1])<1E-6){nI.lineStart();for(cw=0;cw<ub;++cw)nI.point((xB=NS[cw])[0],xB[1]);nI.lineEnd()}else Fm.push(ub=new UqK(xB,NS,null,!0)),Xm.push(ub.o=new UqK(xB,null,ub,!1)),Fm.push(ub=new UqK(x3,NS,null,!1)),Xm.push(ub.o=new UqK(x3,null,ub,!0))}});
if(Fm.length){Xm.sort(I);PN8(Fm);PN8(Xm);var cw=0;for(Q=Xm.length;cw<Q;++cw)Xm[cw].e=y=!y;y=Fm[0];for(var jp;;){for(var LI=y,r3=!0;LI.v;)if((LI=LI.n)===y)return;I=LI.z;nI.lineStart();do{LI.v=LI.o.v=!0;if(LI.e){if(r3)for(cw=0,Q=I.length;cw<Q;++cw)nI.point((jp=I[cw])[0],jp[1]);else H(LI.x,LI.n.x,1,nI);LI=LI.n}else{if(r3)for(I=LI.p.z,cw=I.length-1;cw>=0;--cw)nI.point((jp=I[cw])[0],jp[1]);else H(LI.x,LI.p.x,-1,nI);LI=LI.p}LI=LI.o;I=LI.z;r3=!r3}while(!LI.v);nI.lineEnd()}}}
function PN8(Q){if(I=Q.length){for(var I,y=0,H=Q[0],nI;++y<I;)H.n=nI=Q[y],nI.p=H,H=nI;H.n=nI=Q[0];nI.p=H}}
function kST(Q){return Q.length>1}
function CQ1(Q,I){return((Q=Q.x)[0]<0?Q[1]-oS-1E-6:oS-Q[1])-((I=I.x)[0]<0?I[1]-oS-1E-6:oS-I[1])}
function Fpm(){}
function Ktb(Q){return function(I,y){var H=iX(I),nI=iX(y);H=Q(H*nI);return[H*nI*bO(I),H*bO(y)]}}
function cc(Q){return function(I,y){var H=uE2(I*I+y*y),nI=Q(H),Fm=bO(nI);nI=iX(nI);return[hJA(I*Fm,H*nI),qL2(H&&y*Fm/H)]}}
function nuA(Q){var I=0,y=Q.children,H=y&&y.length;if(H)for(;--H>=0;)I+=y[H].value;else I=1;Q.value=I}
function WbC(Q,I){var y=new I0(Q);Q=+Q.value&&(y.value=Q.value);var H,nI=[y],Fm,Xm,cw,jp;for(I==null&&(I=NW6);H=nI.pop();)if(Q&&(H.value=+H.data.value),(Xm=I(H.data))&&(jp=Xm.length))for(H.children=Array(jp),cw=jp-1;cw>=0;--cw)nI.push(Fm=H.children[cw]=new I0(Xm[cw])),Fm.parent=H,Fm.depth=H.depth+1;return y.eachBefore(YtZ)}
function NW6(Q){return Q.children}
function BWT(Q){Q.data=Q.data.data}
function YtZ(Q){var I=0;do Q.height=I;while((Q=Q.parent)&&Q.height<++I)}
function I0(Q){this.data=Q;this.depth=this.height=0;this.parent=null}
function We(Q,I,y,H){function nI(Fm){return Q(Fm=new Date(+Fm)),Fm}
nI.floor=nI;nI.ceil=function(Fm){return Q(Fm=new Date(Fm-1)),I(Fm,1),Q(Fm),Fm};
nI.round=function(Fm){var Xm=nI(Fm),cw=nI.ceil(Fm);return Fm-Xm<cw-Fm?Xm:cw};
nI.offset=function(Fm,Xm){return I(Fm=new Date(+Fm),Xm==null?1:Math.floor(Xm)),Fm};
nI.range=function(Fm,Xm,cw){var jp=[],LI;Fm=nI.ceil(Fm);cw=cw==null?1:Math.floor(cw);if(!(Fm<Xm&&cw>0))return jp;do jp.push(LI=new Date(+Fm)),I(Fm,cw),Q(Fm);while(LI<Fm&&Fm<Xm);return jp};
nI.filter=function(Fm){return We(function(Xm){if(Xm>=Xm)for(;Q(Xm),!Fm(Xm);)Xm.setTime(Xm-1)},function(Xm,cw){if(Xm>=Xm)if(cw<0)for(;++cw<=0;)for(;I(Xm,-1),!Fm(Xm););
else for(;--cw>=0;)for(;I(Xm,1),!Fm(Xm););})};
y&&(nI.count=function(Fm,Xm){w5m.setTime(+Fm);x62.setTime(+Xm);Q(w5m);Q(x62);return Math.floor(y(w5m,x62))},nI.every=function(Fm){Fm=Math.floor(Fm);
return isFinite(Fm)&&Fm>0?Fm>1?nI.filter(H?function(Xm){return H(Xm)%Fm===0}:function(Xm){return nI.count(0,Xm)%Fm===0}):nI:null});
return nI}
function Aa(Q){return We(function(I){I.setDate(I.getDate()-(I.getDay()+7-Q)%7);I.setHours(0,0,0,0)},function(I,y){I.setDate(I.getDate()+y*7)},function(I,y){return(y-I-(y.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/6048E5})}
function Fy(Q){return We(function(I){I.setUTCDate(I.getUTCDate()-(I.getUTCDay()+7-Q)%7);I.setUTCHours(0,0,0,0)},function(I,y){I.setUTCDate(I.getUTCDate()+y*7)},function(I,y){return(y-I)/6048E5})}
function bjZ(Q){if(0<=Q.y&&Q.y<100){var I=new Date(-1,Q.m,Q.d,Q.H,Q.M,Q.S,Q.L);I.setFullYear(Q.y);return I}return new Date(Q.y,Q.m,Q.d,Q.H,Q.M,Q.S,Q.L)}
function OvP(Q){if(0<=Q.y&&Q.y<100){var I=new Date(Date.UTC(-1,Q.m,Q.d,Q.H,Q.M,Q.S,Q.L));I.setUTCFullYear(Q.y);return I}return new Date(Date.UTC(Q.y,Q.m,Q.d,Q.H,Q.M,Q.S,Q.L))}
function SJ(Q){return{y:Q,m:0,d:1,H:0,M:0,S:0,L:0}}
function AG6(Q){function I(I1,Y3){return function(L7){var ES=[],Yn=-1,cx=0,OL=I1.length,SO,L_;for(L7 instanceof Date||(L7=new Date(+L7));++Yn<OL;)if(I1.charCodeAt(Yn)===37){ES.push(I1.slice(cx,Yn));(cx=kBs[SO=I1.charAt(++Yn)])!=null?SO=I1.charAt(++Yn):cx=SO==="e"?" ":"0";if(L_=Y3[SO])SO=L_(L7,cx);ES.push(SO);cx=Yn+1}ES.push(I1.slice(cx,Yn));return ES.join("")}}
function y(I1,Y3){return function(L7){var ES=SJ(1900);if(H(ES,I1,L7,0)!=L7.length)return null;if("Q"in ES)return new Date(ES.Q);"p"in ES&&(ES.H=ES.H%12+ES.p*12);if("V"in ES){if(ES.V<1||ES.V>53)return null;"w"in ES||(ES.w=1);if("Z"in ES){L7=OvP(SJ(ES.y));var Yn=L7.getUTCDay();L7=Yn>4||Yn===0?lJz.ceil(L7):lJz(L7);L7=CoS.offset(L7,(ES.V-1)*7);ES.y=L7.getUTCFullYear();ES.m=L7.getUTCMonth();ES.d=L7.getUTCDate()+(ES.w+6)%7}else L7=Y3(SJ(ES.y)),Yn=L7.getDay(),L7=Yn>4||Yn===0?tQK.ceil(L7):tQK(L7),L7=nHb.offset(L7,
(ES.V-1)*7),ES.y=L7.getFullYear(),ES.m=L7.getMonth(),ES.d=L7.getDate()+(ES.w+6)%7}else if("W"in ES||"U"in ES)"w"in ES||(ES.w="u"in ES?ES.u%7:"W"in ES?1:0),Yn="Z"in ES?OvP(SJ(ES.y)).getUTCDay():Y3(SJ(ES.y)).getDay(),ES.m=0,ES.d="W"in ES?(ES.w+6)%7+ES.W*7-(Yn+5)%7:ES.w+ES.U*7-(Yn+6)%7;return"Z"in ES?(ES.H+=ES.Z/100|0,ES.M+=ES.Z%100,OvP(ES)):Y3(ES)}}
function H(I1,Y3,L7,ES){for(var Yn=0,cx=Y3.length,OL=L7.length,SO;Yn<cx;){if(ES>=OL)return-1;SO=Y3.charCodeAt(Yn++);if(SO===37){if(SO=Y3.charAt(Yn++),SO=dK[SO in kBs?Y3.charAt(Yn++):SO],!SO||(ES=SO(I1,L7,ES))<0)return-1}else if(SO!=L7.charCodeAt(ES++))return-1}return ES}
var nI=Q.dateTime,Fm=Q.date,Xm=Q.time,cw=Q.periods,jp=Q.days,LI=Q.shortDays,r3=Q.months,NS=Q.shortMonths,ub=M0(cw),xB=Q5(cw),x3=M0(jp),cX=Q5(jp),wT=M0(LI),UL=Q5(LI),FM=M0(r3),YQ=Q5(r3),nn=M0(NS),ww=Q5(NS),Wf={a:function(I1){return LI[I1.getDay()]},
A:function(I1){return jp[I1.getDay()]},
b:function(I1){return NS[I1.getMonth()]},
B:function(I1){return r3[I1.getMonth()]},
c:null,d:NoI,e:NoI,f:Fy6,H:wdA,I:xUT,j:l9u,L:YlA,m:tP7,M:Eu7,p:function(I1){return cw[+(I1.getHours()>=12)]},
Q:BoA,s:bPs,S:a9Z,u:XdB,U:f9t,V:dUZ,w:mUS,W:z5B,x:null,X:null,y:DUt,Y:VP7,Z:JGE,"%":ANI},Re={a:function(I1){return LI[I1.getUTCDay()]},
A:function(I1){return jp[I1.getUTCDay()]},
b:function(I1){return NS[I1.getUTCMonth()]},
B:function(I1){return r3[I1.getUTCMonth()]},
c:null,d:Fbz,e:Fbz,f:cG$,H:I9B,I:St$,j:MPS,L:wbs,m:QPi,M:pdS,p:function(I1){return cw[+(I1.getUTCHours()>=12)]},
Q:BoA,s:bPs,S:vu$,u:e51,U:sPB,V:GSS,w:yG1,W:$U$,x:null,X:null,y:Zj6,Y:R5T,Z:ouB,"%":ANI},dK={a:function(I1,Y3,L7){return(Y3=wT.exec(Y3.slice(L7)))?(I1.w=UL[Y3[0].toLowerCase()],L7+Y3[0].length):-1},
A:function(I1,Y3,L7){return(Y3=x3.exec(Y3.slice(L7)))?(I1.w=cX[Y3[0].toLowerCase()],L7+Y3[0].length):-1},
b:function(I1,Y3,L7){return(Y3=nn.exec(Y3.slice(L7)))?(I1.m=ww[Y3[0].toLowerCase()],L7+Y3[0].length):-1},
B:function(I1,Y3,L7){return(Y3=FM.exec(Y3.slice(L7)))?(I1.m=YQ[Y3[0].toLowerCase()],L7+Y3[0].length):-1},
c:function(I1,Y3,L7){return H(I1,nI,Y3,L7)},
d:xOS,e:xOS,f:ij1,H:lbs,I:lbs,j:TWB,L:qtC,m:uWZ,M:UUC,p:function(I1,Y3,L7){return(Y3=ub.exec(Y3.slice(L7)))?(I1.p=xB[Y3[0].toLowerCase()],L7+Y3[0].length):-1},
Q:Ojt,s:Lyt,S:jP1,u:Hjt,U:rGB,V:gu1,w:PQZ,W:KyZ,x:function(I1,Y3,L7){return H(I1,Fm,Y3,L7)},
X:function(I1,Y3,L7){return H(I1,Xm,Y3,L7)},
y:h5T,Y:Wx6,Z:kNT,"%":CGC};Wf.x=I(Fm,Wf);Wf.X=I(Xm,Wf);Wf.c=I(nI,Wf);Re.x=I(Fm,Re);Re.X=I(Xm,Re);Re.c=I(nI,Re);return{format:function(I1){var Y3=I(I1,Wf);Y3.toString=function(){return I1};
return Y3},
parse:function(I1){var Y3=y(I1,bjZ);Y3.toString=function(){return I1};
return Y3},
utcFormat:function(I1){var Y3=I(I1,Re);Y3.toString=function(){return I1};
return Y3},
utcParse:function(I1){var Y3=y(I1,OvP);Y3.toString=function(){return I1};
return Y3}}}
function ew(Q,I,y){var H=Q<0?"-":"";Q=(H?-Q:Q)+"";var nI=Q.length;return H+(nI<y?Array(y-nI+1).join(I)+Q:Q)}
function nJt(Q){return Q.replace(NC7,"\\$&")}
function M0(Q){return new RegExp("^(?:"+Q.map(nJt).join("|")+")","i")}
function Q5(Q){for(var I={},y=-1,H=Q.length;++y<H;)I[Q[y].toLowerCase()]=y;return I}
function PQZ(Q,I,y){return(I=BN.exec(I.slice(y,y+1)))?(Q.w=+I[0],y+I[0].length):-1}
function Hjt(Q,I,y){return(I=BN.exec(I.slice(y,y+1)))?(Q.u=+I[0],y+I[0].length):-1}
function rGB(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.U=+I[0],y+I[0].length):-1}
function gu1(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.V=+I[0],y+I[0].length):-1}
function KyZ(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.W=+I[0],y+I[0].length):-1}
function Wx6(Q,I,y){return(I=BN.exec(I.slice(y,y+4)))?(Q.y=+I[0],y+I[0].length):-1}
function h5T(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.y=+I[0]+(+I[0]>68?1900:2E3),y+I[0].length):-1}
function kNT(Q,I,y){return(I=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(I.slice(y,y+6)))?(Q.Z=I[1]?0:-(I[2]+(I[3]||"00")),y+I[0].length):-1}
function uWZ(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.m=I[0]-1,y+I[0].length):-1}
function xOS(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.d=+I[0],y+I[0].length):-1}
function TWB(Q,I,y){return(I=BN.exec(I.slice(y,y+3)))?(Q.m=0,Q.d=+I[0],y+I[0].length):-1}
function lbs(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.H=+I[0],y+I[0].length):-1}
function UUC(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.M=+I[0],y+I[0].length):-1}
function jP1(Q,I,y){return(I=BN.exec(I.slice(y,y+2)))?(Q.S=+I[0],y+I[0].length):-1}
function qtC(Q,I,y){return(I=BN.exec(I.slice(y,y+3)))?(Q.L=+I[0],y+I[0].length):-1}
function ij1(Q,I,y){return(I=BN.exec(I.slice(y,y+6)))?(Q.L=Math.floor(I[0]/1E3),y+I[0].length):-1}
function CGC(Q,I,y){return(Q=Y07.exec(I.slice(y,y+1)))?y+Q[0].length:-1}
function Ojt(Q,I,y){return(I=BN.exec(I.slice(y)))?(Q.Q=+I[0],y+I[0].length):-1}
function Lyt(Q,I,y){return(I=BN.exec(I.slice(y)))?(Q.Q=+I[0]*1E3,y+I[0].length):-1}
function NoI(Q,I){return ew(Q.getDate(),I,2)}
function wdA(Q,I){return ew(Q.getHours(),I,2)}
function xUT(Q,I){return ew(Q.getHours()%12||12,I,2)}
function l9u(Q,I){return ew(1+nHb.count(dC(Q),Q),I,3)}
function YlA(Q,I){return ew(Q.getMilliseconds(),I,3)}
function Fy6(Q,I){return YlA(Q,I)+"000"}
function tP7(Q,I){return ew(Q.getMonth()+1,I,2)}
function Eu7(Q,I){return ew(Q.getMinutes(),I,2)}
function a9Z(Q,I){return ew(Q.getSeconds(),I,2)}
function XdB(Q){Q=Q.getDay();return Q===0?7:Q}
function f9t(Q,I){return ew(BCA.count(dC(Q),Q),I,2)}
function dUZ(Q,I){var y=Q.getDay();Q=y>=4||y===0?Ecc(Q):Ecc.ceil(Q);return ew(Ecc.count(dC(Q),Q)+(dC(Q).getDay()===4),I,2)}
function mUS(Q){return Q.getDay()}
function z5B(Q,I){return ew(tQK.count(dC(Q),Q),I,2)}
function DUt(Q,I){return ew(Q.getFullYear()%100,I,2)}
function VP7(Q,I){return ew(Q.getFullYear()%1E4,I,4)}
function JGE(Q){Q=Q.getTimezoneOffset();return(Q>0?"-":(Q*=-1,"+"))+ew(Q/60|0,"0",2)+ew(Q%60,"0",2)}
function Fbz(Q,I){return ew(Q.getUTCDate(),I,2)}
function I9B(Q,I){return ew(Q.getUTCHours(),I,2)}
function St$(Q,I){return ew(Q.getUTCHours()%12||12,I,2)}
function MPS(Q,I){return ew(1+CoS.count(mx(Q),Q),I,3)}
function wbs(Q,I){return ew(Q.getUTCMilliseconds(),I,3)}
function cG$(Q,I){return wbs(Q,I)+"000"}
function QPi(Q,I){return ew(Q.getUTCMonth()+1,I,2)}
function pdS(Q,I){return ew(Q.getUTCMinutes(),I,2)}
function vu$(Q,I){return ew(Q.getUTCSeconds(),I,2)}
function e51(Q){Q=Q.getUTCDay();return Q===0?7:Q}
function sPB(Q,I){return ew(bJT.count(mx(Q),Q),I,2)}
function GSS(Q,I){var y=Q.getUTCDay();Q=y>=4||y===0?aJ2(Q):aJ2.ceil(Q);return ew(aJ2.count(mx(Q),Q)+(mx(Q).getUTCDay()===4),I,2)}
function yG1(Q){return Q.getUTCDay()}
function $U$(Q,I){return ew(lJz.count(mx(Q),Q),I,2)}
function Zj6(Q,I){return ew(Q.getUTCFullYear()%100,I,2)}
function R5T(Q,I){return ew(Q.getUTCFullYear()%1E4,I,4)}
function ouB(){return"+0000"}
function ANI(){return"%"}
function BoA(Q){return+Q}
function bPs(Q){return Math.floor(+Q/1E3)}
function HX(Q){for(var I=Q.length/6|0,y=Array(I),H=0;H<I;)y[H]="#"+Q.slice(H*6,++H*6);return y}
function Bv(Q){return AI$(Q[Q.length-1])}
function Law(Q){var I=Q.length;return function(y){return Q[Math.max(0,Math.min(I-1,Math.floor(y*I)))]}}
function tMs(Q){this._context=Q}
function EHs(Q){this._curve=Q}
function abs(Q,I,y){var H=Q._x1-Q._x0;I-=Q._x1;var nI=(Q._y1-Q._y0)/(H||I<0&&-0);Q=(y-Q._y1)/(I||H<0&&-0);return((nI<0?-1:1)+(Q<0?-1:1))*Math.min(Math.abs(nI),Math.abs(Q),.5*Math.abs((nI*I+Q*H)/(H+I)))||0}
function Xbs(Q,I){var y=Q._x1-Q._x0;return y?(3*(Q._y1-Q._y0)/y-I)/2:I}
function X5m(Q,I,y){var H=Q._x0,nI=Q._x1,Fm=Q._y1,Xm=(nI-H)/3;Q._context.bezierCurveTo(H+Xm,Q._y0+Xm*I,nI-Xm,Fm-Xm*y,nI,Fm)}
function fJp(Q){this._context=Q}
function fbA(Q){this._context=Q}
function pD(Q,I,y){this.k=Q;this.x=I;this.y=y}
(function(Q){Q.length===1&&(Q=k(Q));return{left:function(I,y,H,nI){H==null&&(H=0);nI==null&&(nI=I.length);for(;H<nI;){var Fm=H+nI>>>1;Q(I[Fm],y)<0?H=Fm+1:nI=Fm}return H},
right:function(I,y,H,nI){H==null&&(H=0);nI==null&&(nI=I.length);for(;H<nI;){var Fm=H+nI>>>1;Q(I[Fm],y)>0?nI=Fm:H=Fm+1}return H}}})(W);
var khi={value:function(){}};
n.prototype=C.prototype={constructor:n,on:function(Q,I){var y=this._,H=N(Q+"",y),nI,Fm=-1,Xm=H.length;if(arguments.length<2)for(;++Fm<Xm;){var cw;if(cw=nI=(Q=H[Fm]).type){a:{cw=y[nI];for(var jp=0,LI=cw.length;jp<LI;++jp)if((nI=cw[jp]).name===Q.name){nI=nI.value;break a}nI=void 0}cw=nI}if(cw)return nI}else{if(I!=null&&typeof I!=="function")throw Error("ye`"+I);for(;++Fm<Xm;)if(nI=(Q=H[Fm]).type)y[nI]=B(y[nI],Q.name,I);else if(I==null)for(nI in y)y[nI]=B(y[nI],Q.name,null);return this}},
copy:function(){var Q={},I=this._,y;for(y in I)Q[y]=I[y].slice();return new n(Q)},
call:function(Q,I){if((nI=arguments.length-2)>0)for(var y=Array(nI),H=0,nI,Fm;H<nI;++H)y[H]=arguments[H+2];if(!this._.hasOwnProperty(Q))throw Error("se`"+Q);Fm=this._[Q];H=0;for(nI=Fm.length;H<nI;++H)Fm[H].value.apply(I,y)},
apply:function(Q,I,y){if(!this._.hasOwnProperty(Q))throw Error("se`"+Q);Q=this._[Q];for(var H=0,nI=Q.length;H<nI;++H)Q[H].value.apply(I,y)}};
var RS={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/"},dOY=function(Q){return function(){return this.matches(Q)}};
if(typeof document!=="undefined"){var vc=document.documentElement;if(!vc.matches){var FxA=vc.webkitMatchesSelector||vc.msMatchesSelector||vc.mozMatchesSelector||vc.oMatchesSelector;dOY=function(Q){return function(){return FxA.call(this,Q)}}}}var mOA=dOY;
V.prototype={constructor:V,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},
insertBefore:function(Q,I){return this._parent.insertBefore(Q,I)},
querySelector:function(Q){return this._parent.querySelector(Q)},
querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};
var VX2={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(VX2={mouseenter:"mouseover",mouseleave:"mouseout"}));var CYt=[null];VY.prototype=cY.prototype={constructor:VY,select:function(Q){typeof Q!=="function"&&(Q=X(Q));for(var I=this._groups,y=I.length,H=Array(y),nI=0;nI<y;++nI)for(var Fm=I[nI],Xm=Fm.length,cw=H[nI]=Array(Xm),jp,LI,r3=0;r3<Xm;++r3)(jp=Fm[r3])&&(LI=Q.call(jp,jp.__data__,r3,Fm))&&("__data__"in jp&&(LI.__data__=jp.__data__),cw[r3]=LI);return new VY(H,this._parents)},
filter:function(Q){typeof Q!=="function"&&(Q=mOA(Q));for(var I=this._groups,y=I.length,H=Array(y),nI=0;nI<y;++nI)for(var Fm=I[nI],Xm=Fm.length,cw=H[nI]=[],jp,LI=0;LI<Xm;++LI)(jp=Fm[LI])&&Q.call(jp,jp.__data__,LI,Fm)&&cw.push(jp);return new VY(H,this._parents)},
data:function(Q,I){if(!Q)return xB=Array(this.size()),LI=-1,this.each(function(FM){xB[++LI]=FM}),xB;
var y=I?p:M,H=this._parents,nI=this._groups;typeof Q!=="function"&&(Q=c(Q));for(var Fm=nI.length,Xm=Array(Fm),cw=Array(Fm),jp=Array(Fm),LI=0;LI<Fm;++LI){var r3=H[LI],NS=nI[LI],ub=NS.length,xB=Q.call(r3,r3&&r3.__data__,LI,H),x3=xB.length,cX=cw[LI]=Array(x3),wT=Xm[LI]=Array(x3);ub=jp[LI]=Array(ub);y(r3,NS,cX,wT,ub,xB,I);NS=r3=0;for(var UL;r3<x3;++r3)if(ub=cX[r3]){for(r3>=NS&&(NS=r3+1);!(UL=wT[NS])&&++NS<x3;);ub._next=UL||null}}Xm=new VY(Xm,H);Xm._enter=cw;Xm._exit=jp;return Xm},
exit:function(){return new VY(this._exit||this._groups.map(d),this._parents)},
merge:function(Q){var I=this._groups;Q=Q._groups;for(var y=I.length,H=Math.min(y,Q.length),nI=Array(y),Fm=0;Fm<H;++Fm)for(var Xm=I[Fm],cw=Q[Fm],jp=Xm.length,LI=nI[Fm]=Array(jp),r3,NS=0;NS<jp;++NS)if(r3=Xm[NS]||cw[NS])LI[NS]=r3;for(;Fm<y;++Fm)nI[Fm]=I[Fm];return new VY(nI,this._parents)},
order:function(){for(var Q=this._groups,I=-1,y=Q.length;++I<y;)for(var H=Q[I],nI=H.length-1,Fm=H[nI],Xm;--nI>=0;)if(Xm=H[nI])Fm&&Fm!==Xm.nextSibling&&Fm.parentNode.insertBefore(Xm,Fm),Fm=Xm;return this},
sort:function(Q){function I(NS,ub){return NS&&ub?Q(NS.__data__,ub.__data__):!NS-!ub}
Q||(Q=e);for(var y=this._groups,H=y.length,nI=Array(H),Fm=0;Fm<H;++Fm){for(var Xm=y[Fm],cw=Xm.length,jp=nI[Fm]=Array(cw),LI,r3=0;r3<cw;++r3)if(LI=Xm[r3])jp[r3]=LI;jp.sort(I)}return(new VY(nI,this._parents)).order()},
call:function(){var Q=arguments[0];arguments[0]=this;Q.apply(null,arguments);return this},
nodes:function(){var Q=Array(this.size()),I=-1;this.each(function(){Q[++I]=this});
return Q},
node:function(){for(var Q=this._groups,I=0,y=Q.length;I<y;++I)for(var H=Q[I],nI=0,Fm=H.length;nI<Fm;++nI){var Xm=H[nI];if(Xm)return Xm}return null},
size:function(){var Q=0;this.each(function(){++Q});
return Q},
empty:function(){return!this.node()},
each:function(Q){for(var I=this._groups,y=0,H=I.length;y<H;++y)for(var nI=I[y],Fm=0,Xm=nI.length,cw;Fm<Xm;++Fm)(cw=nI[Fm])&&Q.call(cw,cw.__data__,Fm,nI);return this},
attr:function(Q,I){var y=A(Q);if(arguments.length<2){var H=this.node();return y.local?H.getAttributeNS(y.space,y.local):H.getAttribute(y)}return this.each((I==null?y.local?h:u:typeof I==="function"?y.local?xz:P:y.local?Bw:L)(y,I))},
style:function(Q,I,y){return arguments.length>1?this.each((I==null?Sp:typeof I==="function"?lw:vw)(Q,I,y==null?"":y)):G4(this.node(),Q)},
property:function(Q,I){return arguments.length>1?this.each((I==null?nA:typeof I==="function"?aI:Xs)(Q,I)):this.node()[Q]},
text:function(Q){return arguments.length?this.each(Q==null?LA:(typeof Q==="function"?hK:dj)(Q)):this.node().textContent},
html:function(Q){return arguments.length?this.each(Q==null?Tz:(typeof Q==="function"?ms:S8)(Q)):this.node().innerHTML},
append:function(Q){var I=typeof Q==="function"?Q:E(Q);return this.select(function(){return this.appendChild(I.apply(this,arguments))})},
insert:function(Q,I){var y=typeof Q==="function"?Q:E(Q),H=I==null?pA:typeof I==="function"?I:X(I);return this.select(function(){return this.insertBefore(y.apply(this,arguments),H.apply(this,arguments)||null)})},
remove:function(){return this.each(k3)},
clone:function(Q){return this.select(Q?bw:oe)},
datum:function(Q){return arguments.length?this.property("__data__",Q):this.node().__data__},
on:function(Q,I,y){var H=CL(Q+""),nI=H.length,Fm;if(arguments.length<2){var Xm=this.node().__on;if(Xm)for(var cw=0,jp=Xm.length,LI;cw<jp;++cw){var r3=0;for(LI=Xm[cw];r3<nI;++r3)if((Fm=H[r3]).type===LI.type&&Fm.name===LI.name)return LI.value}}else{Xm=I?Nu:EA;y==null&&(y=!1);for(r3=0;r3<nI;++r3)this.each(Xm(H[r3],I,y));return this}},
dispatch:function(Q,I){return this.each((typeof I==="function"?Y2:RJ)(Q,I))}};
var nVZ=0;e8.prototype=function(){return new e8}.prototype={constructor:e8,
get:function(Q){for(var I=this._;!(I in Q);)if(!(Q=Q.parentNode))return;return Q[I]},
set:function(Q,I){return Q[this._]=I},
remove:function(Q){return this._ in Q&&delete Q[this._]},
toString:function(){return this._}};
var zN=1/.7,Nt$=/^#([0-9a-f]{3})$/,YUT=/^#([0-9a-f]{6})$/,Btu=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),bhA=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),APB=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),FNE=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*\\)$"),
wMi=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),xH$=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*\\)$"),JgA={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};
R1(qZ,F7,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
R1(VK,IW,Ie(qZ,{brighter:function(Q){Q=Q==null?zN:Math.pow(zN,Q);return new VK(this.r*Q,this.g*Q,this.b*Q,this.opacity)},
darker:function(Q){Q=Q==null?.7:Math.pow(.7,Q);return new VK(this.r*Q,this.g*Q,this.b*Q,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"#"+m_(this.r)+m_(this.g)+m_(this.b)},
toString:function(){var Q=this.opacity;Q=isNaN(Q)?1:Math.max(0,Math.min(1,Q));return(Q===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))+(Q===1?")":", "+Q+")")}}));
R1(Jj,Tw,Ie(qZ,{brighter:function(Q){Q=Q==null?zN:Math.pow(zN,Q);return new Jj(this.h,this.s,this.l*Q,this.opacity)},
darker:function(Q){Q=Q==null?.7:Math.pow(.7,Q);return new Jj(this.h,this.s,this.l*Q,this.opacity)},
rgb:function(){var Q=this.h%360+(this.h<0)*360,I=this.l,y=I+(I<.5?I:1-I)*(isNaN(Q)||isNaN(this.s)?0:this.s);I=2*I-y;return new VK(UF(Q>=240?Q-240:Q+120,I,y),UF(Q,I,y),UF(Q<120?Q+240:Q-120,I,y),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 cgs=Math.PI/180,MXs=180/Math.PI,Sj8=4/29,XG=6/29,ICs=3*XG*XG,lVS=XG*XG*XG;R1(z4,function(Q,I,y,H){return arguments.length===1?XP(Q):new z4(Q,I,y,H==null?1:H)},Ie(qZ,{brighter:function(Q){return new z4(this.l+18*(Q==null?1:Q),this.a,this.b,this.opacity)},
darker:function(Q){return new z4(this.l-18*(Q==null?1:Q),this.a,this.b,this.opacity)},
rgb:function(){var Q=(this.l+16)/116,I=isNaN(this.a)?Q:Q+this.a/500,y=isNaN(this.b)?Q:Q-this.b/200;I=.96422*oJ(I);Q=1*oJ(Q);y=.82521*oJ(y);return new VK(lb(3.1338561*I-1.6168667*Q-.4906146*y),lb(-.9787684*I+1.9161415*Q+.033454*y),lb(.0719453*I-.2289914*Q+1.4052427*y),this.opacity)}}));
R1(H8,Fs,Ie(qZ,{brighter:function(Q){return new H8(this.h,this.c,this.l+18*(Q==null?1:Q),this.opacity)},
darker:function(Q){return new H8(this.h,this.c,this.l-18*(Q==null?1:Q),this.opacity)},
rgb:function(){return XP(this).rgb()}}));
var QTs=1.78277*-.29227-.1347134789;R1(zi,DZ,Ie(qZ,{brighter:function(Q){Q=Q==null?zN:Math.pow(zN,Q);return new zi(this.h,this.s,this.l*Q,this.opacity)},
darker:function(Q){Q=Q==null?.7:Math.pow(.7,Q);return new zi(this.h,this.s,this.l*Q,this.opacity)},
rgb:function(){var Q=isNaN(this.h)?0:(this.h+120)*cgs,I=+this.l,y=isNaN(this.s)?0:this.s*I*(1-I),H=Math.cos(Q);Q=Math.sin(Q);return new VK(255*(I+y*(-.14861*H+1.78277*Q)),255*(I+y*(-.29227*H+-.90649*Q)),255*(I+1.97294*H*y),this.opacity)}}));
var G62=function y(I){function H(Fm,Xm){var cw=nI((Fm=IW(Fm)).r,(Xm=IW(Xm)).r),jp=nI(Fm.g,Xm.g),LI=nI(Fm.b,Xm.b),r3=EL(Fm.opacity,Xm.opacity);return function(NS){Fm.r=cw(NS);Fm.g=jp(NS);Fm.b=LI(NS);Fm.opacity=r3(NS);return Fm+""}}
var nI=N3(I);H.gamma=y;return H}(1),AI$=KO(function(I){var y=I.length-1;
return function(H){var nI=H<=0?H=0:H>=1?(H=1,y-1):Math.floor(H*y),Fm=I[nI],Xm=I[nI+1];return KU((H-nI/y)*y,nI>0?I[nI-1]:2*Fm-Xm,Fm,Xm,nI<y-1?I[nI+2]:2*Xm-Fm)}});
KO(function(I){var y=I.length;return function(H){var nI=Math.floor(((H%=1)<0?++H:H)*y);return KU((H-nI/y)*y,I[(nI+y-1)%y],I[nI%y],I[(nI+1)%y],I[(nI+2)%y])}});
var KZ2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,h3P=new RegExp(KZ2.source,"g"),paC=180/Math.PI,d63={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},eJ,m62,z4A,jMm,wWT=OF(function(I){if(I==="none")return d63;eJ||(eJ=document.createElement("DIV"),m62=document.documentElement,z4A=document.defaultView);eJ.style.transform=I;I=z4A.getComputedStyle(m62.appendChild(eJ),null).getPropertyValue("transform");m62.removeChild(eJ);I=I.slice(7,-1).split(",");return Y0(+I[0],+I[1],+I[2],+I[3],
+I[4],+I[5])},"px, ","px)","deg)"),xpS=OF(function(I){if(I==null)return d63;
jMm||(jMm=document.createElementNS("http://www.w3.org/2000/svg","g"));jMm.setAttribute("transform",I);if(!(I=jMm.transform.baseVal.consolidate()))return d63;I=I.matrix;return Y0(I.a,I.b,I.c,I.d,I.e,I.f)},", ",")",")");
Jo(gj);Jo(EL);gq(gj);gq(EL);PG(gj);var zSz=PG(EL),fJ=0,DS=0,Jm=0,RuI,V5,Zvm=0,BZ=0,$qp=0,zH=typeof performance==="object"&&performance.now?performance:Date,vUZ=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(I){setTimeout(I,17)};
u_.prototype=ax.prototype={constructor:u_,restart:function(I,y,H){if(typeof I!=="function")throw new TypeError("ze");H=(H==null?qC():+H)+(y==null?0:+y);this._next||V5===this||(V5?V5._next=this:RuI=this,V5=this);this._call=I;this._time=H;fW()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,fW())}};
var EVC=C("start","end","interrupt"),aV$=[],lKZ=cY.prototype.constructor,DOS=0,DK=cY.prototype;mS.prototype=function(I){return cY().transition(I)}.prototype={constructor:mS,
select:function(I){var y=this._name,H=this._id;typeof I!=="function"&&(I=X(I));for(var nI=this._groups,Fm=nI.length,Xm=Array(Fm),cw=0;cw<Fm;++cw)for(var jp=nI[cw],LI=jp.length,r3=Xm[cw]=Array(LI),NS,ub,xB=0;xB<LI;++xB)(NS=jp[xB])&&(ub=I.call(NS,NS.__data__,xB,jp))&&("__data__"in NS&&(ub.__data__=NS.__data__),r3[xB]=ub,Wpw(r3[xB],y,H,xB,r3,S5(NS,H)));return new mS(Xm,this._parents,y,H)},
filter:function(I){typeof I!=="function"&&(I=mOA(I));for(var y=this._groups,H=y.length,nI=Array(H),Fm=0;Fm<H;++Fm)for(var Xm=y[Fm],cw=Xm.length,jp=nI[Fm]=[],LI,r3=0;r3<cw;++r3)(LI=Xm[r3])&&I.call(LI,LI.__data__,r3,Xm)&&jp.push(LI);return new mS(nI,this._parents,this._name,this._id)},
merge:function(I){if(I._id!==this._id)throw Error();var y=this._groups;I=I._groups;for(var H=y.length,nI=Math.min(H,I.length),Fm=Array(H),Xm=0;Xm<nI;++Xm)for(var cw=y[Xm],jp=I[Xm],LI=cw.length,r3=Fm[Xm]=Array(LI),NS,ub=0;ub<LI;++ub)if(NS=cw[ub]||jp[ub])r3[ub]=NS;for(;Xm<H;++Xm)Fm[Xm]=y[Xm];return new mS(Fm,this._parents,this._name,this._id)},
selection:function(){return new lKZ(this._groups,this._parents)},
transition:function(){for(var I=this._name,y=this._id,H=++DOS,nI=this._groups,Fm=nI.length,Xm=0;Xm<Fm;++Xm)for(var cw=nI[Xm],jp=cw.length,LI,r3=0;r3<jp;++r3)if(LI=cw[r3]){var NS=S5(LI,y);Wpw(LI,I,H,r3,cw,{time:NS.time+NS.delay+NS.duration,delay:0,duration:NS.duration,ease:NS.ease})}return new mS(nI,this._parents,I,H)},
call:DK.call,nodes:DK.nodes,node:DK.node,size:DK.size,empty:DK.empty,each:DK.each,on:function(I,y){var H=this._id;return arguments.length<2?S5(this.node(),H).on.on(I):this.each(sdt(H,I,y))},
attr:function(I,y){var H=A(I),nI=H==="transform"?xpS:sTz;return this.attrTween(I,typeof y==="function"?(H.local?JP$:Vgu)(H,nI,Cr4(this,"attr."+I,y)):y==null?(H.local?mHA:dHT)(H):(H.local?DH7:zZT)(H,nI,y+""))},
attrTween:function(I,y){var H="attr."+I;if(arguments.length<2)return(H=this.tween(H))&&H._value;if(y==null)return this.tween(H,null);if(typeof y!=="function")throw Error();var nI=A(I);return this.tween(H,(nI.local?cPC:IVS)(nI,y))},
style:function(I,y,H){var nI=I==="transform"?wWT:sTz;return y==null?this.styleTween(I,yPT(I,nI)).on("end.style."+I,$H7(I)):this.styleTween(I,typeof y==="function"?RZ6(I,nI,Cr4(this,"style."+I,y)):Zh7(I,nI,y+""),H)},
styleTween:function(I,y,H){var nI="style."+I;if(arguments.length<2)return(nI=this.tween(nI))&&nI._value;if(y==null)return this.tween(nI,null);if(typeof y!=="function")throw Error();return this.tween(nI,oVB(I,y,H==null?"":H))},
text:function(I){return this.tween("text",typeof I==="function"?Ttt(Cr4(this,"text",I)):ih1(I==null?"":I+""))},
remove:function(){return this.on("end.remove",Ghu(this._id))},
tween:function(I,y){var H=this._id;if(arguments.length<2){H=S5(this.node(),H).tween;for(var nI=0,Fm=H.length,Xm;nI<Fm;++nI)if((Xm=H[nI]).name===I)return Xm.value;return null}return this.each((y==null?XMt:fV$)(H,I,y))},
delay:function(I){var y=this._id;return arguments.length?this.each((typeof I==="function"?SU1:Mg$)(y,I)):S5(this.node(),y).delay},
duration:function(I){var y=this._id;return arguments.length?this.each((typeof I==="function"?Qdi:pME)(y,I)):S5(this.node(),y).duration},
ease:function(I){var y=this._id;return arguments.length?this.each(vVB(y,I)):S5(this.node(),y).ease}};
var D6w={time:null,delay:0,duration:250,ease:function(I){return((I*=2)<=1?I*I*I:(I-=2)*I*I+2)/2}};
cY.prototype.transition=function(I){var y;if(I instanceof mS){var H=I._id;I=I._name}else H=++DOS,(y=D6w).time=qC(),I=I==null?null:I+"";for(var nI=this._groups,Fm=nI.length,Xm=0;Xm<Fm;++Xm)for(var cw=nI[Xm],jp=cw.length,LI,r3=0;r3<jp;++r3)if(LI=cw[r3]){var NS=LI,ub=I,xB=H,x3=r3,cX=cw,wT;if(!(wT=y))a:{wT=void 0;for(var UL=H;!(wT=LI.__transition)||!(wT=wT[UL]);)if(!(LI=LI.parentNode)){wT=(D6w.time=qC(),D6w);break a}}Wpw(NS,ub,xB,x3,cX,wT)}return new mS(nI,this._parents,I,H)};
["e","w"].map(ncP);["n","s"].map(ncP);"n e s w nw ne se sw".split(" ").map(ncP);NpP.prototype=function(){return new NpP}.prototype={constructor:NpP,
moveTo:function(I,y){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+y)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(I,y){this._+="L"+(this._x1=+I)+","+(this._y1=+y)},
bezierCurveTo:function(I,y,H,nI,Fm,Xm){this._+="C"+ +I+","+ +y+","+ +H+","+ +nI+","+(this._x1=+Fm)+","+(this._y1=+Xm)},
rect:function(I,y,H,nI){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+y)+"h"+ +H+"v"+ +nI+"h"+-H+"Z"},
toString:function(){return this._}};
o1P.prototype=ygA.prototype={constructor:o1P,has:function(I){return" "+I in this},
get:function(I){return this[" "+I]},
set:function(I,y){this[" "+I]=y;return this},
remove:function(I){I=" "+I;return I in this&&delete this[I]},
clear:function(){for(var I in this)I[0]===" "&&delete this[I]},
keys:function(){var I=[],y;for(y in this)y[0]===" "&&I.push(y.slice(1));return I},
values:function(){var I=[],y;for(y in this)y[0]===" "&&I.push(this[y]);return I},
entries:function(){var I=[],y;for(y in this)y[0]===" "&&I.push({key:y.slice(1),value:this[y]});return I},
size:function(){var I=0,y;for(y in this)y[0]===" "&&++I;return I},
empty:function(){for(var I in this)if(I[0]===" ")return!1;return!0},
each:function(I){for(var y in this)y[0]===" "&&I(this[y],y.slice(1),this)}};
var wl=ygA.prototype;ivX.prototype=function(I,y){var H=new ivX;if(I instanceof ivX)I.each(function(Xm){H.add(Xm)});
else if(I){var nI=-1,Fm=I.length;if(y==null)for(;++nI<Fm;)H.add(I[nI]);else for(;++nI<Fm;)H.add(y(I[nI],nI,I))}return H}.prototype={constructor:ivX,
has:wl.has,add:function(I){this[" "+I]=I;return this},
remove:wl.remove,clear:wl.clear,values:wl.keys,size:wl.size,empty:wl.empty,each:wl.each};var RJI={},Y6z={},tlA=ZCA(",").parse,EJ$=ZCA("\t").parse;oUY(tlA);oUY(EJ$);var wi=function(I,y,H){y=new BpI(y==null?OhZ:y,H==null?LN1:H,NaN,NaN,NaN,NaN);return I==null?y:y.addAll(I)}.prototype=BpI.prototype;
wi.copy=function(){var I=new BpI(this._x,this._y,this._x0,this._y0,this._x1,this._y1),y=this._root,H,nI;if(!y)return I;if(!y.length)return I._root=T9A(y),I;for(H=[{source:y,target:I._root=Array(4)}];y=H.pop();)for(var Fm=0;Fm<4;++Fm)if(nI=y.source[Fm])nI.length?H.push({source:nI,target:y.target[Fm]=Array(4)}):y.target[Fm]=T9A(nI);return I};
wi.add=function(I){var y=+this._x.call(null,I),H=+this._y.call(null,I);return iCx(this.cover(y,H),y,H,I)};
wi.addAll=function(I){var y,H,nI=I.length,Fm,Xm,cw=Array(nI),jp=Array(nI),LI=Infinity,r3=Infinity,NS=-Infinity,ub=-Infinity;for(H=0;H<nI;++H)isNaN(Fm=+this._x.call(null,y=I[H]))||isNaN(Xm=+this._y.call(null,y))||(cw[H]=Fm,jp[H]=Xm,Fm<LI&&(LI=Fm),Fm>NS&&(NS=Fm),Xm<r3&&(r3=Xm),Xm>ub&&(ub=Xm));NS<LI&&(LI=this._x0,NS=this._x1);ub<r3&&(r3=this._y0,ub=this._y1);this.cover(LI,r3).cover(NS,ub);for(H=0;H<nI;++H)iCx(this,cw[H],jp[H],I[H]);return this};
wi.cover=function(I,y){if(isNaN(I=+I)||isNaN(y=+y))return this;var H=this._x0,nI=this._y0,Fm=this._x1,Xm=this._y1;if(isNaN(H))Fm=(H=Math.floor(I))+1,Xm=(nI=Math.floor(y))+1;else if(H>I||I>Fm||nI>y||y>Xm){var cw=Fm-H,jp=this._root,LI;switch(LI=(y<(nI+Xm)/2)<<1|I<(H+Fm)/2){case 0:do{var r3=Array(4);r3[LI]=jp;jp=r3}while(cw*=2,Fm=H+cw,Xm=nI+cw,I>Fm||y>Xm);break;case 1:do r3=Array(4),r3[LI]=jp,jp=r3;while(cw*=2,H=Fm-cw,Xm=nI+cw,H>I||y>Xm);break;case 2:do r3=Array(4),r3[LI]=jp,jp=r3;while(cw*=2,Fm=H+cw,
nI=Xm-cw,I>Fm||nI>y);break;case 3:do r3=Array(4),r3[LI]=jp,jp=r3;while(cw*=2,H=Fm-cw,nI=Xm-cw,H>I||nI>y)}this._root&&this._root.length&&(this._root=jp)}else return this;this._x0=H;this._y0=nI;this._x1=Fm;this._y1=Xm;return this};
wi.data=function(){var I=[];this.visit(function(y){if(!y.length){do I.push(y.data);while(y=y.next)}});
return I};
wi.extent=function(I){return arguments.length?this.cover(+I[0][0],+I[0][1]).cover(+I[1][0],+I[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
wi.find=function(I,y,H){var nI=this._x0,Fm=this._y0,Xm,cw,jp,LI,r3=this._x1,NS=this._y1,ub=[],xB=this._root,x3;xB&&ub.push(new Fi(xB,nI,Fm,r3,NS));H==null?H=Infinity:(nI=I-H,Fm=y-H,r3=I+H,NS=y+H,H*=H);for(;x3=ub.pop();)if(!(!(xB=x3.node)||(Xm=x3.x0)>r3||(cw=x3.y0)>NS||(jp=x3.x1)<nI||(LI=x3.y1)<Fm))if(xB.length){x3=(Xm+jp)/2;var cX=(cw+LI)/2;ub.push(new Fi(xB[3],x3,cX,jp,LI),new Fi(xB[2],Xm,cX,x3,LI),new Fi(xB[1],x3,cw,jp,cX),new Fi(xB[0],Xm,cw,x3,cX));if(xB=(y>=cX)<<1|I>=x3)x3=ub[ub.length-1],ub[ub.length-
1]=ub[ub.length-1-xB],ub[ub.length-1-xB]=x3}else if(x3=I-+this._x.call(null,xB.data),cX=y-+this._y.call(null,xB.data),x3=x3*x3+cX*cX,x3<H){var wT=Math.sqrt(H=x3);nI=I-wT;Fm=y-wT;r3=I+wT;NS=y+wT;wT=xB.data}return wT};
wi.remove=function(I){if(isNaN(LI=+this._x.call(null,I))||isNaN(r3=+this._y.call(null,I)))return this;var y,H=this._root,nI,Fm=this._x0,Xm=this._y0,cw=this._x1,jp=this._y1,LI,r3,NS,ub,xB,x3,cX;if(!H)return this;if(H.length)for(;;){(xB=LI>=(NS=(Fm+cw)/2))?Fm=NS:cw=NS;(x3=r3>=(ub=(Xm+jp)/2))?Xm=ub:jp=ub;if(!(y=H,H=H[cX=x3<<1|xB]))return this;if(!H.length)break;if(y[cX+1&3]||y[cX+2&3]||y[cX+3&3]){var wT=y;var UL=cX}}for(;H.data!==I;)if(!(nI=H,H=H.next))return this;(I=H.next)&&delete H.next;if(nI)return I?
nI.next=I:delete nI.next,this;if(!y)return this._root=I,this;I?y[cX]=I:delete y[cX];(H=y[0]||y[1]||y[2]||y[3])&&H===(y[3]||y[2]||y[1]||y[0])&&!H.length&&(wT?wT[UL]=H:this._root=H);return this};
wi.removeAll=function(I){for(var y=0,H=I.length;y<H;++y)this.remove(I[y]);return this};
wi.root=function(){return this._root};
wi.size=function(){var I=0;this.visit(function(y){if(!y.length){do++I;while(y=y.next)}});
return I};
wi.visit=function(I){var y=[],H,nI=this._root,Fm,Xm,cw,jp,LI;for(nI&&y.push(new Fi(nI,this._x0,this._y0,this._x1,this._y1));H=y.pop();)if(!I(nI=H.node,Xm=H.x0,cw=H.y0,jp=H.x1,LI=H.y1)&&nI.length){H=(Xm+jp)/2;var r3=(cw+LI)/2;(Fm=nI[3])&&y.push(new Fi(Fm,H,r3,jp,LI));(Fm=nI[2])&&y.push(new Fi(Fm,Xm,r3,H,LI));(Fm=nI[1])&&y.push(new Fi(Fm,H,cw,jp,r3));(Fm=nI[0])&&y.push(new Fi(Fm,Xm,cw,H,r3))}};
wi.visitAfter=function(I){var y=[],H=[],nI;for(this._root&&y.push(new Fi(this._root,this._x0,this._y0,this._x1,this._y1));nI=y.pop();){var Fm=nI.node;if(Fm.length){var Xm,cw=nI.x0,jp=nI.y0,LI=nI.x1,r3=nI.y1,NS=(cw+LI)/2,ub=(jp+r3)/2;(Xm=Fm[0])&&y.push(new Fi(Xm,cw,jp,NS,ub));(Xm=Fm[1])&&y.push(new Fi(Xm,NS,jp,LI,ub));(Xm=Fm[2])&&y.push(new Fi(Xm,cw,ub,NS,r3));(Xm=Fm[3])&&y.push(new Fi(Xm,NS,ub,LI,r3))}H.push(nI)}for(;nI=H.pop();)I(nI.node,nI.x0,nI.y0,nI.x1,nI.y1);return this};
wi.x=function(I){return arguments.length?(this._x=I,this):this._x};
wi.y=function(I){return arguments.length?(this._y=I,this):this._y};
var gV6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;bVX.prototype=A0P.prototype;A0P.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 OCC,LtA={"%":function(I,y){return(I*100).toFixed(y)},
b:function(I){return Math.round(I).toString(2)},
c:function(I){return I+""},
d:function(I){return Math.round(I).toString(10)},
e:function(I,y){return I.toExponential(y)},
f:function(I,y){return I.toFixed(y)},
g:function(I,y){return I.toPrecision(y)},
o:function(I){return Math.round(I).toString(8)},
p:function(I,y){return qjs(I*100,y)},
r:qjs,s:function(I,y){var H=TK2(I,y);if(!H)return I+"";var nI=H[0];H=H[1];H=H-(OCC=Math.max(-8,Math.min(8,Math.floor(H/3)))*3)+1;var Fm=nI.length;return H===Fm?nI:H>Fm?nI+Array(H-Fm+1).join("0"):H>0?nI.slice(0,H)+"."+nI.slice(H):"0."+Array(1-H).join("0")+TK2(I,Math.max(0,y+H-1))[0]},
X:function(I){return Math.round(I).toString(16).toUpperCase()},
x:function(I){return Math.round(I).toString(16)}},UxY="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),aK7;
(function(I){return aK7=PY7(I)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Xp.prototype={constructor:Xp,reset:function(){this.s=this.t=0},
add:function(I){jTs(HvX,I,this.t);jTs(this,HvX.s,this.s);this.s?this.t+=HvX.t:this.s=HvX.t},
valueOf:function(){return this.s}};
var HvX=new Xp,I9=Math.PI,oS=I9/2,VMb=I9/4,XWT=I9*2,VQw=I9/180,zR=Math.abs,J0J=Math.atan,hJA=Math.atan2,iX=Math.cos,bO=Math.sin,uE2=Math.sqrt;new Xp;new Xp;new Xp;var c04=new Xp;(function(I,y,H,nI){return function(Fm){function Xm(ww,Wf){I(ww,Wf)&&Fm.point(ww,Wf)}
function cw(ww,Wf){xB.point(ww,Wf)}
function jp(){nn.point=cw;xB.lineStart()}
function LI(){nn.point=Xm;xB.lineEnd()}
function r3(ww,Wf){YQ.push([ww,Wf]);cX.point(ww,Wf)}
function NS(){cX.lineStart();YQ=[]}
function ub(){r3(YQ[0][0],YQ[0][1]);cX.lineEnd();var ww=cX.clean(),Wf=x3.result(),Re=Wf.length,dK;YQ.pop();UL.push(YQ);YQ=null;if(Re)if(ww&1){if(Re=Wf[0],(Wf=Re.length-1)>0){wT||(Fm.polygonStart(),wT=!0);Fm.lineStart();for(ww=0;ww<Wf;++ww)Fm.point((dK=Re[ww])[0],dK[1]);Fm.lineEnd()}}else Re>1&&ww&2&&Wf.push(Wf.pop().concat(Wf.shift())),FM.push(Wf.filter(kST))}
var xB=y(Fm),x3=hZZ(),cX=y(x3),wT=!1,UL,FM,YQ,nn={point:Xm,lineStart:jp,lineEnd:LI,polygonStart:function(){nn.point=r3;nn.lineStart=NS;nn.lineEnd=ub;FM=[];UL=[]},
polygonEnd:function(){nn.point=Xm;nn.lineStart=jp;nn.lineEnd=LI;var ww=FM,Wf=ww.length;var Re=-1;for(var dK=0,I1,Y3;++Re<Wf;)dK+=ww[Re].length;for(I1=Array(dK);--Wf>=0;)for(Y3=ww[Wf],Re=Y3.length;--Re>=0;)I1[--dK]=Y3[Re];FM=I1;ww=UL;Wf=nI[0];dK=nI[1];var L7=bO(dK);Re=[bO(Wf),-iX(Wf),0];Y3=I1=0;c04.reset();L7===1?dK=oS+1E-6:L7===-1&&(dK=-oS-1E-6);L7=0;for(var ES=ww.length;L7<ES;++L7)if(cx=(Yn=ww[L7]).length){var Yn,cx,OL=Yn[cx-1],SO=OL[0],L_=OL[1]/2+VMb,rEm=bO(L_),JNb=iX(L_);for(L_=0;L_<cx;++L_,SO=
IJp,rEm=cNz,JNb=sW,OL=g1X){var g1X=Yn[L_],IJp=g1X[0];sW=g1X[1]/2+VMb;var cNz=bO(sW),sW=iX(sW),Vp=IJp-SO,S6p=Vp>=0?1:-1,MQ2=S6p*Vp,Pec=MQ2>I9;rEm*=cNz;c04.add(hJA(rEm*S6p*bO(MQ2),JNb*sW+rEm*iX(MQ2)));I1+=Pec?Vp+S6p*XWT:Vp;Pec^SO>=Wf^IJp>=Wf&&(OL=rg8(HC2(OL),HC2(g1X)),gUx(OL),SO=rg8(Re,OL),gUx(SO),SO=(Pec^Vp>=0?-1:1)*qL2(SO[2]),dK>SO||dK===SO&&(OL[0]||OL[1]))&&(Y3+=Pec^Vp>=0?1:-1)}}ww=(I1<-1E-6||I1<1E-6&&c04<-1E-6)^Y3&1;FM.length?(wT||(Fm.polygonStart(),wT=!0),WyT(FM,CQ1,ww,H,Fm)):ww&&(wT||(Fm.polygonStart(),
wT=!0),Fm.lineStart(),H(null,null,1,Fm),Fm.lineEnd());wT&&(Fm.polygonEnd(),wT=!1);FM=UL=null},
sphere:function(){Fm.polygonStart();Fm.lineStart();H(null,null,1,Fm);Fm.lineEnd();Fm.polygonEnd()}};
return nn}})(function(){return!0},function(I){var y=NaN,H=NaN,nI=NaN,Fm;
return{lineStart:function(){I.lineStart();Fm=1},
point:function(Xm,cw){var jp=Xm>0?I9:-I9,LI=zR(Xm-y);if(zR(LI-I9)<1E-6)I.point(y,H=(H+cw)/2>0?oS:-oS),I.point(nI,H),I.lineEnd(),I.lineStart(),I.point(jp,H),I.point(Xm,H),Fm=0;else if(nI!==jp&&LI>=I9){zR(y-nI)<1E-6&&(y-=nI*1E-6);zR(Xm-jp)<1E-6&&(Xm-=jp*1E-6);LI=y;var r3=H,NS=Xm,ub,xB,x3=bO(LI-NS);H=zR(x3)>1E-6?J0J((bO(r3)*(xB=iX(cw))*bO(NS)-bO(cw)*(ub=iX(r3))*bO(LI))/(ub*xB*x3)):(r3+cw)/2;I.point(nI,H);I.lineEnd();I.lineStart();I.point(jp,H);Fm=0}I.point(y=Xm,H=cw);nI=jp},
lineEnd:function(){I.lineEnd();y=H=NaN},
clean:function(){return 2-Fm}}},function(I,y,H,nI){I==null?(H*=oS,nI.point(-I9,H),nI.point(0,H),nI.point(I9,H),nI.point(I9,0),nI.point(I9,-H),nI.point(0,-H),nI.point(-I9,-H),nI.point(-I9,0),nI.point(-I9,H)):zR(I[0]-y[0])>1E-6?(I=I[0]<y[0]?I9:-I9,H=H*I/2,nI.point(-I,H),nI.point(0,H),nI.point(I,H)):nI.point(y[0],y[1])},[-I9,
-oS]);new Xp;new Xp;new Xp;new Xp;Fpm.prototype={constructor:Fpm,point:function(I,y){this.stream.point(I,y)},
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()}};
iX(30*VQw);(function(I){return function(y){var H=new Fpm,nI;for(nI in I)H[nI]=I[nI];H.stream=y;return H}})({point:function(I,y){this.stream.point(I*VQw,y*VQw)}});
Ktb(function(I){return uE2(2/(1+I))}).invert=cc(function(I){return 2*qL2(I/2)});
Ktb(function(I){return(I=I>1?0:I<-1?I9:Math.acos(I))&&I/bO(I)}).invert=cc(function(I){return I});
uE2(3);cc(J0J);cc(qL2);cc(function(I){return 2*J0J(I)});
I0.prototype=WbC.prototype={constructor:I0,count:function(){return this.eachAfter(nuA)},
each:function(I){var y,H=[this],nI;do{var Fm=H.reverse();for(H=[];y=Fm.pop();)if(I(y),y=y.children){var Xm=0;for(nI=y.length;Xm<nI;++Xm)H.push(y[Xm])}}while(H.length);return this},
eachAfter:function(I){for(var y,H=[this],nI=[],Fm,Xm;y=H.pop();)if(nI.push(y),y=y.children)for(Fm=0,Xm=y.length;Fm<Xm;++Fm)H.push(y[Fm]);for(;y=nI.pop();)I(y);return this},
eachBefore:function(I){for(var y,H=[this],nI;y=H.pop();)if(I(y),y=y.children)for(nI=y.length-1;nI>=0;--nI)H.push(y[nI]);return this},
sum:function(I){return this.eachAfter(function(y){for(var H=+I(y.data)||0,nI=y.children,Fm=nI&&nI.length;--Fm>=0;)H+=nI[Fm].value;y.value=H})},
sort:function(I){return this.eachBefore(function(y){y.children&&y.children.sort(I)})},
path:function(I){var y=this;var H=y;var nI=I;if(H!==nI){var Fm=H.ancestors(),Xm=nI.ancestors(),cw=null;H=Fm.pop();for(nI=Xm.pop();H===nI;)cw=H,H=Fm.pop(),nI=Xm.pop();H=cw}for(nI=[y];y!==H;)y=y.parent,nI.push(y);for(y=nI.length;I!==H;)nI.splice(y,0,I),I=I.parent;return nI},
ancestors:function(){for(var I=this,y=[I];I=I.parent;)y.push(I);return y},
links:function(){var I=this,y=[];I.each(function(H){H!==I&&y.push({source:H.parent,target:H})});
return y},
copy:function(){return WbC(this).eachBefore(BWT)}};
(function(I,y){this._=I;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=y}).prototype=Object.create(I0.prototype);
var w5m=new Date,x62=new Date,IbA=We(function(){},function(I,y){I.setTime(+I+y)},function(I,y){return y-I});
IbA.every=function(I){I=Math.floor(I);return isFinite(I)&&I>0?I>1?We(function(y){y.setTime(Math.floor(y/I)*I)},function(y,H){y.setTime(+y+H*I)},function(y,H){return(H-y)/I}):IbA:null};
We(function(I){I.setTime(Math.floor(I/1E3)*1E3)},function(I,y){I.setTime(+I+y*1E3)},function(I,y){return(y-I)/1E3},function(I){return I.getUTCSeconds()});
We(function(I){I.setTime(Math.floor(I/6E4)*6E4)},function(I,y){I.setTime(+I+y*6E4)},function(I,y){return(y-I)/6E4},function(I){return I.getMinutes()});
We(function(I){var y=I.getTimezoneOffset()*6E4%36E5;y<0&&(y+=36E5);I.setTime(Math.floor((+I-y)/36E5)*36E5+y)},function(I,y){I.setTime(+I+y*36E5)},function(I,y){return(y-I)/36E5},function(I){return I.getHours()});
var nHb=We(function(I){I.setHours(0,0,0,0)},function(I,y){I.setDate(I.getDate()+y)},function(I,y){return(y-I-(y.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/864E5},function(I){return I.getDate()-1}),BCA=Aa(0),tQK=Aa(1);
Aa(2);Aa(3);var Ecc=Aa(4);Aa(5);Aa(6);We(function(I){I.setDate(1);I.setHours(0,0,0,0)},function(I,y){I.setMonth(I.getMonth()+y)},function(I,y){return y.getMonth()-I.getMonth()+(y.getFullYear()-I.getFullYear())*12},function(I){return I.getMonth()});
var dC=We(function(I){I.setMonth(0,1);I.setHours(0,0,0,0)},function(I,y){I.setFullYear(I.getFullYear()+y)},function(I,y){return y.getFullYear()-I.getFullYear()},function(I){return I.getFullYear()});
dC.every=function(I){return isFinite(I=Math.floor(I))&&I>0?We(function(y){y.setFullYear(Math.floor(y.getFullYear()/I)*I);y.setMonth(0,1);y.setHours(0,0,0,0)},function(y,H){y.setFullYear(y.getFullYear()+H*I)}):null};
We(function(I){I.setUTCSeconds(0,0)},function(I,y){I.setTime(+I+y*6E4)},function(I,y){return(y-I)/6E4},function(I){return I.getUTCMinutes()});
We(function(I){I.setUTCMinutes(0,0,0)},function(I,y){I.setTime(+I+y*36E5)},function(I,y){return(y-I)/36E5},function(I){return I.getUTCHours()});
var CoS=We(function(I){I.setUTCHours(0,0,0,0)},function(I,y){I.setUTCDate(I.getUTCDate()+y)},function(I,y){return(y-I)/864E5},function(I){return I.getUTCDate()-1}),bJT=Fy(0),lJz=Fy(1);
Fy(2);Fy(3);var aJ2=Fy(4);Fy(5);Fy(6);We(function(I){I.setUTCDate(1);I.setUTCHours(0,0,0,0)},function(I,y){I.setUTCMonth(I.getUTCMonth()+y)},function(I,y){return y.getUTCMonth()-I.getUTCMonth()+(y.getUTCFullYear()-I.getUTCFullYear())*12},function(I){return I.getUTCMonth()});
var mx=We(function(I){I.setUTCMonth(0,1);I.setUTCHours(0,0,0,0)},function(I,y){I.setUTCFullYear(I.getUTCFullYear()+y)},function(I,y){return y.getUTCFullYear()-I.getUTCFullYear()},function(I){return I.getUTCFullYear()});
mx.every=function(I){return isFinite(I=Math.floor(I))&&I>0?We(function(y){y.setUTCFullYear(Math.floor(y.getUTCFullYear()/I)*I);y.setUTCMonth(0,1);y.setUTCHours(0,0,0,0)},function(y,H){y.setUTCFullYear(y.getUTCFullYear()+H*I)}):null};
var kBs={"-":"",_:" ",0:"0"},BN=/^\s*\d+/,Y07=/^%/,NC7=/[\\^$*+?|[\]().{}]/g,Kaz;(function(I){Kaz=AG6(I);$j8=Kaz.utcFormat;ZXs=Kaz.utcParse;return Kaz})({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||$j8("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||ZXs("%Y-%m-%dT%H:%M:%S.%LZ");HX("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
HX("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");HX("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");HX("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");HX("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");HX("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");HX("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
HX("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");HX("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");HX("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");HX("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");HX("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var fKu=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(HX);Bv(fKu);var dpT=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(HX);Bv(dpT);var mpT=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(HX);Bv(mpT);var zQi=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(HX);
Bv(zQi);var DpC=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(HX);Bv(DpC);var Vl7=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(HX);Bv(Vl7);var JIC=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(HX);Bv(JIC);var cIT=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(HX);Bv(cIT);var IKB=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(HX);Bv(IKB);var S0S=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(HX);Bv(S0S);var Ml6=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(HX);Bv(Ml6);var QBZ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(HX);Bv(QBZ);var pW$=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(HX);Bv(pW$);var vJ1=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(HX);Bv(vJ1);var eQT=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(HX);Bv(eQT);var sBE=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(HX);Bv(sBE);var GN6=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(HX);Bv(GN6);var yIZ=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(HX);Bv(yIZ);var $pE=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(HX);Bv($pE);var ZJu=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(HX);Bv(ZJu);var RQ7=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(HX);Bv(RQ7);var oJ7=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(HX);Bv(oJ7);var iJ1=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(HX);Bv(iJ1);var TCZ=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(HX);Bv(TCZ);var q0C=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(HX);Bv(q0C);var uGC=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(HX);Bv(uGC);var UpY=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(HX);Bv(UpY);zSz(DZ(300,.5,0),DZ(-240,.5,1));zSz(DZ(-100,.75,.35),DZ(80,1.5,.8));zSz(DZ(260,.75,.35),DZ(80,1.5,.8));DZ();IW();Law(HX("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Law(HX("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Law(HX("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Law(HX("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
tMs.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(I,y){I=+I;y=+y;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,y):this._context.moveTo(I,y);break;case 1:this._point=2;default:this._context.lineTo(I,y)}}};
(function(I){function y(H){return new EHs(I(H))}
y._curve=I;return y})(function(I){return new tMs(I)});
EHs.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(I,y){this._curve.point(y*Math.sin(I),y*-Math.cos(I))}};
fJp.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:X5m(this,this._t0,Xbs(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(I,y){var H=NaN;I=+I;y=+y;if(I!==this._x1||y!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,y):this._context.moveTo(I,y);break;case 1:this._point=2;break;case 2:this._point=3;X5m(this,Xbs(this,H=abs(this,I,y)),H);break;default:X5m(this,this._t0,H=abs(this,I,y))}this._x0=this._x1;this._x1=I;this._y0=this._y1;this._y1=y;this._t0=H}}};
(function(I){this._context=new fbA(I)}.prototype=Object.create(fJp.prototype)).point=function(I,y){fJp.prototype.point.call(this,y,I)};
fbA.prototype={moveTo:function(I,y){this._context.moveTo(y,I)},
closePath:function(){this._context.closePath()},
lineTo:function(I,y){this._context.lineTo(y,I)},
bezierCurveTo:function(I,y,H,nI,Fm,Xm){this._context.bezierCurveTo(y,I,nI,H,Xm,Fm)}};
pD.prototype={constructor:pD,scale:function(I){return I===1?this:new pD(this.k*I,this.x,this.y)},
translate:function(I,y){return I===0&y===0?this:new pD(this.k,this.x+this.k*I,this.y+this.k*y)},
apply:function(I){return[I[0]*this.k+this.x,I[1]*this.k+this.y]},
invert:function(I){return[(I[0]-this.x)/this.k,(I[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new pD(1,0,0);tgm=F7;RS.svg=RS.svg;RS.xhtml=RS.xhtml;RS.xlink=RS.xlink;RS.xml=RS.xml;RS.xmlns=RS.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 Rbb="hammer_"+(Math.random()*1E6|0),ojA=function(){var W=document||document;if(!W[Rbb]){var k=function(){(function(C,n,N,B){function A(z4,ep,oJ){return setTimeout(d(z4,oJ),ep)}
function w(z4,ep,oJ){return Array.isArray(z4)?(x(z4,oJ[ep],oJ),!0):!1}
function x(z4,ep,oJ){var lb;if(z4)if(z4.forEach)z4.forEach(ep,oJ);else if(z4.length!==B){var n7=0;for(lb=z4.length;n7<lb;n7++)ep.call(oJ,z4[n7],n7,z4)}else for(n7 in z4)z4.hasOwnProperty(n7)&&ep.call(oJ,z4[n7],n7,z4)}
function E(z4,ep,oJ){for(var lb=Object.keys(ep),n7=0,CA=lb.length;n7<CA;n7++)if(!oJ||oJ&&z4[lb[n7]]===B)z4[lb[n7]]=ep[lb[n7]];return z4}
function a(z4,ep){return E(z4,ep,!0)}
function X(z4,ep,oJ){ep=ep.prototype;var lb=z4.prototype=Object.create(ep);lb.constructor=z4;lb._super=ep;oJ&&E(lb,oJ)}
function d(z4,ep){return function(){return z4.apply(ep,arguments)}}
function V(z4,ep){return typeof z4=="function"?z4.apply(ep?ep[0]||B:B,ep):z4}
function c(z4,ep,oJ){x(p(ep),function(lb){z4.addEventListener(lb,oJ,!1)})}
function M(z4,ep,oJ){x(p(ep),function(lb){z4.removeEventListener(lb,oJ,!1)})}
function p(z4){return z4.trim().split(/\s+/g)}
function e(z4,ep,oJ){if(z4.indexOf&&!oJ)return z4.indexOf(ep);for(var lb=0,n7=z4.length;lb<n7;lb++)if(oJ&&z4[lb][oJ]==ep||!oJ&&z4[lb]===ep)return lb;return-1}
function u(z4,ep,oJ){for(var lb=[],n7=[],CA=0,Fs=z4.length;CA<Fs;CA++){var H8=ep?z4[CA][ep]:z4[CA];e(n7,H8)<0&&lb.push(z4[CA]);n7[CA]=H8}oJ&&(lb=ep?lb.sort(function(DZ,zi){return DZ[ep]>zi[ep]}):lb.sort());
return lb}
function h(z4,ep){for(var oJ,lb=ep[0].toUpperCase()+ep.slice(1),n7=0,CA=Y2.length;n7<CA;n7++)if(oJ=(oJ=Y2[n7])?oJ+lb:ep,oJ in z4)return oJ;return B}
function L(z4,ep){var oJ=this;this.manager=z4;this.callback=ep;this.element=z4.element;this.target=z4.options.inputTarget;this.domHandler=function(lb){V(z4.options.enable,[z4])&&oJ.handler(lb)};
this.evEl&&c(this.element,this.evEl,this.domHandler);this.evTarget&&c(this.target,this.evTarget,this.domHandler);this.evWin&&c(C,this.evWin,this.domHandler)}
function Bw(z4){var ep;e3?ep=Xs:Uk?ep=aI:F7?ep=LA:ep=nA;return new ep(z4,P)}
function P(z4,ep,oJ){var lb=oJ.pointers.length,n7=oJ.changedPointers.length,CA=ep&1&&lb-n7===0;oJ.isFirst=!!CA;oJ.isFinal=!!(ep&12&&lb-n7===0);CA&&(z4.session={});oJ.eventType=ep;ep=z4.session;lb=oJ.pointers;n7=lb.length;ep.firstInput||(ep.firstInput=xz(oJ));n7>1&&!ep.firstMultiple?ep.firstMultiple=xz(oJ):n7===1&&(ep.firstMultiple=!1);CA=ep.firstInput;var Fs=(n7=ep.firstMultiple)?n7.center:CA.center,H8=oJ.center=Sp(lb);oJ.timeStamp=R1();oJ.deltaTime=oJ.timeStamp-CA.timeStamp;oJ.angle=G4(Fs,H8);oJ.distance=
lw(Fs,H8);CA=oJ.center;Fs=ep.offsetDelta||{};H8=ep.prevDelta||{};var DZ=ep.prevInput||{};if(oJ.eventType===1||DZ.eventType===4)H8=ep.prevDelta={x:DZ.deltaX||0,y:DZ.deltaY||0},Fs=ep.offsetDelta={x:CA.x,y:CA.y};oJ.deltaX=H8.x+(CA.x-Fs.x);oJ.deltaY=H8.y+(CA.y-Fs.y);oJ.offsetDirection=vw(oJ.deltaX,oJ.deltaY);n7?(CA=n7.pointers,CA=lw(lb[0],lb[1],IW)/lw(CA[0],CA[1],IW)):CA=1;oJ.scale=CA;n7?(n7=n7.pointers,lb=G4(lb[1],lb[0],IW)-G4(n7[1],n7[0],IW)):lb=0;oJ.rotation=lb;Fs=ep.lastInterval||oJ;lb=oJ.timeStamp-
Fs.timeStamp;oJ.eventType!=8&&(lb>25||Fs.velocity===B)?(CA=Fs.deltaX-oJ.deltaX,Fs=Fs.deltaY-oJ.deltaY,H8=CA/lb||0,DZ=Fs/lb||0,lb=H8,n7=DZ,H8=e8(H8)>e8(DZ)?H8:DZ,CA=vw(CA,Fs),ep.lastInterval=oJ):(H8=Fs.velocity,lb=Fs.velocityX,n7=Fs.velocityY,CA=Fs.direction);oJ.velocity=H8;oJ.velocityX=lb;oJ.velocityY=n7;oJ.direction=CA;ep=z4.element;a:{for(lb=oJ.srcEvent.target;lb;){if(lb==ep){lb=!0;break a}lb=lb.parentNode}lb=!1}lb&&(ep=oJ.srcEvent.target);oJ.target=ep;z4.emit("hammer.input",oJ);z4.recognize(oJ);
z4.session.prevInput=oJ}
function xz(z4){for(var ep=[],oJ=0;oJ<z4.pointers.length;oJ++)ep[oJ]={clientX:cY(z4.pointers[oJ].clientX),clientY:cY(z4.pointers[oJ].clientY)};return{timeStamp:R1(),pointers:ep,center:Sp(ep),deltaX:z4.deltaX,deltaY:z4.deltaY}}
function Sp(z4){var ep=z4.length;if(ep===1)return{x:cY(z4[0].clientX),y:cY(z4[0].clientY)};for(var oJ=0,lb=0,n7=0;n7<ep;n7++)oJ+=z4[n7].clientX,lb+=z4[n7].clientY;return{x:cY(oJ/ep),y:cY(lb/ep)}}
function vw(z4,ep){return z4===ep?1:e8(z4)>=e8(ep)?z4>0?2:4:ep>0?8:16}
function lw(z4,ep,oJ){oJ||(oJ=IO);var lb=ep[oJ[0]]-z4[oJ[0]];z4=ep[oJ[1]]-z4[oJ[1]];return Math.sqrt(lb*lb+z4*z4)}
function G4(z4,ep,oJ){oJ||(oJ=IO);return Math.atan2(ep[oJ[1]]-z4[oJ[1]],ep[oJ[0]]-z4[oJ[0]])*180/Math.PI}
function nA(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;L.apply(this,arguments)}
function Xs(){this.evEl=Y6;this.evWin=Tw;L.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function aI(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};L.apply(this,arguments)}
function LA(){L.apply(this,arguments);var z4=d(this.handler,this);this.touch=new aI(this.manager,z4);this.mouse=new nA(this.manager,z4)}
function dj(z4,ep){this.manager=z4;this.set(ep)}
function hK(z4){if(z4.indexOf("none")>-1)return"none";var ep=z4.indexOf("pan-x")>-1,oJ=z4.indexOf("pan-y")>-1;return ep&&oJ?"pan-x pan-y":ep||oJ?ep?"pan-x":"pan-y":z4.indexOf("manipulation")>-1?"manipulation":"auto"}
function Tz(z4){this.id=Ie++;this.manager=null;this.options=a(z4||{},this.defaults);z4=this.options.enable;this.options.enable=z4===B?!0:z4;this.state=1;this.simultaneous={};this.requireFail=[]}
function S8(z4){return z4==16?"down":z4==8?"up":z4==2?"left":z4==4?"right":""}
function ms(z4,ep){return(ep=ep.manager)?ep.get(z4):z4}
function pA(){Tz.apply(this,arguments)}
function k3(){pA.apply(this,arguments);this.pY=this.pX=null}
function oe(){pA.apply(this,arguments)}
function bw(){Tz.apply(this,arguments);this._input=this._timer=null}
function C7(){pA.apply(this,arguments)}
function j8(){pA.apply(this,arguments)}
function CL(){Tz.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function EA(z4,ep){ep=ep||{};var oJ=ep.recognizers;ep.recognizers=oJ===B?EA.defaults.preset:oJ;return new Nu(z4,ep)}
function Nu(z4,ep){ep=ep||{};this.options=a(ep,EA.defaults);this.options.inputTarget=this.options.inputTarget||z4;this.handlers={};this.session={};this.recognizers=[];this.element=z4;this.input=Bw(this);this.touchAction=new dj(this,this.options.touchAction);AS(this,!0);x(ep.recognizers,function(oJ){var lb=this.add(new oJ[0](oJ[1]));oJ[2]&&lb.recognizeWith(oJ[2]);oJ[3]&&lb.requireFailure(oJ[2])},this)}
function AS(z4,ep){var oJ=z4.element;x(z4.options.cssProps,function(lb,n7){oJ.style[h(oJ.style,n7)]=ep?lb:""})}
function RJ(z4,ep){var oJ=n.createEvent("Event");oJ.initEvent(z4,!0,!0);oJ.gesture=ep;ep.target.dispatchEvent(oJ)}
var Y2=" webkit moz MS ms o".split(" "),VY=n.createElement("div"),cY=Math.round,e8=Math.abs,R1=Date.now,Ie=1,qZ=/mobile|tablet|ip(ad|hone|od)|android/i,F7="ontouchstart"in C,e3=h(C,"PointerEvent")!==B,Uk=F7&&qZ.test(navigator.userAgent),IO=["x","y"],IW=["clientX","clientY"];L.prototype={handler:function(){},
destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler);this.evTarget&&M(this.target,this.evTarget,this.domHandler);this.evWin&&M(C,this.evWin,this.domHandler)}};
var VK={mousedown:1,mousemove:2,mouseup:4};X(nA,L,{handler:function(z4){var ep=VK[z4.type];ep&1&&z4.button===0&&(this.pressed=!0);ep&2&&z4.which!==1&&(ep=4);this.pressed&&this.allow&&(ep&4&&(this.pressed=!1),this.callback(this.manager,ep,{pointers:[z4],changedPointers:[z4],pointerType:"mouse",srcEvent:z4}))}});
var m_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Pl={2:"touch",3:"pen",4:"mouse",5:"kinect"},Y6="pointerdown",Tw="pointermove pointerup pointercancel";C.MSPointerEvent&&(Y6="MSPointerDown",Tw="MSPointerMove MSPointerUp MSPointerCancel");X(Xs,L,{handler:function(z4){var ep=this.store,oJ=!1,lb=z4.type.toLowerCase().replace("ms","");lb=m_[lb];var n7=Pl[z4.pointerType]||z4.pointerType;lb&1&&(z4.button===0||n7=="touch")?ep.push(z4):lb&12&&(oJ=!0);var CA=e(ep,z4.pointerId,"pointerId");
CA<0||(ep[CA]=z4,this.callback(this.manager,lb,{pointers:ep,changedPointers:[z4],pointerType:n7,srcEvent:z4}),oJ&&ep.splice(CA,1))}});
var Jj={touchstart:1,touchmove:2,touchend:4,touchcancel:8};X(aI,L,{handler:function(z4){var ep=Jj[z4.type];var oJ=Array.prototype.slice.call(z4.touches,0);var lb=this.targetIds;if(ep&3&&oJ.length===1)lb[oJ[0].identifier]=!0,lb=[oJ,oJ];else{var n7,CA=Array.prototype.slice.call(z4.targetTouches,0),Fs=Array.prototype.slice.call(z4.changedTouches,0),H8=[];if(ep===1)for(oJ=0,n7=CA.length;oJ<n7;oJ++)lb[CA[oJ].identifier]=!0;oJ=0;for(n7=Fs.length;oJ<n7;oJ++)lb[Fs[oJ].identifier]&&H8.push(Fs[oJ]),ep&12&&
delete lb[Fs[oJ].identifier];lb=H8.length?[u(CA.concat(H8),"identifier",!0),H8]:void 0}lb&&this.callback(this.manager,ep,{pointers:lb[0],changedPointers:lb[1],pointerType:"touch",srcEvent:z4})}});
X(LA,L,{handler:function(z4,ep,oJ){var lb=oJ.pointerType=="mouse";if(oJ.pointerType=="touch")this.mouse.allow=!1;else if(lb&&!this.mouse.allow)return;ep&12&&(this.mouse.allow=!0);this.callback(z4,ep,oJ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var UF=h(VY.style,"touchAction"),XP=UF!==B;dj.prototype={set:function(z4){z4=="compute"&&(z4=this.compute());XP&&(this.manager.element.style[UF]=z4);this.actions=z4.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var z4=[];x(this.manager.recognizers,function(ep){V(ep.options.enable,[ep])&&(z4=z4.concat(ep.getTouchAction()))});
return hK(z4.join(" "))},
preventDefaults:function(z4){if(!XP){var ep=z4.srcEvent;z4=z4.offsetDirection;if(this.manager.session.prevented)ep.preventDefault();else{var oJ=this.actions,lb=oJ.indexOf("none")>-1,n7=oJ.indexOf("pan-y")>-1;oJ=oJ.indexOf("pan-x")>-1;if(lb||n7&&oJ||n7&&z4&6||oJ&&z4&24)return this.preventSrc(ep)}}},
preventSrc:function(z4){this.manager.session.prevented=!0;z4.preventDefault()}};
Tz.prototype={defaults:{},set:function(z4){E(this.options,z4);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(z4){if(w(z4,"recognizeWith",this))return this;var ep=this.simultaneous;z4=ms(z4,this);ep[z4.id]||(ep[z4.id]=z4,z4.recognizeWith(this));return this},
dropRecognizeWith:function(z4){if(w(z4,"dropRecognizeWith",this))return this;z4=ms(z4,this);delete this.simultaneous[z4.id];return this},
requireFailure:function(z4){if(w(z4,"requireFailure",this))return this;var ep=this.requireFail;z4=ms(z4,this);e(ep,z4)===-1&&(ep.push(z4),z4.requireFailure(this));return this},
dropRequireFailure:function(z4){if(w(z4,"dropRequireFailure",this))return this;z4=ms(z4,this);z4=e(this.requireFail,z4);z4>-1&&this.requireFail.splice(z4,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(z4){return!!this.simultaneous[z4.id]},
emit:function(z4){function ep(n7){oJ.manager.emit(oJ.options.event+(n7?lb&16?"cancel":lb&8?"end":lb&4?"move":lb&2?"start":"":""),z4)}
var oJ=this,lb=this.state;lb<8&&ep(!0);ep();lb>=8&&ep(!0)},
tryEmit:function(z4){if(this.canEmit())return this.emit(z4);this.state=32},
canEmit:function(){for(var z4=0;z4<this.requireFail.length;z4++)if(!(this.requireFail[z4].state&33))return!1;return!0},
recognize:function(z4){z4=E({},z4);V(this.options.enable,[this,z4])?(this.state&56&&(this.state=1),this.state=this.process(z4),this.state&30&&this.tryEmit(z4)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
X(pA,Tz,{defaults:{pointers:1},attrTest:function(z4){var ep=this.options.pointers;return ep===0||z4.pointers.length===ep},
process:function(z4){var ep=this.state,oJ=z4.eventType,lb=ep&6;z4=this.attrTest(z4);return lb&&(oJ&8||!z4)?ep|16:lb||z4?oJ&4?ep|8:ep&2?ep|4:2:32}});
X(k3,pA,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var z4=this.options.direction;if(z4===30)return["none"];var ep=[];z4&6&&ep.push("pan-y");z4&24&&ep.push("pan-x");return ep},
directionTest:function(z4){var ep=this.options,oJ=!0,lb=z4.distance,n7=z4.direction,CA=z4.deltaX,Fs=z4.deltaY;n7&ep.direction||(ep.direction&6?(n7=CA===0?1:CA<0?2:4,oJ=CA!=this.pX,lb=Math.abs(z4.deltaX)):(n7=Fs===0?1:Fs<0?8:16,oJ=Fs!=this.pY,lb=Math.abs(z4.deltaY)));z4.direction=n7;return oJ&&lb>ep.threshold&&n7&ep.direction},
attrTest:function(z4){return pA.prototype.attrTest.call(this,z4)&&(this.state&2||!(this.state&2)&&this.directionTest(z4))},
emit:function(z4){this.pX=z4.deltaX;this.pY=z4.deltaY;var ep=S8(z4.direction);ep&&this.manager.emit(this.options.event+ep,z4);this._super.emit.call(this,z4)}});
X(oe,pA,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(z4){return this._super.attrTest.call(this,z4)&&(Math.abs(z4.scale-1)>this.options.threshold||this.state&2)},
emit:function(z4){this._super.emit.call(this,z4);z4.scale!==1&&this.manager.emit(this.options.event+(z4.scale<1?"in":"out"),z4)}});
X(bw,Tz,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(z4){var ep=this.options,oJ=z4.pointers.length===ep.pointers,lb=z4.distance<ep.threshold,n7=z4.deltaTime>ep.time;this._input=z4;if(!lb||!oJ||z4.eventType&12&&!n7)this.reset();else if(z4.eventType&1)this.reset(),this._timer=A(function(){this.state=8;this.tryEmit()},ep.time,this);
else if(z4.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(z4){this.state===8&&(z4&&z4.eventType&4?this.manager.emit(this.options.event+"up",z4):(this._input.timeStamp=R1(),this.manager.emit(this.options.event,this._input)))}});
X(C7,pA,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(z4){return this._super.attrTest.call(this,z4)&&(Math.abs(z4.rotation)>this.options.threshold||this.state&2)}});
X(j8,pA,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return k3.prototype.getTouchAction.call(this)},
attrTest:function(z4){var ep=this.options.direction;if(ep&30)var oJ=z4.velocity;else ep&6?oJ=z4.velocityX:ep&24&&(oJ=z4.velocityY);return this._super.attrTest.call(this,z4)&&ep&z4.direction&&e8(oJ)>this.options.velocity&&z4.eventType&4},
emit:function(z4){var ep=S8(z4.direction);ep&&this.manager.emit(this.options.event+ep,z4);this.manager.emit(this.options.event,z4)}});
X(CL,Tz,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(z4){var ep=this.options,oJ=z4.pointers.length===ep.pointers,lb=z4.distance<ep.threshold,n7=z4.deltaTime<ep.time;this.reset();if(z4.eventType&1&&this.count===0)return this.failTimeout();if(lb&&n7&&oJ){if(z4.eventType!=4)return this.failTimeout();oJ=this.pTime?z4.timeStamp-this.pTime<ep.interval:!0;lb=!this.pCenter||lw(this.pCenter,z4.center)<ep.posThreshold;this.pTime=z4.timeStamp;this.pCenter=z4.center;lb&&oJ?this.count+=1:this.count=1;this._input=z4;if(this.count%ep.taps===0)return this.hasRequireFailures()?
(this._timer=A(function(){this.state=8;this.tryEmit()},ep.interval,this),2):8}return 32},
failTimeout:function(){this._timer=A(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))}});
EA.VERSION="2.0.2";EA.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[C7,{enable:!1}],[oe,{enable:!1},["rotate"]],[j8,{direction:6}],[k3,{direction:6},["swipe"]],[CL],[CL,{event:"doubletap",taps:2},["tap"]],[bw]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Nu.prototype={set:function(z4){E(this.options,z4);return this},
stop:function(z4){this.session.stopped=z4?2:1},
recognize:function(z4){var ep=this.session;if(!ep.stopped){this.touchAction.preventDefaults(z4);var oJ=this.recognizers,lb=ep.curRecognizer;if(!lb||lb&&lb.state&8)lb=ep.curRecognizer=null;for(var n7=0,CA=oJ.length;n7<CA;n7++){var Fs=oJ[n7];ep.stopped===2||lb&&Fs!=lb&&!Fs.canRecognizeWith(lb)?Fs.reset():Fs.recognize(z4);!lb&&Fs.state&14&&(lb=ep.curRecognizer=Fs)}}},
get:function(z4){if(z4 instanceof Tz)return z4;for(var ep=this.recognizers,oJ=0;oJ<ep.length;oJ++)if(ep[oJ].options.event==z4)return ep[oJ];return null},
add:function(z4){if(w(z4,"add",this))return this;var ep=this.get(z4.options.event);ep&&this.remove(ep);this.recognizers.push(z4);z4.manager=this;this.touchAction.update();return z4},
remove:function(z4){if(w(z4,"remove",this))return this;var ep=this.recognizers;z4=this.get(z4);ep.splice(e(ep,z4),1);this.touchAction.update();return this},
on:function(z4,ep){var oJ=this.handlers;x(p(z4),function(lb){oJ[lb]=oJ[lb]||[];oJ[lb].push(ep)});
return this},
off:function(z4,ep){var oJ=this.handlers;x(p(z4),function(lb){ep?oJ[lb].splice(e(oJ[lb],ep),1):delete oJ[lb]});
return this},
emit:function(z4,ep){this.options.domEvents&&RJ(z4,ep);var oJ=this.handlers[z4]&&this.handlers[z4].slice();if(oJ&&oJ.length){ep.type=z4;ep.preventDefault=function(){ep.srcEvent.preventDefault()};
z4=0;for(var lb=oJ.length;z4<lb;z4++)oJ[z4](ep)}},
destroy:function(){this.element&&AS(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
E(EA,{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:Nu,Input:L,TouchAction:dj,Recognizer:Tz,AttrRecognizer:pA,Tap:CL,Pan:k3,Swipe:j8,Pinch:oe,Rotate:C7,Press:bw,on:c,off:M,each:x,merge:a,extend:E,inherit:X,bindFn:d,prefixed:h});
C[N]=EA})(window,document,"Hammer");
return window.Hammer}.call({});
k.DOCUMENT=W;W[Rbb]=k}return W[Rbb]};/*

 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 iXs=function(W,k){if(W.length!==k.length)return!1;for(var C=0;C<W.length;++C)if(W[C]!==k[C])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var T7z=_.b(["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"]),qxs=T7z.next();!qxs.done;qxs=T7z.next()){var uo8=qxs.value,UjA=document.createElement("link");UjA.rel="stylesheet";UjA.href=uo8;document.head.appendChild(UjA)};var LGX,H0K,gom,uHc,jHK,UJX,T23,qyP;LGX={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};H0K={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:"*"};gom={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};uHc=/[a-z0-9*]/;jHK=/U\+/;UJX=/^arrow/;T23=/^space(bar)?/;qyP=/^escape$/;_.wS={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(W,k){this._imperativeKeyBindings[W]=k;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(W,k){k=KGI(k);for(var C=0;C<k.length;++C)if(ruX(k[C],W))return!0;return!1},
_collectKeyBindings:function(){var W=this.behaviors.map(function(k){return k.keyBindings});
W.indexOf(this.keyBindings)===-1&&W.push(this.keyBindings);return W},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(C){for(var n in C)this._addKeyBinding(n,C[n])},this);
for(var W in this._imperativeKeyBindings)this._addKeyBinding(W,this._imperativeKeyBindings[W]);for(var k in this._keyBindings)this._keyBindings[k].sort(function(C,n){C=C[0].hasModifiers;return C===n[0].hasModifiers?0:C?-1:1})},
_addKeyBinding:function(W,k){KGI(W).forEach(function(C){this._keyBindings[C.event]=this._keyBindings[C.event]||[];this._keyBindings[C.event].push([C,k])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(W){var k=this._onKeyBindingEvent.bind(this,this._keyBindings[W]);this._boundKeyHandlers.push([this.keyEventTarget,W,k]);this.keyEventTarget.addEventListener(W,k)},this)},
_unlistenKeyEventListeners:function(){for(var W,k,C;this._boundKeyHandlers.length;)W=this._boundKeyHandlers.pop(),k=W[0],C=W[1],W=W[2],k.removeEventListener(C,W)},
_onKeyBindingEvent:function(W,k){this.stopKeyboardEventPropagation&&k.stopPropagation();if(!k.defaultPrevented)for(var C=0;C<W.length;C++){var n=W[C][0],N=W[C][1];if(ruX(n,k)&&(this._triggerKeyHandler(n,N,k),k.defaultPrevented))break}},
_triggerKeyHandler:function(W,k,C){var n=Object.create(W);n.keyboardEvent=C;W=new CustomEvent(W.event,{detail:n,cancelable:!0});this[k].call(this,W);W.defaultPrevented&&C.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.Av({is:"iron-a11y-keys",_template:null,behaviors:[_.wS],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(W){this.keyEventTarget=W},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(W){this.fire("keys-pressed",W.detail,{})}});_.xq={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(W){this._setFocused(W.type==="focus")},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false");this.style.pointerEvents=W?"none":"";W?(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 lF={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(W){this._detectKeyboardFocus(W);W||this._setPressed(!1)},
_detectKeyboardFocus:function(W){this._setReceivedFocusFromKeyboard(!this.pointerDown&&W)},
_userActivate:function(W){this.active!==W&&(this.active=W,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(W){W=W.detail.keyboardEvent;var k=_.Ek(W).localTarget;this.isLightDescendant(k)||(W.preventDefault(),W.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(W){W=_.Ek(W.detail.keyboardEvent).localTarget;this.isLightDescendant(W)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(W,k){k&&k!=W&&this.hasAttribute(k)&&this.removeAttribute(k)},
_activeChanged:function(W){this.toggles?this.setAttribute(this.ariaActiveAttribute,W?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},OX2=[_.wS,
lF];_.tl={IronButtonState:OX2,IronButtonStateImpl:lF};_.E7={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.av=function(W){_.av[" "](W);this.type=W&&W.type||"default";this.key=W&&W.key;W&&"value"in W&&(this.value=W.value)};
_.av.prototype.byKey=function(W){this.key=W;return this.value};
_.oq.Object.defineProperties(_.av.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W=this.type,k=this.key;if(W&&k)return XF[W]&&XF[W][k]},
set:function(W){var k=this.type,C=this.key;k&&C&&(k=XF[k]=XF[k]||{},W==null?delete k[C]:k[C]=W)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var W=XF[this.type];return W?Object.keys(W).map(function(k){return XF[this.type][k]},this):[]}}});
_.av[" "]=function(){};
var XF={};_.Av({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(W,k,C){W=new _.av({type:W,key:k});C!==void 0&&C!==W.value?W.value=C:this.value!==W.value&&(this.value=W.value);return W},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(W){W&&(this.value=this)},
byKey:function(W){return(new _.av({type:this.type,key:W})).value}});var LkI;LkI=null;_.fT={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){LkI=new _.av({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return LkI&&LkI.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(W){this.invalid=W===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(W);return!this.invalid},
_getValidity:function(W){return this.hasValidator()?this._validator.validate(W):!0}};var jS8={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"}},HX2=[_.E7,
_.fT,jS8];_.Av({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 _.av({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(W){return this.name+":"+W},this)},
applyIcon:function(W,k){this.removeIcon(W);if(k=this._cloneIcon(k,this.rtlMirroring&&this._targetIsRTL(W))){var C=_.Ek(W.root||W);C.insertBefore(k,C.childNodes[0]);return W._svgIcon=k}return null},
removeIcon:function(W){W._svgIcon&&(_.Ek(W.root||W).removeChild(W._svgIcon),W._svgIcon=null)},
_targetIsRTL:function(W){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(W&&W.nodeType!==Node.ELEMENT_NODE&&(W=W.host),this.__targetIsRTL=W&&window.getComputedStyle(W).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 W=Object.create(null);_.Ek(this).querySelectorAll("[id]").forEach(function(k){W[k.id]=k});
return W},
_cloneIcon:function(W,k){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[W],this.size,k)},
_prepareSvgClone:function(W,k,C){if(W){W=W.cloneNode(!0);var n=document.createElementNS("http://www.w3.org/2000/svg","svg");k=W.getAttribute("viewBox")||"0 0 "+k+" "+k;var N="pointer-events: none; display: block; width: 100%; height: 100%;";C&&W.hasAttribute("mirror-in-rtl")&&(N+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");n.setAttribute("viewBox",k);n.setAttribute("preserveAspectRatio","xMidYMid meet");n.setAttribute("focusable","false");n.style&&(n.style.cssText=
N);n.appendChild(W).removeAttribute("id");return n}return null}});var ryI=function(W){this.multi=!1;this.selection=[];this.selectCallback=W};
_.Y=ryI.prototype;_.Y.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.Y.clear=function(W){this.selection.slice().forEach(function(k){(!W||W.indexOf(k)<0)&&this.setItemSelected(k,!1)},this)};
_.Y.isSelected=function(W){return this.selection.indexOf(W)>=0};
_.Y.setItemSelected=function(W,k){if(W!=null&&k!==this.isSelected(W)){if(k)this.selection.push(W);else{var C=this.selection.indexOf(W);C>=0&&this.selection.splice(C,1)}this.selectCallback&&this.selectCallback(W,k)}};
_.Y.select=function(W){this.multi?this.toggle(W):this.get()!==W&&(this.setItemSelected(this.get(),!1),this.setItemSelected(W,!0))};
_.Y.toggle=function(W){this.setItemSelected(W,!this.isSelected(W))};_.Jv={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 ryI(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Ek(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(W){return this.items?this.items.indexOf(W):-1},
select:function(W){this.selected=W},
selectPrevious:function(){var W=this.items.length,k=W-1;this.selected!==void 0&&(k=(Number(this._valueToIndex(this.selected))-1+W)%W);this.selected=this._indexToValue(k)},
selectNext:function(){var W=0;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(W)},
selectIndex:function(W){this.select(this._indexToValue(W))},
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(W){this.listen(this,W,"_activateHandler")},
_removeListener:function(W){this.unlisten(this,W,"_activateHandler")},
_activateEventChanged:function(W,k){this._removeListener(k);this._addListener(W)},
_updateItems:function(){var W=_.Ek(this).queryDistributedElements(this.selectable||"*");W=Array.prototype.filter.call(W,this._bindFilterItem);this._setItems(W)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var W=this._valueToItem(this.selected);W?this._selection.select(W):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(W){return!this._excludedLocalNames[W.localName]},
_valueToItem:function(W){return W==null?null:this.items[this._valueToIndex(W)]},
_valueToIndex:function(W){if(this.attrForSelected)for(var k=0,C;C=this.items[k];k++){if(this._valueForItem(C)==W)return k}else return Number(W)},
_indexToValue:function(W){if(this.attrForSelected){if(W=this.items[W])return this._valueForItem(W)}else return W},
_valueForItem:function(W){if(!W)return null;if(!this.attrForSelected)return W=this.indexOf(W),W===-1?null:W;var k=W[rI(this.attrForSelected)];return k!=void 0?k:W.getAttribute(this.attrForSelected)},
_applySelection:function(W,k){this.selectedClass&&this.toggleClass(this.selectedClass,k,W);this.selectedAttribute&&this.toggleAttribute.call(W,this.selectedAttribute,k);this._selectionChange();this.fire("iron-"+(k?"select":"deselect"),{item:W})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(W){return _.Ek(W).observeNodes(function(k){this._updateItems();this._updateSelected();this.fire("iron-items-changed",k,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(W){W=W.target;for(var k=this.items;W&&W!=this;){var C=k.indexOf(W);if(C>=0){k=this._indexToValue(C);this._itemActivate(k,W);break}W=W.parentNode}},
_itemActivate:function(W,k){this.fire("iron-activate",{selected:W,item:k},{cancelable:!0}).defaultPrevented||this.select(W)}};var gjZ={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(W){this.multi?this._toggleSelected(W):this.selected=W},
multiChanged:function(W){this._selection.multi=W;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(W){return this._indexToValue(this.indexOf(W))},this).filter(function(W){return W!=null},this)):_.Jv._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(W){W=W||[];W=(this._valuesToItems(W)||[]).filter(function(C){return C!==null&&C!==void 0});
this._selection.clear(W);for(var k=0;k<W.length;k++)this._selection.setItemSelected(W[k],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var W=this._selection.get();this.multi?(this._setSelectedItems(W),this._setSelectedItem(W.length?W[0]:null)):W!==null&&W!==void 0?(this._setSelectedItems([W]),this._setSelectedItem(W)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(W){var k=this.selectedValues.indexOf(W);k<0?this.push("selectedValues",W):this.splice("selectedValues",k,1)},
_valuesToItems:function(W){return W==null?null:W.map(function(k){return this._valueToItem(k)},this)}},PXA=[_.Jv,
gjZ];var KkS;
_.dS={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(W){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var k=this._valueToItem(W);k&&k.hasAttribute("disabled")||(this._setFocusedItem(k),gjZ.select.apply(this,arguments))},
_resetTabindices:function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(k){k.setAttribute("tabindex",k===W?"0":"-1");k.setAttribute("aria-selected",this._selection.isSelected(k))},this)},
_updateMultiselectable:function(W){W?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(W){if(this._MODIFIER_KEYS.indexOf(W.key)===-1){this.cancelDebouncer("_clearSearchText");var k=this._searchText||"";k+=(W.key&&W.key.length==1?W.key:String.fromCharCode(W.keyCode)).toLocaleLowerCase();W=k.length;for(var C=0,n;n=this.items[C];C++)if(!n.hasAttribute("disabled")){var N=this.attrForItemTitle||"textContent";N=(n[N]||n.getAttribute(N)||"").trim();if(!(N.length<W)&&N.slice(0,W).toLocaleLowerCase()==k){this._setFocusedItem(n);break}}this._searchText=k;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var W=this.items.length,k=Number(this.indexOf(this.focusedItem)),C=1;C<W+1;C++){var n=this.items[(k-C+W)%W];if(!n.hasAttribute("disabled")){var N=_.Ek(n).getOwnerRoot()||document;this._setFocusedItem(n);if(_.Ek(N).activeElement==n)break}}},
_focusNext:function(){for(var W=this.items.length,k=Number(this.indexOf(this.focusedItem)),C=1;C<W+1;C++){var n=this.items[(k+C)%W];if(!n.hasAttribute("disabled")){var N=_.Ek(n).getOwnerRoot()||document;this._setFocusedItem(n);if(_.Ek(N).activeElement==n)break}}},
_applySelection:function(W,k){k?W.setAttribute("aria-selected","true"):W.setAttribute("aria-selected","false");_.Jv._applySelection.apply(this,arguments)},
_focusedItemChanged:function(W,k){k&&k.setAttribute("tabindex","-1");!W||W.hasAttribute("disabled")||this.disabled||(W.setAttribute("tabindex","0"),W.focus())},
_onIronItemsChanged:function(W){W.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");_.dS._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);_.dS._shiftTabPressed=!1},1)},
_onFocus:function(W){!_.dS._shiftTabPressed&&(W=_.Ek(W).rootTarget,W===this||typeof W.tabIndex==="undefined"||this.isLightDescendant(W))&&(this._defaultFocusAsync=this.async(function(){var k=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);k?this._setFocusedItem(k):this.items[0]&&this._focusNext()}))},
_onUpKey:function(W){this._focusPrevious();W.detail.keyboardEvent.preventDefault()},
_onDownKey:function(W){this._focusNext();W.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var W=this.focusedItem;W&&W.blur()},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down esc")||this._focusWithKeyboardEvent(W);W.stopPropagation()},
_activateHandler:function(W){_.Jv._activateHandler.call(this,W);W.stopPropagation()},
_disabledChanged:function(W){W?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};KkS=[PXA,_.wS,_.dS];_.hbY={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
_onDownKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(W){return W.ctrlKey||W.shiftKey||W.altKey||W.metaKey},
_onLeftKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),W.detail.keyboardEvent.preventDefault())},
_onRightKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),W.detail.keyboardEvent.preventDefault())},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down left right esc")||this._focusWithKeyboardEvent(W)}};
_.W48=[KkS,_.hbY];var kr8;kr8=new Set;_.mV={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):(kr8.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},this),this._fireResize())},
assignParentResizable:function(W){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=W)&&W._interestedResizables.indexOf(this)===-1&&(W._interestedResizables.push(this),W._subscribeIronResize(this))},
stopResizeNotificationsFor:function(W){var k=this._interestedResizables.indexOf(W);k>-1&&(this._interestedResizables.splice(k,1),this._unsubscribeIronResize(W))},
_subscribeIronResize:function(W){W.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(W){W.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(W){this._notifyingDescendant?W.stopPropagation():Iq||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(W){var k=_.Ek(W).rootTarget;k!==this&&(k.assignParentResizable(this),this._notifyDescendant(k),W.stopPropagation())},
_parentResizableChanged:function(W){W&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(W){this.isAttached&&(this._notifyingDescendant=!0,W.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var W=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function C(){document.removeEventListener("readystatechange",C);W()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(k){k!==this&&k._findParent()},this):(kr8.forEach(function(k){k!==this&&k._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?kr8.delete(this):kr8.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
*/
_.C2Z={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(W,k){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);k&&(W==="document"?this.scrollTarget=this._doc:typeof W==="string"?this.scrollTarget=(k=this.domHost)&&k.$?k.$[W]:_.Ek(this.ownerDocument).querySelector("#"+W):this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W)))},
_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(W){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
W)},set _scrollLeft(W){this.scrollTarget===this._doc?window.scrollTo(W,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=W)},scroll:function(W,k){if(typeof W==="object"){var C=W.left;k=W.top}else C=W;C=C||0;k=k||0;this.scrollTarget===this._doc?window.scrollTo(C,k):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=C,this.scrollTarget.scrollTop=k)},
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(W,k){k=k===this._doc?window:k;W?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),k.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(k.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(W){this._shouldHaveListener=W;this._toggleScrollListener(W,this.scrollTarget)}};_.Av({is:"iron-selector",_template:null,behaviors:[PXA]});var zu={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(W){if(W.timing)for(var k in W.timing)this.animationTiming[k]=W.timing[k];return this.animationTiming},
setPrefixedProperty:function(W,k,C){for(var n={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[k],N,B=0;N=n[B];B++)W.style[N]=C;W.style[k]=C},
complete:function(){}};_.Av({is:"fade-in-animation",_template:null,behaviors:[zu],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(W))}});_.Av({is:"fade-out-animation",_template:null,behaviors:[zu],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(W))}});var nxS=[{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(W,k){for(var C in k)W[C]=k[C]},
_cloneConfig:function(W){var k={isClone:!0};this._copyProperties(k,W);return k},
_getAnimationConfigRecursive:function(W,k,C){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var n=W?this.animationConfig[W]:this.animationConfig;Array.isArray(n)||(n=[n]);if(n)for(var N,B=0;N=n[B];B++)if(N.animatable)N.animatable._getAnimationConfigRecursive(N.type||W,k,C);else if(N.id){var A=k[N.id];
A?(A.isClone||(k[N.id]=this._cloneConfig(A),A=k[N.id]),this._copyProperties(A,N)):k[N.id]=N}else C.push(N)}},
getAnimationConfig:function(W){var k={},C=[];this._getAnimationConfigRecursive(W,k,C);for(var n in k)C.push(k[n]);return C}},
{_configureAnimations:function(W){var k=[],C=[];if(W.length>0)for(var n,N=0;n=W[N];N++){var B=document.createElement(n.name);if(B.isNeonAnimation){var A=null;B.configure||(B.configure=function(){return null});
A=B.configure(n);C.push({result:A,config:n})}else console.warn(this.is+":",n.name,"not found!")}for(W=0;W<C.length;W++){A=C[W].result;n=C[W].config;try{typeof A.cancel!="function"&&(A=document.timeline.play(A))}catch(w){A=null,console.warn("Couldnt play","(",n.name,").",w)}A&&k.push({neonAnimation:B,config:n,animation:A})}return k},
_shouldComplete:function(W){for(var k=!0,C=0;C<W.length;C++)if(W[C].animation.playState!="finished"){k=!1;break}return k},
_complete:function(W){for(var k=0;k<W.length;k++)W[k].neonAnimation.complete(W[k].config);for(k=0;k<W.length;k++)W[k].animation.cancel()},
playAnimation:function(W,k){var C=this.getAnimationConfig(W);if(C){this._active=this._active||{};this._active[W]&&(this._complete(this._active[W]),delete this._active[W]);var n=this._configureAnimations(C);if(n.length==0)this.fire("neon-animation-finish",k,{bubbles:!1});else for(this._active[W]=n,C=0;C<n.length;C++)n[C].animation.onfinish=function(){this._shouldComplete(n)&&(this._complete(n),delete this._active[W],this.fire("neon-animation-finish",k,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var W in this._active){var k=this._active[W],C;for(C in k)k[C].animation&&k[C].animation.cancel&&k[C].animation.cancel()}this._active={}}}];var nY=function(W,k){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.arg=k;this.name=this.constructor.name;this.constructor=nY;this.__proto__=nY.prototype};
_.D(nY,Error);var NqI=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k.prototype._marshalArgs=function(C,n,N){n=W.prototype._marshalArgs.call(this,C,n,N);if(this._legacyUndefinedCheck&&n.length>1)for(N=0;N<n.length;N++)if(n[N]===void 0||C[N].wildcard&&n[N].base===void 0)throw C=C[N].name,new nY("Argument '"+C+"' is undefined.",C);return n};
k.prototype._addPropertyEffect=function(C,n,N){return W.prototype._addPropertyEffect.call(this,C,n,hkz(N,N&&N.info&&N.info.methodName))};
k._addTemplatePropertyEffect=function(C,n,N){return W._addTemplatePropertyEffect.call(this,C,n,hkz(N))};
return k}),YRA=_.Av.Class;
_.Av.Class=function(W,k){return YRA(W,function(C){return k?k(NqI(C)):NqI(C)})};
var Bqx=Zm(function(W){var k=NqI(W);W=function(){return k.apply(this,arguments)||this};
_.D(W,k);_.oq.Object.defineProperties(W.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return W}),b68=MZ.mixin;
MZ.mixin=b68?function(W){return Bqx(b68(W))}:Bqx;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.DI=_.tl.IronButtonState;var dkI=cm;/*

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 F4z;_.Afs="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");F4z=function(){var W=[],k;var C=C||_.Afs.length;for(k=0;k<8;k++)W[k]=_.Afs[0|Math.random()*C];return W.join("")};var nT2=function(){return Math.random().toString(36).substring(7).split("").join(".")},CsJ="@@redux/INIT"+nT2(),BmP="@@redux/REPLACE"+nT2();var bxm=typeof Symbol==="function"&&Symbol.observable||"@@observable";var wGZ=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var x2A="top right bottom left width height size weight".split(" "),lNb=typeof MutationObserver!=="undefined",ty2=wGZ&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,ExS=function(){this.mutationEventsAdded_=this.JSC$9521_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=Abm(this.refresh.bind(this))},aN8=function(W,
k){var C=W.observers_;
k=C.indexOf(k);~k&&C.splice(k,1);!C.length&&W.JSC$9521_connected_&&wGZ&&W.JSC$9521_connected_&&(document.removeEventListener("transitionend",W.onTransitionEnd_),window.removeEventListener("resize",W.refresh),W.mutationsObserver_&&(W.mutationsObserver_.disconnect(),ty2&&(HTMLElement.prototype.attachShadow=ty2)),W.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",W.refresh),W.mutationsObserver_=null,W.mutationEventsAdded_=!1,W.JSC$9521_connected_=!1)};
ExS.prototype.refresh=function(){XG8(this)&&this.refresh()};
var XG8=function(W){W=W.observers_.filter(function(k){return fN2(k),k.activeObservations_.length>0});
W.forEach(function(k){return d2s(k)});
return W.length>0},m2S=function(W){if(wGZ&&!W.JSC$9521_connected_){document.addEventListener("transitionend",W.onTransitionEnd_);
window.addEventListener("resize",W.refresh);if(lNb){W.mutationsObserver_=new MutationObserver(W.refresh);var k={attributes:!0,childList:!0,characterData:!0,subtree:!0};W.mutationsObserver_.observe(document,k);ty2&&(function N(n){var B=n.shadowRoot;B&&(W.mutationsObserver_.observe(B,k),N(B));for(n=n.firstElementChild;n;)N(n),n=n.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var n=ty2.apply(this,_.v6.apply(0,arguments));
W.mutationsObserver_.observe(n,k);return n})}else document.addEventListener("DOMSubtreeModified",W.refresh),W.mutationEventsAdded_=!0;
W.JSC$9521_connected_=!0}};
ExS.prototype.onTransitionEnd_=function(W){var k=W.propertyName===void 0?"":W.propertyName;x2A.some(function(C){return!!~k.indexOf(C)})&&this.refresh()};
var zD8=null;var D28=function(W,k){for(var C=_.b(Object.keys(k)),n=C.next();!n.done;n=C.next())n=n.value,Object.defineProperty(W,n,{value:k[n],enumerable:!1,writable:!1,configurable:!0})};var V8=function(W){var k;return(W==null?void 0:(k=W.ownerDocument)==null?void 0:k.defaultView)||globalThis};var Vy8={x:0,y:0,width:0,height:0},Jfz=typeof SVGGraphicsElement!=="undefined"?function(W){return W instanceof V8(W).SVGGraphicsElement}:function(W){return W instanceof V8(W).SVGElement&&typeof W.getBBox==="function"};var cfI=function(W){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=W};
cfI.prototype.isActive=function(){var W=this.target;if(wGZ)if(Jfz(W)){var k=W.getBBox();k={x:0,y:0,width:k.width,height:k.height}}else{var C=W.clientWidth,n=W.clientHeight;if(C||n){var N=V8(W).getComputedStyle(W);k=Ye(N["padding-top"]);var B=Ye(N["padding-left"]),A=B+Ye(N["padding-right"]),w=k+Ye(N["padding-bottom"]),x=Ye(N.width),E=Ye(N.height);N.boxSizing==="border-box"&&(Math.round(x+A)!==C&&(x-=FPw(N,"left","right")+A),Math.round(E+w)!==n&&(E-=FPw(N,"top","bottom")+w));W!==V8(W).document.documentElement&&
(W=Math.round(x+A)-C,n=Math.round(E+w)-n,Math.abs(W)!==1&&(x-=W),Math.abs(n)!==1&&(E-=n));k={x:B,y:k,width:x,height:E}}else k=Vy8}else k=Vy8;this.contentRect_=k;return k.width!==this.broadcastWidth||k.height!==this.broadcastHeight};var INs=function(W,k){var C=k.x;var n=k.y;var N=k.width;k=k.height;var B=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);D28(B,{x:C,y:n,width:N,height:k,top:n,right:C+N,bottom:k+n,left:C});D28(this,{target:W,contentRect:B})};var SRA=function(W,k){var C=zD8;this.activeObservations_=[];this.observations_=new Map;if(typeof W!=="function")throw new TypeError("Qe");this.callback_=W;this.controller_=C;this.callbackCtx_=k};
SRA.prototype.observe=function(W){if(W===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof V8(W).Element))throw new TypeError("Se");var k=this.observations_;k.has(W)||(k.set(W,new cfI(W)),W=this.controller_,~W.observers_.indexOf(this)||W.observers_.push(this),W.JSC$9521_connected_||m2S(W),this.controller_.refresh())}};
SRA.prototype.unobserve=function(W){if(W===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof V8(W).Element))throw new TypeError("Se");var k=this.observations_;k.has(W)&&(k.delete(W),k.size||aN8(this.controller_,this))}};
SRA.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();aN8(this.controller_,this)};
var fN2=function(W){W.activeObservations_.splice(0);W.observations_.forEach(function(k){k.isActive()&&W.activeObservations_.push(k)})},d2s=function(W){if(W.activeObservations_.length>0){var k=W.callbackCtx_,C=W.activeObservations_.map(function(n){var N=n.target,B=n.contentRect_;
n.broadcastWidth=B.width;n.broadcastHeight=B.height;return new INs(N,B)});
W.callback_.call(k,C,k);W.activeObservations_.splice(0)}};var Jl=function(W){if(!(this instanceof Jl))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");zD8||(zD8=new ExS);this.observer_=new SRA(W,this)};
Jl.prototype.observe=function(W){this.observer_.observe(W)};
Jl.prototype.unobserve=function(W){this.observer_.unobserve(W)};
Jl.prototype.disconnect=function(){this.observer_.disconnect()};var lWI=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Jl;var fuz="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(" "),XSm={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},aup=null,wSp=null;var dew={},mep=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 SY2={text:1},VZK={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Myb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,QZs={CONSTANT:{isUnwrappable:function(W){return W instanceof VE},
unwrap:YzS},JAVASCRIPT:{isUnwrappable:function(W){return W instanceof _.u5},
unwrap:HL2},HTML:{isUnwrappable:function(W){return W instanceof yG},
unwrap:function(W){return Zl(W)}},
RESOURCE_URL:{isUnwrappable:function(W){return W instanceof l5},
unwrap:_.Ez},STRING:{isUnwrappable:function(W){return W instanceof Object},
unwrap:function(W){return String(W)}},
STYLE:{isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W}},
URL:{isUnwrappable:function(W){return Dl(W)},
unwrap:_.VG}},pGZ={CONSTANT:MZX,JAVASCRIPT:MZX,HTML:function(W){W=W instanceof yG?W:$3(String(W).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Zl(W)},
RESOURCE_URL:MZX,STRING:String,STYLE:MZX,URL:function(W,k){W=Myb.test(W)?W:void 0;return W===void 0?k:W}};var oTP=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Qaw=/[\t\n\f\r ]+/,vTw=/[\t\n\f\r ,]+/g,saK=function(W,k,C){return C},Fv={},vxb=function(){var W=function(){var n={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",n):n}(),k=W.createHTML(""),C=W.createScript("");
W=W.createScriptURL("");return{INNOCUOUS_STRING:k,INNOCUOUS_SCRIPT:C,INNOCUOUS_URL:W}}(),AA=vxb.INNOCUOUS_STRING,ROX=vxb.INNOCUOUS_SCRIPT,ZxP=vxb.INNOCUOUS_URL;var eDz=function(W){var k=ix3(W);return function(C,n,N,B){return B?k(B,n,N,C):AA}}({reportHandler:function(W,k){if(W)try{throw Error(k);
}catch(C){_.dI(C)}},
safeTypesBridge:function(W,k,C){var n=QZs[k];return n.isUnwrappable(W)&&(n=n.unwrap(W,C),n!==C)?n:(0,pGZ[k])(String(W),C)},
allowedIdentifierPrefixes:[""]});if(AD!==void 0)throw Error("Ue");AD=eDz;if(AD!==eDz)throw Error("Ve");wa("Injectable",[]);var lTP=wa("Inject",[["token",void 0]]),EXm=wa("Optional",[]);wa("Injectable",[]);var aTz=wa("Self",[]),X1X=wa("SkipSelf",[]);wa("Host",[]);var sZb={},GrZ=function(){};
GrZ.prototype.resolve=function(){throw Error("Xe");};
GrZ.prototype.addProvider=function(){throw Error("Xe");};var w1m=Function;var yfA=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,$2S=function(){this._reflect=window.Reflect};
_.Y=$2S.prototype;_.Y.factory=function(W){return function(){return new (Function.prototype.bind.apply(W,[null].concat(_.J8(_.v6.apply(0,arguments)))))}};
_.Y._zipTypesAndAnnotations=function(W,k){var C=typeof W==="undefined"?Array(k.length):Array(W.length);for(var n=0;n<C.length;n++)C[n]=typeof W==="undefined"?[]:W[n]!=Object?[W[n]]:[],k&&qYm(k[n])&&(C[n]=C[n].concat(k[n]));return C};
_.Y._ownParameters=function(W,k){if(yfA.exec(W.toString()))return null;if(W.parameters&&W.parameters!==k.parameters)return W.parameters;var C=W.ctorParameters;return C&&C!==k.ctorParameters?(k=typeof C==="function"?C():C,W=k.map(function(n){return n&&n.type}),k=k.map(function(n){return n&&UeP(n.decorators)}),this._zipTypesAndAnnotations(W,k)):qYm(this._reflect)&&qYm(this._reflect.getOwnMetadata)&&(k=this._reflect.getOwnMetadata("parameters",W),(C=this._reflect.getOwnMetadata("design:paramtypes",W))||
k)?this._zipTypesAndAnnotations(C,k):Array(W.length).fill(void 0)};
_.Y.parameters=function(W){if(!W.prototype)return[];var k=Object.getPrototypeOf(W.prototype).constructor;(W=this._ownParameters(W,k))||k===Object||(W=this.parameters(k));return W||[]};
_.Y._ownAnnotations=function(W,k){if(W.annotations&&W.annotations!==k.annotations)return W=W.annotations,typeof W==="function"&&W.annotations&&(W=W.annotations),W;if(W.decorators&&W.decorators!==k.decorators)return UeP(W.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",W)};
_.Y.annotations=function(W){var k=Object.getPrototypeOf(W.prototype).constructor;W=this._ownAnnotations(W,k)||[];return(k!==Object?this.annotations(k):[]).concat(W)};
_.Y._ownPropMetadata=function(W,k){if(W.propMetadata&&W.propMetadata!==k.propMetadata)return W=W.propMetadata,typeof W==="function"&&W.propMetadata&&(W=W.propMetadata),W;if(W.propDecorators&&W.propDecorators!==k.propDecorators){var C=W.propDecorators,n={};Object.keys(C).forEach(function(N){n[N]=UeP(C[N])});
return n}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",W)};
_.Y.propMetadata=function(W){var k=Object.getPrototypeOf(W.prototype).constructor,C={};if(k!==Object){var n=this.propMetadata(k);Object.keys(n).forEach(function(B){C[B]=n[B]})}var N=this._ownPropMetadata(W,k);
N&&Object.keys(N).forEach(function(B){var A=[];C.hasOwnProperty(B)&&A.push.apply(A,_.J8(C[B]));A.push.apply(A,_.J8(N[B]));C[B]=A});
return C};
_.Y.getter=function(W){return function(k){return k[W]}};
_.Y.method=function(W){return function(k,C){if(!k[W])throw Error("Ye`"+W);return k[W].apply(k,C)}};var Z6Y=function(){};var RDY=function(W){this.reflectionCapabilities=W};
_.D(RDY,Z6Y);_.Y=RDY.prototype;_.Y.factory=function(W){return this.reflectionCapabilities.factory(W)};
_.Y.parameters=function(W){return this.reflectionCapabilities.parameters(W)};
_.Y.annotations=function(W){return this.reflectionCapabilities.annotations(W)};
_.Y.propMetadata=function(W){return this.reflectionCapabilities.propMetadata(W)};
_.Y.getter=function(W){return this.reflectionCapabilities.getter(W)};
_.Y.method=function(W){return this.reflectionCapabilities.method(W)};var hOI=new RDY(new $2S);var cO=function(W,k){this.token=W;this.id=k;if(W===void 0||W===null)throw Error("cf");};
_.oq.Object.defineProperties(cO.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return xe(this.token)}}});
_.oq.Object.defineProperties(cO,{JSC$9563_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return tA.JSC$9567_numberOfKeys}}});
var oxs=function(){this._allKeys=new Map};
oxs.prototype.get=function(W){if(W instanceof cO)return W;if(this._allKeys.has(W))return this._allKeys.get(W);var k=new cO(W,cO.JSC$9563_numberOfKeys);this._allKeys.set(W,k);return k};
_.oq.Object.defineProperties(oxs.prototype,{JSC$9567_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var tA=new oxs;var fTI=function(W,k,C){this.key=W;this.optional=k;this.visibility=C},kcm=function(W){return new fTI(W,!1,null)},nXJ=[],B1z=function(W,k,C){this.key=W;
this.resolvedFactories=k;this.multiProvider=C},N14=function(W,k,C,n){this.factory=W;
this.dependencies=k;this.providerClass=C;this.providerValue=n};var Iv={},SB=function(W,k){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=k===void 0?null:k;W=_.b(W);for(k=W.next();!k.done;k=W.next())this.addProvider(k.value)};
_.Y=SB.prototype;_.Y.addProvider=function(W){this.keyIdToIndex.set(W.key.id,this.keyIds.length);this.providers.push(W);this.keyIds.push(W.key.id);this.objs.push(Iv)};
_.Y.resolve=function(W,k){k=k===void 0?sZb:k;return this._getByKey(tA.get(ld(W)),null,k)};
_.Y._new=function(W){if(this.constructedKeyIds[W.key.id])throw gTJ(this,W.key);this.constructedKeyIds[W.key.id]=!0;return this._instantiateProvider(W)};
_.Y._instantiateProvider=function(W){if(W.multiProvider){for(var k=Array(W.resolvedFactories.length),C=0;C<W.resolvedFactories.length;++C)k[C]=this._instantiate(W,W.resolvedFactories[C]);return k}return this._instantiate(W,W.resolvedFactories[0])};
_.Y._instantiate=function(W,k){var C=this,n=k.factory;try{var N=k.dependencies.map(function(A){return C._getByReflectiveDependency(A)})}catch(A){throw A.addKey&&A.addKey(this,W.key),A;
}try{var B=n.apply(null,_.J8(N))}catch(A){throw Psc(this,A,W.key);}return B};
_.Y._getByReflectiveDependency=function(W){return this._getByKey(W.key,W.visibility,W.optional?null:sZb)};
_.Y._getByKey=function(W,k,C){return W===i6s?this:k instanceof aTz?this._getByKeySelf(W,C):this._getByKeyDefault(W,C,k)};
_.Y._getObjByKeyId=function(W){for(var k=0;k<this.keyIds.length;k++)if(this.keyIds[k]===W)return this.objs[k]===Iv&&(this.objs[k]=this._new(this.providers[k])),this.objs[k];return Iv};
_.Y._throwOrNull=function(W,k){if(k!==sZb)return k;throw rbX(this,W);};
_.Y._getByKeySelf=function(W,k){var C=this._getObjByKeyId(W.id);return C!==Iv?C:this._throwOrNull(W,k)};
_.Y._getByKeyDefault=function(W,k,C){for(var n=C=C instanceof X1X?this.parent:this;C instanceof SB;){var N=C._getObjByKeyId(W.id);if(N!==Iv)return N;C=C.parent}N=void 0;if(C!==null)try{var B=C.resolve(W.token,k);if(B!==Iv)return B}catch(A){N=A}if(!(n instanceof SB&&mR3(W.token))){if(N)throw N;return this._throwOrNull(W,k)}for(B=n;B.parent instanceof SB;)B=B.parent;B.addProvider(bFP({provide:W.token,useClass:W.token}));return B.resolve(W.token,k)};
_.Y.toString=function(){return this.displayName};
_.oq.Object.defineProperties(SB.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+dRP(this,function(W){return' "'+W.key.displayName+'" '}).join(", ")+"])"}}});
var i6s=tA.get(ld(GrZ));(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 Tq8=window.XRegExp;var qRx=-1,uYb=function(W){addEventListener("pageshow",function(k){k.persisted&&(qRx=k.timeStamp,W(k))},!0)};var O6b=function(W,k,C){var n=U2S,N,B;return function(A){k.value>=0&&(A||C)&&((B=k.value-(N||0))||N===void 0)&&(N=k.value,k.delta=B,A=k.value,k.rating=A>n[1]?"poor":A>n[0]?"needs-improvement":"good",W(k))}};var Mn=-1,L48=function(W){document.visibilityState==="hidden"&&Mn>-1&&(Mn=W.type==="visibilitychange"?W.timeStamp:0,removeEventListener("visibilitychange",L48,!0),removeEventListener("prerenderingchange",L48,!0))},jZY=function(){addEventListener("visibilitychange",L48,!0);
addEventListener("prerenderingchange",L48,!0)},H6A=function(){Mn<0&&(Mn=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,jZY(),uYb(function(){setTimeout(function(){Mn=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
jZY()},0)}));
return{get firstHiddenTime(){return Mn}}};var rfb=function(){var W=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(W&&W.responseStart>0&&W.responseStart<performance.now())return W};var gxA=function(){var W=rfb();return W&&W.activationStart||0};var P2A=function(){var W=rfb(),k="navigate";qRx>=0?k="back-forward-cache":W&&(document.prerendering||gxA()>0?k="prerender":document.wasDiscarded?k="restore":W.type&&(k=W.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:k}};var K4S=function(W){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var k=new PerformanceObserver(function(C){Promise.resolve().then(function(){W(C.getEntries())})});
k.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return k}}catch(C){}};var hDZ=function(W){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W()})};var WES=function(W){var k=!1;return function(){k||(W(),k=!0)}};var k_S=function(W){document.prerendering?addEventListener("prerenderingchange",function(){return W()},!0):W()};var CHs=function(W){requestAnimationFrame(function(){return requestAnimationFrame(function(){return W()})})};var U2S=[2500,4E3],nN2={},kdp=function(W){var k=k||{};k_S(function(){var C=H6A(),n=P2A(),N=function(x){k.reportAllChanges||(x=x.slice(-1));x.forEach(function(E){E.startTime<C.firstHiddenTime&&(n.value=Math.max(E.startTime-gxA(),0),n.entries=[E],A())})},B=K4S(N);
if(B){var A=O6b(W,n,k.reportAllChanges);var w=WES(function(){nN2[n.id]||(N(B.takeRecords()),B.disconnect(),nN2[n.id]=!0,A(!0))});
["keydown","click"].forEach(function(x){addEventListener(x,function(){var E=w,a=self.requestIdleCallback||self.setTimeout,X=-1;E=WES(E);document.visibilityState==="hidden"?E():(X=a(E),hDZ(E));return X},!0)});
hDZ(w);uYb(function(x){n=P2A();A=O6b(W,n,k.reportAllChanges);CHs(function(){n.value=performance.now()-x.timeStamp;nN2[n.id]=!0;A(!0)})})}})};var Nks;var YvA;_.g=function(){return YvA!==void 0?YvA:YvA=document.createElement("template")};
document.head.appendChild(_.g().content);var BkA;_.Av({_template:function(){if(BkA!==void 0)return BkA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;Nks===void 0&&(Nks=document.createElement("template"));var n=Nks;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return BkA=W},
is:"tp-yt-app-toolbar"});var bsA;var A3Y;_.Q8=function(){};
_.Q8=_.Av({_template:function(){if(A3Y!==void 0)return A3Y;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;bsA===void 0&&(bsA=document.createElement("template"));var n=bsA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return A3Y=W},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Q8.instance||(_.Q8.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(W){this._text===W&&(W+="\u00a0");this._text="";this.async(function(){this._text=W},this.timeout)},
_onIronAnnounce:function(W){W.detail&&W.detail.text&&this.announce(W.detail.text)}});
_.Q8.instance=null;_.Q8.requestAvailability=function(){_.Q8.instance||(_.Q8.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Q8.instance):document.addEventListener("load",function(){document.body.appendChild(_.Q8.instance)})};var FE8;var wqb;/*

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

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 pT,f7b,dKz;pT=Element.prototype;f7b=pT.matches||pT.matchesSelector||pT.mozMatchesSelector||pT.msMatchesSelector||pT.oMatchesSelector||pT.webkitMatchesSelector;dKz=function(){};
_.znA=function(W){var k=mKC,C=[];return k._collectTabbableNodes(W,C)?k._sortByTabIndex(C):C};
_.Y=dKz.prototype;_.Y._normalizedTabIndex=function(W){return(f7b.call(W,"input, select, textarea, button, object")?f7b.call(W,":not([disabled])"):f7b.call(W,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(W=W.getAttribute("tabindex")||0,Number(W)):-1};
_.Y._collectTabbableNodes=function(W,k){if(W.nodeType!==Node.ELEMENT_NODE||!this._isVisible(W))return!1;var C=this._normalizedTabIndex(W),n=C>0;C>=0&&k.push(W);if(W.localName==="content"||W.localName==="slot")C=_.Ek(W).getDistributedNodes();else{var N;C=((N=_.Ek(W).shadowRoot)!=null?N:_.Ek(W.root||W)).children}for(W=0;W<C.length;W++)n=this._collectTabbableNodes(C[W],k)||n;return n};
_.Y._isVisible=function(W){var k=W.style;return k.visibility!=="hidden"&&k.display!=="none"?(k=window.getComputedStyle(W),k.visibility!=="hidden"&&k.display!=="none"):!1};
_.Y._sortByTabIndex=function(W){var k=W.length;if(k<2)return W;var C=Math.ceil(k/2);k=this._sortByTabIndex(W.slice(0,C));W=this._sortByTabIndex(W.slice(C));return this._mergeSortByTabIndex(k,W)};
_.Y._mergeSortByTabIndex=function(W,k){for(var C=[];W.length>0&&k.length>0;)this._hasLowerTabOrder(W[0],k[0])?C.push(k.shift()):C.push(W.shift());return C.concat(W,k)};
_.Y._hasLowerTabOrder=function(W,k){W=Math.max(W.tabIndex,0);k=Math.max(k.tabIndex,0);return W===0||k===0?k>W:W>k};
var mKC=new dKz;var DKY;var VqC;_.Av({_template:function(){if(VqC!==void 0)return VqC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;DKY===void 0&&(DKY=document.createElement("template"));var n=DKY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return VqC=W},
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&&_.Ek(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Ek(this.parentNode).removeChild(this)},
_onTransitionend:function(W){W&&W.target===this&&this.complete()},
_openedChanged:function(W){W?this.prepare():(W=window.getComputedStyle(this),W.transitionDuration!=="0s"&&W.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 vO=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;m5(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)};
vO.prototype._bringOverlayAtIndexToFront=function(W){var k=this._overlays[W];if(k){var C=this._overlays.length-1,n=this._overlays[C];n&&this._shouldBeBehindOverlay(k,n)&&C--;if(!(W>=C)){n=Math.max(this._getZ(_.J3S(this)),this._minimumZ);for(this._getZ(k)<=n&&this._applyOverlayZ(k,n);W<C;)this._overlays[W]=this._overlays[W+1],W++;this._overlays[C]=k}}};
vO.prototype.addOverlay=function(W){var k=this._overlays.indexOf(W);if(k>=0)this._bringOverlayAtIndexToFront(k);else{k=this._overlays.length;var C=this._overlays[k-1],n=Math.max(this._getZ(C),this._minimumZ),N=this._getZ(W);C&&this._shouldBeBehindOverlay(W,C)&&(this._applyOverlayZ(C,n),k--,n=Math.max(this._getZ(this._overlays[k-1]),this._minimumZ));N<=n&&this._applyOverlayZ(W,n);this._overlays.splice(k,0,W)}this.trackBackdrop()};
vO.prototype.removeOverlay=function(W){W=this._overlays.indexOf(W);W!==-1&&(this._overlays.splice(W,1),this.trackBackdrop())};
_.J3S=function(W){return W._overlays[W._overlays.length-1]};
_.Y=vO.prototype;_.Y.trackBackdrop=function(){var W=this._overlayWithBackdrop();if(W||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(W)-1,this.backdropElement.opened=!!W,this.backdropElement.prepare()};
_.Y._overlayWithBackdrop=function(){for(var W=this._overlays.length-1;W>=0;W--)if(this._overlays[W].withBackdrop)return this._overlays[W]};
_.Y._getZ=function(W){var k=this._minimumZ;if(W){var C,n,N=Number(((C=W.hostElement)!=null?C:W).style.zIndex||window.getComputedStyle((n=W.hostElement)!=null?n:W).zIndex);N===N&&(k=N)}return k};
_.Y._setZ=function(W,k){var C;((C=W.hostElement)!=null?C:W).style.zIndex=k};
_.Y._applyOverlayZ=function(W,k){this._setZ(W,k+2)};
_.Y._overlayInPath=function(W){W=W||[];for(var k=0;k<W.length;k++){var C=void 0;if(((C=W[k].polymerController)!=null?C:W[k])._manager===this)return W[k]}};
_.Y._onCaptureClick=function(W){var k=this._overlays.length-1;if(k!==-1)for(var C=_.Ek(W).path,n,N;(n=this._overlays[k])&&this._overlayInPath(C)!==((N=n.hostElement)!=null?N:n);)if(n._onCaptureClick(W),n.allowClickThrough)k--;else break};
_.Y._onCaptureFocus=function(W){var k=_.J3S(this);k&&k._onCaptureFocus(W)};
_.Y._onCaptureKeyDown=function(W){var k=_.J3S(this);k&&(_.wS.keyboardEventMatchesKeys(W,"esc")?k._onCaptureEsc(W):_.wS.keyboardEventMatchesKeys(W,"tab")&&k._onCaptureTab(W))};
_.Y._shouldBeBehindOverlay=function(W,k){return!W.alwaysOnTop&&k.alwaysOnTop&&!k.contains(W)};
_.oq.Object.defineProperties(vO.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 W=document.activeElement;W&&W instanceof Element!==!1||(W=document.body);for(;W.root&&_.Ek(W.root).activeElement;)W=_.Ek(W.root).activeElement;return W}}});
_.eB=new vO;var zew=0,DRw=0,VTJ=null,JCm=[],aA=["wheel","mousewheel","DOMMouseScroll"],cCm;_.m("web_no_lock_on_touchstart_killswitch")&&(aA.push("touchstart"),aA.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;_.s7={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:_.eB},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var W;return this._focusedChild||_.Ek((W=this.hostElement)!=null?W:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var W;return _.znA((W=this.hostElement)!=null?W: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 W;this._observer=_.Ek((W=this.hostElement)!=null?W:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var W;_.Ek((W=this.hostElement)!=null?W:this).unobserveNodes(this._observer)}this._observer=null;for(var k in this.__rafs)this.__rafs[k]!==null&&cancelAnimationFrame(this.__rafs[k]);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(W){this.fire("iron-overlay-canceled",W,{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 W;((W=this.hostElement)!=null?W:this).style.outline="none";var k;((k=this.hostElement)!=null?k:this).style.display="none"}},
_openedChanged:function(W){if(W){var k;((k=this.hostElement)!=null?k:this).removeAttribute("aria-hidden")}else{var C;((C=this.hostElement)!=null?C:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var W;if(this.withBackdrop&&!((W=this.hostElement)!=null?W:this).hasAttribute("tabindex")){var k;((k=this.hostElement)!=null?k:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var C;((C=this.hostElement)!=null?C:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";var k;((k=this.hostElement)!=null?k:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var W,k;((W=this.hostElement)!=null?W:this).style.transition=((k=this.hostElement)!=null?k:this).style.webkitTransition="none";var C,n;((C=this.hostElement)!=null?C:this).style.transform=((n=this.hostElement)!=null?n:this).style.webkitTransform="none";var N;((N=this.hostElement)!=null?N:this).style.display=""},
_finishPositioning:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";this.scrollTop=this.scrollTop;var k,C;((k=this.hostElement)!=null?k:this).style.transition=((C=this.hostElement)!=null?C:this).style.webkitTransition="";var n,N;((n=this.hostElement)!=null?n:this).style.transform=((N=this.hostElement)!=null?N:this).style.webkitTransform="";var B;((B=this.hostElement)!=null?B:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var W=this._manager.deepActiveElement,k;if(!(k=W===document.body))a:{for(;W;W=W.assignedSlot||W.parentNode||W.host)if(W===this){k=!0;break a}k=!1}k&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(W){this.noCancelOnOutsideClick||this.cancel(W)},
_onCaptureFocus:function(W){if(this.withBackdrop){var k=_.Ek(W).path;k.indexOf(this)===-1?(W.stopPropagation(),this._applyFocus()):this._focusedChild=k[0]}},
_onCaptureEsc:function(W){this.noCancelOnEscKey||this.cancel(W)},
_onCaptureTab:function(W){if(this.withBackdrop){this.__ensureFirstLastFocusables();var k=W.shiftKey,C=k?this.__firstFocusableNode:this.__lastFocusableNode;k=k?this.__lastFocusableNode:this.__firstFocusableNode;if(C===k)C=!0;else{var n=this._manager.deepActiveElement;C=n===C||n===this}C&&(W.preventDefault(),this._focusedChild=k,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 W=this._focusableNodes;this.__firstFocusableNode=W[0];this.__lastFocusableNode=W[W.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(W,k){var C=this.__rafs;C[W]!==null&&cancelAnimationFrame(C[W]);C[W]=requestAnimationFrame(function(){C[W]=null;k.call(this)}.bind(this))},
__updateScrollObservers:function(W,k,C){W&&k&&this.__isValidScrollAction(C)?(C==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),cCm=_._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()):(W=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),W!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(W,1),cCm=_._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(Iq)for(var W=this;W;)W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&W.host&&this.__rootNodes.push(W),W=W.host||W.assignedSlot||W.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(k){k.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(W){W.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(W){return W==="lock"||W==="refit"||W==="cancel"},
__onCaptureScroll:function(W){if(!(this.__isAnimating||_.Ek(W).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(W)}},
__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)}};
_.Gu=[Xq2,_.mV,_.s7];_.Av({_template:function(){if(ENb!==void 0)return ENb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;tqA===void 0&&(tqA=document.createElement("template"));var n=tqA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return ENb=W},
is:"tp-yt-iron-dropdown",behaviors:[_.xq,_.wS,_.Gu,nxS],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 W=_.Ek(this.$.content).getDistributedNodes(),k=0,C=W.length;k<C;k++)if(W[k].nodeType===Node.ELEMENT_NODE)return W[k]},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(),_.s7._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.s7._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.s7._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var W=this.containedElement,k=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),C=0;C<k.length;C++)k[C].node=W;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(W){this._readied&&(W?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var W=this.focusTarget||this.containedElement;W&&this.opened&&!this.noAutoFocus?W.focus():_.s7._applyFocus.apply(this,arguments)}});var c3s;var I72;/*

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 Sv8=new _.av({type:"iconset"});
_.Av({_template:function(){if(I72!==void 0)return I72;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;c3s===void 0&&(c3s=document.createElement("template"));
var n=c3s;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return I72=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.Ek(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Sv8.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.Ek(this.root).appendChild(this._img)}});var MqC;var Q5x;_.Av({_template:function(){if(Q5x!==void 0)return Q5x;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;MqC===void 0&&(MqC=document.createElement("template"));var n=MqC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return Q5x=W},
is:"tp-yt-iron-input",behaviors:[_.fT],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(){_.Q8.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Ek(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Ek(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,k){k&&(W===void 0?k.value=null:W!==k.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var k=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&k)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var k=this._patternRegExp;if(k&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var C=String.fromCharCode(W.charCode);this._isPrintable(W)&&!k.test(C)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+C+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var k=0;k<this.inputElement.value.length;k++)if(!W.test(this.inputElement.value[k]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.fT.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var pqA;var vNA;var enS=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),s58=enS&&enS[1]>=8;
_.Av({_template:function(){if(vNA!==void 0)return vNA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;pqA===void 0&&(pqA=document.createElement("template"));var n=pqA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return vNA=W},
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:[mkm,_.mV,_.C2Z,OOA],_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 _.Ek(_.Ek(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var k=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(C,n){k+=this._getPhysicalSizeIncrement(C);if(k>this._scrollPosition)return this.grid?n-n%this._itemsPerRow:n;if(this.grid&&this._virtualCount-1===n)return n-n%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var k=this._physicalTop+this._scrollOffset;this._iterateItems(function(C,n){k<this._scrollBottom&&(W=n);k+=this._getPhysicalSizeIncrement(C)})}this._lastVisibleIndexVal=W}return W},
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,_.A7);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.A7)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),k=W-this._scrollPosition,C=k>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(k)>this._physicalSize&&this._physicalSize>0?(k-=this._scrollOffset,C=Math.round(k/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=C,this._physicalStart+=C,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(C),C?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,C?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ve))},
_getReusables:function(W){var k=[],C=this._hiddenContentSize*this._ratio,n=this._virtualStart,N=this._virtualEnd,B=this._physicalCount,A=this._physicalTop+this._scrollOffset;var w=this._physicalBottom+this._scrollOffset;var x=this._scrollPosition,E=this._scrollBottom;if(W){var a=this._physicalStart;w=x-A}else a=this._physicalEnd,w-=E;for(;;){var X=this._getPhysicalSizeIncrement(a);w-=X;if(k.length>=B||w<=C)break;if(W){if(N+k.length+1>=this._virtualCount)break;if(A+X>=x-this._scrollOffset)break;k.push(a);
A+=X;a=(a+1)%B}else{if(n-k.length<=0)break;if(A+this._physicalSize-X<=E)break;k.push(a);A-=X;a=a===0?B-1:a-1}}return{indexes:k,physicalTop:A-this._scrollOffset}},
_update:function(W,k){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(k)for(;k.length;)W=k.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var k,C=Array(W);for(k=0;k<W;k++){var n=this.stamp(null);C[k]=n.root.querySelector("*");this._itemsParent.appendChild(n.root)}return C},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var k=W%this._itemsPerRow;k&&W-k<=this._physicalCount&&(W+=this._itemsPerRow);W-=k}W-=this._physicalCount;k=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){k=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var C=0;C<W;C++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-k)/W;k=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||k===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,k)),SbZ):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,k),Ve))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,k){typeof k!=="undefined"&&(this.notifyResize(),_.kM(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.A7);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(C){return C.addedCount>0||C.removed.length>0})){var k=this._getActiveElement();
this.contains(k)&&k.blur()}W=W.value.indexSplices.some(function(C){return C.index+C.addedCount>=this._virtualStart&&C.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.A7)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,k){W=W.slice(6);var C=W.indexOf(".");C===-1&&(C=W.length);var n,N=this.modelForElement(this._offscreenFocusedItem),B=parseInt(W.substring(0,C),10);if(n=this._isIndexRendered(B)){var A=this._getPhysicalIndex(B);var w=this.modelForElement(this._physicalItems[A])}else N&&(w=N);w&&w[this.indexAs]===B&&(W=W.substring(C+1),W=this.as+(W?"."+W:""),w._setPendingPropertyOrPath(W,k,!1,!0),w._flushProperties&&w._flushProperties(),n&&(this._updateMetrics([A]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(k){k.removed.forEach(this._removeItem,this);k.index<this._virtualStart&&(k=Math.max(k.addedCount-k.removed.length,k.index-this._virtualStart),this._virtualStart+=k,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=k))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,k){var C,n;if(arguments.length===2&&k)for(n=0;n<k.length;n++){var N=k[n];var B=this._computeVidx(N);if((C=W.call(this,N,B))!=null)return C}else{N=this._physicalStart;for(B=this._virtualStart;N<this._physicalCount;N++,B++)if((C=W.call(this,N,B))!=null)return C;for(N=0;N<this._physicalStart;N++,B++)if((C=W.call(this,N,B))!=null)return C}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(k,C){var n=this._physicalItems[k],N=this.items&&this.items[C];if(N!=null){var B=this.modelForElement(n);B.__key__=null;this._forwardProperty(B,this.as,N);this._forwardProperty(B,this.selectedAs,this.$.selector.isSelected(N));this._forwardProperty(B,this.indexAs,C);this._forwardProperty(B,"tabIndex",this._focusedVirtualIndex===C?0:-1);this._physicalIndexForKey[B.__key__]=k;B._flushProperties&&B._flushProperties(!0);n.removeAttribute("hidden")}else n.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.kM();var k=0,C=0,n=this._physicalAverageCount,N=this._physicalAverage;this._iterateItems(function(B){C+=this._physicalSizes[B];this._physicalSizes[B]=this._physicalItems[B].offsetHeight;k+=this._physicalSizes[B];this._physicalAverageCount+=this._physicalSizes[B]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(C=this._itemsPerRow===1?C:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+k-C,this._itemsPerRow=1);this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((N*n+k)/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 W=this._physicalTop;if(this.grid){var k=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(C,n){var N=Math.floor(n%this._itemsPerRow*this._itemWidth+k);this._isRTL&&(N*=-1);this.translate3d(N+"px",W+"px",0,this._physicalItems[C]);this._shouldRenderNextRow(n)&&(W+=this._rowHeight)})}else this._iterateItems(function(C){this.translate3d(0,W+"px",0,this._physicalItems[C]);
W+=this._physicalSizes[C]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var k=this._scrollPosition;!s58&&k>0&&this._resetScrollPosition(k-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.kM(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var k=this._physicalStart,C=this._virtualStart,n=0,N=this._hiddenContentSize;C<W&&
n<=N;)n+=this._getPhysicalSizeIncrement(k),k=(k+1)%this._physicalCount,C++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+n);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.A7)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var k=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);k&&(k[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var k=this.modelForElement(W.target);if(k){var C=_.Ek(W).path[0];W=this._getActiveElement();var n=this._physicalItems[this._getPhysicalIndex(k[this.indexAs])];if(C.localName!=="input"&&C.localName!=="button"&&C.localName!=="select"){C=k.tabIndex;k.tabIndex=-100;var N=W?W.tabIndex:-1;k.tabIndex=C;W&&n!==W&&n.contains(W)&&N!==-100||this.toggleSelectionForItem(k[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var k=this._physicalItems[this._getPhysicalIndex(W)],C=this.modelForElement(k),n;C.tabIndex=-100;k.tabIndex===-100&&(n=k);n||(n=_.Ek(k).querySelector('[tabindex="-100"]'));C.tabIndex=0;this._focusedVirtualIndex=W;n&&n.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var k=this.stamp(null);this._focusBackfillItem=k.root.querySelector("*");this._itemsParent.appendChild(k.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),k=this._physicalItems[W];if(k){var C=this.modelForElement(k),n=this.modelForElement(this._offscreenFocusedItem);C[this.as]===n[this.as]?(this._focusBackfillItem=k,C.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var k=this.modelForElement(this._focusedItem),C=this._offscreenFocusedItem!==null,n=this._focusedVirtualIndex;W&&(k===W?this._isIndexVisible(n)||this.scrollToIndex(n):(this._restoreFocusedItem(),k&&(k.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=n=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(n),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],C&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,k,C){return Math.min(C,Math.max(k,W))},
_debounce:function(W,k,C){this._debouncers=this._debouncers||{};this._debouncers[W]=_.gD(this._debouncers[W],C,k.bind(this));_.P0(this._debouncers[W])},
_forwardProperty:function(W,k,C){W._setPendingProperty(k,C)},
_forwardHostPropV2:function(W,k){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&this.modelForElement(C).forwardHostProp(W,k)},this)},
_notifyInstancePropV2:function(W,k,C){$2K(this.as,k)&&(W=W[this.indexAs],k==this.as&&(this.items[W]=C),this.notifyPath(Wm(this.as,"items."+W,k),C))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,k,C){k.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+k.slice(this.as.length+1),C)},
_forwardParentPath:function(W,k){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&this.modelForElement(C).notifyPath(W,k)},this)},
_forwardParentProp:function(W,k){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&(this.modelForElement(C)[W]=k)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.Ek(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,k){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(k)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var C,n;this.scrollTarget=(k=(n=(C=this.domHost)==null?void 0:C.polymerController)!=null?n:this.domHost)&&k.$?k.$[W]:_.Ek(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var G_x;var y3x;var $K2=function(W,k,C,n){W-=C;k-=n;return Math.sqrt(W*W+k*k)},Zsx=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
ITI.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var S3X=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new ITI(W.element)};
MTw.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=Zsx()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?Zsx()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/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 W=this.radius/(this.containerMetrics.size/2);var k=this.xNow-this.containerMetrics.width/2;var C=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+k+"px, "+C+"px)";this.waveContainer.style.transform="translate3d("+k+"px, "+C+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var k=this.containerMetrics.width/2,C=this.containerMetrics.height/2;S3X(this);this.mouseDownStart=Zsx();this.center?(this.xStart=k,this.yStart=C):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=k,this.yEnd=C);W=this.containerMetrics;k=this.xStart;C=this.yStart;this.maxRadius=Math.max($K2(k,C,0,0),$K2(k,C,
W.width,0),$K2(k,C,0,W.height),$K2(k,C,W.width,W.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=Zsx())},
remove:function(){_.Ek(_.Ek(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Av({_template:function(){if(y3x!==void 0)return y3x;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;G_x===void 0&&(G_x=document.createElement("template"));var n=G_x;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return y3x=W},
is:"tp-yt-paper-ripple",behaviors:[_.wS],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(){_.Ek(this).parentNode.nodeType==11?this.keyEventTarget=_.Ek(this).getOwnerRoot().host:this.keyEventTarget=_.Ek(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(k){k.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var k=this.ripples[W];k.isOpacityFullyDecayed&&!k.isRestingAtMaxRadius&&this.removeRipple(k)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new MTw(this);_.Ek(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var k=this.ripples.indexOf(W);k<0||(this.ripples.splice(k,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var k=this.ripples[W];k.draw();this.$.background.style.opacity=k.outerOpacity;k.isOpacityFullyDecayed&&!k.isRestingAtMaxRadius&&this.removeRipple(k)}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(W,k){k!==void 0&&(W?this.downAction():this.upAction())}});var y8={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){lF._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var k=this._rippleContainer||this.root;k&&_.Ek(k).appendChild(this._ripple);if(W){k=_.Ek(this._rippleContainer||this);var C=_.Ek(W).rootTarget;k.deepContains(C)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var RnS={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){lF._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){lF._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},oNS=[OX2,
_.xq,y8,RnS];_.is8={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=y8._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.TkA=[OX2,_.xq,y8,_.is8];_.qvI=[_.TkA,HX2,{_checkedChanged:function(){jS8._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){y8._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var up2;var UKb;var OsS=function(){};
_.Y=OsS.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._createRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._computeKeyboardClass=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setElevation=function(){};
OsS=_.Av({_template:function(){if(UKb!==void 0)return UKb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;up2===void 0&&(up2=document.createElement("template"));var n=up2;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return UKb=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[oNS],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?RnS._calculateElevation.apply(this):this._setElevation(0)}});var LEx;var j5S;var Hss={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(W){_.m("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.m("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,k){k&&(W?(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(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var k=_.Ek(W).path,C=0,n,N=k.indexOf((n=this.hostElement)!=null?n:this);C<N;C++)if(n=k[C],n.hasAttribute&&(n.hasAttribute("dialog-dismiss")||n.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(n.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},r38=[_.Gu,
Hss];var gNx=document.createElement("template");_.J(gNx,'<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(gNx.content);var PHY=document.createElement("template");_.J(PHY,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(PHY.content);_.Av({_template:function(){if(j5S!==void 0)return j5S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;LEx===void 0&&(LEx=document.createElement("template"));var n=LEx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return j5S=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[r38,nxS],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 KEs;var hn8;_.Av({_template:function(){if(hn8!==void 0)return hn8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;KEs===void 0&&(KEs=document.createElement("template"));var n=KEs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return hn8=W},
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 W,k,C;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((k=window.ShadyDOM)==null?void 0:k.noPatch)!=="on-demand"||((C=this.__shady_parentNode)==null?void 0:C.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Hss)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var WlA=_.iH(['<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>']),kvC=_.gSA(WlA);kvC.setAttribute("style","display: none;");document.head.appendChild(kvC.content);var CAz;var n4A;var NvZ;var YMb;_.Av({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[zu],configure:function(W){var k=W.node,C=k.getBoundingClientRect().height;return this._effect=new KeyframeEffect(k,[{height:C/2+"px"},{height:C+"px"}],this.timingFromConfig(W))}});
_.Av({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[zu],configure:function(W){var k=W.node,C=k.getBoundingClientRect().width;return this._effect=new KeyframeEffect(k,[{width:C/2+"px"},{width:C+"px"}],this.timingFromConfig(W))}});
_.Av({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[zu],configure:function(W){var k=W.node,C=k.getBoundingClientRect().width;return this._effect=new KeyframeEffect(k,[{width:C+"px"},{width:C-C/20+"px"}],this.timingFromConfig(W))}});
_.Av({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[zu],configure:function(W){var k=W.node,C=k.getBoundingClientRect().height;this.setPrefixedProperty(k,"transformOrigin","0 0");return this._effect=new KeyframeEffect(k,[{height:C+"px",transform:"translateY(0)"},{height:C/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var $q={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},BvA=function(){};
_.Y=BvA.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._changedControlState=function(){};
_.Y._setFocused=function(){};
BvA=_.Av({_template:function(){if(YMb!==void 0)return YMb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;NvZ===void 0&&(NvZ=document.createElement("template"));var n=NvZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return YMb=W},
is:"tp-yt-paper-menu-button",behaviors:[_.wS,_.xq],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:$q.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$q.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:$q.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 W=_.Ek(this.$.content).getDistributedNodes(),k=0,C=W.length;k<C;k++)if(W[k].nodeType===Node.ELEMENT_NODE)return W[k]},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(W,k){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):k!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.xq._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var k=this.$.trigger;_.Ek(W.detail).path.indexOf(k)>-1&&W.preventDefault()}});
Object.keys($q).forEach(function(W){BvA[W]=$q[W]});var brC=_.tl.IronButtonState,ApY=(0,_.w4)(HTMLElement);
_.Av({_template:function(){if(n4A!==void 0)return n4A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;CAz===void 0&&(CAz=document.createElement("template"));var n=CAz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return n4A=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[brC,_.xq,y8,_.E7,_.fT],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(W){var k=(0,_.bD)(this);k.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});k.shadowRoot.appendChild(W);return ApY.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.Ek(this.$.content).getDistributedNodes(),k=0,C=W.length;k<C;k++)if(W[k].nodeType===Node.ELEMENT_NODE)return W[k]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var k="";W?k=W.label||W.getAttribute("label")||W.textContent.trim():k="";this.value=k;this._setSelectedItemLabel(k)},
_computeMenuVerticalOffset:function(W,k){return k?k:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",k=this.contentElement;k&&k.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,k,C){var n="label";if(W)C&&(n+=" label-is-hidden");else if(C||k)n+=" label-is-floating";return n},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var Flb;var w9Y;_.Av({is:"tp-yt-paper-icon-button",_template:function(){if(w9Y!==void 0)return w9Y;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Flb===void 0&&(Flb=document.createElement("template"));var n=Flb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return w9Y=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.TkA],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,k){var C=this.getAttribute("aria-label");C&&k!=C||this.setAttribute("aria-label",W)}});var xbY;var lBx;_.ZI=[OX2,_.xq,{hostAttributes:{role:"option",tabindex:"0"}}];_.Av({_template:function(){if(lBx!==void 0)return lBx;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;xbY===void 0&&(xbY=document.createElement("template"));var n=xbY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return lBx=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.ZI]});var ttA;var E4z;var aBs={attached:function(){this.fire("addon-attached")},
update:function(){}};var X98=1,fB8=1,dbs=1,mbC=[_.xq,_.wS,{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();!qF&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,k){W?W=W+" "+k:W=k;return W},
_onAddonAttached:function(W){W=_.Ek(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var k="paper-input-add-on-"+fB8++;W.id=k;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,k)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.xq._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var k=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=k;this.inputElement.selectionEnd=k}catch(C){this.value=W}},
_computeAlwaysFloatLabel:function(W,k){return k||W},
_updateAriaLabelledBy:function(){var W=_.Ek(this.root).querySelector("label");if(W){if(W.id)var k=W.id;else k="paper-input-label-"+X98++,W.id=k;this._ariaLabelledBy=k}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+dbs++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var zmx;var DbY;_.Av({_template:function(){if(DbY!==void 0)return DbY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;zmx===void 0&&(zmx=document.createElement("template"));var n=zmx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return DbY=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[aBs],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var k=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(k+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=k}}});var VtS;var Jp8;_.Av({_template:function(){if(Jp8!==void 0)return Jp8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;VtS===void 0&&(VtS=document.createElement("template"));var n=VtS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return Jp8=W},
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 rI(this.attrForValue)},get _inputElement(){return _.Ek(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var k=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,k.value===void 0||k.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var k=this._inputElementValue;k||k===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:k,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var k,C=0;k=this._addons[C];C++)k.update(W)},
_computeInputContentClass:function(W,k,C,n,N){var B="input-content";W?(N&&(B+=" label-is-hidden"),n&&!this.noUnfloatedLabelError&&(B+=" is-invalid")):(W=this.querySelector("label"),k||N?(B+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?B+=" is-invalid":C&&(B+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),n&&!this.noUnfloatedLabelError&&(B+=" is-invalid")));C&&(B+=" focused");return B},
_computeUnderlineClass:function(W,k){var C="underline";k?C+=" is-invalid":W&&(C+=" is-highlighted");return C},
_computeAddOnContentClass:function(W,k){var C="add-on-content";k?C+=" is-invalid":W&&(C+=" is-highlighted");return C}});var cpA;var IBS;_.Av({_template:function(){if(IBS!==void 0)return IBS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;cpA===void 0&&(cpA=document.createElement("template"));var n=cpA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return IBS=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[aBs],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.Av({is:"tp-yt-paper-input",_template:function(){if(E4z!==void 0)return E4z;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;ttA===void 0&&(ttA=document.createElement("template"));var n=ttA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return E4z=W},
behaviors:[mbC,_.E7],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 SMs;var MtZ;_.Av({_template:function(){if(MtZ!==void 0)return MtZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=
W.content,C=k.insertBefore;SMs===void 0&&(SMs=document.createElement("template"));var n=SMs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return MtZ=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.ZI]});var QU8;var p9b;_.Av({_template:function(){if(p9b!==void 0)return p9b;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;QU8===void 0&&(QU8=document.createElement("template"));var n=QU8;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return p9b=W},
is:"tp-yt-paper-item-body"});var v4b;var ems;var sUs=function(){};
_.Y=sUs.prototype;_.Y.indexOf=function(){};
_.Y.selectPrevious=function(){};
_.Y.selectNext=function(){};
_.Y.selectIndex=function(){};
_.Y.forceSynchronousItemUpdate=function(){};
_.Y._checkFallback=function(){};
_.Y._addListener=function(){};
_.Y._removeListener=function(){};
_.Y._activateEventChanged=function(){};
_.Y._updateItems=function(){};
_.Y._selectSelected=function(){};
_.Y._filterItem=function(){};
_.Y._valueToItem=function(){};
_.Y._valueToIndex=function(){};
_.Y._indexToValue=function(){};
_.Y._valueForItem=function(){};
_.Y._observeItems=function(){};
_.Y._itemActivate=function(){};
_.Y.multiChanged=function(){};
_.Y._updateAttrForSelected=function(){};
_.Y._updateSelected=function(){};
_.Y._selectMulti=function(){};
_.Y._selectionChange=function(){};
_.Y._toggleSelected=function(){};
_.Y._valuesToItems=function(){};
_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y.select=function(){};
_.Y._resetTabindices=function(){};
_.Y._updateMultiselectable=function(){};
_.Y._focusWithKeyboardEvent=function(){};
_.Y._clearSearchText=function(){};
_.Y._focusPrevious=function(){};
_.Y._focusNext=function(){};
_.Y._applySelection=function(){};
_.Y._focusedItemChanged=function(){};
_.Y._onIronItemsChanged=function(){};
_.Y._onShiftTabDown=function(){};
_.Y._onFocus=function(){};
_.Y._onUpKey=function(){};
_.Y._onDownKey=function(){};
_.Y._onEscKey=function(){};
_.Y._onKeydown=function(){};
_.Y._activateHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._setSelectedItem=function(){};
_.Y._setItems=function(){};
_.Y._setSelectedItems=function(){};
_.Y._setFocusedItem=function(){};
sUs=_.Av({_template:function(){if(ems!==void 0)return ems;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;v4b===void 0&&(v4b=document.createElement("template"));var n=v4b;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return ems=W},
is:"tp-yt-paper-listbox",behaviors:[KkS],hostAttributes:{role:"listbox"}});var Gv8;var ypz;var $b8={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,k){return[W||k?"active":"",k?"cooldown":""].join(" ")},
__activeChanged:function(W,k){this.__setAriaHidden(!W);this.__coolingDown=!W&&k},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Av({_template:function(){if(ypz!==void 0)return ypz;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Gv8===void 0&&(Gv8=document.createElement("template"));var n=Gv8;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return ypz=W},
is:"tp-yt-paper-spinner",behaviors:[$b8]});var Zrs;var RmY;_.Av({_template:function(){if(RmY!==void 0)return RmY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Zrs===void 0&&(Zrs=document.createElement("template"));var n=Zrs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return RmY=W},
is:"tp-yt-paper-spinner-lite",behaviors:[$b8]});var o4s;var ir8;_.Av({_template:function(){if(ir8!==void 0)return ir8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;o4s===void 0&&(o4s=document.createElement("template"));var n=o4s;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return ir8=W},
is:"tp-yt-paper-tab",behaviors:[_.xq,_.tl.IronButtonState,y8],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 W=_.Ek(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var k=this.queryEffectiveChildren("a");k&&W.target!==k&&k.click()}}});var Tvb;var qMC;var u28=_.iH(['<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>']),Ubs=_.gSA(u28);document.head.appendChild(Ubs.content);_.Av({_template:function(){if(qMC!==void 0)return qMC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Tvb===void 0&&(Tvb=document.createElement("template"));var n=Tvb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return qMC=W},
is:"tp-yt-paper-tabs",behaviors:[_.mV,_.W48],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(W){_.Ek(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,k,C,n){return!k||C?"hidden":W?n?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,k){var C="tabs-content";W&&(C+=" scrollable");if(!W||k)C+=" fit-container";return C},
_computeSelectionBarClass:function(W,k){var C="selection-bar";W?C+=" hidden":k&&(C+=" align-bottom");return C},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.dS._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,k){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,k)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,k){this.scrollable&&this._affectScroll(k&&-k.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,k){if(W){var C=this.$.tabsContent.getBoundingClientRect(),n=C.width,N=W.getBoundingClientRect();C=N.left-C.left;this._pos={width:this._calcPercent(N.width,n),left:this._calcPercent(C,n)};if(this.noSlide||k==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var B=k.getBoundingClientRect();k=this.items.indexOf(k);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=k<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(N.left+N.width-B.left,n)-5,this._left):this._positionBar(this._calcPercent(B.left+B.width-N.left,n)-5,this._calcPercent(C,n)+5);this.scrollable&&this._scrollToSelectedIfNeeded(N.width,C)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,k){k-=this.$.tabsContainer.scrollLeft;k<0?this.$.tabsContainer.scrollLeft+=k:(k+=W-this.$.tabsContainer.offsetWidth,k>0&&(this.$.tabsContainer.scrollLeft+=k))},
_calcPercent:function(W,k){return 100*W/k},
_positionBar:function(W,k){W=W||0;k=k||0;this._width=W;this._left=k;this.transform("translateX("+k+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var Orb;var Ll2;_.Av({_template:function(){if(Ll2!==void 0)return Ll2;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Orb===void 0&&(Orb=document.createElement("template"));var n=Orb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return Ll2=W},
is:"tp-yt-paper-textarea",behaviors:[mbC,_.E7],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var jU8;var HrY;/*

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 rpA=function(){};
_.Y=rpA.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
rpA=_.Av({is:"tp-yt-paper-toggle-button",_template:function(){if(HrY!==void 0)return HrY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;jU8===void 0&&(jU8=document.createElement("template"));var n=jU8;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return HrY=W},
behaviors:[_.qvI],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");_.ZR(this,function(){_.DR(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=y8._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var g4Y;var PAC;_.Av({_template:function(){if(PAC!==void 0)return PAC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;g4Y===void 0&&(g4Y=document.createElement("template"));var n=g4Y;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return PAC=W},
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 W=_.Ek(this).parentNode,k=_.Ek(this).getOwnerRoot(),C;this.for?C=_.Ek(k).querySelector("#"+this.for):C=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?k.host:W;return C},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Ek(this).textContent.trim()===""){for(var W=!0,k=_.Ek(this).getEffectiveChildNodes(),C=0;C<k.length;C++)if(k[C].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var k=this.offsetParent.getBoundingClientRect(),C=this._target.getBoundingClientRect(),n=this.getBoundingClientRect(),N=(C.width-n.width)/2,B=(C.height-n.height)/2,A=C.left-k.left,w=C.top-k.top;switch(this.position){case "top":var x=A+N;var E=w-n.height-W;break;case "bottom":x=A+N;E=w+C.height+W;break;case "left":x=A-n.width-W;E=w+B;break;case "right":x=A+C.width+
W,E=w+B}this.fitToVisibleBounds?(k.left+x+n.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,x)+"px",this.style.right="auto"),k.top+E+n.height>window.innerHeight?(this.style.bottom=k.height+"px",this.style.top="auto"):(this.style.top=Math.max(-k.top,E)+"px",this.style.bottom="auto")):(this.style.left=x+"px",this.style.top=E+"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(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var k=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":k+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":k+
"ms"})}return this.animationConfig[W][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 KlS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(KlS,_.US);var hms=_.ht(KlS,[0,_.Tv]);var Rv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Rv,_.US);var WGS=[3,4],kKb=[5,6];var C18=[0,WGS,kKb,_.wXC,-1,_.iA,_.x9Y,-1,B3b,bI8];var nox=_.ht(Rv,C18),N2s=_.W6(C18);var YyS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(YyS,_.US);var B2Y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(B2Y,_.US);var b0b=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(b0b,_.US);var Aus=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Aus,_.US);var FGb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(FGb,_.US);var ov=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(ov,_.US);ov.prototype.getSource=function(){return _.Jp(this,1)};
ov.prototype.getMessage=function(){return _.Vo(this,4)};
ov.prototype.getData=function(){return _.q7(this,FGb,8)};var wTb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(wTb,_.US);var iF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(iF,_.US);var Tu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Tu,_.US);var qn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(qn,_.US);qn.prototype.getUrl=function(){return _.Vo(this,1)};
qn.prototype.setUrl=function(W){return _.fU(this,1,W)};
qn.prototype.hasUrl=function(){return _.lE(_.wv(this,1))!=null};var xJz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(xJz,_.US);var l8A=[3];var t5S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(t5S,_.US);var uF=function(W){var k=new t5S;return _.up(k,2,W)};
t5S.prototype.getLanguage=function(){return IU(this,4,U7)};
var EoS=function(W){var k=uF(1);return _.b5(k,6,U7,W)},U7=[3,
4,5,6];var a82=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(a82,_.US);var O7=function(W){var k=new a82;return _.up(k,1,W)},LT=function(W,k){return _.b5(W,2,XT2,k)},XT2=[2,
3,4,5];var f8I=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(f8I,_.US);var jB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(jB,_.US);var dJ8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(dJ8,_.US);var mJz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(mJz,_.US);var zk8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(zk8,_.US);var DJA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(DJA,_.US);var HO=function(W){return _.q7(W,Tu,5)};var V5s=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(V5s,_.US);V5s.prototype.getValue=function(){return zv(this,1)};var Jub=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Jub,_.US);var rS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(rS,_.US);rS.prototype.getMetadata=function(){return _.St(this,mJz,7,gS)};
rS.prototype.hasMetadata=function(){return _.lA(this,mJz,7,gS)};
var cub=_.MNX(rS),gS=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var PO=function(W){this.JSC$9782_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
PO.prototype.getName=function(){return this.JSC$9782_name_};var hl=function(W,k){this.callback_=k;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new PO("");I8Y(this,W,this.rootDirectory_);KT(this)},I8Y=function(W,k,C){for(var n=0;n<k.length;n++){var N=k[n];
N.isFile?(W.fileOps_++,N.file((0,_.fN)(W.handleFileSuccess_,W,C),(0,_.fN)(W.handleFileError_,W))):W.unscannedDirectories_.push(new Syx(N,C))}},KT=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var k=W.unscannedDirectories_.shift(),C=k.entry,n=new PO(C.name);k=k.parent;k.directoryMap_[n.getName()]=n;k.directories_.push(n);C=C.createReader();C.readEntries((0,_.fN)(W.handleDirectorySuccess_,W,C,n),(0,_.fN)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
hl.prototype.handleDirectorySuccess_=function(W,k,C){I8Y(this,C,k);C.length==0?(this.directoryOps_--,KT(this)):W.readEntries((0,_.fN)(this.handleDirectorySuccess_,this,W,k),(0,_.fN)(this.handleDirectoryError_,this))};
hl.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;KT(this)};
hl.prototype.handleFileSuccess_=function(W,k){W.files_.push(k);this.fileOps_--;KT(this)};
hl.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;KT(this)};
var Syx=function(W,k){this.entry=W;this.parent=k};var Wn=function(W){_.xT.call(this);_.b6(W,"drop",this.onObjectsDropped_,!1,this);_.b6(W,"dragenter",this.onFilesDragged_,!1,this);_.b6(W,"dragover",this.onFilesDragged_,!1,this);_.b6(W,"dragleave",this.onDragLeave_,!1,this);_.b6(W,"dragend",this.onDragLeave_,!1,this)};
_.Pq(Wn,_.xT);var M5S=function(W,k){_.BS.call(this,"f");this.files=W;this.directories=k};
_.Pq(M5S,_.BS);var QHs=function(){_.BS.call(this,"h")};
_.Pq(QHs,_.BS);var pTs=function(){_.BS.call(this,"i")};
_.Pq(pTs,_.BS);var voY=function(){_.BS.call(this,"g")};
_.Pq(voY,_.BS);Wn.prototype.onObjectsDropped_=function(W){var k=this;W.preventDefault();var C=W.event_.dataTransfer;if((W=C&&C.items)&&W.length>0&&W[0].webkitGetAsEntry){C=[];for(var n=[],N=0;N<W.length;N++){var B=W[N].webkitGetAsEntry();B?C.push(B):n.push(W[N])}new hl(C,function(A,w,x){x?k.dispatchEvent(new voY("Error occurred while reading from the file system.")):k.dispatchEvent(new M5S(A,w,n))})}else(W=C&&C.files)&&this.dispatchEvent(new M5S(Array.from(W),[]))};
Wn.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new QHs);W.preventDefault()};
Wn.prototype.onDragLeave_=function(){this.dispatchEvent(new pTs)};var ekA=function(W,k){this.JSC$9805_name_=W;this.inputElement_=k};
ekA.prototype.getName=function(){return this.JSC$9805_name_};
ekA.prototype.getInputElement=function(){return this.inputElement_};var kk=function(W,k,C){k=k===void 0?"single_file":k;C=C===void 0?[]:C;_.xT.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.wu("scotty-overlay-parent");this.selectorType_=k;this.acceptTypes_=C;this.overlay_=sHs(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.D(kk,_.xT);
var sHs=function(W,k,C,n){var N=document.createElement("input");N.setAttribute("type","file");N.setAttribute("name","Filedata");_.b6(N,"change",W.onFilesSelected_,!1,W);C==="multiple_file"&&(N.multiple="true");C==="single_directory"&&(N.webkitdirectory="true");n.length>0&&N.setAttribute("accept",n.join(","));N.style.position="absolute";N.style.overflow="hidden";N.style.height="0px";N.style.width="0px";N.style.opacity="0";N.setAttribute("aria-hidden","true");N.setAttribute("tabIndex",-1);if(W.overlayTarget_!=
null)return N.style.height=k.offsetHeight+"px",N.style.width=k.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.IH(N,k),sy(N,new _.S3(k.offsetLeft,k.offsetTop)),N;W.parentOverlay_.appendChild(N);return N};
kk.prototype.click=function(){this.overlay_.click()};
kk.prototype.onFilesSelected_=function(W){a:{try{var k=(new XMLHttpRequest).upload!==void 0;break a}catch(E){}k=!1}if(k){var C;W=Array.from((C=W.target.files)!=null?C:[]);C=[];if(this.selectorType_==="single_directory"&&(_.Nb||_.GW||_.nr)){C=new PO("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(k=0;k<W.length;k++)for(var n=W[k],N=n.webkitRelativePath.split("/"),B=C,A=0;A<N.length;A++){var w=N[A];if(A==N.length-1){w!="."&&B.files_.push(n);break}var x=B.directoryMap_[w];x==void 0&&(w=
x=new PO(w),B.directoryMap_[w.getName()]=w,B.directories_.push(w));B=x}C=C.directories_}this.dispatchEvent(new GKA(W,C,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new GKA([],[],new ekA(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=sHs(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var GKA=function(W,k){_.BS.call(this,"j");this.files=W;this.directories=k};
_.D(GKA,_.BS);var yuS=function(W){this.uploadUrl_=W};var $JS=function(){_.xT.call(this)};
_.Pq($JS,_.xT);var C8=function(W){_.BS.call(this,W)};
_.Pq(C8,_.BS);var n8=function(W){_.BS.call(this,W)};
_.Pq(n8,_.BS);var Z0A=function(W,k,C,n,N){_.xT.call(this);C=document.createElement("form");C.setAttribute("method",k);C.setAttribute("enctype","multipart/form-data");C.setAttribute("encoding","multipart/form-data");k=document.createElement("input");k.setAttribute("type","hidden");k.setAttribute("name","metadata");k.setAttribute("value",N);C.appendChild(k);C.appendChild(n);this.JSC$9822_form_=C;W=new _.oA(W);_.$L(W,"upload_protocol","multipart");this.JSC$9822_url_=W.toString();this.JSC$9822_request_=new uP;this.state_=
"Ready";this.JSC$9822_errorDescription_=null;this.JSC$9822_eventHandler_=new _.j9(this);_.Bf(this,this.JSC$9822_eventHandler_);this.JSC$9822_eventHandler_.listen(this.JSC$9822_request_,"success",this.onTransferSuccess_);this.JSC$9822_eventHandler_.listen(this.JSC$9822_request_,"error",this.onTransferError_)};
_.D(Z0A,$JS);_.Y=Z0A.prototype;_.Y.run=function(){this.state_="Transferring";var W=this.JSC$9822_request_,k=this.JSC$9822_form_;if(W.JSC$9246_active_)throw Error("oe");var C=new _.oA(this.JSC$9822_url_||k.action);W.JSC$9246_form_=k;k=W.JSC$9246_form_;C=_.sz(C.toString());C!==void 0&&(k.action=C);xEA(W)};
_.Y.getResponseCode=function(){return null};
_.Y.getResponseText=function(){return this.JSC$9822_request_&&this.JSC$9822_request_.getResponseText()||null};
_.Y.JSC$25597_getErrorDescription=function(){return this.JSC$9822_errorDescription_};
_.Y.cancel=function(){this.JSC$9822_request_&&this.JSC$9822_request_.abort();this.state_="Cancelled";this.dispatchEvent(new C8("o"))};
_.Y.pause=function(){};
_.Y.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new C8("l"))};
_.Y.onTransferError_=function(){this.JSC$9822_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new C8("n"))};var Nt=function(){_.mP.call(this)};
_.D(Nt,_.mP);Nt.prototype.createXhr=function(){var W=_.mP.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.fN)(this.onProgress_,this));return W};
Nt.prototype.onProgress_=function(W){this.dispatchEvent(W)};var Rk8=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},i0z=function(W,k){var C=W.attempt_+1;
if(W.maxAttempts_>0&&C>W.maxAttempts_)return!1;C==0?k():W.delayCallId_=Xb(function(){W.delayCallId_=null;k()},oob(W),W);
W.attempt_=C;return!0};
Rk8.prototype.reset=function(){this.delayCallId_&&_.NX.clearTimeout(this.delayCallId_);this.attempt_=-1};
var oob=function(W){var k=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(k=Math.min(k,W.maxDelayMs_));return k};var p1X=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Yk=function(){_.xT.call(this);this.JSC$9832_request_=this.state_=null;this.JSC$9832_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9832_bytesTransferred_=0;this.retryIterator_=new Rk8;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9832_errorDescription_=null;this.JSC$9832_eventHandler_=new _.j9(this);_.Bf(this,this.JSC$9832_eventHandler_);this.JSC$9832_url_=this.blob_=null;this.JSC$9832_method_=void 0;this.chunkSize_=this.JSC$9832_metadata_=
this.JSC$9832_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9832_responseText_=this.JSC$9832_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Pq(Yk,$JS);_.Y=Yk.prototype;_.Y.run=function(){Bn(this)};
_.Y.getResponseCode=function(){return this.JSC$9832_responseCode_};
_.Y.getResponseText=function(){return this.JSC$9832_responseText_};
_.Y.JSC$25597_getErrorDescription=function(){return this.JSC$9832_errorDescription_};
_.Y.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9832_eventHandler_.removeAll();this.JSC$9832_request_&&this.JSC$9832_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new Nt,W.JSC$7668_withCredentials_=this.JSC$9832_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9832_bytesTransferred_=
0;this.dispatchEvent(new C8("o"))}};
_.Y.pause=function(){this.pauseRequested_=!0};
var Bn=function(W){var k=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=k,W.state_="Paused"):i0z(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$9832_request_=new Nt;var C=_.JU.clone(W.JSC$9832_headers_);W.blob_.size!=null&&(C["Content-Length"]=W.blob_.size);C=vXP(C);C["X-Goog-Upload-Protocol"]="resumable";C["X-Goog-Upload-Command"]="start";W.JSC$9832_eventHandler_.removeAll();W.JSC$9832_eventHandler_.listen(W.JSC$9832_request_,"complete",W.onStartComplete_);
W.JSC$9832_request_.JSC$7668_withCredentials_=W.JSC$9832_withCredentials_;W.JSC$9832_request_.send(W.JSC$9832_url_,W.JSC$9832_method_,W.JSC$9832_metadata_,C);W.lastCommandResponseCode_=null;W.dispatchEvent(new n8("q"));break;case "Upload":C=W.transferHandle_.uploadUrl_;var n=W.blob_.size;if(kX8()){var N=W.chunkSize_;var B=W.offset_+N>=n;n=W5Z(W.blob_,W.offset_,B?n:W.offset_+N)}else W.offset_=0,n=W.blob_,B=!0;W.JSC$9832_request_=new Nt;W.JSC$9832_request_.JSC$7668_withCredentials_=W.JSC$9832_withCredentials_;
W.JSC$9832_eventHandler_.removeAll();W.JSC$9832_eventHandler_.listen(W.JSC$9832_request_,"progress",W.onUploadProgress_);N=(0,_.fN)(W.JSC$9834_onUploadComplete_,W,W.offset_+n.size,B);W.JSC$9832_eventHandler_.listen(W.JSC$9832_request_,"complete",N);W.lastCommandResponseCode_=null;W.dispatchEvent(new n8("q"));B=Object.assign({},W.JSC$9832_headers_||{},{"X-Goog-Upload-Command":"upload"+(B?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$9832_request_.send(C,"POST",n,B);break;case "Query":W.JSC$9832_request_=
new Nt;W.JSC$9832_eventHandler_.removeAll();W.JSC$9832_eventHandler_.listen(W.JSC$9832_request_,"complete",W.onQueryComplete_);C=Object.assign({},W.JSC$9832_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$9832_request_.send(W.transferHandle_.uploadUrl_,"POST","",C);W.lastCommandResponseCode_=null;W.dispatchEvent(new n8("q"));break;default:throw Error("df");}})||bu(W,"Transfer encountered too many consecutive failures.")},bu=function(W,k){W.state_="Error";
W.JSC$9832_errorDescription_=k;W.dispatchEvent(new C8("n"))};
Yk.prototype.onStartComplete_=function(W){var k=W.target;this.lastCommandResponseCode_=k.getStatus();this.dispatchEvent(new n8("r"));if(T2x(k))qyY(this,k);else if(uHC(k)){W=ig(W.target.getAllResponseHeaders());for(var C in W)_.AK(C.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new C8("m"));C=Xv(W,"X-Goog-Upload-URL");W=(W=Xv(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;C===void 0||isNaN(W)||W<=0?bu(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new yuS(C),this.dispatchEvent(new C8("p")),this.state_="Upload",this.retryIterator_.reset(),Bn(this))}else Bn(this)};
Yk.prototype.onUploadProgress_=function(W){this.JSC$9832_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new C8("k"))};
Yk.prototype.JSC$9834_onUploadComplete_=function(W,k,C){var n=this,N,B;return _.F(function(A){switch(A.nextAddress){case 1:N=C.target;n.lastCommandResponseCode_=N.getStatus();n.dispatchEvent(new n8("r"));if(UJS(N)||N.getStatus()==404)return n.JSC$9832_bytesTransferred_=W,qyY(n,N),A.return();if(uHC(N)){A.jumpTo(2);break}if(!(B=n.detectCorruptedBlobEnabled_)){A.jumpTo(3);break}return _.l(A,O0S(n),4);case 4:B=A.yieldResult;case 3:if(B)return bu(n,"Blob has been modified or corrupted."),A.return();n.requireUploadRequestModification_=
N.getStatus()==400;n.state_="Query";Bn(n);return A.return();case 2:if(k)return bu(n,"Got a non-final success response after issuing a finalize command."),A.return();n.JSC$9832_bytesTransferred_=W;n.offset_=W;n.retryIterator_.reset();Bn(n);return A.return()}})};
Yk.prototype.onQueryComplete_=function(W){var k=W.target;this.lastCommandResponseCode_=k.getStatus();this.dispatchEvent(new n8("r"));T2x(k)?(k.getStatus()===200&&(this.JSC$9832_bytesTransferred_=this.blob_.size),qyY(this,k)):uHC(k)?(W=ig(W.target.getAllResponseHeaders()),W=parseInt(Xv(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?bu(this,"Server did not respond with current offset."):W<this.offset_?bu(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?bu(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$9832_bytesTransferred_=W,this.state_="Upload",Bn(this))):Bn(this)};
var qyY=function(W,k){W.JSC$9832_responseCode_=k.getStatus();var C=ig(k.getAllResponseHeaders());eeJ(C);W.JSC$9832_responseText_=k.getResponseText();W.state_="Response received";W.dispatchEvent(new C8("l"))},uHC=function(W){var k=W.getStatus();
W=ig(W.getAllResponseHeaders());W=Xv(W,"X-Goog-Upload-Status");return k===200&&W==="active"},UJS=function(W){W=ig(W.getAllResponseHeaders());
return Xv(W,"X-Goog-Upload-Status")==="final"},T2x=function(W){if(UJS(W))return!0;
W=W.getStatus();return W>=400&&W<500},O0S=function(W){var k;
return _.F(function(C){if(C.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return C.return(!1);if(W.blob_.size!==W.originalBlobSize_)return C.return(!0);_.F0(C,2);if(k=W5Z(W.blob_,0,1)){var n=new Sz,N=MYC(n);n.reader_.readAsBinaryString(k);C=_.l(C,N,4)}else C=C.return(!0);return C}if(C.nextAddress!=2)return C.return(W.blob_.size!==W.originalBlobSize_);_.EF(C);return C.return(!0)})};var LGZ=function(W,k,C,n,N,B){_.xT.call(this);this.payload_=n;this.JSC$9835_url_=W;this.JSC$9835_method_=k;this.JSC$9835_headers_=C;this.JSC$9835_metadata_=N;this.encoding_=B||"binary";W=new _.lP;this.boundary_="uploader-"+sg()+"-"+W.JSC$9095_toIsoString();this.JSC$9835_responseText_=this.JSC$9835_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9835_errorDescription_=null;this.JSC$9835_eventHandler_=new _.j9(this);_.Bf(this,this.JSC$9835_eventHandler_)};
_.D(LGZ,$JS);_.Y=LGZ.prototype;
_.Y.run=function(){var W=_.JU.clone(this.JSC$9835_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=vXP(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Nt;this.JSC$9835_eventHandler_.removeAll();this.JSC$9835_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9835_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9835_url_,this.JSC$9835_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9835_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",W)};
_.Y.getResponseCode=function(){return this.JSC$9835_responseCode_};
_.Y.getResponseText=function(){return this.JSC$9835_responseText_};
_.Y.JSC$25597_getErrorDescription=function(){return this.JSC$9835_errorDescription_};
_.Y.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9835_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new C8("o")))};
_.Y.pause=function(){};
_.Y.onTransferProgress_=function(){this.dispatchEvent(new C8("k"))};
_.Y.onTransferComplete_=function(W){var k=W.target.getStatus();k===void 0||k===-1?(this.JSC$9835_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new C8("n"))):(this.JSC$9835_responseCode_=k,W=W.target,k=ig(W.getAllResponseHeaders()),eeJ(k),this.JSC$9835_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new C8("l")))};_.jHS=function(W,k,C,n){n=n===void 0?!1:n;if(C instanceof ekA)return new Z0A(W,"POST",k,C.getInputElement(),"");if(typeof C==="string"||C instanceof String)return new LGZ(W,"POST",k,C,"");var N=new Yk(void 0);N.JSC$9832_url_=W;N.JSC$9832_method_="POST";N.JSC$9832_headers_=k;N.blob_=C;N.originalBlobSize_=C.size;N.JSC$9832_metadata_="";n&&(N.JSC$9832_withCredentials_=n);N.state_="Start";return N};var AT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(AT,_.US);_.Y=AT.prototype;_.Y.getEnableSsEngine=function(){return _.ml(this,2)};
_.Y.getEnableAwr=function(){return _.ml(this,3)};
_.Y.getAlohaAutoGaRollout=function(){return _.ml(this,5)};
_.Y.getEnableConfigurator=function(){return _.ml(this,6)};
_.Y.getEnableMweb=function(){return _.ml(this,7)};
var ruS=function(){var W=H0S();return _.da(W,7,!0)};
AT.prototype.getEnableCtlConsentCheckbox=function(){return _.ml(this,8)};
AT.prototype.getEnableIframe=function(){return _.ml(this,9)};
var H0S=function(){var W=new AT;W=_.da(W,5,!0);W=_.da(W,2,!0);W=_.da(W,4,!1);W=_.da(W,8,!0);return _.da(W,9,!0)};
AT.prototype.getEnableScreenshotNudge=function(){return _.ml(this,10)};
var gos=function(){var W=ruS();return _.da(W,10,!0)};
AT.prototype.getEnableWebStartupConfigEndpoint=function(){return _.ml(this,11)};
AT.prototype.getEnableJunkNudge=function(){return _.ml(this,12)};
var rCm=function(){var W=gos();return _.da(W,12,!0)};
_.Y=AT.prototype;_.Y.getEnableConfiguratorLocale=function(){return _.ml(this,13)};
_.Y.getEnableTinyNoPointer=function(){return _.ml(this,14)};
_.Y.getEnableSupportSessionLogging=function(){return _.ml(this,15)};
_.Y.getEnableFileUploadForScreenshot=function(){return _.ml(this,16)};
_.Y.getEnableDirectDeflectionForSingleCategory=function(){return _.ml(this,17)};
_.Y.getEnableImageSanitization=function(){return _.ml(this,18)};
_.Y.getEnableAlohaBinarySplit=function(){return _.ml(this,19)};
_.Y.getEnableDbFeedbackIntents=function(){return _.ml(this,20)};
_.Y.getEnableMarkMandatoryFieldsWithRequired=function(){return _.ml(this,21)};
_.Y.getEnableFeedbackCategoryCustomUi=function(){return _.ml(this,22)};
_.Y.getEnableRealtimeCtl=function(){return _.ml(this,23)};var HFw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(HFw,_.US);var sRp=[/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 yCm="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 $RK=_.iH(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ZFI=_.iH(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var oXm,T1w;var P1b,KGA;
P1b=function(W,k,C){W.timeOfStartCall=(new Date).getTime();var n=C||_.NX,N=n.document,B=W.nonce||_.qa(n.document);B&&!W.nonce&&(W.nonce=B);if(W.flow=="help"){var A=_.QK("document.location.href",n);!W.helpCenterContext&&A&&(W.helpCenterContext=A.substring(0,1200));A=!0;if(k&&JSON&&JSON.stringify){var w=JSON.stringify(k);(A=w.length<=1200)&&(W.psdJson=w)}A||(k={invalidPsd:!0})}k=[W,k,C];n.GOOGLE_FEEDBACK_START_ARGUMENTS=k;C=W.feedbackServerUri||"//www.google.com/tools/feedback";if(A=n.GOOGLE_FEEDBACK_START)A.apply(n,k);
else{n=C+"/load.js?";for(var x in W)k=W[x],k==null||_.O2(k)||(n+=encodeURIComponent(x)+"="+encodeURIComponent(k)+"&");W=aO(N).createElement("SCRIPT");B&&W.setAttribute("nonce",B);_.LL(W,_.to(n));N.body.appendChild(W)}};
KGA=function(W,k,C,n){var N,B;_.F(function(A){N=C||_.NX;var w=W.serverEnvironment==="DEV",x=C||_.NX;x=W.nonce||_.qa(x.document);w={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:w,nonce:x,useNightlyRelease:w,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};k&&(x=new Map(Object.entries(k)),w.extraData.productSpecificData=x);B=w;return _.l(A,OFJ(B,n,N),0)})};
_.hk2=function(W,k,C){try{if(W.flow==="help"){var n=W.helpCenterPath.replace(/^\//,"");_.Ti(C||window,"https://support.google.com/"+n)}else W.flow==="submit"?P1b(W,k,C):gXp(W.productId,W.feedbackServerUri).then(function(N){N=_.q7(N,AT,1);var B=!Qoc||(N==null?void 0:N.getEnableMweb()),A=!W.tinyNoPointer||(N==null?void 0:N.getEnableTinyNoPointer());!N||N.getAlohaAutoGaRollout()&&B&&A?KGA(W,k,C,N):P1b(W,k,C)},function(N){N&&N.name!=="DuplicateFormError"&&P1b(W,k,C)})}catch(N){KGA(W,k,C,null)}};
_.$g("userfeedback.api.startFeedback",_.hk2);var Pc3=/https?:\/\/\S+\.\S+/,KeJ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],heJ=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var ItX=function(W){var k=W.split(""),C=[-263237435,15,k,function(n,N,B){var A=N.length;B.forEach(function(w,x,E){this.push(E[x]=N[(N.indexOf(w)-N.indexOf(this[x])+x+A--)%N.length])},n.split(""))},
function(n,N){n=(n%N.length+N.length)%N.length;N.splice(-n).reverse().forEach(function(B){N.unshift(B)})},
"response",function(){for(var n=64,N=[];++n-N.length-32;){switch(n){case 58:n-=14;case 91:case 92:case 93:continue;case 123:n=47;case 94:case 95:case 96:continue;case 46:n=95}N.push(String.fromCharCode(n))}return N},
null,12,1540023973,65941107,null,k,function(n,N){for(n=(n%N.length+N.length)%N.length;n--;)N.unshift(N.pop())},
695603893,function(n){for(var N=n.length;N;)n.push(n.splice(--N,1)[0])},
"'[;'[(",function(n,N){n.push(N)},
null,function(n,N,B,A,w){return N(B,A,w)},
"continuation",k,function(n,N){if(n.length!=0){N=(N%n.length+n.length)%n.length;var B=n[0];n[0]=n[N];n[N]=B}},
function(){for(var n=64,N=[];++n-N.length-32;){switch(n){case 91:n=44;continue;case 123:n=65;break;case 65:n-=18;continue;case 58:n=96;continue;case 46:n=95}N.push(String.fromCharCode(n))}return N},
'"),/]];'];C[7]=C;C[11]=C;C[18]=C;try{(((0,C[15])(C[21]),C[22])(C[11],C[9]),C[22])(C[new Date("1970-01-01T04:30:12.000+04:30")/1E3],C[1]),((0,C[22])(C[11],C[23]),C[4])(C[10],C[18]),(0,C[20])(C[21],C[14])<<(0,C[17])(C[18],C[1]),(0,C[4])(C[8],C[21]),(0,C[19])((0,C[19])((0,C[17])(C[7],C[9]),C[3],C[20],(0,C[6])(),C[2]),C[3],C[5],(0,C[15])(),C[2])}catch(n){return"aTlOUOubTO4AP____8P_"+W}return k.join("")};_.WPI=new _.r("runAttestationCommand");var kqC=new _.r("verifyCommand");_.vB=new _.r("accessibilityContext");var CsI=new _.r("accessibilityData");var nTA=new _.r("profileCardCommand");var zGw=new _.r("signInEndpoint");var mGw=new _.r("signOutEndpoint");var YYx;_.NmA=new _.r("accountItemSectionRenderer");YYx=new _.r("accountItemRenderer");_.BmY=new _.r("saveCommandToSessionStorageAction");var bxs=new _.r("crossAccountChannelTransferEndpoint");var fb2=new _.r("getAccountMenuEndpoint");_.dOP=new _.r("getAccountSwitcherEndpoint");var Xbm=new _.r("getAccountsListEndpoint");var Abs=new _.r("getAccountsListInnertubeEndpoint");_.FP8=new _.r("addToToastAction");var wS8=new _.r("hideEnclosingAction");_.F5=new _.r("replaceEnclosingAction");_.xex=new _.r("buttonRefreshAction");var luZ=new _.r("adsControlFlowOpportunityReceivedCommand");var tZC=new _.r("openAdAllowlistInstructionCommand");var ETY=new _.r("videoMastheadAdPrimaryVideoRenderer");var au8=new _.r("displayAdRenderer");var Fdw=new _.r("instreamVideoAdRenderer");_.XSs=new _.r("inFeedAdLayoutRenderer");var fu2=new _.r("sequenceItemInPlayerAdLayoutRenderer");_.deb=new _.r("adSlotRenderer");var me8=new _.r("adAvatarViewModel");var zOA=new _.r("adBadgeViewModel");var Dez=new _.r("adButtonViewModel");var wc=new _.r("adImageViewModel");var Qxc=new _.r("reelsAdCardButtonedViewModel");var VZS=new _.r("reelsPlayerOverlayLayoutViewModel");var Jbb=new _.r("showSchedulingPanelCommand");var cb8=new _.r("backstageCommentsRenderer");var IuI=new _.r("backstageImageRenderer");var SYA=new _.r("backstagePostRenderer");var MZZ=new _.r("postRenderer");var Qab=new _.r("sharedPostRenderer");var pSs=new _.r("createBackstagePostEndpoint");var vT8=new _.r("getPostVideoPreviewEndpoint");var eOx=new _.r("updateBackstagePostEndpoint");var saS=new _.r("filterChipTransformCommand");var GqC=new _.r("insertRichSectionCommand");var YwX=new _.r("talkToRecsDeselectCommand");var ybA=new _.r("talkToRecsNextCommand");var NG2=new _.r("talkToRecsSelectCommand");var $e8=new _.r("talkToRecsUpdateTextCommand");_.kZ=new _.r("browseEndpoint");_.ZxY=new _.r("confirmDialogEndpoint");var ROZ=new _.r("expandOnHoverCardRenderer");var oTY=new _.r("lumiereShelfDetailsRenderer");var ixx=new _.r("revealBusinessEmailCommand");var Tmx=new _.r("validateChannelHandleCommand");var qYs=new _.r("channelCreationFormEndpoint");var ubS=new _.r("aboutChannelViewModel");var UeY=new _.r("channelThumbnailWithLinkRenderer");var Oxz=new _.r("channelCreationServiceEndpoint");var LP8=new _.r("updateChannelPageSettingsEndpoint");var xk=function(W){this.delegate=W},lu=function(){xk.apply(this,arguments)};
_.D(lu,xk);_.oq.Object.defineProperties(lu.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var jaZ=function(){lu.apply(this,arguments)};
_.D(jaZ,lu);jaZ.prototype.getAssociations=function(){return[]};var pWc=new _.r("webThumbnailDetailsExtensionData");var ehX=new _.r("commandContext");var Hxx=new _.r("addVideoLinkAction");var rbS=new _.r("createPollAction");var gTI=new _.r("hideIdentityChipAction");var PsC=new _.r("openUpdateCommentDialogAction");var tT=new _.r("updateBackstagePollAction");var KPA=new _.r("updateCommentVoteAction");var hOA=new _.r("commentThreadRenderer");var WeZ=function(){lu.apply(this,arguments)};
_.D(WeZ,lu);WeZ.prototype.getAssociations=function(){return[]};_.kcs=new _.r("commentDialogRenderer");var Ccs=new _.r("updateCommentsSettingsEndpoint");var nXI=new _.r("commentViewModel");var N1z=new _.r("triStateButtonViewModel");var Y3I=new _.r("voiceReplyContainerViewModel");_.Nl=new _.r("commandExecutorCommand");var Ei=new _.r("emoji");var B12=new _.r("updateCreatorChannelInnertubeCommand");_.bFY=new _.r("appendContinuationItemsAction");_.AC8=new _.r("changeEngagementPanelVisibilityAction");_.dE=new _.r("continuationCommand");var Feb=new _.r("listMutationCommand");_.Eq=new _.r("openPopupAction");var fTA;_.w1s=new _.r("playlistRemoveVideosAction");_.xRs=new _.r("updatePlaylistAction");_.lTY=new _.r("addToPlaylistCommand");_.tTA=new _.r("endPlaylistCommand");_.EXs=new _.r("recoverPlaylistCommand");_.aT2=new _.r("refreshPlaylistCommand");_.X1S=new _.r("refreshFormCommand");fTA=new _.r("openOnePickAddVideoModalCommand");_.cN4=new _.r("reloadContinuationItemsCommand");_.dRY=new _.r("scrollToEngagementPanelCommand");var mRx=new _.r("showReloadUiCommand");var zeb=new _.r("undoFeedbackAction");var DR8=new _.r("updateButtonAction");var LH3=new _.r("updateSubscribeButtonAction");var VTI=new _.r("updateToggleAction");_.Ok=new _.r("webCommandMetadata");_.au=new _.r("webHandleServiceEndpointExtension");var JGw=new _.r("webNavigationEndpointData");var JCs=new _.r("copyLinkCommand");var cCs=new _.r("playlistVotingRefreshPopupCommand");var ITA=new _.r("selectChipCommand");var S3Z=new _.r("setCookieCommand");var MTb=new _.r("setLocalStorageCommand");var QRC=new _.r("setPrefStorageEntryCommand");var sR8;_.p1S=new _.r("settingsUpdateCheckboxCommand");_.vXY=new _.r("settingsUpdateTextCommand");_.eeI=new _.r("settingsUpdateOptionsCommand");sR8=new _.r("settingsUpdateSwitchCommand");_.GcI=new _.r("settingsUpdateConnectedAppRendererCommand");var yCs=new _.r("updateTextInputFormFieldRendererCommand");var $RS=new _.r("updateToggleButtonStateCommand");var ZFA=new _.r("updateUrlParamCommand");var Res=new _.r("webSubmitFormCommand");var oXs=new _.r("channelSwitcherPageRenderer"),iF8=new _.r("updateChannelSwitcherPageAction");_.K6=new _.r("continuationItemRenderer");_.X5=new _.r("richItemRenderer");var T18=new _.r("richSectionRenderer");_.q38=new _.r("richShelfRenderer");_.u$x=new _.r("metadataBadgeRenderer");_.UR8=new _.r("multiPageMenuNotificationSectionRenderer");_.OFI=new _.r("playlistLoopButtonStateRenderer");var Le8=new _.r("claimLegacyYoutubeChannelEndpoint");var jR8=new _.r("getNotificationMenuEndpoint");var HF8=new _.r("getSearchInVideoCommand");_.rCs=new _.r("getTranscriptEndpoint");_.AQ=new _.r("signalServiceEndpoint");var gX8=new _.r("verifyAgeEndpoint");var Qnm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Qnm,_.US);Qnm.prototype.getPath=function(){return _.Vo(this,1)};
Qnm.prototype.getValue=function(){return _.Vo(this,2)};var Pcx=[0,_.RU,-1];var KeI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(KeI,_.US);var M4m=_.ht(KeI,[0,_.oU,Pcx]);var heI=new _.r("dismissalEndpoint");var Wfs=new _.r("elementsCommand");_.XZ=new _.r("innertubeCommand");var k$z=new _.r("multipleInlinePlaybackCommand");var BWP=new _.r("loggingDirectives");var Pfz={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 CfZ=new _.r("acknowledgeChannelTouStrikeCommand");var nv2=function(){lu.apply(this,arguments)};
_.D(nv2,lu);nv2.prototype.getAssociations=function(){return[]};var NDs=function(){lu.apply(this,arguments)};
_.D(NDs,lu);NDs.prototype.getAssociations=function(){return[]};var pn=new _.r("entityBatchUpdate");_.YOb=new _.r("entityUpdateCommand");var BDY=function(){lu.apply(this,arguments)};
_.D(BDY,lu);BDY.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.J8(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.J8(new Set(W)))};var b_I=function(){lu.apply(this,arguments)};
_.D(b_I,lu);b_I.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.J8(new Set(W)))};
var AkC=function(){lu.apply(this,arguments)};
_.D(AkC,lu);AkC.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var k=_.b(this.delegate.entries),C=k.next();!C.done;C=k.next())W.push.apply(W,_.J8((new FfI(C.value)).getAssociations()));return[].concat(_.J8(new Set(W)))};
var FfI=function(){xk.apply(this,arguments)};
_.D(FfI,xk);FfI.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.J8(new Set(W)))};var w0z=function(){lu.apply(this,arguments)};
_.D(w0z,lu);w0z.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.J8(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.J8(new Set(W)))};
var xFb=function(){lu.apply(this,arguments)};
_.D(xFb,lu);xFb.prototype.getAssociations=function(){return[]};var lm8=new _.r("fantasyRosterViewModel");var tFb=new _.r("addFollowUpSurveyCommand");var EvI=new _.r("getSurveyCommand");var amx=new _.r("ratingSurveyOptionRenderer");_.I5=new _.r("feedbackEndpoint");var X0A=new _.r("reportHistoryTableCellRenderer"),fmb=new _.r("reportHistoryTableTextCellRenderer"),dFY=new _.r("reportHistoryTableReasonCellRenderer");_.mFx=new _.r("flagEndpoint");var zXs=new _.r("getFlowCommand");var DFb=new _.r("submitFormWithValidationFlowCommand");var VFs=function(){lu.apply(this,arguments)};
_.D(VFs,lu);VFs.prototype.getAssociations=function(){return[]};var JkI=new _.r("flowFormState");var ckY=new _.r("gameCardRenderer");var ImS=new _.r("accountLinkingStateChangedCommand");var SO2=function(){lu.apply(this,arguments)};
_.D(SO2,lu);SO2.prototype.getAssociations=function(){return[]};var MFb=new _.r("changeMiniAppPlayStateCommand");var QVs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(QVs,_.US);var f8=[1,2,3];var p0z=[0,f8,k42,_.Cw8,H$m];var vvS=_.ht(QVs,p0z),eX8=_.W6(p0z);var sV8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(sV8,_.US);var G$Y=[0,_.yo,_.RU];var ykx=[0,_.RU];var $F2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D($F2,_.US);var Z_I=function(W,k){return _.up(W,3,k)};var RXx=_.W6([0,1,G$Y,_.Tv,ykx]);var ovA=new _.r("miniAppScoreChallengeViewModel");var i_z=new _.r("miniGameCardViewModel");var TDZ=new _.r("teaserCardViewModel");var qOS=function(){lu.apply(this,arguments)};
_.D(qOS,lu);qOS.prototype.getAssociations=function(){return[]};_.uzb=new _.r("feedbackItemRenderer");var UFs={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD"};var O_x=function(){lu.apply(this,arguments)};
_.D(O_x,lu);O_x.prototype.getAssociations=function(){return[]};_.Lfb=new _.r("playerInterstitialRenderer");var jVZ=new _.r("getKidsBlocklistPickerCommand");_.H_8=new _.r("updateKidsBlacklistEndpoint");_.RZ=new _.r("likeEndpoint");var rkY,gvA,Pf2;rkY=new _.r("addChatItemAction");gvA=new _.r("removeChatItemAction");Pf2=new _.r("markChatItemAsDeletedAction");_.KfC=new _.r("setLiveChatCollapsedStateAction");var hXA=function(){lu.apply(this,arguments)};
_.D(hXA,lu);hXA.prototype.getAssociations=function(){return[]};var WFs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(WFs,_.US);var k0Y=_.ht(WFs,[0,1,_.yo]);var CPA=new _.r("liveChatEndpoint");var nMA=new _.r("liveChatItemContextMenuEndpoint");var N4s=new _.r("liveChatReplayEndpoint");_.YnC=new _.r("emojiPickerRenderer");var B48=new _.r("liveChatAuthorBadgeViewModel");var b3C=new _.r("deleteLiveChatMessageCommand");var A9s=new _.r("liveChatActionEndpoint");var FFS=new _.r("createLiveChatPollEndpoint");var wF8=new _.r("manageLiveChatUserEndpoint");var xVS=new _.r("moderateLiveChatEndpoint");_.l2Y=new _.r("sendLiveChatMessageEndpoint");var tzA=new _.r("sendLiveChatVoteEndpoint");var EMC=new _.r("clearLocationCommand");var a22=new _.r("resolveLocationCommand");var XFA=new _.r("interactionLoggingCommandMetadata");var C9w=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(C9w,_.US);var ksX=function(W,k){return _.CN(W,1,k)};var f2Y=[0,_.ZB];var W6I=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(W6I,_.US);var hTm=function(W,k){return NP(W,1,C9w,k)};W6I.prototype.JSC$9926_serializeBinary=Szc([0,_.oU,f2Y]);var DFw={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 dVs={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"},
mVs={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 HIm={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"};_.jdw=new _.r("logFlowLoggingEventCommand");_.yPP=new _.r("loggingContext");var zM2=new _.r("captionLanguageSelectActionCommand");var DVS=new _.r("showCaptionLanguageSelectActionCommand");var Vzs=new _.r("dismissDialogEndpoint");var J9z=new _.r("hideItemSectionVideosByIdCommand");var c9C=new _.r("showMiniplayerCommand");var I28=function(){lu.apply(this,arguments)};
_.D(I28,lu);I28.prototype.getAssociations=function(){return[]};var SnY=function(){lu.apply(this,arguments)};
_.D(SnY,lu);SnY.prototype.getAssociations=function(){return[]};var MzS=function(){lu.apply(this,arguments)};
_.D(MzS,lu);MzS.prototype.getAssociations=function(){return[]};var Qy8=function(){lu.apply(this,arguments)};
_.D(Qy8,lu);Qy8.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.J8(new Set(W)))};var pFS=function(){lu.apply(this,arguments)};
_.D(pFS,lu);pFS.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var k=_.b(this.delegate.downloads),C=k.next();!C.done;C=k.next())W.push.apply(W,_.J8((new vMs(C.value)).getAssociations()));return[].concat(_.J8(new Set(W)))};
var vMs=function(){xk.apply(this,arguments)};
_.D(vMs,xk);vMs.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.J8(new Set(W)))};var eMx=function(){lu.apply(this,arguments)};
_.D(eMx,lu);eMx.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.J8(this.delegate.localImageEntities));return[].concat(_.J8(new Set(W)))};var syx=function(){lu.apply(this,arguments)};
_.D(syx,lu);syx.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.J8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.J8(new Set(W)))};var G0Y=function(){lu.apply(this,arguments)};
_.D(G0Y,lu);G0Y.prototype.getAssociations=function(){return[]};var y9A=function(){lu.apply(this,arguments)};
_.D(y9A,lu);y9A.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.J8(this.delegate.fakeChildren));return[].concat(_.J8(new Set(W)))};var $VC=function(){lu.apply(this,arguments)};
_.D($VC,lu);$VC.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.J8(new Set(W)))};var Z3S=function(){lu.apply(this,arguments)};
_.D(Z3S,lu);Z3S.prototype.getAssociations=function(){return[]};var RMz=function(){lu.apply(this,arguments)};
_.D(RMz,lu);RMz.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.J8(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.J8(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.J8(new Set(W)))};var oMs=function(){lu.apply(this,arguments)};
_.D(oMs,lu);oMs.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.J8(new Set(W)))};var i38=function(){xk.apply(this,arguments)};
_.D(i38,xk);i38.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.J8((new T42(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.J8(new Set(W)))};
var T42=function(){xk.apply(this,arguments)};
_.D(T42,xk);T42.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.J8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.J8(new Set(W)))};var qnS=function(){xk.apply(this,arguments)};
_.D(qnS,xk);qnS.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.J8(new Set(W)))};var uhs=function(){lu.apply(this,arguments)};
_.D(uhs,lu);uhs.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.J8((new qnS(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.J8((new i38(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.J8(new Set(W)))};var UVI=function(){lu.apply(this,arguments)};
_.D(UVI,lu);UVI.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.J8(new Set(W)))};var O3C=function(){lu.apply(this,arguments)};
_.D(O3C,lu);O3C.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.J8(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.J8(new Set(W)))};var m$m=new _.r("downloadsPageSmartDownloadsOptInBannerParams");var LFS=function(){lu.apply(this,arguments)};
_.D(LFS,lu);LFS.prototype.getAssociations=function(){return[]};var jyz=function(){lu.apply(this,arguments)};
_.D(jyz,lu);jyz.prototype.getAssociations=function(){return[]};var H3I=function(){lu.apply(this,arguments)};
_.D(H3I,lu);H3I.prototype.getAssociations=function(){return[]};var r9s=function(){lu.apply(this,arguments)};
_.D(r9s,lu);r9s.prototype.getAssociations=function(){return[]};var gMb=function(){lu.apply(this,arguments)};
_.D(gMb,lu);gMb.prototype.getAssociations=function(){return[]};var PPZ=function(){lu.apply(this,arguments)};
_.D(PPZ,lu);PPZ.prototype.getAssociations=function(){return[]};var KFx=function(){lu.apply(this,arguments)};
_.D(KFx,lu);KFx.prototype.getAssociations=function(){return[]};var hMS=function(){lu.apply(this,arguments)};
_.D(hMS,lu);hMS.prototype.getAssociations=function(){return[]};var eTm=new _.r("dislikeButtonViewModel");var vpP=new _.r("likeButtonViewModel");var WVx=new _.r("videoSummaryContentViewModel");var O9P=new _.r("videoSummaryParagraphViewModel");var kub=new _.r("changeTimelyActionVisibilityCommand");var CF8=new _.r("hideEngagementPanelEndpoint");var nqC=new _.r("refreshPanelEndpoint");var NSC=new _.r("scrollToSectionEndpoint");var Y7S=new _.r("seekToVideoTimestampCommand");_.cq=new _.r("showEngagementPanelEndpoint");var BSZ=new _.r("showTransientPlayerScrimOverlayCommand");var bTA=new _.r("toggleEngagementPanelCommand");_.Al8=new _.r("createBroadcastCommand");var FV8=new _.r("metadataUpdateCommand");var wO8=function(){lu.apply(this,arguments)};
_.D(wO8,lu);wO8.prototype.getAssociations=function(){return[]};var xnY=function(){lu.apply(this,arguments)};
_.D(xnY,lu);xnY.prototype.getAssociations=function(){return[]};var lIz=function(){lu.apply(this,arguments)};
_.D(lIz,lu);lIz.prototype.getAssociations=function(){return[]};_.tBx=new _.r("merchandiseShelfRenderer");var Eqs=new _.r("gridMovieRenderer");_.aI8=new _.r("movieRenderer");var XOz=function(){lu.apply(this,arguments)};
_.D(XOz,lu);XOz.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.J8(this.delegate.trackDownloadMetadatas));return[].concat(_.J8(new Set(W)))};var fIA=function(){lu.apply(this,arguments)};
_.D(fIA,lu);
fIA.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.J8(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.J8(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.J8(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.J8(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.J8(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.J8(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.J8(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.J8(this.delegate.metadataOnlyTracks));return[].concat(_.J8(new Set(W)))};var dns=function(){lu.apply(this,arguments)};
_.D(dns,lu);dns.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.J8(this.delegate.trackDownloadMetadatas));return[].concat(_.J8(new Set(W)))};var mns=function(){lu.apply(this,arguments)};
_.D(mns,lu);mns.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.J8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.J8(new Set(W)))};var zWZ=function(){lu.apply(this,arguments)};
_.D(zWZ,lu);
zWZ.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.J8(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.J8(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.J8(new Set(W)))};
var DnC=function(){lu.apply(this,arguments)};
_.D(DnC,lu);DnC.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.J8(this.delegate.tracks));return[].concat(_.J8(new Set(W)))};
var VBY=function(){lu.apply(this,arguments)};
_.D(VBY,lu);VBY.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.J8(new Set(W)))};var JlI=function(){lu.apply(this,arguments)};
_.D(JlI,lu);JlI.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.J8(new Set(W)))};
var clY=function(){lu.apply(this,arguments)};
_.D(clY,lu);clY.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.J8(new Set(W)))};
var IIz=function(){lu.apply(this,arguments)};
_.D(IIz,lu);IIz.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.J8(new Set(W)))};var S7Y=function(){lu.apply(this,arguments)};
_.D(S7Y,lu);S7Y.prototype.getAssociations=function(){return[]};var MBA=function(){lu.apply(this,arguments)};
_.D(MBA,lu);MBA.prototype.getAssociations=function(){return[]};var QvS=function(){lu.apply(this,arguments)};
_.D(QvS,lu);
QvS.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.J8(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.J8((new pOS(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.J8(new Set(W)))};
var pOS=function(){xk.apply(this,arguments)};
_.D(pOS,xk);pOS.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.J8(new Set(W)))};var vqA=function(){lu.apply(this,arguments)};
_.D(vqA,lu);vqA.prototype.getAssociations=function(){return[]};var eWA=function(){lu.apply(this,arguments)};
_.D(eWA,lu);
eWA.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.J8(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.J8(new Set(W)))};
var sv2=function(){lu.apply(this,arguments)};
_.D(sv2,lu);sv2.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.J8(new Set(W)))};
var Gu8=function(){lu.apply(this,arguments)};
_.D(Gu8,lu);Gu8.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.J8(new Set(W)))};var jy=new _.r("musicResponsiveListItemRenderer");var QQK=new _.r("addToPlaylistEndpoint");var ylS=new _.r("captionPickerEndpoint");var $nz=new _.r("suggestStats");var ZT8=new _.r("backstageImageUploadEndpoint");var RWx=new _.r("createBackstagePostDialogEndpoint");_.oqZ=new _.r("createCommentReplyDialogEndpoint");_.iTb=new _.r("updateCommentDialogEndpoint");_.TSA=new _.r("updateCommentReplyDialogEndpoint");var q7z=new _.r("menuEndpoint");var mU2=new _.r("modalEndpoint");var uF2=new _.r("playlistEditorEndpoint");var Uns=new _.r("copyTextEndpoint");var OTz,LVs;OTz=new _.r("shareEndpoint");LVs=new _.r("shareEntityEndpoint");_.jvC=new _.r("shareEntityServiceEndpoint");_.T92=new _.r("userFeedbackEndpoint");_.RA=new _.r("watchEndpoint");var DCm=new _.r("watchPlaylistEndpoint");var HT8=new _.r("addUpcomingEventReminderEndpoint");_.dc=new _.r("getCommentsFromInboxCommand");var rl2=new _.r("notificationOptOutEndpoint");var gq8=new _.r("recordNotificationInteractionsEndpoint");var PFs=new _.r("removeUpcomingEventReminderEndpoint");var Slc=new _.r("getDownloadActionCommand");_.KVY=new _.r("offlineOrchestrationActionCommand");var hWz=function(){lu.apply(this,arguments)};
_.D(hWz,lu);hWz.prototype.getAssociations=function(){return[]};var WBY=function(){lu.apply(this,arguments)};
_.D(WBY,lu);WBY.prototype.getAssociations=function(){return[]};var kQA=function(){lu.apply(this,arguments)};
_.D(kQA,lu);kQA.prototype.getAssociations=function(){return[]};var CuA=function(){lu.apply(this,arguments)};
_.D(CuA,lu);CuA.prototype.getAssociations=function(){return[]};var nkx=function(){lu.apply(this,arguments)};
_.D(nkx,lu);nkx.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.J8(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.J8(new Set(W)))};var NcC=function(){lu.apply(this,arguments)};
_.D(NcC,lu);NcC.prototype.getAssociations=function(){return[]};var YqY=function(){lu.apply(this,arguments)};
_.D(YqY,lu);YqY.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.J8(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.J8(this.delegate.captionTrack));return[].concat(_.J8(new Set(W)))};var BcZ=function(){lu.apply(this,arguments)};
_.D(BcZ,lu);BcZ.prototype.getAssociations=function(){return[]};var b8z=new _.r("showMoreDrawerCommand");var AT8=new _.r("updateEngagementPanelContentCommand");var FB8=new _.r("getPdgBuyFlowCommand");var wn2=new _.r("liveChatPurchaseMessageEndpoint");var xtC=new _.r("openSuperStickerBuyFlowCommand");var lnA=new _.r("updatePdgFeatureEnablementCommand");var tCs=function(){lu.apply(this,arguments)};
_.D(tCs,lu);tCs.prototype.getAssociations=function(){return[]};var EkA=function(){lu.apply(this,arguments)};
_.D(EkA,lu);EkA.prototype.getAssociations=function(){return[]};_.anS=new _.r("pdgCommentChipRenderer");_.XnI=new _.r("permissionRoleBottomBarRenderer");_.fnY=new _.r("updatePermissionRoleCommand");var dtZ=new _.r("prefetchWatchCommand");var mtb=new _.r("updatePlayerErrorMessageCommand");var mOI=new _.r("toggleCaptionsVisibilityCommand");_.zyZ=new _.r("quickActionsViewModel");var DtI=new _.r("playerResponse");var VC2=new _.r("playlistRenderer");_.JTb=new _.r("playlistVideoListRenderer");_.mB=new _.r("playlistEditEndpoint");var cT2=new _.r("createImagePollCommand");var InI=new _.r("createQuizCommand");var SqC=new _.r("quizRenderer");var MCz=new _.r("uploadedVideoRenderer");var QuY=new _.r("decorateMessageEndpoint");var pnb=new _.r("lpOfferCardOptionViewModel");var vkA=new _.r("sfvAudioItemPlaybackCommand");var eyY=function(){lu.apply(this,arguments)};
_.D(eyY,lu);eyY.prototype.getAssociations=function(){return[]};_.zQ=new _.r("reelNonVideoContentEndpoint");_.YZ=new _.r("reelWatchEndpoint");_.Dn=new _.r("reelItemRenderer");var suI=new _.r("reelMetapanelViewModel");_.GQz=new _.r("reelNonVideoContentRenderer");_.yT2=new _.r("reelPlayerOverlayRenderer");var $tC=new _.r("shortsLockupViewModel");var Z8Z=new _.r("sponsorButtonViewModel");var RyS=new _.r("reelItemWatchResponse");var ok2=new _.r("textBadgeRenderer");_.Vq=new _.r("buttonRenderer");_.JT=new _.r("toggleButtonRenderer");var IWX=new _.r("switchButtonViewModel");_.i88=new _.r("confirmDialogRenderer");var TcS;TcS=new _.r("menuRenderer");_.qq8=new _.r("menuFlexibleItemRenderer");var u5A=new _.r("pollRenderer");_.UtC=new _.r("backgroundPromoRenderer");var LB8;_.O8C=new _.r("chipCloudRenderer");LB8=new _.r("chipCloudChipRenderer");var jus=new _.r("dropdownRenderer");var H8x=new _.r("gridVideoRenderer");_.YBX=new _.r("itemSectionRenderer");_.rTY=new _.r("messageRenderer");var gkC=new _.r("sortFilterHeaderRenderer");_.PuI=new _.r("videoRenderer");var KBC=new _.r("resolveUrlCommandMetadata");var hyS=function(){lu.apply(this,arguments)};
_.D(hyS,lu);hyS.prototype.getAssociations=function(){return[]};_.WSI=new _.r("getAnswerCommand");_.CO=new _.r("searchEndpoint");var kRs=new _.r("genAiRichTextViewModel");var IbI=new _.r("overviewAnswerViewModel");var C8z=new _.r("addToPlaylistServiceEndpoint");var n7s=new _.r("clearSearchHistoryEndpoint");var NF8=new _.r("clearWatchHistoryEndpoint");var YVs=new _.r("webSerializedServiceEndpointExtension");_.BFA=new _.r("createCommentEndpoint");var bEZ=new _.r("createCommentReplyEndpoint");var A4b=new _.r("performCommentActionEndpoint");var FS2=new _.r("updateCommentEndpoint");var wKY=new _.r("updateCommentReplyEndpoint");_.cn=new _.r("createPlaylistServiceEndpoint");var x$8=new _.r("deletePlaylistEndpoint");var lYs=new _.r("deleteVideoEndpoint");var MM3=new _.r("getReportFormEndpoint");var tDC=new _.r("modifyChannelNotificationPreferenceEndpoint");var H1J;_.hW=new _.r("offlinePlaylistEndpoint");H1J={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 rXJ;_.Kn=new _.r("offlineVideoEndpoint");rXJ={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 E7I=new _.r("pingingEndpoint");_.aYb=new _.r("selectActiveIdentityEndpoint");var XK2=new _.r("setSettingEndpoint");var BGc=new _.r("undoFeedbackEndpoint");var fYs=new _.r("unsubscribeEndpoint");_.d$s=new _.r("updatedMetadataEndpoint");var m$s=function(){lu.apply(this,arguments)};
_.D(m$s,lu);m$s.prototype.getAssociations=function(){return[]};_.zjZ=new _.r("updateLocalAppSettingCommand");var D$x=new _.r("saveImageToDeviceEndpoint");var VDC=new _.r("shareImageCommand");var J4x=new _.r("sharingProviderDataCommand");var c48=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(c48,_.US);var IYS=[0,_.RU,-1];c48.prototype.JSC$10125_serializeBinary=Szc(IYS);var SVZ=_.W6(IYS);var MDY=new _.r("userMentionSuggestionRenderer");var Qrs=new _.r("liveChatTunnelCommand");var pKx=new _.r("showSponsorshipsGiftOfferDialogCommand");var v78=new _.r("sponsorshipsScrollableShelfViewModel");var ejA=new _.r("updateUpcomingEventReminderButtonStateCommand");var sr2=new _.r("upcomingEventReminderButtonStateRenderer");var GRI=new _.r("subscribeEndpoint");var y42=new _.r("registerTasksCommand");var $$2=new _.r("showDialogCommand");_.Yj=new _.r("showSheetCommand");var ZEZ=function(){lu.apply(this,arguments)};
_.D(ZEZ,lu);ZEZ.prototype.getAssociations=function(){return[]};_.Gn=new _.r("avatarViewModel");var rqw=new _.r("badgeViewModel");_.aS=new _.r("buttonViewModel");_.Iu=new _.r("chipViewModel");var g9K=new _.r("contentPreviewImageViewModel");var nhp=new _.r("decoratedAvatarViewModel");var VjI=new _.r("downloadButtonViewModel");_.utz=new _.r("engagementBarViewModel");_.bDJ=new _.r("imageBannerViewModel");var loP=new _.r("lockupContentMetadataRowExtension");var Rj8=new _.r("lockupMetadataViewModel");var o7s=new _.r("lockupViewModel");var iEI=function(){lu.apply(this,arguments)};
_.D(iEI,lu);iEI.prototype.getAssociations=function(){return[]};_.TFx=new _.r("pageHeaderViewModel");var mTJ=new _.r("thumbnailHoverOverlayToggleActionsViewModel");_.Xo=new _.r("toggleButtonViewModel");var qV8=function(){lu.apply(this,arguments)};
_.D(qV8,lu);qV8.prototype.getAssociations=function(){return[]};_.U5w=new _.r("votingViewModel");var u1x=new _.r("sectionHeaderViewModel");var U$8=new _.r("notifyDropdownOptionSelectedCommand");var im3=new _.r("listViewModel");_.BB=new _.r("listItemViewModel");var OEx=new _.r("dialogHeaderViewModel");var LSZ=function(){lu.apply(this,arguments)};
_.D(LSZ,lu);LSZ.prototype.getAssociations=function(){return[]};var jr2=function(){lu.apply(this,arguments)};
_.D(jr2,lu);jr2.prototype.getAssociations=function(){return[]};var HEY=function(){lu.apply(this,arguments)};
_.D(HEY,lu);HEY.prototype.getAssociations=function(){return[]};_.r42=new _.r("transcriptSubmitCaptionCorrectionCommand");var g7b=function(){lu.apply(this,arguments)};
_.D(g7b,lu);g7b.prototype.getAssociations=function(){return[]};var bj3=new _.r("unpluggedStringRunImage");var P8A=new _.r("tabViewModel");var KSZ=new _.r("tabbedViewModel");var hjA=function(){lu.apply(this,arguments)};
_.D(hjA,lu);hjA.prototype.getAssociations=function(){return[]};_.Wu8=new _.r("updateDescriptionAction");var kAx=new _.r("updateToggleButtonTextAction");_.Ckb=new _.r("autoplaySwitchButtonRenderer");var Qa;_.nDY=new _.r("multiMarkersPlayerBarRenderer");Qa=new _.r("chapterRenderer");var NhZ=new _.r("heatMarkerRenderer");var drc=new _.r("heatmapRenderer");var YQY=new _.r("smartSkipPlayerScrimOverlayRenderer");var Bhs=new _.r("timedMarkerDecorationRenderer");var egX=new _.r("postWebToNativeMessageCommand");var bl8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(bl8,_.US);var Aw8=_.ht(bl8,[0,_.RU,-2]);var FuC=new _.r("whitelistEditEndpoint");var wRC=new _.r("commerceActionCommand");_.xiC=new _.r("getPaymentInstrumentsParamsCommand");var l12=new _.r("getPaymentsClientTokenCommand");var tVC=new _.r("googlePaymentBillingCommand");var EDY=new _.r("googlePaymentPurchaseManagerCommand");_.a18=new _.r("logGtmCommand");var XRs=new _.r("updateCardItemOnClickCommand");_.f1s=new _.r("ypcPauseSubscriptionCommand");_.di8=new _.r("ypcResumeSubscriptionCommand");var miZ=function(){lu.apply(this,arguments)};
_.D(miZ,lu);miZ.prototype.getAssociations=function(){return[]};var zR2=function(){lu.apply(this,arguments)};
_.D(zR2,lu);zR2.prototype.getAssociations=function(){return[]};var Dib=function(){lu.apply(this,arguments)};
_.D(Dib,lu);Dib.prototype.getAssociations=function(){return[]};var VVs=function(){lu.apply(this,arguments)};
_.D(VVs,lu);VVs.prototype.getAssociations=function(){return[]};var JwS=function(){lu.apply(this,arguments)};
_.D(JwS,lu);JwS.prototype.getAssociations=function(){return[]};var hi3=new _.r("ypcOffersEndpoint");var cw8=new _.r("cardItemRenderer"),I1S=new _.r("cardItemTextRenderer");var SQC=new _.r("commerceCartItemQuantityPickerRenderer");var MVs=new _.r("linkCardRenderer");var cm4=new _.r("quantityIncrementerButtonViewModel");var Qkz=new _.r("quantityIncrementerViewModel");var pRA=new _.r("themedImageViewModel");_.vDZ=new _.r("ypcCancelRecurrenceEndpoint");var eR8=new _.r("ypcCompleteTransactionEndpoint");_.skA=new _.r("ypcGetCartEndpoint");_.g7=new _.r("ypcGetOffersEndpoint");_.SC=new _.r("ypcHandleTransactionEndpoint");var GAs=new _.r("ypcLogWalletAnalyticDataEndpoint");_.yws=new _.r("ypcRedeemCodeEndpoint");var $ib=new _.r("ypcUpdateFopEndpoint");LT(O7(1),uF(4));$XZ((new MessageChannel).port2);var ZlS=function(){this.register=new Map},JkJ=function(W,k,C){W=W+"_"+k;
Mt.register.has(W)?C=Mt.register.get(W):(C=C(),Mt.register.set(W,C));return C},RRx=function(W){W=_.b(W.register.values());
for(var k=W.next();!k.done;k=W.next())_.bH(k.value,"ABORTED")};
ZlS.prototype.clear=function(){RRx(this);this.register.clear()};
var Mt=new ZlS;var CfX=Date.now().toString();var NDm,oDz=_.NX.ytLoggingDocDocumentNonce_;oDz||(oDz=mQ(16),_.$g("ytLoggingDocDocumentNonce_",oDz));NDm=oDz;var lmp={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 ilS;ilS=1;_.z7=function(W){this.veData=W};
_.Yf=function(W){return new _.z7({trackingParams:W})};
_.F8=function(W,k,C,n,N,B){var A=ilS++;return new _.z7({veType:W,veCounter:A,elementIndex:C,dataElement:k,youtubeData:n,jspbYoutubeData:N,loggingDirectives:B})};
_.Y=_.z7.prototype;
_.Y.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.Y.getAsJspb=function(){var W=new sq8;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Mb(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Mb(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Mb(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.CN(W,5,!0));if(this.veData.dataElement!==void 0){var k=this.veData.dataElement.getAsJspb();_.B6(W,7,k)}this.veData.youtubeData!==void 0&&_.B6(W,8,this.veData.jspbYoutubeData);
return W};
_.Y.toString=function(){return JSON.stringify(this.getAsJson())};
_.Y.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.Y.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.$g("yt_logging_screen.getRootVeType",FfJ);_.$g("yt_logging_screen.getCurrentCsn",_.VM);_.$g("yt_logging_screen.getCttAuthInfo",JA);_.$g("yt_logging_screen.setCurrentScreen",_.am3);var ThS=function(){this.events=new Map},qQY=function(W){var k=[];
W=_.b(W.events.values());for(var C=W.next();!C.done;C=W.next())k.push(C.value);return k};
ThS.prototype.clear=function(){this.events.clear()};var UiA=function(){this.logTransport=new ueI;this.loggedEventRegister=new ThS;this.unloggedEventRegister=new ThS;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10180_flushTimer=new _.Lt(this.flushInterval);this.JSC$10180_flushTimer.listen("tick",this.flush,!1,this)};
UiA.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:qQY(this.loggedEventRegister),unloggedEvents:qQY(this.unloggedEventRegister)};if(_.m("export_player_version_to_ytconfig")){var k;(k=_.DE("PLAYER_CLIENT_VERSION"))?(k=k.split("-")[0].replace(/\./g,""),k=isNaN(Number(k))?"0":k):k="";var C=_.DE("PLAYER_CLIENT_VERSION");if(C){C=C.split("-");var n="";C.length>1&&(n=C[C.length-1]);C=k$4(n.startsWith("canary_experiment")?"canary":n.startsWith("canary_control")?"control":"none")}else C=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:k,playerCanaryState:C}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10180_flushTimer.enabled&&this.JSC$10180_flushTimer.stop()}};
var OlC=function(W){Qq==null&&(Qq=new UiA);var k=Qq;var C=k.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.VM()||"";var n=X0I(W.dimensions).join(";");if(W.records!=null)if(C.events.has(n)){var N;(N=C.events.get(n).records)==null||N.push.apply(N,_.J8(W.records))}else C.events.set(n,W);k.JSC$10180_flushTimer.enabled||k.JSC$10180_flushTimer.start();k.eventsCount++;k.eventsCount>=100&&k.flush()};var ueI=function(){};
ueI.prototype.flush=function(W,k){_.m("enable_client_sli_logging")&&_.a9("sliEventBatch",W,{sendIsolatedPayload:!!k})};var Qq;var jks;jks=function(W){var k=LuZ;W=W===void 0?{}:W;k=k.name;var C=VFm("SUCCESS");OlC({dimensions:W,records:[{name:k,state:"SLI_STATE_END",status:C}]})};
_.ckP=function(W,k,C,n){this.name=W;this.sliId=k;this.timeoutMs=C;this.statusOnTimeout=n;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.ckP.prototype.getId=function(){return this.sliId};
_.Bq=function(W,k){k=k===void 0?{}:k;W.ongoing||(W.ongoing=!0,W.dimensions=k,W.logSliId=F4z(),OlC({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.bH(W,W.statusOnTimeout)},W.timeoutMs)))};
_.bH=function(W,k){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,k={dimensions:W.dimensions,records:[{name:W.name,status:VFm(k),state:"SLI_STATE_END",sliId:W.logSliId}]},Mt.register.delete(W.name+"_"+W.sliId),OlC(k))};var LuZ=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var HlI=function(){lu.apply(this,arguments)};
_.D(HlI,lu);HlI.prototype.getAssociations=function(){return[]};var rGz=new _.r("highlightTextDecoratorColorMapExtension");var jPJ=new _.r("styleRunColorMapExtension");var eXw=_.iH(["data-"]),yk3={};var Z_J={};_.pY=function(W,k,C){_.Ww.call(this,W+", errorCode="+k);this.errorCode=k;this.xhr=C;this.name="PromiseAjaxError"};
_.D(_.pY,_.Ww);var qOX=function(W){this.xhr=W};var p8=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$10212_value_=null};
p8.prototype.then=function(W,k,C){return this.wrappedPromise_?this.wrappedPromise_.then(W,k,C):this.state_===1&&W?(W=W.call(C,this.JSC$10212_value_))&&typeof W.then==="function"?W:_.vn(W):this.state_===2&&k?(W=k.call(C,this.JSC$10212_value_))&&typeof W.then==="function"?W:_.rwI(W):this};
p8.prototype.getValue=function(){return this.JSC$10212_value_};
p8.prototype.isRejected=function(){return this.state_==2};
Rsb(p8);_.rwI=function(W){var k=new p8;W=W===void 0?null:W;k.state_=2;k.JSC$10212_value_=W===void 0?null:W;return k};
_.vn=function(W){var k=new p8;W=W===void 0?null:W;k.state_=1;k.JSC$10212_value_=W===void 0?null:W;return k};var TDX={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var N4m="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var gDb=["load","abort","error"],eC=function(W,k,C){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10232_maxAspectRatio_=W;this.disableAnimation_=k===void 0?!1:k;this.disableExifRotation_=C===void 0?!1:C;this.JSC$10232_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10232_reject_=this.resolve_=null};
eC.prototype.transform=function(W){var k=this;this.mime_=W.type;Zu(pps(W),this.dataUrlRead_,this.readError_,this);Zu(QKb(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(C,n){k.resolve_=C;k.JSC$10232_reject_=n})};
eC.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&PkI(this)};
eC.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var k=2,C=W.byteLength;k<C;){var n=W.getUint16(k),N=W.getUint16(k+2);if(n===65505){k+=4;n=W.getUint32(k);N=W.getUint16(k+4);if(n!==1165519206||N!==0)break;k+=6;n=W.getUint16(k)===18761;k+=W.getUint32(k+4,n);N=W.getUint16(k,n);k+=2;for(var B=0;B<N;B++){if(W.getUint16(k,n)===274){k+=8;W=W.getUint16(k,n);break a}k+=12}}else if(n>>8!==255)break;
else k+=N+2}W=-1}switch(W){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&&PkI(this)};
eC.prototype.readError_=function(){this.JSC$10232_reject_()};
var PkI=function(W){ni(W.JSC$10232_image_,gDb,W.completeTransform_,!1,W);W.JSC$10232_image_.src=_.QG(W.dataUrl_).toString();W.JSC$10232_image_.src!=Ma.toString()&&W.JSC$10232_image_.src.substr(0,11)==="data:image/"||W.JSC$10232_reject_()};
eC.prototype.completeTransform_=function(){if(this.JSC$10232_image_.src!=Ma.toString()){var W=_.QG(this.dataUrl_),k=this.JSC$10232_image_.naturalHeight?this.JSC$10232_image_.naturalWidth/this.JSC$10232_image_.naturalHeight:null;this.invalidAspectRatio=k>this.JSC$10232_maxAspectRatio_||k<1/this.JSC$10232_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var C=this.JSC$10232_image_.naturalWidth,n=this.JSC$10232_image_.naturalHeight,N=k=0,B=this.JSC$10232_image_.naturalHeight?this.JSC$10232_image_.naturalWidth/
this.JSC$10232_image_.naturalHeight:null;B>this.JSC$10232_maxAspectRatio_?(C=this.JSC$10232_maxAspectRatio_*n,k=(C-this.JSC$10232_image_.naturalWidth)/2,this.cropped=!0):B<1/this.JSC$10232_maxAspectRatio_?(n=this.JSC$10232_maxAspectRatio_*C,N=(n-this.JSC$10232_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)B=C,C=n,n=B,B=k,k=N,N=B;switch(this.angle_){case 90:N-=C;break;case 180:k-=C;N-=n;break;case 270:k-=
n}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=C||1,W.height=n||1,this.JSC$10232_image_.naturalWidth&&this.JSC$10232_image_.naturalHeight&&(C=W.getContext("2d"),C.rotate(Math.PI/180*this.angle_),C.drawImage(this.JSC$10232_image_,k,N,this.JSC$10232_image_.naturalWidth,this.JSC$10232_image_.naturalHeight)),this.transformedData=_.QG(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var sq=function(W,k){_.BS.call(this,W);this.value=k};
_.D(sq,_.BS);
var GQ=function(W,k,C,n,N,B,A){A=A===void 0?!1:A;_.xT.call(this);var w=this;this.JSC$10237_url_=W;this.channelId_=k;this.maxFileSizeMb_=C;this.JSC$10237_maxAspectRatio_=n;this.dropZoneEl_=N;this.rejectInvalidAspectRatio_=A;this.selectButtonEl_=B;this.JSC$10237_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Wn(this.dropZoneEl_);this.selectOverlay_=new kk(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10237_image_=this.transfer_=null;this.handler_=new _.j9(this);_.Bf(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(B,"click",function(){w.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.D(GQ,_.xT);GQ.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.xT.prototype.disposeInternal.call(this)};
GQ.prototype.uploadPromise=function(){if(this.JSC$10237_image_==null)return null;this.uploadPromise_||KuY(this);return this.uploadPromise_};
GQ.prototype.cancel=function(){hRY(this);this.JSC$10237_image_=null};
var hRY=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$10237_reject_=null},KuY=function(W){hRY(W);
W.transfer_=_.jHS(W.JSC$10237_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$10237_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$10239_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(k,C){W.resolve_=k;W.JSC$10237_reject_=C})};
_.Y=GQ.prototype;_.Y.onChange_=function(W){W.files.length&&(this.JSC$10237_image_=W.files[0],this.JSC$10237_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10237_image_=null,this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(KuY(this),(new eC(this.JSC$10237_maxAspectRatio_)).transform(this.JSC$10237_image_).then((0,_.fN)(this.onPreview_,this),(0,_.fN)(this.onPreviewError_,this))))};
_.Y.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10237_image_=null),this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.Y.onPreviewError_=function(){this.JSC$10237_image_=null;this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.Y.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new sq("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.Y.JSC$10239_onUploadComplete_=function(){var W=(0,_.Ad8)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.Y.onUploadError_=function(){this.JSC$10237_reject_();hRY(this)};var W1S=function(W){W=W||{};var k={},C={};this.url=W.url||"";this.args=W.args||_.JU.clone(k);this.assets=W.assets||{};this.attrs=W.attrs||_.JU.clone(C);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
W1S.prototype.clone=function(){var W=new W1S,k;for(k in this)if(this.hasOwnProperty(k)){var C=this[k];W[k]=_.Fsm(C)=="object"?_.JU.clone(C):C}return W};var kPx,Cy8,n$C,L6,Y9s,BL8,bRA,AnY,F1A,wL8,xM8,lp2,taI,E$C,apb,XLs,fpS,dMA,mMS,z9s,DMx,Vab,Jns,cn2,IpI,S9z,MaA,Qp8,pLY,oPP,v$s,e9A,sp8,GPC,ynx,$Mz,ZRb,R9A,o$8,iR8,TLA,q9Z,uqA,UMA,OR8,L1z,jpS,HRx,rnA,g$s,PyI,K18,h92,WdS,kIA,C_Z,yq,ndC,NBs,Y$I,BBA,bkS,A5b,Fd8,wV8,xCb,las,te8,EdS,aab,XVZ,faS,dCI,mCS,zHS,Z22,DCs,VeA,J5z,c58,Ia2,S$s,Me8,Q$2,pVC,vdz,eHs,s$2,GII,y5A,$CS,Zkz,RHS,od8,ik8,TBb,q$2,uO2,UCA,Ok8,Ldb;kPx=["account/accounts_list"];Cy8=["acknowledge_channel_tou_strike"];n$C=["notification/add_upcoming_event_reminder"];
_.NLA=["att/get"];L6=["browse","music/browse","unplugged/browse"];Y9s=["channel/claim_legacy_youtube_channel"];BL8=["history/clear_search_history"];bRA=["history/clear_watch_history"];AnY=["comment/perform_comment_action"];F1A=["comment/get_comment_replies"];wL8=["ypc/commerce_action"];xM8=["backstage/create_post"];lp2=["live/create_broadcast"];taI=["channel/create_channel"];E$C=["comment/create_comment_reply"];apb=["comment/create_comment"];XLs=["live_chat/create_poll"];fpS=["playlist/create"];
dMA=["decorate_message"];mMS=["live_chat/delete_message"];z9s=["playlist/delete"];DMx=["video/delete"];Vab=["like/dislike"];Jns=["dismissal/dismiss"];cn2=["flag/flag"];IpI=["flow"];S9z=["account/account_menu"];MaA=["playlist/get_add_to_playlist"];Qp8=["get_answer"];pLY=["channel/get_channel_creation_form"];oPP=["offline/get_download_action"];v$s=["kids/get_kids_blocklist_picker"];e9A=["live_chat/get_item_context_menu"];sp8=["live_chat/get_live_chat_message_buy_flow"];GPC=["live_chat/get_live_chat_replay"];
ynx=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];$Mz=["live_chat/get_live_chat_super_sticker_buy_flow"];ZRb=["notification/get_notification_menu"];R9A=["playlist/get_settings_editor"];o$8=["backstage/get_post_video_preview"];iR8=["account/get_profile_card"];TLA=["share/get_share_panel"];q9Z=["share/get_sharing_provider_data"];uqA=["get_survey"];UMA=["notification/get_unseen_count"];OR8=["get_user_mention_suggestions"];L1z=["get_watch"];jpS=["guide"];
HRx=["feedback"];rnA=["kids/update_blacklist"];g$s=["like/like"];PyI=["live_chat/live_chat_action"];K18=["live_chat/manage_user"];h92=["video_manager/metadata_update"];WdS=["live_chat/moderate"];kIA=["notification/modify_channel_preference"];C_Z=["notification/opt_out"];yq=["get_panel","get_posts_by_host_panel"];ndC=["player"];NBs=["browse/edit_playlist"];Y$I=["notification/record_interactions"];BBA=["reel/reel_item_watch"];bkS=["reel/reel_watch_sequence"];A5b=["like/removelike"];Fd8=["notification/remove_upcoming_event_reminder"];
wV8=["flag/get_form"];xCb=["miniapp/report_value"];las=["navigation/resolve_url"];te8=["channel/reveal_business_email"];EdS=["in_video/search"];aab=["search","sfv/search","unplugged/search"];XVZ=["live_chat/send_message"];faS=["live_chat/send_live_chat_vote"];dCI=["account/set_setting"];mCS=["submit_caption_correction"];zHS=["subscription/subscribe"];Z22=["get_transcript"];DCs=["resolve_location","unplugged/resolve_location"];VeA=["subscription/unsubscribe"];J5z=["backstage/update_post"];c58=["channel_edit/update_channel_page_settings"];
Ia2=["comment/update_comment_reply"];S$s=["comment/update_comment"];Me8=["comment/update_comments_settings"];Q$2=["creator/update_creator_channel"];pVC=["pdg/update_enablement"];vdz=["updated_metadata"];eHs=["channel_edit/validate_channel_handle"];s$2=["verify_age"];GII=["next","unplugged/watch_next"];y5A=["whitelist/edit"];$CS=["ypc/cancel_recurrence"];Zkz=["ypc/complete_transaction"];RHS=["ypc/get_cart"];od8=["ypc/get_fix_instrument_params"];ik8=["ypc/get_offers"];TBb=["ypc/get_payment_instruments_params"];
q$2=["ypc/handle_transaction"];uO2=["ypc/log_payment_server_analytics"];UCA=["ypc/pause_subscription"];Ok8=["ypc/redeem_code"];Ldb=["ypc/resume_subscription"];var j$b=[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 Fl=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.$g("yt.msgs_",Fl);var $k=new _.Tc("ACTION_ROUTER_TOKEN");_.Zn=function(){this.autonavState_=_.m("kevlar_is_pupi_enabled")?2:XFI()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Zn.prototype.getState=function(){return this.autonavState_};
_.Zn.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.Zn.prototype.setState=function(W,k,C){k&&(this.autoplayChangedByUser=!0);k=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.f2P(W==2),W=_.m("kevlar_is_pupi_enabled")?C||k:!0,_.vx.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,C))};
_.Zn.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.rk(_.Zn);var Ru=function(){this.hasRun=!1};var ou={},vMm=(ou.auto_search="LATENCY_ACTION_AUTO_SEARCH",ou.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ou.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ou.app_startup="LATENCY_ACTION_APP_STARTUP",ou.browse="LATENCY_ACTION_BROWSE",ou.cast_splash="LATENCY_ACTION_CAST_SPLASH",ou.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ou.channels="LATENCY_ACTION_CHANNELS",ou.chips="LATENCY_ACTION_CHIPS",ou.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ou.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ou.editor="LATENCY_ACTION_EDITOR",ou.embed="LATENCY_ACTION_EMBED",ou.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ou.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ou.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ou.explore="LATENCY_ACTION_EXPLORE",ou.favorites="LATENCY_ACTION_FAVORITES",ou.home="LATENCY_ACTION_HOME",ou.inboarding="LATENCY_ACTION_INBOARDING",ou.landing="LATENCY_ACTION_LANDING",ou.library="LATENCY_ACTION_LIBRARY",ou.live=
"LATENCY_ACTION_LIVE",ou.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ou.management="LATENCY_ACTION_MANAGEMENT",ou.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ou.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ou.onboarding="LATENCY_ACTION_ONBOARDING",ou.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",ou.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ou.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ou.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
ou.prebuffer="LATENCY_ACTION_PREBUFFER",ou.prefetch="LATENCY_ACTION_PREFETCH",ou.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ou.profile_switcher="LATENCY_ACTION_LOGIN",ou.projects="LATENCY_ACTION_PROJECTS",ou.reel_watch="LATENCY_ACTION_REEL_WATCH",ou.results="LATENCY_ACTION_RESULTS",ou.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ou.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ou.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ou.review="LATENCY_ACTION_REVIEW",ou.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ou.search_ui="LATENCY_ACTION_SEARCH_UI",ou.search_suggest="LATENCY_ACTION_SUGGEST",ou.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ou.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ou.seek="LATENCY_ACTION_PLAYER_SEEK",ou.settings="LATENCY_ACTION_SETTINGS",ou.store="LATENCY_ACTION_STORE",ou.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ou.tenx="LATENCY_ACTION_TENX",ou.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ou.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
ou.watch="LATENCY_ACTION_WATCH",ou.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ou["watch,watch7"]="LATENCY_ACTION_WATCH",ou["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ou["watch,watch7ad"]="LATENCY_ACTION_WATCH",ou["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ou.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",ou.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ou.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ou.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ou.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ou.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ou.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ou.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ou);var gMw=function(W,k){xv.call(this,1,arguments);this.timer=k};
_.D(gMw,xv);var r9m=new YC2("aft-recorded",gMw);var y9I=_.NX.ytLoggingGelSequenceIdObj_||{};_.$g("ytLoggingGelSequenceIdObj_",y9I);var iu=_.NX.ytLoggingLatencyUsageStats_||{};_.$g("ytLoggingLatencyUsageStats_",iu);var TQ=function(){this.cleanupJob=0},RM4=function(){TQ.instance||(TQ.instance=new TQ);
return TQ.instance};
_.Y=TQ.prototype;_.Y.baseline=function(W,k,C){qt(this,"baseline_"+W)||_.a9("latencyActionBaselined",{clientActionNonce:W},{timestamp:k,cttAuthInfo:C})};
_.Y.tick=function(W,k,C,n){qt(this,"tick_"+W+"_"+k)||_.a9("latencyActionTicked",{tickName:W,clientActionNonce:k},{timestamp:C,cttAuthInfo:n})};
_.Y.info=function(W,k,C){var n=Object.keys(W).join("");qt(this,"info_"+n+"_"+k)||(W=Object.assign({},W),W.clientActionNonce=k,_.a9("latencyActionInfo",W,{cttAuthInfo:C}))};
_.Y.jspbInfo=function(W,k,C){for(var n="",N=0;N<VT(W).length;N++)VT(W)[N]!==void 0&&(n=N===0?n.concat(""+N):n.concat("_"+N));qt(this,"info_"+n+"_"+k)||(_.fU(W,2,k),k={cttAuthInfo:C},C=_.m("jspb_sparse_encoded_pivot")?new FP([{}]):new FP,_.b5(C,7,rAz,W),$Vc("latencyActionInfo",C,k))};
_.Y.span=function(W,k,C){var n=Object.keys(W).join("");qt(this,"span_"+n+"_"+k)||(W.clientActionNonce=k,_.a9("latencyActionSpan",W,{cttAuthInfo:C}))};
var qt=function(W,k){iu[k]=iu[k]||{count:0};var C=iu[k];C.count++;C.time=(0,_.oX)();W.cleanupJob||(W.cleanupJob=_.wI(_.aM,function(){var n=(0,_.oX)(),N;for(N in iu)iu[N]&&n-iu[N].time>6E4&&delete iu[N];W&&(W.cleanupJob=0)},5E3));
return C.count>5?(C.count===6&&Math.random()*1E5<1&&(C=new _.AM("CSI data exceeded logging limit with key",k.split("_")),k.indexOf("plev")>=0||_.zJ(C)),!0):!1};var HkI,r5b;HkI=window;r5b=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Xl=HkI.performance||HkI.mozPerformance||HkI.msPerformance||HkI.webkitPerformance||new r5b;var H3J=!1,i3w=!1,PPX=(0,_.fN)(_.Xl.clearResourceTimings||_.Xl.webkitClearResourceTimings||_.Xl.mozClearResourceTimings||_.Xl.msClearResourceTimings||_.Xl.oClearResourceTimings||_.Au,_.Xl);var gdA=window;gdA.ytcsi&&(gdA.ytcsi.infoGel=_.Vb,gdA.ytcsi.tick=_.cN);var wOw=function(W){xv.call(this,1,arguments);this.csn=W};
_.D(wOw,xv);var wpX=new YC2("screen-created",wOw),S7P=[],FVp=II4,MB2=0,pB=new Map,xnP=new Map,lI4=new Map;var UdJ=Symbol("vf"),iW=new WeakMap;var uu=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ci=function(){uu.instance||(uu.instance=new uu);
return uu.instance};
_.Y=uu.prototype;_.Y.setClient=function(W){this.client=W};
_.Y.JSC$10319_newScreen=function(){this.clear();this.csn=_.VM()};
_.Y.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.Y.reportShown=function(W,k,C){var n=this.JSC$10319_getTrackingParams(W),N=W.visualElement?W.visualElement:n;k=this.shownElements.has(N);var B=this.visibleState.get(N);this.shownElements.add(N);this.visibleState.set(N,!0);W.impressionLog&&!k&&W.impressionLog();if(n||W.visualElement)if(C=P_S(this,W,C))if(N=Kd2(this,W),Uq(this,W)||N){n=W.visualElement?W.visualElement:_.Yf(n);var A=W.interactionLoggingClientData;N||k?Uq(this,W)&4?B||zWX(this.client,C,n,A):Uq(this,W)&1&&!k&&fII(this.client,C,n,A):fII(this.client,
C,n,A)}};
_.Y.reportHidden=function(W,k,C){var n=this.JSC$10319_getTrackingParams(W),N=W.visualElement?W.visualElement:n;k=this.hiddenElements.has(N);var B=this.visibleState.get(N);this.hiddenElements.add(N);this.visibleState.set(N,!1);if(B===!1)return!0;if(!n&&!W.visualElement)return!1;C=P_S(this,W,C);if(!C||!Uq(this,W)&&Kd2(this,W))return!1;n=W.visualElement?W.visualElement:_.Yf(n);Uq(this,W)&8?Dnc(this.client,C,n):Uq(this,W)&2&&!k&&(W=this.client,k=Qb({cttAuthInfo:JA(C)||void 0},C),n={csn:C,ve:n.getAsJson(),
eventType:2},C==="UNDEFINED_CSN"?eo("visualElementHidden",k,n):W?tB("visualElementHidden",n,W,k):_.a9("visualElementHidden",n,k));return!0};
_.Y.JSC$10319_getTrackingParams=function(W){var k=this.getData(W),C,n;if(_.m("il_use_view_model_logging_context")&&(k==null?0:(C=k.context)==null?0:(n=C.loggingContext)==null?0:n.loggingDirectives))return k.context.loggingContext.loggingDirectives.trackingParams||"";var N,B;if(k==null?0:(N=k.rendererContext)==null?0:(B=N.loggingContext)==null?0:B.loggingDirectives)return k.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(k==null?0:k.loggingDirectives)return k.loggingDirectives.trackingParams||
"";var A;return((A=W.veContainer)==null?0:A.trackingParams)?W.veContainer.trackingParams:(k==null?void 0:k.trackingParams)||""};
_.Y.JSC$10319_elementShouldLogGesture=function(W,k){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&k)};
_.Y.JSC$10319_getNearestParentVe=function(W){var k=this.JSC$10319_getTrackingParams(W);return W.visualElement?W.visualElement:k?_.Yf(k):W.parentElement?this.JSC$10319_getNearestParentVe(W.parentElement):null};
var P_S=function(W,k,C){var n=_.VM(C);return W.csn===null||n===W.csn||C?n:(W=new _.AM("VisibilityLogger called before newScreen",{caller:k.tagName,previous_csn:W.csn,current_csn:n}),_.zJ(W),null)};
uu.prototype.getData=function(W){var k,C=W.data||((k=W.props)==null?void 0:k.data);if(W.isWebComponentWrapper){var n;C=(n=iW.get(W))==null?void 0:n[UdJ]}return C};
var Kd2=function(W,k){var C;return!((C=W.getData(k))==null||!C.loggingDirectives)},Uq=function(W,k){W=W.getData(k);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var Oq;Oq=function(){};
_.hv=function(){Oq.instance||(Oq.instance=new Oq);return Oq.instance};
Oq.prototype.setClient=function(W){_.MI(Ci().setClient).bind(Ci())(W)};
_.hHs=function(){_.hv();_.MI(Ci().JSC$10319_newScreen).bind(Ci())()};
Oq.prototype.clear=function(){_.MI(Ci().clear).bind(Ci())()};
Oq.prototype.reportShown=function(W,k,C){_.MI(Ci().reportShown).bind(Ci())(W,k,C)};
Oq.prototype.reportHidden=function(W,k,C){return _.MI(Ci().reportHidden).bind(Ci())(W,k,C)};
var ufc=function(W,k){return _.MI(Ci().JSC$10319_getTrackingParams).bind(Ci())(k)},OQJ=function(W,k){return _.MI(Ci().JSC$10319_getNearestParentVe).bind(Ci())(k)};var L8,W2A;L8=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};
_.kf=function(){L8.instance||(L8.instance=new L8);return L8.instance};
L8.prototype.setClient=function(W){this.client=W};
W2A=function(W,k,C){C=C===void 0?{}:C;_.MI(function(){var n,N,B,A=((n=_.z(k==null?void 0:k.commandMetadata,_.Ok))==null?void 0:n.rootVe)||((N=_.z(k==null?void 0:k.commandMetadata,XFA))==null?void 0:(B=N.screenVisualElement)==null?void 0:B.uiType);if(A){n=_.z(k==null?void 0:k.commandMetadata,KBC);if(n==null?0:n.parentTrackingParams){var w=_.Yf(n.parentTrackingParams);if(n.parentCsn)var x=n.parentCsn}else C.clickedVisualElement?w=C.clickedVisualElement:k.clickTrackingParams&&(w=_.Yf(k.clickTrackingParams));
a:{n=_.z(k,_.RA);N=_.z(k,DCm);if(n){if(N=dVm(n,"VIDEO")){n={token:N,videoId:n.videoId};break a}}else if(N&&(n=dVm(N,"PLAYLIST"))){n={token:n,playlistId:N.playlistId};break a}n=void 0}C=Object.assign({},{cttAuthInfo:n,parentCsn:x},C);if(_.m("expectation_logging")){var E;C.loggingExpectations=((E=_.z(k==null?void 0:k.commandMetadata,XFA))==null?void 0:E.loggingExpectations)||void 0}_.jC(W,A,w,C)}else _.zJ(new _.AM("Error: Trying to create a new screen without a rootVeType",k))})()};
_.jC=function(W,k,C,n){n=n===void 0?{}:n;_.MI(function(){j$b.includes(k)||(_.zJ(new _.AM("createClientScreen() called with a non-page VE",k)),k=83769);n.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:k,key:n.key||""}));W.graftQueue=[];W.stateChangedQueue=[];n.dataPromises?k1S(W,k,C,n):Cj2(W,k,C,n)})()};
_.n82=function(W,k,C){C=C===void 0?0:C;_.MI(function(){k.then(function(n){W.pendingScreenCreation.has(C)&&W.pendingScreenFn&&W.pendingScreenFn();var N=_.VM(C),B=_.DH(C);if(N&&B){var A;(n==null?0:(A=n.response)==null?0:A.trackingParams)&&vN(W.client,N,B,_.Yf(n.response.trackingParams));var w;(n==null?0:(w=n.playerResponse)==null?0:w.trackingParams)&&vN(W.client,N,B,_.Yf(n.playerResponse.trackingParams))}})})()};
L8.prototype.graftServerVe=function(W,k,C){var n=this;return _.MI(function(){var N=_.Yf(W);_.Hn(n,N,k,C);return N})()};
_.LOp=function(W,k,C,n){return _.m("enable_client_ve_spec")&&k.clientVeSpec?(k=_.F8(k.clientVeSpec.uiType,void 0,k.clientVeSpec.elementIndex,k.clientVeSpec.clientYoutubeData,void 0,k),_.Hn(W,k,C,n)?k:null):k.trackingParams?W.graftServerVe(k.trackingParams,C,n):null};
_.Wj=function(W,k,C,n){return _.MI(function(){if(!k.veType)return _.mw(new _.AM("Error: Trying to graft a client VE without a veType.")),null;if(k.visibilityTypes){var N=k.visibilityTypes.reduce(function(B,A){return B|A});
N={visibility:{types:String(N)}}}N=_.F8(k.veType,k.visualElement,k.elementIndex,k.clientYouTubeData,void 0,N);return _.Hn(W,N,C,n)?N:null})()};
_.Hn=function(W,k,C,n){n=n===void 0?0:n;return _.MI(function(){if(W.pendingScreenCreation.has(n))return W.graftQueue.push([k,C]),!0;var N=_.VM(n),B=C||_.DH(n);if(N&&B){if(_.m("combine_ve_grafts")){var A=W.cachedVisualElements.get(B.toString());A?A.push(k):(W.cachedRootVisualElements.set(B.toString(),B),W.cachedVisualElements.set(B.toString(),[k]));W.attachTimeout||(W.attachTimeout=_.wI(_.aM,function(){NXs(W,N)},1200))}else vN(W.client,N,B,k);
return!0}return!1})()};
_.rc=function(W,k,C){C=C===void 0?0:C;var n=W.recurringGrafts.get(C)||new Map;if(_.m("smarter_ve_dedupping"))for(var N=Array.from(n.keys()),B=0;B<N.length;B++){var A=void 0,w=void 0;var x=k;var E=N[B];E.isClientVe()&&x.isClientVe()?(A=x.getAsJson(),w=E.getAsJson(),x=A.veType!==w.veType||A.elementIndex!==w.elementIndex||A.dataElement!==w.dataElement||x.getLoggingDirectives()!==E.getLoggingDirectives()?!1:!0):x=E.veData.trackingParams!==void 0&&x.veData.trackingParams!==void 0?((w=x.veData)==null?void 0:
w.trackingParams)===((A=E.veData)==null?void 0:A.trackingParams):!1;if(x)return}else if(n.has(k))return;n.set(k,void 0);W.recurringGrafts.set(C,n);_.VM(C)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(C)||_.Hn(W,k,void 0,C)};
_.gc=function(W,k,C,n){n=_.VM(n===void 0?0:n);if(!n)return!1;JlJ(W.client,n,k,C);return!0};
_.Pn=function(W,k,C,n){if(!k)return!1;n=_.VM(n===void 0?0:n);if(!n)return!1;JlJ(W.client,n,_.Yf(k),C);return!0};
_.JW=function(W,k){var C=k.getScreenLayer&&k.getScreenLayer();if(k.visualElement)return _.gc(W,k.visualElement,void 0,C);k=ufc(_.hv(),k);return _.Pn(W,k,void 0,C)};
L8.prototype.clickCommand=function(W,k,C){return _.Pn(this,W.clickTrackingParams,k,C===void 0?0:C)};
L8.prototype.stateChanged=function(W,k,C){this.visualElementStateChanged(_.Yf(W),k,C===void 0?0:C)};
L8.prototype.visualElementStateChanged=function(W,k,C){C=C===void 0?0:C;C===0&&this.pendingScreenCreation.has(C)?this.stateChangedQueue.push([W,k]):this.logStateChanged(W,k,C)};
L8.prototype.logStateChanged=function(W,k,C){C=C===void 0?0:C;var n=_.VM(C);W=W||_.DH(C);return n&&W?(clP(this.client,n,W,k),!0):!1};
var k1S=function(W,k,C,n){n=n===void 0?{}:n;W.pendingScreenCreation.add(n.layer||0);W.pendingScreenFn=function(){Cj2(W,k,C,n);var A=_.DH(n.layer);if(A){for(var w=_.b(W.graftQueue),x=w.next();!x.done;x=w.next())x=x.value,_.Hn(W,x[0],x[1]||A,n.layer);A=_.b(W.stateChangedQueue);for(w=A.next();!w.done;w=A.next())w=w.value,W.logStateChanged(w[0],w[1])}};
C||_.VM(n.layer)||W.pendingScreenFn();if(n.dataPromises)for(var N=_.b(n.dataPromises),B=N.next();!B.done;B=N.next())_.n82(W,B.value,n.layer);else _.dI(Error("wf"))},Cj2=function(W,k,C,n){n=n===void 0?{}:n;
var N=void 0;n.layer||(n.layer=0);N=n.parentLayer!==void 0?n.parentLayer:n.layer;var B=_.VM(N);N=_.DH(N);var A=C||N,w;A&&(n.parentCsn!==void 0?w={clientScreenNonce:n.parentCsn,visualElement:A}:B&&B!=="UNDEFINED_CSN"&&(w={clientScreenNonce:B,visualElement:A}));var x,E=_.DE("EVENT_ID");B==="UNDEFINED_CSN"&&E&&(x={servletData:{serializedServletEventId:E}});_.m("combine_ve_grafts")&&B&&NXs(W,B);_.m("no_client_ve_attach_unless_shown")&&A&&B&&XO4(A,B);try{var a=_.tB3(W.client,k,w,n.csnToClone,n.cttAuthInfo,
x,n.implicitGestureType,void 0,n.loggingExpectations)}catch(V){_.Dx(V,{rootVeType:k,rootVe:N,parentVisualElement:C,currentCsn:B,parentEl:w,csnToClone:n.csnToClone});_.dI(V);return}_.am3(a,k,n.layer,n.cttAuthInfo);B&&B!=="UNDEFINED_CSN"&&N&&!tFw(B)&&Dnc(W.client,B,N,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=a||"");_.Vb({clientScreenNonce:a});_.hHs();var X=_.DH(n.layer);B&&B!=="UNDEFINED_CSN"&&
X&&(_.m("web_mark_root_visible")||_.m("music_web_mark_root_visible"))&&_.GD(a,X);W.pendingScreenCreation.delete(n.layer||0);W.pendingScreenFn=void 0;var d;(d=W.recurringGrafts.get(n.layer))==null||d.forEach(function(V,c){V?_.Hn(W,c,V,n.layer):X&&_.Hn(W,c,X,n.layer)});
Y18(W)},Y18=function(W){for(var k=0;k<W.afterNewScreenOneOffJobs.length;k++){var C=W.afterNewScreenOneOffJobs[k];
try{C()}catch(n){_.dI(n)}}for(k=W.afterNewScreenOneOffJobs.length=0;k<W.afterNewScreenRecurringJobs.length;k++){C=W.afterNewScreenRecurringJobs[k];try{C()}catch(n){_.dI(n)}}},NXs=function(W,k){if(k===void 0)for(var C=xFw(),n=0;n<C.length;n++)C[n]!==void 0&&NXs(W,C[n]);
else W.cachedVisualElements.forEach(function(N,B){(B=W.cachedRootVisualElements.get(B))&&_.Eqm(W.client,k,B,N)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var K8=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.xvn=(W.response=!1,W.playerResponse=!1,W)};
_.D(K8,Ru);K8.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
K8.prototype.handle=function(W){var k=_.kf(),C=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.xvn.response&&(k.graftServerVe(W.data.response.trackingParams,void 0,C),this.xvn.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.xvn.playerResponse&&(k.graftServerVe(W.data.playerResponse.trackingParams,void 0,C),this.xvn.playerResponse=!0)};var hT=function(){this.q2=_.ME();this.nZ=[];this.uOt=0};
hT.prototype.processChunk=function(W){if(W){for(var k=_.b(this.nZ),C=k.next();!C.done;C=k.next())C=C.value,C.validate(W)&&(C.handle(W),C.hasRun=!0);_.cN("np"+this.uOt);this.uOt++}};var bzI,AZ8;_.gH=function(W,k,C,n,N,B,A){A=A===void 0?[]:A;this.buildCommandPayload=W;this.navigate=k;this.handleServiceRequest=C;this.sendAction=n;this.JSC$10360_screenManager=N;this.commandResolverMap=B;this.autoLogResolverAllowlist=A;this.pendingCommands=new Set};
bzI=function(W,k,C){var n=j7P,N=H4I,B=_.kf(),A=BXA;C=C===void 0?[]:C;_.gH.instance=new _.gH(W,k,n,N,B,A,C)};
AZ8=function(W,k,C){if(!W.commandResolverMap)return!1;var n=svz(k,W.commandResolverMap);return n?((W.autoLogResolverAllowlist.some(function(N){return!!_.z(k,N)})||(C==null?0:C.forceClickLogging))&&buY(W,k,C),n instanceof Promise?n.then(function(N){N.resolve(k,C)}):n.resolve(k,C),!0):!1};
_.gH.prototype.resolveCommand=function(W,k){var C=this,n=F28(W);if(AZ8(this,W,k))return!0;if(n)return wrs(this,W,k);if(!this.buildCommandPayload)return pOX(W,"Unhandled command by buildCommandPayload"),!1;var N=this.buildCommandPayload(W,k);if(k==null?0:k.commandController)N.commandController=k.commandController;if(N.type===0){if(!this.navigate)return vqI(W,"navigate"),!1;if(!xYz(N.command))return pOX(W,"Page requests need to specify a url"),!1;_.m("logging_avoid_blocking_during_navigation")&&_.jhc().transition("application_navigating");
W=this.navigate(N)||[];OUs(W).then(function(){C.pendingCommands.delete(N.command)});
return!0}if(N.type===1){if(!this.handleServiceRequest)return vqI(W,"handleServiceRequest"),!1;(k==null?0:k.forceClickLogging)&&buY(this,N.command,k);W=this.handleServiceRequest(N);OUs(W).then(function(){C.pendingCommands.delete(N.command)});
return!0}if(N.type===2){if(!this.sendAction)return vqI(W,"sendAction"),!1;buY(this,N.command,k);this.sendAction(N);return!0}return!1};
var buY=function(W,k,C){if((C==null||!C.disableClickTracking)&&W.JSC$10360_screenManager)if(k.clickTrackingParams&&_.m("log_click_with_layer_from_element_in_command_handler")){var n;C=C==null?void 0:(n=C.form)==null?void 0:n.element;W.JSC$10360_screenManager.clickCommand(k,null,C&&C.getScreenLayer&&C.getScreenLayer())}else k.clickTrackingParams?W.JSC$10360_screenManager.clickCommand(k):!_.m("disable_clicked_visual_element_in_command_handler")&&(C==null?0:C.clickedVisualElement)&&_.gc(W.JSC$10360_screenManager,
C.clickedVisualElement)},F28=function(W){var k=!!_.z(W,_.Nl),C;
W=((C=_.z(W,_.AQ))==null?void 0:C.signal)==="CLIENT_SIGNAL";return k||W},wrs=function(W,k,C){var n=_.z(k,_.Nl);
if(n)var N=(n==null?void 0:n.commands)||[];else{var B;if(((B=_.z(k,_.AQ))==null?void 0:B.signal)==="CLIENT_SIGNAL"){var A;N=((A=_.z(k,_.AQ))==null?void 0:A.actions)||[]}}if(N){k=_.b(N);for(N=k.next();!N.done;N=k.next()){N=N.value;try{W.resolveCommand(N,C)}catch(w){w instanceof Error&&_.dI(w)}}return!0}pOX(k,"Could not handle the meta command");return!1},xYz=function(W){var k;
return!((k=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null||!k.url)};var WK=function(){Ru.apply(this,arguments)};
_.D(WK,Ru);WK.prototype.validate=function(W){var k,C;return!this.hasRun&&!!((k=W.data.response)==null?0:(C=k.onResponseReceivedEndpoints)==null?0:C.length)};
WK.prototype.handle=function(W){var k=_.gH.instance;W=_.b(W.data.response.onResponseReceivedEndpoints);for(var C=W.next();!C.done;C=W.next())k.resolveCommand(C.value)};var ljs,tRz,E8z;
ljs=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=_.nB();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.k7=function(){tRz||(tRz=new ljs);return tRz};
E8z=function(){var W=_.k7();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.ajC=function(){var W=_.k7(),k=W.mediaSessionPipActivation,C=W.watchPipActivation,n=W.watchWhileActivation,N=W.playlistWatchPageActivation,B=W.lockupActivation,A=W.showMiniplayerCommandActivation,w=W.navigatingAwayFromWatchDeletedVideo,x=W.shortsPipActivation,E=W.playlistSuggestionsShelfActivation,a=W.productDetailsPageActivation,X=W.miniAppPageActivation,d=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!N&&!E&&!a&&!X&&!d&&!B&&!A&&!k&&!C&&!n&&!x||w};var cqw;_.CE=ql("FEwhat_to_watch","/",3854);_.IO2=ql("FEdownloads","/feed/downloads",42352);cqw=ql("FEmusic_offline","browse/FEmusic_offline",42352);var $S=function(W,k){k=k===void 0?[]:k;var C=C===void 0?[]:C;k=WPJ.apply(null,[kqc.apply(null,_.J8(k))].concat(_.J8(C)));this.store=YY3(W,void 0,k)};
$S.prototype.getState=function(){return this.store.getState()};
$S.prototype.dispatch=function(W){return this.store.dispatch(W)};
$S.prototype.subscribe=function(W){return this.store.subscribe(W)};
$S.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
$S.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.nE=function(W,k,C){var n=k(W.getState());return W.subscribe(function(){var N=k(W.getState());if(N!==n){var B=n;n=N;C(N,B)}})};var JTw;_.Nj=function(W,k,C){return _.jo({type:"REPLACE_ENTITY",payload:{entityPayload:C,entityType:W,key:k}})};
JTw=function(W){return _.jo({type:"REPLACE_ENTITIES",payload:W})};
_.d7=function(W,k,C,n){return _.jo({type:"UPDATE_ENTITY",payload:{entityPayload:C,entityType:W,key:k,mergeOption:n}})};var LVm=function(W){var k=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(C){k.append(C)})};
_.Y=LVm.prototype;_.Y.getLength=function(){return this.totalLength};
_.Y.append=function(W){var k=this.arrays.length===0?!1:(k=this.arrays[this.arrays.length-1])&&k.buffer===W.buffer&&k.byteOffset+k.length===W.byteOffset;k?(k=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(k.buffer,k.byteOffset,k.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.Y.split=function(W){for(var k=new LVm,C=new LVm,n=_.b(this.arrays),N=n.next();!N.done;N=n.next())N=N.value,W>=N.length?(k.append(N),W-=N.length):W?(k.append(new Uint8Array(N.buffer,N.byteOffset,W)),C.append(new Uint8Array(N.buffer,N.byteOffset+W,N.length-W)),W=0):C.append(N);return{headView:k,tailView:C}};
_.Y.extract=function(W,k){return this.split(W).tailView.split(k).headView};
_.Y.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.Y.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.Y.getDataView=function(W,k){W=W===void 0?0:W;k=k===void 0?-1:k;if(!this.totalLength||!k)return new DataView(new ArrayBuffer(0));k<0&&(k=this.totalLength-W);this.focus(W);if(!(W-this.arrayPos+k<=this.arrays[this.arrayIdx].length)){var C=this.arrayIdx,n=this.arrayPos;this.focus(W+k-1);n=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-n);for(var N=0,B=C;B<=this.arrayIdx;B++)n.set(this.arrays[B],N),N+=this.arrays[B].length;this.arrays.splice(C,this.arrayIdx-C+1,n);this.arrayPos=this.arrayIdx=
0;this.focus(W)}C=this.arrays[this.arrayIdx];return new DataView(C.buffer,C.byteOffset+W-this.arrayPos,k)};
_.Y.getUint8=function(W){this.focus(W);return this.arrays[this.arrayIdx][W-this.arrayPos]};(function(){var W=function(n){return new Uint8Array(n)},k=function(n){for(var N=new Uint8Array(n.length),B=0;B<n.length;B++)N[B]=n[B];
return N},C=new Uint8Array([1]);
return C.length===1&&C[0]===1?W:k})();
var iTw=Array(1024),oqX=window.TextDecoder?new TextDecoder:void 0,q74=window.TextEncoder?new TextEncoder:void 0;var OT4=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},HN=function(W){var k=W.arrayView.getUint8(W.pos);
++W.pos;if(k<128)return k;for(var C=k&127,n=1;k>=128;)k=W.arrayView.getUint8(W.pos),++W.pos,n*=128,C+=(k&127)*n;return C},jvc=function(W,k){var C=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){C<0&&(C=HN(W));var n=C>>3,N=C&7;if(n===k)return!0;if(n>k){W.pendingTagAndType=C;break}C=-1;switch(N){case 0:HN(W);break;case 1:W.pos+=8;break;case 2:n=HN(W);W.pos+=n;break;case 5:W.pos+=4}}return!1};var rlz=function(){this.pos=0;this.submessagePosStack=[];this.buf=Unm(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},PN=function(W,k){k=W.pos+k;
if(!(W.buf.length>=k)){for(var C=W.buf.length*2;C<k;)C*=2;W.buf=Unm(C,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},g8=function(W,k){if(k>268435455){PN(W,4);
for(var C=k&1073741823,n=0;n<4;n++)W.view.setUint8(W.pos,C&127|128),C>>=7,W.pos+=1;k=Math.floor(k/268435456)}for(PN(W,4);k>127;)W.view.setUint8(W.pos,k&127|128),k>>=7,W.pos+=1;W.view.setUint8(W.pos,k);W.pos+=1};for(var gqw={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},HTw={},XrI=_.b(Object.entries(gqw)),fjs=XrI.next();!fjs.done;fjs=XrI.next()){var dYC=_.b(fjs.value),mYA=dYC.next().value,zP8=dYC.next().value,DYx=mYA,VRY=zP8;VRY&&(HTw[VRY]=DYx)};var KVP=function(W,k){W=W===void 0?{}:W;switch(k.type){case "ENTITY_LOADED":return k.payload.reduce(function(n,N){var B,A=(B=N.options)==null?void 0:B.persistenceOption;if(A&&A!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&A!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return n;if(!N.entityKey)return _.dI(Error("yf")),n;if(N.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!N.payload)return N=new _.AM("REPLACE entity mutation is missing a payload",{entityKey:N.entityKey}),_.dI(N),n;var w=(0,_.JU.getAnyKey)(N.payload);
return WBP(n,w,N.entityKey,N.payload[w])}if(N.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{N=N.entityKey;try{var x=_.r8(N).entityType;w=WBP(n,x,N);break a}catch(X){if(X instanceof Error){N=new _.AM("Failed to deserialize entity key",{entityKey:N,originalMessage:X.message});_.dI(N);w=n;break a}throw X;}w=void 0}return w}if(N.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!N.payload)return N=new _.AM("UPDATE entity mutation is missing a payload",{entityKey:N.entityKey}),_.dI(N),n;w=(0,_.JU.getAnyKey)(N.payload);
var E,a;return kQ2(n,w,N.entityKey,N.payload[w],(E=N.fieldMask)==null?void 0:(a=E.mergeOptions)==null?void 0:a.repeatedFieldsMergeOption)}return n},W);
case "REPLACE_ENTITY":var C=k.payload;return WBP(W,C.entityType,C.key,C.entityPayload);case "REPLACE_ENTITIES":return Object.keys(k.payload).reduce(function(n,N){var B=k.payload[N];return Object.keys(B).reduce(function(A,w){return WBP(A,N,w,B[w])},n)},W);
case "UPDATE_ENTITY":return C=k.payload,kQ2(W,C.entityType,C.key,C.entityPayload,C.mergeOption);default:return W}};var Cu2;var JZx=!1,N$,Y7,BK,b8,A4,cZs=function(W){_.XK.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!JZx){var k,C=new Uint8Array(256),n=new Uint8Array(256);var N=1;for(k=0;k<256;k++)C[N]=k,n[k]=N,N^=N<<1^(N>>7&&283);N$=new Uint8Array(256);Y7=W3(256);BK=W3(256);b8=W3(256);A4=W3(256);for(var B=0;B<256;B++){N=B?n[255^C[B]]:0;N^=N<<1^N<<2^N<<3^N<<4;N=N&255^N>>>8^99;N$[B]=N;k=N<<1^(N>>7&&283);var A=k^N;Y7[B]=k<<24|N<<16|N<<8|A;BK[B]=A<<24|Y7[B]>>>8;b8[B]=N<<24|BK[B]>>>
8;A4[B]=N<<24|b8[B]>>>8}JZx=!0}N=W3(44);for(C=0;C<4;C++)N[C]=W[4*C]<<24|W[4*C+1]<<16|W[4*C+2]<<8|W[4*C+3];for(n=1;C<44;C++)W=N[C-1],C%4||(W=(N$[W>>16&255]^n)<<24|N$[W>>8&255]<<16|N$[W&255]<<8|N$[W>>>24],n=n<<1^(n>>7&&283)),N[C]=N[C-4]^W;this.key=N};
_.D(cZs,_.XK);
cZs.prototype.encrypt=function(W){var k=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+k));for(var C=this.cipherBlock,n=0;n<k&&this.blockOffset<16;)W[n++]^=C[this.blockOffset++];for(var N=k-(k-n)%16;n<N;)IjS(this),W[n++]^=C[0],W[n++]^=C[1],W[n++]^=C[2],W[n++]^=C[3],W[n++]^=C[4],W[n++]^=C[5],W[n++]^=C[6],W[n++]^=C[7],W[n++]^=C[8],W[n++]^=C[9],W[n++]^=C[10],W[n++]^=C[11],W[n++]^=C[12],W[n++]^=C[13],W[n++]^=C[14],W[n++]^=C[15];if(n<k)for(IjS(this),this.blockOffset=0;n<k;)W[n++]^=
C[this.blockOffset++];return W};
var S1C=function(W,k){for(var C=0;C<4;C++)W.counter[C]=k[C*4]<<24|k[C*4+1]<<16|k[C*4+2]<<8|k[C*4+3];W.blockOffset=16},IjS=function(W){for(var k=W.key,C=W.counter[0]^k[0],n=W.counter[1]^k[1],N=W.counter[2]^k[2],B=W.counter[3]^k[3],A=3;A>=0&&!(W.counter[A]=-~W.counter[A]);A--);
for(var w,x,E=4;E<40;)A=Y7[C>>>24]^BK[n>>16&255]^b8[N>>8&255]^A4[B&255]^k[E++],w=Y7[n>>>24]^BK[N>>16&255]^b8[B>>8&255]^A4[C&255]^k[E++],x=Y7[N>>>24]^BK[B>>16&255]^b8[C>>8&255]^A4[n&255]^k[E++],B=Y7[B>>>24]^BK[C>>16&255]^b8[n>>8&255]^A4[N&255]^k[E++],C=A,n=w,N=x;W=W.cipherBlock;A=k[40];W[0]=N$[C>>>24]^A>>>24;W[1]=N$[n>>16&255]^A>>16&255;W[2]=N$[N>>8&255]^A>>8&255;W[3]=N$[B&255]^A&255;A=k[41];W[4]=N$[n>>>24]^A>>>24;W[5]=N$[N>>16&255]^A>>16&255;W[6]=N$[B>>8&255]^A>>8&255;W[7]=N$[C&255]^A&255;A=k[42];
W[8]=N$[N>>>24]^A>>>24;W[9]=N$[B>>16&255]^A>>16&255;W[10]=N$[C>>8&255]^A>>8&255;W[11]=N$[n&255]^A&255;A=k[43];W[12]=N$[B>>>24]^A>>>24;W[13]=N$[C>>16&255]^A>>16&255;W[14]=N$[n>>8&255]^A>>8&255;W[15]=N$[N&255]^A&255};var MRA=!1;(function(){var W=function(n){return new Uint8Array(n)},k=function(n){for(var N=new Uint8Array(n.length),B=0;B<n.length;B++)N[B]=n[B];
return N},C=new Uint8Array([1]);
return C.length===1&&C[0]===1?W:k})();
var F1;var Qtz=function(W){this.JSC$10427_aesKey=W};
Qtz.prototype.encrypt=function(W,k){var C=this,n,N;return _.F(function(B){if(B.nextAddress==1){a:{if(!MRA&&!_.GW){if(F1){var A=F1;break a}F1=(A=window.crypto)==null?void 0:A.subtle;var w,x,E;if(((w=F1)==null?0:w.importKey)&&((x=F1)==null?0:x.sign)&&((E=F1)==null?0:E.encrypt)){A=F1;break a}F1=void 0}A=void 0}n=A;if(!n)return B.return(pr8(C,W,k));_.F0(B,3);return _.l(B,v88(C,W,k,n),5)}if(B.nextAddress!=3)return B.return(B.yieldResult);N=_.EF(B);_.zJ(N);MRA=!0;return B.return(pr8(C,W,k))})};
var v88=function(W,k,C,n){var N,B;return _.F(function(A){switch(A.nextAddress){case 1:if(W.cryptoKey){A.jumpTo(2);break}return _.l(A,n.importKey("raw",W.JSC$10427_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=A.yieldResult;case 2:return N={name:"AES-CTR",counter:C,length:128},_.l(A,n.encrypt(N,W.cryptoKey,k),4);case 4:return B=A.yieldResult,A.return(new Uint8Array(B))}})},pr8=function(W,k,C){W.encryptorPolyfill||(W.encryptorPolyfill=new cZs(W.JSC$10427_aesKey));
S1C(W.encryptorPolyfill,C);return W.encryptorPolyfill.encrypt(k)},ePS=function(W){this.JSC$10431_aesKey=W};
ePS.prototype.encrypt=function(W,k){this.encryptor||(this.encryptor=new cZs(this.JSC$10431_aesKey));S1C(this.encryptor,k);return this.encryptor.encrypt(W)};var stb={},YqP=RX("yt-idb-pref-storage",{objectStores:(stb.prefs={addedAtVersion:1},stb),shared:!1,upgrade:function(W,k){k(1)&&c$(JE(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.wF=function(W){this.token=W};
_.wF.getInstance=function(){return _.F(function(W){return W.return(new Promise(function(k){_.Z5().then(function(C){C?(_.wF.instance||(_.wF.instance=new _.wF(C)),k(_.wF.instance)):k(void 0)})}))})};
_.wF.prototype.get=function(W){var k=this,C,n,N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,BcX(k.token),2);if(B.nextAddress!=3)return C=B.yieldResult,_.l(B,C.get("prefs",W),3);n=B.yieldResult;if(!n)return B.return();N=(0,_.oX)();return n.expirationTimestampMs<=N?B.return():B.return(n.value)})};
_.wF.prototype.set=function(W,k,C){C=C===void 0?31536E3:C;var n=this,N,B,A;return _.F(function(w){if(w.nextAddress==1)return N=(0,_.oX)(),B={key:W,value:k,expirationTimestampMs:N+C*1E3},_.l(w,BcX(n.token),2);A=w.yieldResult;return _.l(w,A.put("prefs",B),0)})};
_.wF.prototype.remove=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,BcX(k.token),2);C=n.yieldResult;return _.l(n,C.delete("prefs",W),0)})};var x7={},G1s=(x7.INVALID_ENCODER_VERSION="Invalid encoder version",x7.KEY_CREATION_FAILED="Failed to create encoder key",x7.UNKNOWN_DECODE_ERROR="Failed to decode PES data",x7.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",x7.WRONG_DATA_TYPE="Encoder cannot process the data type",x7),kS=function(W,k){k=k===void 0?{}:k;_.AM.call(this,G1s[W],Object.assign({},{name:"PESEncoderError",type:W},k));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,kS.prototype)};
_.D(kS,_.AM);var yZs=function(){},$YY=function(W,k,C){try{return W.encodeImpl(k,C)}catch(n){wnz(n,ATw)}},ZuA=function(W,k,C){var n;
return _.F(function(N){if(N.nextAddress==1)return _.F0(N,2),_.l(N,W.decodeAsyncImpl(k,C),4);if(N.nextAddress!=2)return N.return(N.yieldResult);n=_.EF(N);wnz(n,FBp);_.ab(N)})};
yZs.prototype.decodeAsyncImpl=function(W,k){return Promise.resolve(this.decodeImpl(W,k))};var l8=function(W,k){this.aesEncryptor=W;this.aesEncryptorAsync=k};
_.D(l8,yZs);l8.prototype.encodeImpl=function(W,k){k=xtc(k);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,k)};
l8.prototype.decodeImpl=function(W,k){if(!(W instanceof Uint8Array))throw b84(1);var C=new TextDecoder;k=xtc(k);W=this.aesEncryptor.encrypt(W,k);return JSON.parse(C.decode(W))};
l8.prototype.decodeAsyncImpl=function(W,k){var C=this,n,N,B;return _.F(function(A){if(A.nextAddress==1){if(!(W instanceof Uint8Array))throw b84(1);n=new TextDecoder;N=xtc(k);return _.l(A,C.aesEncryptorAsync.encrypt(W,N),2)}B=A.yieldResult;return A.return(JSON.parse(n.decode(B)))})};var lnI={accountLinkStatusEntity:SO2,booleanEntity:nv2,buttonEntity:g7b,captionTrack:hWz,channelHandle:jaZ,commerceAcquisitionClientPayloadEntity:miZ,commerceCartListEntity:zR2,contextNoteFeedEntityPayload:WeZ,continuationTokenEntity:Z3S,downloadQualityPickerEntity:I28,downloadsPageRefreshTokenEntity:MzS,downloadsPageViewConfigurationEntity:LFS,downloadStatusEntity:SnY,dismissState:ZEZ,sfvAudioItemCurrentlyPlayingEntity:eyY,emojiFountainDataEntity:jr2,emojiCustomizationSetEntity:LSZ,fakeChannel:BDY,
fakePlaylist:b_I,fakePlaylistEntryCollection:AkC,fakeVideo:w0z,fakeVideoDescription:xFb,featuredProductsEntity:wO8,flowStateEntity:VFs,iconBadgeEntity:Dib,interstitialInteractionStateEntity:O_x,likeButtonAnimationEntity:jyz,liveChatPollStateEntity:hXA,liveViewerLeaderboardChatEntryPointStateEntity:tCs,liveViewerLeaderboardPointsEntity:EkA,liveReactionsDataEntity:HEY,logoEntity:qOS,macroMarkerEntity:H3I,mainDownloadsLibraryEntity:Qy8,mainDownloadsListEntity:pFS,mainPlaylistDownloadStateEntity:eMx,
mainPlaylistEntity:RMz,mainPlaylistVideoEntity:oMs,mainVideoDownloadStateEntity:syx,mainVideoEntity:uhs,markersEngagementPanelSyncEntity:r9s,markersVisibilityOverrideEntity:gMb,musicAlbumReleaseDetail:DnC,musicAlbumReleaseDownloadMetadataEntity:XOz,musicAlbumRelease:zWZ,musicAlbumReleaseUserDetail:VBY,musicArtistDetail:clY,musicArtist:JlI,musicArtistUserDetail:IIz,musicDownloadsLibraryEntity:fIA,musicLibraryEdit:S7Y,musicLibraryStatusEntity:MBA,musicPlaylist:QvS,musicPlaylistDownloadMetadataEntity:dns,
musicShare:vqA,musicTrackDetail:sv2,musicTrackDownloadMetadataEntity:mns,musicTrack:eWA,musicTrackUserDetail:Gu8,offlineOrchestrationActionWrapperEntity:WBY,offlineVideoPolicy:kQA,offlineVideoStreams:CuA,offlineabilityEntity:G0Y,orchestrationWebSamplingEntity:y9A,pageHeaderEntity:iEI,pdpStateEntity:VVs,pinnedProductEntity:xnY,playbackData:nkx,playerStateEntity:PPZ,quantityIncrementerEntity:JwS,refresh:NcC,saveToPlaylistListEntity:hyS,settingEntity:m$s,stringEntity:NDs,suggestedFeedbackChipStateEntity:KFx,
transfer:YqY,trendingOfferEntity:lIz,videoDownloadContextEntity:BcZ,videoOverviewAsyncDataEntity:HlI,videoPlaybackPositionEntity:hjA,votingEntity:qV8,ytMainChannelEntity:UVI,youchatPendingResponseEntity:hMS,ytMainDownloadedVideoEntity:$VC,ytMainVideoEntity:O3C};var RPS,iuz,B3,zyX,DtJ,uCs,Oux,UYs,q18;RPS=function(W,k){this.JSC$10450_wrapped=W;this.JSC$10450_encoderRegistry=k;this.changedKeys={}};
iuz=function(W,k){a:{W=o8b(W.JSC$10450_encoderRegistry,k.version);try{var C=W.decodeImpl(k.data,k.key);break a}catch(n){wnz(n,FBp)}C=void 0}return C};
_.TXC=function(W,k,C){return W.JSC$10450_wrapped.objectStore("EntityStore").get(k).then(function(n){if(n){if(C&&n.entityType!==C)throw Error("zf");return iuz(W,n)}})};
B3=function(W,k,C){return C?(C=C.map(function(n){return _.TXC(W,n,k)}),JM.all(C)):W.JSC$10450_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(k)).then(function(n){return n.map(function(N){return iuz(W,N)})})};
_.mtw=function(W,k,C){var n=PFm(k),N=o8b(W.JSC$10450_encoderRegistry,1),B=Object.assign({},k);return W.JSC$10450_wrapped.objectStore("EntityStore").get(n).then(function(A){if(A){if(A.entityType!==C)throw Error("zf");B.entityMetadata||(A=iuz(W,A),B.entityMetadata=A.entityMetadata)}}).then(function(){var A={key:n,
entityType:C,data:$YY(N,B,n),version:1};return JM.all([W.JSC$10450_wrapped.objectStore("EntityStore").put(A),q18(W,B,C)])}).then(function(){uCs(W,n,C);
return n})};
zyX=function(W,k){var C=_.r8(k).entityType;return JM.all([W.JSC$10450_wrapped.objectStore("EntityStore").delete(k),UYs(W,k)]).then(function(){uCs(W,k,C)})};
DtJ=function(W,k,C,n){var N=o8b(W.JSC$10450_encoderRegistry,1);return _.TXC(W,k,n).then(function(B){if(B){B=RW3(B,C);var A={key:k,entityType:n,data:$YY(N,B,k),version:1};return JM.all([W.JSC$10450_wrapped.objectStore("EntityStore").put(A),q18(W,B,n)])}}).then(function(){uCs(W,k,n);
return k})};
uCs=function(W,k,C){var n=W.changedKeys[C];n||(n=new Set,W.changedKeys[C]=n);n.add(k)};
Oux=function(W,k,C){var n=PFm(k);C=tCm(C);if(!C)return JM.resolve([]);C=new C(k);W=W.JSC$10450_wrapped.objectStore("EntityAssociationStore");k=[];C=_.b(C.getAssociations());for(var N=C.next();!N.done;N=C.next())k.push(W.put({parentEntityKey:n,childEntityKey:N.value}));return JM.all(k).then(function(B){return B.map(function(A){return A[1]})})};
UYs=function(W,k){return W.JSC$10450_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(k))};
q18=function(W,k,C){var n=PFm(k);return UYs(W,n).then(function(){return Oux(W,k,C)})};var L2C=function(){};
_.D(L2C,yZs);L2C.prototype.encodeImpl=function(W){return W};
L2C.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw b84(0);return W};var XnJ=function(){this.cacheMap={};this.cacheMap[0]=new L2C;if(!_.m("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var k=_.B4();var C=xtc(k);var n=new l8(new ePS(C),new Qtz(C))}catch(N){throw W=N instanceof Error?new kS("KEY_CREATION_FAILED",{originalMessage:N.message}):new kS("KEY_CREATION_FAILED"),_.dI(W),W;}W[1]=n}},o8b=function(W,k){k=k===void 0?0:k;
W=W.cacheMap[k];if(!W)throw k=new kS("INVALID_ENCODER_VERSION",{encoderVersion:k}),_.dI(k),k;return W};var n5=function(W,k){_.XK.call(this);this.token=W;this.JSC$10464_encoderRegistry=k;this.observers=[];W=new _.NX.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.B4());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.D(n5,_.XK);_.YS=function(W,k,C){var n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return _.l(w,Ncc(W.token),2);if(w.nextAddress!=3)return n=w.yieldResult,_.l(w,_.v4(n,["EntityStore","EntityAssociationStore"],k,function(x){N=new RPS(x,W.JSC$10464_encoderRegistry);return C(N)}),3);
B=w.yieldResult;N&&(A=N.changedKeys,Object.keys(A).length>0&&(W.channel.postMessage(A),jtS(W,A)));return w.return(B)})};
n5.prototype.observe=function(W){var k=this;this.observers.push(W);return function(){var C=k.observers.indexOf(W);C>=0&&k.observers.splice(C,1)}};
var PCz=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,_.YS(W,{mode:"readonly",enableRetries:!0},function(n){return n.JSC$10450_wrapped.objectStore("EntityStore").getAll()}),2);
k=C.yieldResult;return C.return(Promise.all(k.filter(function(n){return!!n}).map(function(n){var N,B;
return _.F(function(A){if(A.nextAddress==1){N=n.key;B=n.entityType;var w=ZuA(o8b(W.JSC$10464_encoderRegistry,n.version),n.data,n.key);return _.l(A,w,2)}return A.return({key:N,entityType:B,data:A.yieldResult})})})))})};
n5.prototype.handleMessage=function(W){jtS(this,W.data)};
var jtS=function(W,k){W=_.b(W.observers);for(var C=W.next();!C.done;C=W.next())C=C.value,C(k)};
n5.prototype.disposeInternal=function(){this.channel.close()};
var EkI;var t4,rZs,d$m,TcK;t4={};_.Huz=(t4.mainVideoEntity="mainVideoEntityActionMetadata",t4.mainPlaylistEntity="mainPlaylistEntityActionMetadata",t4.musicTrack="musicTrackEntityActionMetadata",t4.musicPlaylist="musicPlaylistEntityActionMetadata",t4);rZs=new _.Tc("DOWNLOADS_ENTITY_TYPE_MAP");d$m=_.KB("","downloadsPageViewConfigurationEntity");TcK=_.KB("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.D$3=_.KB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.KB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.KB("SMART_DOWNLOADS_ENABLED","settingEntity");_.KB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Sqc=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var GQ4=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var A4w={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var EV,Bhm,naY,ghw;EV=window;_.SW=EV.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.f1m=EV.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.sb;Bhm=EV.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||XY;naY=EV.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||CV8;_.g88=EV.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.mNx;ghw=EV.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||VcZ;v3({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 zRz=blw(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),lc3=blw(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),xic=new Map;var VVm=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],XRm;var Pj8=function(W){return _.jo({type:"SET_EPHEMERAL_ACTION",payload:W})};var K28={ephemeralAction:null};var hPY={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Olc={sharedUi:function(W,k){W=W===void 0?hPY:W;switch(k.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:k.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:k.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:k.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:k.payload});default:return W}},
a11y:NL({ephemeralAction:function(W,k){W=W===void 0?K28.ephemeralAction:W;switch(k.type){case "SET_EPHEMERAL_ACTION":return k.payload;default:return W}}})};var RR3=NL({isLeaderTab:function(W,k){W=W===void 0?!0:W;switch(k.type){case "SET_IS_LEADER_TAB":var C,n;return(n=k==null?void 0:(C=k.payload)==null?void 0:C.isLeaderTab)!=null?n:W;default:return W}}});var WAz=function(W){return _.jo({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};var Ui2=NL({isDesktopSmallWidth:function(W,k){switch(k.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return k.payload.isDesktopSmallWidth;default:return W===void 0?!1:W}},
isShortsActive:function(W,k){switch(k.type){case "SET_IS_SHORTS_ACTIVE":return k.payload.isShortsActive;default:return W===void 0?!1:W}},
isWatchWhileMode:function(W,k){switch(k.type){case "SET_IS_WATCH_WHILE_MODE":return k.payload.isWatchWhileMode;default:return W===void 0?!1:W}},
playerState:function(W,k){switch(k.type){case "SET_PLAYER_STATE":return k.payload.playerState;default:return W===void 0?-1:W}},
isFullscreen:function(W,k){switch(k.type){case "SET_IS_FULLSCREEN":return k.payload.isFullscreen;default:return W===void 0?!1:W}},
isSmallScreenSqueezeback:function(W,k){switch(k.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return k.payload.isSmallScreenSqueezeback;default:return W===void 0?!1:W}},
isShortsPipActive:function(W,k){switch(k.type){case "SET_IS_SHORTS_PIP_ACTIVE":return k.payload.isShortsPipActive;default:return W===void 0?!1:W}},
isPlaybackStarted:function(W,k){switch(k.type){case "SET_IS_PLAYBACK_STARTED":return k.payload.isPlaybackStarted;default:return W===void 0?!1:W}}});var Qk4={playlistId:"",inviteLinkURL:""};var kkA={};var ZlK=NL({continuationCommand:function(W,k){W=W===void 0?kkA:W;switch(k.type){case "SET_CONTINUATION_COMMAND":return k.payload.continuationCommand;default:return W}}});var jkm=function(){return function(W){return function(k){var C=W(k);_.KY(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[k],!0);return C}}};var C4A;C4A=new _.gn;_.qE=new _.Tc("WATCH_PLAYER_PROMISE_TOKEN");_.nAb=new _.gn;_.Nls=new _.Tc("SHORTS_PLAYER_PROMISE_TOKEN");_.jr=new _.Tc("");var HlJ=function(){return function(W){return function(k){k.type==="ENTITY_LOADED"&&_.f().resolve(_.qE).then(function(C){var n;(n=C.dispatchReduxAction)==null||n.call(C,k)});
return W(k)}}};var vDX={currentFormId:"",commandsMap:{}};var YmI={};var oD4=NL({additionalContext:function(W,k){switch(k.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var C;return(C=k.payload)!=null?C:"";default:return W===void 0?"":W}},
impersonatedChannelUrl:function(W,k){switch(k.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var C;return(C=k.payload)!=null?C:"";default:return W===void 0?"":W}},
selectedVideoIds:function(W,k){W=W===void 0?YmI:W;switch(k.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var C={};return Object.assign({},W,(C[k.payload]=!0,C));case "VIDEO_UNSELECTED":return k=k.payload,W=Object.assign({},W),delete W[k],W;default:return W}}});var ilK=NL({parentClickTrackingParams:function(W,k){switch(k.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return k.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W===void 0?"":W}}});var BlZ=function(W){return _.jo({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};var bcs={};var ThK=NL({stepStates:function(W,k){W=W===void 0?bcs:W;switch(k.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var C=W,n=k.payload,N,B,A;W={};k={selectionStates:Object.assign({},(A=(N=C[n.stepId])==null?void 0:N.selectionStates)!=null?A:{},(W[n.token]={isSelected:n.isSelected},W)),userQuery:(B=C[n.stepId])==null?void 0:B.userQuery};N={};return Object.assign({},C,(N[n.stepId]=k,N));case "TALK_TO_RECS_UPDATE_USER_QUERY":return N=W,B=k.payload,A={selectionStates:Object.assign({},
(n=(C=N[B.stepId])==null?void 0:C.selectionStates)!=null?n:{}),userQuery:{userQuery:B.userQuery,token:B.userQueryToken}},C={},Object.assign({},N,(C[B.stepId]=A,C));default:return W}}});var Aa2,FAA;Aa2=function(W){return _.jo({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
FAA=function(W){return _.jo({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.Va=function(W){return _.jo({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.wZI=function(W){return _.jo({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};var sk2={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"};_.xg8=function(W){return _.jo({type:"SET_PLAYER_STATE",payload:{playerState:W}})};var l_8=[],tAI={width:0,height:0};var qQP=NL({isTheaterMode:function(W,k){W=W===void 0?_.cv("START_IN_THEATER_MODE"):W;switch(k.type){case "SET_IS_THEATER_MODE":return k.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,k){switch(k.type){case "SET_IS_WATCH_ACTIVE":return k.payload.isWatchActive;default:return W===void 0?!1:W}},
isWatchFullscreen:function(W,k){switch(k.type){case "SET_IS_WATCH_FULLSCREEN":return k.payload.isWatchFullscreen;default:return W===void 0?!1:W}},
isWatchNarrowWidth:function(W,k){switch(k.type){case "SET_IS_WATCH_NARROW_WIDTH":return k.payload.isWatchNarrowWidth;default:return W===void 0?!1:W}},
isWatchRetroMode:function(W,k){switch(k.type){case "SET_IS_WATCH_RETRO_MODE":return k.payload.isWatchRetroMode;default:return W===void 0?!1:W}},
isLiveChatCollapsed:function(W,k){switch(k.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return k.payload.isLiveChatCollapsed;default:return W===void 0?!1:W}},
openEngagementPanels:function(W,k){W=W===void 0?l_8:W;var C=[].concat(_.J8(W));switch(k.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return C.push(k.payload.panelToAdd),C;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return C.splice(C.indexOf(k.payload.panelToRemove),1),C;default:return W}},
playerState:function(W,k){switch(k.type){case "SET_PLAYER_STATE":return k.payload.playerState;default:return W===void 0?-1:W}},
watchScrollTop:function(W,k){switch(k.type){case "SET_WATCH_SCROLL_TOP":return k.payload.watchScrollTop;default:return W===void 0?0:W}},
watchWindowSize:function(W,k){W=W===void 0?tAI:W;switch(k.type){case "SET_WATCH_WINDOW_SIZE":return k.payload.watchWindowSize;default:return W}}});var EAI={feedbackTokens:[]};var ueJ=NL({surveyFeedbackData:function(W,k){W=W===void 0?EAI:W;switch(k.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return k.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,k.payload);default:return W}}});var ywm={};var gDw=void 0;_.m("web_enable_redux_store_on_demand")||(gDw=rwJ());var a_Y=function(W,k,C){var n=this;this.listId=W;this.JSC$10597_updateCallback=k;this.isOfflineVideoCallback=C;_.ZF().subscribe(function(){n.handleUpdate()})};
a_Y.prototype.getPlaylistData=function(){var W=_.ZF().getState().entities;if(this.listId&&this.listId!=="PPSV"){var k=PuJ(W,this.listId,!0),C=_.KB(this.listId,"mainPlaylistEntity"),n,N;W=W==null?void 0:(n=W.mainPlaylistEntity)==null?void 0:(N=n[C])==null?void 0:N.title;return PkJ(k,W,this.listId)}k=_.yTz(IYK(W));W=_.yTz(_.aY(W));return PkJ(k.concat(W))};
a_Y.prototype.getPlaylistId=function(){return this.listId};
a_Y.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10597_updateCallback(this.listId,this.getPlaylistData(),{})};var ar=function(W,k,C,n){n=n===void 0?[]:n;this.JSC$10600_playlistNetworkManager=W;this.listId=k;this.JSC$10600_updateCallback=C;this.videoIds=n;this.pendingUpdates=[];this.currentIndex=0};
ar.prototype.JSC$10600_setCurrentIndex=function(W){this.currentIndex=W};
ar.prototype.setListId=function(W){this.listId=W};
var XZb=function(W,k){W.currentCreateRequest&&W.currentCreateRequest.cancel(k);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(k);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(k)};
ar.prototype.delete=function(){XZb(this,"PROXY DELETED")};
ar.prototype.addVideos=function(W,k,C){var n=this;C!==void 0?this.videoIds.splice.apply(this.videoIds,[C,0].concat(_.J8(W))):this.videoIds.push.apply(this.videoIds,_.J8(W));this.listId||this.currentCreateRequest?(W.forEach(function(N,B){N={addedVideoId:N,action:"ACTION_ADD_VIDEO"};C&&(N.addedVideoPosition=C+B);n.pendingUpdates.push(N)}),X1(this)):f_b(this,k.onCreateListCommand)};
var dgA=function(W,k,C,n,N){pwJ(W.videoIds,k,C);k>W.currentIndex&&C<=W.currentIndex?W.JSC$10600_setCurrentIndex(W.currentIndex+1):k===W.currentIndex?W.JSC$10600_setCurrentIndex(C):k<W.currentIndex&&C>=W.currentIndex&&W.JSC$10600_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:n,movedSetVideoIdPredecessor:N});X1(W)},f_b=function(W,k){XZb(W,"OBSOLETE");
W.currentCreateRequest=mgs(W.JSC$10600_playlistNetworkManager,k,W.videoIds);_.aa(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(C){W.setListId(C.playlistId);
W.pendingUpdates.length>0?X1(W):zYS(W)})},X1=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var k=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$10600_playlistNetworkManager.updatePlaylist(W.listId,k);_.aa(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?X1(W):zYS(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.J8(k))})}},zYS=function(W){W.currentRefreshRequest=_.DgI(W.JSC$10600_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.aa(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(k){W.JSC$10600_updateCallback(k.playlistId,k.playlistPanelRenderer,k.autoplayRenderer)})};
ar.prototype.size=function(){return this.videoIds.length};var VAs=function(W,k,C,n){n=n===void 0?[]:n;ar.call(this,W,k,C,n);this.JSC$10600_playlistNetworkManager=W;this.listId=k;this.JSC$10600_updateCallback=C;this.videoIds=n};
_.D(VAs,ar);_.fE=function(W,k,C,n,N,B,A){N=N===void 0?[]:N;A=A===void 0?r2:A;ar.call(this,W,k,C,N);this.JSC$10600_playlistNetworkManager=W;this.listId=k;this.JSC$10600_updateCallback=C;this.onAuthChange=n;this.videoIds=N;this.storage=B;this.cookieReader=A;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.oE(_.aM,this.checkLoggedInStatusChange.bind(this),1E3)};
_.D(_.fE,ar);_.Y=_.fE.prototype;_.Y.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.oE(_.aM,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Y.JSC$10600_setCurrentIndex=function(W){ar.prototype.JSC$10600_setCurrentIndex.call(this,W);this.store()};
_.Y.delete=function(){_.aM.cancelJob(this.queueSapisIdJob);ar.prototype.delete.call(this)};
_.Y.setListId=function(W){ar.prototype.setListId.call(this,W);this.store()};
_.Y.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var JaS=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],caA=["playerResponse","videoDetails"],I_A=["response","currentVideoEndpoint","watchEndpoint","videoId"],SmC=["response","currentVideoEndpoint","watchEndpoint","playlistId"],MAC=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Qcz=["response","contents","twoColumnWatchNextResults","playlist","playlist"],pZA=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
vAY=["response","contents","twoColumnWatchNextResults"];var dF={},Cyw=(dF.WEB_UNPLUGGED="^unplugged/",dF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",dF.WEB_UNPLUGGED_OPS="^unplugged/",dF.WEB_UNPLUGGED_PUBLIC="^unplugged/",dF.WEB_CREATOR="^creator/",dF.WEB_KIDS="^kids/",dF.WEB_EXPERIMENTS="^experiments/",dF.WEB_MUSIC="^music/",dF.WEB_REMIX="^music/",dF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",dF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",dF);var s$z,mgs;s$z=function(W,k){this.networkManager=W;this.innertubeTransportService=k};
mgs=function(W,k,C){if(!_.z(k,_.cn))return _.eh(Error("Df"));_.z(k,_.cn).videoIds=C;C={create_playlist_title:_.w8("QUEUE",void 0,"Queue")};return W1K(_.Sr(W.innertubeTransportService,k,C),KuP)};
_.DgI=function(W,k,C,n){k={videoId:n,playlistId:k,playlistIndex:C};C=_.RY(GII);return W1K(_.DY(W.innertubeTransportService,k,C),kP3)};
s$z.prototype.updatePlaylist=function(W,k){return W1K(_.Sr(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:k}}),hRP)};var Vd=function(W){this.storage=W},eYS;
Vd.prototype.store=function(W,k){k=k===void 0?0:k;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(k)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(C){}};
Vd.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Vd.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(k){}return W};
Vd.prototype.getIndex=function(){if(this.storage){try{var W=this.storage.get("TLPQindex")}catch(k){}W=Number(W);if(!isNaN(W))return W}};var BLw=["navigationEndpoint","watchEndpoint","videoId"],Y9m=["nextButtonVideo","watchEndpoint","videoId"];_.Ah=new _.Tc("NETWORK_TOKEN");_.yF=new _.Tc("PAGE_TOKEN");_.J4=new _.Tc("PLAYLIST_TOKEN");var scY;scY=new _.Tc("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.xZ=new _.Tc("INNERTUBE_TRANSPORT_TOKEN");var GkS,cK,$gI,Zcx,oAA,icx;GkS=new Set(["ci","cr","carml"]);cK=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10647_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Ir=function(){cK.instance||(cK.instance=new cK);return cK.instance};
cK.prototype.onAny=function(W){return _.yaY(this,W,2)};
cK.prototype.parkOrScheduleJob=function(W,k,C,n,N){_.SD(this,C)?_.D7().addJob(W,k,n):(N&&(W=$gI(W),Zcx(this,W,k,C,N)),N=this.JSC$10647_parkedJobs.get(C),N||(this.JSC$10647_parkedJobs.set(C,[]),N=this.JSC$10647_parkedJobs.get(C)),N.push({job:W,priority:k,delay:n}))};
cK.prototype.addListener=function(W,k,C){C&&(k=$gI(k),Zcx(this,k,0,W,C));C=this.parkedProcessors.get(W);C||(this.parkedProcessors.set(W,[]),C=this.parkedProcessors.get(W));C.push(k)};
cK.prototype.processSignal=function(W){if(!_.SD(this,W)){this.inProgressSignals.add(W);var k=this.JSC$10647_parkedJobs.get(W);if(k){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,_.D7().addJob(C.job,C.priority,C.delay);this.JSC$10647_parkedJobs.delete(W)}if(k=this.parkedProcessors.get(W)){k=_.b(k);for(C=k.next();!C.done;C=k.next())C=C.value,C();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.SD=function(W,k){return GkS.has(k)||_.cv("IS_HOMEPAGE_COLD")||_.cv("IS_RESULTS_PAGE_COLD")||_.cv("IS_WATCH_PAGE_COLD")?W.signals.indexOf(k)>=0:!0};
$gI=function(W){var k=!1;return function(){k||(k=!0,W())}};
Zcx=function(W,k,C,n,N){if(RYA.has(n))_.D7().addJob(k,C,N);else{var B=W.compoundSignals.get(n);B&&_.D7().addJob(function(){_.SD(W,n)||(B.isTimeoutConditionSatisfied?_.D7().addJob(k,C):B.timeoutConditionObservers.push(function(){_.D7().addJob(k,C)}))},C,N)}};
_.yaY=function(W,k,C){if(k.length>1){var n=[],N=Object.create(null);k=_.b(k);for(var B=k.next();!B.done;B=k.next())B=B.value,N[B]||(n.push(B),N[B]=!0);k=n}if(k.length===1)return k[0];B=k;n="";N=C===2?"|":"&";B.sort();B=_.b(B);for(var A=B.next();!A.done;A=B.next())n+=A.value+N;if(!W.compoundSignals.get(n)){N=0;B=[];A=_.b(k);for(var w=A.next();!w.done;w=A.next())w=w.value,N++,_.SD(W,w)||B.push(w);(C=C===2)&&N>B.length||!C&&!B.length?W.signals.push(n):oAA(W,n,C,k,B)}return n};
oAA=function(W,k,C,n,N){var B=N.length,A=function(){C||--B===0?W.processSignal(k):icx(W,k)};
N=_.b(N);for(var w=N.next();!w.done;w=N.next())W.addListener(w.value,A);W.compoundSignals.set(k,{signals:n,isOnAny:C,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});icx(W,k)};
icx=function(W,k){if(!_.SD(W,k)){var C=W.compoundSignals.get(k);if(C&&!C.isTimeoutConditionSatisfied){for(var n=!1,N=0,B=0,A=_.b(C.signals),w=A.next();!w.done;w=A.next()){var x=w.value;w=!_.SD(W,x);RYA.has(x)?n=!0:(x=W.compoundSignals.get(x))?w&&!x.isTimeoutConditionSatisfied&&(B++,C.isInitialized||x.timeoutConditionObservers.push(function(){icx(W,k)})):w&&N++}C.isInitialized=!0;
C.isOnAny?n&&(C.isTimeoutConditionSatisfied=!0):N===0&&B===0&&(C.isTimeoutConditionSatisfied=!0);if(C.isTimeoutConditionSatisfied)for(C=_.b(C.timeoutConditionObservers),n=C.next();!n.done;n=C.next())n=n.value,n()}}};
cK.prototype.processSignal=cK.prototype.processSignal;cK.prototype.parkOrScheduleJob=cK.prototype.parkOrScheduleJob;cK.prototype.onAny=cK.prototype.onAny;_.$g("ytsignals.getInstance",_.Ir);cK.prototype.onAny=cK.prototype.onAny;cK.prototype.parkOrScheduleJob=cK.prototype.parkOrScheduleJob;cK.prototype.processSignal=cK.prototype.processSignal;var RYA=new Set(["eop","eocs","dl","pcl"]);_.eq=new _.Tc("MINIPLAYER_SERVICE");var M$,TlS,qmY;M$=function(W,k,C){var n=_.vx.getInstance();if(!eYS){var N=new F7X;var B=void 0,A=_.DE("ID_TOKEN");A&&N.isAvailable()&&(B=new lp(N,"yt-queue"+A));eYS=new Vd(B)}N=eYS;B=_.Ir();this.JSC$10654_actionRouter=n;this.pageManager=W;this.playlistManager=k;this.JSC$10654_playlistNetworkManager=C;this.storage=N;this.signals=B;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Qd=function(){if(!TlS){var W=_.f(),k=W.resolve(_.qI(_.yF)),C=W.resolve(_.qI(_.Ah)),n=W.resolve(_.qI(_.J4));W=W.resolve(_.xZ);TlS=new M$(k,n,new s$z(C,W))}return TlS};
qmY=function(W,k,C){if(C){var n;if(((n=W.responsePlaylistData)==null?void 0:n.playlistId)!==C)return}W.responsePlaylistData&&(C=lpz(k,W.responsePlaylistData),W.responsePlaylistData=(0,_.JU.unsafeClone)(W.responsePlaylistData),E$c(W.responsePlaylistData,C));C=W.temporaryItems.findIndex(function(N){return N.videoId===k});
C>-1&&W.temporaryItems.splice(C,1);_.pE(W,_.vK(W,W.response?W.response.autoplayRenderer:void 0))};
_.uyS=function(W,k){if(W.responsePlaylistData){var C=taJ(k,W.responsePlaylistData);E$c(W.responsePlaylistData,C);if(W.queueProxy){var n=W.queueProxy;C<0||(n.videoIds.splice(C,1),C<n.currentIndex&&n.JSC$10600_setCurrentIndex(n.currentIndex-1),n.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:k}),X1(n))}}_.pE(W,_.vK(W,W.response?W.response.autoplayRenderer:void 0))};
M$.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.pE(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
M$.prototype.setPlaylistData=function(W,k,C){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=k;_.pE(this,_.vK(this,C))};
var Ug2=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},Ocz=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:rTP(_.ZF().getState().entities,W.playlistId):!1};
M$.prototype.isPlayingOfflineVideo=function(){return this.response?Ocz(this.response):!1};
M$.prototype.closeMiniplayer=function(W){var k=this.queueProxy&&this.queueProxy.size()<=1,C=_.f().resolve(_.eq);if(!this.queueProxy||k)this.queueProxy&&this.clearQueue(),C.close(!0);else{C.pipController.getWindow()&&window.focus();k=this.responsePlaylistData;var n=this.temporaryItems.length+(k&&k.contents?k.contents.length:0);k=_.w8("QUEUE_CLEARED_UNPLURALIZED")||_.xQ("QUEUE_CLEARED",n);k=_.iO(k);C=_.w8("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");n=_.w8("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.xQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",n);var N=_.w8("MINIPLAYER_CLOSE",void 0,"Close"),B=_.w8("CANCEL",void 0,"Cancel");_.Dm(this.JSC$10654_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Go(C),dialogMessages:[_.Go(n)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Go(N),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
k]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Go(B)}}}}}}],W)}};
_.vK=function(W,k){var C={},n=W.response;C.autoplayRenderer=k;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!n||!n.hasRelatedVideoData&&_.m("kevlar_prefetch_data_augments_network_data")||(C.playerData={rvs:n.relatedVideoArgs,endScreenRenderer:n.endScreenRenderer}),C;C.playerData={};if(W.index===void 0)return _.dI(Error("Ff")),C;C.panel=W.responsePlaylistData?(0,_.JU.unsafeClone)(W.responsePlaylistData):{titleText:_.Go(_.w8("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
k=C.panel;if(k.contents)for(var N=_.b(W.temporaryItems),B=N.next();!B.done;B=N.next())k.contents.push({playlistPanelVideoRenderer:B.value});W.queueProxy&&n&&n.playingVideo&&n.playingVideoId&&!xMp(n.playingVideoId,C.panel)&&(k=n.playingVideo,N=C.panel,B=W.index,N.contents&&N.contents.splice(B===void 0?0:B,0,{playlistPanelVideoRenderer:k}));n&&n.playingVideoId&&(k=W.index,N=C.panel,k=!N.contents||k>=N.contents.length?void 0:N.contents[k].playlistPanelVideoRenderer,k&&k.videoId===n.playingVideoId||(k=
lpz(n.playingVideoId,C.panel),W.index=k!==-1?k:W.index?W.index-1:0));k=wLp(W.index+1,C.panel);N=void 0;W.index>0&&(N=wLp(W.index-1,C.panel));if(N||k)C.autoplayRenderer=bR2(k,N,C.autoplayRenderer);!k&&(n==null?0:n.relatedVideoArgs)&&(C.playerData.rvs=n.relatedVideoArgs);n=n?n.playlistIndexOffset:0;W.queueProxy?fpK(C.panel,W.index,n,F12,!0,!0,!0):fpK(C.panel,W.index,n);C.playerData.playlistPanelRenderer=C.panel;return C};
M$.prototype.openToast=function(W){_.f().resolve(_.eq).openToast(W,_.w8("ADDED_TO_QUEUE",void 0,"Added to queue"))};
M$.prototype.isMiniplayerActive=function(){return _.f().resolve(_.eq).isMiniplayerActive()};
_.pE=function(W,k){W.playlistManager.setAutoplayRenderer(k.autoplayRenderer||null);W.playlistManager.setPlaylistData(k.panel||null);k.playerData&&W.playlistManager.setPlayerPlaybackControlData(k.playerData)};var mMK="#";var LA8={},jcS={},HcA={},ra8={},gAS={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:(LA8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",LA8),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:(jcS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",jcS),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:(HcA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",HcA),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:(ra8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ra8),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 C_X=[{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:gAS},{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:gAS}}];var P4C=[["YXJ5I2VhMmF3YWI4aXQ0MnByaW0=",null],[null,["bHRzLXJlbmRlcmVyI2tvYXl2NWltdGkxZXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1","eGpuNHN0eWxlLXNjb3BlIzMyejE1end3"]],["OHd3b21hc3RoZWFkLWFkI21pZ3N1MzFn",["Zm51dW42eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciMxYmlndzM="]],[null,["OHJsc3IzeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNibXkzazg=","NnV3cnN0eWxlLXNjb3BlI3dqYmxlc3o0"]],[null,["eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN1eDBndmZpNnNnaGY=","OW14Y3N0eWxlLXNjb3BlIzZ5eXUzMTY0"]],[null,["aTR0ZWI3dzBreHl0ZC1hZC1zbG90LXJlbmRlcmVyI2Qx"]]],
KAS=[["NnQ0NGlhMnBsYXllci1hZHMjdWRhcG8=",null]];var L14=[["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 eD;eD=function(W,k,C){this.sxk=W;this.isAsync=k;this.snj=C};
_.tew=[new eD("b.f_",!1,0),new eD("j.s_",!1,2),new eD("r.s_",!1,4),new eD("e.h_",!1,6),new eD("i.s_",!0,8),new eD("s.t_",!1,10),new eD("p.h_",!1,12),new eD("s.i_",!1,14),new eD("f.i_",!1,16),new eD("a.b_",!1,18),new eD("a.o_",!1),new eD("g.o_",!1,22),new eD("p.i_",!1,24),new eD("p.m_",!1),new eD("n.k_",!0,20),new eD("i.f_",!1),new eD("a.s_",!0),new eD("m.c_",!1),new eD("n.h_",!1,26),new eD("o.p_",!1),new eD("m.p_",!0,28),new eD("o.a_",!1),new eD("d.p_",!1)].reduce(function(W,k){W[k.sxk]=k;return W},
{});var cnz=function(){};
cnz.prototype.flush=function(W,k){W=W===void 0?[]:W;k=k===void 0?!1:k;if(_.m("enable_client_streamz_web")){W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=GtS(C.value),C={serializedIncrementBatch:_.zC(C.JSC$7479_serializeBinary())},_.a9("streamzIncremented",C,{sendIsolatedPayload:k})}};var Ob;var g$m,S94,$M4,pLP,spp,UM2,K1p,WZC,q9X,rn,WdK,Y$J,sV;g$m=2;S94=2;$M4=2;pLP=2;spp=2;UM2=2;K1p=2;WZC=new QWC;q9X=function(){this.ixk=!1};
rn=function(W,k,C){_.m("ab_l_sig_st_e")&&WZC.increment(C,k);k===0&&(W.ixk=!0)};
WdK=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];Y$J=[[["cmFqYzJvYmxraW5kIzlhamk=","ZmU2cnZhbHVlIzFkMnd5cTdi"],"akFEX1BMQUNFTUVOVCN5d3F0MGtpNDU3ag=="]];sV={};_.kxs=(sV["b.f_"]=function(){return _.F(function(W){return W.nextAddress==1?_.l(W,(_.hX2()!==void 0?_.eh(Error("sf")):_.uzw()).then(function(){return 1},function(k){if(k.message==="Biscotti id is disabled")return 3;
_.zJ("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})},sV["j.s_"]=uqI,sV["r.s_"]=iRw,sV["e.h_"]=function(){for(var W=function(N){return z9m(N)},k=[P4C,
KAS],C=2,n=0;n<k.length&&(C=ORp(DM3(k[n],W)),C!==0);n++);return C},sV["n.h_"]=function(){return ORp(DM3([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},sV["i.s_"]=function(){return _.DE("ISDSTAT",2)},sV["p.h_"]=function(){return 2},sV["s.t_"]=function(){return g$m},sV["s.i_"]=PyJ,sV["f.i_"]=Qpp,sV["a.b_"]=R9I,sV["a.o_"]=rn2,sV["g.o_"]=HR3,sV["p.i_"]=jpK,sV["p.m_"]=e9I,sV["n.k_"]=function(){return _.DE("NKDSTAT",2)},sV["i.f_"]=yn3,sV["a.s_"]=function(){return _.DE("ASDSTAT",2)},sV["m.c_"]=function(){return 2},sV["o.p_"]=function(){for(var W=[],k=0,C=0;C<WdK.length;C++)W[C]=WdK[C],k++;
W[k]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";W[k+1]="YWJfc2FfZWY=";return h9z(W)},sV["m.p_"]=function(){return _.DE("MBSTAT",2)},sV["o.a_"]=function(){return kII()},sV["d.p_"]=function(){return K1p},sV);var Ciz,nCA,NO2;Ciz=function(){this.ongoingFlowNonces=new Map};
_.he=function(){nCA||(nCA=new Ciz);return nCA};
_.P3=function(W,k,C){return{eventType:{flowEventNamespace:W,flowEventType:k},metadata:C,statusCode:void 0,csn:void 0,can:void 0}};
_.aaw=function(W,k){var C=_.he(),n=NO2(C,k,!0);_.K5(C,W,k,n)};
_.K5=function(W,k,C,n){W={flowNonce:n||NO2(W,C),flowType:C,flowEventType:k.eventType};k.metadata&&(W.flowMetadata=k.metadata);k.statusCode!==void 0&&(W.flowEventStatus=k.statusCode);k.csn&&(W.csn=k.csn);k.can&&(W.can=k.can);_.a9("flowEvent",W,void 0)};
NO2=function(W,k,C){C=C===void 0?!1:C;var n=W.ongoingFlowNonces.get(k);if(!n||C)n=mQ(16),W.ongoingFlowNonces.set(k,n);return n};_.YD8=new Mws;var GR=function(W,k,C,n,N,B,A){C=C===void 0?!1:C;n=n===void 0?!1:n;B=B===void 0?_.Qd():B;this.hasRun=!1;this.hVj=W;this.dJT=k;this.fRY=C;this.fromHistory=n;this.previousVideoId=N;this.rM3=B;this.tempData=A;this.iUX=new _.pHx};
_.D(GR,Ru);GR.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="shorts"||this.hasRun)};
GR.prototype.handle=function(W){var k=this,C=_.z(W.endpoint,_.RA),n=_.z(W.endpoint,_.YZ);if(_.m("kevlar_continue_playback_without_player_response")&&(C==null?0:C.videoId)&&this.previousVideoId&&(C==null?void 0:C.videoId)===this.previousVideoId&&(C==null?0:C.continuePlayback)&&!this.fromHistory)this.hVj.resolve();else{var N={};C?N.watch_endpoint=C:n&&(N.watch_endpoint=n,n.endTimeSeconds&&(N.end=n.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.fRY||(_.Iz("cfg"),_.vx.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(N,BOx(this,W.endpoint)),_.m("enable_masthead_quartile_ping_fix")&&Object.assign(N,bGI(this)),C=!_.m("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(N,C),W.data.forceExternalPlaylist&&(N.external_list=!0)):W.data.page==="shorts"&&_.vx.getInstance().triggerAction("yt-start-loading-shorts");if(C=this.dJT()){try{C.loadVideoWithPlayerResponse(W.data.playerResponse,N),C.getPlayerPromise().then(this.hVj.resolve)}catch(B){_.dI(B),this.hVj.resolve()}this.hasRun=
!0;C.getPlayerPromise().then(function(B){B.addEventListener("onAbnormalityDetected",function(){var A=W.data.playerResponse,w=B.getVideoData().cpn;K1p=0;_.hY8=w;if(w=lam(A))k.iUX.increment("IN_PLAYER"),_.Wl(5),_.m("ab_st_vid_ks")?B.pauseVideo(!0):B.stopVideo(),A.playabilityStatus=Object.assign({},A.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:w}}),A.videoDetails=void 0,_.vx.getInstance().triggerOptionalAction("yt-updated-playability-status",A.playabilityStatus)})})}else _.zJ(Error("If"))}};
var BOx=function(W,k){var C=_.z(k,_.RA);if(k&&C&&C.playlistId&&C.videoId&&(W=W.rM3,W.queueProxy?(W=W.queueProxy,C=W.listId===C.playlistId?W.attributionData.get(C.videoId):void 0):C=void 0,C))return{queue_info:C}},bGI=function(W){var k;
if((k=W.tempData)==null?0:k.adpings)return{adpings:W.tempData.adpings}};var yd=function(W,k,C){this.hasRun=!1;this.nu3=W;this.ifX=k;this.aRQ=C};
_.D(yd,Ru);yd.prototype.validate=function(W){return!!_.JU.getValueByKeys.apply(null,[W.data].concat(_.J8(vAY)))};
yd.prototype.handle=function(W){var k=this;this.nu3.promise.then(function(){var C=W.data;var n=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(JaS))),N=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(Qcz))),B=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(I_A)));var A=(A=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(caA))))?{videoId:A.videoId,thumbnail:A.thumbnail,title:A.title?_.Go(A.title):void 0,shortBylineText:A.author?_.Go(A.author):void 0}:void 0;var w=void 0;_.m("web_get_playlist_id_from_current_endpoint_ks")||
(w=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(SmC))));var x=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(pZA))),E=_.JU.getValueByKeys.apply(null,[C].concat(_.J8(MAC))),a=!!x||!!E&&!!E.results&&E.results.length>0,X=0;N&&N.currentIndex&&N.localCurrentIndex&&(X=N.currentIndex-N.localCurrentIndex);N&&N.playlistId&&(w=N.playlistId);C={rawResponse:C,autoplayRenderer:n,hasRelatedVideoData:a,playingVideo:A,playingVideoId:B,playlistPanelRenderer:N,playlistId:w,playlistIndex:N&&N.currentIndex,relatedVideoArgs:x,
endScreenRenderer:E,playlistIndexOffset:X};a:{n=k.aRQ;N=k.ifX;n.response=C;if(Ocz(C))n.downloadPlaylistProxy&&n.downloadPlaylistProxy.getPlaylistId()===Ug2(C)||(n.downloadPlaylistProxy=new a_Y(Ug2(C),n.setPlaylistData.bind(n),n.isPlayingOfflineVideo.bind(n))),n.responsePlaylistData=n.downloadPlaylistProxy.getPlaylistData(),n.listId=Ug2(C),n.index=0;else if(C.playlistPanelRenderer&&C.playlistId&&C.autoplayRenderer)C.playlistId.startsWith("TLPQ")?n.queueProxy?n.listId===C.playlistId?(n.index=C.playlistIndex,
n.responsePlaylistData=C.playlistPanelRenderer,n.queueProxy.JSC$10600_setCurrentIndex(n.index)):C.playingVideoId&&n.index!==void 0&&N.clientParams.autoSaveToQueue&&(n.index+=1,n.queueProxy.JSC$10600_setCurrentIndex(n.index),n.queueProxy.addVideos([C.playingVideoId],{},n.index)):(n.queueProxy=new _.fE(n.JSC$10654_playlistNetworkManager,C.playlistId,n.setPlaylistData.bind(n),n.clearQueue.bind(n),_.apw(C.playlistPanelRenderer),n.storage),n.responsePlaylistData=C.playlistPanelRenderer,n.listId=C.playlistId,
n.index=C.playlistIndex):(n.index=C.playlistIndex,n.listId!==C.playlistId&&n.clearQueue(),n.responsePlaylistData=C.playlistPanelRenderer,n.listId=C.playlistId,n.playlistProxy=new VAs(n.JSC$10654_playlistNetworkManager,C.playlistId,n.setPlaylistData.bind(n),_.apw(C.playlistPanelRenderer)));else if(!n.queueProxy)n.responsePlaylistData=void 0;else if(C.playingVideoId&&N.clientParams.autoSaveToQueue){if(n.index===void 0){_.dI(Error("Ef"));n.clearQueue();break a}n.queueProxy.videoIds.includes(C.playingVideoId)||
(n.index+=1,n.queueProxy.JSC$10600_setCurrentIndex(n.index),n.queueProxy.addVideos([C.playingVideoId],{},n.index))}_.pE(n,_.vK(n,n.response.autoplayRenderer))}})};var Ac8=function(W,k){k=k===void 0?_.Qd():k;hT.call(this);this.nZ.push(new yd(this.q2,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},k));this.nZ.push(new GR(this.q2,W,!1,!1));_.m("web_response_commands_chunk_processor")&&this.nZ.push(new WK)};
_.D(Ac8,hT);Ac8.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.q2.resolve();hT.prototype.processChunk.call(this,W)};var $7=function(W,k){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.o93=k};
_.D($7,Ru);$7.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
$7.prototype.handle=function(W){var k=_.kf(),C,n,N=(n=_.z((C=W.endpoint)==null?void 0:C.commandMetadata,_.Ok))==null?void 0:n.rootVe;this.o93&&N?_.jC(k,N,this.o93,this.createScreenConfig):W2A(k,W.endpoint,this.createScreenConfig);this.hasRun=!0};var ZY=function(W,k){this.hasRun=!1;this.yMQ=W;this.previousVideoId=k};
_.D(ZY,Ru);ZY.prototype.validate=function(W){return _.m("kevlar_continue_playback_without_player_response")&&(W=_.z(W.endpoint,_.RA),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.yMQ.uOt===0};
ZY.prototype.handle=function(W){_.vx.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var FZZ=function(W){W=W===void 0?{layer:0}:W;hT.call(this);this.nZ.push(new ZY(this));this.nZ.push(new $7(W));this.nZ.push(new K8(W))};
_.D(FZZ,hT);var w22=function(){this.hasRun=this.hasRun=!1};
_.D(w22,Ru);w22.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
w22.prototype.handle=function(W){this.hasRun=!0;_.am3(W.data.csn,W.data.rootVe,3)};var xkA=function(){Ru.apply(this,arguments)};
_.D(xkA,Ru);xkA.prototype.validate=function(W){return!!W.data.preconnect};
xkA.prototype.handle=function(W){_.cN("bc");W=_.b(W.data.preconnect);for(var k=W.next();!k.done;k=W.next())k=k.value,(new Image).src=k};var lUx=function(W,k,C){C=C===void 0?{layer:0}:C;hT.call(this);this.nZ.push(new GR(this.q2,W));this.nZ.push(new $7(C));this.nZ.push(new K8(C))};
_.D(lUx,hT);var tLb=function(W,k,C,n,N){C=C===void 0?{layer:0}:C;n=n===void 0?_.Qd():n;hT.call(this);var B=!!k&&!!k.clientParams&&!!k.clientParams.miniplayer;B&&this.nZ.push(new w22);this.nZ.push(new yd(this.q2,k,n));this.nZ.push(new xkA);var A,w;this.nZ.push(new GR(this.q2,W,B,!((A=k.clientParams)==null||!A.fromHistory),(w=k.clientParams)==null?void 0:w.previousVideoId,n,k.tempData));var x;this.nZ.push(new ZY(this,(x=k.clientParams)==null?void 0:x.previousVideoId));var E;(E=k.clientParams)!=null&&E.fromHistory||
(C.layer||(C=Object.assign({},C,{layer:B?3:0})),this.nZ.push(new $7(C,N)),this.nZ.push(new K8(C)));_.m("web_response_commands_chunk_processor")&&this.nZ.push(new WK)};
_.D(tLb,hT);var Rr,X2x;Rr={};
_.ECb=(Rr["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Rr["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Rr["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Rr["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Rr["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Rr["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Rr["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Rr);_.or=new _.D3("yt-edu");_.aUC=function(){this.JSC$10752_eduDisplayedThisLoad_={}};
X2x=function(W){var k=_.aUC.getInstance();var C=_.Oe("kevlar_tooltip_impression_cap");k=C&&parseInt(_.or.get(W+"-impression")||0,10)>=C||_.or.get(W+"-dismissed")?!1:(C=_.ECb[W])&&!k.JSC$10752_eduDisplayedThisLoad_[C.setKey||W]&&(C.titleText&&_.w8(C.titleText)||C.bodyText&&_.w8(C.bodyText))?!0:!1;if(!k)return null;k=_.ECb[W];if(!k)return null;C=k.bodyText?_.w8(k.bodyText):void 0;var n=k.titleText?_.w8(k.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:k.position,popup:{bubbleHintRenderer:{text:n?
_.Go(n):void 0,detailsText:C?_.Go(C):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Go(_.w8("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.rk(_.aUC);var XVX=!1;var zHK={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 fUz="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),dkA=[],i8=6;i8>=1;i8--)dkA.push({columnCount:i8,query:i8==1?0:i8*2*107-4+32,className:"grid-"+i8+"-columns",width:i8*2*107+"px"});_.z3A=function(W){this.actionRouter_=W=W===void 0?_.vx.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.mks(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.mks=function(W){var k=W.miniGuideVisible_?72:0,C=W.documentWidth_-(W.guidePersistentAndVisible_?240:k);return dkA.find(function(n){return C>n.query})};
_.rk(_.z3A);var Dk8=function(){var W=this;this.JSC$10765_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$10765_keyboardInUse=!1})},VLC;
Dk8.prototype.isKeyBoardInUse=function(){return this.JSC$10765_keyboardInUse};
Dk8.prototype.onKeydown=function(){this.JSC$10765_keyboardInUse=!0};var Jcz,u8;_.TR=new _.D3("yt-mentions");_.q$=function(){};
Jcz=function(W,k){return u8(k,"drag-to-reorder-edu-displayed")};
u8=function(W,k,C,n,N,B){C=C===void 0?"OPEN_POPUP_POSITION_TOP":C;if(k){if(_.TR.get(k))return;_.TR.set(k,!0,n)}if(N&&B!==void 0){k=Number(_.TR.get(N)||0);if(k>=B)return;_.TR.set(N,k+1)}return[{openPopupAction:{popupType:"HINT",position:C,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.rk(_.q$);var cc8,IUA,SDs;cc8=function(W,k,C,n){this.JSC$10775_taskManager_=W;this.onFulfilled_=typeof k==="function"?k:null;this.onRejected_=typeof C==="function"?C:null;this.JSC$10775_context_=n};
IUA=function(W,k){W.onFulfilled_&&_.bX(W.JSC$10775_taskManager_,function(){W.onFulfilled_.call(W.JSC$10775_context_,k)})};
SDs=function(W,k){W.onRejected_&&_.bX(W.JSC$10775_taskManager_,function(){W.onRejected_.call(W.JSC$10775_context_,k)})};
_.UV=function(W){this.JSC$10778_taskManager_=W;this.callbacks_=[]};
_.UV.prototype.then=function(W,k,C){this.callbacks_.push(new cc8(this.JSC$10778_taskManager_,W,k,C));return this};
_.UV.prototype.onSuccess=function(W){this.callbacks_.forEach(function(k){IUA(k,W)})};
_.UV.prototype.onFailure=function(W){this.callbacks_.forEach(function(k){SDs(k,W)})};
_.UV.prototype.cancel=function(){this.callbacks_.length=0};
Rsb(_.UV);_.Ve2=null;_.xa=new _.Tc("ACTIVITY_TOKEN");var Mep=/^[a-zA-Z0-9_\-]{11}$/;var Q$z=_.FH(function(){var W,k;return(k=(W=window).matchMedia)==null?void 0:k.call(W,"(prefers-reduced-motion: reduce)").matches});var MLz=_.FH(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 W=_.QK("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.wu("VIDEO"),_.$g("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Q_Z;_.OV=new _.Tc("SHORTS_CONTROLLER_TOKEN");Q_Z=new _.Tc("SHORTS_STATE_STORE_TOKEN");var LE=function(W,k){var C=_.v6.apply(2,arguments);W=W===void 0?0:W;_.AM.call(this,k,C);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(LE,_.AM);var p2Y,vCs,e3x,s_2,yc2,Ptm,ya,z7p,oC2,R3z,OGb,qDs,TOA;p2Y=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
vCs=RegExp(".*\\?.*ybp=1.*");e3x=["FEcommerce_cart","SPcommerce_checkout"];s_2=RegExp(".*\\?.*playnext=1.*");_.jD=function(W,k,C,n){this.watchEndpointMap=W;this.reelWatchEndpointMap=k;this.innerTubeTransportService=C;this.fetchPbj=n;this.forceWebFEForAdsTesting=!1};
yc2=function(W,k,C){var n=_.f().resolve(_.qI(GxA));_.jD.instance=new _.jD(W,k,C,n)};
_.$kz=function(W,k){var C=_.Oe("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;var n;if((n=_.z(k.commandMetadata,_.Ok))==null||!n.rootVe)return C&&_.zJ(Error("Of")),!1;var N;n=(N=_.z(k.commandMetadata,_.Ok))==null?void 0:N.url;if(!n)return C&&_.zJ(Error("Pf")),!1;if(s_2.test(n))return!0;if(p2Y.test(n))return C&&_.zJ(Error("Qf`"+n)),!1;var B;N=(B=_.z(k,_.kZ))==null?void 0:B.browseId;if(vCs.test(n)&&(!N||!e3x.includes(N)))return C&&_.zJ(Error("Rf`"+n)),!1;if(_.z(k,_.RA)){if(W.forceWebFEForAdsTesting)return C&&
_.zJ(Error("Sf")),!1;if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.m("kevlar_fetch_initial_data_op_watch_client")))return C&&_.zJ(Error("Kf")),!1;W=_.Oe("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.z(k,_.RA)?Iaz(k)?k=!0:(W&&_.zJ(Error("Lf")),k=!1):(W&&_.zJ(Error("Kf")),k=!1);return k}if(_.z(k,_.YZ))return S$m(k);if(_.z(k,_.zQ))return!0;k=_.Ih(W.innerTubeTransportService,k);C&&_.zJ(Error("Tf"));return k};
Ptm=function(W,k,C,n,N,B){k={url:k};if(C==null?0:C.itct)k.parentTrackingParams=C.itct;var A=_.RY(las);return _.DY(W.innerTubeTransportService,k,A).then(function(w){(w=w.endpoint)||(w=_.CE);(C==null?0:C.itct)&&w&&!w.trackingParams&&(w.trackingParams=C.itct);var x=nO(w);return ya(W,w,C,n,x,N,B)})};
ya=function(W,k,C,n,N,B,A,w){w=w===void 0?{}:w;if(W.fetchPbj&&!_.$kz(W,k)){w=W.fetchPbj(k);var x=_.nB(w.then(function(L){if(!L)throw Error("Uf");A(x)||B(k,L);return L}));
return x}var E,a,X={rootVe:(E=_.z(k.commandMetadata,_.Ok))==null?void 0:E.rootVe,url:(a=_.z(k.commandMetadata,_.Ok))==null?void 0:a.url,endpoint:k,page:N};if(_.z(k,_.RA)){var d,V={contentPlaybackContext:_.Bl(C,(d=_.z(k.commandMetadata,_.Ok))==null?void 0:d.url,n)},c=_.ME();_.m("web_streaming_watch")&&window.TextDecoderStream?(w=ZG8(W.innerTubeTransportService,k,V,function(L){!X.response&&L.content&&(X.response=L.content);!X.playerResponse&&L.player&&(X.playerResponse=L.player);B(k,X)}),E=Lfw(k),E.length&&
(X.preconnect=E,B(k,X)),R3z(w,c,X).catch(function(L){L instanceof LE&&L.errorType===2&&oC2(W,k,V,X,B,A,c)})):oC2(W,k,V,X,B,A,c);
return c.promise}if(_.z(k,_.YZ)){var M;if(((M=_.z(k,_.YZ))==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var p=_.ME();_.iGY(_.f().resolve(_.OV),k).then(function(L){TOA(W,C,n,N,B,p,L)});
return p.promise}w=_.nB();var e;E={contentPlaybackContext:_.Bl(C,(e=_.z(k.commandMetadata,_.Ok))==null?void 0:e.url,n)};(e=W.reelWatchEndpointMap.player)&&(e=e().JSC$11766_getRequest(k,E))&&(w=_.DY(W.innerTubeTransportService,e.innerTubeRequest,e.input,k.clickTrackingParams,e.config));e=_.nB();(a=W.reelWatchEndpointMap.reelItemWatch)&&(a=a().JSC$11766_getRequest(k))&&(e=_.DY(W.innerTubeTransportService,a.innerTubeRequest,a.input,k.clickTrackingParams,a.config));a=_.nB();(d=W.reelWatchEndpointMap.reelWatchSequence)&&
_.z(k,_.YZ).sequenceParams&&(E=d().JSC$11766_getRequest(k,E))&&(a=_.DY(W.innerTubeTransportService,E.innerTubeRequest,E.input,k.clickTrackingParams,E.config));E=_.nB(X);d=_.ME();qDs(k,E,w,e,a,B,A,d);return d.promise}var u;if(_.z(k,DCm)&&((u=_.z(k.commandMetadata,_.Ok))==null?0:u.url))return w=G1m(_.Gb(M3().location.href),_.Gb(_.z(k.commandMetadata,_.Ok).url)).toString(),Ptm(W,w,C,n,B,function(){return!1});
if(_.z(k,_.zQ))return B(k,X),_.nB(X);if(_.Ih(W.innerTubeTransportService,k)){w=Object.assign({},{tempData:C,disableCache:C.disableCache},w);var h=_.Sr(W.innerTubeTransportService,k,w).then(function(L){X.response=L;A(h)||B(k,X);return X});
return h}return _.nB(X)};
_.Ukx=function(W,k,C,n){if(_.z(k,_.RA)||_.z(k,_.YZ)&&(_.m("mweb_enable_shorts_innertube_player_prefetch")||_.m("kevlar_enable_shorts_prefetch_in_sequence"))||_.z(k,dtZ)&&_.m("web_enable_prefetching_videos_on_home")){var N,B={contentPlaybackContext:_.Bl(C,(N=_.z(k.commandMetadata,_.Ok))==null?void 0:N.url,n),prefetchPlaybackContext:vd4(C)},A,w,x;if(((A=_.z(k,_.RA))==null?void 0:(w=A.watchEndpointSupportedPrefetchConfig)==null?void 0:(x=w.prefetchHintConfig)==null?void 0:x.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(C=
W.watchEndpointMap.watchNext)if(B=C().JSC$11766_getRequest(k,B))return Promise.resolve(_.DY(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(X){return X}))}else if(_.z(k,_.YZ)&&_.m("web_prefetch_riw_for_next_video")){if(C=W.reelWatchEndpointMap.reelItemWatch)if((C=C().JSC$11766_getRequest(k,B))&&_.DY(W.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(X){return X}),C=W.reelWatchEndpointMap.player)if(B=C().JSC$11766_getRequest(k,
B))return Promise.resolve(_.DY(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(X){return X}))}else if(C=W.watchEndpointMap.player)if(B=C().JSC$11766_getRequest(k,B))return Promise.resolve(_.DY(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(X){return X}))}else if(_.Ih(W.innerTubeTransportService,k)){var E={tempData:C},a=uTS(W.innerTubeTransportService,k);
return a?new Promise(function(X,d){var V,c;return _.F(function(M){if(M.nextAddress==1)return _.l(M,a,2);if(M.nextAddress!=4)return V=M.yieldResult,V.JSC$11773_getStoreKey(k,E)?_.l(M,_.Sr(W.innerTubeTransportService,k,E),4):(d(new _.AM("Prefetching request builder with no store key.",k)),M.jumpTo(0));c=M.yieldResult;X(c);_.ab(M)})}):Promise.reject(new _.AM("Prefetching unregistered request builder.",k))}return Promise.reject(new _.AM("No request builder available to prefetch endpoint.",k))};
z7p=function(W,k){var C,n,N;if(_.z(k,_.RA)){var B=W.watchEndpointMap.watchNext;B&&(C=B());(W=W.watchEndpointMap.player)&&(n=W())}else if(_.z(k,_.YZ))(B=W.reelWatchEndpointMap.reelItemWatch)&&(C=B()),(B=W.reelWatchEndpointMap.player)&&(n=B()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(N=W());else{a:{W=Yl2(k,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.dI(new _.AM("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",k));else break a;
W=void 0}W&&(C=W)}var A,w,x;return{content:(A=C)==null?void 0:A.JSC$11773_getStoreKey(k),player:(w=n)==null?void 0:w.JSC$11773_getStoreKey(k),reelSequence:(x=N)==null?void 0:x.JSC$11773_getStoreKey(k)}};
oC2=function(W,k,C,n,N,B,A){var w=_.nB(),x=W.watchEndpointMap.player;x&&(x=x().JSC$11766_getRequest(k,C))&&(w=_.DY(W.innerTubeTransportService,x.innerTubeRequest,x.input,k.clickTrackingParams,x.config));x=_.nB();var E=W.watchEndpointMap.watchNext;E&&(C=E().JSC$11766_getRequest(k,C))&&(x=_.DY(W.innerTubeTransportService,C.innerTubeRequest,C.input,k.clickTrackingParams,C.config));W=_.nB(n);OGb(k,W,w,x,N,B,A)};
R3z=function(W,k,C){return _.F(function(n){if(n.nextAddress==1)return _.l(n,W,2);k.resolve(C);_.ab(n)})};
OGb=function(W,k,C,n,N,B,A){var w,x,E,a,X;_.F(function(d){switch(d.nextAddress){case 1:return _.l(d,k,2);case 2:w=d.yieldResult;if(B(A.promise))return A.resolve(w),d.return();N(W,w);x=Lfw(W);if(!x.length){d.jumpTo(3);break}return _.l(d,k,4);case 4:w.preconnect=x,N(W,w);case 3:return _.F0(d,5),_.l(d,C,7);case 7:E=d.yieldResult;_.M7(d,6);break;case 5:return a=_.EF(d),A.reject(a),d.return();case 6:if(E===void 0)return w.reload=!0,N(W,w),A.resolve(w),d.return();if(B(A.promise))return A.resolve(w),d.return();
w.playerResponse=E;N(W,w);_.F0(d,8);return _.l(d,n,10);case 10:X=d.yieldResult;_.M7(d,9);break;case 8:_.EF(d);case 9:if(X===void 0)return w.response={responseContext:{}},A.resolve(w),d.return();if(B(A.promise))return A.resolve(w),d.return();w.response=X;N(W,w);A.resolve(w);_.ab(d)}})};
qDs=function(W,k,C,n,N,B,A,w){var x,E,a,X,d,V;_.F(function(c){switch(c.nextAddress){case 1:return _.l(c,k,2);case 2:x=c.yieldResult;if(A(w.promise))return w.resolve(x),c.return();B(W,x);E=Lfw(W);if(!E.length){c.jumpTo(3);break}return _.l(c,k,4);case 4:x.preconnect=E,B(W,x);case 3:return _.F0(c,5),_.l(c,C,7);case 7:a=c.yieldResult;_.M7(c,6);break;case 5:return X=_.EF(c),w.reject(X),c.return();case 6:if(a===void 0)return x.reload=!0,B(W,x),w.resolve(x),c.return();if(A(w.promise))return w.resolve(x),
c.return();x.playerResponse=a;B(W,x);_.F0(c,8);return _.l(c,n,10);case 10:d=c.yieldResult;_.M7(c,9);break;case 8:_.EF(c);case 9:if(d===void 0)return x.response={responseContext:{}},w.resolve(x),c.return();if(A(w.promise))return w.resolve(x),c.return();x.response=d;B(W,x);_.F0(c,11);return _.l(c,N,13);case 13:V=c.yieldResult;_.M7(c,12);break;case 11:_.EF(c);case 12:if(A(w.promise))return w.resolve(x),c.return();x.reelWatchSequenceResponse=V;B(W,x);w.resolve(x);_.ab(c)}})};
TOA=function(W,k,C,n,N,B,A){var w,x,E,a,X,d;_.F(function(V){if((w=A)==null||!w.replacementEndpoint)return B.reject(),V.return();x=A.replacementEndpoint;(E=_.z(x,_.YZ))?(A.sequenceContinuation&&(E.sequenceParams=A.sequenceContinuation),a=_.f().resolve(_.OV),X=E.sequenceParams,LZz(a,x)&&delete E.sequenceParams,d=ya(W,x,k,C,n,N,function(){return!1}),d.then(function(c){return _.F(function(M){if(M.nextAddress==1)return j_8(a,{reelWatchEndpoint:{sequenceParams:X}},c),_.l(M,0,2);
B.resolve(c);_.ab(M)})})):B.reject();
_.ab(V)})};_.HGA=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var k=[],C=_.b(W.validatedFragments_),n=C.next();!n.done;n=C.next()){n=_.b(W.fragmentConfiguration_[n.value].graftedKeys);for(var N=n.next();!N.done;N=n.next())(N=W.prefetchedData_[N.value].trackingParams)&&k.push(N)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:k})}return W.mergedPrefetchedData_};var rc2;_.HK=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
rc2=function(W,k,C){if(_.J54(k))return W.prefetchCache_.get(_.c5w(k,C))};_.rF=new _.Tc("NAVIGATION_TOKEN");var gCS=function(W){var k=this;var C=C===void 0?GIJ():C;var n=n===void 0?_.f().resolve(_.rF):n;this.onePickCommand=W;this.JSC$10879_playlistNetworkManager=C;this.navigationManager=n;this.videoPickerBuilder=_.eHm("yt-addtoplaylist");_.Ce8(HMA(rBx(j9I(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(KKA()).addView(PpZ())).addView("youtube"),W.selectButtonLabel)),function(N){k.handleAction(N)})};
gCS.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
gCS.prototype.handleAction=function(W){var k=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var C=[];W.docs.forEach(function(n){C.push({addedVideoId:n.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10879_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,C).then(function(){_.m("playlist_add_video_hard_reload_killswitch")?k.navigationManager.reload():PiZ(k.navigationManager)})}};var KZA=function(){if(this.constructor===KZA)throw new TypeError("Vf");};
_.Y=KZA.prototype;_.Y.dispose=function(){};
_.Y.disconnect=function(){};
_.Y.reconnect=function(){};
_.Y.observe=function(W,k,C){return{element:W,option:C}};
_.Y.unobserveByKey=function(){};var y5I=function(W,k){k=k===void 0?0:k;KZA.call(this);this.viewroot=W;this.defaultPrescanHeight=k;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.D(y5I,KZA);_.Y=y5I.prototype;_.Y.dispose=function(){this.disconnect();this.handlers.clear()};
_.Y.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.b(this.prescanObservers.values());for(var k=W.next();!k.done;k=W.next())k.value.disconnect()};
_.Y.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.b(this.handlers),k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;var n=C.next().value;C=!1;n=_.b(n.keys());for(var N=n.next();!N.done;N=n.next())if((N=N.value)&&N.state==="prescan"){C=!0;break}C&&h3Y(this,k).observe(k);this.observer.observe(k)}}};
_.Y.handleObserveEvent=function(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=this.handlers.get(k.target);if(C){var n=k.isIntersecting;C=_.b(C);for(var N=C.next();!N.done;N=C.next()){var B=_.b(N.value);N=B.next().value;B=B.next().value;N&&(N.state==="visible"&&n||N.state==="hidden"&&!n)&&(B(k.target,N.state),N.calledOnce&&this.unobserveByKey({element:k.target,option:N}))}}}};
_.Y.handlePrescanEvent=function(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=this.handlers.get(k.target);if(C&&k.isIntersecting){C=_.b(C);for(var n=C.next();!n.done;n=C.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;n&&n.state==="prescan"&&(N(k.target,n.state),n.calledOnce&&this.unobserveByKey({element:k.target,option:n}))}}}};
_.Y.observe=function(W,k,C){var n=(n=this.handlers.get(W))&&n.has(C)?{element:W,option:C}:void 0;if(n)return n;n={element:W,option:C};this.handlers.has(W)||this.handlers.set(W,new Map);var N=this.handlers.get(W);N&&!N.has(C)&&N.set(C,k);this.pauseObservingUntilReconnect||(C.state==="prescan"&&h3Y(this,W).observe(W),this.observer.observe(W));return n};
_.Y.unobserveByKey=function(W){var k=this.handlers.get(W.element);if(k&&k.has(W.option)){k.delete(W.option);if(W&&W.option.state==="prescan")for(var C=_.b(this.prescanObservers.values()),n=C.next();!n.done;n=C.next())n.value.unobserve(W.element);k.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var h3Y=function(W,k){var C=W.defaultPrescanHeight;k.hasAttribute("prescan-height")&&(k=Number(k.getAttribute("prescan-height")),isNaN(k)||(C=k));if(W.prescanObservers.has(C))return W.prescanObservers.get(C);k="-0.1px -0.1px "+C+"px -0.1px";k=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:k}:{rootMargin:k});W.prescanObservers.set(C,k);return k};var Wpb=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],kTz=function(){var W,k=this;this.JSC$10896_actionRouter=W=W===void 0?_.vx.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return k.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return k.visibilityObservedElementHandlerKeys}}},Crz,NpY,bVS;
kTz.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.m("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=$CK())};
kTz.prototype.dispose=function(){this.visibilityMonitor&&_.wm(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
kTz.prototype.handleVisibilityRefreshed=function(){for(var W=_.b(this.targetMap.entries()),k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;_.ncY(this,k,C)}};
_.BpA=function(W,k,C){NpY(W,C);var n=_.Y62(W,k);n.element=C;W.targetedElements.set(C,k);_.ncY(W,k,n)};
NpY=function(W,k){var C=W.targetedElements.get(k);if(C){var n=W.targetMap.get(C);n&&(delete n.element,W.targetMap.set(C,n));W.targetedElements.delete(k);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(C=W.visibilityObservedElementHandlerKeys.get(k))&&(W.visibilityObserver.unobserveByKey(C),W.visibilityObservedElementHandlerKeys.delete(k))}};
_.ncY=function(W,k,C){var n=C.action,N=C.element;N&&n&&(Wpb.includes(k)||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(N)?bVS(W,k,C):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),n=W.visibilityObserver.observe(N,function(){bVS(W,k,C);W.visibilityObservedElementHandlerKeys.delete(N)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(N,n)))};
bVS=function(W,k,C){var n=C.action;(C=C.element)&&n&&(_.Dm(W.JSC$10896_actionRouter,[n],C),W.targetMap.delete(k),W.targetedElements.delete(C),W.triggeredTargets.add(k))};
_.Y62=function(W,k){var C=W.targetMap.get(k);C||(C={},W.targetMap.set(k,C));return C};
_.gF=function(){Crz||(Crz=new kTz);return Crz};var A0Y=document.createElement("div");A0Y.style.touchAction="pan-down";var Zk4=A0Y.style.touchAction==="pan-down";var Fps,w5s;Fps=function(){this.hammerFn=ojA();this.JSC$10904_screenManager=_.kf();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.F8(83615);_.rc(this.JSC$10904_screenManager,this.ve);RHK()};
_.PK=function(){w5s||(w5s=new Fps);return w5s};
Fps.prototype.registerTouchEvents=function(W,k,C){var n=_.v6.apply(3,arguments),N=this.hammerFn(W,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});C&&N.set({touchAction:C});this.nodeManagerMapping.set(W,N);var B=
odw(k);n=_.b(n);for(var A=n.next();!A.done;A=n.next()){A=A.value;if(A.includes("swipe")||A.includes("pinch")||A.includes("pan"))A.includes("swipe")?N.get("swipe").set({enable:!0,direction:B,velocity:.2}):A.includes("pinch")?N.get("pinch").set({enable:!0}):A.includes("pan")&&(N.get("pan").set({enable:!0,direction:B}),N.get("swipe").set({enable:!0,direction:B,velocity:.2}),N.get("swipe").recognizeWith("pan"));x6A(this,W,N,A)}};
var x6A=function(W,k,C,n){C.on(n,function(N){if(n.includes("pinch"))W.lastPinchTime=Date.now();else if(n.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;N.pointerType!=="mouse"&&(N=n==="doubletap"?{coordinates:N.center}:n.includes("pan")?N:n.includes("swipe")?{target:N.target}:{},k.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:N})))})};
Fps.prototype.unregisterTouchEvents=function(W){var k=_.v6.apply(1,arguments),C=this.nodeManagerMapping.get(W);if(C){k=_.b(k);for(var n=k.next();!n.done;n=k.next())C.off(n.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var lJ2=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var ikw=null;var EcC;_.KE=function(W,k,C){var n=C&&C>0?C:0;C=n?Date.now()+n*1E3:0;if((n=n?(0,_.tQS)():EcC())&&window.JSON){typeof k!=="string"&&(k=JSON.stringify(k,void 0));try{n.set(W,k,C)}catch(N){n.remove(W)}}};
_.h4=function(W){var k=EcC(),C=(0,_.tQS)();if(!k&&!C||!window.JSON)return null;try{var n=k.get(W)}catch(N){}if(typeof n!=="string")try{n=C.get(W)}catch(N){}if(typeof n!=="string")return null;try{n=JSON.parse(n,void 0)}catch(N){}return n};
_.WR=function(W){try{var k=EcC(),C=(0,_.tQS)();k&&k.remove(W);C&&C.remove(W)}catch(n){}};
_.tQS=_.FH(function(){try{var W=new AeI;var k=W.isAvailable()?W:null}catch(C){return null}return k?new _.r0(k):null});
EcC=_.FH(function(){var W=new F7X;return W.isAvailable()?new _.r0(W):null});var aJA=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},NXm=function(){aJA.instance||(aJA.instance=new aJA);
return aJA.instance},Y1p=function(W){var k=W.networkEvents;
W.networkEvents=[];return _.m("enable_network_monitoring")?k:[]};var X5s;X5s={};_.fJ8=RX("yt-serviceworker-metadata",{objectStores:(X5s.auth={addedAtVersion:1},X5s["resource-manifest-assets"]={addedAtVersion:2},X5s),shared:!0,upgrade:function(W,k){k(1)&&JE(W,"resource-manifest-assets");k(2)&&JE(W,"auth")},
version:2});var Ldw=self.location.origin+"/";j$w([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);j$w([/purge_shell=1/]);var d6x=void 0;d6x=d6x===void 0?[]:d6x;for(var m6A=[],zS2=_.b(Sdx),D6b=zS2.next();!D6b.done;D6b=zS2.next())m6A.push({key:D6b.value});for(var VQ8=_.b(d6x),J0I=VQ8.next();!J0I.done;J0I=VQ8.next())m6A.push(J0I.value);var c0z,lK=_.NX==null?void 0:(c0z=_.NX.performance)==null?void 0:c0z.memory,gdI=!1,BXI={},hHm={},th={},Ep=navigator;var kD=function(W){this.JSC$10948_expiringStorage=new wd(W)};
kD.prototype.set=function(W,k,C){C=C!==void 0?Date.now()+C:void 0;this.JSC$10948_expiringStorage.set(W,k,C)};
kD.prototype.get=function(W){return this.JSC$10948_expiringStorage.get(W)};
kD.prototype.remove=function(W){this.JSC$10948_expiringStorage.remove(W)};var E84=_.iH(["https://www.youtube.com/",""]),ajc=_.iH(["https://studio.youtube.com/",""]),zPp="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",fjm=null,IjK;var IJ8=_.iH(["https://www.youtube.com/iframe_api"]),Cl=function(){this.playerResolver_=_.ME();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Au;this.playbackDurationSeconds_=0},S68=function(W){var k=function(){return window.YT&&typeof window.YT.ready==="function"};
if(k())return _.nB(window.YT);var C=_.ME(),n=_.wu("SCRIPT");n.onload=n.onreadystatechange=function(){n.readyState&&n.readyState!="loaded"&&n.readyState!="complete"||(n.onload=_.Au,n.onreadystatechange=_.Au,n.onerror=_.Au,k()?C.resolve(window.YT):C.reject(new _.AM("Failed to load the iframe player library","script.onload",n.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
n.onerror=function(N){n.onload=_.Au;n.onreadystatechange=_.Au;n.onerror=_.Au;C.reject(new _.AM("Failed to load the iframe player library","script.onerror",N&&N.target&&N.target.src))};
_.LL(n,_.k0(IJ8));W.insertBefore(n,W.firstChild);return C.promise},MQA=function(W,k,C){var n,N;
_.F(function(B){switch(B.nextAddress){case 1:return W.playbackEndedCallback_=C,_.F0(B,2),_.l(B,S68(k.parentElement||null),4);case 4:n=B.yieldResult;_.M7(B,3);break;case 2:return N=_.EF(B),N instanceof _.AM&&N.args&&N.args[0]=="script.onerror"?_.zJ(N):_.dI(N),B.return();case 3:n.ready(function(){return new n.Player(k,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.ab(B)}})};
_.Y=Cl.prototype;_.Y.getPlayerPromise=function(){return this.playerPromise_};
_.Y.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.Y.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var k=W.getCurrentTime();W.addCueRange("playback",k,k+this.playbackDurationSeconds_)}};
_.Y.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.Y.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var QCS=function(W){W.playerVars_&&W.playerPromise_.then(function(k){typeof k.cueVideoByPlayerVars!="function"?_.zJ(new _.AM("vmh: player API not ready","cueVideoByPlayerVars",typeof k.cueVideoByPlayerVars)):k.cueVideoByPlayerVars(W.playerVars_)})};
Cl.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(k){typeof k.loadVideoByPlayerVars!="function"?(k=new _.AM("vmh: player API not ready","loadVideoByPlayerVars",typeof k.loadVideoByPlayerVars),_.dI(k)):k.loadVideoByPlayerVars(W.playerVars_)})};
var p5A=function(W,k,C,n,N){k&&(C===void 0&&(C=0),n===void 0&&(n=0),W.playbackDurationSeconds_=n/1E3,W.playerVars_={adformat:"17_8",videoId:k,suggestedQuality:"hd720",startSeconds:C/1E3,player_params:N})};
Cl.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
Cl.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var stw=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var nl;nl=function(){this.tokenJars={};if(this.cookiesEnabled=_.Yg()){var W=_.nH.get("CONSISTENCY",void 0);W&&vcs(this,{encryptedTokenJarContents:W})}};
_.yZm=function(){nl.instance||(nl.instance=new nl);return nl.instance};
nl.prototype.handleResponse=function(W,k){if(!k)throw Error("$f");var C,n;k=((C=k.innerTubeRequest.context)==null?void 0:(n=C.request)==null?void 0:n.consistencyTokenJars)||[];var N;(W=(N=W.responseContext)==null?void 0:N.consistencyTokenJar)&&this.replace(k,W)};
nl.prototype.replace=function(W,k){W=_.b(W);for(var C=W.next();!C.done;C=W.next())delete this.tokenJars[C.value.encryptedTokenJarContents];vcs(this,k)};
var vcs=function(W,k){if(k.encryptedTokenJarContents&&(W.tokenJars[k.encryptedTokenJarContents]=k,typeof k.expirationSeconds==="string")){var C=Number(k.expirationSeconds);setTimeout(function(){delete W.tokenJars[k.encryptedTokenJarContents]},C*1E3);
W.cookiesEnabled&&_.N7("CONSISTENCY",k.encryptedTokenJarContents,C,void 0,!0)}};var eSY,Ni;eSY=window.location.hostname.split(".").slice(-2).join(".");_.I8=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.DE("LOCATION_PLAYABILITY_TOKEN");_.DE("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=sCs(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.I8.getInstance=function(){Ni=_.QK("yt.clientLocationService.instance");Ni||(Ni=new _.I8,_.$g("yt.clientLocationService.instance",Ni));return Ni};
_.I8.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.I8.prototype.handleResponse=function(W){var k;W=(k=W.responseContext)==null?void 0:k.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.DE("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=sCs(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.N7("YT_CL",JSON.stringify({loctok:W}),15552E3,eSY,!0))};
var sCs=function(W){return W.localStorage===void 0?new _.D3("yt-client-location"):W.localStorage};
_.I8.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=sCs(this))&&this.localStorage.remove("yt-location-playability-token"):_.ko3("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.I8.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var k=!1,C=1E4;_.DE("INNERTUBE_CLIENT_NAME")==="MWEB"&&(k=!0,C=15E3);return new Promise(function(n,N){navigator.geolocation.getCurrentPosition(function(B){W.mostRecentPosition=B;n(B)},function(B){N(B)},{enableHighAccuracy:k,
maximumAge:0,timeout:C})})};
_.I8.prototype.createUnpluggedLocationInfo=function(W){var k={};W=W.coords;if(W==null?0:W.latitude)k.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)k.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)k.locationRadiusMeters=Math.round(W.accuracy);return k};
_.I8.prototype.createLocationInfo=function(W){var k={};W=W.coords;if(W==null?0:W.latitude)k.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)k.longitudeE7=Math.floor(W.longitude*1E7);return k};var GTs=function(W,k){var C=Sh();W||(W="unknown");k||(k="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in dVs||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");k="MAIN_APP_WEB_REQUEST_TYPE_"+k.toUpperCase();k in mVs||(k="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Bq(C,{mainAppWeb:{pageType:W,requestType:k,isShellLoad:_.cv("IS_SHELL_LOAD",!1)}})},y0s={start:function(){_.Bq(SOz(),{mainAppWeb:_.SI()})},
success:function(){_.bH(SOz(),"SUCCESS")},
failure:function(){_.bH(SOz(),"FAILURE")},
cancelled:function(){_.bH(SOz(),"CANCELLED")}};var $6s,ZVS,iu4;$6s=_.iH(["/sw.js"]);ZVS=_.iH(["/sw.js?0"]);_.RSI=_.k0($6s);iu4=_.k0(ZVS);var oc8=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.D(oc8,Error);_.pO.prototype.load=function(W){this.megabloxUrl_=_.DE("YPC_MB_URL");_.ML(this.megabloxUrl_,(0,_.fN)(function(){W&&W()},this))};
_.VK3=function(W,k,C,n,N,B,A,w,x,E,a){_.q1p(x);W.load((0,_.fN)(function(){try{var X=B?B:_.DE("HL"),d=_.DE("SESSION_INDEX");_.xVK("client",function(){qo2("59",{helpCenterPath:"/youtube",locale:X,window:window}).JSC$7847_loadChatSupport({authuser:String(d)})})}catch(V){throw Mw(10,a,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),N&&N(V),_.dI(V),V;
}iV2(this,k,C,n,N,B,A,w,x,E,a)},W))};
_.pO.prototype.openFixFlowDialog=function(W,k,C,n){this.load((0,_.fN)(function(){try{Tpz(this,_.QK("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(k).load(C,n)}catch(N){throw _.dI(N),N;}},this))};
var Tpz=function(W,k,C,n){var N=k.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.m("enable_window_constrained_buy_flow_dialog")&&(N=N.usingPopupStyle(_.QK("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));n&&(N=N.usingCloseCallback(n));k.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=k.bootstrap.asMashupMode(N);C=C?C:_.DE("HL");W.usingGaiaIndex(_.DE("SESSION_INDEX")).usingLocale(C).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.m("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},iV2=function(W,k,C,n,N,B,A,w,x,E,a){try{var X=_.QK("payments.business.integration");
if(!X)throw new oc8("payments.business.integration is undefined");var d=X.standaloneContextAuthId.forUserId(),V=Tpz(W,X,B,w);A&&V.usingServerAnalyticsEventHandler(A);var c=V.inStandaloneContext(d).buyFlow(function(M){if(M&&(!M.integratorData||M.integratorData===""||M.error))if(M.error!=null)if(String(M.error)==="-1")_.uCm(x);else{var p=String(M.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Mw(10,a,p,M.debugCode);
_.Qi(p,x,M.debugCode);p=new _.AM("PAYMENT_ERROR_MESSAGE::"+M.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+M.internalErrorDetails);_.dI(p)}else Mw(10,a,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Qi("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",x,"EMPTY_INTEGRATOR_DATA"),_.dI(Error("cg"));C&&C(M)}).withEncryptedParameters(k);
E&&c.withClientParameters(Frc(_.SZ2(E)));c.load(function(){Mw(24,a);_.So("ttc",void 0,"commerce_transaction");WV3("commerce_transaction");n&&n()},function(M){if(M==null?0:M.debugCode)var p=M==null?void 0:M.debugCode;
else if(!M||(M==null?0:M.debugCode))p="EMPTY_LOAD_FAILURE_ERROR",_.dI(Error(p));else{p="EMPTY_LOAD_FAILURE_DEBUG_CODE";var e=new _.AM("LOAD_FAILURE:"+M.message," DEBUG_CODE:"+p);_.dI(e)}Mw(10,a,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",p);_.Qi("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",x,p);_.dI(M);N&&N(M)})}catch(M){throw M instanceof oc8&&(Mw(10,a,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),N&&N(M)),_.dI(M),M;
}};var q6b;q6b=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.mz4=function(W,k){k=k===void 0?!1:k;W=q6b.test(W)?_.to(W):null;!k&&window.payments||!W?(W=_.ME(),k=W.promise,W.resolve()):k=_.zc(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return k};var uNz;uNz=_.iH(["//www.googletagmanager.com/gtm.js?id=",""]);_.YD=function(W,k){_.oh(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:k}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.DE("GL")}),k=_.wu("SCRIPT"),k.async=!0,_.LL(k,_.k0(uNz,W)),k.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(k):(W=W[0],W.parentNode.insertBefore(k,W)))};
_.BR=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var U6I,OVb;U6I=_.iH(["https://clients2.google.com/gr/gr_sync.js"]);_.fGm=function(){};
_.fGm.prototype.init=function(){if(OVb()){var W=_.ME();W.resolve();return W.promise}return _.zc(_.k0(U6I)).then(function(){if(!OVb())throw Error("dg");},function(){throw Error("eg");
})};
_.dzK=function(){if(!OVb())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
OVb=function(){return window.google!=null&&window.google.gr!=null};var hYw,Ci4=new Set,WZc;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.R=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.D(_.R,PolymerFakeBaseClassWithoutHtml);_.Wp=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.D(_.Wp,PolymerFakeBaseClassWithoutHtml);var UYm=window.ShadyDOM;var caI,VAm,Smc,MAc,pZ2,vAP,bk,iK;caI=_.m("enable_shadydom_free_scoped_query_methods");VAm=_.m("enable_shadydom_free_scoped_node_methods");Smc=_.m("enable_shadydom_free_scoped_readonly_properties_batch_one");MAc=_.m("enable_shadydom_free_parent_node");pZ2=_.m("enable_shadydom_free_children");vAP=_.m("enable_shadydom_free_last_child");bk=window.ShadyDOM;_.Up=bk&&bk.noPatch&&bk.wrap?bk.wrap:bk?function(W){return bk.patch(W)}:function(W){return W};
iK=function(W){if(W instanceof ShadowRoot)this.host=(0,_.Up)(W.host),this.root=W;else if(W.$$){this.host=(0,_.Up)(W);var k;this.root=(k=W.root)!=null?k:this.host}else if(W.polymerController){this.host=(0,_.Up)(W);var C;this.root=(C=this.host.shadowRoot)!=null?C:this.host}else this.root=this.host=(0,_.Up)(W)};
JaK();I_2();eYX();scP();Qc4();var LpY={querySelector:function(W,k){k=L2c(k,Gy(W));W=_.yi(W);return $Z(W).prototype.querySelector.call(W,k)},
querySelectorAll:function(W,k){k=L2c(k,Gy(W));W=_.yi(W);return $Z(W).prototype.querySelectorAll.call(W,k)}},jCs={appendChild:function(W,k){var C=Gy(W),n=_.sp(k);
return _.zYK(_.yi(W),C?_.R8(k,C,n):k)},
cloneNode:function(W,k){var C=_.sp(W);W=_.yi(W);k=$Z(W).prototype.cloneNode.call(W,k);return C?o8(k,C):k},
contains:function(W,k){var C=Gy(W),n=_.sp(k);return C!==n?!1:DgJ(W,k)},
insertBefore:function(W,k,C){var n=Gy(W),N=_.sp(k);W=_.yi(W);k=n?_.R8(k,n,N):k;return $Z(W).prototype.insertBefore.call(W,k,C)},
removeChild:function(W,k){var C=Gy(W);W=_.yi(W);k=C?o8(k,C):k;return $Z(W).prototype.removeChild.call(W,k)},
replaceChild:function(W,k,C){var n=Gy(W),N=_.sp(k);k=n?_.R8(k,n,N):N?o8(k,N):k;C=n?o8(C,n):C;W=_.yi(W);return $Z(W).prototype.replaceChild.call(W,k,C)},
getRootNode:function(W,k){k=k===void 0?{composed:!0}:k;var C;if(((C=k)!=null?C:{}).composed)W=nAw(W);else{k=W;for(W=Hu4(W);W;)k=W,W=g8p(W);W=k}return W}},yaP=Smc?{firstChild:EAJ,
nextSibling:xgw,previousSibling:tAJ,firstElementChild:a_P,lastElementChild:f_w,nextElementSibling:wZJ,previousElementSibling:l_w,childNodes:dg2}:{};MAc&&(yaP.parentNode=FA2);pZ2&&(yaP.children=mgm);vAP&&(yaP.lastChild=XZw);caI&&GkX(LpY);VAm&&GkX(jCs);$gJ();var Zc3=function(W){this.node=W instanceof ShadowRoot?W.host:W};
RY2();oAI();var uyX=new WeakMap;var Oc4=Symbol("wd");var gAX=new Set(["tap","track","down","up"]),P4c=_.m("pbcm_fi_query_decorators");var HVb=function(){return _.Wp.apply(this,arguments)||this};
_.D(HVb,_.Wp);_.Y=HVb.prototype;_.Y.getState=function(){return this.store.getState()};
_.Y.dispatch=function(W){this.store.dispatch(W)};
_.Y.beforeRegister=function(){if(this&&typeof this==="object"){var W;var k=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else k=!1;if(!k&&this.properties)for(k=_.b(Object.keys(this.properties)),W=k.next();!W.done;W=k.next()){var C=W.value;W=this.properties[C];if(W.selector){if(W.computed)throw Error("kg");C=["reduxPropertiesRecomputeTrigger",'"'+C+'"'].concat(_.J8(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+C+")"}}};
_.Y.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.m("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.Y.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.Y.recomputeReduxSelector=function(W,k){var C=_.v6.apply(2,arguments),n=this.properties[k].selector;if(!n)throw Error("ig`"+k);return n.apply(null,[this.store.getState()].concat(_.J8(C)))};
_.Y.select=function(W){var k=_.v6.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.J8(k)))};
_.oq.Object.defineProperties(HVb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
var Aw=HVb;Aw.prototype.recomputeReduxSelector=Aw.prototype.recomputeReduxSelector;_.U([_.Z(),_.O("design:type",Number)],Aw.prototype,"reduxPropertiesRecomputeTrigger",void 0);Aw=_.U([_.kr()],Aw);var Fe=[],YDw={},r02=function(){return TX.apply(this,arguments)||this};
_.D(r02,TX);r02.prototype._addPropertyEffect=function(W,k,C){if(k==="__observeEffects"&&C){var n,N=(n=C.info.method)!=null?n:C.info.methodName;if(N){var B=this[N];this[N]=function(){Fe.push(N);try{B==null||B.apply(this,arguments)}finally{Fe.pop()}}}}_.xM._addPropertyEffect.apply(this,[W,
k,C])};
r02.prototype._setPendingProperty=function(W,k,C){if(Fe.length){var n=Fe[Fe.length-1],N;(N=YDw[this.is])!=null&&N.has(n)||(BO3(this.is,n),_.a9("polymerPropertyChangedInObserver",{componentName:this.is,observerName:n}))}return _.xM._setPendingProperty.apply(this,[W,k,C])};
var ccw=r02;ccw=_.U([t5X()],ccw);var bGJ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),FZX,Ns={};_.m("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Ns);var gcA=function(){return _.Wp.apply(this,arguments)||this};
_.D(gcA,_.Wp);gcA.prototype._setUnmanagedPropertyToNode=function(W,k,C){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(C!==W[k]||typeof C==="object")W[k]=C;W.is&&W.polymerController&&W.polymerController!==W&&Yr(W.is,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
var tLw=gcA;tLw=_.U([_.kr()],tLw);Acw()&&(S9.prototype._setUnmanagedPropertyToNode=(new tLw)._setUnmanagedPropertyToNode);_.IU2={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var PrS=function(){var W=TX.apply(this,arguments)||this;W.json=function(){};
return W};
_.D(PrS,TX);PrS.prototype.equals=function(W,k){return W===k};
PrS.prototype.isEmpty=function(W){return!W||_.qX(W)&&W.length===0};
var xr=PrS;xr=_.U([t5X()],xr);var KpS=function(W){W=Few(W);SB.call(this,W)};
_.D(KpS,SB);KpS.prototype.addProvider=function(W){W=W.key?W:Few([W])[0];var k=this.keyIdToIndex.get(W.key.id);if(k){if(aUc(W,this.providers[k]))throw Error("lg`"+W.key.displayName);}else SB.prototype.addProvider.call(this,W)};
var hSZ=new KpS([]);var Wcx=!1;var Dkw={};Wcx||(z3I(),Wcx=!0);
Dkw.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var k=Few(W),C=_.b(k),n=C.next();!n.done;n=C.next())hSZ.addProvider(n.value);var N=new Set;X23(this.behaviors||[],N);k={};for(var B=_.b(N),A=B.next();!A.done;A=B.next()){var w=A.value;w.inject&&Object.assign(k,w.inject)}this.inject&&Object.assign(k,this.inject);for(var x=_.b(Object.keys(k)),E=x.next();!E.done;E=x.next()){var a=E.value,X=k[a];try{this[a]=hSZ.resolve(X)}catch(d){throw d;}}}catch(d){throw Error(d.message);
}}};var Jc4;var SDm=/\bclass\b/.test(function(){}.toString()),p2P=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var kgz=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$11107_getImpl=W[0],this.JSC$11107_setImpl=W[1]):this.JSC$11107_getImpl=W};
_.Y=kgz.prototype;_.Y.getWithPath=function(W){return EC(this.JSC$11107_getImpl(),W)};
_.Y.setWithPath=function(W,k){var C=this;if(W.length)throw Error("mg");if(!this.JSC$11107_setImpl)throw Error("ng");bR(function(){C.JSC$11107_setImpl(k)})};
_.Y.notifyPath=function(){throw Error("og");};
_.Y.notifySplices=function(){throw Error("pg");};
_.Y.getChangeRecordSignal=function(W,k){var C=this;if(W.length)throw Error("qg");return function(){var n=C.getWithPath(W);return{path:k!=null?k:"",base:n,value:n}}};
_.Y.getSplicesSignal=function(){throw Error("rg");};
_.Y.getPathMutationSignal=function(){throw Error("sg");};
_.Y.pop=function(){throw Error("tg");};
_.Y.push=function(){throw Error("ug");};
_.Y.splice=function(){throw Error("vg");};
_.Y.unshift=function(){throw Error("wg");};var wh=function(W){var k=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$11112_getImpl=W[0],this.JSC$11112_setImpl=W[1]):this.JSC$11112_getImpl=W;this.wasDefined=!1;WH(function(){k.wasDefined=k.JSC$11112_getImpl()!==void 0})};
wh.prototype.getWithPath=function(W){return EC(this.JSC$11112_getImpl(),W)};
wh.prototype.setWithPath=function(W,k){var C=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){if(W.length===0){if(!this.JSC$11112_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=k!==void 0);bR(function(){C.JSC$11112_setImpl(k)})}else{for(var n=WH(function(){return C.getWithPath([])}),N=0;N<W.length-1;N++){if(!n)return;
n=n[W[N]]}N=W[W.length-1];n&&(n[N]=k);this.wasDefined||(this.wasDefined=W.length>1||k!==void 0)}CSY(this,W,{pathComponents:W,value:k})}};
wh.prototype.notifyPath=function(W,k){W.length===0?k&&this.setWithPath(W,k.value):CSY(this,W,{pathComponents:W,value:k==null?void 0:k.value,fallbackWhenUndefined:k==null?void 0:k.value})};
var CSY=function(W,k,C,n){if(W.setMutationSignal){var N=++W.mutationIndex,B=[W.observedPath],A=W.observedPath,w;k.length===0&&(w=A);for(var x=0;x<k.length;x++){var E=A.subPaths[k[x]];if(!E)break;B.push(E);A=E;x===k.length-1&&(w=E)}for(k=!1;B.length;)A=B.shift(),A.data={index:N,mutation:C,spliceMutationIndex:n},k||(k=A===w),k&&B.push.apply(B,_.J8(Object.values(A.subPaths)));bR(function(){W.setMutationSignal(N)})}};
wh.prototype.notifySplices=function(W,k){var C=this,n=WH(function(){return C.getWithPath(W)}),N=[].concat(_.J8(W),["splices"]);
CSY(this,N,{pathComponents:N,value:{indexSplices:k}});if(n==null?0:n.length)k=this.mutationIndex,N=[].concat(_.J8(W),["length"]),CSY(this,N,{pathComponents:N,value:n.length},k)};
var nYI=function(W,k,C,n,N,B){W.notifySplices(C,[{index:n,addedCount:N,removed:B,object:k,type:"splice"}])},NQS=function(W,k){W=W.observedPath;
for(var C=0;C<k.length;C++){var n=k[C],N=W.subPaths[n];N||(N={pathComponents:k.slice(0,C+1),subPaths:{}},W.subPaths[n]=N);W=N}},BQA=function(W,k,C){NQS(W,k);
if(!W.getMutationSignal){var n=_.b(_.kw(W.mutationIndex,void 0,"HavCgf"));W.getMutationSignal=n.next().value;W.setMutationSignal=n.next().value}var N=W.getMutationSignal;return _.BH(function(){N();return C(Y58(W,k))},void 0,"BYaPo")};
wh.prototype.getChangeRecordSignal=function(W,k){var C=this,n=this.mutationIndex,N;return BQA(this,W,function(B){if(B&&B.index>n){var A=B.mutation;n=B.index;N=void 0}B=WH(function(){return C.getWithPath(W)});
if(A){var w=A.pathComponents[A.pathComponents.length-1],x=[].concat(_.J8(A.pathComponents));if(w==="splices"||w==="length")return{base:B,path:(k?[k].concat(_.J8(x)):x).join("."),value:A.value};var E=W.length>x.length?W:x,a;return{base:B!=null?B:A.fallbackWhenUndefined,path:(k?[k].concat(_.J8(E)):E).join("."),value:(a=WH(function(){return C.getWithPath(E)}))!=null?a:A.fallbackWhenUndefined}}N||(N={base:B,
path:(k?[k].concat(_.J8(W)):W).join("."),value:B});return N})};
wh.prototype.getSplicesSignal=function(W){var k=this.mutationIndex,C;return BQA(this,W,function(n){if(n&&n.index>k&&n.spliceMutationIndex!==k){var N=n.mutation;k=n.index;C=void 0}return N&&N.pathComponents[N.pathComponents.length-1]==="splices"?C=n=N.value:C})};
wh.prototype.getPathMutationSignal=function(W){var k=this;NQS(this,W);if(!this.getMutationSignal){var C=_.b(_.kw(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=C.next().value;this.setMutationSignal=C.next().value}var n=this.getMutationSignal,N=this.mutationIndex,B;return _.BH(function(){n();var A=Y58(k,W);if(A&&A.index>N&&A.mutation&&s_z(A.mutation.pathComponents,W)){var w=A.mutation;N=A.index}if(!B||N!==B.index){var x,E;A=(E=WH(function(){return k.getWithPath(W)}))!=null?E:(x=w)==null?
void 0:x.fallbackWhenUndefined;
B={index:N,value:A}}return B},void 0,"Aumsyf")};
var Y58=function(W,k){W=W.observedPath;k=_.b(k);for(var C=k.next();!C.done;C=k.next())W=W.subPaths[C.value];return W.data};
wh.prototype.pop=function(W){var k=this,C=WH(function(){return k.getWithPath(W)});
if(!(C instanceof Array))throw Error("yg");var n=C.length>0,N=C.pop();n&&nYI(this,C,W,C.length,0,[N]);return N};
wh.prototype.push=function(W){var k=_.v6.apply(1,arguments),C=this,n=WH(function(){return C.getWithPath(W)});
if(!(n instanceof Array))throw Error("zg");var N=n.length,B=n.push.apply(n,_.J8(k));k.length&&nYI(this,n,W,N,k.length,[]);return B};
wh.prototype.splice=function(W,k,C){var n=_.v6.apply(3,arguments),N=this,B=WH(function(){return N.getWithPath(W)});
if(!(B instanceof Array))throw Error("Ag");k<0?k=B.length-Math.floor(-k):k&&(k=Math.floor(k));var A=B.splice.apply(B,[k,C].concat(_.J8(n)));(n.length||A.length)&&nYI(this,B,W,k,n.length,A);return A};
wh.prototype.unshift=function(W){var k=_.v6.apply(1,arguments),C=this,n=WH(function(){return C.getWithPath(W)});
if(!(n instanceof Array))throw Error("Bg");var N=n.unshift.apply(n,_.J8(k));k.length&&nYI(this,n,W,0,k.length,[]);return N};var bex=!0,Azs=!1,LcI=!1,Fcz=!1,xD=!1,wgC=0;Fcz=!1;wgC=0;bex=!0;xD=Azs=LcI=!1;var lk=function(W,k,C){this.model=W;this.unknownSignalResolver=k;this.options=C;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];k=_.b(qDm());W=k.next().value;k=k.next().value;this.owner=W;this.disposeImpl=k};
lk.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.b(this.childSignalProxies),k=W.next();!k.done;k=W.next())k.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var xhz=function(W,k){W=ug(W.owner);try{k()}finally{ug(W)}},lgz=function(W,k){var C={stack:[],
error:void 0,hasError:!1};try{eY(C,YLP(W.owner)),k()}catch(n){C.error=n,C.hasError=!0}finally{sC(C)}};
lk.prototype.effect=function(W){_.m("web_poly_si_remove_using")?xhz(this,function(){_.aW(W)}):lgz(this,function(){_.aW(W)})};
var tnx=function(W,k){W.options!=null||(W.options={});var C;(C=W.options).immutableProps!=null||(C.immutableProps=new Set);W.options.immutableProps.add(k)},OVw=function(W,k){k=""+k;
var C;if((C=W.model.__signalCache)==null?0:C.has(k))C=W.model.__signalCache.get(k),Array.isArray(C)&&tnx(W,k);var n,N,B;return(B=(n=W.options)==null?void 0:(N=n.immutableProps)==null?void 0:N.has(k))!=null?B:!1},EYZ=function(W,k){var C;
W.unknownSignalResolver&&(C=W.unknownSignalResolver(k));var n,N;((n=W.options)==null?0:(N=n.immutableProps)==null?0:N.has(k))?C!=null||(C=new kgz(_.kw(W.model[k],void 0,"SYknZd"))):C!=null||(C=new wh(_.kw(W.model[k],void 0,"GCgq1e")));var B=W.model.hostElement;Object.defineProperty(W.model,k,{get:function(){xkI(B,k);return C.getWithPath([])},
set:function(A){Bp(B,k);W.setWithPath([k],A)},
configurable:!0});return C},Xr=function(W,k){k=""+k;
var C=W.signalCache[k];if(C!==void 0)return C;C=!1;var n;if((n=W.model.__signalCache)==null?0:n.has(k))if(C=W.model.__signalCache.get(k),Array.isArray(C))C=!0,tnx(W,k);else return W.signalCache[k]=W.model.__signalCache.get(k).signal,W.signalCache[k];var N,B;n=(B=(N=W.options)==null?void 0:N.reactivityMode)!=null?B:0;var A,w;if(!((A=W.options)==null?0:(w=A.reactiveProps)==null?0:w.has(k))&&!C&&n===1)throw Error("Cg`"+k);N=C?ag2(W,k):EYZ(W,k);return W.signalCache[k]=N},ag2=function(W,k){var C=Object.getOwnPropertyDescriptor(W.model.constructor.prototype,
k),n=function(){return W.model[k]};
return new kgz(C&&C.get&&!C.set?n:[n,function(N){W.model[k]=N}])};
lk.prototype.getWithPath=function(W){var k=_.b(W);W=k.next().value;k=oL(k);xkI(this.model.hostElement,""+W);return Xr(this,W).getWithPath(k)};
lk.prototype.setWithPath=function(W,k){if(W.length){Bp(this.model.hostElement,W.join("."));var C=_.b(W);W=C.next().value;C=oL(C);Xr(this,W).setWithPath(C,k)}};
lk.prototype.getPathMutationSignal=function(W){var k=_.b(W);W=k.next().value;k=oL(k);return Xr(this,W).getPathMutationSignal(k)};
lk.prototype.notifyPath=function(W,k){var C=_.b(W);W=C.next().value;C=oL(C);Xr(this,W).notifyPath(C,k)};
var Xgs=function(W,k){if(k.type==="literal")return function(){return{rootWasDefined:!0,value:k.value}};
var C=tv(k.path),n=_.b(C),N=n.next().value;n=oL(n);var B,A;if(k.type==="path"&&(C.length===1||((B=W.options)==null?0:(A=B.immutableProps)==null?0:A.has(N))))return function(){var X=W.getWithPath(C.slice(0,1)),d=EC(X,C.slice(1));X=X!==void 0;xD&&(X=Xr(W,C[0]).wasDefined);return{rootWasDefined:X,value:d}};
var w=Xr(W,N);if(k.type==="path"){var x=w.getPathMutationSignal(n);return function(){var X=xD?w.wasDefined:zm(W.owner,function(){return w.getWithPath([])})!==void 0;
var d,V=(d=x())==null?void 0:d.value;return{rootWasDefined:X,value:V}}}if(k.type==="splices"){var E=w.getSplicesSignal(n);
return function(){var X=E();return{rootWasDefined:xD?w.wasDefined:X!==void 0,value:X}}}var a=w.getChangeRecordSignal(n,""+N);
return function(){var X=a();return{rootWasDefined:xD?w.wasDefined:X!==void 0,value:X}}},oCz=function(W,k,C){var n=C.map(function(w){return Xgs(W,w)}),N=C.length===0,B=[],A=C.length!==1||C[0].type!=="path"?!1:!0;
W.effect(function(){for(var w=n.length,x=[],E=!!B.length,a=0;a<w;a++){var X=n[a](),d=X.rootWasDefined;X=X.value;N||(N=d);x[a]=X;A&&(x[a+w]=E?B[a]:x[a],B[a]=X)}N&&zm(W.owner,function(){return void k.apply(null,_.J8(x))})})},GxI=function(W,k,C,n,N){var B=Xr(W,k);
N!==void 0&&B.setWithPath([],N);oCz(W,function(){var A=_.v6.apply(0,arguments);Bp(W.model.hostElement,k,!0);B.setWithPath([],C.apply(null,_.J8(A)))},n)};
lk.prototype.arrayPush=function(W){var k=_.v6.apply(1,arguments),C=_.b(W),n=C.next().value;C=oL(C);n=Xr(this,n);return n.push.apply(n,[C].concat(_.J8(k)))};
lk.prototype.arraySplice=function(W,k,C){var n=_.v6.apply(3,arguments),N=_.b(W),B=N.next().value;N=oL(N);B=Xr(this,B);return B.splice.apply(B,[N,k,C].concat(_.J8(n)))};
lk.prototype.arrayUnshift=function(W){var k=_.v6.apply(1,arguments),C=_.b(W),n=C.next().value;C=oL(C);n=Xr(this,n);return n.unshift.apply(n,[C].concat(_.J8(k)))};
lk.prototype.notifySplices=function(W,k){var C=_.b(W);W=C.next().value;C=oL(C);Xr(this,W).notifySplices(C,k)};var HGI=/([^\s]+?)\(([\s\S]*)\)/,OGw=/\.([^.]+)$/,gCK=/\\,/g,uTK=/&comma;/g,Uk3=/\\(.)/g,rcz=[],LZ4={"*":"wildcard",splices:"splices"};var ZVK=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"),sCm=/[A-Z]/,fg8=["class","hidden","id","on-dom-change"],ocp=new Set([].concat(_.J8(fg8),
["if","notify-dom-change","restamp"])),iVz=new Set([].concat(_.J8(fg8),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Tp4=new Set(["restamp"]);var jCm=Symbol(),Wc3=window;var Azm=window;var agz=0,xh4=0,fq=[],EYX=0,wgc=!1,tn3=document.createTextNode("");(new window.MutationObserver(lg4)).observe(tn3,{characterData:!0});var mW=new Map,dH=0,dh8=function(W){this.mappedHandleId=W},fgw=function(W,k,C,n){this.mappedHandleId=W;
var N=this;this.mappedHandleId=W;this.callback=k;this.waitTime=C;this.schedulerPriority=n;this.handleId=_.aM.addJob(function(){N.callback();mW.delete(N.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.D(fgw,dh8);fgw.prototype.cancel=function(){_.aM.cancelJob(this.handleId);mW.delete(this.mappedHandleId)};
var dhw=function(W,k){this.mappedHandleId=W;var C=this;this.mappedHandleId=W;this.callback=k;this.handleId=Xgm(function(){C.callback();mW.delete(C.mappedHandleId)})};
_.D(dhw,dh8);dhw.prototype.cancel=function(){var W=this.handleId-xh4;W<0||fq.length<=W||(fq[W]=null);mW.delete(this.mappedHandleId)};var VnX=function(){};
VnX.prototype.cancel=function(){this.jobHandle!==void 0&&(mh2(this.jobHandle),this.jobHandle=void 0)};
VnX.prototype.run=function(W,k,C){var n=this;this.cancel();this.callback=W;this.jobHandle=_.zM(function(){W();n.callback=void 0},k,C)};
VnX.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var zK4=new WeakMap;var mhA=Zm(function(W){for(var k=W,C=0;C<3;C++)k=Object.getPrototypeOf(k);delete k.prototype.connectedCallback;var n=function(){return W.apply(this,arguments)||this};
_.D(n,W);n.prototype._attachDom=function(N){if(!N)return null;var B=(0,_.Up)(this.hostElement);B.attachShadow({mode:"open",shadyUpgradeFragment:N});B.shadowRoot.appendChild(N);return B.shadowRoot};
n.prototype._takeAttributes=function(){for(var N=this.hostElement.attributes,B=0;B<N.length;B++){var A=N[B],w=void 0,x=void 0;(x=(w=this).__attributeReaction)==null||x.call(w,A.name,null,A.value)}};
n.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
n.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.oq.Object.defineProperties(n,{template:{configurable:!0,enumerable:!0,get:function(){return n.prototype._template}}});
return n}),zKz=Zm(function(W){var k=function(){return W.apply(this,arguments)||this};
_.D(k,W);k.prototype.created=function(){if(this.__notifyEffects)for(var C=_.b(Object.values(this.__notifyEffects)),n=C.next();!n.done;n=C.next()){n=_.b(n.value);for(var N=n.next();!N.done;N=n.next())N.value.fn=S5z}if(this.__reflectEffects)for(C=_.b(Object.values(this.__reflectEffects)),n=C.next();!n.done;n=C.next())for(n=_.b(n.value),N=n.next();!N.done;N=n.next())N.value.fn=Mnm};
k.prototype._addEventListenerToNode=function(C,n,N){C=V3(C);m5(C,n,N)||W.prototype._addEventListenerToNode.call(this,C,n,N)};
k.prototype._removeEventListenerFromNode=function(C,n,N){C=V3(C);zX(C,n,N)||W.prototype._removeEventListenerFromNode.call(this,C,n,N)};
k.prototype._propertiesChanged=function(C,n,N){if(this.__dataToNotify&&this.__notifyEffects)for(var B=_.b(Object.keys(this.__dataToNotify)),A=B.next();!A.done;A=B.next()){A=A.value;var w=IgX(A);this.__notifyEffects[w]||delete this.__dataToNotify[A]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,C,n,N)};
k.prototype.fire=function(C,n,N){n=n===void 0?{}:n;var B;return _.Pe(V3((B=N==null?void 0:N.node)!=null?B:this),C,n,N)};
k.prototype._ensureAttribute=function(C,n){var N=V3(this);N.hasAttribute(C)||aK(N,n,C)};
k.prototype.isLightDescendant=function(C){var n=V3(this);return V3(n)!==C&&_.S(n).contains(C)&&_.S(n).getRootNode()===_.S(C).getRootNode()};
return k});
_.xq.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var k;((k=this.hostElement)!=null?k:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.mV._subscribeIronResize=function(W){var k;((k=W.hostElement)!=null?k:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.mV._unsubscribeIronResize=function(W){var k;((k=W.hostElement)!=null?k:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var vYP=[Array,Boolean,Date,Number,Object,String],cp=function(W,k,C,n){this.polySiInfo=W;this.polySiParams=k;this.polySiContext=C;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;n||this instanceof HTMLElement&&(n=this);if(!n)throw Error("Jg");this.allowedProps=k.allowedProps;this.hostElement=n;this.is=W.is;this.upgradeDisabled=!!k.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(k.reactiveSchemas.filter(function(N){return N.type!==
"observe"}).map(function(N){return N.propertyKey}));
this.signalProxy=new lk(this,void 0,{reactiveProps:W,reactivityMode:k.reactivityMode});this.__dataHasAccessor={};k=_.b(k.reactiveSchemas);for(W=k.next();!W.done;W=k.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||Dhb(this)};
cp.prototype.getExtraMethodsToForward=function(){return[]};
var Dhb=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=Fc4(W.polySiParams.templateGetter,W.polySiParams.is)));VnS(W);var k=W.hostElement;k.loggingStatus!=null||(k.loggingStatus={});k.loggingStatus.isInitializing=!0;WH(function(){return void W.created()});
k.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&JzI(W)},JzI=function(W){W.didCallReady||(WH(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.Y=cp.prototype;_.Y.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||JzI(this)};
_.Y.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.Y.attributeChangedCallback=function(W,k,C){if(this.upgradeDisabled)W==="disable-upgrade"&&C===null&&(this.upgradeDisabled=!1,Dhb(this));else if(k!==C){var n=_.bd(W),N=this.polySiContext.typesForSignals[n];if(N){switch(N){case Object:try{var B=JSON.parse(C)}catch(w){B=C}break;case Array:try{B=JSON.parse(C)}catch(w){B=null}break;case Date:B=isNaN(C)?String(C):Number(C);B=new Date(B);break;case Boolean:B=C!==null;break;case Number:B=Number(C);break;default:B=C}this[n]=B}n=_.b(this.polySiParams.behaviors);
for(N=n.next();!N.done;N=n.next())B=void 0,(B=N.value.attributeChanged)==null||B.call(this,W,k,C);var A;(A=this.attributeChanged)==null||A.call(this,W,k,C)}};
_.Y.attributeChangedCallbackWrapper=function(W,k,C){this.attributeChangedCallback(W,k,C)};
_.Y.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var k=this.hostElement.attributes[W];(k.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(k.name))&&this.attributeChangedCallback(k.name,null,k.value)}};
_.Y.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.b(this.polySiParams.reactiveSchemas);for(var k=W.next();!k.done;k=W.next())k=k.value,k.type==="signal"&&(this.mutablePropNames.add(k.propertyKey),Xr(this.signalProxy,k.propertyKey));pgJ(this,this.polySiInfo,this.polySiParams.behaviors);W=_.b(this.polySiParams.reactiveSchemas);for(k=W.next();!k.done;k=W.next())k=k.value,k.type==="signal"&&k.value!==void 0&&(this.signalProxy.model[k.propertyKey]=
typeof k.value==="function"?k.value.call(this):k.value);if(this.polySiParams.signalProperties)for(W=_.b(this.polySiParams.signalProperties),k=W.next();!k.done;k=W.next()){k=k.value;var C=void 0;((C=this.__signalCache)==null?0:C.has(k))||(this.signalProxy.model[k]=void 0)}Fcz||czb(this);Qiz(this);W=_.b(this.polySiParams.behaviors);for(k=W.next();!k.done;k=W.next())C=void 0,(C=k.value.created)==null||C.call(this);var n;(n=this.polySiInfo.created)==null||n.call(this)};
_.Y.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var k=Object.getPrototypeOf(this);k.addReactiveSchema=function(w){W.polySiParams.reactiveSchemas.push(w)};
for(var C=_.b(this.polySiParams.behaviors),n=C.next();!n.done;n=C.next()){var N=void 0;(N=n.value.beforeRegister)==null||N.call(k)}var B;(B=this.polySiInfo.beforeRegister)==null||B.call(k);k.addReactiveSchema=si3;C=_.b(this.polySiParams.behaviors);for(n=C.next();!n.done;n=C.next())N=void 0,(N=n.value.registered)==null||N.call(k);var A;(A=this.polySiInfo.registered)==null||A.call(k)};
_.Y.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);Fcz&&czb(this);var k;if(W=(k=this.polySiContext.finalizedTemplate)==null?void 0:k.processedTemplate){W=be3(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});k=W.nodesById;W=W.root;var C=(0,_.Up)(this.hostElement);if(!C.attachShadow)throw Error("Cd");C.shadowRoot||(C.attachShadow({mode:"open",shadyUpgradeFragment:W}),C.shadowRoot.appendChild(W));this.root=C.shadowRoot;
this.$=k}IgZ(this);k=_.b(this.polySiParams.behaviors);for(W=k.next();!W.done;W=k.next())C=void 0,(C=W.value.ready)==null||C.call(this);var n;(n=this.polySiInfo.ready)==null||n.call(this)};
_.Y.attached=function(){for(var W=_.b(this.polySiParams.behaviors),k=W.next();!k.done;k=W.next()){var C=void 0;(C=k.value.attached)==null||C.call(this)}var n;(n=this.polySiInfo.attached)==null||n.call(this)};
_.Y.detached=function(){for(var W=_.b(this.polySiParams.behaviors),k=W.next();!k.done;k=W.next()){var C=void 0;(C=k.value.detached)==null||C.call(this)}var n;(n=this.polySiInfo.detached)==null||n.call(this)};
var VnS=function(W){for(var k=_.b(W.polySiParams.behaviors),C=k.next();!C.done;C=k.next())if(C=C.value,C.listeners)for(var n in C.listeners)BQ2(W,W.hostElement,n,C.listeners[n]);if(W.polySiInfo.listeners)for(var N in W.polySiInfo.listeners)BQ2(W,W.hostElement,N,W.polySiInfo.listeners[N])},BQ2=function(W,k,C,n,N){W=e33(W,n,N);
m5(k,C,W)||k.addEventListener(C,W);return W},czb=function(W){for(var k=_.b(W.polySiParams.reactiveSchemas),C=k.next();!C.done;C=k.next())C=C.value,C.type==="compute"||C.type==="computeWithMethod"?ycz(W.signalProxy,C,W):C.type==="redux"?R34(W.signalProxy,C,W.store):C.type==="signal"&&C.readOnly&&ZGw(W.signalProxy,C)},IgZ=function(W){for(var k=_.b(W.polySiParams.reactiveSchemas),C=k.next(),n={};!C.done;n={schema$jscomp$12:void 0},C=k.next())n.schema$jscomp$12=C.value,n.schema$jscomp$12.type==="notify"?
iGP(W.signalProxy,n.schema$jscomp$12,W.hostElement):n.schema$jscomp$12.type==="observe"?TO2(W.signalProxy,n.schema$jscomp$12,W):n.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(B){return function(){var A=W.signalProxy.getWithPath([B.schema$jscomp$12.propertyKey]);
QCX(W.hostElement,B.schema$jscomp$12.propertyKey,A)}}(n));
if(W.reflectedAttributes)for(k=_.b(Object.entries(W.reflectedAttributes)),n=k.next(),C={};!n.done;C={key$jscomp$867:void 0,value$jscomp$8668:void 0},n=k.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;C.key$jscomp$867=n;C.value$jscomp$8668=N;W.signalProxy.effect(function(B){return function(){QCX(W.hostElement,B.key$jscomp$867,(0,B.value$jscomp$8668)())}}(C))}};
_.Y=cp.prototype;_.Y._setPendingProperty=function(W,k){this.set(W,k);return!1};
_.Y._enableProperties=function(){};
_.Y._setPendingPropertyOrPath=function(W,k){this.notifyPath(W,k);return!1};
_.Y._addPropertyEffect=function(){};
_.Y._stampTemplate=function(){throw Error("Kg");};
_.Y.fire=function(W,k,C){k=k===void 0?{}:k;C=C===void 0?{}:C;var n,N,B={bubbles:(n=C.bubbles)!=null?n:!0,cancelable:!!C.cancelable,composed:(N=C.composed)!=null?N:!0},A;return _.Pe(Ggc((A=C.node)!=null?A:this.hostElement),W,k,B)};
_.Y.get=function(W,k){var C=tv(W);return k?EC(k,C):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(C)};
_.Y.linkPaths=function(){};
_.Y.listen=function(W,k,C){W=Ggc(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var n=this.boundListeners.get(W);n||(n={},this.boundListeners.set(W,n));var N=k+C;n[N]||(n[N]=BQ2(this,W,k,C))};
_.Y.notifyPath=function(W,k){this.signalProxy.notifyPath(tv(W),arguments.length===2?{value:k}:void 0)};
_.Y.canNotifyPath=function(W){var k,C;return this.mutablePropNames.has(W)&&!((k=this.signalProxy.options)==null?0:(C=k.immutableProps)==null?0:C.has(W))};
_.Y.notifySplices=function(W,k){this.signalProxy.notifySplices(tv(W),k)};
_.Y.pop=function(W){var k=this.signalProxy;W=tv(W);var C=_.b(W);W=C.next().value;C=oL(C);return Xr(k,W).pop(C)};
_.Y.push=function(W){var k=_.v6.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[tv(W)].concat(_.J8(k)))};
_.Y.set=function(W,k,C){if(C)throw Error("Lg");W==="hidden"?this.hostElement.hidden=!!k:this.signalProxy.setWithPath(tv(W),k)};
_.Y.setProperties=function(W){W=_.b(Object.entries(W));for(var k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;this[k]=C}};
_.Y.splice=function(W,k,C){var n=_.v6.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[tv(W),k,C].concat(_.J8(n)))};
_.Y.unlinkPaths=function(){};
_.Y.unlisten=function(W,k,C){W=Ggc(W);if(this.boundListeners){var n=this.boundListeners.get(W);if(n){C=k+C;var N=n[C];N&&(zX(W,k,N)||W.removeEventListener(k,N),delete n[C])}}};
_.Y.unshift=function(W){var k=_.v6.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[tv(W)].concat(_.J8(k)))};
_.oq.Object.defineProperties(cp.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 OeX=[Array,Boolean,Date,Number,Object,String];var Hep=!1;var tw=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$11224_didCallConnected=!1;W.JSC$11224_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=IK()?void 0:_.kw(!1,void 0,"bmozBd");var k;W.getDisableTemplateUpdate=(k=W.disableTemplateUpdateSignalImpl)==null?void 0:k[0];var C;W.setDisableTemplateUpdate=(C=W.disableTemplateUpdateSignalImpl)==null?void 0:C[1];return W};
_.D(tw,HTMLElement);var S52=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new wh(_.kw(!1,void 0,"NYV5Rb")));return W.conditionSignalImpl};
_.Y=tw.prototype;_.Y.showHideChildren=function(W){Mns(this,W,this.if)};
_.Y.attributeChangedCallback=function(W,k,C){if(this.JSC$11224_didCallConnected)throw Error("Pg`"+W);W==="notify-dom-change"?this.notifyDomChange=C!==null:W==="restamp"&&(this.restamp=C!==null)};
_.Y.debounceRender=function(){this.JSC$11224_renderDebouncer=_.gD(this.JSC$11224_renderDebouncer,Ve,this.JSC$11224_renderImpl.bind(this));_.P0(this.JSC$11224_renderDebouncer)};
_.Y.disconnectedCallback=function(){var W=(0,_.Up)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&Qi2(this)};
_.Y.connectedCallback=function(){var W=this;this.JSC$11224_didCallConnected=!0;bex?rz2():this.style.display="none";this.parentSignalProxy.effect(function(){S52(W).getWithPath([]);W.debounceRender()})};
_.Y.render=function(){_.kM()};
_.Y.JSC$11224_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if;if(W){a:{var k=(0,_.Up)(this).parentNode;if(this.hasInstance()){var C=this.instance.children;if((C==null?0:C.length)&&(0,_.Up)(this).previousSibling!==C[C.length-1])for(var n=0;n<C.length;n++)(0,_.Up)(k).insertBefore(C[n],this)}else{if(!k){k=!1;break a}pgI(this,k)}k=!0}if(!k)return}else this.restamp&&Qi2(this);Mns(this,!1,W);W&&vYY(this);Azs&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.Y.hasInstance=function(){return!!this.instance};
var pgI=function(W,k){var C=W.parentSignalProxy;if(IK()){var n=_.b(_.kw(!0,void 0,"tGD1cf"));var N=n.next().value;n=n.next().value;C=W.parentSignalProxy}else{var B;var A=new lk((B=eKC(W))!=null?B:{},function(x){var E=Xr(W.parentSignalProxy,x).getChangeRecordSignal([]);x=_.kw(void 0,void 0,"dOaz1b");var a=new wh(x);A.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var X=E();a.notifyPath(tv(X.path),{value:X.value})}});
return a});
W.parentSignalProxy.childSignalProxies.push(A);var w=C=A}B=be3(W.templateInfo,W.templateInfo.nodeInfoList,C,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:IK()?N:void 0,scope:W.parentScope,getModel:function(){return W.parentScope?gYw(C.owner,W.parentScope):eKC(W)}}).root;
W.instance={root:B,children:[],hidden:!1,signalProxy:w,getTemplateUpdatesEnabled:N,setTemplateUpdatesEnabled:n};w=_.b(B.childNodes);for(N=w.next();!N.done;N=w.next())W.instance.children.push(N.value);(0,_.Up)(k).insertBefore(W.instance.root,W)},eKC=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var k={},C;
for(C in W)W.hasOwnProperty(C)&&(k[C]=W[C]);return k}},Qi2=function(W){if(W.instance){var k=W.instance.children;
if(k.length){var C=(0,_.Up)(k[0]).parentNode;if(C){C=(0,_.Up)(C);for(var n=0;n<k.length;n++)C.removeChild(k[n])}}IK()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},Mns=function(W,k,C){k=k||!C;
W.instance&&W.instance.hidden!==k&&(W.instance.hidden=k,jip(k,W.instance.children))},vYY=function(W){if(IK()){var k=W.instance;
k&&zm(W.parentSignalProxy.owner,function(){return!k.getTemplateUpdatesEnabled()})&&k.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.oq.Object.defineProperties(tw.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return zm(this.parentSignalProxy.owner,function(){return S52(W).getWithPath([])})},
set:function(W){W||(IK()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));S52(this).setWithPath([],!!W)}}});
_.oq.Object.defineProperties(tw,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",tw);var six=[],EQ=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$11231_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$11231_didCallConnected=!1;return W};
_.D(EQ,HTMLElement);var GgC=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new wh(_.kw(six,void 0,"uvlPIb")));return W.itemSignalImpl},yzz=function(W,k){Array.isArray(k)||(k=six);
GgC(W).setWithPath([],k)};
_.Y=EQ.prototype;_.Y.showHideChildren=function(W){for(var k=_.b(this.instances),C=k.next();!C.done;C=k.next())jip(W,C.value.children)};
_.Y.notifyPath=function(W,k){W=tv(W);W[0]==="items"&&(W.length===1?yzz(this,k):GgC(this).setWithPath(W.slice(1),k))};
_.Y.canNotifyPath=function(W){return W==="items"};
_.Y.attributeChangedCallback=function(W,k,C){if(this.JSC$11231_didCallConnected)throw Error("Qg`"+W);W==="as"?this.as=C:W==="index-as"?this.indexAs=C:W==="items-index-as"?this.itemsIndexAs=C:W==="initial-count"?this.initialCount=Number(C):W==="notify-dom-change"?this.notifyDomChange=C!==null:W==="target-framerate"&&(this.targetFramerate=Number(C))};
_.Y.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)$hs(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.Y.connectedCallback=function(){var W=this,k=GgC(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var N=k(),B=tv(N.path);if(B[0]===void 0||B[0]==="splices"||B[0]==="length")W.debounceRender();else{var A=B[0];if(A=W.instances[typeof A==="string"?Math.floor(Number(A)):A])A.type==="legacy"?(B=[W.as].concat(_.J8(B.slice(1))),A.signalProxy.notifyPath(B,N)):(B=B.slice(1),A.itemSignal.notifyPath(B,N))}});
this.JSC$11231_didCallConnected=!0;bex?rz2():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var C=(0,_.Up)((0,_.Up)(this).parentNode),n=0;n<this.instances.length;n++)C.insertBefore(this.instances[n].root,this);this.chunkingId&&this.render()}};
_.Y.debounceRender=function(){this.JSC$11231_renderDebouncer=_.gD(this.JSC$11231_renderDebouncer,Ve,this.JSC$11231_renderImpl.bind(this));_.P0(this.JSC$11231_renderDebouncer)};
_.Y.render=function(){this.debounceRender();_.kM()};
_.Y.JSC$11231_renderImpl=function(){var W=this,k=this.items,C=ZeA(this,k.length);RKA(this,k,C);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var n=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/n*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
Azs&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var ZeA=function(W,k){var C=k,n=W.instances.length;if(W.initialCount){if(W.chunkCount){var N=Math.min(Math.max(k-n,0),W.chunkCount);C=Math.min(n+N,k)}else C=Math.min(k,W.initialCount),N=Math.max(C-n,0),W.chunkCount=N||1;W.shouldMeasureChunk=N===W.chunkCount;W.shouldContinueChunking=C<k;W.renderStartTime=performance.now()}return C},RKA=function(W,k,C){for(var n=0;n<C;n++){var N=W.instances[n],B=k[n];
N?N.type==="legacy"?(N.signalProxy.setWithPath([W.as],B),N.signalProxy.setWithPath([W.indexAs],n)):(N.itemSignal.setWithPath([],B),N.setIndex(n)):oYC(W,B,n)}for(k=W.instances.length-1;k>=n;k--)C=W,N=k,$hs(C,N),C=_.b(C.instances.splice(N,1)).next().value,C.type==="legacy"?C.signalProxy.dispose():C.setDisabled()},$hs=function(W,k){W=W.instances[k];
k=(0,_.Up)(W.root);for(var C=0;C<W.children.length;C++)k.appendChild(W.children[C])},oYC=function(W,k,C){var n={};
n=Object.assign({},ieS(W),(n[W.as]=k,n[W.indexAs]=C,n[W.itemsIndexAs]=C,n));if(_.m("dom_repeat_use_ambient_signals")||_.m("creator_dom_repeat_use_ambient_signals")){k=new wh(_.kw(k,void 0,"g83Pb"));var N=_.b(_.kw(C,void 0,"tQRdod"));n=N.next().value;N=N.next().value;var B=_.b(PSz());var A=B.next().value,w=B.next().value;B={};var x={parentScope:W.parentScope,signals:(B[W.as]={type:"mutable",signal:k},B[W.indexAs]={type:"signal",getter:n},B[W.itemsIndexAs]={type:"signal",getter:n},B)};B=be3(W.templateInfo,
W.templateInfo.nodeInfoList,W.parentSignalProxy,{eventListenerHost:W.eventListenerHost,getModel:function(){return gYw(W.parentSignalProxy.owner,x)},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:wgC,enabledSignal:function(){return(W.stampingEnabled===void 0||W.stampingEnabled())&&A()},
scope:x}).root;k={type:"ambientSignal",root:B,children:[],itemSignal:k,getIndex:n,setIndex:N,getEnabled:A,setDisabled:w}}else{var E=new lk(n,function(a){if(a!==W.as&&a!==W.indexAs){if(a===W.itemsIndexAs)return Xr(E,W.indexAs);var X=Xr(W.parentSignalProxy,a).getChangeRecordSignal([]);a=_.kw(void 0,void 0,"UobVm");var d=new wh(a);E.effect(function(){var V=X();d.notifyPath(tv(V.path),{value:V.value})});
return d}});
W.parentSignalProxy.childSignalProxies.push(E);B=be3(W.templateInfo,W.templateInfo.nodeInfoList,E,{eventListenerHost:W.eventListenerHost,getModel:function(){var a={};return Object.assign({},ieS(W),(a[W.as]=E.model[W.as],a[W.indexAs]=E.model[W.indexAs],a[W.itemsIndexAs]=E.model[W.indexAs],a))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:wgC,enabledSignal:W.stampingEnabled}).root;k={type:"legacy",root:B,children:[],signalProxy:E}}n=_.b(B.childNodes);for(N=n.next();!N.done;N=n.next())k.children.push(N.value);n=(n=W.instances[C+1])?n.children[0]:W;(0,_.Up)((0,_.Up)(W).parentNode).insertBefore(k.root,n);W.instances[C]=k},ieS=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var k={},C;
for(C in W)W.hasOwnProperty(C)&&(k[C]=W[C]);return k}};
EQ.prototype.itemForElement=function(W){var k=this,C=this.instances.find(function(n){return n.children.includes(W)});
if(C)return zm(this.parentSignalProxy.owner,function(){return C.type==="legacy"?C.signalProxy.getWithPath([k.as]):C.itemSignal.getWithPath([])})};
EQ.prototype.indexForElement=function(W){var k=this.instances.findIndex(function(C){return C.children.includes(W)});
return k>=0?k:void 0};
_.oq.Object.defineProperties(EQ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return zm(this.parentSignalProxy.owner,function(){return GgC(W).getWithPath([])})},
set:function(W){yzz(this,W)}},
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}}});
_.oq.Object.defineProperties(EQ,{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",EQ);var TQC,q5Z;_.ak=new _.Tc("STATE_STORE_TOKEN");TQC=new _.Tc("SELECT_TOKEN");q5Z=new _.Tc("DISPATCH_TOKEN");var ntz={getSelectFn:function(){var W;return(W=_.f().resolve(_.qI(TQC)))!=null?W:Kcm},
getDispatchFn:function(){var W;return(W=_.f().resolve(_.qI(q5Z)))!=null?W:_.SY().dispatch.bind(_.SY())},
getAppStore:function(){return _.f().resolve(_.ak)}},hK3,CZm=!1;var B$w=void 0;var uL2=function(){};
uL2.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var k,C;return(C=(k=this.hostElement)==null?void 0:k.hasAttribute("disable-upgrade"))!=null?C:!1}throw Error("Rg`"+W);};
uL2.prototype.attributeChangedCallbackWrapper=function(W,k,C){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&C===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var n;((n=this.hostElement)!=null?n:this).isConnected&&this.connectedCallback()}else k===C||this.__isReflecting||this.attributeChangedCallback(W,k,C)};
uL2.prototype.getExtraMethodsToForward=function(){for(var W=this,k=[],C=_.b(UhY),n=C.next(),N={};!n.done;N={tagName$jscomp$52:void 0,name$jscomp$533:void 0},n=C.next())N.name$jscomp$533=n.value,n=void 0,N.name$jscomp$533==="_setPendingProperty"?(N.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),n=function(B){return function(A,w,x){Yr(B.tagName$jscomp$52,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(A,w,x)}}(N)):n=function(B){return function(){return W[B.name$jscomp$533].apply(W,
_.J8(_.v6.apply(0,arguments)))}}(N),k.push([N.name$jscomp$533,
n]);return k};
for(var xom=zKz(mhA((0,_.w4)(uL2))),ak3=["disabled","disable-upgrade"],OeS=(0,_.w4)(function(){}),LcA=new Set(Object.getOwnPropertyNames(OeS.prototype)),zop=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.J8(LcA))),fk2=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),UhY=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),ji8=new Set([].concat(_.J8(fk2),_.J8(UhY),_.J8(LcA))),He8=_.b(ji8),rzA=He8.next();!rzA.done;rzA=He8.next())bGJ.add(rzA.value);var moJ={created:function(){Qiz(this);this.initializeInjection()}};var phI=!1,RK=window.ShadyDOM,Rom=["appendChild","insertBefore","removeChild","replaceChild"],ZKw=[Node];RK&&ZKw.push(RK.Wrapper);var uJ3,UoX,j33={};var TM=new Set,oK="",HKK="";var i0,qs=new Set;var nV3=new Set("context didCallReady is info params signalProxy".split(" ")),YUP="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),BtX="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var gY8=NL({entities:hW4}),PS2=new $S(gY8);var Kcs=function(){return _.Wp.apply(this,arguments)||this};
_.D(Kcs,_.Wp);_.oq.Object.defineProperties(Kcs.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return PS2}}});
var hKx=Kcs;hKx=_.U([_.kr()],hKx);_.Xe=[Aw.prototype,hKx.prototype];_.fl={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,k={};setTimeout(function(){var C;return _.Pe((C=W.hostElement)!=null?C:W,"yt-live-chat-add-tooltip-target",k)},0);
this.handler_=k.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.rH=new _.Tc("ICON_MANAGER_TOKEN");var Wj8=[48,20,18,16,15,13,12],Qdm=new Map,VgX=new Set,mHX=new Set,DHI=new Set,dHP=new Set,zZP=new Set,cP4=new Promise(function(W){var k=!1,C=!1,n=!1,N=[],B=function(A){if("detail"in A)if(A=A.detail,A.name==="yt-icons")JPc(A),k=!0;else if(A.name==="yt-sys-icons")JPc(A),C=!0;else{var w;((w=A.name)==null?0:w.includes("yt-sys-icons"))&&A.size!==24&&(JPc(A,!0),N.push(A.size),N.length===Wj8.length&&(n=!0))}k&&C&&n&&(window.removeEventListener("iron-iconset-added",B),W())};
window.addEventListener("iron-iconset-added",B)}),SUJ=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"]]);_.dh={};_.dh.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.y4,computeHref_:function(W,k){k=k===void 0?!1:k;if(!W||W.commandExecutorCommand)return null;var C=yyw(W,k);return k||C!==null?C?_.m("enable_polymer_resin")?_.QG(C).toString():C:null:(_.zJ(new _.AM("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?Ii4(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.Hp(W.iconType):""},
resolveCommand:function(W,k,C){k=k===void 0?{}:k;return _.Pp(W,this.hostElement,k,C===void 0?!1:C)}};var CZs,mu;_.kYY={};CZs=null;
mu={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_=$CK(this.viewroot));_.zM(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.m("kevlar_vimio_use_shared_monitor"))GhX(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 k=[];this.visibilityOptionVisible_&&k.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&k.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&k.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=k}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){pMw(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 W=_.vD(this.parentNode,function(C){var n,N=(n=C.polymerController)!=null?n:C;return!!N.getVisibilityObserverForChild&&N.getVisibilityObserverForChild()},!0);
if(W){var k;this.localVisibilityObserver_=((k=W.polymerController)!=null?k:W).getVisibilityObserverForChild()}else CZs||(CZs=$CK()),this.localVisibilityObserver_=CZs;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.m("kevlar_use_vimio_behavior")||(mu={});mu&&!_.m("kevlar_use_vimio_behavior")&&(delete mu.attached,delete mu.detached);_.kYY.YtVisibilityObserverBehavior=[mu];var nt2={};nt2.YtVisualElementBehavior=[_.kYY.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.m("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.m("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),k=this.getVisibilityLogger();k&&k.reportShown(this,void 0,W)}},
onHidden:function(){if(_.m("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.m("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),k=this.getVisibilityLogger();k&&k.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.m("kevlar_use_vimio_behavior")?_.hv():null},
shouldSkipLogging:function(){if(_.DE("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var k,C=(k=W.polymerController)!=null?k:W;if(!C.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var n;k=(n=C.data)==null?void 0:n.trackingParams;var N,B;k=((N=C.data)==null?0:N.loggingDirectives)?(B=C.data)==null?void 0:B.loggingDirectives.trackingParams:k;return W&&k&&W===
k}}];var RZm=new Map,Bj;var u44=function(W){this.layer=W},mk=function(W){return W.layer!==void 0?W.layer:W.parent?mk(W.parent):W.layer=0};var UHc;_.K={};UHc=0;_.K.YtRendererBehavior=[_.dh.YtComponentBehavior,nt2.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_:_.m("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,k;(k=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||k.removeEventListener("scroll",_.LO(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();$HI(this.hostElement);NpY(_.gF(),this.hostElement);iW.delete(this.hostElement)},
registerRenderer:function(W){var k;((k=W.polymerController)!=null?k:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,k=this.getParentRenderer();if(k){var C,n,N;(n=(C=(N=k.polymerController)!=null?N:k).registerRenderer)==null||n.call(C,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var B,A;(A=(B=this.monitorScrollElement)!=null?B:this.hostElement)==null||A.addEventListener("scroll",_.LO(this,this.onScroll))}_.aM.addJob(function(){oVz(W.hostElement)},8);
C=new u44(this.screenLayer||void 0);(k=iW.get(k))&&k.layerNode&&(C.parent=k.layerNode);k={};QvK(this.hostElement,(k.isRenderer=!0,k.layerNode=C,k[UdJ]=this.data,k))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,k,C;W&&((k=iW.get(W))==null||!k.isRenderer)&&!((C=W.polymerController)!=null?C:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.m("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.cv("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.m("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(C){_.dI(C)}if(W){var k=PWX(W,1);k!==void 0&&(this.hostElement.dataset.veIndex=String(k));W=PWX(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.m("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Yf(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Wj(_.kf(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.BpA(_.gF(),W,this.hostElement)}else NpY(_.gF(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.m("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Oh3(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=iW.get(W))&&W.layerNode)return mk(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.J8(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var k,C;(W==null?0:(k=W.commandMetadata)==null?0:(C=k.webCommandMetadata)==null?0:C.sendPost)?_.kQ(this.hostElement,[W,{impression:!0}]):_.CB(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var k=_.VM(this.getScreenLayer());if(k){var C,n=(C=W.polymerController)!=null?C:W;W=n.visualElement;n=n.trackingParams||n.clickTrackingParams;!W&&n&&(W=_.Yf(n));W&&_.Zr(k,W)}}}];var N$A={},YcZ=function(){return _.Wp.apply(this,arguments)||this};
_.D(YcZ,_.Wp);YcZ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var zA=YcZ;zA.prototype.onPdgItemBehaviorClick=zA.prototype.onPdgItemBehaviorClick;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zA.prototype,"data",void 0);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],zA.prototype,"onPdgItemBehaviorClick",null);zA=_.U([_.kr()],zA);N$A.YtPdgLiveChatItemBehavior=[zA.prototype,_.K.YtRendererBehavior];var B$b;var bK8;_.D1={};_.D1.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Vm=function(){var W=TX.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.D(Vm,TX);Vm.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||rPm(this),_.JzJ(this,"doRender"),this.doRender())};
Vm.prototype.debounceRender=function(){this.templatingFn&&_.Dy(this,"doRender",this.doRender)};
Vm.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.dI(Error("ah"))};
Vm.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var A6Y=Vm;A6Y=_.U([t5X()],A6Y);var FjY=A6Y;var wh8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Jw={},hZ3=(Jw[1]={filterString:null,isUnwrappable:null,unwrap:null},Jw[2]={filterString:function(W,k,C){return OJ(C)},
isUnwrappable:function(W){return W instanceof yG},
unwrap:function(W){return Zl(W)}},Jw[3]={filterString:function(W,k,C){return wh8.test(C)?C:Ma.toString()},
isUnwrappable:function(W){return Dl(W)},
unwrap:function(W){return _.VG(W)}},Jw[4]={filterString:function(){return Ma.toString()},
isUnwrappable:function(W){return W instanceof l5},
unwrap:function(W){return _.Ez(W).toString()}},Jw[5]={filterString:function(W,k,C){return C},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},Jw[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.u5},
unwrap:function(W){return HL2(W)}},Jw[8]={filterString:function(W,k,C){C=String(C).toLowerCase();
return B0P(W,k,C)?C:"zClosurez"},
isUnwrappable:null,unwrap:null},Jw[10]={filterString:null,isUnwrappable:null,unwrap:null},Jw);iT[V7["default"]]=kSP;var CQJ=[];var mxP=NWm("A"),zJ4=NWm("BUTTON"),bV=NWm("DIV"),Dxm=NWm("LABEL");(function(){var W=$w;$w=function(k){W==null||W(k);FZ(function(){for(var C=0;C<k.length;C++)nuX(k[C])})}})();var xos=function(){var W=_.Wp.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.D(xos,_.Wp);_.Y=xos.prototype;_.Y.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.dI(Error("$g")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,KNI(this))};
_.Y.attached=function(){};
_.Y.detached=function(){nuX(this.hostElement)};
_.Y.renderIdom=function(){throw Error("ch");};
_.Y.doIdomRender=function(){var W=this;HXz(this.hostElement,function(){W.renderIdom()})};
var lk2=xos;lk2=_.U([_.kr()],lk2);var t$z=[FjY.prototype,lk2.prototype];var EtY,akx=function(){return EtY!==void 0?EtY:EtY=document.createElement("template")};
document.head.appendChild(akx().content);var Xhs;var fkA,doz=function(){return fkA!==void 0?fkA:fkA=document.createElement("template")};
document.head.appendChild(doz().content);var moI;var zo8=document.head,Do2=zo8.appendChild,V$Y;if(moI===void 0){var J6x=document.createElement("template");_.J(J6x,"\x3c!--css-build:shady--\x3e");J6x.content.insertBefore(doz().content.cloneNode(!0),J6x.content.firstChild);moI=J6x}V$Y=moI;Do2.call(zo8,V$Y.content);var c68,Ik2=function(){return c68!==void 0?c68:c68=document.createElement("template")};
document.head.appendChild(Ik2().content);var ScA;var M$8=document.head,Q3Z=M$8.appendChild,phA;if(ScA===void 0){var vtI=document.createElement("template");_.J(vtI,"\x3c!--css-build:shady--\x3e");vtI.content.insertBefore(Ik2().content.cloneNode(!0),vtI.content.firstChild);ScA=vtI}phA=ScA;Q3Z.call(M$8,phA.content);var eoZ=document.head,s3A=eoZ.appendChild,GYZ;if(Xhs===void 0){var y68=document.createElement("template");_.J(y68,"\x3c!--css-build:shady--\x3e");y68.content.insertBefore(akx().content.cloneNode(!0),y68.content.firstChild);Xhs=y68}GYZ=Xhs;s3A.call(eoZ,GYZ.content);var $oA,ZK8=function(){return $oA!==void 0?$oA:$oA=document.createElement("template")};
document.head.appendChild(ZK8().content);var Ros;_.cj=new _.Tc("DARK_THEME_TOKEN");var PQ3=new _.r("accessibilityProperties");var guJ=new _.r("layoutProperties");var Ky3=new _.r("imageType");var otA={};if("ytAttributedStringLinkHoverColor"in otA)throw Error("fh`ytAttributedStringLinkHoverColor");(function(W,k){otA[W]="value"in k&&"unit"in k?Fym(W,k):function(C){try{return k(C)}catch(n){throw Error("dh`"+W+"`"+n.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var iK8=function(W){var k=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(C){var n=new CustomEvent("LONG_PRESS"),N;(N=C.changedTouches[0].target)==null||N.dispatchEvent(n)};
this.ontouchstart=function(C){k.longPressTimeout=_.ty(_.aM,function(){k.onlongpress(C);k.longPressOccurred=!0},k.holdTime)};
this.ontouchmove=function(){_.aM.cancelJob(k.longPressTimeout);k.longPressTimeout=NaN;k.longPressOccurred=!1;k.moveOccurred=!0};
this.ontouchend=function(C){if(k.longPressTimeout&&!k.longPressOccurred&&!k.moveOccurred){var n;(n=C.changedTouches[0].target)==null||n.dispatchEvent(new Event("click"))}_.aM.cancelJob(k.longPressTimeout);k.longPressTimeout=NaN;k.longPressOccurred=!1;k.moveOccurred=!1}};var e5J=function(W,k){iK8.call(this,k);var C=this;this.callback=W;this.onlongpress=function(n){var N;(N=C.callback)==null||N.call(C,n)}};
_.D(e5J,iK8);var sPz=function(W,k){var C=Object.assign({},k);W=_.b(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var n=W.next(),N={};!n.done;N={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},n=W.next()){var B=_.b(n.value);n=B.next().value;B=B.next().value;N.eventName$jscomp$88=n;N.eventHandler$jscomp$3=B;k[N.eventName$jscomp$88]=function(A){return function(w){var x;(x=C[A.eventName$jscomp$88])==null||x.call(C,w);(0,A.eventHandler$jscomp$3)(w)}}(N)}};_.uI=new _.Tc("COMMAND_HANDLER_TOKEN");var xUP=new _.r("parallelCommand");var EuI=new _.r("performOnceCommand");var tPp=new _.r("serialCommand");var a93=void 0;var T$z=function(){this.data=[]};
T$z.prototype.push=function(W){this.data.push(W)};var r7={};_.kw(r7,void 0,"sgPmTd");_.kw(null,void 0,"jypsq");var Q0m=new T$z;var cGc=[dSA,mSS,zCA,V8s,DSS,fZz,JSx,cS2];var HjK=new _.r("bracketTextDecorator");var J7=new _.r("highlightTextDecorator");_.Sc=new _.Tc("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var uW3=function(){},qc8;
(qc8=window.requestIdleCallback)==null||qc8.bind(window);var OjK={calledOnce:!1,state:"visible"},UU4={calledOnce:!1,state:"hidden"};var Omz=new _.Tc("ICON_RENDERER_TOKEN"),uJx=new _.Tc("ICON_WIZ_COMPONENT_TOKEN");_.ka=_.GM(function(W){var k=W.icon;var C=W.active;var n=W.className;var N=W.style;var B=W.dataSelected;var A=W.dataDisabled;var w=W.role;var x=W.animateIcon;var E=W.themeOverride;var a=W.ariaHidden;var X=W.ariaExpanded;var d=W.ariaLabel;var V=W.id;var c=W.size;var M=W.iconFilter;return _.t(_.NI,{cond:k,then:function(){var p=_.f().resolve(uJx);return _.t(p,{icon:k,dataSelected:B,dataDisabled:A,animateIcon:x,themeOverride:E,ariaExpanded:X,id:V,active:C,size:c,role:w,className:n,ariaHidden:a,ariaLabel:d,
style:function(){return N!=null&&N()||c==null||!c()?N==null?void 0:N():"width: "+(c==null?void 0:c())+"px;height: "+((c==null?void 0:c())+"px;")},
iconFilter:M})}})},"b");
_.ka.idomCompat=!0;var EJc=window.devicePixelRatio||1;var dpP=new Map([["yt_outline_bag_black_24","bag"]]);var cR=function(W){var k=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){k.requestScan()});
window.addEventListener("touchend",function(){k.requestScan()});
window.addEventListener("updateui",function(){k.requestScan()});
var C=new _.Ox((0,_.fN)(this.requestScan,this),100);window.addEventListener("scroll",function(){C.fire()},!0);
window.addEventListener("resize",(0,_.fN)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){k.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.fN)(this.requestScan,this))};
cR.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
cR.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(k){return k!==W})};
cR.prototype.requestScan=function(){var W=this;this.scanRequested||(FZ(function(){UoS(W)}),this.scanRequested=!0)};
var UoS=function(W){var k=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(C){var n=C.getBoundingClientRect();(n=k>n.top&&!!n.height)&&W.whenInViewportWithMargin(C);return!n&&C.parentNode});
W.scanRequested=!1};
cR.prototype.disconnect=function(){this.observationTargets=[]};var OKA,j3x;OKA=_.b(_.kw(Vlp(),void 0,"O3X2wd"));_.Lj8=OKA.next().value;j3x=OKA.next().value;window.addEventListener("resize",function(){j3x(Vlp())});var HKS={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},r6A=void 0,gtY=window.innerWidth,PZs=window.innerHeight;window.addEventListener("resize",function(){r6A=void 0});var KjS;if("IntersectionObserver"in window)KjS=IKz();else{if(r6A===void 0){var hoz;hoz="matchMedia"in window?window.matchMedia(HKS.landscape+","+HKS.portrait).matches:void 0;r6A=hoz!==void 0?hoz:gtY>=930&&PZs>=550||gtY>=550&&PZs>=930}KjS=r6A?{observe:function(W){FZ(function(){var k;(k=W.onViewportEntered)==null||k.call(W)})},
unobserve:function(){}}:new cR(function(W){FZ(function(){var k;
(k=W.onViewportEntered)==null||k.call(W)})})}var JI4=KjS;var WN8=_.GM(function(W){var k=_.yE(),C=!1;_.XM(function(){var n,N=(n=W.data)==null?void 0:n.call(W),B,A=(B=W.getSrc)==null?void 0:B.call(W).cb,w;n=(w=W.config)==null?void 0:w.call(W);if(w=k.value){Mlm(w,n);var x;S02(w,N||null,function(E,a){if(!C)return A?A(E,a):E},n,(x=W.lazy)==null?void 0:x.call(W))}});
_.fy(function(){C=!0});
return _.t("img",{el:k})},"c");
WN8.idomCompat=!0;_.pi=_.GM(function(W){var k=function(){var C,n=W.data(),N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp,vw,lw,G4,nA,Xs,aI;var LA={contentMode:(N=W.contentMode)==null?void 0:N.call(W),loadedClass:(B=W.loadedClass)==null?void 0:B.call(W),isPreloaded:(A=W.isPreloaded)==null?void 0:A.call(W),notifyOnLoaded:(w=W.notifyOnLoaded)==null?void 0:w.call(W),notifyOnUnloaded:(x=W.notifyOnUnloaded)==null?void 0:x.call(W),preferredThumbnail:(E=W.preferredThumbnail)==null?void 0:E.call(W),preserveHeight:(a=W.preserveHeight)==
null?void 0:a.call(W),preserveWidth:(X=W.preserveWidth)==null?void 0:X.call(W),objectPosition:(d=W.objectPosition)==null?void 0:d.call(W),targetWidth:(V=W.targetWidth)==null?void 0:V.call(W),targetHeight:(c=W.targetHeight)==null?void 0:c.call(W),shouldShowPlaceholder:(M=W.shouldShowPlaceholder)==null?void 0:M.call(W),useWidth:(p=W.useWidth)==null?void 0:p.call(W),alt:(e=W.alt)==null?void 0:e.call(W),className:(u=W.className)==null?void 0:u.call(W),onerror:W.onerror,onload:W.onload,style$:((h=W.style$)==
null?void 0:h.call(W))||((L=W.style)==null?void 0:L.call(W)),color:(Bw=W.color)==null?void 0:Bw.call(W),width:(P=W.width)==null?void 0:P.call(W),height:(xz=W.height)==null?void 0:xz.call(W),"aria-hidden$":(Xs=(Sp=W["aria-hidden$"])==null?void 0:Sp.call(W))!=null?Xs:(vw=W.ariaHidden)==null?void 0:vw.call(W),draggable:(lw=W.draggable)==null?void 0:lw.call(W),"data-disabled$":(aI=(G4=W["data-disabled$"])==null?void 0:G4.call(W))!=null?aI:(nA=W.dataDisabled)==null?void 0:nA.call(W)};return vJJ(n,LA,(C=
W.hideOn404)==null?void 0:C.call(W))};
return _.t(_.Fc,null,_.t(_.Aj,{when:function(){var C;return((C=k())==null?void 0:C.type)==="image"}},function(){return _.t(WN8,{data:function(){return k().image},
getSrc:{cb:function(C,n){var N=k().image.sources,B=k().config.isPreloaded,A=k().config.useWidth,w=k().config.targetWidth,x=k().config.targetHeight,E=k().config.preferredThumbnail;return _.aKp(n,N,B,A,w,x,E)||""}},
config:function(){var C=k().config,n;for(n in C)C[n]===void 0&&delete C[n];return C},
lazy:W.renderLazy})}),_.t(_.Aj,{when:function(){var C;
return((C=k())==null?void 0:C.type)==="icon"}},function(){return _.t(_.ka,{icon:function(){return k().iconName},
role:function(){return k().config.role},
className:function(){return k().config.className},
style:function(){return k().config.style$+";width: "+(k().config.width+"px;height: ")+(k().config.height+"px;color: ")+(k().config.color+";")},
ariaLabel:function(){return k().config["aria-label$"]},
ariaHidden:function(){return k().config["aria-hidden$"]},
dataDisabled:function(){return k().config["data-disabled$"]}})}))},"d");
_.pi.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var khs=function(W){return function(k){return _.t(x22,null,function(){var C=k.data(),n=_.m$(k.config);return _.t(R9,null,function(){return void W(C,n)})})}}(ZJX),yI3=_.GM(function(W){var k=function(n){var N,B=_.eQP(function(d){N=dw(function(){for(var V=_.b(a()),c=V.next();!c.done;c=V.next()){c=RQp(c.value);
c=typeof c==="string"?document.createTextNode(c):c;if(!(c instanceof Node)){V=new _.AM("Part is not a node",c,typeof c);_.dI(V);break}d.appendChild(c)}})}),A=sBw(function(){return Wxm(n())},{isEqual:GNm}),w=_.pq(W.config),x=function(){var d,V=A();
return!((d=w())==null||!d.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0)},E=sBw(w,{isEqual:iJJ}),a=function(){var d=h5P(A(),E());
CG4(d,E());return A().content?AIc(A().content,d).parts:[]},X=!0;
_.XM(function(){A();E();if(X)X=!1;else{var d=a();Promise.resolve().then(function(){var V=B.value;if(V){V.innerText="";var c;(c=N)==null||c();N=_.xn(V,function(){return _.t(oJp,{parts:d})})}})}});
return _.t("span",{el:B,class:function(){return A()&&R5P(A(),w())},
dir:function(){var d;return((d=w())==null?0:d.userInput)?"auto":void 0},
"aria-label":function(){var d;return x()?(d=w())==null?void 0:d.ariaLabel:void 0},
role:function(){return x()?"text":void 0}})},C;
return((C=W.config)==null?0:C.renderedFromFormattedString)?k(W.text):_.t(_.NI,{cond:W.text,then:k})},"e");
yI3.idomCompat=!0;_.Ya=_.GM(function(W){var k=_.pq(W.text),C=TC3(W);W.renderedFromFormattedString!==void 0&&(C.renderedFromFormattedString=!0);return _.m("attr_string_reactive")?_.t(yI3,{text:k,config:C}):_.t(_.NI,{cond:function(){var n;return k()&&((n=Wxm(k()))==null?void 0:n.content)},
then:function(){return _.t(khs,{data:W.text,config:C})},
debugInstance:"Apcuac"})},"f");
_.Ya.idomCompat=!0;var uG4=function(W,k,C){k=k===void 0?"unknown":k;C=C===void 0?{}:C;_.AM.call(this,W+" ("+k+")",Object.assign({},{name:"YtWcwError",tagName:k},C));Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(uG4,_.AM);_.gJX=new WeakMap;_.rIX=!1;var HJw,PGw,OJz,jBK;_.Ik=Symbol("hh");_.si=Symbol("ih");HJw=Symbol("jh");PGw=new Set(Object.getOwnPropertyNames(Element.prototype));OJz=!_.m("web_wcw_disable_component_function_named_child_props");jBK=Symbol("kh");var CYS=_.GM(function(W){return _.t("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.t(_.Ya,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns}))},"g");
_.m("web_wiz_attributed_string")&&_.Gj(CYS,"yt-attributed-string",{props:{ariaHidden:_.Ik,ariaLabel:_.Ik,className:_.Ik,ellipsisTruncate:_.Ik,isOverlay:_.Ik,linkInheritColor:_.Ik,noEndpoints:_.Ik,noStyleRuns:_.Ik,noLinkColor:_.Ik,noPreWrap:_.Ik,noWrap:_.Ik,skipOnClick:_.Ik,userInput:_.Ik,headerRuns:_.Ik,id:_.Ik,data:_.Ik,hidden:_.Ik,forceDefaultStyle:_.Ik,text:_.si,stopPropagation:_.si,disableUpgrade:_.si,disable:_.si,slot:_.si}});var nVx=function(){return _.R.apply(this,arguments)||this};
_.D(nVx,_.R);nVx.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},ZJX(this.data,this.config))};
var SV=nVx;_.U([_.v(t$z),_.O("design:type",Object)],SV.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],SV.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],SV.prototype,"ariaLabel",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"disable",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"ellipsisTruncate",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"isOverlay",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"linkInheritColor",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"noPreWrap",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"noWrap",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"userInput",void 0);_.U([_.Z(),_.O("design:type",Boolean)],SV.prototype,"noEndpoints",void 0);_.U([_.Z(),_.O("design:type",Array)],SV.prototype,"headerRuns",void 0);
SV=_.U([_.l0({is:"yt-attributed-string",disableElementRegistration:!0})],SV);
_.m("web_wiz_attributed_string")||_.q(SV,"yt-attributed-string",function(){if(Ros===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(ZK8().content.cloneNode(!0),W.content.firstChild);Ros=W}W=Ros;return W},{mode:2});var NtC,YUY,Nez;NtC=function(){this.firstThumbnailLoaded=!1};
_.BtS=function(){YUY||(YUY=new NtC);return YUY};
Nez=function(W){var k=_.BtS();k.firstThumbnailLoaded||(k.firstThumbnailLoaded=!0,_.cN("ftl",W))};
NtC.prototype.reset=function(){this.firstThumbnailLoaded=!1};var hQw=0,nmm=new WeakMap,kLJ=0,Zz=new Set;var bhZ,AP2=function(){return bhZ!==void 0?bhZ:bhZ=document.createElement("template")};
document.head.appendChild(AP2().content);var FNb;var ALJ,wsK,Mi;_.i6=_.NX.caches;Mi=function(){};
Mi.prototype.open=function(W){return _.i6.open(wMs(W))};
Mi.prototype.has=function(W){return _.i6.has(wMs(W))};
Mi.prototype.delete=function(W){return _.i6.delete(wMs(W))};
Mi.prototype.match=function(W,k){var C=this,n,N,B,A,w,x;return _.F(function(E){switch(E.nextAddress){case 1:return _.l(E,C.keys(),2);case 2:n=E.yieldResult,N=_.b(n),B=N.next();case 3:if(B.done){E.jumpTo(5);break}A=B.value;return _.l(E,C.open(A),6);case 6:return w=E.yieldResult,_.l(E,w.match(W,k),7);case 7:if(x=E.yieldResult)return E.return(x);B=N.next();E.jumpTo(3);break;case 5:return E.return()}})};
var x1p=function(){};
_.D(x1p,Mi);var wMs=function(W){if(W.includes(":"))throw Error("nh`"+W);return W+":"+_.B4("CacheStorage get")};
x1p.prototype.keys=function(){var W,k,C,n,N,B,A,w,x;return _.F(function(E){if(E.nextAddress==1)return W=[],k=_.B4("CacheStorage keys"),_.l(E,_.i6.keys(),2);C=E.yieldResult;n=_.b(C);for(N=n.next();!N.done;N=n.next())B=N.value,A=_.bdP(B),w=A.originalName,x=A.datasyncId,x===k&&W.push(w);return E.return(W)})};var xHC=function(){var W=_.R.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.D(xHC,_.R);_.Y=xHC.prototype;_.Y.renderIdom=function(){Bem(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&QB3(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.Y.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.Y.logThumbnailFailureVe=function(){var W=_.F8(197497);_.Hn(_.kf(),W);var k=_.VM();k&&W&&k&&_.yb(k,[W])};
_.Y.loadImageFromCacheIfExists=function(W){var k=this,C=W.target;(C==null?0:C.src)&&tGI(C.src).then(function(n){k.objectURL=_.pL(n).toString();k.setSrc(C,k.objectURL)}).catch(function(){})};
_.Y.onError=function(W){var k=this;if(_.m("web_use_cache_for_image_fallback")){var C=W.target;C&&tGI(C.src).then(function(n){k.objectURL=_.pL(n).toString();k.setSrc(C,k.objectURL)}).catch(function(){_.m("kevlar_woffle_log_thumbnail_failure_ve")&&k.logThumbnailFailureVe();
_.m("kevlar_woffle_fallback_image")&&k.setSrc(C,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.Y.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.Y.setConfig=function(){var W=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(k){W.loadImageFromCacheIfExists(k);W.revokeObjectURL();YfK(W.hostElement)},
onerror:function(k){W.onError(k)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.m("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.Y.setSrc=function(W,k){k&&(W.src=k)};
var Qm=xHC;_.U([_.v(t$z),_.O("design:type",Object)],Qm.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Qm.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Qm.prototype,"alt",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qm.prototype,"ftlEligible",void 0);_.U([_.Z(),_.O("design:type",Number)],Qm.prototype,"height",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qm.prototype,"notifyOnLoaded",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],Qm.prototype,"notifyOnUnloaded",void 0);_.U([_.Z(),_.O("design:type",String)],Qm.prototype,"objectFit",void 0);_.U([_.Z(),_.O("design:type",String)],Qm.prototype,"objectPosition",void 0);_.U([_.Z(),_.O("design:type",String)],Qm.prototype,"preferredThumbnail",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qm.prototype,"preserveHeight",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qm.prototype,"preserveWidth",void 0);
_.U([_.Z({value:!0}),_.O("design:type",Boolean)],Qm.prototype,"useWidth",void 0);_.U([_.Z({value:function(){return!_.cv("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.O("design:type",Boolean)],Qm.prototype,"shouldRenderLazy",void 0);_.U([_.Z(),_.O("design:type",Number)],Qm.prototype,"width",void 0);Qm=_.U([_.l0({is:"yt-image",disableElementRegistration:!0})],Qm);
_.q(Qm,"yt-image",function(){if(FNb===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(AP2().content.cloneNode(!0),W.content.firstChild);
FNb=W}W=FNb;return W},{mode:2});var lVA=function(){return _.R.apply(this,arguments)||this};
_.D(lVA,_.R);lVA.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.fi(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
var pl=lVA;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],pl.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],pl.prototype,"ytVisibilityBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pl.prototype,"data",void 0);pl=_.U([_.l0({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],pl);
_.q(pl,"yt-bumper-user-edu-content-view-model",function(){if(bK8===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;B$b===void 0&&(B$b=document.createElement("template"));var n=B$b;C.call(k,n.content.cloneNode(!0),W.content.firstChild);bK8=W}W=bK8;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var tgs;var EVz,aVC=function(){if(EVz!==void 0)return EVz;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;tgs===void 0&&(tgs=document.createElement("template"));var n=tgs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return EVz=W};var XMS;_.vR={};XMS=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"]);_.vR.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.aM},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.Pe(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return XMS.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var m1p,fVC,mHZ,dHY;_.eV=function(W){var k=fVC.get(W);if(k&&(k=k.pop()))return dHY++,k;mHZ++;try{var C=document.createElement(W)}catch(n){throw new _.AM("ElementPool failed to create element",W,n.message);}return C};
m1p=function(W){var k=W.is;if(k){var C=fVC.get(k);C||(C=[],fVC.set(k,C));var n=_.DE("ELEMENT_POOL_CONFIG")||{};C.length>=(n[k]!==void 0?n[k]:_.DE("ELEMENT_POOL_DEFAULT_CAP",0))||C.push(W)}else _.zJ(new _.AM("Element pool should only handle custom elements:",W.nodeName))};
fVC=new Map;mHZ=0;dHY=0;var Tj=new WeakMap,d1z=new WeakMap;var DHA;_.sQ=function(W,k,C){C=C===void 0?_.D7():C;this.JSC$11499_defaultPriority=W;this.signal=k;this.scheduler=C;this.nextJobDescriptor=0;this.JSC$11499_parkedJobs=[];this.scheduledJobs=new Map};
_.GA=function(W,k){if(k){var C=_.Ir();W.signal&&!_.SD(C,W.signal)?(C.addListener(W.signal,function(){W.processSignal()}),W.JSC$11499_parkedJobs.push({job:k,
priority:void 0})):zZY(W,k)}};
DHA=function(W,k){if(k!==W.JSC$11499_defaultPriority){W.JSC$11499_defaultPriority=k;for(var C=_.b(W.scheduledJobs.values()),n=C.next();!n.done;n=C.next())n=n.value,W.scheduler.cancelJob(n.jobId),n.jobId=W.scheduler.addJob(n.jobWrapper,k)}};
_.sQ.prototype.flushJobs=function(){DHA(this,10);this.processSignal()};
_.sQ.prototype.cancel=function(){for(var W=_.b(this.scheduledJobs),k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;this.scheduler.cancelJob(C.jobId);this.scheduledJobs.delete(k)}this.JSC$11499_parkedJobs=[]};
_.sQ.prototype.processSignal=function(){for(var W=_.b(this.JSC$11499_parkedJobs),k=W.next();!k.done;k=W.next())k=k.value,zZY(this,k.job,k.priority);this.JSC$11499_parkedJobs=[]};
var zZY=function(W,k,C){C=C||W.JSC$11499_defaultPriority;if(C===10)RE(k);else{var n=W.nextJobDescriptor++,N=function(){k();W.scheduledJobs.delete(n)},B=W.scheduler.addJob(N,C);
W.scheduledJobs.set(n,{jobWrapper:N,jobId:B,priority:C})}};_.UK(JL2);var cLX={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};thc({beforeVisit:function(W){if(TM.has(W.type)){var k;(k=W.props).idomKey!=null||(k.idomKey=W.type)}else W.type.TAG_NAME&&(oK=W.type.TAG_NAME)},
afterRender:function(W,k){var C;oK=(C=k==null?void 0:k.type)!=null?C:""},
didPatch:function(){oK=""}});var VgS;_.ym={};VgS={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ym.YtRendererstamperBehavior=[_.vR.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 W in this.stampDom){var k=this.stampDom[W];k&&k.id&&this.addReactiveSchema({type:"observe",method:{methodName:a4P(k.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(k in this.stampDom){var C=this.stampDom[k];C&&C.id&&W.push(a4P(C.id)+"("+k+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var k=this.stampDom[W];k.id?(this[a4P(k.id)]=this.rendererStamperObserver_.bind(this,W,k.id),this.hasDataPath_[W]=!1):(k=new _.AM("Bad rendererstamper config",this.is+":"+W),_.dI(k))}},
rendererStamperObserver_:function(W,k,C){if(C.path==W){if(C.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=C.value!==void 0}this.rendererStamperApplyChangeRecord_(W,k,C)},
rendererStamperApplyChangeRecord_:function(W,k,C){var n=this.renderJobsMap_[k],N=null;W==C.path?(C=C.value,_.qX(C)||(C=C===void 0||C===null?[]:[C]),W=this.stampDom[W],W.mapping&&(N=this.stampDomArray_.bind(this,C,k,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),n&&n.cancel(),C=W.usePageScheduler?this.getTaskManager():void 0,n||W.initialRenderPriority==void 0)?W.renderPriority==void 0||n||(n=new _.sQ(W.renderPriority,W.waitForSignal,C),this.renderJobsMap_[k]=n):(n=new _.sQ(W.initialRenderPriority,
W.waitForSignal,C),this.renderJobsMap_[k]=n,N=function(B,A){B();DHA(A,10)}.bind(this,N,n)):N=W+".splices"==C.path?this.stampDomArraySplices_.bind(this,W,k,C.value):this.forwardRendererStamperChanges_.bind(this,W,k,C);
n?_.GA(n,N):N()},
forwardRendererStamperChanges_:function(W,k,C){var n=C.path.slice(W.length+1),N=this.getStampContainer_(k),B=n.indexOf("."),A=n.substring(0,B),w=!1,x=0,E=parseInt(A,0);if(A[0]=="#"){w=parseInt(A.substring(1),0);E=this.get(W);var a=this.get([W,A]);E[w]==a?x=w:x=E.indexOf(a);w=!0}else isNaN(E)||(x=E,w=!0);w&&(n=n.substring(A.length+1),B=n.indexOf("."));A=_.Ek(N).children[x];var X;if(N=(X=A==null?void 0:A.polymerController)!=null?X:A)n="data"+n.slice(B),typeof N.notifyPath!=="function"?_.zJ(new _.AM("notifyPath missing",
this.is+": "+W+", "+k)):C.value?N.notifyPath(n,C.value):N.notifyPath(n)},
stampDomArraySplices_:function(W,k,C){if(C&&C.indexSplices){var n=this.getStampContainer_(k);if(n){for(var N=_.Ek(n),B=f4z(this.stampDom[W].reuseComponents),A=C.indexSplices.length,w=0;w<A;w++){for(var x=C.indexSplices[w],E=N.children[x.index],a=x.removed.length;a>0;a--)E&&E.parentElement&&(_.Ek(E.parentElement).removeChild(E),B&&m1p(E),E=N.children[x.index]);a=this.stampDom[W].mapping;for(var X=x.index+x.addedCount,d=document.createDocumentFragment(),V=B,c=x.index;c<X;c++){var M=x.object[c],p=Emw(a,
M);if(p){var e=a[p];M=M[p];p=this.getComponentName_(e,M);var u=E?Tj.has(E):!1;V&&E&&E.is==p&&u?(p=E,this.telemetry_.reuse++,E=E.nextElementSibling):V&&E&&u?(p=this.createComponent_(e,M,B),u=_.Ek(E).nextElementSibling,N.insertBefore(p,u),D1I(this.is,N,E,B),E=u):(V=!1,p=this.createComponent_(e,M,B),d.appendChild(p));this.deferRenderStamperBinding_(p,e,M)}else e=new _.AM("Unimplemented type",W,k,n.tagName,Object.keys(M)[0]),_.dI(e)}N.insertBefore(d,E)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.Pe(this.hostElement,"yt-rendererstamper-finished",{container:n})}else W=new _.AM("Container object not found",k,this.hostElement?this.hostElement.is:""),_.dI(W)}},
stampDomArray_:function(W,k,C,n,N,B){var A=this.getStampContainer_(k);if(A)if(k=_.Ek(A),n=f4z(n),W){var w=0,x=0,E;if(B=B===void 0?_.cv("STAMPER_STABLE_LIST",!1):B||!1)for(E=k.firstElementChild;E&&!Tj.has(E)&&W.length>x;){B=W[x];var a=Emw(C,B);if(a){if(this.getComponentName_(C[a],B[a])!=E.is){var X=this.createComponent_(C[a],B[a],n),d=_.Ek(E).nextElementSibling;d?k.insertBefore(X,d):k.appendChild(X);D1I(this.is,k,E,n);E=X}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(E,C[a],B[a]);w++;
x++;E=_.Ek(E).nextElementSibling}else x++}VGm(this.is,k,w,n);w=E;if(W.length>x){B=document.createDocumentFragment();for(a=W.length;x<a;x++)if(X=W[x],d=Emw(C,X))E=this.createComponent_(C[d],X[d],n),this.deferRenderStamperBinding_(E,C[d],X[d]),B.appendChild(E);w&&_.Ek(w).parentNode&&E&&!Tj.has(E)?k.insertBefore(B,w):k.appendChild(B)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();N&&_.Pe(this.hostElement,"yt-rendererstamper-finished",{container:A})}else VGm(this.is,k,0,
n);else W=new _.AM("Container object not found",k,this.hostElement?this.hostElement.is:""),_.dI(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.S(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,k){return typeof W==="string"?W:W.matcher?W.matcher.call(this,k):W.component},
createComponent_:function(W,k,C){W=this.getComponentName_(W,k);try{var n=qs.has(W)||TM.has(W);if(C&&!n){var N=_.eV(W);try{_.Op(N)}catch(B){C="Failed to clear styles for "+W+".",B.message&&(C+=" Original error: "+B.message),_.zJ(new _.AM(C))}}else N=document.createElement(W)}catch(B){return N="YtRendererStamperBehavior failed to create "+W+".",B.message&&(N+=" Original description: "+B.message),B.message="YtRendererStamperBehavior failed to create element",_.Dx(B,N),VgS.hasOwnProperty(W)?_.zJ(B):_.dI(B),
document.createElement("SPAN")}this.telemetry_.create++;return N},
deferRenderStamperBinding_:function(W,k,C){this.deferredBindingTasks_.push({component:W,typeOrConfig:k,data:C})},
flushRenderStamperComponentBindings_:function(){for(var W=0,k=this.deferredBindingTasks_.length;W<k;W++){var C=this.deferredBindingTasks_[W];if(!C)break;var n=void 0,N=void 0,B=void 0,A=void 0,w=C.component,x=C.typeOrConfig;C=C.data;var E=(A=w.polymerController)!=null?A:w;A=w.loggingStatus;try{A&&(A.isRendererStamper=!0);if(typeof x!=="string"){for(B in x.attributes)x.attributes[B]===!0?w.setAttribute(B,""):x.attributes[B]===!1?w.removeAttribute(B):w.setAttribute(B,x.attributes[B]);for(N in x.params)E[N]=
x.params[N],w!==E&&Yr(w.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(n in x.properties){var a=x.properties[n];if(a){var X=XsX(a);E[n]=this.get(X);w!==E&&Yr(w.localName,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(n==="on-tap"||n==="on-click"){var d=this.get(X);w.addEventListener("click",d);d1z.set(w,{property:n,listener:{type:"element",eventName:"click",handler:d}})}}else{var V=new _.AM("Undefined property binding",n);_.dI(V)}}}if(x.classListBinding){var c=XsX(x.classListBinding),
M=c?this[c]:null;if(M)for(n=0;n<M.length;n++)_.qw(w,M[n],!0)}E.data=C}finally{A&&(A.isRendererStamper=!1)}if(n=Tj.get(w))w.hidden=!1,Tj.delete(w),_.aM.cancelJob(n)}this.deferredBindingTasks_.length=0}}];_.$D={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var k=_.vx.getInstance(),C=_.b(Object.keys(W)),n=C.next();!n.done;n=C.next()){var N=n.value;n=W[N];if(this&&this[n]){var B=k.actionRoutingMap.get(N);B||(B=new Map,k.actionRoutingMap.set(N,B));k.registerActionHandler(this,N,this[n].bind(this),B)}else N=Error("id"),N.params=n,_.I4(N)}},
unregisterActionMap:function(W){_.sK(_.vx.getInstance(),W,this)}}]};var Ui=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 u6;var Oi=new Map;var RFc=window.matchMedia("(forced-colors: active)").matches;var JPC;var cPz;var qfm=new _.Tc("LOTTIE_LOADER_TOKEN");_.UK(uX4);_.Gj(_.GM(function(W){return _.t("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.t(_.jc,{data:W.data,animationName:function(){var k;return((k=W.data().animationConfig)==null?void 0:k.name)||""},
animationRef:function(){return W.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.Ik,
id:_.Ik,hidden:_.Ik,className:_.Ik,ariaLabel:_.Ik}});var IVA=function(){var W=_.R.apply(this,arguments)||this;W.animationRef={};return W};
_.D(IVA,_.R);_.Y=IVA.prototype;
_.Y.handlePropertyChange=function(){var W=this.animatedIcon,k=this.active,C=this.isDarkTheme;if(W){var n=this.previousActive!==k;this.previousActive=k;this.animationRef.lottieEl?n&&this.toggleAnimation(k,W.totalFrames):k?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,C)}};
_.Y.computeLottiePlayerProps=function(W,k){var C=this.deepCloneLottiePlayerProps(W);k?(k=W.nameDarkTheme,W=W.pathDarkTheme):(k=W.name,W=W.path);C.animationConfig.name=k;(k=Oi.get(W))?C.animationConfig.animationData=k:C.animationConfig.path=W;return C};
_.Y.initializeAnimationAsToggled=function(W,k){W.animationConfig.initialSegment=[k-1,k]};
_.Y.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.Y.toggleAnimation=function(W,k){if(W){var C;(C=this.animationRef.lottieEl)==null||C.playSegments([0,k],!0)}else{var n;(n=this.animationRef.lottieEl)==null||n.playSegments([0,1],!0)}};
_.Y.deepCloneLottiePlayerProps=function(W){var k=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=k;return W};
var Z1=IVA;Z1.prototype.handlePropertyChange=Z1.prototype.handlePropertyChange;_.U([_.Z(),_.O("design:type",Object)],Z1.prototype,"animatedIcon",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Z1.prototype,"active",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Z1.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Z1.prototype,"animatedIconType",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Z1.prototype,"previousActive",void 0);
_.U([_.Z(),_.O("design:type",Object)],Z1.prototype,"lottiePlayerProps",void 0);_.U([_.Z(),_.O("design:type",Object)],Z1.prototype,"animationRef",void 0);_.U([_.Hl("animatedIcon","active","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z1.prototype,"handlePropertyChange",null);Z1=_.U([_.l0({is:"yt-animated-icon",disableElementRegistration:!0})],Z1);
_.q(Z1,"yt-animated-icon",function(){if(cPz===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;JPC===void 0&&(JPC=document.createElement("template"));var n=JPC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);cPz=W}W=cPz;return W},{mode:2});var SUI;var MgC;var LzX=_.GM(function(W){var k=_.$I(),C=Xc(function(){return{value:null}});
_.fy(function(){var x;(x=C.value)==null||x.cancel()});
var n=_.BH(function(){return W.data().iconName},void 0,"P40GCd"),N=_.BH(function(){return W.data().iconStyle},void 0,"XbHqFf"),B=_.BH(function(){return W.data().iconSize},void 0,"fD5ZW"),A=_.BH(function(){return W.data().iconSelected},void 0,"zHcN9c"),w=_.BH(function(){return W.data().iconSetName},void 0,"gobqAd");
_.XM(function(){var x={iconName:n(),iconStyle:N(),iconSize:B(),iconSelected:A(),iconSetName:w()},E,a=(E=W.options)==null?void 0:E.call(W);OdX(k,C,x,a)});
return _.t("span",{class:"yt-icon-shape",el:k})},"i");
LzX.idomCompat=!0;var jn3=["youtube_fill","youtube_outline"];var Qds=new _.av({type:"iconset",value:void 0}),pMb=function(){var W=_.R.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.kw(void 0,void 0,"RQ9kUb");W.renderingOptionsSignal=_.kw({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"qtx8Ef");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(pMb,_.R);_.Y=pMb.prototype;_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.Y.handlePropertyChange=function(){var W=this,k,C,n,N,B,A,w,x,E,a,X;return _.F(function(d){switch(d.nextAddress){case 1:if(k=!W.icon&&!W.iconName||!W.isAttached)return d.return();C=W;n=C.icon;N=C.size;B=C.defaultToFilled;A=C.active;w=C.targetContainer;W.toggleContainerClass(w);_.m("kevlar_use_wil_icons")&&n&&(x=fVc(n),x.length?_.m("kevlar_icon_type_fix_killswitch")?(E=x[1].toUpperCase(),W.iconType=UFs[E],W.iconType||(W.iconType=x[1])):W.iconType=x[1]:W.iconType=null);if(n){d.jumpTo(2);break}W.iconsetName=
"";W.iconName="";return _.l(d,W.renderIcon(w,n),3);case 3:return d.return();case 2:a=W.computeIcon(n);X=fVc(a);X.length&&(W.iconsetName=X[0],W.iconName=X[1]);if(!_.m("kevlar_use_wil_icons")){d.jumpTo(4);break}return _.l(d,W.getIconShapeData(),5);case 5:W.iconShapeData=d.yieldResult;case 4:if(W.shouldRenderIconShape(w)){d.jumpTo(6);break}return _.l(d,W.determineIconSet(a,A,B,N,w),6);case 6:return _.l(d,W.renderIcon(w,n),0)}})};
_.Y.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.Y.computeIcon=function(W){return!_.m("default_to_innertube_icon")||W.indexOf(":")>0?W:_.Hp(W)};
_.Y.determineIconSet=function(W,k,C,n){var N=this;return _.F(function(B){return B.nextAddress==1?_.m("kevlar_system_icons")||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.DE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.l(B,N.switchToYtSysIconset(W,k,C,n),3):B.jumpTo(2):B.nextAddress!=2?B.return():_.l(B,N.useYtSysIconsetForMissingIcons(W,k,C,n),0)})};
_.Y.switchToYtSysIconset=function(W,k,C,n){var N=this,B,A,w,x,E,a,X;return _.F(function(d){switch(d.nextAddress){case 1:if(!W||N.iconsetName!=="yt-icons"&&N.iconsetName!=="yt-sys-icons"){d.jumpTo(0);break}B=fVc(W);A=B[1];A=_.Mgc(A);_.m("enable_polymer_icons_replace_underscores_dash")&&A.includes("_filled")&&(A=A.replace(/_filled/g,"-filled"));return _.l(d,jY(A,!0),3);case 3:return w=d.yieldResult,_.l(d,jY(A,!1),4);case 4:if((x=d.yieldResult)||k&&w)N.iconsetName="yt-sys-icons";N.iconName=N.getIconName(A,
k,C,x,w);if(n===24){d.jumpTo(0);break}E="yt-sys-icons"+n+":"+N.iconName;return _.l(d,jY(E,!1,!0),6);case 6:return a=d.yieldResult,_.l(d,jY(E,!0,!0),7);case 7:X=d.yieldResult;N.iconName=N.getIconName(A,k,C,a,X);if(!k&&a||k&&X)N.iconsetName="yt-sys-icons"+n;_.ab(d)}})};
_.Y.getIconName=function(W,k,C,n,N){W.includes("-filled")&&(W=W.replace("-filled",""));return N&&(k||C)?W+"-filled":W};
_.Y.useYtSysIconsetForMissingIcons=function(W,k,C,n){var N=this,B,A;return _.F(function(w){if(w.nextAddress==1)return N.iconsetName!=="yt-icons"?w.jumpTo(0):_.l(w,jY(N.iconName,!1,!1,!0),3);if(w.nextAddress!=4)return B=w.yieldResult,_.l(w,jY(N.iconName,!1),4);A=w.yieldResult;if(B||!A)return w.jumpTo(0);N.iconsetName="yt-sys-icons";return _.l(w,N.switchToYtSysIconset(W,k,C,n),0)})};
_.Y.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.Y.getIconManager=function(){return _.F(function(W){try{return W.return(_.f().resolve(_.rH))}catch(k){return W.return(new Promise(function(C){_.Ir().parkOrScheduleJob(function(){C(_.f().resolve(_.rH))},2,"ci")}))}})};
_.Y.getIconShapeData=function(){var W=this,k,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1){if(!W.iconType)return w.return(void 0);k=W.iconType.toLowerCase();C=k.endsWith("_filled")||k.endsWith("-filled");return _.l(w,W.getIconManager(),2)}n=w.yieldResult;N=W.active||W.defaultToFilled||C?"youtube_fill":"youtube_outline";B={iconName:k,iconStyle:N,iconSize:W.size,iconSetName:W.iconsetName};A=!!n.resolveIcon(B);A||(B.iconSize=void 0,A=!!n.resolveIcon(B));!A&&C&&(B.iconName=k.substring(0,k.length-
7),B.iconSize=W.size,A=!!n.resolveIcon(B),A||(B.iconSize=void 0,A=!!n.resolveIcon(B)));A||(B.iconStyle=void 0,A=!!n.resolveIcon(B));A||_.zJ(new _.AM("Icon not supported",{iconName:B.iconName,iconStyle:B.iconStyle,iconSize:B.iconSize,iconType:k}));return w.return(A?B:void 0)})};
_.Y.shouldRenderIconShape=function(W){if(!_.m("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!omc(W,this.icon)};
_.Y.renderIcon=function(W,k){var C=this,n,N,B,A,w,x,E,a;return _.F(function(X){switch(X.nextAddress){case 1:if(k&&C.icon!==k)return X.return();n=C.getContainer(W);N=omc(n,C.icon);if(C.shouldRenderIconShape(W)&&C.iconType)return C.applyIconShape(N,n),X.return();C.removeIconShape();if(!n)return X.return();C.iconName===""&&C.iconset&&n&&(C.removeStaticIcon(C.iconset,n),N&&C.removeAnimatedIcon(n));if(C.iconName===""&&C.iconset||!C.iconsetName||!Qds)return X.return();C.iconset=Qds.byKey(C.iconsetName);
if(!C.iconset)return C.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.LO(C,C.onIconsetAdded)),X.return();C.missingIconSet&&(C.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.LO(C,C.onIconsetAdded)));A=(B=N||C.isAnimatedIcon?Zd3(C.icon):void 0)&&!B.lazyLoad;x=B&&((w=B)==null?void 0:w.lazyLoad)&&(B.lottiePlayerProps.animationConfig.animationData?!0:Oi.get(C.isDarkTheme?B.pathDarkTheme:B.path)?!0:!1);if(A||x)return C.applyAnimatedIcon(n,B,C.iconset),X.return();if(x||
(E=B)==null||!E.lazyLoad){X.jumpTo(2);break}a=Te4(B,C.isDarkTheme);C.applyStaticIcon(C.iconset,n,C.iconName,W,N);return _.l(X,a,3);case 3:return _.l(X,C.renderIcon(C.targetContainer,C.icon),4);case 4:return X.return();case 2:C.applyStaticIcon(C.iconset,n,C.iconName,W,N),_.ab(X)}})};
_.Y.getContainer=function(W){var k,C=(k=nAw(this.hostElement))==null?void 0:k.host;k=!!C&&!!C.polymerController;if(!W||k)return W?this.getTargetContainer(W,C):this.hostElement};
_.Y.getTargetContainer=function(W,k){var C=_.S(k).querySelector("#"+W);C||(W=new _.AM("yt-icon container missing",k.is,W),_.dI(W));return C};
_.Y.applyStaticIcon=function(W,k,C,n,N){N&&this.removeAnimatedIcon(k);this.removeIconShape();N=N&&!!this.iconType&&!!this.iconShapeData&&_.m("kevlar_use_wil_icons");try{N?this.applyIconShape(!1,k):W.applyIcon(k,C)}catch(B){this.handleError(B,n,k)}};
_.Y.applyIconShape=function(W,k){this.iconset&&k&&(this.removeStaticIcon(this.iconset,k),W&&this.removeAnimatedIcon(k));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var C=_.b(this.iconShapeDataSignal);k=C.next().value;C=C.next().value;var n=_.b(this.renderingOptionsSignal),N=n.next().value;n=n.next().value;C(this.iconShapeData);n(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.b(jmm(k,N)).next().value;W.firstChild;)_.S(this.hostElement).appendChild(W.firstChild)};
_.Y.removeIconShape=function(){if(_.m("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.Y.removeStaticIcon=function(W,k){W.removeIcon(k)};
_.Y.applyAnimatedIcon=function(W,k,C){this.removeStaticIcon(C,W);this.removeIconShape();var n;C=this.animatedIconElement&&((n=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:n.type)===k.type;if(this.animatedIconElement&&C){this.animatedIconElement.polymerController.animatedIcon=k;var N;((N=this.animatedIconElement)==null?void 0:N.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=k,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.m("kevlar_use_wil_icons")?W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.S(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.Y.removeAnimatedIcon=function(W){_.m("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.S(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.Y.handleError=function(W,k,C){_.Dx(W,this.iconName,k,C);k=omc(C,this.icon);var n=!1;window.location.href.includes("JpymaW6Lh2w")?n=!0:C._svgIcon&&(C=(C=C._svgIcon.parentNode)?C.tagName:"unknown",_.Dx(W,C),C==="YT-ICON"&&W.name==="NotFoundError"?n=!0:W.name==="NotFoundError"&&k&&(n=!0));n?_.zJ(W):_.dI(W)};
_.oq.Object.defineProperties(pMb,{template:{configurable:!0,enumerable:!0,get:function(){if(MgC===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;
SUI===void 0&&(SUI=document.createElement("template"));var n=SUI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);MgC=W}W=MgC;return W}}});
var Rk=pMb;Rk.prototype.handlePropertyChange=Rk.prototype.handlePropertyChange;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Rk.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",String)],Rk.prototype,"icon",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Rk.prototype,"active",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Rk.prototype,"defaultToFilled",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Rk.prototype,"isAnimatedIcon",void 0);_.U([_.Z({value:24}),_.O("design:type",Number)],Rk.prototype,"size",void 0);_.U([_.Z({value:""}),_.O("design:type",String)],Rk.prototype,"targetContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Rk.prototype,"animatedIconElement",void 0);_.U([_.Z(),_.O("design:type",Object)],Rk.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Rk.prototype,"ariaHidden",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Rk.prototype,"ariaLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Rk.prototype,"role",void 0);_.U([_.Z(),_.O("design:type",String)],Rk.prototype,"style",void 0);_.U([_.Z(),_.O("design:type",String)],Rk.prototype,"iconFilter",void 0);
_.U([_.Hl("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Rk.prototype,"handlePropertyChange",null);Rk=_.U([_.l0({is:"yt-icon",noInjection:!0})],Rk);var vV2;var eZA=function(){var W=document.body,k=W.appendChild;if(vV2===void 0){var C=document.createElement("template");_.J(C,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
vV2=C}C=vV2;k.call(W,C.content)};
document.body?eZA():window.addEventListener("DOMContentLoaded",eZA);var sdS,GhS=function(){return sdS!==void 0?sdS:sdS=document.createElement("template")};
document.head.appendChild(GhS().content);var yPY,$HA=function(){return yPY!==void 0?yPY:yPY=document.createElement("template")};
document.head.appendChild($HA().content);var ZhA;_.Ay=new _.Tc("KEY_MANAGER_TOKEN");var KzJ={duration:1E3,easing:"ease",fill:"forwards"};_.UK(Pvc);var RZs=_.ry(_.gy);_.UK(_.gy);_.NE=_.GM(function(W){var k=_.yE(W.ref),C=W.aTagConfig?W.aTagConfig:_.BH(function(){var B,A,w,x,E,a;var X=(a=_.fi((x=W.command)==null?void 0:x.call(W)))!=null?a:(E=W.command)==null?void 0:E.call(W);return _.m8({innertubeCommand:X,skipOnClick:(B=W.skipOnClick)==null?void 0:B.call(W),stopPropagation:(A=W.dangerousStopPropagation)==null?void 0:A.call(W),defaultTarget:(w=W.target)==null?void 0:w.call(W)})||{}},void 0,"gnrRge");
_.XM(function(){k.value._data=C()._data;k.value.params=C().params});
var n=_.Pj(function(B){var A,w;return void((w=(A=C()).onpointerdown)==null?void 0:w.call(A,B))}),N=_.Pj(function(B){var A,w;
return void((w=(A=C()).onclick)==null?void 0:w.call(A,B))});
return _.t("a",{el:k,href:function(){return C().href$},
rel:function(){return C().rel$},
class:function(){var B,A;return(A=C().className)!=null?A:(B=W.className)==null?void 0:B.call(W)},
style:function(){var B;if((B=W.style)==null?0:B.call(W))return W.style();var A;return((A=W.disabled)==null?0:A.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!C()["aria-haspopup$"]},
"force-new-state":Ki(function(){return C()["force-new-state$"]}),
title:Ki(function(){var B,A;return(A=C().title$)!=null?A:(B=W.title)==null?void 0:B.call(W)}),
role:Ki(function(){return C().role$}),
target:Ki(function(){return C().target$}),
dir:Ki(function(){var B;return((B=W.dir)==null?0:B.call(W))?W.dir():C().dir}),
tabindex:function(){var B;return C().tabindex$?Number(C().tabindex$):(B=W.tabIndex)==null?void 0:B.call(W)},
"aria-hidden":function(){var B,A;return(A=C()["aria-hidden$"])!=null?A:(B=W.ariaHidden)==null?void 0:B.call(W)},
"aria-label":function(){var B,A;return(A=C()["aria-label$"])!=null?A:(B=W.ariaLabel)==null?void 0:B.call(W)},
"aria-current":W.ariaCurrent,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":n,"on:click":N},W.children)},"j");var oV2=function(W,k){this.fillAnimation=new Animation(hFP(W),document.timeline);this.strokeAnimation=new Animation(Wt3(k),document.timeline)};
oV2.prototype.play=function(){var W,k;(k=(W=this.fillAnimation).play)==null||k.call(W);var C,n;(n=(C=this.strokeAnimation).play)==null||n.call(C)};
oV2.prototype.cancel=function(){var W,k;(k=(W=this.fillAnimation).cancel)==null||k.call(W);var C,n;(n=(C=this.strokeAnimation).cancel)==null||n.call(C)};_.BJ=_.GM(function(W){var k=W.model;var C=W.pointerDownEvent;var n=W.pointerUpEvent;var N=W.pointerLeaveEvent;W=_.yE();var B=_.WJ({"border-radius":function(){return k().borderRadius}}),A=_.yE(),w=_.yE(),x=_.b(_.h7(function(){return(n==null?0:n())||(N==null?0:N())?!1:!(C==null||!C())||!1})),E=x.next().value,a=x.next().value,X=void 0,d=function(){!X&&w.value&&A.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(X=new oV2(w.value,A.value));
var e;(e=X)==null||e.play()},V=function(){var e;
(e=X)==null||e.cancel()},c=function(){var e;
(e=X)==null||e.cancel()};
_.XM(function(){(n==null?0:n())&&d()});
_.XM(function(){(C==null?0:C())&&V()});
_.XM(function(){(N==null?0:N())&&c()});
x=_.Pj(function(){d();a(!1)});
var M=_.Pj(function(){V();a(!0)});
_.Zx(W,"pointerleave",function(){c();a(!1)});
_.fy(function(){if(X){var e;(e=X)==null||e.cancel();X=void 0}});
var p={};E=_.Li("yt-spec-touch-feedback-shape",function(){return CNw(k().color)},(p["yt-spec-touch-feedback-shape--focused"]=function(){return!!k().focused&&!k().disabled},p["yt-spec-touch-feedback-shape--circular"]=function(){return!!k().circular},p["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!k().isExtended},p["yt-spec-touch-feedback-shape--down"]=E,p["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!k().triggerEvents},p));
return _.t("yt-touch-feedback-shape",{style:_.WJ({"border-radius":"inherit"})},_.t("div",{el:W,class:E,style:_.WJ({"margin-top":function(){return k().customTopExtend?"-"+k().customTopExtend+"px":void 0}}),
"on:mousedown":M,"on:mouseup":x,"on:touchstart":M,"on:touchend":x,"aria-hidden":!0},_.t("div",{class:"yt-spec-touch-feedback-shape__stroke",style:B,el:A}),_.t("div",{class:"yt-spec-touch-feedback-shape__fill",style:B,el:w})))},"k");
_.BJ.idomCompat=!0;var ihI={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1};var ok=_.fI();ok=ok.toLowerCase();if(_.E2(ok,"android")){var TtS=ok.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);TtS&&parseFloat(TtS[1])<100||ok.match("("+Object.keys(ihI).join("|")+")")};var qUb=_.GM(function(W){return _.t(_.NI,{cond:W.aTagConfig,then:function(k){return _.t(_.NE,{aTagConfig:k,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var C,n;return((C=W.toggleable)==null?void 0:C.call(W))&&((n=W.toggled)==null?void 0:n.call(W))}},W.children)},
else:function(){return _.t("button",{"on:click":_.Pj(function(k){var C;return(C=W.onClick)==null?void 0:C.call(W,k)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var k,C;return((k=W.toggleable)==null?0:k.call(W))?!((C=W.toggled)==null||!C.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"l"),UHC=_.GM(function(W){var k=W.data;
var C=W.hasIconLeading;var n=W.hasIconLeadingTrailing;var N=W.hasIconTrailing;var B=W.iconButton;var A=W.iconClassName;var w=W.secondaryIconClassName;var x=W.icon;var E=W.secondaryIcon;var a=W.textContentClassName;return _.t(ik,{className:"",style:"display: inherit; justify-content: center"},_.t(_.NI,{cond:function(){return x&&(C()||n()||(B==null?void 0:B()))},
then:function(){return _.t(ik,null,_.t("div",{class:A,"aria-hidden":"true"},x==null?void 0:x()))}}),_.t(_.NI,{cond:function(){return(k().buttonText||k().animatedTextProps||k().formattedButtonText)&&!(B==null?0:B())},
then:function(){return _.t(ik,null,_.t(ufC,{className:a,iconPosition:function(){return k().iconPosition},
text:function(){return k().buttonText},
oneOffCustomTextWrap:function(){return k().oneOffCustomTextWrap},
formattedButtonText:function(){return k().formattedButtonText},
animatedTextProps:function(){return k().animatedTextProps}}))}}),_.t(_.NI,{cond:N,
then:function(){return _.t(ik,null,_.t("div",{class:A},x==null?void 0:x()))}}),_.t(_.NI,{cond:n,
then:function(){return _.t(ik,null,_.t("div",{class:w},E==null?void 0:E()))}}),_.t(_.NI,{cond:function(){return!k().disabled&&!0},
then:function(){return _.t(_.BJ,{model:function(){return{color:B94(k())}}})}}))},"m"),ufC=_.GM(function(W){var k=function(){var C,n;
return((C=W.iconPosition)==null?void 0:C.call(W))==="icon-with-label"||((n=W.oneOffCustomTextWrap)==null?void 0:n.call(W))};
return _.t("div",{class:W.className,"aria-hidden":function(){var C,n,N;return((C=W.ariaHidden)==null?void 0:C.call(W))&&(!((n=W.animatedTextProps)==null||!n.call(W))||!((N=W.formattedButtonText)==null||!N.call(W)))}},_.t(_.Fc,null,_.t(_.Aj,{when:function(){var C;
return(C=W.animatedTextProps)==null?void 0:C.call(W)}},function(){return _.t(RZs,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.t(_.Aj,{when:function(){var C;
return(C=W.formattedButtonText)==null?void 0:C.call(W)}},function(){return _.t(_.Ya,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:k()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:k()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!k()}})}),_.t(_.qk3,null,function(){return W.text})))},"n"),Ohx=_.GM(function(W){return _.t(_.NI,{cond:W.hasLabel,
then:function(){var k;return _.t("label",{class:W.className},W.children,(k=W.textContent)==null?void 0:k.call(W))},
else:function(){return W.children}})},"o"),ik=_.GM(function(W){return W.children},"p");var Bq3=Ug("stamper-context");_.UK(fC2);var LX=_.GM(function(W){var k=W.data;var C=W.icon;var n=W.iconName;var N=W.secondaryIcon;var B=W.secondaryIconName;var A=W.focusedOverride;EUm();var w=nU2(k),x=w.size,E=w.style;W=w.disabled;var a=w.onTap,X=w.alignByText,d=w.aTagConfig,V=w.customColors,c=w.segmentedPosition,M=w.toggled,p=w.toggleable,e=w.accessibilityLabel,u=w.onToggle,h=w.iconPosition,L=w.oneOffCustomTextWrap,Bw=w.disableTextEllipsis,P=w.tooltipText,xz=w.ariaHidden,Sp=w.tabIndex,vw=w.buttonText,lw=w.formattedButtonText,G4=w.animatedTextProps,
nA=Yjw(k,C,N,n,B,A),Xs=nA.type;C=nA.shouldFocus;n=nA.hasIconLeading;N=nA.hasIconTrailing;B=nA.hasIconLeadingTrailing;var aI=nA.hasIconOnly;A=nA.hasIconOnly40;var LA=nA.hasIconWithLabel;w=nA.iconButton;var dj=nA.visiblyDisabled,hK=nA.overrideSmallSizeIcon,Tz=nA.iconToRender;nA=nA.secondaryIconToRender;var S8={},ms={};return _.t(Ohx,{className:_.Li("yt-spec-button-shape-with-label",(S8["yt-spec-button-shape-with-label--is-overlay"]=function(){return E()==="overlay"||E()==="overlay-dark"},S8)),
hasLabel:LA,textContent:function(){return _.t(ufC,{text:vw,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:h,formattedButtonText:lw,animatedTextProps:G4})}},_.t(qUb,{aTagConfig:d,
className:_.Li("yt-spec-button-shape-next",function(){return AgJ(Xs())},function(){return dj()?void 0:Ftm(E())},function(){return wam(x())},(ms["yt-spec-button-shape-next--disabled"]=dj,ms["yt-spec-button-shape-next--focused"]=C,ms["yt-spec-button-shape-next--icon-trailing"]=N,ms["yt-spec-button-shape-next--icon-leading"]=n,ms["yt-spec-button-shape-next--icon-leading-trailing"]=B,ms["yt-spec-button-shape-next--icon-button"]=function(){return aI()||LA()},ms["yt-spec-button-shape-next--icon-only-default"]=
A,ms["yt-spec-button-shape-next--align-by-text"]=X,ms["yt-spec-button-shape-next--segmented-start"]=function(){return c()==="start"},ms["yt-spec-button-shape-next--segmented-end"]=function(){return c()==="end"},ms["yt-spec-button-shape-next--override-small-size-icon"]=hK,ms["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,ms["yt-spec-button-shape-next--disable-text-ellipsis"]=Bw,ms["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=bCX(),ms)),
style:function(){return lCp(V()).style},
onClick:function(pA){a==null||a(pA);p()&&(u==null||u(pA))},
disabled:W,ariaLabel:e,toggleable:p,toggled:M,title:function(){var pA;return(pA=P())!=null?pA:""},
visiblyDisabled:dj,ariaHidden:xz,tabIndex:Sp},_.t(UHC,{data:k,hasIconLeading:n,hasIconLeadingTrailing:B,hasIconTrailing:N,iconButton:w,icon:Tz,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:nA})))},"q");
LX.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var LNI=_.GM(function(W){var k=W.data;var C=W.id;var n=W.hidden;var N=W.disableUpgrade;var B=W.className;var A=W.icon;var w=W.secondaryIcon;var x=W.iconName;var E=W.secondaryIconName;W=_.b(_.kw(!1,void 0,"O7k8w"));var a=W.next().value,X=W.next().value,d=function(){var c=_.f().resolve(_.qI(_.Ay));c&&X(c.isKeyBoardInUse())},V=function(){X(!1)};
W=_.yE(function(c){if((N==null||!N())&&_.f().resolve(_.qI(_.Ay)))return c.addEventListener("focusin",d),c.addEventListener("focusout",V),function(){c.removeEventListener("focusin",d);c.removeEventListener("focusout",V)}});
return _.t("yt-button-shape",{el:W,id:C,class:B,hidden:function(){return(n==null?void 0:n())||(N==null?void 0:N())}},_.t(_.NI,{cond:function(){return!(N==null?0:N())},
then:function(){return _.t(LX,{data:k,icon:A,secondaryIcon:w,iconName:x,secondaryIconName:E,focusedOverride:a})}}))},"r");
_.m("web_wiz_button_shape")&&_.Gj(LNI,"yt-button-shape",{props:{data:_.Ik,id:_.Ik,hidden:_.Ik,disableUpgrade:_.Ik,className:_.Ik,icon:_.si,secondaryIcon:_.si,iconName:_.Ik,secondaryIconName:_.Ik},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var TA=function(){var W=_.R.apply(this,arguments)||this;W.keyboardFocused=!1;return W};
_.D(TA,_.R);TA.prototype.onFocus=function(){var W=_.f().resolve(_.qI(_.Ay));W&&(this.keyboardFocused=W.isKeyBoardInUse())};
TA.prototype.onBlur=function(){this.keyboardFocused=!1};
TA.prototype.renderIdom=function(){var W=this;if(this.data){var k=Cn(this.data,!!this.iconName),C=xxP(this.data),n=function(){var B;xf("yt-icon",{icon:W.iconName,active:(B=W.data)==null?void 0:B.toggled,size:k,style:"width: "+k+"px; height: "+k+"px;",iconFilter:C},so)},N=function(){var B;
xf("yt-icon",{icon:W.secondaryIconName,active:(B=W.data)==null?void 0:B.toggled,size:k,style:"width: "+k+"px; height: "+k+"px;",iconFilter:C},so)};
this.data.focused=this.keyboardFocused;_.m("web_reactive_button_shape_in_c3po")?MN(LX)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):Jg2(this.data,n,N);_.Pe(this.hostElement,"yt-renderidom-finished")}};
_.oq.Object.defineProperties(TA,{template:{configurable:!0,enumerable:!0,get:function(){if(ZhA===void 0){var W=document.createElement("template");_.J(W,"\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");
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore($HA().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(GhS().content.cloneNode(!0),W.content.firstChild);ZhA=W}W=ZhA;return W}}});
var qi=TA;qi.prototype.onBlur=qi.prototype.onBlur;qi.prototype.onFocus=qi.prototype.onFocus;_.U([_.v(t$z),_.O("design:type",Object)],qi.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qi.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],qi.prototype,"iconName",void 0);_.U([_.Z(),_.O("design:type",String)],qi.prototype,"secondaryIconName",void 0);_.U([_.Z(),_.O("design:type",Object)],qi.prototype,"keyboardFocused",void 0);
_.U([_.jI("focusin"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qi.prototype,"onFocus",null);_.U([_.jI("focusout"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qi.prototype,"onBlur",null);qi=_.U([_.l0({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.m("web_wiz_button_shape")})],qi);_.Gj(_.GM(function(W){function k(){C().seconds&&B(kA3({seconds:Number(C().seconds)-Date.now()/1E3}))}
var C=W.targetTimestamp;W=W.className;var n=_.b(_.kw("",void 0,"U1Q8Ae")),N=n.next().value,B=n.next().value;_.lI(function(){k();var A=setInterval(function(){k()},1E3);
_.fy(function(){clearInterval(A)})});
return _.t("yt-countdown",{class:_.Li("ytCountDownHost",W)},_.t("div",null,N))},"s"),"yt-countdown",{props:{targetTimestamp:_.Ik,
className:_.si}});_.zn=_.GM(function(W){var k=W.data;var C=W.className;var n=W.style;var N=W.useOutlinedIcon;var B=W.buttonOverrides;var A=W.animatedTextProps;var w=W.onClick;var x=_.yE(function(p){return function(){NpY(_.gF(),p)}}),E=function(){return k().iconName},a,X=(a=_.f().resolve(_.qI(_.cj)))==null?void 0:a(),d=function(){var p=k();
var e=B==null?void 0:B(),u=A==null?void 0:A();if(p){var h=Sjp(p.type);var L=!!p.title||!!p.titleFormatted;var Bw=!(!p.iconName&&!p.iconImage);L=Bw&&!L?"icon-only":Bw?p.iconTrailing||p.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;L==="icon-only-40"&&(h="text");var P,xz=(P=e==null?void 0:e.disabled)!=null?P:p.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||p.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";P=Object;Bw=P.assign;var Sp=p.title,vw=p.titleFormatted;u=u&&u.numberText&&
!isNaN(Number(u.numberValue))?u:void 0;var lw=p.accessibilityText,G4=ICm(p.style),nA=MXm(p.state),Xs=QTm(p.buttonSize),aI=cgm(p,x,xz,w);xz=xz&&!p.onDisabledTap;var LA=_.m8({elementsCommand:p.onTap,forceNewState:!0});LA=VPp(LA)?LA:void 0;var dj=p.customFontColor,hK=p.customBackgroundColor;var Tz=p.customBorderColor;var S8=p.customDarkThemeFontColor,ms=p.customDarkThemeBackgroundColor,pA=p.customDarkThemeBorderColor;dj=X&&S8?S8:dj;hK=X&&ms?ms:hK;Tz=X&&pA?pA:Tz;Tz={color:dj?_.Xi(dj):void 0,backgroundColor:hK?
_.Xi(hK):void 0,borderColor:Tz?_.Xi(Tz):void 0};p=Bw.call(P,{},{buttonText:Sp,formattedButtonText:vw,animatedTextProps:u,accessibilityLabel:lw,style:G4,type:h,state:nA,size:Xs,iconPosition:L,onTap:aI,disabled:xz,aTagConfig:LA,customColors:Tz,tooltipText:p.tooltip},e)}else p={style:"mono",type:"text",state:"active",size:"M"};p.focused=M();return p},V=function(){return Cn(d(),!!k().iconName)};
W=_.b(_.kw(!1,void 0,"JjUrEe"));a=W.next().value;var c=W.next().value,M=a;W=_.Pj(function(){var p=_.f().resolve(_.qI(_.Ay));p&&c(p.isKeyBoardInUse());return!1});
a=_.Pj(function(){c(!1);return!1});
_.XM(function(){var p,e=_.z(k==null?void 0:(p=k())==null?void 0:p.onVisible,_.XZ);e&&_.dy(e,{disableClickTracking:!0})});
_.Ee(function(){x.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var p=k().targetId;p&&_.BpA(_.gF(),p,x.value)});
return _.t("button-view-model",{el:x,class:_.Li("yt-spec-button-view-model",C),"on:focusin":W,"on:focusout":a},_.t(_.NI,{cond:function(){return k().iconImage?{sources:[k().iconImage]}:void 0},
then:function(p){return _.t(LX,{data:d,icon:function(){return _.t(_.pi,{data:p,alt:"",targetWidth:V,targetHeight:V,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.t(LX,{data:d,icon:function(){return _.t(_.ka,{icon:E,active:function(){return(N==null?0:N())?!1:d().toggled},
animateIcon:function(){var p;return!!(n==null?0:(p=n())==null?0:p.animateIcon)},
size:V})}})}}))},"t");
_.zn.idomCompat={callbacks:{onClick:!0}};_.Gj(_.GM(function(W){return _.t("yt-button-view-model",{id:W.id,class:_.Li(W.scopingClassName,W.classes),icon:function(){var k;return(k=W.icon)==null?void 0:k.call(W)},
"dialog-dismiss":function(){var k;return((k=W.dialogDismiss)==null?0:k.call(W))?"":void 0}},_.t(_.zn,{data:function(){var k;
return(k=W.data)==null?void 0:k.call(W)},
className:function(){var k;return(k=W.className)==null?void 0:k.call(W)},
style:function(){var k;return(k=W.style)==null?void 0:k.call(W)},
useOutlinedIcon:function(){var k;return(k=W.useOutlinedIcon)==null?void 0:k.call(W)},
buttonOverrides:function(){var k;return(k=W.buttonOverrides)==null?void 0:k.call(W)},
animatedTextProps:function(){var k;return(k=W.animatedTextProps)==null?void 0:k.call(W)},
onClick:function(k){var C;return(C=W.onClick)==null?void 0:C.call(W,k)}}))},"u"),"yt-button-view-model",{props:{data:_.Ik,
className:_.Ik,style:_.Ik,useOutlinedIcon:_.Ik,buttonOverrides:_.Ik,animatedTextProps:_.Ik,onClick:_.si,scopingClassName:_.Ik,id:_.Ik,icon:_.Ik,dialogDismiss:_.Ik,classes:_.Ik}});var uk=function(){var W=_.R.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.D(uk,_.R);uk.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
uk.prototype.progressBarChanged=function(){var W=_.S(this.hostElement).querySelector("#progress-bar-progress"),k,C,n,N=(n=Number((k=this.creatorGoalState)==null?void 0:k.currentGoalCount)/Number((C=this.creatorGoalState)==null?void 0:C.totalGoalCount)*100)!=null?n:0,B;W.style.width=((B=Math.min(N,100))!=null?B:0)+"%"};
uk.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var k;W={"--yt-progress-bar-color":LNJ((k=this.creatorGoalState)==null?void 0:k.progressBarColor)};_.Op(this.hostElement,W)};
uk.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.oq.Object.defineProperties(uk.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var k;W=Number((k=this.creatorGoalState)==null?void 0:k.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var k;W=_.z((k=this.creatorGoalState)==null?void 0:k.themedTargetImage,pRA);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.oq.Object.defineProperties(uk,{template:{configurable:!0,enumerable:!0,get:function(){return aVC()}}});
var UQ=uk;UQ.prototype.goalStateChanged=UQ.prototype.goalStateChanged;UQ.prototype.progressBarChanged=UQ.prototype.progressBarChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],UQ.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);
_.U([_.Z({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,k){return _.hQ(W.entities,"creatorGoalEntity",k)}}),
_.O("design:type",Object)],UQ.prototype,"creatorGoalState",void 0);_.U([_.Z(),_.O("design:type",Object)],UQ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],UQ.prototype,"isGoalActive",void 0);_.U([_.G("creatorGoalState","isGoalActive"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],UQ.prototype,"shouldShowCountdown",null);_.U([_.G("creatorGoalState"),_.O("design:type",Object),_.O("design:paramtypes",[])],UQ.prototype,"endTimestamp",null);
_.U([_.G("creatorGoalState"),_.O("design:type",Object),_.O("design:paramtypes",[])],UQ.prototype,"targetIconThemedImage",null);_.U([_.Hl("creatorGoalState.currentGoalCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UQ.prototype,"progressBarChanged",null);_.U([_.Hl("creatorGoalState.creatorGoalState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UQ.prototype,"goalStateChanged",null);
UQ=_.U([_.l0({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],UQ);_.q(UQ,"yt-creator-goal-progress-flow-view-model",function(){return aVC()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var jdb;var HhA;var rPs=function(){return _.R.apply(this,arguments)||this};
_.D(rPs,_.R);rPs.prototype.attached=function(){var W,k,C;if(this==null?0:(W=this.data)==null?0:(k=W.pdgPurchasedBumperLoggingDirectives)==null?0:(C=k.loggingDirectives)==null?0:C.trackingParams){var n,N,B;eJm(this==null?void 0:(n=this.data)==null?void 0:(N=n.pdgPurchasedBumperLoggingDirectives)==null?void 0:(B=N.loggingDirectives)==null?void 0:B.trackingParams)}};
rPs.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var OQ=rPs;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],OQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OQ.prototype,"data",void 0);OQ=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],OQ);
_.q(OQ,"yt-live-chat-item-bumper-view-model",function(){if(HhA===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;jdb===void 0&&(jdb=document.createElement("template"));var n=jdb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);HhA=W}W=HhA;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var gVs;var PY8;_.vJ=function(W,k){this.data=W;this.actions=k;this.data=W;this.actions=k};
_.VF=function(){};_.Ll={};_.Ll.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,k){sT4(this.hostElement,W,k)},
getNavigationEndpointPopupAction:function(W){return G6z(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,k){yg2(this.hostElement,W,k,this.openPopupConfig)}};var OCc=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.jV={};
_.jV.YtEndpointBehavior=[_.Ll.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.DE("openPopupConfig");(this.useClickHandler=_.cv("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(W){RJJ(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var k=this.hostElement,C=this.openPopupConfig,n=this.disableCommandHandlerOverride;n=n===void 0?!1:n;var N=$xm(W);if(N){N.href&&mg(N.href);var B=W.detail;var A=B.sourceEvent;B=B.preventer;A=A.button!==void 0?A.button===0&&!wE(A):B?!wE(B):!0;N.data&&A&&ZC2(k,N,W,C,n)}},
onEndpointTouchEnd_:function(W){wE(W)||$xm(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){uap(W)}}];var Lt2="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),HCz=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var KNA={};KNA.YtPlaintextBehavior=[_.wS,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.B9&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var hZx;var WyY;var kSY=function(){var W=_.R.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.m("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.D(kSY,_.R);_.Y=kSY.prototype;_.Y.created=function(){this.useIOObserverForVisibilityLogging_=_.m("kevlar_use_vimio_behavior")&&_.DE("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.Y.ready=function(){_.DE("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_()};
_.Y.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.Y.detached=function(){this.unobserveIOObservers_()};
_.Y.clearContents_=function(){for(var W=this.getRoot(),k=W.lastChild;k&&k.tagName!=="STYLE";){try{W.removeChild(k)}catch(C){break}k=W.lastChild}};
_.Y.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.b(this.ytFormattedStringObserverHandlerKeys_),k=W.next();!k.done;k=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(k.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.Y.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.Y.resetForFormattedString=function(){var W=this.getRoot(),k=W.querySelector("yt-attributed-string");k&&(this.ytAttributedStringElementRef=W.removeChild(k))};
_.Y.textChanged=function(){this.textChanged_(this.text)};
_.Y.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.m("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var k=this.hostElement.firstChild;k&&k.nodeName==="FONT";){var C=k;k=k.nextSibling;this.hostElement.removeChild(C)}k=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
C=W.simpleText;var n;!C&&((n=W.runs)==null?void 0:n.length)===1&&this.isSimpleString_(W.runs[0])&&(C=W.runs[0].text);C!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.DE("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(C!==void 0){try{k.textContent=C}catch(N){}k.textContent||(this.isEmpty=!0)}else W=W.runs,C!==void 0&&(W=[{text:C}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
k.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.Y.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)};
_.Y.computeAriaLabel_=function(W){return W};
_.Y.computeEllipsisTruncateStyling=function(W,k){return W&&!k};
_.Y.computeUseAttributedString=function(W){return _.m("web_replace_formatted_with_attributed_string")&&AGm(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.Y.setNodeStyle_=function(W,k){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.m("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?k.removeAttribute("dir"):k.setAttribute("dir","auto");k.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");k.style.color="";var C=null;this.noStyles||(W.bold&&(k.classList.add("bold"),C="bold"),W.deemphasize&&(k.classList.add("deemphasize"),C="deemphasize"),W.italics&&k.classList.add("italic"),
W.strikethrough&&k.classList.add("strikethrough"),W.errorUnderline&&(k.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&k.classList.add("bracket"),W.textColor&&(k.style.color=_.a8(W.textColor)));C!==k.getAttribute("style-target")&&(C?k.setAttribute("style-target",C):k.removeAttribute("style-target"))};
_.Y.setUpVisibilityLogging_=function(W,k){var C=this;this.setNodeTrackingParams_(W,k);var n;((n=k.data)==null?0:n.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(k,function(N){var B=C.ytRendererBehavior.getVisibilityLogger();B&&B.reportShown(N)},this.ytRendererBehavior.visibilityOptionVisible_),k=this.ytRendererBehavior.visibilityObserver.observe(k,function(N){var B=C.ytRendererBehavior.getVisibilityLogger();
B&&B.reportHidden(N)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(k))};
_.Y.setNodeTrackingParams_=function(W,k){k.data||(k.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||k.data.trackingParams)k.data.trackingParams=W};
_.Y.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.Y.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.S(_.S(this.hostElement,W).querySelector("[contenteditable]")):_.S(this.hostElement,W)};
_.Y.fixContenteditableScope=function(){var W=function(k){k&&(k.nodeType===1&&k.classList&&(k.classList.add("style-scope"),k.classList.add("yt-formatted-string")),k.childNodes&&k.childNodes.forEach(function(C){W(C)}))};
W(this.getRoot())};
_.Y.updateText_=function(W){for(var k=W.length,C=this.getRoot(),n=C.firstChild;n&&n.nodeName==="STYLE";)n=n.nextSibling;for(var N=0;N<k&&n;){var B=W[N],A=_.m("remove_cr_char")&&B.text?B.text.replace("\r",""):B.text;if(this.isSimpleString_(B)&&!this.useMixedDirectionFormattedStrings)if(n.nodeName==="#text"){n.textContent!=A&&(n.textContent=A);N++;n=n.nextSibling;continue}else break;if(_.z(B,Ei))break;else if(!this.noEndpoints&&B.navigationEndpoint){if(n.nodeName!=="A")break;this.setDataOnAnchor_(n,
B.navigationEndpoint)}else if(n.nodeName!=="SPAN")break;this.setNodeStyle_(B,n);this.setUpVisibilityLogging_(B,n);n.textContent!=A&&(n.textContent=A);N++;n=n.nextSibling}if(n)for(B=C.lastChild,n=N?n.previousSibling:null;B&&B!=n;){try{C.removeChild(B)}catch(w){break}B=C.lastChild}N!==k&&this.addTextNodes_(W,N)};
_.Y.addTextNodes_=function(W,k){for(var C=document.createDocumentFragment(),n=W.length;k<n;k++){var N=W[k],B=_.m("remove_cr_char")&&N.text?N.text.replace("\r",""):N.text;if(this.isSimpleString_(N)&&!this.useMixedDirectionFormattedStrings)C.appendChild(document.createTextNode(B));else{var A=_.z(N,Ei);if(A){if(A.image){var w=document.createElement("img");A.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");A.isCustomEmoji&&(w.dataset.emojiId=A.emojiId);w.src=_.yI(A.image.thumbnails,
this.emojiSize);(N=this.get("image.accessibility.accessibilityData.label",A))?w.alt=N:A.shortcuts&&A.shortcuts.length>0?w.alt=A.shortcuts[0]:A.emojiId&&(w.alt=A.emojiId);C.appendChild(w);this.hasEmoji=!0}}else!this.noEndpoints&&N.navigationEndpoint?(w=document.createElement("a"),w.classList.add("yt-simple-endpoint"),w.setAttribute("spellcheck","false"),this.setDataOnAnchor_(w,N.navigationEndpoint)):w=document.createElement("span"),this.setNodeStyle_(N,w),this.setUpVisibilityLogging_(N,w),w.appendChild(document.createTextNode(B)),
C.appendChild(w)}}this.getRoot().appendChild(C)};
_.Y.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.z(W,Ei)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.Y.getRawText=function(){return _.y4(this.text)};
_.Y.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.Y.setFirstRunText=function(W){var k;((k=this.text)==null?0:k.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.Y.setDataOnAnchor_=function(W,k){var C=this;!_.m("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(k)||this.isSignalServiceEndpoint_(k)?(W.onclick=this.serviceEndpointHandler_(k),Gi(W,"#")):JyX({text:this.text,command:k},function(){$jw(W,k,C.target)})};
_.Y.isServiceEndpoint_=function(W){var k;return!((k=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null||!k.sendPost)};
_.Y.isSignalServiceEndpoint_=function(W){return!!_.z(W,_.AQ)};
_.Y.serviceEndpointHandler_=function(W){var k=this;return function(C){_.kQ(k.hostElement,[W]);C.preventDefault()}};
_.Y.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.Y.enableContentEditableChanged_=function(){var W=this,k=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),k=_.S(this.hostElement,k),!k.lastChild||k.lastChild instanceof HTMLElement&&k.lastChild.id!=="contenteditable-root"){var C=document.createElement("div");C.id="contenteditable-root";C.setAttribute("contenteditable","true");C.setAttribute("dir","auto");C.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
k.appendChild(C);this.overrideAriaLabel&&C.setAttribute("aria-label",this.overrideAriaLabel)}}else C=_.Ty(this.hostElement).firstChild,C instanceof HTMLElement&&C.id==="contenteditable-root"&&_.S(this.hostElement,k).removeChild(C)};
_.Y.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.Y.getNodesForVisibilityLogging_=function(){return _.W9(this.getRoot().childNodes,function(W){var k;return!((k=W.data)==null||!k.trackingParams)})};
_.Y.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.Y.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(k){W.reportShown(k)})}};
_.Y.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(k){W.reportHidden(k)})}};
_.oq.Object.defineProperties(kSY.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.m("enable_mixed_direction_formatted_strings")}}});
var HR=kSY;HR.prototype.enableContentEditableChanged_=HR.prototype.enableContentEditableChanged_;HR.prototype.overrideAriaLabelChanged_=HR.prototype.overrideAriaLabelChanged_;HR.prototype.ellipsisTruncateChanged_=HR.prototype.ellipsisTruncateChanged_;HR.prototype.textChanged=HR.prototype.textChanged;_.U([_.v(KNA.YtPlaintextBehavior),_.O("design:type",Object)],HR.prototype,"ytPlaintextBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],HR.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],HR.prototype,"text",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"noEndpoints",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"noStyles",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],HR.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],HR.prototype,"splitLines",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],HR.prototype,"forceDefaultStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],HR.prototype,"ellipsisTruncate",void 0);_.U([_.Z(),_.O("design:type",Object)],HR.prototype,"ignoreShadyDom",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.O("design:type",Boolean)],HR.prototype,"ellipsisTruncateStyling",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.O("design:type",String)],HR.prototype,"ariaLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],HR.prototype,"isEmpty",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.O("design:type",Boolean)],HR.prototype,"hasLinkOnly_",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"hasEmoji",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"disableAttributedString",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"isOverlay",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"linkInheritColor",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"noPreWrap",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"userInput",void 0);_.U([_.Z({value:16}),_.O("design:type",Number)],HR.prototype,"emojiSize",void 0);_.U([_.Z(),_.O("design:type",String)],HR.prototype,"target",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"enableContentEditable",void 0);_.U([_.Z(),_.O("design:type",String)],HR.prototype,"overrideAriaLabel",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"respectHtmlDir",void 0);_.U([_.Z(),_.O("design:type",Boolean)],HR.prototype,"respectLangDir",void 0);_.U([_.G("plaintextOnly"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],HR.prototype,"useMixedDirectionFormattedStrings",null);_.U([_.Z({computed:"computeUseAttributedString(text)"}),_.O("design:type",Boolean)],HR.prototype,"useYtAttributedString",void 0);
_.U([_.Hl("text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HR.prototype,"textChanged",null);_.U([_.Hl("ellipsisTruncate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HR.prototype,"ellipsisTruncateChanged_",null);_.U([_.Hl("overrideAriaLabel"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HR.prototype,"overrideAriaLabelChanged_",null);
_.U([_.Hl("enableContentEditable"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HR.prototype,"enableContentEditableChanged_",null);HR=_.U([_.l0({is:"yt-formatted-string",disableElementRegistration:!0})],HR);
_.q(HR,"yt-formatted-string",function(){if(WyY===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;hZx===void 0&&(hZx=document.createElement("template"));var n=hZx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);WyY=W}W=WyY;return W});var CQI;var nuZ;var NWs;var Ytx;var BWY=function(){var W=_.R.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.D(BWY,_.R);BWY.prototype.triggerDown=function(){if(!this.disabled){_.qw(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
BWY.prototype.triggerUp=function(){if(!this.disabled){_.qw(this.hostElement,"down",!1);var W=this.fillElement;var k=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([hFP(W),Wt3(k)]),W=new Animation(W,document.timeline)):W=new oV2(W,k);this.currentAnimation=W;var C;(C=this.currentAnimation)==null||C.play()}};
var rh=BWY;_.U([_.gi(".stroke"),_.O("design:type",HTMLElement)],rh.prototype,"strokeElement",void 0);_.U([_.gi(".fill"),_.O("design:type",HTMLElement)],rh.prototype,"fillElement",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rh.prototype,"focused",void 0);_.U([_.Z(),_.O("design:type",Object)],rh.prototype,"disabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rh.prototype,"isOverlay",void 0);
rh=_.U([_.l0({is:"yt-interaction",disableElementRegistration:!0})],rh);
_.q(rh,"yt-interaction",function(){if(Ytx===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;NWs===void 0&&(NWs=document.createElement("template"));var n=NWs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Ytx=W}W=Ytx;return W},{mode:2});var bjx=function(){return _.R.apply(this,arguments)||this};
_.D(bjx,_.R);_.Y=bjx.prototype;_.Y.ready=function(){var W=this,k=_.S(this.hostElement).querySelector("#button");k.addEventListener("focus",function(){VLC||(VLC=new Dk8);W.keyboardFocused=VLC.isKeyBoardInUse()});
k.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.Y.computeTabIndex_=function(W){return W?-1:0};
_.Y.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.Y.rippleDown_=function(){_.S(this.hostElement).querySelector("#interaction").triggerDown()};
_.Y.rippleUp_=function(){_.S(this.hostElement).querySelector("#interaction").triggerUp()};
_.Y.onPressedChanged_=function(){var W=_.Ty(_.S(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Ty(_.S(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
var gh=bjx;gh.prototype.onPressedChanged_=gh.prototype.onPressedChanged_;gh.prototype.rippleUp_=gh.prototype.rippleUp_;gh.prototype.rippleDown_=gh.prototype.rippleDown_;_.U([_.Z(),_.O("design:type",String)],gh.prototype,"label",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],gh.prototype,"disabled",void 0);_.U([_.Z(),_.O("design:type",Boolean)],gh.prototype,"pressed",void 0);_.U([_.Z(),_.O("design:type",Object)],gh.prototype,"toggleable",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],gh.prototype,"untabbable",void 0);_.U([_.Z(),_.O("design:type",Boolean)],gh.prototype,"keyboardFocused",void 0);_.U([_.jI("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gh.prototype,"rippleDown_",null);_.U([_.jI("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gh.prototype,"rippleUp_",null);
_.U([_.Hl("pressed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gh.prototype,"onPressedChanged_",null);gh=_.U([_.l0({is:"yt-icon-button",disableElementRegistration:!0})],gh);
_.q(gh,"yt-icon-button",function(){if(nuZ===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;CQI===void 0&&(CQI=document.createElement("template"));var n=CQI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);nuZ=W}W=nuZ;return W},{mode:2});var AGs=_.iH(["aria-"]),PR={};PR.YtRenderButtonBehavior=[_.K.YtRendererBehavior,_.jV.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!!_.f().resolve(_.qI(_.Ay))&&_.m("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 W=this.computeHref_(this.endpoint,!0);W?Gi(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.b(W);for(var k=W.next();!k.done;k=W.next())k=k.value,_.qw(this.hostElement,k,!0),this.elements_.button&&_.qw(this.elements_.button,k,!0),this.elements_.text&&_.qw(this.elements_.text,k,!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&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.H6([_.h8(AGs)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.f().resolve(_.qI(_.Ay));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.eV("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,_.Ek(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Ek(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,k){if(k)for(W=k.split(" "),W=_.b(W),k=W.next();!k.done;k=W.next())k=k.value,_.qw(this.hostElement,k,!1),this.elements_.button&&_.qw(this.elements_.button,k,!1),this.elements_.text&&_.qw(this.elements_.text,k,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Ek(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.uK(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.Ek(this.elements_.button).appendChild(this.elements_.icon):_.Ek(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.uK(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var k=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":k=!0;_.qw(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.Ek(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Ek(this.elements_.endpoint).appendChild(this.elements_.button);_.Ek(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.eV("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;_.Ek(this.elements_.button).appendChild(this.elements_.text);_.Ek(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":k=!0,this.elements_.button=this.getYtIconButton_(),W=_.Ek(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.Ek(this.elements_.endpoint).appendChild(this.elements_.button)}_.uK(this.hostElement,"is-icon-button",k);_.uK(this.hostElement,"is-paper-button",!k);_.uK(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var C;_.S((C=this.container.hostElement)!=null?C:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Ek(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.m("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.lV(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.kQ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.m("handle_service_request_actions")||_.kQ(this.hostElement,[this.serviceEndpoint]),
_.Pe(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.m("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.CB(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.kQ(this.hostElement,[W]):_.CB(this.hostElement,[W],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 W,k=_.S((W=this.container.hostElement)!=null?W:this.container);k.lastChild&&k.lastChild.tagName!="STYLE";)try{k.removeChild(k.lastChild)}catch(C){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.eV("yt-icon-button"):document.createElement("yt-icon-button"),k=_.Ek(W).firstElementChild;if(k&&k.is!="yt-icon"){for(k=_.Ek(W);k.lastChild;)k.removeChild(k.lastChild);k=null}k||(k=this.getIcon_(),this.setIconActive_(k),_.Ek(W).appendChild(k));return W},
reuseEnabled_:function(){return _.m("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.eV("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.eV("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Fys={};
_.Fys.YtButtonBehavior=[PR.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var k;if((k=this.elements_)==null?0:k.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var k=W&&W.navigationEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.url"),n=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return k?k:W&&W.command&&W.command.modalEndpoint?W.command:C&&!n&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var k=W&&W.serviceEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return k?k:C&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.Hp(W.icon.iconType):null},
computeButtonText_:function(W,k){return!k&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var k=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";k+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(k+="palette-with-border");return k.trim()}}];var tW={};var wdZ;var xUY;var l9S,tP8=function(){return l9S!==void 0?l9S:l9S=document.createElement("template")};
document.head.appendChild(tP8().content);var EuA;var a9x,Xd2=function(){return a9x!==void 0?a9x:a9x=document.createElement("template")};
document.head.appendChild(Xd2().content);var f9S;var dUx,mUA=function(){return dUx!==void 0?dUx:dUx=document.createElement("template")};
document.head.appendChild(mUA().content);var z52;var DUS=document.head,VP8=DUS.appendChild,JGb;if(z52===void 0){var cGC=document.createElement("template");_.J(cGC,"\x3c!--css-build:shady--\x3e");cGC.content.insertBefore(mUA().content.cloneNode(!0),cGC.content.firstChild);z52=cGC}JGb=z52;VP8.call(DUS,JGb.content);var I92=document.head,StC=I92.appendChild,MPA;if(f9S===void 0){var QPs=document.createElement("template");_.J(QPs,"\x3c!--css-build:shady--\x3e");QPs.content.insertBefore(Xd2().content.cloneNode(!0),QPs.content.firstChild);f9S=QPs}MPA=f9S;StC.call(I92,MPA.content);var pdA=document.head,vuC=pdA.appendChild,e5I;if(EuA===void 0){var sP2=document.createElement("template");_.J(sP2,"\x3c!--css-build:shady--\x3e");sP2.content.insertBefore(tP8().content.cloneNode(!0),sP2.content.firstChild);EuA=sP2}e5I=EuA;vuC.call(pdA,e5I.content);_.EJ("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var GSA=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),Kl=function(){return _.R.apply(this,arguments)||this};
_.D(Kl,_.R);Kl.prototype.created=function(){this.openPopupConfig=_.DE("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
Kl.prototype.onYtNavigate_=function(W){var k=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);k&&(this.ytOpenPopupBehavior.openPopup(k),W.stopPropagation(),W.preventDefault())};
_.oq.Object.defineProperties(Kl,{template:{configurable:!0,enumerable:!0,get:function(){if(xUY===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;wdZ===void 0&&(wdZ=document.createElement("template"));var n=wdZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);xUY=W}W=xUY;return W}}});
_.hw=Kl;_.hw.prototype.onYtNavigate_=_.hw.prototype.onYtNavigate_;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],_.hw.prototype,"ytOpenPopupBehavior",void 0);_.U([_.v(_.Fys.YtButtonBehavior),_.O("design:type",Object)],_.hw.prototype,"ytButtonBehavior",void 0);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],_.hw.prototype,"onYtNavigate_",null);
_.hw=_.U([_.l0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:GSA})],_.hw);var yGI;var $UC=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),WL=function(){var W=_.R.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(k){_.Pe(W.hostElement,"yt-service-request-sent-button-renderer",k)};
return W};
_.D(WL,_.R);_.Y=WL.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.Y.onClick=function(W){var k,C=this.disabled||((k=this.data)==null?void 0:k.isDisabled);k=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");C&&k&&W.stopPropagation()};
_.Y.computeIcon=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.icon)==null?void 0:k.iconType;if(C)return _.Hp(C)};
_.Y.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.Y.handleUpdateButtonAction=function(W){W=_.z(W,DR8);var k=_.z(W==null?void 0:W.updatedButton,_.Vq);if(this.data&&W&&k){var C=this.data;C.targetId&&W.targetId&&C.targetId===W.targetId&&(this.data=k)}};
_.oq.Object.defineProperties(WL.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var k=Wbc({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Pe(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Pe(W.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});k.alignByText=this.alignByText;return k}}}});
_.oq.Object.defineProperties(WL,{template:{configurable:!0,enumerable:!0,get:function(){if(yGI===void 0){var W=document.createElement("template");_.J(W,'\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>');yGI=W}W=yGI;return W}}});
var k$=WL;k$.prototype.onClick=k$.prototype.onClick;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"isPressed",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"forceIconButton",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"forceIconOnly",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"forceModernIconButton",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"skipCommandHandling",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"alignByText",void 0);
_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"buttonTooltipPosition",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"fitToVisibleBounds",void 0);_.U([_.Z({computed:"computeTooltip(data)"}),_.O("design:type",Object)],k$.prototype,"tooltip",void 0);_.U([_.Z(),_.O("design:type",Object)],k$.prototype,"overrides",void 0);_.U([_.Z(),_.O("design:type",Boolean)],k$.prototype,"disabled",void 0);
_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],k$.prototype,"onClick",null);_.U([_.G("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.O("design:type",Object),_.O("design:paramtypes",[])],k$.prototype,"computedButtonShape",null);
k$=_.U([_.l0({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$UC,cssBuildOptOut:!0}),_.l0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$UC,cssBuildOptOut:!0})],k$);var Zjs;var R5Y;var ou2=function(){var W=_.R.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.D(ou2,_.R);_.Y=ou2.prototype;_.Y.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.Y.ready=function(){var W=this.shouldShowPlaceholder_();_.qw(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.Y.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.Y.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.Y.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||ijI};
_.Y.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.yI(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.Y.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.Y.thumbnailChanged_=function(){var W=_.b([this.thumbnail,this.oldThumbnail_]),k=W.next().value;W=W.next().value;this.oldThumbnail_=k;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(k)===W))return;_.m("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(k)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):k&&_.cv("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ZR(this,this.onReload_):_.ZR(this,this.onShow_):this.resetImage_();k&&(this.hostElement.style.opacity=""+k.opacity)}};
_.Y.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.Y.setSrc_=function(W){W?(_.S(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.S(this.hostElement).querySelector("#img").src=W):(_.S(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.Y.resetImage_=function(){Bem(this.hostElement);this.empty_=!0;this.setSrc_(ijI);this.ytRendererBehavior.invalidate(!1)};
_.Y.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.a8(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.Y.onLoad_=function(){_.S(this.hostElement).querySelector("#img").src&&_.S(this.hostElement).querySelector("#img").src!==ijI&&(YfK(this.hostElement),this.notifyOnLoaded&&_.Pe(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.Y.onError_=function(){var W=this;if(_.m("web_use_cache_for_image_fallback"))tGI(_.S(this.hostElement).querySelector("#img").src).then(function(k){W.objectURL_=_.pL(k).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.m("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.Y.onPrescanVisible=function(){this.onShow_()};
_.Y.onVisible=function(){if(_.m("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.Y.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.S(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.Y.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.S(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.Y.shouldShowPlaceholder_=function(){return _.m("kevlar_thumbnail_bg")};
var CR=ou2;CR.prototype.observePlaceholderColor_=CR.prototype.observePlaceholderColor_;CR.prototype.delayedSrcChanged_=CR.prototype.delayedSrcChanged_;CR.prototype.thumbnailChanged_=CR.prototype.thumbnailChanged_;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"alt",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],CR.prototype,"ariaHidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"ariaLabel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"id",void 0);_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],CR.prototype,"ytVisibilityBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",String)],CR.prototype,"delayedSrc",void 0);
_.U([_.Z(),_.O("design:type",Object)],CR.prototype,"thumbnail",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"loaded",void 0);_.U([_.Z(),_.O("design:type",Boolean)],CR.prototype,"notifyOnLoaded",void 0);_.U([_.Z(),_.O("design:type",Number)],CR.prototype,"height",void 0);_.U([_.Z(),_.O("design:type",Number)],CR.prototype,"width",void 0);_.U([_.Z({value:function(){return"width"}}),
_.O("design:type",String)],CR.prototype,"dimension",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"fit",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"fitHeight",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"fitWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"objectFit",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"objectPosition",void 0);_.U([_.Z(),_.O("design:type",String)],CR.prototype,"preferredThumbnail",void 0);_.U([_.Z({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.O("design:type",String)],CR.prototype,"alt_",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CR.prototype,"sharedTooltipText",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],CR.prototype,"ftlEligible",void 0);_.U([_.Z({value:void 0}),_.O("design:type",String)],CR.prototype,"observeHiddenOption",void 0);_.U([_.Z({value:"observe_once"}),_.O("design:type",String)],CR.prototype,"observePrescanOption",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],CR.prototype,"roundedContainer",void 0);
_.U([_.Cq("thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CR.prototype,"thumbnailChanged_",null);_.U([_.Cq("delayedSrc"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CR.prototype,"delayedSrcChanged_",null);_.U([_.Hl("thumbnail.placeholderColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CR.prototype,"observePlaceholderColor_",null);
CR=_.U([_.l0({is:"yt-img-shadow",disableElementRegistration:!0})],CR);var ijI=_.cv("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.u0()(CR,"yt-img-shadow",function(){if(R5Y===void 0){var W=document.createElement("template");_.J(W,'\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">');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Zjs===void 0&&(Zjs=document.createElement("template"));var n=Zjs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);R5Y=W}W=R5Y;return W},{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 h2m;_.nR=new _.Tc("SCREEN_MANAGER_TOKEN");h2m=new _.Tc("LOG_INITIAL_SCREEN_TOKEN");_.fX=_.GM(function(W){function k(xz){return _.z(xz,_.aS)}
function C(){var xz=n().isTogglingDisabled||d()?M():!M();p(xz);u(!1);if(!n().isTogglingDisabled){var Sp;(Sp=A)==null||Sp(!!xz)}var vw;((vw=B)==null?0:vw())||_.Pn(_.f().resolve(_.nR),n().trackingParams);var lw;if(!xz||!k(n().defaultButtonViewModel)||(lw=B)!=null&&lw()){var G4;!k(n().toggledButtonViewModel)||((G4=B)==null?0:G4())||_.Pn(_.f().resolve(_.nR),k(n().toggledButtonViewModel).trackingParams)}else _.Pn(_.f().resolve(_.nR),k(n().defaultButtonViewModel).trackingParams)}
var n=W.data,N=W.buttonShapeOverrides,B=W.disableExplicitClickLogging,A=W.onToggle,w=W.style,x=W.useOutlinedIcon,E=W.className,a=function(){var xz,Sp;return M()?(xz=W.animatedTextPropsToggled)==null?void 0:xz.call(W):(Sp=W.animatedTextPropsDefault)==null?void 0:Sp.call(W)},X=_.BH(function(){return a()?Object.assign({},a(),{shouldAnimate:e()}):void 0},void 0,"ZKEa0b"),d=function(){var xz;
return((xz=Bw())==null?void 0:xz.isToggled)!==void 0},V=_.b(_.h7(function(){var xz,Sp,vw;
return d()?(xz=Bw())==null?void 0:xz.isToggled:(vw=N==null?void 0:(Sp=N())==null?void 0:Sp.toggled)!=null?vw:n().isToggled})),c=V.next().value;
V=V.next().value;var M=c,p=V;V=_.b(_.h7(function(){var xz,Sp;return(xz=W.animatedTextPropsToggled)==null?void 0:(Sp=xz.call(W))==null?void 0:Sp.shouldAnimate}));
c=V.next().value;V=V.next().value;var e=c,u=V;c=_.b(_.kw(!1,void 0,"S11hid"));var h=c.next().value,L=c.next().value,Bw=_.X8(function(xz){var Sp;a:{var vw=n().entityKey,lw=n().toggledStateEntitySelectorType;if(lw&&vw)switch(lw){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var G4;xz=(G4=_.hQ(xz.entities,"sfvAudioItemCurrentlyPlayingEntity",vw))!=null?G4:void 0;G4=(Sp=xz==null?void 0:xz.sfvAudioItemPlaybackState)!=null?Sp:void 0;if(G4==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Sp={isToggled:!0};
break a}if(G4){Sp={isToggled:!1};break a}break;default:_.zJ(new _.AM("Error: entitySelectorType defined but not matched in selector.",xz,lw))}Sp=void 0}return Sp});
c=_.Pj(function(){var xz=_.f().resolve(_.qI(_.Ay));xz&&L(xz.isKeyBoardInUse());return!1});
V=_.Pj(function(){L(!1);return!1});
var P=function(){return Object.assign({},N==null?void 0:N(),{onToggle:C,toggleable:!0,toggled:M(),focused:h()})};
return _.t("toggle-button-view-model",{"on:focusin":c,"on:focusout":V,class:E},_.t(_.NI,{cond:function(){return M()?k(n().toggledButtonViewModel):k(n().defaultButtonViewModel)},
then:function(xz){return _.t(_.zn,{data:xz,className:E,style:w,useOutlinedIcon:x,buttonOverrides:P,animatedTextProps:X})}}))},"v");
_.fX.idomCompat={callbacks:{onToggle:!0}};_.Gj(_.GM(function(W){return _.t("yt-toggle-button-view-model",{class:function(){var k;return(k=W.scopingClassName)==null?void 0:k.call(W)}},_.t(_.fX,{data:function(){var k;
return(k=W.data)==null?void 0:k.call(W)},
buttonShapeOverrides:function(){var k;return(k=W.overrides)==null?void 0:k.call(W)},
animatedTextPropsDefault:function(){var k;return(k=W.animatedTextPropsDefault)==null?void 0:k.call(W)},
animatedTextPropsToggled:function(){var k;return(k=W.animatedTextPropsToggled)==null?void 0:k.call(W)},
disableExplicitClickLogging:function(){var k;return(k=W.disableExplicitClickLogging)==null?void 0:k.call(W)},
onToggle:function(k){var C;return(C=W.onToggle)==null?void 0:C.call(W,k)},
style:function(){var k;return(k=W.style)==null?void 0:k.call(W)},
useOutlinedIcon:function(){var k;return(k=W.useOutlinedIcon)==null?void 0:k.call(W)},
className:function(){var k;return(k=W.className)==null?void 0:k.call(W)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.Ik,
buttonShapeOverrides:_.Ik,overrides:_.Ik,animatedTextPropsDefault:_.Ik,animatedTextPropsToggled:_.Ik,disableExplicitClickLogging:_.Ik,onToggle:_.si,style:_.Ik,useOutlinedIcon:_.Ik,className:_.Ik,scopingClassName:_.Ik}});var TW2=function(){return _.R.apply(this,arguments)||this};
_.D(TW2,_.R);TW2.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.d7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.Nj("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.oq.Object.defineProperties(TW2.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.z(this.data.toggleButton,_.Xo),k;if(Number(((k=this.likeCountState)==null?void 0:k.likeCountIfIndifferentNumber)||"0")===0){var C;k=((C=this.data.likeCountPlaceholder)==null?void 0:C.content)||""}else{var n,N,B;k=((n=this.likeCountState)==null?void 0:(N=n.likeCountIfIndifferent)==null?void 0:N.content)||((B=this.data.likeCountPlaceholder)==null?void 0:B.content)||""}var A,w;C=((A=this.likeCountState)==null?void 0:(w=
A.likeCountIfLiked)==null?void 0:w.content)||"1";A=_.z(W.toggledButtonViewModel,_.aS);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.z(W.defaultButtonViewModel,_.aS),{title:k})},toggledButtonViewModel:{buttonViewModel:Object.assign({},A,{title:C})}})}}}});
var NM=TW2;NM.prototype.onTap=NM.prototype.onTap;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],NM.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],NM.prototype,"data",void 0);
_.U([_.Z({selectorArgs:["data.likeCountEntityKey"],selector:kBm}),_.O("design:type",Object)],NM.prototype,"likeCountState",void 0);_.U([_.Z({selectorArgs:["data.engagementStateKey"],selector:pac}),_.O("design:type",Object)],NM.prototype,"engagementState",void 0);_.U([_.G("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],NM.prototype,"isLiked",null);
_.U([_.G("data","likeCountState","isLiked"),_.O("design:type",Object),_.O("design:paramtypes",[])],NM.prototype,"toggleButton",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],NM.prototype,"onTap",null);NM=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],NM);
_.q(NM,"yt-live-chat-like-button-view-model",function(){if(PY8===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;gVs===void 0&&(gVs=document.createElement("template"));var n=gVs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);PY8=W}W=PY8;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var qtz;var uWx;var UUz=function(){return _.R.apply(this,arguments)||this};
_.D(UUz,_.R);var Y$=UUz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Y$.prototype,"data",void 0);Y$=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Y$);
_.q(Y$,"yt-live-chat-paid-message-footer-renderer",function(){if(uWx===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qtz===void 0&&(qtz=document.createElement("template"));var n=qtz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uWx=W}W=uWx;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var OjS;var LyS;var jPI;var HjS,rG2=function(){if(HjS!==void 0)return HjS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;jPI===void 0&&(jPI=document.createElement("template"));var n=jPI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return HjS=W};var BL=function(){return _.R.apply(this,arguments)||this};
_.D(BL,_.R);BL.prototype.onTap=function(W){W.stopPropagation()};
_.oq.Object.defineProperties(BL.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.z(this.data.replyButton,_.aS),k,C,n,N,B,A,w,x=Number(((k=this.replyCountState)==null?void 0:k.replyCountNumber)||"0")===0?(C=this.data)==null?void 0:(n=C.replyCountPlaceholder)==null?void 0:n.content:((N=this.replyCountState)==null?void 0:(B=N.replyCount)==null?void 0:B.content)||((A=this.data)==null?void 0:(w=A.replyCountPlaceholder)==null?void 0:w.content)||"",E;return Object.assign({},
W,{title:x,accessibilityText:(E=this.replyCountState)==null?void 0:E.replyButtonAccessibilityText})}}}});
_.oq.Object.defineProperties(BL,{template:{configurable:!0,enumerable:!0,get:function(){return rG2()}}});
var by=BL;by.prototype.onTap=by.prototype.onTap;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],by.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],by.prototype,"data",void 0);
_.U([_.Z({selectorArgs:["data.replyCountEntityKey"],selector:function(W,k){return _.hQ(W.entities,"replyCountEntity",k)}}),
_.O("design:type",Object)],by.prototype,"replyCountState",void 0);_.U([_.G("data","replyCountState"),_.O("design:type",Object),_.O("design:paramtypes",[])],by.prototype,"buttonViewModel",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],by.prototype,"onTap",null);by=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],by);
_.q(by,"yt-live-chat-reply-button-view-model",function(){return rG2()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var guI;var PQx;var An=function(){var W=_.R.apply(this,arguments)||this;W.ariaLabel="";return W};
_.D(An,_.R);
An.prototype.dataChanged=function(){for(var W=(0,_.Up)(_.S(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var k=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(k.polymerController.icon="yt-sys-icons:shield-filled",k.polymerController.defaultToFilled=!0):k.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(k)}else if(this.data.customThumbnail){k=document.createElement("img");
var C=_.Kxp(this.data.customThumbnail.thumbnails,16);C?(k.src=C,W.appendChild(k),k.setAttribute("alt",this.hostElement.ariaLabel||"")):_.zJ(new _.AM("Could not compute URL for thumbnail",this.data.customThumbnail))}};
An.prototype.identity=function(W){return W};
An.prototype.computeType=function(W){return OC(W||void 0)};
var Fq=An;Fq.prototype.dataChanged=Fq.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],Fq.prototype,"data",void 0);_.U([_.Z({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.O("design:type",Object)],Fq.prototype,"ariaLabel",void 0);_.U([_.Z({computed:"computeType(data)",reflectToAttribute:!0}),_.O("design:type",String)],Fq.prototype,"type",void 0);
_.U([_.Z({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.O("design:type",String)],Fq.prototype,"sharedTooltipText",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("live_chat_enable_new_moderator_badge")}}),
_.O("design:type",Boolean)],Fq.prototype,"enableNewModeratorBadge",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fq.prototype,"dataChanged",null);Fq=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Fq);
_.q(Fq,"yt-live-chat-author-badge-renderer",function(){if(PQx===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;guI===void 0&&(guI=document.createElement("template"));var n=guI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);PQx=W}W=PQx;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Kyx;var h5Y;var Wxs=function(){return _.R.apply(this,arguments)||this};
_.D(Wxs,_.R);_.Y=Wxs.prototype;_.Y.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"}}}}};
_.Y.computeBadgesInsideChip=function(W){return W?W.filter(function(k){return OC(k.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.Y.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(k){k=OC(k.liveChatAuthorBadgeRenderer);return k!=="verified"&&k!=="owner"})};
_.Y.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(k){k=OC(k.liveChatAuthorBadgeRenderer);return k!=="verified"&&k!=="owner"}):[]};
_.Y.computeIsHighlighted=function(W,k){var C=!!FNw(W,"owner"),n=!!FNw(W,"verified");W=!!FNw(W,"moderator");return(C||n&&!W)&&!k};
_.Y.computeAuthorType=function(W){return APz(W)};
_.Y.computeAuthorClass=function(W,k){return k?(W?W+" ":"")+"single-line":W};
_.Y.onSeedColorChanged=function(){_.m("live_chat_author_name_color_usernames")||_.m("live_chat_seed_color_usernames")||_.m("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):_.m("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var wL=Wxs;wL.prototype.onSeedColorChanged=wL.prototype.onSeedColorChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],wL.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wL.prototype,"authorName",void 0);_.U([_.Z(),_.O("design:type",Array)],wL.prototype,"authorBadges",void 0);
_.U([_.Z({computed:"computeAuthorType(authorBadges)"}),_.O("design:type",String)],wL.prototype,"authorType",void 0);_.U([_.Z({computed:"computeAuthorClass(authorType, singleLine)"}),_.O("design:type",String)],wL.prototype,"authorClass",void 0);_.U([_.Z({computed:"computeBadgesInsideChip(authorBadges)"}),_.O("design:type",Array)],wL.prototype,"badgesInsideChip",void 0);_.U([_.Z({computed:"computeBadgesOutsideChip(authorBadges)"}),_.O("design:type",Array)],wL.prototype,"badgesOutsideChip",void 0);
_.U([_.Z({computed:"computeBadgesBeforeChip(authorBadges)"}),_.O("design:type",Array)],wL.prototype,"badgesBeforeChip",void 0);_.U([_.Z({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.O("design:type",Boolean)],wL.prototype,"isHighlighted",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],wL.prototype,"singleLine",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],wL.prototype,"disableHighlighting",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],wL.prototype,"dashboardMoneyFeed",void 0);_.U([_.Z({value:_.m("live_chat_prepend_badges"),reflectToAttribute:!0}),_.O("design:type",Boolean)],wL.prototype,"prependChatBadges",void 0);_.U([_.Z(),_.O("design:type",String)],wL.prototype,"authorNameColor",void 0);_.U([_.gi("#author-name"),_.O("design:type",HTMLDivElement)],wL.prototype,"username",void 0);
_.U([_.Hl("authorNameColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wL.prototype,"onSeedColorChanged",null);wL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],wL);
_.q(wL,"yt-live-chat-author-chip",function(){if(h5Y===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Kyx===void 0&&(Kyx=document.createElement("template"));var n=Kyx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);h5Y=W}W=h5Y;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var kNY;var CGz;var nJS=function(){var W=_.R.apply(this,arguments)||this;W.debounceCommand=_.w2(function(k){W.ytComponentBehavior.resolveCommand(k)},1500);
return W};
_.D(nJS,_.R);nJS.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",k,C,n=this.isHearted?(k=this.data)==null?void 0:k.unheartCommand:(C=this.data)==null?void 0:C.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.d7("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.fi(n))&&this.debounceCommand(W)}};
_.oq.Object.defineProperties(nJS.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,k;if(!((W=this.data)==null?0:(k=W.creatorThumbnail)==null?0:k.sources))return{};W={thumbnails:[]};k={};k.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(k);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
var x$=nJS;x$.prototype.onTap=x$.prototype.onTap;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],x$.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],x$.prototype,"data",void 0);
_.U([_.Z({selectorArgs:["data.engagementStateKey"],selector:pac}),_.O("design:type",Object)],x$.prototype,"engagementState",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],x$.prototype,"thumbnailDetails",null);_.U([_.G("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],x$.prototype,"isHearted",null);_.U([_.G("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],x$.prototype,"isEditable",null);
_.U([_.G("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],x$.prototype,"showCreatorView",null);_.U([_.G("data","engagementState"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],x$.prototype,"showButton",null);_.U([_.G("data","isHearted"),_.O("design:type",String),_.O("design:paramtypes",[])],x$.prototype,"label",null);_.U([_.G("data","isHearted"),_.O("design:type",Object),_.O("design:paramtypes",[])],x$.prototype,"heartHoverText",null);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],x$.prototype,"onTap",null);x$=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],x$);
_.q(x$,"yt-live-chat-creator-heart-view-model",function(){if(CGz===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;kNY===void 0&&(kNY=document.createElement("template"));var n=kNY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);CGz=W}W=CGz;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var ly=function(W,k){this.serviceId=new $7S(W,k)};
ly.prototype.toString=function(){return this.serviceId.toString()};var NCA=function(){this.internalMap={}};
_.Y=NCA.prototype;_.Y.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.Y.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.Y.set=function(W,k){this.internalMap[W]=k};
_.Y.getKeys=function(){return Object.keys(this.internalMap)};
_.Y.remove=function(W){delete this.internalMap[W]};var tn=function(){this.mappings=new NCA;this.errorCallbacks=new Set};
tn.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
tn.prototype.get=function(W){var k=this.mappings.get(W.toString());return Y08(this,k,W)};
tn.prototype.getMultipleAsync=function(){var W=_.v6.apply(0,arguments),k=this,C=W.map(function(x){return k.getModuleId(x)}),n=W.map(function(x){return k.mappings.get(x.toString())}).filter(function(x){return x});
if(n.length===W.length)return _.nB(n.map(function(x,E){return Y08(k,x,W[E])}));
var N=VQ().loadMultiple(C);n=_.EY(C.map(function(x){return N[x]}));
var B=document.hidden,A=-1,w=_.Oe("get_async_timeout_ms",-1);w>-1&&(A=setTimeout(function(){_.zJ(new _.AM("Module timeout.",C,B,document.hidden))},w));
return _.aa(n.then(function(){return W.map(function(x){return Y08(k,k.mappings.get(x.toString()),x)})}).thenCatch(function(x){for(var E=_.b(k.errorCallbacks),a=E.next();!a.done;a=E.next())a=a.value,a(x);
throw x;}),function(){clearTimeout(A)})};
tn.prototype.registerService=function(W,k){this.mappings.set(W.toString(),{type:"mapping",value:k});return W};
var Y08=function(W,k,C){switch(k.type){case "mapping":return k.value;case "factory":return k=k.value(),W.mappings.set(C.toString(),{type:"mapping",value:k}),k;default:return _.oI(k)}};
tn.prototype.onLoadError=function(W){var k=this;this.errorCallbacks.add(W);return function(){k.errorCallbacks.delete(W)}};
_.E9=new tn;var BCZ=function(){};
_.Y=BCZ.prototype;
_.Y.JSC$11766_getRequest=function(W,k,C){k=k===void 0?{}:k;C=C===void 0?GX8:C;var n=k;if(this.isNavigationCommand()){var N,B=(N=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:N.url;n=_.$YP(W.clickTrackingParams,!0,!1,B,this.JSC$11766_getClientScreen(n))}else n=_.$YP(W.clickTrackingParams,!1,this.includeCsn);n={context:n};if(N=this.getExtension(W))return this.JSC$11766_buildRequest(n,N,k),N=this.getApiUrl(W),B=Object.assign({},{command:W},this.getRequestConfig(W,k)),n={input:N,requestShell:$e(N),
innerTubeRequest:n,config:B},n.config.authStrategy?n.config.authStrategy.identity=C:n.config.authStrategy={identity:C},(W=this.JSC$11766_getRequestKey(W,k))&&!n.config.requestKey&&(n.config.requestKey=W),n;W=new _.AM("Error: Failed to create Request from Command.",W);_.dI(W)};
_.Y.getApiUrl=function(W){var k=_.RY(this.getApiPaths(W)),C;(W=(C=_.z(W.commandMetadata,_.Ok))==null?void 0:C.apiUrl)&&(k=W);return O_3(UFm(k))};
_.Y.isNavigationCommand=function(){return!1};
_.Y.JSC$11766_getClientScreen=function(){};
_.Y.JSC$11766_getRequestKey=function(){};
_.Y.getRequestConfig=function(){};
_.oq.Object.defineProperties(BCZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var ap=function(){};
_.D(ap,BCZ);ap.prototype.JSC$11773_getStoreKey=function(){};
ap.prototype.JSC$11766_getRequestKey=function(W,k){k=k===void 0?{}:k;return this.JSC$11773_getStoreKey(W,k)};var Xq=function(){};
_.D(Xq,ap);Xq.prototype.JSC$11766_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:$e("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Xq.prototype.getApiPaths=function(){return[]};
Xq.prototype.getExtension=function(){};
Xq.prototype.JSC$11766_buildRequest=function(){};var bJY={},AIC=(bJY.GET_DATASYNC_IDS=m0(Xq),bJY);var FxZ,wWY,xpA,ZG8,fR,EJC,uTS,tlZ,lKx;FxZ="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");wWY=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.cJ=function(W,k,C,n,N,B,A,w,x){this.endpointMap=W;this.networkManager=k;this.authService=C;this.responseProcessorMap=n;this.innertubeResponseStore=N;this.contextProcessors=B;this.asyncContextProcessors=A;this.localInnertubeRouter=w;this.requestSequencer=x;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},AIC,W.signalEndpointMap)};
xpA=function(W,k,C,n,N,B,A,w,x){if(_.cJ.instance!==void 0){if(n=_.cJ.instance,W=[W!==n.endpointMap,k!==n.networkManager,C!==n.authService,N!==n.innertubeResponseStore,B!==n.contextProcessors,A!==n.asyncContextProcessors,w!==n.localInnertubeRouter],W.some(function(E){return E}))throw new _.AM("InnerTubeTransportService is already initialized",W);
}else _.cJ.instance=new _.cJ(W,k,C,n,N,B,A,w,x)};
_.Sr=function(W,k,C){var n=n===void 0?GX8:n;var N=uTS(W,k);return N?new _.Wx(function(B,A){var w,x,E,a,X;return _.F(function(d){switch(d.nextAddress){case 1:return _.l(d,N,2);case 2:w=d.yieldResult;x=w.JSC$11766_getRequest(k,C,n);if(!x){A(new _.AM("Error: Failed to build request for command.",k));d.jumpTo(0);break}mg(x.input);a=((E=x.requestShell)==null?void 0:E.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){X=lKx(x.config,a);d.jumpTo(4);break}return _.l(d,tlZ(x.config,a),5);case 5:X=
d.yieldResult;case 4:B(EJC(W,x,X)),_.ab(d)}})}):_.eh(new _.AM("Error: No request builder found for command.",k))};
ZG8=function(W,k,C,n){var N=N===void 0?GX8:N;var B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P;return _.F(function(xz){switch(xz.nextAddress){case 1:B=NoJ(k,W.endpointMap);if(!B)throw new _.AM("Error: No streaming request builder found for command",k);A=B.JSC$11766_getRequest(k,C,N);if(!A)throw new _.AM("Failed to build YtRequest for streaming Command",k);if((w=W.localInnertubeRouter)==null||!w.shouldPreferLocalResponse(A.input,A.innerTubeRequest)){xz.jumpTo(2);break}return _.l(xz,W.localInnertubeRouter.localInnertubeResponse(A.input,
A.innerTubeRequest),3);case 3:return x=xz.yieldResult,E={},x.playerResponse&&(fR(W,x.playerResponse,A),E.player=x.playerResponse,(a=n)==null||a(E,x)),x.watchNextResponse&&(fR(W,x.watchNextResponse,A),E.content=x.watchNextResponse,(X=n)==null||X(E,x)),xz.return(E);case 2:V=((d=A.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){c=lKx(A.config,V);xz.jumpTo(4);break}return _.l(xz,tlZ(A.config,V),5);case 5:c=xz.yieldResult;case 4:return e=(p=(M=A.requestShell)==null?
void 0:M.headers)!=null?p:{},A.requestShell=Object.assign({},A.requestShell,{headers:Object.assign({},e,c)}),u=Object.assign({},A.requestShell),h=JSON.stringify(A.innerTubeRequest),A.requestShell.method==="POST"&&(u=Object.assign({},u,{body:h})),L=function(Sp,vw){fR(W,vw.playerResponse||vw.watchNextResponse||vw.reelItemWatchResponse||vw.reelWatchSequenceResponse,A);n==null||n(Sp,vw)},Bw={},_.l(xz,aK8(W.networkManager,A.input,u,L),6);
case 6:return Bw=xz.yieldResult,((P=A.config)==null?0:P.responseTick)&&_.cN(A.config.responseTick),xz.return(Bw)}})};
_.DY=function(W,k,C,n,N){N=N===void 0?{authStrategy:{identity:GX8}}:N;var B=B===void 0?!0:B;var A=function(){};
A=Alw(Y7X(C));k.context||(k.context=_.$YP(n,B));return new _.Wx(function(w){var x,E,a,X,d;return _.F(function(V){if(V.nextAddress==1)return x=UFm(C),E=_.yM(x),W.authService.syncHeaders?(a=lKx(N,E),V.jumpTo(2)):_.l(V,tlZ(N,E),3);V.nextAddress!=2&&(a=V.yieldResult);X=O_3(UFm(C));d={input:X,requestShell:$e(X),innerTubeRequest:k,config:N};w(EJC(W,d,a,A));_.ab(V)})})};
fR=function(W,k,C){var n;if(k&&!(k==null?0:(n=k.sequenceMetaData)==null?0:n.skipProcessing)&&W.responseProcessorMap){n=_.b(FxZ);for(var N=n.next();!N.done;N=n.next())N=N.value,W.responseProcessorMap[N]&&W.responseProcessorMap[N].handleResponse(k,C)}};
EJC=function(W,k,C,n){n=n===void 0?function(){}:n;
var N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp,vw,lw,G4,nA,Xs,aI,LA,dj,hK,Tz,S8,ms,pA,k3,oe,bw,C7,j8,CL;return _.F(function(EA){switch(EA.nextAddress){case 1:A=(N=k.config)==null?void 0:(B=N.storeStrategy)==null?void 0:B.storeKey;if(!(A&&W.innertubeResponseStore&&W.innertubeResponseStore.has(A))||((w=k.config)==null?0:(x=w.storeStrategy)==null?0:x.disableCache)){EA.jumpTo(2);break}return _.l(EA,W.innertubeResponseStore.get(A),3);case 3:if((E=EA.yieldResult)&&!E.isExpired())return EA.return(Promise.resolve(_.kN(E)));
case 2:if(!((a=k)==null?0:(X=a.innerTubeRequest)==null?0:X.context)){EA.jumpTo(4);break}d=k.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){EA.jumpTo(5);break}V=[];c=_.b(W.asyncContextProcessors);for(M=c.next();!M.done;M=c.next())p=M.value,e=p.processContext(k),e.wrappedPromise_&&V.push(e.wrappedPromise_);if(!(V.length>0)){EA.jumpTo(5);break}return _.l(EA,Promise.all(V),5);case 5:u=_.b(W.contextProcessors||[]),h=u.next();case 8:if(h.done){EA.jumpTo(4);break}L=
h.value;return _.l(EA,L.processContext(d),9);case 9:h=u.next();EA.jumpTo(8);break;case 4:if((Bw=W.localInnertubeRouter)==null||!Bw.shouldPreferLocalResponse(k.input,k.innerTubeRequest)){EA.jumpTo(12);break}return _.l(EA,W.localInnertubeRouter.localInnertubeResponse(k.input,k.innerTubeRequest),13);case 13:return P=EA.yieldResult,fR(W,P,k),EA.return(P);case 12:return(vw=(Sp=k.config)==null?void 0:Sp.requestKey)&&W.inflightRequests.has(vw)?xz=W.inflightRequests.get(vw):(lw=JSON.stringify(k.innerTubeRequest),
Xs=(nA=(G4=k.requestShell)==null?void 0:G4.headers)!=null?nA:{},k.requestShell=Object.assign({},k.requestShell,{headers:Object.assign({},Xs,C)}),aI=Object.assign({},k.requestShell),k.requestShell.method==="POST"&&(aI=Object.assign({},aI,{body:lw})),((LA=k.config)==null?0:LA.requestTick)&&_.cN(k.config.requestTick),dj=function(){return W.networkManager.fetch(k.input,aI,k.config)},xz=W.requestSequencer?XWY(W.requestSequencer,k,dj):dj(),vw&&W.inflightRequests.set(vw,xz)),_.l(EA,xz,14);
case 14:if((hK=EA.yieldResult)&&"error"in hK&&((Tz=hK)==null?0:(S8=Tz.error)==null?0:S8.details))for(ms=hK.error.details,pA=_.b(ms),k3=pA.next();!k3.done;k3=pA.next())oe=k3.value,(bw=oe["@type"])&&wWY.indexOf(bw)>-1&&(delete oe["@type"],hK=oe);vw&&W.inflightRequests.has(vw)&&W.inflightRequests.delete(vw);((C7=k.config)==null?0:C7.responseTick)&&_.cN(k.config.responseTick);if(hK||(j8=W.localInnertubeRouter)==null||!j8.canProvideFallbackResponse(k.input,k.innerTubeRequest)){EA.jumpTo(15);break}return _.l(EA,
W.localInnertubeRouter.localFallbackInnertubeResponse(k.input,k.innerTubeRequest),16);case 16:hK=EA.yieldResult;case 15:return fR(W,hK,k),((CL=k.config)==null?0:CL.processorTick)&&_.cN(k.config.processorTick),n(),EA.return(hK||void 0)}})};
_.Ih=function(W,k){return nHw(k,W.endpointMap)};
uTS=function(W,k){W=Yl2(k,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
tlZ=function(W,k){var C,n,N,B;return _.F(function(A){if(A.nextAddress==1){N=(C=W)==null?void 0:(n=C.authStrategy)==null?void 0:n.sessionIndex;var w=_.nB(Xl2({sessionIndex:N}));return _.l(A,w,2)}B=A.yieldResult;return A.return(Promise.resolve(Object.assign({},BoI(k),B)))})};
lKx=function(W,k){var C;W=W==null?void 0:(C=W.authStrategy)==null?void 0:C.sessionIndex;C=Xl2({sessionIndex:W});return Object.assign({},BoI(k),C)};var fKS,dpY,mpY,zQs,Dpz,Vl8,IK2,S0A,zP,Mls,QBx,cIY,pWC;fKS=0;dpY=/tone[1-5]/;mpY=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");zQs="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Dpz=Number.MAX_SAFE_INTEGER;Vl8=RegExp("\ufe0f","g");_.dL=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.JIz(this,W)};
_.JIz=function(W,k){try{_.hj(k,{context:W,onSuccess:function(n,N){Array.isArray(N)?W.load(N):(n=new _.AM("Emoji manager JSON response was not an array!",{response:N}),_.dI(n))},
onError:function(n){n=new _.AM("Failed to retrieve emoji manager initial JSON data!",{url:k,statusCode:Hv(n).toString()});_.zJ(n)}})}catch(n){var C=new _.AM("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:k});
_.zJ(C)}};
_.dL.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.dL.prototype.load=function(W,k){if(k)if(W.length)W=W.concat(k.emojis);else{this.emojis=k.emojis;this.emojiMap=k.emojiMap;this.emojiShortcutMap=k.emojiShortcutMap;this.emojiShortcutCharMap=cIY(k);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=k.emojiRegex;return}this.emojis=[].concat(_.J8(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(k=0;k<this.emojis.length;k++){var C=this.emojis[k];if(C.emojiId){this.emojiMap[C.emojiId]=C;this.emojiMap[C.emojiId].index=
k;for(var n=0;C.shortcuts&&n<C.shortcuts.length;n++)this.emojiShortcutMap[C.shortcuts[n].toLocaleLowerCase()]=C;W[k]=C.isCustomEmoji&&C.shortcuts?C.shortcuts[0]:C.emojiId}}W.sort(function(N,B){return B.length-N.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(N){this.emojiRegex=/$./}else this.emojiRegex=/$./};
IK2=function(W,k){k=_.b(k);for(var C=k.next();!C.done;C=k.next()){var n=C.value;if(n.emojiId&&W.emojiMap[n.emojiId]){C=Object.assign({},W.emojiMap[n.emojiId],n);W.emojiMap[n.emojiId]=C;var N=void 0;C.index&&((N=W.emojis[C.index])==null?void 0:N.emojiId)===n.emojiId&&(W.emojis[C.index]=C);n=void 0;if((n=C.shortcuts)==null?0:n.length)for(W.hasInitializedShortcutCharMap=!1,n=_.b(C.shortcuts),N=n.next();!N.done;N=n.next())W.emojiShortcutMap[N.value.toLocaleLowerCase()]=C}}};
S0A=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,_.wF.getInstance(),2);if(n.nextAddress!=3)return(k=n.yieldResult)?_.l(n,k.get("ytlc-emoji-pref"),3):n.return();(C=n.yieldResult)&&IK2(W,Object.keys(C).map(function(N){return{emojiId:N,stickyPrefId:C[N]}}).filter(function(N){return!!N.emojiId&&!!N.stickyPrefId}));
_.ab(n)})};
_.m1=function(W,k,C){return(W=W.emojiMap[k])&&(!W.isLocked||C!==void 0&&C)?W:void 0};
zP=function(W,k,C){C=_.m1(W,k,C===void 0?!1:C);var n=k.match("\u200d");C&&W.skinTone!==0&&(W=(n==null?void 0:n.length)===1?_.m1(W,k.replace("\u200d",mpY[W.skinTone]+"\u200d")):_.m1(W,k+mpY[W.skinTone]))&&(C=W);return C};
Mls=function(W,k){var C=W.emojiMap[k];return(C==null?0:C.stickyPrefId)?W.emojiMap[C.stickyPrefId]:zP(W,k)};
_.FY=function(W,k){W=W.emojiShortcutMap[k.toLocaleLowerCase()];return!W||W.isLocked?null:W};
QBx=function(W,k,C){return cIY(W,C===void 0?!1:C)[k]||{}};
cIY=function(W,k){k=k===void 0?!1:k;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var C=0;C<W.emojis.length;C++){var n=W.emojis[C];if(!(n.isLocked||k&&n.isCustomEmoji&&n.emojiId&&!W.pickerCustomEmojiIds.includes(n.emojiId)))for(var N=0;n.shortcuts&&N<n.shortcuts.length;N++){var B=n.shortcuts[N];B.startsWith(":_")&&n.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][B]=n);if(!(B.length<3||
!n.isCustomEmoji&&dpY.test(B))){var A=B.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[A]==null&&(W.emojiShortcutCharMap[A]=Object.create(null));W.emojiShortcutCharMap[A][B]=n}}}}return W.emojiShortcutCharMap};
_.dL.prototype.createEmoji=function(W,k){k=k===void 0?!0:k;var C=document.createElement("img");W.isCustomEmoji||C.classList.add("small-emoji");C.classList.add("emoji");C.classList.add("yt-formatted-string");C.src=W.image?_.yI(W.image.thumbnails,this.emojiSize)||"":"";var n=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(n=W.image.accessibility.accessibilityData.label);C.alt=n?n:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(C.dataset.emojiId=
W.emojiId);_.Cr&&(C.setAttribute("contenteditable","false"),C.setAttribute("unselectable","on"));k&&(W.shortcuts&&W.shortcuts.length&&C.setAttribute("shared-tooltip-text",W.shortcuts[0]),C.id="emoji-"+fKS++);return C};
_.dL.prototype.createDocumentFragment=function(W,k,C,n){k=k===void 0?!1:k;C=C===void 0?!0:C;n=n===void 0?!1:n;W=W.replace(Vl8,"");for(var N=document.createDocumentFragment(),B=0,A,w=0;(A=this.emojiRegex.exec(W))!=null;){var x=_.m1(this,A[0])||_.FY(this,A[0]);!x||x.isCustomEmoji&&!k||(x=this.createEmoji(x,C),B!==A.index&&N.appendChild(document.createTextNode(W.substring(B,A.index))),N.appendChild(x),B=A.index+A[0].length,w++)}if(!n||w)return N.appendChild(document.createTextNode(W.substr(B))),N};
pWC=function(W,k,C){var n,N,B,A,w,x,E,a,X;return _.F(function(d){if(d.nextAddress==1){if(!k.emojiId||!W.emojiMap[k.emojiId])return d.return();n=Object.assign({},W.emojiMap[k.emojiId],{stickyPrefId:C});W.emojiMap[k.emojiId]=n;k.index&&((N=W.emojis[k.index])==null?void 0:N.emojiId)===k.emojiId&&(W.emojis[k.index]=n);if((B=k.shortcuts)==null?0:B.length)for(W.hasInitializedShortcutCharMap=!1,A=_.b(k.shortcuts),w=A.next();!w.done;w=A.next())x=w.value,W.emojiShortcutMap[x.toLocaleLowerCase()]=n;return _.l(d,
_.wF.getInstance(),2)}if(d.nextAddress!=4)return(E=d.yieldResult)?_.l(d,E.get("ytlc-emoji-pref"),4):d.jumpTo(0);X=(a=d.yieldResult)!=null?a:{};X[k.emojiId]=C;return _.l(d,E.set("ytlc-emoji-pref",X,Dpz),0)})};
_.Dp=new _.dL;var sBb;_.V9={};
sBb={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.m("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:_.m("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 eW(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 W=_.S(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.S(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.LO(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.LO(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.LO(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.LO(this,this.onMenuButtonBlur_)))},
identity:_.yP,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return _.m("live_chat_whole_message_clickable")&&W},
computeMenuVisible_:function(W,k){return W||k},
computeHasInlineActionButtons:function(W){if(!W)return!1;var k,C;return!((k=W.inlineActionButtons)==null||!k.length)||!((C=W.additionalInlineActionButtons)==null||!C.length)},
createDocumentFragmentFromString:function(W){var k=_.Dp.createDocumentFragment.bind(_.Dp),C;if((C=this.participantsManager)==null||!C.viewerRegex)return k(W);C=document.createDocumentFragment();for(var n=0,N;(N=this.participantsManager.viewerRegex.exec(W))!=null;){if(N.index>0){var B=":"+N[0]+":";if((_.m1(_.Dp,B)||_.FY(_.Dp,B))&&W.indexOf(B)===N.index-1)continue}C.appendChild(k(W.substring(n,N.index)));n=document.createElement("span");n.appendChild(k(N[0]));n.classList.add("mention");C.appendChild(n);
n=N.index+N[0].length}C.appendChild(k(W.substring(n)));return C},
createDocumentFragment:function(W){var k=document.createDocumentFragment();if(W.simpleText)return k.appendChild(this.createDocumentFragmentFromString(W.simpleText)),k;if(!W.runs)return k;for(var C=0;C<W.runs.length;C++){var n=W.runs[C];if(n.emoji)k.appendChild(_.Dp.createEmoji(n.emoji));else if(n.text)if(n.navigationEndpoint){var N=document.createElement("a");N.classList.add("yt-simple-endpoint");$jw(N,n.navigationEndpoint);_.S(N).appendChild(this.createDocumentFragmentFromString(n.text));k.appendChild(N)}else k.appendChild(this.createDocumentFragmentFromString(n.text))}return k},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(k){return(k=k instanceof Element?k:null)?k.tagName&&(k.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||k.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.m("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return LNJ(W)},
markAsDeleted:function(W,k){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",k)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var k=_.f().resolve(_.Ah),C=this.data.contextMenuEndpoint,n;(n=_.cJ.instance)&&_.Ih(n,C)?(k=vJI(k,C),n=_.DY(n,{},k)):n=_.eQY(k,C);n.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var k=_.cJ.instance;k&&_.Ih(k,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.KY(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var k=W;_.dI(new _.AM("Error encountered calling GetLiveChatItemContextMenu",k))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Pe(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Pe(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.V9.YtLiveChatItemBehavior=[sBb,_.dh.YtComponentBehavior,_.Ll.YtOpenPopupBehavior];_.Jn=function(){};var GNs;var yIx;var $pb;var ZJS;var RQ8=function(){var W=_.R.apply(this,arguments)||this;W.active=!1;W.identity=_.yP;return W};
_.D(RQ8,_.R);RQ8.prototype.dataChanged=function(){this.active=!1};
RQ8.prototype.onClick=function(){_.Pe(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var cL=RQ8;cL.prototype.dataChanged=cL.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],cL.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cL.prototype,"active",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cL.prototype,"dataChanged",null);cL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],cL);
_.q(cL,"yt-live-chat-text-input-field-suggestion",function(){if(ZJS===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;$pb===void 0&&($pb=document.createElement("template"));var n=$pb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);ZJS=W}W=ZJS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});_.Ip=function(W,k,C){return CustomEvent.call(this,W,{detail:{value:k,path:C}})||this};
_.D(_.Ip,CustomEvent);var oJ8=function(){var W=_.R.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.D(oJ8,_.R);_.Y=oJ8.prototype;_.Y.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.Y.addParticipant=function(W){var k=_.MpJ(this.participants,W,function(n,N){n=n[Object.keys(n)[0]];N=N[Object.keys(N)[0]];n=String(_.y4(n.authorName)).toLowerCase();N=String(_.y4(N.authorName)).toLowerCase();return n<N?-1:n==N?0:1}.bind(this));
if(k>=0){var C=this.participants[k];C[Object.keys(C)[0]].timestampUsec&&this.splice("participants",k,1,W)}else this.splice("participants",-k-1,0,W);W=W[Object.keys(W)[0]];k=_.y4(W.authorName).toLocaleLowerCase();C=k.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(C)||(this.allParticipantsCharMap_[C]={});this.allParticipantsCharMap_[C][k]=W};
_.Y.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.Y.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.Y.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&mh2(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.zM(function(){W.checkForStaleParticipants_()},3E4))};
_.Y.onChatMessage_=function(W){var k=this,C=Date.now()*1E3;W.forEach(function(n){if(n=_.z(n,rkY)){n=n.item;var N=Object.keys(n)[0];k.SUPPORTED_ITEM_TYPES_.indexOf(N)!=-1&&n[N].timestampUsec>=C-k.PARTICIPANT_TIME_USEC_&&k.addParticipant(n)}},this);
this.checkForStaleParticipants_()};
_.Y.trimOldParticipants_=function(){for(var W=Date.now()*1E3,k=this.participants.length-1;k>=0;k--){var C=this.participants[k];C=C[Object.keys(C)[0]];C.timestampUsec&&C.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",k,1)}};
_.Sa=oJ8;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],_.Sa.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],_.Sa.prototype,"viewerName",void 0);_.U([_.Z({computed:"computeViewerRegex_(viewerName)"}),_.O("design:type",Object)],_.Sa.prototype,"viewerRegex",void 0);_.U([_.Z({value:function(){return[]},
notify:!0}),_.O("design:type",Array)],_.Sa.prototype,"participants",void 0);_.Sa=_.U([_.l0({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Sa);var iJI=/.*([:@#].*?)$/,MM=/\u00a0/g,TCx=String.fromCharCode(160),q0z={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"},uGz=function(){var W=_.R.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.Dp;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$11821_lastSuggestionRange=null;return W};
_.D(uGz,_.R);_.Y=uGz.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.Y.attached=function(){_.nr&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.Y.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.Y.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,k={},C;for(C in q0z)this.data&&this.data.hasOwnProperty(C)&&(k[q0z[C]]=this.colorFromDecimal(this.data[C]),W=!0);W&&_.Op(this.hostElement,k)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.Y.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.Y.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.Y.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.Y.preventResize=function(W){W.returnValue=!1};
_.Y.onInputChange=function(){var W=this.characterCount,k=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&k&&k.remove();if(!k&&this.characterCount>this.maxCharacterLimit){var C=window.getSelection();if(C){var n=C.getRangeAt(0);C.removeAllRanges();C.addRange(n)}}if(C=this.getCurrentRange())n=this.calculateTextBeforeRange(C),this.completeEmojisInRange(C,n,!0)||this.updateSuggestions(C,n);n=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(n);
_.Pe(this.hostElement,"yt-live-chat-message-input-change",n);k&&this.characterCount===0&&k.remove();C&&C.commonAncestorContainer.parentElement.id==="input"&&C.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):C&&!C.collapsed&&C.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.Y.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.Y.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.mergeOverflowText=function(W){if(W){var k=document.createRange();k.selectNodeContents(W);k=k.extractContents();this.input.insertBefore(k,W)}};
_.Y.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var k=_.S(this.hostElement).querySelector("#overflow-text"),C=document.createRange();k&&k.previousSibling?k.previousSibling instanceof HTMLImageElement?C.selectNode(k.previousSibling):C.selectNodeContents(k.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?C.selectNode(this.input.lastChild):C.selectNodeContents(this.input.lastChild));C.collapse(!1);return C.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.Y.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var k=_.S(this.hostElement).querySelector("#overflow-text"),C=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(k);for(var n,N=0,B=0,A,w=this.input.childNodes,x=0;x<w.length;x++){var E=w[x];E instanceof Text?(B+=E.textContent.length,B>this.maxCharacterLimit&&(n=E,N=this.maxCharacterLimit+E.textContent.length-B)):E instanceof HTMLImageElement&&
(n=void 0,B=E.dataset.emojiId&&((n=this.data)==null?0:n.emojiCharacterCount)?B+this.data.emojiCharacterCount:B+E.alt.length,n=this.input,N=x);if(B>this.maxCharacterLimit&&n){A=document.createRange();A.collapse(!1);k?(B=this.input.lastChild.previousSibling,B instanceof Text?A.setEnd(this.input.lastChild.previousSibling,B.textContent.length):B instanceof HTMLImageElement&&A.setEnd(this.input,this.input.childNodes.length-1)):A.selectNodeContents(this.input);A.setStart(n,N);break}}A&&(n=!1,C&&(W=A.isPointInRange(C.startContainer,
C.startOffset-1)),k||(k=document.createElement("span"),k.id="overflow-text",k.textContent="",k.setAttribute("contenteditable","true"),_.S(_.S(this.hostElement).querySelector("#input")).appendChild(k),n=!0),k&&(C=A.extractContents(),k.insertBefore(C,k.firstChild),W&&k.firstChild&&(C=document.createRange(),n?C.setStartAfter(k.lastChild):C.setStartAfter(k.firstChild),C.collapse(!0),k=window.getSelection(),k.removeAllRanges(),k.addRange(C))))}};
_.Y.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var k=this.input.childNodes[W];if(k.nodeName==="SPAN"){var C=document.createRange();C.selectNodeContents(k);C=C.extractContents();this.input.insertBefore(C,k);k.remove()}}this.handleOverflowText(!0)};
_.Y.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.Y.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var k=W.commonAncestorContainer,C=!1,n=_.S(this.hostElement).querySelector("#input");k;){if(k===n){C=!0;break}k=k.parentNode}C||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.Y.getRangeAtEnd=function(){var W=document.createRange(),k=_.S(this.hostElement).querySelector("#input").lastChild;!k||k.nodeName!=="#text"&&k.nodeName!=="SPAN"?(W.selectNodeContents(_.S(this.hostElement).querySelector("#input")),W.collapse(!1)):k.nodeName==="#text"?W.setStart(k,k.textContent.length):W.setStart(k,k.childNodes.length);return W};
_.Y.getSuggestions=function(W){var k=[],C=W.substring(0,3),n=QBx(_.Dp,C,!0);if(n)for(var N in n)if(N.toLocaleLowerCase().indexOf(W)===0){var B=n[N];if(B&&B.emojiId){if(B=Mls(_.Dp,B.emojiId)){var A=void 0,w=void 0,x=void 0,E=void 0,a=((A=B.image)==null?0:(w=A.accessibility)==null?0:(x=w.accessibilityData)==null?0:x.label)||B.isCustomEmoji?(E=B.shortcuts)==null?void 0:E[0]:B.emojiId;k.push({suggestion:{emoji:!0,image:B.image,alt:a,text:N,textToInsertWhenSelected:B.isCustomEmoji?N:a}})}if(k.length>=
64)break}}if(!this.participantsManager)return null;n=_.m("enable_web_yt_handles")||_.m("enable_live_chat_yt_handles");if(C.indexOf("@")===0||C.indexOf("#")===0)if(N=C.charAt(0),W=W.substring(1),C=n&&C.indexOf("@")===0?C.substring(0,2):C.substring(1),C=this.participantsManager.getAuthorsFromPrefix(C))for(var X in C)if(X.indexOf(W)===0||n&&X.indexOf(N+W)===0)if(B=C[X],A=_.y4(B.authorName),k.push({suggestion:{author:!0,authorType:N,image:B.authorPhoto,alt:A,text:A}}),k.length>=64)break;return k?k.sort(function(d,
V){return V.suggestion.text<d.suggestion.text?-1:V.suggestion.text===d.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(W){var k=_.m("enable_web_yt_handles")||_.m("enable_live_chat_yt_handles")?W.text+TCx:W.authorType+W.text+TCx;W.emoji?this.insertTextAtRange(this.JSC$11821_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$11821_lastSuggestionRange,k)};
_.Y.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.Y.offsetStartOfRangeBy=function(W,k){for(;k>0;)if(W.startOffset-k>=0){W.setStart(W.startContainer,W.startOffset-k);break}else{k=W.startContainer instanceof HTMLImageElement?k-W.startContainer.alt.length:k-W.startOffset;var C=W.startContainer.previousSibling;if(!C){W.setStart(W.startContainer,0);break}if(_.m("live_chat_require_space_for_autocomplete_emoji")){var n=void 0,N=void 0;W.setStart(C,((n=C)==null?void 0:(N=n.textContent)==null?void 0:N.length)||0)}else W.setStart(C,C.childNodes.length||
0)}};
_.Y.updateSuggestions=function(W,k){var C=this;this.JSC$11821_lastSuggestionRange&&(this.JSC$11821_lastSuggestionRange.detach(),this.JSC$11821_lastSuggestionRange=null);if((k=iJI.exec(k))&&k.length&&(k=k[k.length-1].toLocaleLowerCase(),k.length>2&&(this.offsetStartOfRangeBy(W,k.length),this.JSC$11821_lastSuggestionRange=W,(W=this.getSuggestions(k))&&W.length))){this.suggestions=W;_.ZR(this,function(){_.S(C.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.Y.completeEmojisInRange=function(W,k,C){var n=k.replace(/[\s\xa0]+$/,"");k=k.length-n.length;n=n.split(" ");n=n[n.length-1].trim().toLocaleLowerCase();var N=n.lastIndexOf(":");if(C&&!k&&N!==n.length-1)return!1;N!==-1&&(C=n.lastIndexOf(":",N-1),C!==-1&&(n=n.substring(C)));if((C=_.FY(_.Dp,n))&&C.emojiId){C=Mls(_.Dp,C.emojiId)||null;this.offsetStartOfRangeBy(W,n.length+k);var B,A,w,x;n=(((B=C)==null?0:B.isCustomEmoji)?(A=C)==null?void 0:(w=A.shortcuts)==null?void 0:w[0]:(x=C)==null?void 0:x.emojiId)||
"";k&&(n+=TCx);this.insertTextAtRange(W,n);this.dropdown.opened=!1;return!0}return!1};
_.Y.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.Y.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Pe(this.hostElement,"yt-live-chat-send-message"))};
_.Y.completeEmojis=function(){var W=document.createRange(),k=_.S(this.hostElement).querySelector("#input").lastChild;k?W.setStart(k,k.childNodes.length):(W.selectNodeContents(_.S(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.m("live_chat_require_space_for_autocomplete_emoji"))};
_.Y.maybePreventTextFormatting=function(W){!_.B9||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.Y.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.Y.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Cr)this.onInputChange()};
_.Y.changeSuggestionIndex=function(W){if(this.dropdown.opened){var k=_.S(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<k.children.length&&(k.children[this.suggestionIndex].active=!1);var C=this.suggestions.length;this.suggestionIndex=(W+C)%C;W=k.children[this.suggestionIndex];W.active=!0;k.scrollTop=W.offsetTop}};
_.Y.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.onFocus=function(){this._setFocused(!0)};
_.Y.onBlur=function(){this._setFocused(!1)};
_.Y.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.Y.insertTextAtRange=function(W,k){if(W&&(W.collapsed||W.deleteContents(),k=_.Dp.createDocumentFragment(k,!0,!1))){for(var C=_.b((k==null?void 0:k.childNodes)||[]),n=C.next();!n.done;n=C.next()){n=n.value;var N=void 0,B=void 0,A=void 0,w=void 0,x=void 0;(A=(N=window)==null?void 0:(B=N.ShadyCSS)==null?void 0:B.ScopingShim)==null||(x=(w=A).scopeNode)==null||x.call(w,n,this.hostElement.localName)}C=k.lastChild;W.insertNode(k);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(C);
W.collapse(!1);if(k=window.getSelection())k.removeAllRanges(),k.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.Pe(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.Y.setLiveChatRichMessageInput=function(W){_.S(_.S(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var k=0;k<W.textSegments.length;k++){var C=W.textSegments[k];C.text?_.S(_.S(this.hostElement).querySelector("#input")).appendChild(_.Dp.createDocumentFragment(C.text,!0,!1)):C.emojiId&&(C=_.m1(_.Dp,C.emojiId))&&_.S(_.S(this.hostElement).querySelector("#input")).appendChild(_.Dp.createEmoji(C,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.Y.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.Y.calculateTextBeforeRange=function(W){var k="",C=W.startContainer;if(C&&C instanceof Text){var n;k=((n=C.textContent)==null?void 0:n.substring(0,W.startOffset))||"";C=C.previousSibling}for(;C&&C instanceof Text;)k=C.textContent+k,C=C.previousSibling;return k.replace(MM," ")};
_.Y.calculateLiveChatRichMessageInput=function(){for(var W=[],k="",C=_.S(_.S(this.hostElement).querySelector("#input")).childNodes,n=0;n<C.length;n++){var N=C[n];N instanceof Text?k+=N.textContent:N instanceof HTMLImageElement&&(N.dataset.emojiId?(k&&(W.push({text:k.replace(MM," ")}),k=""),W.push({emojiId:N.dataset.emojiId})):k+=N.alt)}k&&W.push({text:k.replace(MM," ")});if(C=_.S(this.hostElement).querySelector("#overflow-text")){k="";C=C.childNodes;for(n=0;n<C.length;n++)N=C[n],N instanceof Text?
k+=N.textContent:N instanceof HTMLImageElement&&(N.dataset.emojiId?(k&&(W.push({text:k.replace(MM," ")}),k=""),W.push({emojiId:N.dataset.emojiId})):k+=N.alt);k&&W.push({text:k.replace(MM," ")})}return{textSegments:W}};
_.Y.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var k=0,C=0;C<W.textSegments.length;C++){var n=W.textSegments[C];if(n.text)k+=n.text.length;else if(n.emojiId){var N=void 0;if((N=this.data)==null?0:N.emojiCharacterCount)k+=this.data.emojiCharacterCount;else{var B=N=void 0,A=void 0;k+=((B=_.m1(_.Dp,(N=n)==null?void 0:N.emojiId))==null?void 0:(A=B.shortcuts)==null?void 0:A[0].length)||0}}}return k};
_.Y.characterCountChanged=function(){_.Pe(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.Y.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Ip("focused-changed",this.focused))};
_.Y.focus=function(){this.setFocus(!1)};
_.Y.focusAtEnd=function(){this.setFocus(!0)};
_.Y.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.S(this.hostElement).querySelector("#input").focus();var k=window.getSelection();k&&(k.removeAllRanges(),k.addRange(W))};
_.Y.insertEmoji=function(W){var k,C=((W==null?0:W.isCustomEmoji)?(k=W.shortcuts)==null?void 0:k[0]:W==null?void 0:W.emojiId)||"";this.insertText(C)};
_.Y.computeText=function(W){if(!W||!W.textSegments)return"";for(var k="",C=0;C<W.textSegments.length;C++){var n=W.textSegments[C];if(n.text)k+=n.text;else if(n.emojiId){var N=void 0,B=void 0,A=void 0;k+=((B=_.m1(_.Dp,(N=n)==null?void 0:N.emojiId))==null?void 0:(A=B.shortcuts)==null?void 0:A[0])||""}}return k};
_.Y.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.oq.Object.defineProperties(uGz.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
var Q9=uGz;Q9.prototype.focusedChanged=Q9.prototype.focusedChanged;Q9.prototype.characterCountChanged=Q9.prototype.characterCountChanged;Q9.prototype.onSuggestion=Q9.prototype.onSuggestion;Q9.prototype.onMessageSet=Q9.prototype.onMessageSet;Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Q9.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Q9.prototype,"disabled",void 0);_.U([_.G("disabled"),_.O("design:type",Number),_.O("design:paramtypes",[])],Q9.prototype,"inputTabIndex",null);
_.U([_.G("data.maxCharacterLimit"),_.Z({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],Q9.prototype,"maxCharacterLimit",null);_.U([_.G("liveChatRichMessageInput"),_.Z({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],Q9.prototype,"characterCount",null);_.U([_.G("maxCharacterLimit, characterCount"),_.Z({readOnly:!0,notify:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],Q9.prototype,"remainingCharacterCount",null);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Q9.prototype,"isChatMessageInput",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Q9.prototype,"inputExpanded",void 0);_.U([_.Z({readOnly:!0,notify:!0}),_.O("design:type",Object)],Q9.prototype,"liveChatRichMessageInput",void 0);_.U([_.Z(),_.O("design:type",Object)],Q9.prototype,"messageInput",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Q9.prototype,"ignoreColorMapping",void 0);
_.U([_.G("characterCount"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Q9.prototype,"hasText",null);_.U([_.Z(),_.O("design:type",Object)],Q9.prototype,"isValidWithNoInputText",void 0);_.U([_.G("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Z(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Q9.prototype,"isInputValid",null);_.U([_.Z({readOnly:!0,value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Q9.prototype,"focused",void 0);
_.U([_.Z(),_.O("design:type",Array)],Q9.prototype,"suggestions",void 0);_.U([_.Z(),_.O("design:type",_.dL)],Q9.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",_.Sa)],Q9.prototype,"participantsManager",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Q9.prototype,"noUnderline",void 0);_.U([_.Z(),_.O("design:type",Object)],Q9.prototype,"inputMethodEditorActive",void 0);_.U([_.gi("#dropdown"),_.O("design:type",Object)],Q9.prototype,"dropdown",void 0);
_.U([_.gi("#input"),_.O("design:type",HTMLElement)],Q9.prototype,"input",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Q9.prototype,"dataChanged",null);_.U([_.Hl("messageInput"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Q9.prototype,"onMessageSet",null);
_.U([_.jI("yt-live-chat-select-suggestion"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Q9.prototype,"onSuggestion",null);_.U([_.Hl("characterCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Q9.prototype,"characterCountChanged",null);_.U([_.Hl("focused"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Q9.prototype,"focusedChanged",null);
Q9=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Q9);
_.Up8=_.q(Q9,"yt-live-chat-text-input-field-renderer",function(){if(yIx===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;GNs===void 0&&(GNs=document.createElement("template"));var n=GNs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);yIx=W}W=yIx;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var OJ2=function(){var W=_.R.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.m("web_button_rework_with_live");W.noPadding=!1;return W};
_.D(OJ2,_.R);_.Y=OJ2.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.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"}}}}};
_.Y.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.attached=function(){this.allowAnimations=!1};
_.Y.dataChanged=function(){if(this.data){var W={"--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)};_.Op(this.hostElement,W);this.allowAnimations=!0}};
_.Y.messageChanged=function(){var W,k=(W=this.data)==null?void 0:W.message;W=_.S(_.S(this.hostElement).querySelector("#message"));W.textContent="";k&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(k))};
_.Y.computeShowOnlyHeader=function(W,k){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,k)&&!W.footer};
_.Y.computeShowFooterDivider=function(W,k,C){return W?!!W.footer&&!this.isEmpty(W,k)&&!C:!1};
_.Y.computeIsUserEditable=function(W){return!!W.inputField};
_.Y.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.Y.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var k=W.headerOverlayImage.thumbnails[0],C,n;if((C=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(n=C.loggingDirectives)==null?0:n.trackingParams){var N,B;eJm((N=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(B=N.loggingDirectives)==null?void 0:B.trackingParams)}return k.width||0}return 0};
_.Y.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.Y.inputFocus=function(){var W=_.S(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.Y.inputInsertEmoji=function(W){var k=_.S(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");k&&k.insertEmoji(W)};
_.Y.inputMessage=function(){var W=_.S(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),k;return W&&((k=this.data)==null?0:k.inputField)?(W.completeEmojis(),_.Df(W.liveChatRichMessageInput)):null};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.Y.isEmpty=function(W,k){return W?W.empty||!(W.message||W.inputField||k):!0};
_.Y.onLowerBuyButtonClick=function(){var W,k=_.z((W=this.data)==null?void 0:W.buyButton,_.Vq);k&&k.trackingParams&&!Hh2(k.command)&&(W=_.Yf(k.trackingParams))&&(k=_.VM())&&_.Zr(k,W)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.oq.Object.defineProperties(OJ2.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var pR=OJ2;pR.prototype.isDeletedChanged=pR.prototype.isDeletedChanged;pR.prototype.messageChanged=pR.prototype.messageChanged;pR.prototype.dataChanged=pR.prototype.dataChanged;_.U([_.v(N$A.YtPdgLiveChatItemBehavior),_.O("design:type",Object)],pR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],pR.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],pR.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pR.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:pac}),_.O("design:type",Object)],pR.prototype,"engagementState",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.O("design:type",Boolean)],pR.prototype,"isUserEditable",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.O("design:type",Boolean)],pR.prototype,"hasHeartButton",void 0);_.U([_.Z({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.O("design:type",Boolean)],pR.prototype,"showOnlyHeader",void 0);
_.U([_.Z({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.O("design:type",Boolean)],pR.prototype,"showFooterDivider",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],pR.prototype,"allowAnimations",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],pR.prototype,"dashboardMoneyFeed",void 0);_.U([_.Z({computed:"computeNoveltyImage(data)"}),_.O("design:type",Number)],pR.prototype,"noveltyWidth",void 0);
_.U([_.Z({computed:"computeAuthorPhotoSize(data)"}),_.O("design:type",Number)],pR.prototype,"authorPhotoSize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pR.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pR.prototype,"noPadding",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pR.prototype,"dataChanged",null);
_.U([_.Hl("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pR.prototype,"messageChanged",null);_.U([_.G("data","dashboardMoneyFeed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],pR.prototype,"hideLowerBumper",null);_.U([_.Hl("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pR.prototype,"isDeletedChanged",null);
pR=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],pR);
_.q(pR,"yt-live-chat-paid-message-renderer",function(){if(LyS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;OjS===void 0&&(OjS=document.createElement("template"));var n=OjS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);LyS=W}W=LyS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var LxS;var jBS;var HJ8=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.D(HJ8,_.Wp);HJ8.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.DE("openPopupConfig")};
var rIZ=HJ8;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],rIZ.prototype,"ytOpenPopupBehavior",void 0);rIZ=_.U([_.kr()],rIZ);_.vL=[_.Ll.YtOpenPopupBehavior,rIZ.prototype];var gJZ;var QF=[_.kZ,qYs,_.mB,_.CO,_.RA,_.rCs,_.YZ,_.WSI,_.I5,Slc];_.m("web_watch_get_updated_metadata_response_processing")&&QF.push(_.d$s);_.m("web_continuation_response_processing")&&QF.push(_.dE);var SNw=new _.Tc("RESPONSE_RECEIVED_COMMANDS"),VMw=new _.Tc("RESPONSE_RECEIVED_COMMANDS");var abm="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),EHm=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],tMm=["GET_UNSEEN_NOTIFICATION_COUNT"];var ea=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.D(ea,_.Wp);ea.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(k,C,n,N){var B;return lbm(W.hostElement,k,C,n,N,W.serviceEndpointHandlers,(B=W.onEntitiesUpdated)==null?void 0:B.bind(W))}}};
ea.prototype.attached=function(){_.e6(_.vx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
ea.prototype.detached=function(){_.sK(_.vx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var PGb=ea;PGb=_.U([_.kr()],PGb);_.Kx8=[PGb.prototype];var hQb,Wzz=function(){return hQb!==void 0?hQb:hQb=document.createElement("template")};
document.head.appendChild(Wzz().content);var kLI;var Cvb=document.head,nms=Cvb.appendChild,Ne2;if(kLI===void 0){var YfS=document.createElement("template");_.J(YfS,"\x3c!--css-build:shady--\x3e");YfS.content.insertBefore(Wzz().content.cloneNode(!0),YfS.content.firstChild);kLI=YfS}Ne2=kLI;nms.call(Cvb,Ne2.content);var Bes,bdY=function(){return Bes!==void 0?Bes:Bes=document.createElement("template")};
document.head.appendChild(bdY().content);var ALI;var Fzx=document.head,wsS=Fzx.appendChild,x18;if(ALI===void 0){var l4Y=document.createElement("template");_.J(l4Y,"\x3c!--css-build:shady--\x3e");l4Y.content.insertBefore(bdY().content.cloneNode(!0),l4Y.content.firstChild);ALI=l4Y}x18=ALI;wsS.call(Fzx,x18.content);_.EJ("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.EJ("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var tGA=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),Emb=function(){var W=_.R.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.D(Emb,_.R);_.Y=Emb.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.onHintIdChanged=function(){var W=this,k,C,n=(k=this.ytButtonBehavior.data)==null?void 0:(C=k.hint)==null?void 0:C.hintRenderer;if(n&&n.hintId){k=_.hA(this.hostElement,"yt-get-opened-popups-action");k=(k&&k.length===1?k[0]:[]).length>0;var N=null;n.hintId!=="sponsor-pre-purchase"||k?n.hintId.startsWith("sponsor-post-purchase")&&!k?N=X2x("membership-manage"):n.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!k&&(N=X2x("membership-freebie-join")):N=X2x("membership-join");N&&_.aM.addLowPriorityJob(function(){for(var B=
_.b(N),A=B.next();!A.done;A=B.next())W.ytComponentBehavior.resolveCommand(A.value)})}};
_.Y.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.Y.onYtNavigate=function(W){var k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);k&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(k))};
_.Y.onYtServiceRequestSent=function(W,k){this.handleServiceRequestActions(k);_.Pe(this.hostElement,"yt-service-request-sent-button-renderer")};
_.Y.onServiceRequestCompleted=function(W,k){this.handleServiceRequestActions(k);_.Pe(this.hostElement,"yt-service-request-completed-button-renderer")};
_.Y.updateButton=function(W){var k;if(W=(k=_.z(W,DR8))==null?void 0:k.updatedButton)this.ytButtonBehavior.data=_.z(W,_.Vq)};
_.Y.handleUpdateButtonAction=function(W){var k=this.ytButtonBehavior.data;k.targetId&&W.updateButtonAction.targetId&&k.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.Y.handleServiceRequestActions=function(W){if(W=W.actions)for(var k=0;k<W.length;k++)this.updateButton(W[k])};
_.oq.Object.defineProperties(Emb,{template:{configurable:!0,enumerable:!0,get:function(){if(gJZ===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);gJZ=W}W=gJZ;return W}}});
_.s9=Emb;_.s9.prototype.onServiceRequestCompleted=_.s9.prototype.onServiceRequestCompleted;_.s9.prototype.onYtServiceRequestSent=_.s9.prototype.onYtServiceRequestSent;_.s9.prototype.onYtNavigate=_.s9.prototype.onYtNavigate;_.s9.prototype.onPressedStateChanged=_.s9.prototype.onPressedStateChanged;_.s9.prototype.onHintIdChanged=_.s9.prototype.onHintIdChanged;_.U([_.Z(),_.O("design:type",Object)],_.s9.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],_.s9.prototype,"isPressed",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],_.s9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.Fys.YtButtonBehavior),_.O("design:type",Object)],_.s9.prototype,"ytButtonBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],_.s9.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],_.s9.prototype,"ytComponentBehavior",void 0);
_.U([_.v(PR.YtRenderButtonBehavior),_.O("design:type",Object)],_.s9.prototype,"ytRenderButtonBehavior",void 0);_.U([_.Hl("data.hint.hintRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],_.s9.prototype,"onHintIdChanged",null);_.U([_.Hl("isPressed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],_.s9.prototype,"onPressedStateChanged",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],_.s9.prototype,"onYtNavigate",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],_.s9.prototype,"onYtServiceRequestSent",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],_.s9.prototype,"onServiceRequestCompleted",null);_.s9=_.U([_.T({is:"ytd-button-renderer",disableElementRegistration:tGA})],_.s9);var a4Y=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.D(a4Y,_.R);_.Y=a4Y.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.yI(this.data.sticker.thumbnails,this.stickerWidth);W||_.pbc(W).thenCatch(function(){_.zJ(new _.AM("Failed to load Super Sticker with url",W))})}};
_.Y.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.Y.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.Y.onStickerLoaded=function(W){var k,C,n;(k=_.eI(W))==null||(C=k.parentNode)==null||(n=C.classList)==null||n.add("sticker-loaded")};
_.Y.computeNoveltyImageWidth=function(W){var k,C;if(W==null?0:(k=W.headerOverlayImage)==null?0:(C=k.thumbnails)==null?0:C.length){k=W.headerOverlayImage.thumbnails[0];var n,N;if((n=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(N=n.loggingDirectives)==null?0:N.trackingParams){var B,A;eJm((B=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=B.loggingDirectives)==null?void 0:A.trackingParams)}return k.width||0}return 0};
_.Y.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.Y.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.Op(this.hostElement,W))};
_.Y.onBuyButtonClick=function(){var W,k=_.z((W=this.data)==null?void 0:W.buyButton,_.Vq);k&&!Hh2(k.command)&&this.ytRendererBehavior.logExplicitClick(k)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.oq.Object.defineProperties(a4Y.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var GP=a4Y;GP.prototype.updateStickerStyles=GP.prototype.updateStickerStyles;GP.prototype.isDeletedChanged=GP.prototype.isDeletedChanged;GP.prototype.onStickerLoaded=GP.prototype.onStickerLoaded;GP.prototype.dataChanged=GP.prototype.dataChanged;_.U([_.v(N$A.YtPdgLiveChatItemBehavior),_.O("design:type",Object)],GP.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],GP.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],GP.prototype,"data",void 0);
_.U([_.Z({computed:"computeAuthorPhotoSize(data)"}),_.O("design:type",Number)],GP.prototype,"authorPhotoSize",void 0);_.U([_.Z(),_.O("design:type",Boolean)],GP.prototype,"isDeleted",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],GP.prototype,"dashboardMoneyFeed",void 0);_.U([_.Z({computed:"computeNoveltyImageWidth(data)"}),_.O("design:type",Number)],GP.prototype,"noveltyWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],GP.prototype,"modern",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.O("design:type",Boolean)],GP.prototype,"isV2Style",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GP.prototype,"dataChanged",null);_.U([_.jI("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],GP.prototype,"onStickerLoaded",null);
_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],GP.prototype,"stickerWidth",null);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],GP.prototype,"stickerHeight",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GP.prototype,"hasHeartButton",null);_.U([_.G("data","dashboardMoneyFeed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GP.prototype,"hideLowerBumper",null);
_.U([_.Hl("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GP.prototype,"isDeletedChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GP.prototype,"updateStickerStyles",null);GP=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],GP);
_.q(GP,"yt-live-chat-paid-sticker-renderer",function(){if(jBS===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;LxS===void 0&&(LxS=document.createElement("template"));var n=LxS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);jBS=W}W=jBS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var XsS;var f42;var d12,m18=function(){return d12!==void 0?d12:d12=document.createElement("template")};
document.head.appendChild(m18().content);var zFS,D1A=function(){return zFS!==void 0?zFS:zFS=document.createElement("template")};
document.head.appendChild(D1A().content);var VGs;var JLA,cLS=function(){return JLA!==void 0?JLA:JLA=document.createElement("template")};
document.head.appendChild(cLS().content);var I4s;var SfY=document.head,MGs=SfY.appendChild,QmC;if(I4s===void 0){var psx=document.createElement("template");_.J(psx,"\x3c!--css-build:shady--\x3e");psx.content.insertBefore(cLS().content.cloneNode(!0),psx.content.firstChild);I4s=psx}QmC=I4s;MGs.call(SfY,QmC.content);var vmS=document.head,eF8=vmS.appendChild,smb;if(VGs===void 0){var y9=document.createElement("template");_.J(y9,"\x3c!--css-build:shady--\x3e");y9.content.insertBefore(D1A().content.cloneNode(!0),y9.content.firstChild);y9.content.insertBefore(m18().content.cloneNode(!0),y9.content.firstChild);VGs=y9}smb=VGs;eF8.call(vmS,smb.content);var $$=function(){var W=_.Wp.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.D($$,_.Wp);$$.prototype.emojiUrl=function(W){W=_.m1(this.emojiManager,W);if(!W)return"";var k;W=(k=W.image)==null?void 0:k.thumbnails;return _.yI(W,24)||""};
var GLA=function(W){var k;W.emojiVariants&&(k=W.data)!=null&&k.target&&_.ZR(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var C=_.S(W.hostElement).querySelector("img");C&&C.focus()})};
_.Y=$$.prototype;_.Y.onKeyboardEnter=function(){};
_.Y.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.Y.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.Y.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.Y.onYtEmojiSelect=function(W){var k=this,C,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return n=(C=k.data)==null?void 0:C.emoji,A=((N=n)==null?void 0:N.stickyPrefId)||((B=n)==null?void 0:B.emojiId),x=(w=W.detail)==null?void 0:w.emojiId,A&&x&&A!==x?_.l(a,(E=k.emojiManager)==null?void 0:pWC(E,n,x),2):a.return();_.KY(k.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[n,x]);_.ab(a)})};
_.Y.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.S(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.oq.Object.defineProperties($$.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var Zp=$$;Zp.prototype.onYtEmojiSelect=Zp.prototype.onYtEmojiSelect;Zp.prototype.onKeyDown=Zp.prototype.onKeyDown;Zp.prototype.onEmojiVariantsChanged=Zp.prototype.onEmojiVariantsChanged;Zp.prototype.onVerticalOffsetOrPositionTargetChanged=Zp.prototype.onVerticalOffsetOrPositionTargetChanged;_.U([_.v(_.Gu),_.O("design:type",Object)],Zp.prototype,"ironOverlayBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",_.dL)],Zp.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"emojiVariants",void 0);_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"focusedIndex",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Zp.prototype,"positionTarget",null);_.U([_.Z({reflectToAttribute:!0}),_.G("verticalOffset","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Zp.prototype,"isPositioned",null);
_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"verticalOffset",void 0);_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"verticalAlign",void 0);_.U([_.Z(),_.O("design:type",Object)],Zp.prototype,"dynamicAlign",void 0);_.U([_.Hl("verticalOffset","positionTarget"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zp.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.U([_.Hl("emojiVariants"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zp.prototype,"onEmojiVariantsChanged",null);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],Zp.prototype,"onKeyDown",null);_.U([_.jI("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype",Promise)],Zp.prototype,"onYtEmojiSelect",null);Zp=_.U([_.kr()],Zp);var yLZ=[Zp.prototype];var $1I;var Zdx;var RFC=/medium-light|medium-dark|light|medium|dark/,omC=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,idA=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Tez=function(){var W=_.R.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.D(Tez,_.R);_.Y=Tez.prototype;_.Y.onClick=function(W){W=_.eI(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.Y.selectOrUpdateEmoji=function(W){var k=W.getAttribute("selection");k&&(k==="default"?_.Pe(this.hostElement,"yt-emoji-select",_.m1(this.emojiManager,W.id)):k==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):k==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):k==="user"&&this.userSelection.left&&this.userSelection.right&&_.Pe(this.hostElement,"yt-emoji-select",_.m1(this.emojiManager,W.id)))};
_.Y.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.Y.onMultiSelectorThumbnailRowChanged=function(){var W,k,C;((W=this.data)==null?0:(k=W.emoji)==null?0:(C=k.multiSelectorThumbnailRow)==null?0:C.length)&&this.openSelector()};
_.Y.getThumbnailFromEmojiRow=function(W){var k,C;return(W==null?void 0:(k=W.thumbnails)==null?void 0:(C=k[0])==null?void 0:C.url)||""};
_.Y.getEmojiAltTextForPartialSelector=function(W){var k;return((k=this.getThumbnailFromEmojiRow(W).match(omC))==null?void 0:k[0])||""};
_.Y.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.Y.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.Y.getRowSelection=function(W){return["left","right"][W]};
_.Y.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.Y.getEmojiFromPartialSelections=function(W,k){if(!W&&!k)return null;var C,n,N=(C=this.data)==null?void 0:(n=C.emoji)==null?void 0:n.variantIds;if(!N||!N.length)return null;var B;W=(B=W.match(RFC))==null?void 0:B[0];var A;k=(A=k.match(RFC))==null?void 0:A[0];if(!W||!k)return null;var w=idA.get(W);A=idA.get(k);if(w===A){A=Array.from(idA.values()).filter(function(E){return E!==w}).join("|");
var x=new RegExp("^((?!("+A+")).)*"+w+"$")}else x=new RegExp(w+".*"+A);return(N=N.find(function(E){return x.test(E)}))&&_.m1(this.emojiManager,N)||null};
_.Y.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,k=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.S(this.hostElement).querySelector('[selection="user"]').src.includes(k)||(this.isEmojiDraftInProgress=!0)}};
_.Y.onDomChange=function(){GLA(this.ytEmojiSelectorBehavior)};
_.Y.getFocusableElements=function(){return _.S(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.Y.changeFocus=function(W){var k=this.getFocusableElements();k!=null&&k.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+k.length)%k.length,this.ytEmojiSelectorBehavior.focusedIndex<k.length&&(W=k[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.Y.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.oq.Object.defineProperties(Tez.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C,n;return this.emojiManager&&((k=this.data)==null?0:(C=k.emoji)==null?0:(n=C.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(N){return!!N&&_.m1(W.emojiManager,N)}).filter(function(N){return!!N}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,k=(W=this.userSelection)==null?void 0:W.left,C;W=(C=this.userSelection)==null?void 0:C.right;return k&&W?this.getEmojiFromPartialSelections(k,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var k;W=(k=this.userSelection)==null?void 0:k.left;var C;k=(C=this.userSelection)==null?void 0:C.right;if(!W&&!k){var n;return this.ytEmojiSelectorBehavior.emojiUrl(((n=this.data.emoji)==null?void 0:n.emojiId)||"")}return W&&!k?W:!W&&k?k:""}}});
var Rp=Tez;Rp.prototype.onMultiSelectorThumbnailRowChanged=Rp.prototype.onMultiSelectorThumbnailRowChanged;Rp.prototype.onClick=Rp.prototype.onClick;_.U([_.v(_.Gu),_.O("design:type",Object)],Rp.prototype,"ironOverlayBehavior",void 0);_.U([_.v(yLZ),_.O("design:type",Object)],Rp.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rp.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",_.dL)],Rp.prototype,"emojiManager",void 0);
_.U([_.Z(),_.O("design:type",Object)],Rp.prototype,"userSelection",void 0);_.U([_.Z(),_.O("design:type",Object)],Rp.prototype,"scrollAction",void 0);_.U([_.Z(),_.O("design:type",Object)],Rp.prototype,"isEmojiDraftInProgress",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rp.prototype,"emojiVariants",null);_.U([_.G("data","userSelection"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rp.prototype,"composedEmojiSelection",null);
_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],Rp.prototype,"onClick",null);_.U([_.Hl("data.emoji.multiSelectorThumbnailRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rp.prototype,"onMultiSelectorThumbnailRowChanged",null);_.U([_.G("data","userSelection","composedEmojiSelection"),_.O("design:type",String),_.O("design:paramtypes",[])],Rp.prototype,"draftEmojiUrl",null);
Rp=_.U([_.l0({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Rp);
_.q(Rp,"yt-emoji-multi-person-selector",function(){if(Zdx===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;$1I===void 0&&($1I=document.createElement("template"));var n=$1I;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Zdx=W}W=Zdx;return W},{mode:2});var qfs;var uXz;var U1S=function(){var W=_.R.apply(this,arguments)||this;W.tooltip_=null;return W};
_.D(U1S,_.R);_.Y=U1S.prototype;_.Y.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.S(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Up)(this.tooltip_).textContent=this.data.tooltip};
_.Y.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.Y.computeId_=function(W){return W};
_.Y.computeIcon_=function(W){return _.Hp(W)};
_.Y.onTap_=function(){this.active=!this.active;_.Pe(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.Y.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("active-changed",this.active))};
_.oq.Object.defineProperties(U1S.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,k;if((W=this.data)==null?0:(k=W.icon)==null?0:k.iconType)return this.data.icon.iconType==="SUPER_STICKER";var C,n;return((C=this.data)==null?void 0:(n=C.icon)==null?void 0:n.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var op=U1S;op.prototype.activeChangedForBinding=op.prototype.activeChangedForBinding;op.prototype.dataChanged_=op.prototype.dataChanged_;_.U([_.v(_.fl.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],op.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],op.prototype,"data",void 0);_.U([_.Z({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.O("design:type",String)],op.prototype,"id",void 0);
_.U([_.Z({computed:"computeTargetId(data.targetId)"}),_.O("design:type",String)],op.prototype,"targetId",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],op.prototype,"active",void 0);_.U([_.Z({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.O("design:type",String)],op.prototype,"icon",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],op.prototype,"dataChanged_",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],op.prototype,"iconFilled",null);_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],op.prototype,"activeChangedForBinding",null);op=_.U([_.l0({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],op);
_.q(op,"yt-emoji-picker-category-button-renderer",function(){if(uXz===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qfs===void 0&&(qfs=document.createElement("template"));var n=qfs;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uXz=W}W=uXz;return W},{mode:2});var OdZ;var LzS;var jms=function(){var W=_.R.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$11886_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.D(jms,_.R);_.Y=jms.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.kf(),k=0;k<this.emoji.length;k++){var C={veType:88013,elementIndex:k},n=this.emoji[k];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(C=_.Wj(W,C))&&(n.visualElement=C)}};
_.Y.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.Y.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.Y.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.Y.dataChanged=function(){this.data&&this.data.emojiData&&IK2(this.emojiManager,this.data.emojiData)};
_.Y.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var k;W=(k=W.image)==null?void 0:k.thumbnails;return _.yI(W,24)||""};
_.Y.emojiAlt=function(W){var k=this.get("image.accessibility.accessibilityData.label",W);return k?k:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.Y.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.Y.emojiAriaSelected=function(W,k,C){return W&&C==k?"true":"false"};
_.Y.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?Mls(this.emojiManager,W):zP(this.emojiManager,W)};
_.Y.computeId_=function(W){return W.categoryId||""};
_.Y.computeEmoji=function(W){var k=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(C){return C?_.m1(k.emojiManager,C):null}).filter(vH4):W.emojiData?W.emojiData.map(function(C){var n=!!C.emojiId&&_.m1(k.emojiManager,C.emojiId);
return n?Object.assign({},n,C):null}).filter(vH4):[]:[]};
_.Y.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.Y.computeAriaLabel_=function(W){return _.y4(W)};
_.Y.computeAriaActivedescendant_=function(W,k){return W&&W[k]?W[k].emojiId||"":""};
_.Y.handleLongPressEmojiWithVariants=function(W,k){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,k)};
_.Y.onMouseDown=function(W){var k=this;this.hostElement!==document.activeElement&&(this.JSC$11886_ignoreNextFocus_=!0);if(W.button===0){var C=_.eI(W);if(C instanceof HTMLImageElement){var n=_.S(this.hostElement).querySelector("#repeat").itemForElement(C);this.emojiContainsVariants(n)&&(this.longPressTimeoutId=setTimeout(function(){k.handleLongPressEmojiWithVariants(n,C)},500))}}};
_.Y.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.onFocus=function(){this.JSC$11886_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11886_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.Y.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.eI(W);if(W instanceof HTMLImageElement){var k=W.id;this.changeFocusToEmoji(k,!1);var C=this.getEmoji(k),n;if(n=this.shouldUseStickyPreferences&&this.emojiContainsVariants(C)){var N;n=!((N=this.emojiManager.emojiMap[k])!=null&&N.stickyPrefId)}n?(N=_.S(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(N,W)):_.Pe(this.hostElement,"yt-emoji-select",C)}};
_.Y.isActiveEmojiWithVariants=function(W,k){return W&&k?k.stickyPrefId?W===k.stickyPrefId:W===k.emojiId:!1};
_.Y.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.Y.onMouseOver_=function(W){W=_.eI(W);W instanceof HTMLImageElement&&_.Pe(this.hostElement,"yt-emoji-hover",_.m1(this.emojiManager,W.id))};
_.Y.changeFocus_=function(W,k){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],k&&(this.showFocus=!0,_.S(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Pe(this.hostElement,"yt-emoji-hover",W)))};
_.Y.changeFocusToEmoji=function(W,k){if(W){var C=this.emoji.findIndex(function(n){return n.emojiId===W});
C!==-1&&this.changeFocus_(C-this.focusedIndex,k)}};
_.Y.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var k=this.emoji[this.focusedIndex];if(k&&k.emojiId){if(this.emojiContainsVariants(k)){var C=_.S(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(k,C)}else _.Pe(this.hostElement,"yt-emoji-select",zP(this.emojiManager,k.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
_.Y.onEmojiStickyPreferenceChanged=function(W,k){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(k)&&this.activeEmojiWithVariantsId!==k&&this.setStickyEmojiPreference(W.emojiId,k)};
_.Y.openVariantSelector=function(W,k){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.Pe(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:k})};
_.Y.setStickyEmojiPreference=function(W,k){if(this.data){var C=this.emoji.findIndex(function(N){return N.emojiId===W});
if(C!==-1){var n=this.emoji[C];n.stickyPrefId=k;this.set("emoji."+C,Object.assign({},n));this.activeEmojiWithVariantsId=k}}};
var iy=jms;iy.prototype.onKeyDown_=iy.prototype.onKeyDown_;iy.prototype.onMouseOver_=iy.prototype.onMouseOver_;iy.prototype.onClick=iy.prototype.onClick;iy.prototype.onBlur_=iy.prototype.onBlur_;iy.prototype.onFocus=iy.prototype.onFocus;iy.prototype.onMouseUp=iy.prototype.onMouseUp;iy.prototype.onMouseDown=iy.prototype.onMouseDown;iy.prototype.dataChanged=iy.prototype.dataChanged;iy.prototype.disableIncrementalLoadingChanged_=iy.prototype.disableIncrementalLoadingChanged_;
iy.prototype.emojiManagerChanged_=iy.prototype.emojiManagerChanged_;iy.prototype.emojiChanged_=iy.prototype.emojiChanged_;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],iy.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iy.prototype,"data",void 0);_.U([_.Z({computed:"computeId_(data)"}),_.O("design:type",String)],iy.prototype,"id",void 0);_.U([_.Z({computed:"computeEmoji(data)"}),_.O("design:type",Array)],iy.prototype,"emoji",void 0);
_.U([_.Z(),_.O("design:type",Number)],iy.prototype,"skinTone",void 0);_.U([_.Z(),_.O("design:type",_.dL)],iy.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Boolean)],iy.prototype,"disableIncrementalLoading",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],iy.prototype,"focusedIndex",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],iy.prototype,"showFocus",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.O("design:type",Object)],iy.prototype,"ariaLabel",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.O("design:type",Object)],iy.prototype,"ariaActivedescendant",void 0);_.U([_.Z({value:60}),_.O("design:type",Number)],iy.prototype,"domRepeatTargetFramerate",void 0);_.U([_.Z({value:1}),_.O("design:type",Number)],iy.prototype,"domRepeatInitialCount",void 0);
_.U([_.Z({value:""}),_.O("design:type",String)],iy.prototype,"activeEmojiWithVariantsId",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],iy.prototype,"shouldUseStickyPreferences",void 0);_.U([_.Hl("emoji"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"emojiChanged_",null);_.U([_.Hl("emojiManager"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"emojiManagerChanged_",null);
_.U([_.Hl("disableIncrementalLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"disableIncrementalLoadingChanged_",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"dataChanged",null);_.U([_.jI("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],iy.prototype,"onMouseDown",null);
_.U([_.jI("mouseup"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"onMouseUp",null);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"onFocus",null);_.U([_.jI("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iy.prototype,"onBlur_",null);
_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],iy.prototype,"onClick",null);_.U([_.jI("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],iy.prototype,"onMouseOver_",null);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],iy.prototype,"onKeyDown_",null);
iy=_.U([_.l0({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],iy);
_.q(iy,"yt-emoji-picker-category-renderer",function(){if(LzS===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;OdZ===void 0&&(OdZ=document.createElement("template"));var n=OdZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);LzS=W}W=LzS;return W},{mode:2});var Hdb;var rLA;var gm2;var PvC;var KzI=function(){var W=_.R.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.y4;W.JSC$11892_ignoreNextFocus_=!1;return W};
_.D(KzI,_.R);_.Y=KzI.prototype;_.Y.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")};
_.Y.emojiUrl=function(W){var k,C;W=(k=zP(this.emojiManager,W,!0))==null?void 0:(C=k.image)==null?void 0:C.thumbnails;return _.yI(W,24)||""};
_.Y.emojiAlt=function(W){var k=this.get("image.accessibility.accessibilityData.label",W);return k?k:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.Y.emojiId=function(W){return"emoji"+W};
_.Y.computeId_=function(W){return W.categoryId||""};
_.Y.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.kf(),k=0;k<this.emoji.length;k++){var C={veType:88013,elementIndex:k},n=this.emoji[k];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(C=_.Wj(W,C))&&(n.visualElement=C)}};
_.Y.computeEmoji_=function(W){var k=this;return this.emojiManager?W.emojiIds.map(function(C){return _.m1(k.emojiManager,C,!0)}).filter(e42):[]};
_.Y.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),k=_.S(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-k.height));_.S(this.hostElement).querySelector("#title").style.top=W+"px"};
_.Y.onEmojiMouseOver_=function(W){_.Pe(this.hostElement,"yt-emoji-hover",W.model.item)};
_.Y.onEmojiTap_=function(W){this.data.command&&(W=iC3(_.f().resolve(_.qI(QE)),this.data.command,W),_.Pe(this.hostElement,"yt-navigate",W))};
_.Y.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.Y.emojiAriaSelected=function(W,k,C){return W&&C==k?"true":"false"};
_.Y.changeFocus_=function(W,k){var C=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+C)%C;W=this.emoji[this.focusedIndex];if(k){var n;(n=_.S(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||n.scrollIntoView(!1);_.Pe(this.hostElement,"yt-emoji-hover",W)}};
_.Y.onMouseDown_=function(){this.JSC$11892_ignoreNextFocus_=!0};
_.Y.onFocus_=function(){this.JSC$11892_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11892_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
var TP=KzI;TP.prototype.onKeyDown_=TP.prototype.onKeyDown_;TP.prototype.onBlur_=TP.prototype.onBlur_;TP.prototype.onFocus_=TP.prototype.onFocus_;TP.prototype.onMouseDown_=TP.prototype.onMouseDown_;TP.prototype.onEmojiTap_=TP.prototype.onEmojiTap_;TP.prototype.titleOffsetChanged_=TP.prototype.titleOffsetChanged_;TP.prototype.emojiChanged_=TP.prototype.emojiChanged_;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],TP.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],TP.prototype,"data",void 0);_.U([_.Z({computed:"computeId_(data)"}),_.O("design:type",String)],TP.prototype,"id",void 0);_.U([_.Z({computed:"computeEmoji_(data)"}),_.O("design:type",Array)],TP.prototype,"emoji",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],TP.prototype,"titleOffset",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.O("design:type",Object)],TP.prototype,"ariaLabel",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.O("design:type",Object)],TP.prototype,"ariaActivedescendant",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],TP.prototype,"showFocus",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],TP.prototype,"focusedIndex",void 0);_.U([_.Z(),_.O("design:type",_.dL)],TP.prototype,"emojiManager",void 0);
_.U([_.Hl("emoji"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TP.prototype,"emojiChanged_",null);_.U([_.Hl("titleOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TP.prototype,"titleOffsetChanged_",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],TP.prototype,"onEmojiTap_",null);
_.U([_.jI("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TP.prototype,"onMouseDown_",null);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TP.prototype,"onFocus_",null);_.U([_.jI("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TP.prototype,"onBlur_",null);
_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],TP.prototype,"onKeyDown_",null);TP=_.U([_.l0({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],TP);
_.q(TP,"yt-emoji-picker-upsell-category-renderer",function(){if(PvC===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;gm2===void 0&&(gm2=document.createElement("template"));var n=gm2;C.call(k,n.content.cloneNode(!0),W.content.firstChild);PvC=W}W=PvC;return W},{mode:2});var hFY;var Wtx;var k6A=function(){var W=_.R.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.D(k6A,_.R);_.Y=k6A.prototype;_.Y.onClick=function(W){W=_.eI(W);W instanceof HTMLImageElement&&_.Pe(this.hostElement,"yt-emoji-select",_.m1(this.emojiManager,W.id))};
_.Y.openSelector=function(){this.ironOverlayBehavior.open()};
_.Y.onDomChange=function(){GLA(this.ytEmojiSelectorBehavior)};
_.Y.computeIsFamilySelector=function(W){var k;return(W==null?void 0:(k=W.emoji)==null?void 0:k.emojiId)==="\ud83d\udc6a"};
_.Y.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.Pe(this.hostElement,"yt-emoji-select",_.m1(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.oq.Object.defineProperties(k6A.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C,n;return this.emojiManager&&((k=this.data)==null?0:(C=k.emoji)==null?0:(n=C.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(N){return!!N&&_.m1(W.emojiManager,N)}).filter(function(N){return!!N}):[]}}});
var qM=k6A;qM.prototype.onClick=qM.prototype.onClick;_.U([_.v(_.Gu),_.O("design:type",Object)],qM.prototype,"ironOverlayBehavior",void 0);_.U([_.v(yLZ),_.O("design:type",Object)],qM.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qM.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",_.dL)],qM.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Object)],qM.prototype,"scrollAction",void 0);
_.U([_.Z(),_.O("design:type",Object)],qM.prototype,"verticalAlign",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.O("design:type",Boolean)],qM.prototype,"isFamilySelector",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],qM.prototype,"emojiVariants",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],qM.prototype,"onClick",null);
qM=_.U([_.l0({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],qM);
_.q(qM,"yt-emoji-variant-selector",function(){if(Wtx===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;hFY===void 0&&(hFY=document.createElement("template"));var n=hFY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Wtx=W}W=Wtx;return W},{mode:2});var CNb=/:/g,nUA=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],N9I=function(){var W=_.R.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.yP;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.D(N9I,_.R);_.Y=N9I.prototype;
_.Y.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}}};
_.Y.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Dp)};
_.Y.attached=function(){_.Cr&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&S0A(this.emojiManager)};
_.Y.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var k=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.J8(zQs),_.J8(k))}};
_.Y.getCustomEmojiIds=function(){var W,k=(W=this.data.categories)==null?void 0:W.find(function(B){var A;return((A=B.emojiPickerCategoryRenderer)==null?void 0:A.categoryId)&&nUA.includes(B.emojiPickerCategoryRenderer.categoryId)}),C;
W=(C=this.data.categories)==null?void 0:C.find(function(B){return B.emojiPickerUpsellCategoryRenderer});
var n,N;return[k==null?void 0:(n=k.emojiPickerCategoryRenderer)==null?void 0:n.emojiIds,W==null?void 0:(N=W.emojiPickerUpsellCategoryRenderer)==null?void 0:N.emojiIds].flat().filter(function(B){return!!B})};
_.Y.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.Y.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.Y.updateCategoriesAndPlaceholderInternal=function(W,k){var C=this;W&&k&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.zM(function(){C.updateButtons_()}))};
_.Y.computeId_=function(W){return W.id||""};
_.Y.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.Y.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.Y.onShowEmojiVariantSelector=function(W){var k=W.detail.emojiData;k.variantIds&&k.variantIds.length&&(k.multiSelectorThumbnailRow&&k.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:k,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:k,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onIronOverlayClosed=function(W){var k=Mls(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");k&&W.composedPath&&(W.composedPath().includes(_.S(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.S(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.KY(this.hostElement,"yt-close-emoji-variant-selector",[k.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onEmojiVariantSelectorMouseup=function(W){var k=W.target.firstChild;this.variantSelectorOpened&&k&&_.zM(function(){k.noCancelOnOutsideClick=!1},100)};
_.Y.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.Y.onSelectCategory_=function(W){var k=this.search!="";this.search="";for(var C=_.S(this.hostElement).querySelector("#categories").children,n=0;n<C.length;n++){var N=C[n];if(N.id==W.detail.categoryId){k?(_.S(this.hostElement).querySelector("#categories").scrollTop=N.offsetTop,this.updateButtons_()):(this.animationStart_=_.S(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=N.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.Y.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.Y.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.Y.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.Y.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.Y.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.Y.computeSearchCategory_=function(W){W=W.replace(CNb,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var k=[],C=this.emojiManager.emojis,n=0;n<C.length;n++){var N=C[n];if(N.searchTerms)for(var B=0;B<N.searchTerms.length;B++){for(var A=N.searchTerms[B].toLocaleLowerCase(),w=!1,x=0;x<W.length;x++)if(A.indexOf(W[x])!=-1){w=!0;break}if(w&&(!N.isCustomEmoji||!N.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(N.emojiId))){k.push(N.emojiId);
break}}}return{categoryId:-1,emojiIds:k}};
_.Y.computeSearchEmptyMessage_=function(W,k){return W&&k&&k.emojiIds&&k.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.Y.computeSearching_=function(W){return this.emojiManager&&W.replace(CNb,"").length>1};
_.Y.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.Y.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.Y.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.Y.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.Y.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.Y.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.KY(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.Y.skinToneChanged_=function(){_.S(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.S(this.hostElement).querySelector("#dropdown-content").children,k=0;k<W.length;k++)k===this.skinTone?W[k].setAttribute("selected",""):W[k].removeAttribute("selected")};
_.Y.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.S(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.S(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.Y.searchChanged_=function(){this.updateButtons_()};
_.Y.updateButtons_=function(){var W=null;if(!this.search)for(var k=_.S(this.hostElement).querySelector("#categories").scrollTop,C=_.S(this.hostElement).querySelector("#categories").children,n=0;n<C.length;n++){var N=C[n];N.offsetTop<=k&&(W=N.id)}k=_.S(this.hostElement).querySelector("#category-buttons").children;for(C=0;C<k.length;C++)n=k[C],n.active=n.id===W};
var uy=N9I;uy.prototype.searchChanged_=uy.prototype.searchChanged_;uy.prototype.skinToneChanged_=uy.prototype.skinToneChanged_;uy.prototype.onEmojiHover_=uy.prototype.onEmojiHover_;uy.prototype.onSelectCategory_=uy.prototype.onSelectCategory_;uy.prototype.onShowEmojiVariantSelector=uy.prototype.onShowEmojiVariantSelector;uy.prototype.updateCategoriesAndPlaceholder_=uy.prototype.updateCategoriesAndPlaceholder_;uy.prototype.dataChanged=uy.prototype.dataChanged;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uy.prototype,"data",void 0);_.U([_.Z({value:function(){return[]}}),
_.O("design:type",Array)],uy.prototype,"categories",void 0);_.U([_.Z({value:function(){return[]}}),
_.O("design:type",Array)],uy.prototype,"categoryButtons",void 0);_.U([_.Z({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.O("design:type",Boolean)],uy.prototype,"disableScroll",void 0);_.U([_.Z({computed:"computeId_(data)",reflectToAttribute:!0}),_.O("design:type",String)],uy.prototype,"id",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],uy.prototype,"selected",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],uy.prototype,"disableIncrementalLoading",void 0);_.U([_.Z(),_.O("design:type",String)],uy.prototype,"placeholder",void 0);_.U([_.Z({value:""}),_.O("design:type",String)],uy.prototype,"search",void 0);_.U([_.Z({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.O("design:type",Boolean)],uy.prototype,"searching",void 0);_.U([_.Z({computed:"computeSearchCategory_(search)"}),_.O("design:type",Object)],uy.prototype,"searchCategory",void 0);
_.U([_.Z({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.O("design:type",Object)],uy.prototype,"searchEmptyMessage",void 0);_.U([_.Z({computed:"identity(emojiManager.skinTone)"}),_.O("design:type",Number)],uy.prototype,"skinTone",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],uy.prototype,"skinToneOpened",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],uy.prototype,"variantSelectorOpened",void 0);
_.U([_.Z({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.O("design:type",Boolean)],uy.prototype,"skinToneHidden",void 0);_.U([_.Z(),_.O("design:type",_.dL)],uy.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Object)],uy.prototype,"emojiVariantSelector",void 0);_.U([_.Z(),_.O("design:type",Object)],uy.prototype,"emojiMultiPersonSelector",void 0);
_.U([_.Z({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.O("design:type",Boolean)],uy.prototype,"shouldUseStickyPreferences",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uy.prototype,"dataChanged",null);_.U([_.Hl("data","selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uy.prototype,"updateCategoriesAndPlaceholder_",null);
_.U([_.jI("yt-show-emoji-variant-selector"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],uy.prototype,"onShowEmojiVariantSelector",null);_.U([_.jI("yt-emoji-picker-select-category"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],uy.prototype,"onSelectCategory_",null);_.U([_.jI("yt-emoji-hover"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],uy.prototype,"onEmojiHover_",null);
_.U([_.Hl("skinTone"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uy.prototype,"skinToneChanged_",null);_.U([_.Hl("search"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uy.prototype,"searchChanged_",null);uy=_.U([_.l0({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],uy);
_.q(uy,"yt-emoji-picker-renderer",function(){if(rLA===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Hdb===void 0&&(Hdb=document.createElement("template"));var n=Hdb;C.call(k,n.content.cloneNode(!0),W.content.firstChild);rLA=W}W=rLA;return W},{mode:2});var Yj8=function(){var W=_.R.apply(this,arguments)||this;W.emojiManager=_.Dp;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.D(Yj8,_.R);_.Y=Yj8.prototype;_.Y.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.Y.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.g3(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.Y.updateSaveButtonState=function(W){var k;(k=this.data)!=null&&k.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Nj("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.Y.emojiUrl=function(W){W=_.m1(this.emojiManager,W);if(!W)return"";var k;W=(k=W.image)==null?void 0:k.thumbnails;return _.yI(W,24)||""};
_.Y.emojiAlt=function(W){var k=_.m1(this.emojiManager,W);if(!k)return W;var C,n,N,B=(k==null?void 0:(C=k.image)==null?void 0:(n=C.accessibility)==null?void 0:(N=n.accessibilityData)==null?void 0:N.label)||"";return B?B:k.isCustomEmoji?k.shortcuts[0]:k.emojiId||W};
_.Y.emojiAriaLabel=function(W){var k,C;return((k=_.m1(this.emojiManager,W))==null?void 0:(C=k.shortcuts)==null?void 0:C[0])||W};
_.Y.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.Y.onEmojiSelect=function(W){W=W.detail;var k,C;((k=this.data)==null?0:k.emojiCustomizationSetEntityKey)&&((C=this.emojiCustomizationSet)==null?0:C.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Nj("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.Y.canEditEmoji=function(W,k,C){W=W.indexOf(k);return W===C||W===0||C===0?!1:!0};
_.Y.getUpdatedEmojiIdList=function(W,k,C){var n=W.indexOf(k);W=[].concat(_.J8(W));n>=0&&(W[n]=W[C]);W[C]=k;return W};
_.oq.Object.defineProperties(Yj8,{template:{configurable:!0,enumerable:!0,get:function(){if(f42===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;XsS===void 0&&(XsS=document.createElement("template"));var n=XsS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);f42=W}W=f42;return W}}});
var U9=Yj8;U9.prototype.onEmojiSelect=U9.prototype.onEmojiSelect;_.U([_.v(_.Xe),_.O("design:type",Object)],U9.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],U9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.gi("yt-emoji-picker-renderer"),_.O("design:type",Object)],U9.prototype,"emojiPickerRenderer",void 0);
_.U([_.Z({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,k){return _.hQ(W.entities,"emojiCustomizationSetEntity",k)},
observer:"emojiCustomizationSetChanged"}),_.O("design:type",Object)],U9.prototype,"emojiCustomizationSet",void 0);_.U([_.Z(),_.O("design:type",Object)],U9.prototype,"originalEmojiSet",void 0);_.U([_.Z(),_.O("design:type",_.dL)],U9.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Object)],U9.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],U9.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],U9.prototype,"selectedIndex",void 0);
_.U([_.jI("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],U9.prototype,"onEmojiSelect",null);U9=_.U([_.l0({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],U9);var B9z;var bCS;var AgI;var Fts;var was=function(){var W=_.R.apply(this,arguments)||this;W.authorBadges=[];return W};
_.D(was,_.R);_.Y=was.prototype;_.Y.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.Y.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]]"}}}}}};
_.Y.dataChanged=function(){var W=APz(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.Y.updateMessage=function(){var W=this.data.message,k=_.S(_.S(this.hostElement).querySelector("#message"));k.textContent="";W&&k.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.Y.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.Y.computeShowBar=function(W,k,C){return W&&k||C};
_.Y.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.Y.computeAuthorIsOwner=function(W){return!!FNw(W.authorBadges,"owner")};
_.Y.computeAuthorNameColor=function(W){var k;if(_.m("live_chat_author_name_color_usernames")&&(W==null?0:(k=W.authorName)==null?0:k.simpleText))return _.aVc(_.XMK(W.authorName.simpleText));if(_.m("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.aVc(_.Lq(W.authorSeedColorArgb));if(_.m("live_chat_colored_usernames"))return"#cc0000";var C;return _.m("live_chat_simple_color_usernames")&&(W==null?0:(C=W.authorName)==null?0:C.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Lq(W.authorUsernameColorDark):_.Lq(W.authorUsernameColorLight):""};
var O9=was;O9.prototype.updateMessage=O9.prototype.updateMessage;O9.prototype.dataChanged=O9.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],O9.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],O9.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"showOriginal",void 0);_.U([_.Z({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"isDimmed",void 0);_.U([_.Z({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"showBar",void 0);
_.U([_.Z({computed:"computeAuthorBadges(data)"}),_.O("design:type",Array)],O9.prototype,"authorBadges",void 0);_.U([_.Z({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"authorIsOwner",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"inCollapsedBanner",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"inBanner",void 0);
_.U([_.Z({value:_.m("live_chat_hide_avatars"),reflectToAttribute:!0}),_.O("design:type",Boolean)],O9.prototype,"avatarHidden",void 0);_.U([_.Z({computed:"computeAuthorNameColor(data)"}),_.O("design:type",String)],O9.prototype,"authorNameColor",void 0);_.U([_.Z(),_.O("design:type",_.Sa)],O9.prototype,"participantsManager",void 0);_.U([_.Z({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.O("design:type",Object)],O9.prototype,"filledButtonOverrides",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O9.prototype,"dataChanged",null);_.U([_.Hl("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O9.prototype,"updateMessage",null);O9=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],O9);
_.q(O9,"yt-live-chat-text-message-renderer",function(){if(Fts===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;AgI===void 0&&(AgI=document.createElement("template"));var n=AgI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Fts=W}W=Fts;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var LR=function(){var W=_.R.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.D(LR,_.R);
LR.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]]"}}}}}};
LR.prototype.shouldSupportInlineActionButtons=function(){return!0};
LR.prototype.shouldSupportWholeItemClick=function(){return!0};
_.oq.Object.defineProperties(LR.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var ja=LR;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],ja.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ja.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",_.Sa)],ja.prototype,"participantsManager",void 0);
_.U([_.Z(),_.O("design:type",Object)],ja.prototype,"tonalButtonOverrides",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.infoDialogButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],ja.prototype,"hasInfoDialogButton",null);ja=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],ja);
_.q(ja,"yt-live-chat-auto-mod-message-renderer",function(){if(bCS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;B9z===void 0&&(B9z=document.createElement("template"));var n=B9z;C.call(k,n.content.cloneNode(!0),W.content.firstChild);bCS=W}W=bCS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var xxY;var lC8;var tX8;var EUs=function(){return _.R.apply(this,arguments)||this};
_.D(EUs,_.R);var aCY=EUs;_.U([_.Z(),_.O("design:type",Object)],aCY.prototype,"data",void 0);aCY=_.U([_.T({is:"ytd-factoid-renderer",disableElementRegistration:!0})],aCY);
_.q(aCY,"ytd-factoid-renderer",function(){if(tX8!==void 0)return tX8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tX8=W},{mode:1});var Xas=function(){return _.R.apply(this,arguments)||this};
_.D(Xas,_.R);Xas.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var HL=Xas;_.U([_.Z(),_.O("design:type",Object)],HL.prototype,"data",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);HL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],HL);
_.q(HL,"yt-live-chat-channel-activity-reputation-renderer",function(){if(lC8===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;xxY===void 0&&(xxY=document.createElement("template"));var n=xxY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);lC8=W}W=lC8;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var fCA;var dxS;var mxY=function(){return _.R.apply(this,arguments)||this};
_.D(mxY,_.R);mxY.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var rL=mxY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Boolean)],rL.prototype,"menuFocused",void 0);_.U([_.Z(),_.O("design:type",Object)],rL.prototype,"data",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],rL.prototype,"ytLiveChatItemBehavior",void 0);rL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],rL);
_.q(rL,"yt-live-chat-donation-announcement-renderer",function(){if(dxS===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;fCA===void 0&&(fCA=document.createElement("template"));var n=fCA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);dxS=W}W=dxS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var zJz;var Dxs,SlC=function(){if(Dxs!==void 0)return Dxs;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;zJz===void 0&&(zJz=document.createElement("template"));var n=zJz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return Dxs=W};var MMx=function(){return _.R.apply(this,arguments)||this};
_.D(MMx,_.R);_.oq.Object.defineProperties(MMx,{template:{configurable:!0,enumerable:!0,get:function(){return SlC()}}});
var gL=MMx;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gL.prototype,"data",void 0);gL=_.U([_.l0({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],gL);_.q(gL,"yt-live-chat-empty-feed-view-model",function(){return SlC()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var QQS;var pbC;var vHz=function(){return _.R.apply(this,arguments)||this};
_.D(vHz,_.R);vHz.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"}}}}}};
_.oq.Object.defineProperties(vHz.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,k;return{runs:[{text:(W=this.data)==null?void 0:(k=W.channelName)==null?void 0:k.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],k;if((k=this.data)==null||!k.channelBadges)return W;var C;k=_.b((C=this.data)==null?void 0:C.channelBadges);for(C=k.next();!C.done;C=k.next()){C=_.z(C.value,B48);var n=void 0,N=void 0;if((n=C)==null?0:(N=n.badgeImage)==null?0:N.sources)n=void 0,N={liveChatAuthorBadgeRenderer:{tooltip:C.tooltip,accessibility:{accessibilityData:{label:(n=_.z(C.rendererContext,_.vB))==null?void 0:n.label}}}},C.badgeImage.sources[0].clientResource?N.liveChatAuthorBadgeRenderer.icon=
{iconType:C.badgeImage.sources[0].clientResource.imageName}:N.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:C.badgeImage.sources},W.push(N)}return W}}});
var PL=vHz;_.U([_.Z(),_.O("design:type",Object)],PL.prototype,"data",void 0);_.U([_.G("data.channelName"),_.O("design:type",Object),_.O("design:paramtypes",[])],PL.prototype,"channelName",null);_.U([_.G("data.channelBadges"),_.O("design:type",Array),_.O("design:paramtypes",[])],PL.prototype,"channelBadges",null);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);
PL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],PL);
_.q(PL,"yt-live-chat-identity-view-model",function(){if(pbC===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;QQS===void 0&&(QQS=document.createElement("template"));var n=QQS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);pbC=W}W=pbC;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var e4A;var sQC;var GBz;var yN8;var $O8=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.D($O8,_.R);$O8.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
$O8.prototype.dataChanged=function(W){var k=(0,_.Up)(_.S(this.hostElement).querySelector("#detail-text"));k.textContent="";(W==null?0:W.detailText)&&k.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
var KR=$O8;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],KR.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({observer:"dataChanged"}),_.O("design:type",Object)],KR.prototype,"data",void 0);
_.U([_.Z({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.O("design:type",Object)],KR.prototype,"hidden",void 0);KR=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],KR);
_.q(KR,"yt-live-chat-legacy-paid-message-renderer",function(){if(yN8===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;GBz===void 0&&(GBz=document.createElement("template"));var n=GBz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);yN8=W}W=yN8;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var ZPY;var R4S;var oH8={},iPs=function(){return _.Wp.apply(this,arguments)||this};
_.D(iPs,_.Wp);iPs.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var hn=iPs;hn.prototype.onLiveChatMembershipItemBehaviorClick=hn.prototype.onLiveChatMembershipItemBehaviorClick;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hn.prototype,"data",void 0);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],hn.prototype,"onLiveChatMembershipItemBehaviorClick",null);hn=_.U([_.kr()],hn);
oH8.YtLiveChatMembershipItemBehavior=[hn.prototype,_.K.YtRendererBehavior];var ToS=function(){var W=_.R.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.m("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.D(ToS,_.R);_.Y=ToS.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Y.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Y.messageChanged=function(){var W=this.data.message,k=(0,_.Up)(_.S(this.hostElement).querySelector("#message"));k.textContent="";W&&k.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.Y.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.Y.computeShowOnlyHeader=function(W,k){return this.isMessageEmpty(W,k)};
_.Y.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.Y.isMessageEmpty=function(W,k){return!W||W.empty?!0:!W.message&&!W.inputField&&!k};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.Y.getInputElement=function(){return _.S(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.Y.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.Y.inputInsertEmoji=function(W){var k=this.getInputElement();k&&k.insertEmoji(W)};
_.Y.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.Df(W.liveChatRichMessageInput)):null};
_.Y.onFooterButtonClick=function(){this.data.footerButton&&_.Pe(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.Y.shouldSupportWholeItemClick=function(){return!0};
var WV=ToS;WV.prototype.isDeletedChanged=WV.prototype.isDeletedChanged;WV.prototype.messageChanged=WV.prototype.messageChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],WV.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(oH8.YtLiveChatMembershipItemBehavior),_.O("design:type",Object)],WV.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WV.prototype,"data",void 0);_.U([_.Z({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.O("design:type",Object)],WV.prototype,"hasPrimaryHeaderText",void 0);_.U([_.Z({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.O("design:type",Object)],WV.prototype,"showOnlyHeader",void 0);
_.U([_.Z({computed:"computeAuthorBadges(data)"}),_.O("design:type",Array)],WV.prototype,"authorBadges",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WV.prototype,"modern",void 0);_.U([_.Hl("data.message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WV.prototype,"messageChanged",null);_.U([_.Hl("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WV.prototype,"isDeletedChanged",null);
WV=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],WV);
_.q(WV,"yt-live-chat-membership-item-renderer",function(){if(R4S===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;ZPY===void 0&&(ZPY=document.createElement("template"));var n=ZPY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);R4S=W}W=R4S;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var qls;var u3b;var UOS=function(){return _.R.apply(this,arguments)||this};
_.D(UOS,_.R);UOS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var kd=UOS;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kd.prototype,"data",void 0);kd=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],kd);
_.q(kd,"yt-live-chat-mode-change-message-renderer",function(){if(u3b===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qls===void 0&&(qls=document.createElement("template"));var n=qls;C.call(k,n.content.cloneNode(!0),W.content.firstChild);u3b=W}W=u3b;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var OP2;var LbA;var jQz=function(){return _.R.apply(this,arguments)||this};
_.D(jQz,_.R);var Ck=jQz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],Ck.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ck.prototype,"data",void 0);Ck=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Ck);
_.q(Ck,"yt-live-chat-moderation-message-renderer",function(){if(LbA===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;OP2===void 0&&(OP2=document.createElement("template"));var n=OP2;C.call(k,n.content.cloneNode(!0),W.content.firstChild);LbA=W}W=LbA;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var HPz;var rNb;var gHA=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework");return W};
_.D(gHA,_.R);gHA.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var k;_.gH.instance.resolveCommand((k=this.data)==null?void 0:k.onClickCommand)}};
var nk=gHA;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],nk.prototype,"modern",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],nk.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],nk.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nk.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nk.prototype,"data",void 0);nk=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],nk);
_.q(nk,"yt-live-chat-offer-click-count-message-renderer",function(){if(rNb===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;HPz===void 0&&(HPz=document.createElement("template"));var n=HPz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);rNb=W}W=rNb;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Pos;var KbA=function(){return _.R.apply(this,arguments)||this};
_.D(KbA,_.R);var h4Y=KbA;_.U([_.Z(),_.O("design:type",Object)],h4Y.prototype,"data",void 0);h4Y=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],h4Y);
_.q(h4Y,"yt-live-chat-placeholder-item-renderer",function(){if(Pos===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);Pos=W}W=Pos;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Wvx;var kUS;var C$A=new eW(7),nyA=function(){var W=_.R.apply(this,arguments)||this;W.data={};return W};
_.D(nyA,_.R);nyA.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.qw(this.hostElement,this.data.class,!0);var k;((k=this.oldData)==null?0:k.class)&&_.qw(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
nyA.prototype.computeTimestampString=function(W){return C$A.format(new Date(W/1E3))};
var NC=nyA;NC.prototype.dataChanged=NC.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],NC.prototype,"data",void 0);_.U([_.Z({computed:"computeTimestampString(data.timestampUsec)"}),_.O("design:type",String)],NC.prototype,"timestampString",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NC.prototype,"dataChanged",null);NC=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],NC);
_.q(NC,"yt-live-chat-server-error-message",function(){if(kUS===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Wvx===void 0&&(Wvx=document.createElement("template"));var n=Wvx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);kUS=W}W=kUS;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var NRZ;var YG2;var BRS=function(){var W=_.R.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.D(BRS,_.R);BRS.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
BRS.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var Yd=BRS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],Yd.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Yd.prototype,"defaultToFilledIcon",void 0);_.U([_.Z(),_.O("design:type",Object)],Yd.prototype,"data",void 0);
_.U([_.Z({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Yd.prototype,"hasPrimaryColorIcon",void 0);Yd=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Yd);
_.q(Yd,"yt-live-chat-viewer-engagement-message-renderer",function(){if(YG2===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;NRZ===void 0&&(NRZ=document.createElement("template"));var n=NRZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);YG2=W}W=YG2;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var b1z;var AXb=function(){var W=_.R.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.D(AXb,_.R);AXb.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
AXb.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var BV=AXb;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],BV.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],BV.prototype,"modernUpdate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],BV.prototype,"buttonStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],BV.prototype,"buttonType",void 0);
BV=_.U([_.T({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],BV);
_.q(BV,"ytd-ad-hover-text-button-renderer",function(){if(b1z!==void 0)return b1z;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return b1z=W},{mode:1});var Fvb;var wPZ=function(){var W=_.R.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.m("web_button_rework");return W};
_.D(wPZ,_.R);wPZ.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.Pe(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
var b_=wPZ;_.U([_.Z(),_.O("design:type",Object)],b_.prototype,"buttonOverrides",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],b_.prototype,"modern",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],b_.prototype,"data",void 0);b_=_.U([_.T({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],b_);
_.q(b_,"ytd-live-chat-purchased-product-message-renderer",function(){if(Fvb!==void 0)return Fvb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Fvb=W},{mode:1});var xGY;var lM8;var tEb=function(){var W=_.R.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.D(tEb,_.R);tEb.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
tEb.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
var A5=tEb;A5.prototype.isContainerDeletedChanged=A5.prototype.isContainerDeletedChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],A5.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],A5.prototype,"isContainerDeleted",void 0);
_.U([_.Z(),_.O("design:type",String)],A5.prototype,"deletedStateMessage",void 0);_.U([_.Hl("isContainerDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A5.prototype,"isContainerDeletedChanged",null);A5=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],A5);
_.q(A5,"ytd-sponsorships-live-chat-header-renderer",function(){if(lM8!==void 0)return lM8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lM8=W},{mode:1});var FO=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.D(FO,_.R);FO.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]]"}}}}}};
FO.prototype.onCtaButtonClick=function(){var W,k=_.z((W=this.data)==null?void 0:W.optInPrompt,_.Vq);if(W=this.maybeGetButtonCommand(k)){var C;(C=_.kf())==null||C.clickCommand(W)}};
FO.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.z(W.command,pKx)===void 0&&_.z(W.command,Qrs)===void 0?null:W.command};
FO.prototype.shouldHideOptinPrompt=function(W,k){return!W||k};
var wB=FO;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],wB.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wB.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],wB.prototype,"modern",void 0);
wB=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],wB);
_.q(wB,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(xGY!==void 0)return xGY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xGY=W},{mode:1});var Ey2;var aM8=function(){return _.R.apply(this,arguments)||this};
_.D(aM8,_.R);aM8.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
aM8.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
var xd=aM8;xd.prototype.isDeletedChanged=xd.prototype.isDeletedChanged;_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],xd.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xd.prototype,"data",void 0);_.U([_.Hl("isDeleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xd.prototype,"isDeletedChanged",null);
xd=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],xd);
_.q(xd,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Ey2!==void 0)return Ey2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ey2=W},{mode:1});var XPS=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.D(XPS,_.R);_.Y=XPS.prototype;
_.Y.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"}}}};
_.Y.handleLiveChatAction=function(W){_.z(W,Pf2)?this.handleMarkChatItemAsDeletedAction(_.z(W,Pf2)):_.z(W,gvA)&&this.handleRemoveChatItemAction(_.z(W,gvA))};
_.Y.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.Y.handleMarkChatItemAsDeletedAction=function(W){var k=this,C;((C=this.data)==null?0:C.items)&&this.data.items.forEach(function(n,N){var B=Object.keys(n)[0];Object.values(n)[0].id===W.targetItemId&&k.markAsDeleted("data.items",N,B,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.Y.handleRemoveChatItemAction=function(W){var k=this,C;((C=this.data)==null?0:C.items)&&this.data.items.forEach(function(n,N){Object.values(n)[0].id===W.targetItemId&&k.splice("data.items",N,1)})};
_.Y.markAsDeleted=function(W,k,C,n,N){W=[W,k,C].join(".");this.set(W+".deletedStateMessage",n);this.set(W+".showOriginalContentMessage",N)};
var l_=XPS;_.U([_.Z(),_.O("design:type",Object)],l_.prototype,"data",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],l_.prototype,"ytActionHandlerBehavior",void 0);l_=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],l_);
_.q(l_,"yt-live-chat-item-display-list-renderer",function(){if(sQC===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;e4A===void 0&&(e4A=document.createElement("template"));var n=e4A;C.call(k,n.content.cloneNode(!0),W.content.firstChild);sQC=W}W=sQC;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var fMZ;var dGA,mG8=function(){if(dGA!==void 0)return dGA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;fMZ===void 0&&(fMZ=document.createElement("template"));var n=fMZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return dGA=W};var zG8=function(){var W=_.R.apply(this,arguments)||this;W.isHeader=!1;return W};
_.D(zG8,_.R);zG8.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.oq.Object.defineProperties(zG8,{template:{configurable:!0,enumerable:!0,get:function(){return mG8()}}});
var t5=zG8;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],t5.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],t5.prototype,"isHeader",void 0);t5=_.U([_.l0({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],t5);
_.q(t5,"yt-live-chat-item-display-renderer",function(){return mG8()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var DGs,VE2,MEA,SGZ;
DGs={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}};VE2={home:"eohps",search:"eosps",watch:"eowps"};_.JXs=["watch","search","home"];
_.E$=function(){this.JSC$12003_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12003_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.DE("PRECONSTRUCTION_DELAY",0);this.signals_=_.Ir();this.targetPage_=""};
_.E$.prototype.init=function(W,k){W=W===void 0?"":W;k=k===void 0?null:k;if(this.JSC$12003_isInitialized_)this.abort();else if(this.JSC$12003_isInitialized_=!0,W&&_.cXI(this,W),k){var C=_.SD(this.signals_,"pcl")?0:10,n=function(){for(var N=0,B;B=_.JXs[N++];)B!=W&&B!=k&&this.pendingPages_.push(B);_.IM2(this)}.bind(this);
this.signals_.parkOrScheduleJob(n,C,"pcl")}};
_.E$.prototype.abort=function(){this.fragmentJobId_&&(_.aM.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);SGZ(this)};
_.cXI=function(W,k){W.JSC$12003_isInitialized_&&!W.targetPage_&&(W.targetPage_=k,MEA(W,k),W.isInitialPass_=!1,MEA(W,k),W.signals_.processSignal(VE2[W.targetPage_]),SGZ(W),_.IM2(W))};
_.IM2=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.wI(_.aM,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.cXI(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
MEA=function(W,k){if(k=DGs[k])for(var C in k){var n=!1,N=C;C.charAt(0)=="~"&&(n=!0,N=C.substring(1));var B=k[C];B=typeof B=="object"?B:{count:B};k[C]=B;B.componentName=N;B.count>0&&(W.isInitialPass_?n||W.isSeenDuringInitialPass_[N]||(W.JSC$12003_queue_.push({componentName:N,count:1,signals:B.signals}),W.isSeenDuringInitialPass_[N]=!0,B.count--):W.JSC$12003_queue_.push(B))}};
SGZ=function(W){W.JSC$12003_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.E$.getInstance=function(){return _.hf(_.E$)};var QfZ=function(){this.signals=_.Ir();this.init()};
QfZ.prototype.startPreconstruction=function(){_.E$.getInstance().init(_.cv("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
QfZ.prototype.init=function(){pPY(this);window.Polymer&&dZZ&&faK();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.NX.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.cv("IS_HOMEPAGE_COLD")||_.cv("IS_RESULTS_PAGE_COLD")||_.cv("IS_WATCH_PAGE_COLD"))){vyC(this);break a}AvP(r9m,this.onNotifications,this)}};
var pPY=function(W){var k=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.pS(Error("th"),"WARNING"),k()):_.R8J(window,"load",k)};
QfZ.prototype.onNotifications=function(W){W.timer||(_.cv("IS_HOMEPAGE_COLD")||_.cv("IS_RESULTS_PAGE_COLD")||_.cv("IS_WATCH_PAGE_COLD"))&&vyC(this)};
var vyC=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new QfZ;var a$,eGb=function(){return _.Wp.apply(this,arguments)||this};
_.D(eGb,_.Wp);_.Y=eGb.prototype;_.Y.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var k=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);a$||(a$=new J_z(this.getVersion()));c_w(a$,this.hostElement);IQX(a$,this.hostElement,k,W)}};
_.Y.stopActiveViewMeasurement=function(){a$&&c_w(a$,this.hostElement)};
_.Y.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.Y.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.Y.getVersion=function(){var W=_.DE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.Y.getUrlPrefixesFromCommand=function(W){if(!W)return[];var k=[];W=_.b(W);for(var C=W.next();!C.done;C=W.next())if(C=C.value,C.loggingUrls){C=_.b(C.loggingUrls);for(var n=C.next();!n.done;n=C.next())n=n.value,n.baseUrl&&k.push(n.baseUrl)}return k};
var sf2=eGb;sf2=_.U([_.kr()],sf2);var XO=[sf2.prototype];var GUZ=function(){return _.Wp.apply(this,arguments)||this};
_.D(GUZ,_.Wp);_.oq.Object.defineProperties(GUZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.m("enable_entity_store_from_dependency_injection")?_.SY():_.ZF()}}});
var yXC=GUZ;yXC=_.U([_.kr()],yXC);_.fk=[Aw.prototype,yXC.prototype];var $GZ=["ytd-rich-shelf-renderer"],Z1Y=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.D(Z1Y,_.Wp);_.Y=Z1Y.prototype;_.Y.dismissibleItemIsDismissedChanged_=function(W){_.m("kevlar_fluid_dismiss")&&(W?_.Pe(this.hostElement,"yt-dismissible-item-dismissed"):_.Pe(this.hostElement,"yt-dismissible-item-undismissed"))};
_.Y.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.Y.dismissibleItemReset_=function(){var W=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 _.Wx(function(k,C){W.followUpDialogPromiseResolve=k;W.followUpDialogPromiseReject=C});
_.Pe(this.hostElement,"yt-enable-lockup-interaction")};
_.Y.dismissibleItemOnYtServiceRequestSent_=function(W,k){k.actions&&this.dismissibleItemProcessActions(k.actions,W)};
_.Y.dismissibleItemOnRequestSent=function(W){if(_.m("web_button_rework"))for(var k=_.b(W.detail),C=k.next();!C.done;C=k.next()){var n=void 0;(C=(n=_.z(C.value,_.AQ))==null?void 0:n.actions)&&this.dismissibleItemProcessActions(C,W)}};
_.Y.dismissibleItemOnCommandSent=function(W,k){k&&this.dismissibleItemProcessActions(k,W)};
_.Y.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.Y.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.Y.dismissibleItemProcessActions=function(W,k){for(var C=0;C<W.length;C++){var n=W[C],N=void 0;((N=_.z(n,_.Nl))==null?0:N.commands)&&this.dismissibleItemProcessActions(_.z(n,_.Nl).commands,k);if(_.z(n,_.F5)){if(N=_.z(n,_.F5),!N.replaceParentSection||$GZ.includes(this.hostElement.nodeName.toLowerCase()))_.m("web_see_fewer_shorts_reactive_dismissal")&&N.groupDismissal&&sQc(this,N.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(N),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Nj("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:n})),n=void 0,(n=k)==null||n.stopPropagation()}else if(_.z(n,wS8))this.dismissibleItemHandleHideEnclosingAction_(),n=void 0,(n=k)==null||n.stopPropagation();else if(_.z(n,zeb))_.m("web_see_fewer_shorts_reactive_dismissal")&&(n=_.z(n,zeb),N=void 0,((N=n)==null?0:N.targetGroupId)&&sQc(this,{targetGroupId:n.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Nj("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),n=void 0,(n=k)==null||n.stopPropagation();else if(_.z(n,_.AQ))(n=_.z(n,_.AQ).actions)&&_.CB(this.hostElement,n,this.hostElement),n=void 0,(n=k)==null||n.stopPropagation();else{var B=N=void 0;((N=_.z(n,_.MP))==null?void 0:N.signal)!=="TELL_US_WHY"||((B=_.z(n,_.MP))==null?0:B.targetId)&&_.m("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),n=void 0,(n=k)==null||n.stopPropagation())}}};
_.Y.dismissibleItemOnYtServiceRequestCompleted_=function(W,k){var C=this.get("feedbackResponses.0.followUpDialog",k.data);C?this.followUpDialogPromiseResolve(C):k.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(k.actions,W)};
_.Y.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var k=null;(k=_.S(this.hostElement).querySelector("#dismissed"))&&_.ZR(this,function(){_.sL(k)});
_.Pe(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.Y.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.Y.dismissibleItemHandleUndoFeedbackAction_=function(){_.Pe(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.Y.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(k){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:k}})})};
var dB=Z1Y;dB.prototype.dismissibleItemOnYtServiceRequestCompleted_=dB.prototype.dismissibleItemOnYtServiceRequestCompleted_;dB.prototype.dismissibleItemOnCommandSent=dB.prototype.dismissibleItemOnCommandSent;dB.prototype.dismissibleItemOnRequestSent=dB.prototype.dismissibleItemOnRequestSent;dB.prototype.dismissibleItemOnYtServiceRequestSent_=dB.prototype.dismissibleItemOnYtServiceRequestSent_;dB.prototype.dismissibleItemDataChanged_=dB.prototype.dismissibleItemDataChanged_;
dB.prototype.dismissibleItemIsDismissedChanged_=dB.prototype.dismissibleItemIsDismissedChanged_;_.U([_.v(_.vL),_.O("design:type",Object)],dB.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],dB.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dB.prototype,"isDismissed",void 0);_.U([_.Z(),_.O("design:type",Object)],dB.prototype,"dismissedRenderer",void 0);
_.U([_.Hl("isDismissed"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],dB.prototype,"dismissibleItemIsDismissedChanged_",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dB.prototype,"dismissibleItemDataChanged_",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],dB.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.U([_.jI("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],dB.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.jI("yt-dismissible-item-action"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Array]),_.O("design:returntype")],dB.prototype,"dismissibleItemOnCommandSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],dB.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);dB=_.U([_.kr()],dB);_.md=[_.vL,_.fk,dB.prototype];var zI=function(){var W=_.Wp.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.D(zI,_.Wp);zI.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ZR(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.qw(W,"grid",!0)}};
zI.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
zI.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.S(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
zI.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.z3A.getInstance();var k=this.get("pageSubtype");W=k&&fUz.includes(k)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(k=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.qw(k,W,!0),this.currentGridClass&&_.qw(k,this.currentGridClass,!1),this.currentGridClass=W)};
var Da=zI;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",String)],Da.prototype,"gridStateAwareSizingElementSelector",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Da.prototype,"disableGridStateAware",void 0);Da=_.U([_.kr()],Da);_.Vv=[Da.prototype,_.$D.YtActionHandlerBehavior];_.J5=new _.Tc("GUIDE_TOKEN");var RG8;_.cV={};RG8=function(){var W=_.Wp.apply(this,arguments)||this;W.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 W};
_.D(RG8,_.Wp);_.Y=RG8.prototype;_.Y.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.f().resolve(_.qI(_.J5));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.Y.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.Y.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.Y.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.Y.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.Y.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
var I$=RG8;I$.prototype.onActiveEndpointChange=I$.prototype.onActiveEndpointChange;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],I$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],I$.prototype,"guidePersistentAndVisible",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],I$.prototype,"miniGuideVisible",void 0);_.U([_.Z(),_.O("design:type",Object)],I$.prototype,"activeEndpoint",void 0);
_.U([_.Hl("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],I$.prototype,"onActiveEndpointChange",null);_.U([_.Z(),_.O("design:type",Boolean)],I$.prototype,"guideOpened",void 0);I$=_.U([_.kr()],I$);_.cV.YtdGuideStateAwareBehavior=[];_.cV.YtdGuideStateAwareBehavior.push(I$.prototype,_.$D.YtActionHandlerBehavior);var oys=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],i1S=function(){var W=_.Wp.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$12034_touched=!1;return W};
_.D(i1S,_.Wp);_.Y=i1S.prototype;_.Y.created=function(){this.useExpandableTooltip=!oys.includes(this.is)};
_.Y.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.Y.detached=function(){this.useExpandableTooltip=!1};
_.Y.lockupOnDown=function(W){this.interactionElement&&!_.er(_.vl(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.Y.lockupOnUp=function(W){this.interactionElement&&!_.er(_.vl(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.Y.onTouchStart=function(){this.JSC$12034_touched=!0};
_.Y.lockupOnMouseEnter=function(){var W=this,k=_.Oe("kevlar_lockup_hover_delay",-1);this.JSC$12034_touched&&k>=0?(_.aM.cancelJob(this.hoverJobId),this.hoverJobId=_.aM.addJob(function(){W.lockupIsHovered=!0},8,k),this.JSC$12034_touched=!1):this.lockupIsHovered=!0};
_.Y.lockupOnMouseLeave=function(){this.hoverJobId&&(_.aM.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.Y.lockupOnPopupClosed=function(W,k){var C;((C=k.popupRenderer)==null?void 0:C.is)==="ytd-menu-popup-renderer"&&(W=k.popupRenderer.veData,k=_.VM(),W&&k&&_.$Q(k,[W]))};
_.Y.lockupOnLockupRequested=function(W){var k=W.detail.videoIds[0],C;W.detail&&k===((C=this.data)==null?void 0:C.videoId)&&(W.detail.returnValue=[this.data])};
_.Y.lockupOnYtServiceRequestSent=function(W,k){if(W=k.actions)for(var C=0;C<W.length;C++){var n=W[C];if(n.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&k.ajaxPromise){var N=void 0,B=(N=_.z(k.endpoint,_.mB))==null?void 0:N.playlistId;N=void 0;n=(N=n.removedVideoId)!=null?N:"";qmY(_.Qd(),n,B)}else n.action==="ACTION_REMOVE_VIDEO"&&k.ajaxPromise&&(B=void 0,n=(B=n.setVideoId)!=null?B:"",_.uyS(_.Qd(),n))}};
_.Y.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.Y.lockupOnLockupEnabled=function(){if(!this.$){var W=_.f().resolve(_.yF).getCurrentPage(),k=this.getParentRenderer?this.getParentRenderer():void 0;_.zJ(new _.AM("component not ready",this.is,this.isAttached,W==null?void 0:W.is,k==null?void 0:k.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var Se=i1S;Se.prototype.lockupOnLockupEnabled=Se.prototype.lockupOnLockupEnabled;Se.prototype.lockupOnLockupDisabled=Se.prototype.lockupOnLockupDisabled;Se.prototype.lockupOnYtServiceRequestSent=Se.prototype.lockupOnYtServiceRequestSent;Se.prototype.lockupOnLockupRequested=Se.prototype.lockupOnLockupRequested;Se.prototype.lockupOnPopupClosed=Se.prototype.lockupOnPopupClosed;Se.prototype.lockupOnMouseLeave=Se.prototype.lockupOnMouseLeave;Se.prototype.lockupOnMouseEnter=Se.prototype.lockupOnMouseEnter;
Se.prototype.onTouchStart=Se.prototype.onTouchStart;Se.prototype.lockupOnUp=Se.prototype.lockupOnUp;Se.prototype.lockupOnDown=Se.prototype.lockupOnDown;_.U([_.Z(),_.O("design:type",Object)],Se.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Se.prototype,"lockupIsHovered",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Se.prototype,"lockupTouchTriggered",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Se.prototype,"useExpandableTooltip",void 0);
_.U([_.gi("#interaction"),_.O("design:type",Object)],Se.prototype,"interactionElement",void 0);_.U([_.jI("down"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Se.prototype,"lockupOnDown",null);_.U([_.jI("up"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Se.prototype,"lockupOnUp",null);
_.U([_.jI("touchstart"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Se.prototype,"onTouchStart",null);_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Se.prototype,"lockupOnMouseEnter",null);_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Se.prototype,"lockupOnMouseLeave",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Se.prototype,"lockupOnPopupClosed",null);_.U([_.jI("yt-lockup-requested"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Se.prototype,"lockupOnLockupRequested",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Se.prototype,"lockupOnYtServiceRequestSent",null);_.U([_.jI("yt-disable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Se.prototype,"lockupOnLockupDisabled",null);
_.U([_.jI("yt-enable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Se.prototype,"lockupOnLockupEnabled",null);Se=_.U([_.kr()],Se);_.MC=[Se.prototype];_.TRA={YtdReduxBehavior:[]};_.TRA.YtdReduxBehavior.push.apply(_.TRA.YtdReduxBehavior,_.fk);var qG8=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.m("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.D(qG8,_.Wp);_.Y=qG8.prototype;_.Y.computeThumbnailOverlaySidePanelWidth_=function(W,k){return W-k};
_.Y.computeSize=function(W,k){if(!this.disableRounding){if(!W&&!k)return"small";W=Math.max(W||0,k||0);return W>=256?"large":W>=96?"medium":"small"}};
_.Y.computeFinalHoveredState_=function(W,k,C){return this.nowPlaying?!1:_.m("kevlar_thumbnail_fluid")&&W?k:C};
_.Y.computeHoverOverlays_=function(W,k){return W&&k?k:void 0};
_.Y.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.Y.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.Y.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.m("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.k7();var k=W.currentEndpoint;!this.disableNowPlaying&&k&&_.z(k,_.RA)&&this.data?(k=_.z(k,_.RA),this.nowPlaying=this.data.playlistId?k.playlistId===this.data.playlistId:k.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
var Qv=qG8;Qv.prototype.checkMiniplayer_=Qv.prototype.checkMiniplayer_;Qv.prototype.onMouseLeave_=Qv.prototype.onMouseLeave_;Qv.prototype.onMouseEnter_=Qv.prototype.onMouseEnter_;Qv.prototype.computeHoverOverlays_=Qv.prototype.computeHoverOverlays_;Qv.prototype.computeFinalHoveredState_=Qv.prototype.computeFinalHoveredState_;Qv.prototype.computeSize=Qv.prototype.computeSize;Qv.prototype.computeThumbnailOverlaySidePanelWidth_=Qv.prototype.computeThumbnailOverlaySidePanelWidth_;
_.U([_.v(_.fk),_.O("design:type",Object)],Qv.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],Qv.prototype,"height",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qv.prototype,"bottomSidePanel",void 0);_.U([_.Z(),_.O("design:type",Number)],Qv.prototype,"width",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"disableNowPlaying",void 0);
_.U([_.Z({selector:_.zo}),_.O("design:type",Boolean)],Qv.prototype,"miniplayerIsActive",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"disableTooltips",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"useHoveredProperty",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"hovered",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"isThumbnailHovered_",void 0);
_.U([_.Z({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.O("design:type",Boolean)],Qv.prototype,"finalHoveredState_",void 0);_.U([_.Z({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.O("design:type",Number)],Qv.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qv.prototype,"addBackground",void 0);
_.U([_.Z({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.O("design:type",Object)],Qv.prototype,"hoverOverlays_",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qv.prototype,"nowPlaying",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Qv.prototype,"isVideoPlaying",void 0);_.U([_.Z(),_.O("design:type",Object)],Qv.prototype,"disableRounding",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.O("design:type",Object)],Qv.prototype,"size",void 0);_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qv.prototype,"onMouseEnter_",null);_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qv.prototype,"onMouseLeave_",null);
_.U([_.Hl("data","disableNowPlaying","miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qv.prototype,"checkMiniplayer_",null);Qv=_.U([_.kr()],Qv);var u98=[Qv.prototype];_.pk={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,k){return W+":"+_.Hw(k)},
getPlayerListener_:function(W,k,C){W=this.getPlayerListenerKey_(W,k);k=this.playerListeners_.get(W);C&&this.playerListeners_.delete(W);return k},
savePlayerListener_:function(W,k){var C=k.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,k),C);return C},
listenToPlayerEvent:function(W,k,C){C=this.savePlayerListener_(k,C);W.addEventListener(k,C)},
listenToPlayerEvents:function(W,k){k.forEach(function(C,n){this.listenToPlayerEvent(W,n,C)}.bind(this))},
unlistenFromPlayerEvent:function(W,k,C){C=this.getPlayerListener_(k,C,!0);W.removeEventListener(k,C)},
unlistenFromPlayerEvents:function(W,k){k.forEach(function(C,n){this.unlistenFromPlayerEvent(W,n,C)}.bind(this))}}};
_.vV=function(){};_.UGI=new _.Tc("PLAYER_API_TOKEN");var R4X=!1,qlm,iPm=!1,UOK;var iV=function(W,k,C,n,N){_.XK.call(this);var B=this;this.playerId=k;this.webPlayerContextConfig=n;this.uTj=N;this.kEN=!1;this.api={};this.suj=this.vF=null;this.jsb=new _.kg;this.yY={};this.qbj=this.pnS=this.elementId=this.xEJ=this.config=null;this.bDj=!1;this.dB=this.cMd=null;this.gwn={};this.chj=["onReady"];this.lastError=null;this.es3=NaN;this.uVl={};this.vyq=0;this.eh=this.targetElement=W;_.Bf(this,this.jsb);O1S(this);C?this.vyq=setTimeout(function(){B.loadNewVideoConfig(C)},0):n&&(LvC(this),
jfA(this))};
_.D(iV,_.XK);iV.prototype.getId=function(){return this.playerId};
iV.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.vyq&&(clearTimeout(this.vyq),this.vyq=0);var k=W||{};k instanceof W1S||(k=new W1S(k));this.config=k;this.setConfig(W);jfA(this);this.isReady()&&H1I(this)}};
var LvC=function(W){var k;W.webPlayerContextConfig?k=W.webPlayerContextConfig.rootElementId:k=W.config.attrs.id;W.elementId=k||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var C;((C=W.eh)==null?void 0:C.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
iV.prototype.setConfig=function(W){this.xEJ=W;this.config=rXI(W);LvC(this);if(!this.pnS){var k;this.pnS=gyZ(this,((k=this.config.args)==null?void 0:k.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var C;if((C=this.config)==null?0:C.attrs)W=this.config.attrs,(k=W.width)&&this.eh&&(this.eh.style.width=e5(Number(k)||k,!0)),(W=W.height)&&this.eh&&(this.eh.style.height=e5(Number(W)||W,!0))};
var H1I=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var k;W.api.loadVideoByPlayerVars((k=W.config.args)!=null?k:null)}else W.api.cueVideoByPlayerVars(W.config.args)},Kvb=function(W){var k=!0,C=W.getPlayerElement();
C&&W.config&&(k=C.dataset.version===P$I(W));return k&&!!_.QK("yt.player.Application.create")},jfA=function(W){if(!W.isDisposed()&&!W.bDj){var k=Kvb(W);
if(k&&(W.getPlayerElement()?"html5":null)==="html5")W.qbj="html5",W.isReady()||hGA(W);else if(WHs(W),W.qbj="html5",k&&W.dB&&W.targetElement)W.targetElement.appendChild(W.dB),hGA(W);else{W.config&&(W.config.loaded=!0);var C=!1;W.cMd=function(){C=!0;var n=k58(W,"player_bootstrap_method")?_.QK("yt.player.Application.createAlternate")||_.QK("yt.player.Application.create"):_.QK("yt.player.Application.create");var N=W.config?rXI(W.config):void 0;n&&n(W.targetElement,N,W.webPlayerContextConfig,W.uTj);hGA(W)};
W.bDj=!0;k?W.cMd():(_.ML(P$I(W),W.cMd),(k=C3x(W))&&a2z(k||""),n_Y(W)&&!C&&_.$g("yt.player.Application.create",null))}}};
iV.prototype.getPlayerElement=function(){var W=_.oh(document,this.elementId);!W&&this.eh&&this.eh.querySelector&&(W=this.eh.querySelector("#"+this.elementId));return W};
var hGA=function(W){if(!W.isDisposed()){var k=W.getPlayerElement(),C=!1;k&&k.getApiInterface&&k.getApiInterface()&&(C=!0);if(C){W.bDj=!1;if(!k58(W,"html5_remove_not_servable_check_killswitch")){var n;if((k==null?0:k.isNotServable)&&W.config&&(k==null?0:k.isNotServable((n=W.config.args)==null?void 0:n.video_id)))return}NVZ(W)}else W.es3=setTimeout(function(){hGA(W)},50)}},NVZ=function(W){O1S(W);
W.kEN=!0;var k=W.getPlayerElement();if(k){W.vF=YPC(W,k,"addEventListener");W.suj=YPC(W,k,"removeEventListener");var C=k.getApiInterface();C=C.concat(k.getInternalApiInterface());for(var n=W.api,N=0;N<C.length;N++){var B=C[N];n[B]||(n[B]=YPC(W,k,B))}}for(var A in W.yY)W.yY.hasOwnProperty(A)&&W.vF&&W.vF(A,W.yY[A]);H1I(W);W.pnS&&W.pnS(W.api);W.jsb.publish("onReady",W.api)},YPC=function(W,k,C){var n=k[C];
return function(){var N=_.v6.apply(0,arguments);try{return W.lastError=null,n.apply(k,N)}catch(B){if(C!=="sendAbandonmentPing")throw B.params=C,W.lastError=B,N=new _.AM("PlayerProxy error in method call",{error:B,method:C,playerId:W.playerId}),N.level="WARNING",N;}}},O1S=function(W){W.kEN=!1;
if(W.suj)for(var k in W.yY)W.yY.hasOwnProperty(k)&&W.suj(k,W.yY[k]);for(var C in W.uVl)W.uVl.hasOwnProperty(C)&&clearTimeout(Number(C));W.uVl={};W.vF=null;W.suj=null;k=W.api;for(var n in k)k.hasOwnProperty(n)&&(k[n]=null);k.addEventListener=function(N,B){W.addEventListener(N,B)};
k.removeEventListener=function(N,B){W.removeEventListener(N,B)};
k.destroy=function(){W.dispose()};
k.getLastError=function(){return W.getLastError()};
k.getPlayerType=function(){return W.getPlayerType()};
k.getCurrentVideoConfig=function(){return W.xEJ};
k.loadNewVideoConfig=function(N){W.loadNewVideoConfig(N)};
k.isReady=function(){return W.isReady()}};
iV.prototype.isReady=function(){return this.kEN};
iV.prototype.addEventListener=function(W,k){var C=this;this.isDisposed();var n=gyZ(this,k);n&&(_.ZX(this.chj,W)||this.yY[W]||(k=BV8(this,W),this.vF&&this.vF(W,k)),this.jsb.subscribe(W,n),W==="onReady"&&this.isReady()&&setTimeout(function(){n(C.api)},0))};
iV.prototype.removeEventListener=function(W,k){this.isDisposed()||(k=gyZ(this,k))&&this.jsb.unsubscribe(W,k)};
var gyZ=function(W,k){var C=k;if(typeof k==="string"){if(W.gwn[k])return W.gwn[k];C=function(){var n=_.v6.apply(0,arguments),N=_.QK(k);if(N)try{N.apply(_.NX,n)}catch(B){throw n=new _.AM("PlayerProxy error when executing callback",{error:B}),n.level="ERROR",n;}};
W.gwn[k]=C}return C?C:null},BV8=function(W,k){var C=function(n){var N=function(){W.isDisposed();
if(!W.isDisposed())try{W.jsb.publish(k,n!=null?n:void 0)}catch(w){var A=new _.AM("PlayerProxy error when creating global callback",{error:w.message,event:k,playerId:W.playerId,data:n,originalStack:w.stack,componentStack:w.componentStack});A.level="WARNING";throw A;}};
if(k58(W,"web_player_publish_events_immediately"))N();else{var B=setTimeout(function(){N();_.JU.remove(W.uVl,String(B))},0);
_.JU.add(W.uVl,String(B),!0)}};
return W.yY[k]=C};
iV.prototype.getPlayerType=function(){return this.qbj||(this.getPlayerElement()?"html5":null)};
iV.prototype.getLastError=function(){return this.lastError};
var WHs=function(W){W.cancel();O1S(W);W.qbj=null;W.config&&(W.config.loaded=!1);var k=W.getPlayerElement();k&&(Kvb(W)||!n_Y(W)?W.dB=k:(k&&k.destroy&&k.destroy(),W.dB=null));W.targetElement&&_.Ju(W.targetElement)};
iV.prototype.cancel=function(){this.cMd&&_.RX3(P$I(this),this.cMd);clearTimeout(this.es3);this.bDj=!1};
iV.prototype.disposeInternal=function(){WHs(this);if(this.dB&&this.config&&this.dB.destroy)try{this.dB.destroy()}catch(k){var W=new _.AM("PlayerProxy error during disposal",{error:k});W.level="ERROR";throw W;}this.gwn=null;for(W in this.yY)this.yY.hasOwnProperty(W)&&delete this.yY[W];this.xEJ=this.config=this.api=null;delete this.targetElement;delete this.eh;_.XK.prototype.disposeInternal.call(this)};
var n_Y=function(W){var k,C;W=(k=W.config)==null?void 0:(C=k.args)==null?void 0:C.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},P$I=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},C3x=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},k58=function(W,k){if(W.webPlayerContextConfig)var C=W.webPlayerContextConfig.serializedExperimentFlags;
else{var n;if((n=W.config)==null?0:n.args)C=W.config.args.fflags}return(C||"").split("&").includes(k+"=true")},rXI=function(W){for(var k={},C=_.b(Object.keys(W)),n=C.next();!n.done;n=C.next()){n=n.value;
var N=W[n];k[n]=typeof N==="object"?_.JU.clone(N):N}return k};var rNw={},HP4="player_uid_"+(Math.random()*1E9>>>0);var ee=function(W,k,C,n,N,B){k=k===void 0?document.createElement("div"):k;this.webPlayerContextConfig=W;this.container=k;this.commandResolver=C;this.apiResolver=Kb2();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.gn;n||B?bms(this):AF8(this);this.pendingPlayerResponse=n;this.pendingWatchNextResponse=N;this.pendingPlayerVars=B;FHA(this)};
ee.prototype.loadVideoWithPlayerResponse=function(W,k,C){this.loadVideo(W,k,C)};
ee.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
ee.prototype.destroy=function(W){if(W=_.oh(document,W))W=HP4+"_"+_.Hw(W),(W=rNw[W])&&W.dispose()};
var xQA=function(W,k){var C;_.F(function(n){if(n.nextAddress==1)return W.pendingWatchNextResponse=k,W.synchronousApi?(C=W.synchronousApi,n.jumpTo(2)):_.l(n,W.api,3);n.nextAddress!=2&&(C=n.yieldResult);w7x(W,C);W.pendingWatchNextResponse&&(C.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.ab(n)})},w7x=function(W,k){var C;
if(!(k==null?0:(C=k.isReady)==null?0:C.call(k))){var n;W=new _.AM("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:k===void 0,playerApiNull:k===null,playerApiReady:(k==null?void 0:(n=k.isReady)==null?void 0:n.call(k))===!0,playerApiMethods:k?Object.keys(k):[]});_.dI(W)}},l$8=function(W,k){if(typeof W[k]==="function")return W[k]()},tuZ=function(W){var k=window,C,n=(C=k.ytplayer)==null?void 0:C.bootstrapPlayerContainer;
if((C=n==null?void 0:n.firstElementChild)&&_.eZ(C,"html5-video-player")){var N,B,A=(N=k.ytplayer)==null?void 0:(B=N.bootstrapWebPlayerContextConfig)==null?void 0:B.contextId;N=W.webPlayerContextConfig.contextId;if(A&&A===N){n!==W.container&&(n=!1,l$8(C,"getPlayerState")===2&&(n=!0),W.container.appendChild(C),n||l$8(C,"playVideo"));var w;if((w=k.ytplayer)==null?0:w.bootstrapPlayerResponse)W.bootstrapPlayerResponse=k.ytplayer.bootstrapPlayerResponse}}},FHA=function(W){var k,C,n,N,B;
_.F(function(A){if(A.nextAddress==1)return W.pageReadyOrDataAvailable?A.jumpTo(2):_.l(A,W.pageReadyOrDataAvailableResolver.promise,2);if(A.nextAddress!=4)return!_.m("kevlar_player_unified_player_loading")||oHw()&&ToK()?A.jumpTo(4):_.l(A,Lb2(),4);tuZ(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)k=jQ4(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(k.loaded=!0),W.bootstrapPlayerResponse=void 0;
C=Pom(W.container,k,W.webPlayerContextConfig);((n=k)==null?0:n.loaded)&&W.pendingWatchNextResponse?(xQA(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):E_8(W);N=function(w){C.removeEventListener("onReady",N);W.synchronousApi=w;W.apiResolver.resolve(w)};
C.addEventListener("onReady",N);W.commandResolver!==void 0&&(B=W.commandResolver,C.addEventListener("innertubeCommand",function(w){B(w)}));
_.ab(A)})};
ee.prototype.loadVideo=function(W,k,C){var n=this,N,B,A,w,x,E,a,X,d;return _.F(function(V){if(V.nextAddress==1)return n.pendingPlayerResponse=W,n.pendingWatchNextResponse=k,n.pendingPlayerVars=C,bms(n),n.synchronousApi?(N=n.synchronousApi,V.jumpTo(2)):_.l(V,n.api,3);V.nextAddress!=2&&(N=V.yieldResult);w7x(n,N);A=new Promise(function(c){B=c});
w=function(){var c=N.getPlayerResponse();c&&(N.removeEventListener("onVideoDataChange",w),B(c))};
N.addEventListener("onVideoDataChange",w);if(n.pendingPlayerResponse||n.pendingPlayerVars)n.pendingPlayerResponse&&n.pendingPlayerResponse===n.bootstrapPlayerResponse?(B(n.pendingPlayerResponse),n.pendingWatchNextResponse&&xQA(n,n.pendingWatchNextResponse)):(x=jQ4(n.pendingPlayerResponse,n.pendingWatchNextResponse,n.pendingPlayerVars),(d=(E=n.pendingPlayerResponse)==null?void 0:(a=E.playerConfig)==null?void 0:(X=a.playbackStartConfig)==null?void 0:X.startPaused)?N.cueVideoByPlayerVars(x.args):N.loadVideoByPlayerVars(x.args)),
E_8(n),n.bootstrapPlayerResponse=void 0;return V.return(A)})};
var AF8=function(W){if(document.readyState==="complete"||document.readyState==="interactive")bms(W);else{var k=function(){document.removeEventListener("DOMContentLoaded",k);bms(W)};
document.addEventListener("DOMContentLoaded",k)}},bms=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},E_8=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.oq.Object.defineProperties(ee.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var s$=function(W){mf.call(this,W===void 0?"document_active":W);var k=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(C){k.transition("document_disposed",{event:C})});
window.addEventListener("beforeunload",function(C){k.transition("document_disposed_preventable",{event:C})});
window.addEventListener("unload",function(C){k.transition("document_disposed",{event:C});k.hasRun=new Map})};
_.D(s$,mf);
s$.prototype.runPreventableDispose=function(W,k){if(!this.hasRun.get("document_disposed_preventable")){W(k==null?void 0:k.event);var C,n;if((k==null?0:(C=k.event)==null?0:C.defaultPrevented)||(k==null?0:(n=k.event)==null?0:n.returnValue)){k.event.returnValue||(k.event.returnValue=!0);k.event.defaultPrevented||k.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")};
s$.prototype.runDispose=function(W,k){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(k==null?void 0:k.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
s$.prototype.runFlush=function(W,k){W(k==null?void 0:k.event);this.transition("document_active")};
s$.prototype.runActive=function(){};var GI=function(W){mf.call(this,W===void 0?"document_visibility_unknown":W);var k=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(C){document.visibilityState==="visible"?k.transition("document_visible",{event:C}):k.transition("document_hidden",
{event:C})});
_.m("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(C){k.transition("document_backgrounded",{event:C})}),window.addEventListener("focus",function(C){k.transition("document_foregrounded",{event:C})}))};
_.D(GI,mf);GI.prototype.runVisible=function(W,k){W(k==null?void 0:k.event);_.m("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
GI.prototype.runHidden=function(W,k){W(k==null?void 0:k.event);_.m("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
GI.prototype.runBackgrounded=function(W,k){W(k==null?void 0:k.event)};
GI.prototype.runForegrounded=function(W,k){W(k==null?void 0:k.event)};var yv=function(){this.teardownLifecycle=new s$;this.visibilityLifecycle=new GI};
yv.prototype.install=function(){var W=_.v6.apply(0,arguments),k=this;W.forEach(function(C){k.teardownLifecycle.install(C)});
W.forEach(function(C){k.visibilityLifecycle.install(C)})};var $d=function(){yv.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.m("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.m("web_log_cfg_cee_ks")||_.wI(_.aM,a$S)};
_.D($d,yv);var h4P=function(){$d.loggingInstance||($d.loggingInstance=new $d);return $d.loggingInstance};
$d.prototype.logFinalPayload=function(){if(_.m("web_fp_via_jspb")){var W=new HYb,k=_.VM();k&&_.fU(W,1,k);k=_.m("jspb_sparse_encoded_pivot")?new FP([{}]):new FP;_.b5(k,380,rAz,W);$Vc("finalPayload",k);_.m("web_fp_via_jspb_and_json")&&_.a9("finalPayload",{csn:_.VM()})}else _.a9("finalPayload",{csn:_.VM()})};
$d.prototype.abortSlisAndFlush=function(){RRx(Mt);Qq!=null&&Qq.flush()};
$d.prototype.flushInteractionLoggingAttachVes=function(){NXs(_.kf())};
var a$S=function(){var W=_.DE("CLIENT_EXPERIMENT_EVENTS");if(W){var k=rK3();W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,k(C)&&_.a9("genericClientExperimentEvent",{eventType:C});delete _.mh.CLIENT_EXPERIMENT_EVENTS}};var X7s={};
X7s.YtPlayerBehavior=[_.pk.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.gn;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Wv3(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.DR(this,"pan-down"),_.m("kevlar_pinch_fullscreen")&&_.PK().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.m("kevlar_pinch_fullscreen")&&_.PK().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,k,C){var n=this;Tf(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Tf(!1,"MainAppPlayer already created.");else{var N=_.m("kevlar_player_container_query_killswitch")?this.$.container:_.S(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ee(this.getWebPlayerContextConfig_(),N,function(B){return _.Pp(B,n.hostElement)},W,k,C);
this.mainAppPlayer_.api.then(function(B){n.player_=B;n.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&C4A.resolve(B)})}},
loadVideoWithPlayerResponse:function(W,k){var C=this;if(this.useUnifiedPlayer_()){var n=this.watchNextData,N,B=(N=W.videoDetails)==null?void 0:N.videoId,A,w,x;(N=(A=this.watchNextData)==null?void 0:(w=A.currentVideoEndpoint)==null?void 0:(x=w.watchEndpoint)==null?void 0:x.videoId)&&B!=N&&(n=void 0,_.m("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,n,k):this.createMainAppPlayer_(W,n,k);this.mainAppPlayer_.api.then(function(){_.Pe(C.hostElement,
"yt-player-updated")})}else this.update(yNp(W,k))},
loadVideoWithPlayerVars:function(W){var k=this;this.useUnifiedPlayer_()?(_.m("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.Pe(k.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var k=this;if(this.useUnifiedPlayer_())Tf(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var C=gv2(W.args);C&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==C&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(n){_.Pe(k.hostElement,"yt-player-updated",_.m("kevlar_player_updated_obsolete_player_killswitch")?
n:void 0)})}_.mw(new _.AM("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.getPlayerPromise(),2);C=n.yieldResult;if(!C)throw Error("vh");W&&k.updatePlayerPlaylist_(W);_.ab(n)})},
acquireApi_:function(W){var k=this;if(this.useUnifiedPlayer_())Tf(!1,"Invalid method call in kevlar_unified_player.");else return _.aM.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Tf(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(C){k.shouldAutoplay_(W)?C.loadVideoByPlayerVars(W.args):C.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var k=this;if(this.useUnifiedPlayer_())Tf(!1,"Invalid method call in kevlar_unified_player.");else return Tf(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.zJ(Error("wh")),Tf(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.m("kevlar_player_container_query_killswitch")?this.$.container:_.S(this.hostElement).querySelector("#container"),Lb2().then(function(){var C=k.initPlayer_(W);k.playerResolver_.resolve(C);
return C})},
onPlayerReady_:function(W,k){this.useUnifiedPlayer_()?Tf(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&C4A.resolve(W),k(W))},
maybeCallApiMethodOnElement_:function(W,k){if(typeof W[k]==="function")return W[k]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,k,C=(k=W.ytplayer)==null?void 0:k.bootstrapPlayerContainer;if((k=C==null?void 0:C.firstElementChild)&&k.classList.contains("html5-video-player")){var n,N,B=(n=W.ytplayer)==null?void 0:(N=n.bootstrapWebPlayerContextConfig)==null?void 0:N.contextId;n=this.getWebPlayerContextConfig_().contextId;if(B&&B===n){C!==this.playerContainer_&&(C=!1,this.maybeCallApiMethodOnElement_(k,"getPlayerState")===2&&(C=!0),this.playerContainer_.appendChild(k),C||this.maybeCallApiMethodOnElement_(k,
"playVideo"));var A;if((A=W.ytplayer)==null?0:A.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var k=this;if(this.useUnifiedPlayer_())Tf(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(C){k.maybeAdoptBootstrapPlayer_();var n=W?$Ow(W):void 0;n&&n==k.bootstrapPlayerResponse_&&(W.loaded=!0);n=k.playerContainer_;var N=k.getWebPlayerContextConfig_();n=Pom(n,W,N);k.player_=n;k.onPlayerReadyEvent_=k.onPlayerReady_.bind(k,k.player_,C);k.player_.addEventListener("onReady",k.onPlayerReadyEvent_);k.player_.addEventListener("innertubeCommand",
k.onPlayerInnerTubeCommand_.bind(k))})},
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(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.f().resolve(_.yF).getCurrentPage();W&&W.getScrollTop()<=0?_.DR(this,"pan-down"):_.DR(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var k=this,C,n,N;return _.F(function(B){if(B.nextAddress==1)return C=_.f().resolve(_.qI(_.J4)),n=!!(C&&C.playlistComponent&&C.playlistComponent.loopOn),_.l(B,k.getPlayerPromise(),2);var A=N=B.yieldResult,w=A.updatePlaylist,x=[];if(_.m("kevlar_player_playlist_use_local_index")){var E,a;var X=(a=(E=W.localCurrentIndex)!=null?E:W.currentIndex)!=null?a:0}else{var d;X=(d=W.currentIndex)!=null?d:0}if(W.contents)for(E=0;E<W.contents.length;E++)if((a=W.contents[E])&&a.playlistPanelVideoRenderer)if(AnP(a)){a=
a.playlistPanelVideoRenderer;d="";a.shortBylineText&&(d=_.y4(a.shortBylineText));var V="";a.title?V=_.y4(a.title):a.unplayableText&&(V=_.y4(a.unplayableText));x.push({author:d,title:V,encrypted_id:a.videoId})}else E<X&&--X;w.call(A,{index:X,list:W.playlistId?W.playlistId:"",loop:n,playlist_title:W.title,playlist_length:x.length,video:x,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.y4(W.ownerName):void 0});_.ab(B)})},
focusOnPlayer:function(){_.ZR(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.f$x(_.f().resolve(_.xa)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(k){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")k();else{var C=function(){document.removeEventListener("DOMContentLoaded",C);k()};
document.addEventListener("DOMContentLoaded",C)}})).then(function(){return Lb2()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.wI(_.aM,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.mw(new _.AM("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?Tf(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())Tf(!1,"Invalid method call in kevlar_unified_player.");else{var k=this.get("args.el",W);return k&&k!="detailpage"&&this.isMiniplayerActive_()||k&&(k=="sponsorshipsoffer"||k=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=$Ow(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.f().resolve(_.eq).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var k=W.getPlayerState();_.m("kevlar_player_check_ad_state_on_stop")&&(k=W.getPlayerState(W.getPresentingPlayerType()));k!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,k,C){C=C===void 0?!1:C;var n=this,N,B,A,w;return _.F(function(x){if(x.nextAddress==1)return k||(k=n.hostElement),N=n.useUnifiedPlayer_()?!!n.mainAppPlayer_:!!n.initPlayerPromise_,N?_.l(x,n.getPlayerPromise(),2):(C?W.insertBefore(k,W.firstChild):W.appendChild(k),x.return());B=x.yieldResult;A=B.getPlayerState(B.getPresentingPlayerType());w=!1;if(A==-1||A==1||A==3)w=!0;C?W.insertBefore(k,W.firstChild):W.appendChild(k);w&&B.playVideo();B.setSize(NaN,NaN);_.ab(x)})},
watchNextDataChanged_:function(W){var k=this;W&&(this.useUnifiedPlayer_()&&_.m("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&xQA(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(C){C.updateVideoData(k.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.m("kevlar_unified_player_update_watch_next_killswitch"))Tf(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.DE("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.zJ(Error("xh"));return W},
hasWebPlayerContextConfig_:function(){return!!_.DE("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?Tf(!1,"Invalid method call in kevlar_unified_player."):_.Pp(W,this.hostElement)},
useUnifiedPlayer_:function(){var W=_.m("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.m("kevlar_unified_player")||W}}];var dQ8={};dQ8.YtPlaylistPanelBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var k=W.playlistButtons.menuRenderer.topLevelButtons,C=k.length,n=0;n<C;n++)if(k[n].toggleButtonRenderer){var N=k[n].toggleButtonRenderer;N.defaultIcon.iconType=="LOOP"&&this.loopOn?N.isToggled=this.loopOn:N.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(N.isToggled=this.shuffleOn)}return W.playlistButtons}}];var mQs=function(W){Hm.call(this,W,132);this.isDocument=W===document.documentElement};
_.D(mQs,Hm);mQs.prototype.calculateScrollDelta=function(W,k,C){var n=0;W<k?n=W<k-100?-48:-8:W>k+C&&(n=W>k+C+100?48:8);return n};
mQs.prototype.JSC$9160_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);Hm.prototype.JSC$9160_onMouseMove.call(this,W)};var Za=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$12093_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(k){var C=k.JSC$9156_dragger;C.scrollTarget_=W.scrollElement;k=k.draggerEl;C&&k.menuOpened&&C.setEnabled(!1)};
W.onDragStart=function(k){var C=k.draggerEl;k=k.currDragItem;var n=Object.assign({},k==null?void 0:k.data);n.trackingParams=void 0;C.data=n;C.style.position="absolute";C.style.width=(k==null?void 0:k.clientWidth)+"px";C.style.zIndex="2030";C.onDrag&&C.onDrag();_.m("web_owner_document_fallback_killswitch")?(k=document.querySelector("ytd-app"))&&_.S(k).appendChild(C):(k=_.QZ(C),(n=k.querySelector("ytd-app"))?_.S(n).appendChild(C):k.body.appendChild(C));W.dragScrollSupport=new mQs(W.scrollElement);W.dragScrollSupport.horizontalScrolling_=
!1;C=W.dragScrollSupport;C.constrainScroll_=!!C.margin_&&!1};
W.onDrop=function(k){W.handleDrop(k);W.dragScrollSupport&&(_.LU(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$12093_dragListGroup){var k=W.JSC$12093_dragListGroup;qCx(k,k.currDragItem_)}};
return W};
_.D(Za,_.Wp);Za.prototype.detached=function(){_.ztb(this)};
_.ztb=function(W){W.JSC$12093_dragListGroup&&(_.wm(W.JSC$12093_dragListGroup,sKS,W.onDragStart),_.wm(W.JSC$12093_dragListGroup,Zqs,W.onDragStart),W.JSC$12093_dragListGroup.dispose(),W.JSC$12093_dragListGroup=null);W.dragScrollSupport&&(_.LU(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.DQC=function(W,k,C,n){n=n===void 0?"":n;_.ztb(W);C&&(W.scrollElement=C);W.JSC$12093_dragListGroup=new MV;W.JSC$12093_dragListGroup.hysteresisDistance_=2;orx(W.JSC$12093_dragListGroup,k);W.JSC$12093_dragListGroup.draggerElClasses_=_.Ks("dragging").split(" ");n&&iqA(W.JSC$12093_dragListGroup,function(N){var B=N||document,A=null;B.getElementsByClassName?A=B.getElementsByClassName(n)[0]:A=Bj8("*",n,N);return A||N});
_.b6(W.JSC$12093_dragListGroup,vrs,W.onDraggerCreated);_.b6(W.JSC$12093_dragListGroup,sKS,W.onDragStart);_.b6(W.JSC$12093_dragListGroup,Zqs,W.onDrop);W.JSC$12093_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
Za.prototype.handleDrop=function(){};
_.oq.Object.defineProperties(Za.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var Vuz=Za;_.U([_.Z({value:100}),_.O("design:type",Number)],Vuz.prototype,"scrollMargin",void 0);Vuz=_.U([_.kr()],Vuz);_.JF8=[Vuz.prototype];_.R$={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,k,C){var n=this.getClickTarget_(k);if(n&&this.isClickAllowed_(n)){k.preventDefault();W=(0,_.JU.unsafeClone)(W);var N=this.getContainerBoundingRect();k=this.getRelativeClickXy_(k,N);this.expandEndpointUrlMacros_(W,{NX:k[0],NY:k[1],NB:n.code});C&&this.truncateWebCommendMetadataUrl_(W);_.Pe(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.vl(W)||[];W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;if(k===_.S(this.hostElement).querySelector("#menu"))break;if(k=this.clickTargetMap.get(k.id))return k}return null},
getRelativeClickXy_:function(W,k){var C=W.detail.x,n=W.detail.y;_.m("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(C=W.clientX,n=W.clientY);W=Math.round(C-k.left);k=Math.round(n-k.top);return W<0||k<0?[null,null]:[W,k]},
getContainerBoundingRect:function(){return _.S(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,k){for(var C=_.b(W.loggingUrls||[]),n=C.next();!n.done;n=C.next())n=n.value,n.baseUrl&&(n.baseUrl=iNw(n.baseUrl,k));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=iNw(W.urlEndpoint.url,k));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=iNw(W.commandMetadata.webCommandMetadata.url,k))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var k=W.commandMetadata.webCommandMetadata.url,C=k.indexOf("&pp=");if(C>0){var n=k.indexOf("&",C+1);W.commandMetadata.webCommandMetadata.url=n>C&&n<k.length?k.slice(0,C)+k.slice(n):k.slice(0,C)}}},
configureClickTargets:function(W,k,C){this.containerId=W;this.clickTargetMap=new Map;W=_.b(k);for(k=W.next();!k.done;k=W.next())if(k=k.value,k.location){var n=C.get(k.location);n&&(_.qw(_.S(this.hostElement).querySelector("#"+n),"yt-simple-endpoint",this.isClickAllowed_(k)),this.clickTargetMap.set(n,k))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.o$={};
_.o$.YtLazyListBehavior=[_.vR.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(DHA(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var k=this;if(W){var C=W.value||[];if(this.itemsPath==W.path){var n=this.nonDeferredItemCount;W=0;n>-1&&C.length>n&&(W=_.DE("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(n>0&&(n=C.slice(0,n),this.setInitialItemsOnDataChanged(n)),(n=this.renderElementsOutsideVisibleArea_)?n.cancel():(n=this.renderElementsOutsideVisibleArea_=new _.sQ(2,"eocs"),_.R8J(window,"scroll",function(){return k.renderDeferredElements()})),_.GA(n,function(){k.setInitialItemsOnDataChanged(C)}),_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(C)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(C);
else n="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&n==="shownItems.length"||this.notifyPath(n,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var k=0,C=W.length;k<C;k++){var n=W[k];if(n.index<this.shownCount&&(n.removed&&this.splice("shownItems",n.index,n.removed.length),n.addedCount)){var N=n.object.slice(n.index,n.index+n.addedCount);n=["shownItems",n.index,0];n.push.apply(n,N);this.splice.apply(this,n)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.cv("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ZR(this,this.tryRenderChunk_)))},
fillRange_:function(W,k){this.canShowMore&&this.items_&&(W=this.items_.slice(W,k),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=k,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.Dy(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.cv("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.bX(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.JzJ(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.m("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var U$;_.i_={};
U$=function(){var W=_.Wp.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$12104_onWheelScroll=function(k){if(W.isSearch&&
!W.disableWheelScroll&&_.m("desktop_enable_dmpanel_wheel_scroll")){var C=k.shiftKey?Math.abs(k.deltaY)>Math.abs(k.deltaX)?k.deltaY:k.deltaX:k.deltaX;C!==0&&(k.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=C,TI(W),W.reposition_())}};
W.onPointerDown=function(k){cF8(W)&&(W.dragMouseStart=k.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(k){cF8(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(k.clientX-W.dragMouseStart),TI(W),W.reposition_())};
W.onPointerUp=function(){cF8(W)&&(W.dragging=!1)};
return W};
_.D(U$,_.Wp);var I$A=function(W){var k=_.S(W.hostElement).querySelector("#items").children;if(!k)return 0;var C=0;W=_.b(W.fullyVisibleItemsIndices);for(var n=W.next();!n.done;n=W.next())C+=k[n.value].clientWidth;return C},cF8=function(W){return W.isSearch&&_.m("desktop_enable_dmpanel_click_drag_scroll")};
U$.prototype.created=function(){this.cachedViewportWidth=_.DE("initialInnerWidth")||window.innerWidth;this.JSC$12104_cachedViewportHeight=_.DE("initialInnerHeight")||window.innerHeight;_.DE("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
U$.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.m("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();SPC(this)};
U$.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.m("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var k;(k=this.itemsObserver)==null||k.disconnect()};
var SPC=function(W){var k=_.S(W.hostElement).querySelector("#scroll-container");if(k){if(!W.itemsVisibilityObserver){var C=window.getComputedStyle(k).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(n){MuI(W,n)},{root:k,
rootMargin:C,threshold:.98})}if(k=_.S(W.hostElement).querySelector("#items"))W.itemsObserver=new mwx(k,function(n){QG8(W,n)})}},QG8=function(W,k){p72(W)&&(Array.from(k.addedNodes).filter(function(C){return C.nodeType===Node.ELEMENT_NODE}).forEach(function(C){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(C)}),Array.from(k.removedNodes).filter(function(C){return C.nodeType===Node.ELEMENT_NODE}).forEach(function(C){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(C)}))},
MuI=function(W,k){var C=new Set(W.fullyVisibleItemsIndices);
k=_.b(k);for(var n=k.next();!n.done;n=k.next()){n=n.value;var N=n.target.parentElement;N?(N=Array.from(N.children).indexOf(n.target),n.isIntersecting?C.add(N):C.has(N)&&C.delete(N)):_.zJ(new _.AM("Parent element not found",n.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(C).sort(function(B,A){return B-A});
C.size===0?_.zJ(new _.AM("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},p72=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.Y=U$.prototype;_.Y.addScrollEventListeners=function(){var W=_.S(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$12104_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.Y.removeScrollEventListeners=function(){var W=_.S(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$12104_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.Y.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ZR(this,this.setStartIndex,[this.initialStartIndex])};
_.Y.reposition_=function(){var W=_.DE("HTML_DIR")=="rtl"?"":"-",k=_.S(this.hostElement).querySelector("#items");k&&(k.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.Y.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ZR(this,this.setButtonsState_))};
_.Y.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.S(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=v_Z(this,W));W=_.S(this.hostElement).querySelector("#scroll-container").clientWidth;var k=_.S(this.hostElement).querySelector("#items").clientWidth,C=this.get(this.ytLazyListBehavior.itemsPath,this);if(C){var n=Math.round(W/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+n,C.length)-1)}this.ytLazyListBehavior.canShowMore?k+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=k-20?!0:!1;this.atStart=this.offset<=20}};
_.Y.setStartIndex=function(W){if(!this.minComponentWidth){var k=_.S(this.hostElement).querySelector("#items").firstElementChild;if(!k)return;this.minComponentWidth=v_Z(this,k)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;TI(this);this.reposition_()};
_.Y.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.kM();var W=_.S(this.hostElement).querySelector("#scroll-container").clientWidth;_.m("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=v_Z(this,_.S(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&et2(this);this.offset+=p72(this)?
I$A(this):W*this.minComponentWidth;TI(this);this.reposition_();this.scrollCount++};
_.Y.prevClick_=function(){var W=_.S(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=p72(this)?I$A(this):this.minComponentWidth*this.scrollCount-1):this.offset-=p72(this)?I$A(this):W*this.minComponentWidth;this.centerListItems&&et2(this);TI(this);this.reposition_()};
_.Y.onIronResize_=function(){this.resizeSupportEnabled&&_.ZR(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.Y.onItemsTransitionEnd_=function(W){_.eI(W)===_.S(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.Y.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var k=_.S(this.hostElement).querySelector("#scroll-container");if(k.contains(W)){if(_.m("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+k.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.kM(),this.offset=W.offsetLeft+W.clientWidth-k.clientWidth;else return;else{var C=_.S(this.hostElement).querySelector("#items"),
n=_.DE("HTML_DIR")==="rtl",N=n?C.clientWidth-W.offsetLeft:W.offsetLeft;C=n?C.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var B=n?N>this.offset+k.clientWidth:N<this.offset,A=n?C<this.offset:C>this.offset+k.clientWidth,w=n?B:A;if(n?A:B)k=n?C:N,this.offset=Math.abs(k)<W.clientWidth?0:k;else if(w)this.ytLazyListBehavior.fillRemainingListItems(),_.kM(),this.offset=(n?N:C)-k.clientWidth;else return}TI(this);this.reposition_()}};
_.Y.observeShownItems_=function(){this.reset()};
_.Y.checkComponentWidthResize=function(){var W=_.S(this.hostElement).querySelector("#items").firstElementChild;W&&(W=v_Z(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&et2(this),TI(this),this.reposition_())};
var v_Z=function(W,k){var C=window.getComputedStyle(k).marginRight;C=Math.floor(Number(C.replace("px","")));var n=window.getComputedStyle(k).marginLeft;n=Math.floor(Number(n.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=C,W.marginWidthLeft=n);return W.resizeSupportEnabled?k.getBoundingClientRect().width+C:k.offsetWidth+C},TI=function(W){var k=_.S(W.hostElement).querySelector("#scroll-container").clientWidth,C=_.S(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+k>=C&&(W.offset=C-k)},et2=function(W){W.offset-=(_.S(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.oq.Object.defineProperties(U$.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.DE("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$12104_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.z3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.DE("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.z3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.m("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var O$=U$;O$.prototype.observeShownItems_=O$.prototype.observeShownItems_;O$.prototype.onChildElementFocus_=O$.prototype.onChildElementFocus_;O$.prototype.onItemsTransitionEnd_=O$.prototype.onItemsTransitionEnd_;O$.prototype.onIronResize_=O$.prototype.onIronResize_;O$.prototype.prevClick_=O$.prototype.prevClick_;O$.prototype.nextClick_=O$.prototype.nextClick_;O$.prototype.setButtonsState_=O$.prototype.setButtonsState_;O$.prototype.requestButtonsStateUpdate_=O$.prototype.requestButtonsStateUpdate_;
O$.prototype.reposition_=O$.prototype.reposition_;O$.prototype.reset=O$.prototype.reset;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],O$.prototype,"ytLazyListBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],O$.prototype,"atStart",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],O$.prototype,"atEnd",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"startIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"endIndex",void 0);_.U([_.Z({value:6}),_.O("design:type",Number)],O$.prototype,"initialCount",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"scrollCount",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"initialStartIndex",void 0);
_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"disableScrollEventListener",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"supportComponentResize",void 0);_.U([_.Z({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.O("design:type",Function)],O$.prototype,"boundPrevClick",void 0);_.U([_.Z({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.O("design:type",Function)],O$.prototype,"boundNextClick",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"useFloorScrolling",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"isSearch",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"dragging",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"dragMouseStart",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"dragOffsetStart",void 0);
_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"disableWheelScroll",void 0);_.U([_.Z(),_.O("design:type",Object)],O$.prototype,"centerListItems",void 0);_.U([_.jI("iron-resize"),_.Hl("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O$.prototype,"onIronResize_",null);_.U([_.jI("transitionend"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],O$.prototype,"onItemsTransitionEnd_",null);
_.U([_.jI("focusin"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],O$.prototype,"onChildElementFocus_",null);_.U([_.Hl("shownItems"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O$.prototype,"observeShownItems_",null);O$=_.U([_.kr()],O$);_.i_.YtdHorizontalListBehavior=[];_.i_.YtdHorizontalListBehavior.push(_.mV,_.K.YtRendererBehavior,_.o$.YtLazyListBehavior,_.cV.YtdGuideStateAwareBehavior,O$.prototype);var C$2=["APP_STATE","PI"];var sGS=_.iH(["about:blank"]),G5s={pushState:window.history.pushState,replaceState:window.history.replaceState};var Lk=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
Lk.prototype.init=function(){this.initialized=!0};
Lk.prototype.pushState=function(W,k){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",k)};
Lk.prototype.replaceState=function(W,k){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",k)};
Lk.prototype.getState=function(){return this.history&&this.history.state};var yF8=function(W){var k=function(){var C=W.apply(this,arguments)||this;C.boundHistoryPushState=!1;C.boundHistoryReplaceState=!1;C.debugInfo={};return C};
_.D(k,W);k.prototype.init=function(){var C=_.wu("IFRAME");_.i5(C,_.k0(sGS));C.sandbox="allow-same-origin";C.style.display="none";this.iframe=C;document.body.appendChild(C);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
k.prototype.bindHistoryStateFunctions=function(){var C=this,n=[],N;this.iframe&&((N=this.iframe.contentWindow)==null?0:N.history)&&(N=this.iframe.contentWindow.history)&&(n.push(N),Object.getPrototypeOf(N)&&n.push(Object.getPrototypeOf(N)));window.history&&n.push(window.history);N=window.history;Object.getPrototypeOf(N)&&n.push(Object.getPrototypeOf(N));n.push(G5s);N=function(A){for(var w=null,x=0;x<n.length;x++){var E=n[x][A];if(typeof E==="function"){w=E.bind(window.history);C.debugInfo[A]=x;break}}return w};
if(!this.boundHistoryReplaceState){var B=N("replaceState");B&&(this.internalReplaceState=B,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(N=N("pushState"))&&(this.internalPushState=N,this.boundHistoryPushState=!0)};
return k}(Lk),$Qb=function(){return yF8.call(this,window.history)||this};
_.D($Qb,yF8);$Qb.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var je=function(W){this.browserHistory=W;this.initialized=!1};
je.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
je.prototype.pushState=function(W,k){this.initialized||this.init();this.browserHistory.pushState(W,k)};
je.prototype.replaceState=function(W,k){this.initialized||this.init();this.browserHistory.replaceState(W,k)};
je.prototype.handlePopstate=function(W){return W.state};_.Zms=function(W,k,C,n,N){this.endpoint=W;this.forward=k;this.historyEntry=C;this.JSC$26279_savedComponentState=n;this.legacyBorder=N===void 0?!1:N};var Rts=function(W,k){this.rootData=W;this.scrollTop=k};var dk=new _.Tc("PAGE_REQUEST_TOKEN"),GxA=new _.Tc("FETCH_PBJ_TOKEN");_.HV=new _.Tc("EPHEMERAL_STORE_TOKEN");_.rB=function(W){this.data=Object.assign({},W);var k;(k=this.data.innertubeResponse)==null||delete k.frameworkUpdates};
_.rB.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.oX)()};
_.kN=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var o_s=function(){this.maxSize=100;this.timeToDataCache=new Map};
o_s.prototype.get=function(W){var k=this.timeToDataCache.get(W);k&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,k));if(k&&k.rootData&&(_.m("web_use_response_store_for_history_cache")||_.m("mweb_use_new_history_manager"))){var C=_.f().resolve(_.HV),n=imx(k),N=!!n;if(n){if(n.content){var B=gB(C,n.content);N&&B?k.rootData.response=_.kN(B):N=!1}n.player&&(B=gB(C,n.player),N&&B?k.rootData.playerResponse=_.kN(B):N=!1);n.reelSequence&&(C=gB(C,n.reelSequence),N&&C?k.rootData.reelWatchSequenceResponse=
_.kN(C):N=!1)}N||(this.timeToDataCache.delete(W),k=void 0)}return k};
o_s.prototype.set=function(W,k){if(k.rootData&&(_.m("web_use_response_store_for_history_cache")||_.m("mweb_use_new_history_manager"))){var C=imx(k),n=Object.assign({},k.rootData);C&&(C.content&&k.rootData.response&&(TVs(this,C.content,k.rootData.response),n.response=null),C.player&&k.rootData.playerResponse&&(TVs(this,C.player,k.rootData.playerResponse),n.playerResponse=null),C.reelSequence&&k.rootData.reelWatchSequenceResponse&&(TVs(this,C.reelSequence,k.rootData.reelWatchSequenceResponse),n.reelWatchSequenceResponse=
null));k=new Rts(n,k.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(C=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(C.value));this.maxSize!==0&&this.timeToDataCache.set(W,k)};
o_s.prototype.clear=function(){this.timeToDataCache.clear()};
var imx=function(W){var k=_.f().resolve(_.qI(dk)),C;if((C=W.rootData)==null?0:C.endpoint)return k==null?void 0:z7p(k,W.rootData.endpoint);var n;_.zJ(new _.AM("History snapshot response data does not contain endpoint",(n=W.rootData)==null?void 0:n.url));return null},TVs=function(W,k,C){if(W.maxSize>0){var n;
(W=(n=C.responseContext)==null?void 0:n.maxAgeSeconds)&&Number(W)>0&&(n=_.f().resolve(_.HV),C=UJ(C,W),n.put(k,new _.rB(C)))}};var qPS=function(W,k,C){this.endpoint=k;this.JSC$26284_savedComponentState=C===void 0?null:C;this.entryTime=W};var AXw=1;var PV=function(W){var k=function(){var C=W.apply(this,[].concat(_.J8(_.v6.apply(0,arguments))))||this;C.historyEntryTime=0;C.historySnapshotCache=C.createHistoryCache();return C};
_.D(k,W);k.prototype.createHistoryCache=function(){return new o_s};
k.prototype.saveAndReplace=function(C,n,N){var B=window.location.href;var A=A===void 0?{}:A;var w=(w=this.browserHistory.getState())&&w.entryTime?w.entryTime:Fvw();C=this.createNewHistoryEntry(C,A,w);this.saveSnapshot(w,n,N);this.replaceState(C,B||window.location.href)};
k.prototype.saveAndPush=function(C,n,N,B,A){A=A===void 0?{}:A;this.saveSnapshot(this.historyEntryTime,N,B);N=this.historySnapshotCache;B=this.historyEntryTime;var w=N.timeToDataCache.keys();w=_.b(w);for(var x=w.next();!x.done;x=w.next())x=x.value,x>B&&N.timeToDataCache.delete(x);n=this.createNewHistoryEntry(n,A);this.pushState(n,C)};
k.prototype.saveSnapshot=function(C,n,N){this.historySnapshotCache.set(C,new Rts(n,N))};
k.prototype.createNewHistoryEntry=function(C,n,N){N=N===void 0?Fvw():N;return new qPS(N,C,n)};
k.prototype.handlePopstate=function(C){var n=W.prototype.handlePopstate.call(this,C),N=null,B=null,A=!1,w=null;n&&n.entryTime&&(w=this.historySnapshotCache.get(n.entryTime)||null,A=n.entryTime>this.historyEntryTime,this.historyEntryTime=n.entryTime,N=n.endpoint,B=n.JSC$26284_savedComponentState);this.handleHistoryCacheLoad(new _.Zms(N,A,w,B),C);return n};
k.prototype.pushState=function(C,n){Number(C==null?void 0:C.entryTime)>=0&&(this.historyEntryTime=C.entryTime);W.prototype.pushState.call(this,C,n)};
k.prototype.replaceState=function(C,n){Number(C==null?void 0:C.entryTime)>=0&&(this.historyEntryTime=C.entryTime);W.prototype.replaceState.call(this,C,n)};
k.prototype.handleHistoryCacheLoad=function(){};
return k}(je),ud8=function(){var W=PV.call(this,new $Qb)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.D(ud8,PV);_.Y=ud8.prototype;_.Y.init=function(W){W=W===void 0?!0:W;PV.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.Y.handlePopstate=function(W){var k=null;W.state||(k="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return PV.prototype.handlePopstate.call(this,W);var C=new CustomEvent("yt-history-pop",{cancelable:!0});_.KY(this.dispatchElement,"yt-history-pop",[C,{errorMsg:k}]);_.hA(this.dispatchElement,"yt-close-all-popups-action");if(!C.defaultPrevented){C=_.f().resolve(_.yF);k=C.getCurrentData();var n=C.getCurrentPage();C=0;n?(n=_.KY(this.dispatchElement,"yt-get-page-offset",
[n]),n.length>0&&(C=n[0])):_.zJ(new _.AM("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:k?k.page:"undefined"}));k&&(k.csn=_.VM());this.saveSnapshot(this.historyEntryTime,k,C)}return PV.prototype.handlePopstate.call(this,W)};
_.Y.handleHistoryCacheLoad=function(W,k){k.state&&(W.legacyBorder=!!k.state["spf-timestamp"]||!!k.state.blazer);W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.b(_.hA(this.dispatchElement,"yt-history-will-navigate",[k])).next().value||_.KY(this.dispatchElement,"yt-history-load",[k,W]))};
_.Y.pushState=function(W,k){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var C=new _.AM("history.pushState is not a function",this.getDebugString());_.dI(C)}PV.prototype.pushState.call(this,W,k)};
_.Y.replaceState=function(W,k){if(!this.browserHistory.boundHistoryReplaceState){var C=new _.AM("history.replaceState is not a function",this.getDebugString());_.dI(C)}PV.prototype.replaceState.call(this,W,k)};
_.Y.saveAndPush=function(W,k,C,n,N){N=N===void 0?{}:N;C&&(C.csn=_.VM());PV.prototype.saveAndPush.call(this,W,k,C,n,N)};
_.Y.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.Y.replaceUrl=function(W){this.init(!0);var k=this.browserHistory.getState();this.replaceState(k,uV(W))};
_.Y.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.UQS=new _.Tc("DESKTOP_HISTORY_MANAGER_TOKEN");var Om2=[10,20,30,40,50,60],Kk=function(){this.currentPartitionIndex=0},LHx=function(W){jks({mainAppWeb:_.SI(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},jG8=function(W){jks({mainAppWeb:_.SI(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Hms=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<Om2.length?Om2[W.currentPartitionIndex]:-1},rFA=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<Om2.length?Om2[W.currentPartitionIndex-1]:-1};
Kk.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=rFA(this);W>0&&jG8(W);W=Hms(this);W>0&&LHx(W);g_s(this)}};
var g_s=function(W){var k=Hms(W);if(k>0){var C=rFA(W);C<0&&(C=0);W.intervalId=_.aM.addJob(function(){var n=rFA(W);n>0&&jG8(n);n=Hms(W);n>0&&LHx(n);g_s(W)},3,(k-C)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var P3Z=function(){this.skipNextNavigation=!1},KHs=function(W,k,C){if(!k)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.z(C,_.pM))return!1;var n,N,B;if((n=_.z(C,_.kZ))==null?0:(N=n.browseEndpointContextSupportedConfigs)==null?0:(B=N.browseEndpointContextMainConfig)==null?0:B.skipConfirmation)return!1;var A;return((A=_.z(k.commandMetadata,_.Ok))==null?void 0:A.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
P3Z.prototype.showConfirmationDialog=function(W,k){this.navigateParams=k;this.customConfirmationCommand?_.f().resolve(_.uI).resolveCommand(this.customConfirmationCommand):(k={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Go(_.w8("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Go(_.w8("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Go(_.w8("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Go(_.w8("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.vx.getInstance().triggerAction("yt-open-popup-action",k,W))};
P3Z.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var htS=function(){},kOS=function(W,k,C,n,N,B,A){C=C===void 0?{}:C;
A=A===void 0?{}:A;var w=_.jD.instance,x,E=(x=_.z(k,_.pM))==null?void 0:x.url;return E?Ptm(w,E,C,window.location.href,function(a,X){WOC(W,a,X,!1,!0,C,B,n)},function(){return!1}):ya(w,k,C,window.location.href,nO(k),function(a,X){WOC(W,a,X,!1,!0,C,B,n)},N,A)},WOC=function(W,k,C,n,N,B,A,w){if(!W.JSC$12162_chunkHandler)if(C.page==="watch")if(N||n){if(_.m("kevlar_continue_playback_without_player_response")){var x;
var E=(x=_.z(w,_.RA))==null?void 0:x.videoId}W.JSC$12162_chunkHandler=new tLb(_.Zf,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:n,previousVideoId:E},tempData:B},A)}else W.JSC$12162_chunkHandler=new Ac8(_.Zf);else C.page==="shorts"&&N&&!n?W.JSC$12162_chunkHandler=new lUx(_.Zf,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:B},A):W.JSC$12162_chunkHandler=new FZZ(A);W.JSC$12162_chunkHandler.processChunk({endpoint:k,data:C});return W.JSC$12162_chunkHandler.q2.promise},
CmS=function(W,k,C,n,N){(C=_.HGA(C))&&WOC(W,k,C,!1,!0,n,void 0,N)};var np2=function(){this.pendingNavigationPromise=null};
_.Y=np2.prototype;_.Y.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.Y.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.Y.addEventListener=function(){throw Error("yh");};
_.Y.dispatchEvent=function(){throw Error("yh");};
_.Y.removeEventListener=function(){throw Error("yh");};var Nzx=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],h5=function(){_.xT.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];YT8(this)};
_.D(h5,_.xT);h5.prototype.verifyUser=function(){var W=YT8(this),k=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");k&&this.dispatchEvent("ytuserinvalid");return!1};
var YT8=function(W){var k=Nzx.map(function(N){var B;return(B=_.nH.get(N))!=null?B:""}),C=k.some(function(N,B){return W.sessionCookies&&W.sessionCookies[B]!==""&&N===""}),n=k.some(function(N,B){return W.sessionCookies&&W.sessionCookies[B]!==N});
W.sessionCookies=k;return{logout:C,sessionChange:n}};
h5.prototype.clearTimeout=function(){this.scheduledJobId&&(_.aM.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Eyz=new _.Tc("POSTMESSAGE_TUNNEL_TOKEN");var xGP=["/parent_tools","/file_download","/artist_roster"],fMX=[dSA,mSS,zCA,V8s,DSS,fZz,JSx,cS2];var Wr=new _.Tc("NAVIGATION_CONFIRMATION_SERVICE");var BzS="/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(" "),bQS=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
k8=function(W){this.pendingNavigationPromise=null;this.JSC$12180_clientRoot=W;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 htS;this.debugString=W.is;W={"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};_.e6(_.vx.getInstance(),W,this.JSC$12180_clientRoot)},lLs,tj8,EpC,aLs,xds;
_.D(k8,np2);k8.prototype.reload=function(){_.zy(window.location.href)};
var PiZ=function(W){W.currentEndpoint&&_.z(W.currentEndpoint,_.YZ)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
k8.prototype.navigate=function(W,k,C,n,N,B,A,w){k=k===void 0?!1:k;C=C===void 0?{}:C;n=n===void 0?{}:n;var x=_.f().resolve(Wr),E;if(!A&&KHs(x,(E=this.currentEndpoint)!=null?E:void 0,W))return x.showConfirmationDialog(this.JSC$12180_clientRoot.parentElement,{endpoint:W,reload:k,params:C,tempData:n,requestType:N,createScreenConfig:B}),!1;var a=_.Ir();_.SD(a,"eocs")||a.parkOrScheduleJob(function(){a.processSignal("eocs")},10,"eor");
A=nO(W);x=n.autonav==="1";E=_.VM();h5.instance||(h5.instance=new h5);var X=h5.instance.verifyUser(),d;if(_.m("enable_dark_theme_only_on_shorts")){var V=document.documentElement.hasAttribute("dark"),c=_.Vi(!0)==="USER_INTERFACE_THEME_DARK";if(A==="shorts"){if(!V)if(_.m("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var M;_.zy((M=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:M.url,void 0,void 0,window.top)}}else{var p;_.zy(_.yK((p=_.z(W==null?
void 0:W.commandMetadata,_.Ok))==null?void 0:p.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.m("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!V){var e;_.zy(_.yK((e=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(c!==V){var u;_.zy(_.yK((u=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:u.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(A==="watch"){if(Aix(_.f().resolve(_.eq),
W)&&(X||_.m("fix_miniplayer_navigation_killswitch")))return!1;_.m("block_all_player_prefetch_requests")||(d=rc2(_.hf(_.HK),W,x))}else{var h,L=(h=_.z(this.currentEndpoint,_.RA))==null?void 0:h.videoId;L&&_.wF.getInstance().then(function(G4){G4&&G4.set("yt-miniplayer-shown-video-id",L)})}d&&(C.frags=d.missingFragments_.join(","));
M=null;var Bw;p=(Bw=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:Bw.ignoreNavigation;if(!p)if(_.m("kevlar_command_url")){var P;M=(P=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:P.url}else M=_.cyw(W,C);if(M&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&M==this.lastNavigationUrl)return _.Vb({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.bH(Sh(),"CANCELLED")}M&&(this.lastNavigationUrl=M);EdK();_.z3("IS_HOMEPAGE_COLD",
!1);_.z3("IS_RESULTS_PAGE_COLD",!1);_.z3("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(G4){G4.baseUrl&&_.Sk(G4.baseUrl)});
_.DGm(W,B?B.layer:0)&&_.m("kevlar_flush_logs_on_away_navigation")&&_.fM();if(dGI(W))return!1;GTs(A,N);if(!M)return p||_.zJ(new _.AM("Can't construct url for endpoint",W)),_.bH(Sh(),"FAILURE"),!1;_.wPX();Bw=W&&_.z(W,_.kZ)&&_.z(W,_.kZ).browseId.startsWith("UC");C=(P=_.m("enable_dark_theme_only_on_shorts")&&A==="shorts"?!1:_.Jh()&&document.documentElement.hasAttribute("dark")!==_.D6())?{themeRefresh:1}:{};P&&!_.Yg()&&_.Vi()==="USER_INTERFACE_THEME_DARK"&&(C.theme="dark");Bw=P||FOA(M)&&!Bw&&!_.m("kevlar_disable_url_allowlist");
X||(Bw=!0);if(Bw||_.DE("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var xz;var Sp=(xz=window.top)==null?void 0:xz.location.href}catch(G4){var vw;Sp=(vw=G4)==null?void 0:vw.message}_.zJ(new _.AM("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Sp}))}W=_.m("kevlar_redirect_on_window_killswitch")?window.top:window;mg(M);_.zy(_.yK(M,C),void 0,void 0,W);_.bH(Sh(),"ABORTED");return!1}_.m("kevlar_early_popup_close")&&_.KY(this.JSC$12180_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12162_chunkHandler=void 0;var lw;Sp=nO((lw=this.currentEndpoint)!=null?lw:void 0);(lw=A==="shorts"&&Sp==="shorts")||_.hMX();_.MI(T4z)("nr",void 0);x&&_.Vb({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(n.itct=W.clickTrackingParams,n.csn=E);mY2(n);n.endpoint=JSON.stringify(W);_.m("enable_unknown_lact_fix_on_html5")&&(_.f().resolve(_.xa),n.lact=_.ie());_.JU.isEmpty(n)||_.qL(M,n);!_.m("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(B=Object.assign({},{layer:0},B,{parentLayer:3}));this.pendingNavigationPromise=B=kOS(this.pageFetcher,W,n,this.currentEndpoint,this.JSC$12180_isNetworkPromiseStale.bind(this),B,w);B=B.then(this.handleNavigateSuccess.bind(this,B,W,d,n),this.handleNavigateFail.bind(this,B,W));_.k7().navigationFinishPromise=B;k={endpoint:W,pageType:A,url:uV(M),reload:!!k,noProgressBar:_.m("web_disable_page_navigation_progress")||lw};N&&(k.type=N);this.fireEvent("yt-navigate-start",k);d&&
CmS(this.pageFetcher,W,d,n,this.currentEndpoint);return!0};
k8.prototype.JSC$12180_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var wzx=function(W,k,C,n,N){var B=nO(k);k={endpoint:k,pageType:B};N&&(k.errorMessage=N);_.zJ(C);k.navigationDoneMs=_.cN("nd");k.navigationErrorReason=n;W.fireEvent("yt-navigate-error",k)};
k8.prototype.handleNavigateFail=function(W,k,C){var n=void 0;C instanceof _.ve&&(n=C,VHw(C));if(this.JSC$12180_isNetworkPromiseStale(W))return _.eh(n);_.bH(Sh(),"FAILURE");wzx(this,k,C,"101");return _.eh(C)};
k8.prototype.handleNavigateSuccess=function(W,k,C,n,N){if(this.JSC$12180_isNetworkPromiseStale(W))return _.nB();this.pendingNavigationPromise=null;if(!N)return k=new _.AM("Missing data in response for navigation endpoint",k),_.eh(k);if(N.reload)return window.location.reload(!0),_.nB();C&&(W={},_.JU.extend(W,_.HGA(C),N),N=W);var B,A;C=(B=N)==null?void 0:(A=B.timing)==null?void 0:A.responseStart;C!=null&&_.cN("srt",C);_.cN("pdc");var w,x;B=(w=N)==null?void 0:(x=w.timing)==null?void 0:x.info;B!=null&&
(w=_.MI(_.O3c)(B),_.Vb(w));_.bH(Sh(),"SUCCESS");xds(this,k,N,1,n);return _.nB()};
var FOA=function(W){var k=W;_.m("kevlar_no_redirect_to_classic_2_ks")||(k=(new _.oA(W)).getPath());if(k==="/"||k==="/red")return!1;var C=!0;BzS.forEach(function(n){W.indexOf(n)===0&&(C=!1)});
bQS.forEach(function(n){var N=n.url;_.m(n.expFlag)&&W.indexOf(N)===0&&(C=!1)});
return C};
k8.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
lLs=function(W,k,C,n,N,B){var A=null;k.page!=="watch"||n?k.filler||_.KY(W.JSC$12180_clientRoot,"yt-stop-old-player",[k]):A=WOC(W.pageFetcher,N,k,C,!1,B,void 0,W.currentEndpoint);if(A)return A.then(W.publishPageData.bind(W,k));W.publishPageData(k);return _.nB()};
tj8=function(W,k,C){var n=null;if(!C)return n=new _.AM("Empty data",W.debugString,k);var N=C.response;if(!N)return n;var B={endpointType:nO(k)||"unknown"};N.responseContext?(N=N.responseContext.errors)&&(n=new _.AM("Errors in response context",W.debugString,k,N,B)):n=N.error||N.errorMetadata?new _.AM("Errors in response",W.debugString,k,N.error,N.errorMetadata,B):new _.AM("responseContext missing",W.debugString,k,Object.keys(N).sort().join(","),B);var A,w,x,E;if(W=C==null?void 0:(A=C.response)==null?
void 0:(w=A.responseContext)==null?void 0:(x=w.webResponseContextExtensionData)==null?void 0:(E=x.webResponseContextDebugData)==null?void 0:E.debugErrorMessages)for(A=0;A<W.length;A++);return n};
EpC=function(W){var k,C,n,N;return W==null?void 0:(k=W.response)==null?void 0:(C=k.responseContext)==null?void 0:(n=C.errors)==null?void 0:(N=n.error)==null?void 0:N["0"]};
aLs=function(W,k){var C;if(C=k.url&&!k.url.startsWith("/clip"))C=k.url,C=!_.m("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(C)||vQJ(C)?!0:!1;if(C)vQJ(k.url)&&_.G3(window.location.href).themeRefresh?W.fireEvent("yt-navigate-redirect",{url:_.ud(k.url,"themeRefresh")}):k.url&&!BRX(k.url)&&W.fireEvent("yt-navigate-redirect",{url:k.url});else if(k.endpoint){var n,N,B;(C=(n=k.endpoint)==null?void 0:(N=n.commandMetadata)==null?void 0:(B=N.webCommandMetadata)==null?void 0:
B.url)&&!BRX(C)&&W.fireEvent("yt-navigate-redirect",{url:C});C&&k.url&&C!=k.url&&!k.url.match("playnext=1")&&new _.AM("Response url mismatch in response data",W.debugString,C,k.url)}};
_.Xzs=function(W,k,C,n,N,B,A,w){B=B===void 0?!1:B;var x=_.f().resolve(Wr),E;if(!w&&KHs(x,(E=W.currentEndpoint)!=null?E:void 0,k))return x.showConfirmationDialog(W.JSC$12180_clientRoot.parentElement,{endpoint:k,data:C,navigationType:n,tempData:N,isMiniplayer:B,isForwardHistoryNavigation:A==null?void 0:A.forward}),_.nB();W.pageFetcher.JSC$12162_chunkHandler=void 0;return xds(W,k,C,n,N,B)};
xds=function(W,k,C,n,N,B){B=B===void 0?!1:B;W.isMiniplayerExpansion=B;var A=n===2;W.currentEndpoint=k;W.numNavigations++;W.numNavigations&&(BXI.navigationCount=W.numNavigations);_.z3("NUM_NAV",W.numNavigations);var w=tj8(W,k,C);if(w)return wzx(W,k,w,"102",EpC(C)),_.eh(w);var x,E,a,X;w=C.rootVe||(C==null?void 0:(x=C.response)==null?void 0:(E=x.responseContext)==null?void 0:(a=E.webResponseContextExtensionData)==null?void 0:(X=a.ytConfigData)==null?void 0:X.rootVisualElementType);!A&&C&&aLs(W,C);var d,
V;x=C==null?void 0:(d=C.response)==null?void 0:(V=d.responseContext)==null?void 0:V.maxAgeSeconds;if(!A&&!isNaN(x)){var c;_.m("kevlar_use_response_ttl_to_invalidate_cache")?c=(0,_.oX)()+1E3*x:_.m("kevlar_always_invalidate_cache")&&(c=0);isNaN(c)||(C.expirationTime=c)}_.m("html5_enable_ssap_entity_id")&&A&&C.playerResponse&&(C.playerResponse.cacheMetadata={isCacheHit:!0});_.hf(_.HK).prefetchCache_.clear();A||C.page!=="watch"||C.type!=="reduced"&&n!==1?n=lLs(W,C,A,!!B,k,N):(W.publishPageData(C),n=_.nB());
N=n.then(function(){var M=nO(k);M={endpoint:k,pageType:M,fromHistory:A,response:C};M.navigationDoneMs=_.cN("nd");W.fireEvent("yt-navigate-finish",M)});
C.csn&&w&&C.clientSideGrafts&&n.then(W.attachClientSideGrafts.bind(W,C,_.DH()));return N};
_.Y=k8.prototype;_.Y.attachClientSideGrafts=function(W,k){W.clientSideGrafts&&k&&W.clientSideGrafts.forEach(function(C){if(k&&C){var n=_.Yf(C);_.m("combine_ve_grafts")?_.kf().graftServerVe(C,k):_.sr(W.csn,k,n)}})};
_.Y.handleSignalActionHistoryBack=function(){window.history.back()};
_.Y.handleSignalActionCloseWindow=function(){window.close()};
_.Y.handleSignalActionReloadPage=function(){this.reload()};
_.Y.handleSignalActionSoftReloadPage=function(){PiZ(this)};
_.Y.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.Y.fireEvent=function(W,k){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:k});this.dispatchEvent(W)};
_.Y.addEventListener=function(W,k){this.JSC$12180_clientRoot.addEventListener(W,k)};
_.Y.dispatchEvent=function(W){return this.JSC$12180_clientRoot.dispatchEvent(W)};
_.Y.removeEventListener=function(W,k){this.JSC$12180_clientRoot.removeEventListener(W,k)};_.bam=new ly("browse","h8y2qb");_.Axp=new ly("search","JzFVk");_.F9p=new ly("shorts","xwEKAe");_.wiz=new ly("watchFixie","nmfa2d");_.x_J=new ly("watchFlexy","CF909");_.lww=new ly("watchGrid","Tm0L3c");_.t1p=new ly("watchLearningJourney","L3n37");var fLC;var dds=function(){return _.R.apply(this,arguments)||this};
_.D(dds,_.R);_.oq.Object.defineProperties(dds,{template:{configurable:!0,enumerable:!0,get:function(){if(fLC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);fLC=W}W=fLC;return W}}});
var mdA=dds;_.U([_.v(X7s.YtPlayerBehavior),_.O("design:type",Object)],mdA.prototype,"ytPlayerBehavior",void 0);mdA=_.U([_.T({is:"ytd-player"})],mdA);var zTY;var Dds;var VjA;var Cu=function(){var W=_.R.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.D(Cu,_.R);Cu.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]]"}}}}}};
Cu.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.z(W,ImS)){var k,C=(k=this.data)==null?void 0:k.providerKey;k=W.providerKey;C&&k&&C.id===k.id&&C.subject===k.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.m("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
Cu.prototype.setPlayerAccountLinkState=function(W){var k=new W6I;hTm(k,ksX(new C9w,W));var C=_.Zf();C&&C.getPlayerPromise().then(function(n){n.setAccountLinkState(_.zC(k.JSC$9926_serializeBinary(),4));n.updateAccountLinkingConfig(W)})};
Cu.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.bW([W],this.hostElement)};
_.oq.Object.defineProperties(Cu.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
var nu=Cu;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],nu.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nu.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],nu.prototype,"overrides",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],nu.prototype,"forceModernIconButton",void 0);_.U([_.Z({value:"bottom"}),_.O("design:type",String)],nu.prototype,"buttonTooltipPosition",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],nu.prototype,"forceIconButton",void 0);_.U([_.Z(),_.O("design:type",Boolean)],nu.prototype,"disableTextTransform",void 0);
_.U([_.G("data","data.linked","data.isWarning"),_.O("design:type",Object),_.O("design:paramtypes",[])],nu.prototype,"button",null);nu=_.U([_.T({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],nu);
_.q(nu,"ytd-account-link-button-renderer",function(){if(VjA!==void 0)return VjA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return VjA=W},{mode:1});var Ji8;var ci8=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],NY=function(){return _.R.apply(this,arguments)||this};
_.D(NY,_.R);NY.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
NY.prototype.updateButtonActiveState=function(){var W=this,k=!!ci8.find(function(C){return W.currentState===C});
this.button&&(this.button.isPressed=k)};
_.oq.Object.defineProperties(NY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((k=this.data)==null?void 0:k.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,k;if(this.currentState&&((k=this.data)==null?0:k.states)){k=_.b(this.data.states);for(var C=k.next();!C.done;C=k.next()){C=_.z(C.value,_.OFI);var n=void 0;if(((n=C)==null?void 0:n.state)===this.currentState){W=C;break}}}return W}}});
var Y8=NY;Y8.prototype.updateButtonActiveState=Y8.prototype.updateButtonActiveState;_.U([_.v(_.fk),_.O("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.ME2}),_.O("design:type",Object)],Y8.prototype,"playlistLoopStateEntity",void 0);_.U([_.Z(),_.O("design:type",Object)],Y8.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Y8.prototype,"forceIconOnly",void 0);_.U([_.gi("ytd-button-renderer"),_.O("design:type",_.s9)],Y8.prototype,"button",void 0);
_.U([_.G("data","playlistLoopStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],Y8.prototype,"currentState",null);_.U([_.Hl("currentButtonStateRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Y8.prototype,"updateButtonActiveState",null);_.U([_.G("currentState"),_.O("design:type",Object),_.O("design:paramtypes",[])],Y8.prototype,"currentButtonStateRenderer",null);
Y8=_.U([_.T({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Y8);
_.q(Y8,"ytd-playlist-loop-button-renderer",function(){if(Ji8!==void 0)return Ji8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Ji8=W},
{mode:1});var ILS;var STx=_.w8("DOWNLOAD",{},"Download"),Mj8=_.w8("DOWNLOADING",{},"Downloading"),QgS=_.w8("DOWNLOADED",{},"Downloaded"),pzs=_.w8("RETRY",{},"Retry"),vpY=function(){var W=_.R.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.D(vpY,_.R);_.Y=vpY.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.V4(_.ZF().getState(),this.videoId),this.updateButtonState(W))};
_.Y.computeVideoId=function(W){return W};
_.Y.showHideButton=function(){this.updateButtonVisibility()};
_.Y.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};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Mj8||!_.FD(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=STx;var k="OFFLINE_DOWNLOAD";var C="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=pzs;k="OFFLINE_DOWNLOAD";C="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=QgS;k="OFFLINE_PIN";C="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
Mj8;k="OFFLINE_DOWNLOADING_ZERO";C="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=pzs;k="OFFLINE_DOWNLOAD";C="ACTION_RETRY";break;default:W=STx,k="OFFLINE_DOWNLOAD",C="ACTION_ADD"}this.isVideoDeletedByUser&&(W=STx,k="OFFLINE_DOWNLOAD",C="ACTION_ADD");var n=Object.assign({},this.data);n.text=_.Go(W);n.tooltip=W;n.icon={iconType:k};n.size="SIZE_DEFAULT";n.style="STYLE_DEFAULT";_.z(n.command,_.Kn)&&(_.z(n.command,_.Kn).action=C);this.set("data",n)}};
_.Y.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var k;W!==((k=this.data.icon)==null?void 0:k.iconType)&&(k=Object.assign({},this.data),k.text=_.Go(Mj8),k.tooltip=Mj8,k.icon={iconType:W},_.z(k.command,_.Kn)&&(_.z(k.command,_.Kn).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",k))}};
var Br=vpY;Br.prototype.updateProgress=Br.prototype.updateProgress;Br.prototype.onTransferStateChanged=Br.prototype.onTransferStateChanged;Br.prototype.showHideButton=Br.prototype.showHideButton;Br.prototype.dataChanged=Br.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Br.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"forceIconButton",void 0);
_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"forceIconOnly",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"overrides",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"buttonTooltipPosition",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"styleActionButton",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"disableTextTransform",void 0);
_.U([_.Z({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.O("design:type",String)],Br.prototype,"videoId",void 0);_.U([_.Z(),_.O("design:type",Object)],Br.prototype,"data",void 0);_.U([_.Z({selector:c3,selectorArgs:["videoId"]}),_.O("design:type",Object)],Br.prototype,"downloadProgress",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Br.prototype,"isDownloadComplete",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Br.prototype,"isHidden",void 0);_.U([_.Z({selector:_.V4,selectorArgs:["videoId"]}),_.O("design:type",String)],Br.prototype,"transferState",void 0);_.U([_.Z({selector:_.g7w,selectorArgs:["videoId"]}),_.O("design:type",Object)],Br.prototype,"isVideoDeletedByUser",void 0);_.U([_.Z({selector:OE3,selectorArgs:["videoId"]}),_.O("design:type",Object)],Br.prototype,"offlineabilityState",void 0);
_.U([_.Z({value:!0}),_.O("design:type",Boolean)],Br.prototype,"showTooltips",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],Br.prototype,"sendCommandWhenDisabled",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Br.prototype,"disabled",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Br.prototype,"dataChanged",null);
_.U([_.Cq("offlineabilityState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Br.prototype,"showHideButton",null);_.U([_.Cq("transferState","isVideoDeletedByUser"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Br.prototype,"onTransferStateChanged",null);_.U([_.Cq("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Br.prototype,"updateProgress",null);
Br=_.U([_.T({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Br);
_.q(Br,"ytd-download-button-renderer",function(){if(ILS!==void 0)return ILS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ILS=W},{mode:2});var eTs;var sgA,GOz=function(){if(sgA!==void 0)return sgA;var W=document.createElement("template");_.J(W,'\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 sgA=W};var yiA=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),$d2=_.Oe("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,ZQA=function(){var W=_.R.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$12218_browserSupportsAnimation=_.m("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var k;if((k=W.data)==null||!k.defaultNavigationEndpoint){var C;k=!((C=W.data)==null?0:C.isToggled);var n;if((n=W.data)==null||!n.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.aM.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.aM.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},$d2);
var N;W.set("data.isToggled",!((N=W.data)==null?0:N.isToggled));C=W.getInnertubeIcon();n={toggled:k,actions:{}};C&&(n.actions[C.toLowerCase()]=k);_.Pe(W.hostElement,"yt-toggle-button",n)}}};
return W};
_.D(ZQA,_.R);_.Y=ZQA.prototype;_.Y.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.aM.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.toggle=function(W){var k;this.set("data.isToggled",W!==void 0?W:!((k=this.data)==null?0:k.isToggled))};
_.Y.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.z(W,$RS);var k,C,n,N=(k=this.data)==null?void 0:(C=k.toggleButtonSupportedData)==null?void 0:(n=C.toggleButtonIdData)==null?void 0:n.id;N&&W&&N===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.Y.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.z(W,kAx);var k,C,n,N=(k=this.data)==null?void 0:(C=k.toggleButtonSupportedData)==null?void 0:(n=C.toggleButtonIdData)==null?void 0:n.id;N&&W&&N===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.Y.getInnertubeIcon=function(){var W=this.data;if(W){var k,C,n=((k=W.defaultIcon)==null?0:k.iconType)?(C=W.defaultIcon)==null?void 0:C.iconType:null,N,B;k=((N=W.toggledIcon)==null?0:N.iconType)?(B=W.toggledIcon)==null?void 0:B.iconType:n;return W.isToggled?k:n}};
_.Y.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.oq.Object.defineProperties(ZQA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$12218_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var k=W.renderer;var C=W.element;var n=W.toggled;var N=W.onTapCallback;var B=W.commandClientArgs;var A=W.overrides;var w=W.forceIcon;var x=W.forceModernIconButton;var E=W.forceDisabled;var a=W.useAnimatedText;var X=W.animatedTextProps;W=eGw(k,n);w=!k.defaultIcon||!w&&k.defaultText?k.defaultIcon?"leading":void 0:x?"icon-only":"icon-only-40";w==="icon-only-40"&&(W.type="text");var d;x=Object;var V=x.assign,c;a:switch((c=
k.style)==null?void 0:c.styleType){case "STYLE_COMPACT_GRAY":c={size:"S"};break a;default:c={size:"M"}}var M=!!n;var p=(p=n&&k.toggledText||k.defaultText)?_.t7(p):void 0;a?(a=_.y4(n&&k.toggledText||k.defaultText))&&X&&!isNaN(Number(X.numberValue))?(X.numberText=a,n&&(X.numberValue+=1),a=X):a=void 0:a=void 0;var e,u,h,L;var Bw=(X=((u=n?k.toggledAccessibilityData||((Bw=k.toggledText)==null?void 0:Bw.accessibility):k.accessibilityData||((e=k.defaultText)==null?void 0:e.accessibility))==null?void 0:(h=
u.accessibilityData)==null?void 0:h.label)||((L=k.accessibility)==null?void 0:L.label))?X:_.y4(n&&k.toggledText||k.defaultText);E=E===void 0?k.isDisabled:E;C=vyc(k,n,N,C,B);n=pPP(k,n);n!=null&&n.length?(n=_.m8({innertubeCommand:DUK(n),forceNewState:!0}),n=VPp(n)?n:void 0):n=void 0;k=V.call(x,{},W,c,{iconPosition:w},A,{focused:!1,toggled:M,toggleable:!0,formattedButtonText:p,animatedTextProps:a,accessibilityLabel:Bw,disabled:E,onTap:C,aTagConfig:n},rgp((d=k.colorData)==null?void 0:d.basicColorPaletteData));
k.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(k.type="filled");return k}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.Hp(W)}}});
var bj=ZQA;bj.prototype.resetAnimation=bj.prototype.resetAnimation;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],bj.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"isPressed",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"forceIconButton",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"forceIconOnly",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"forceModernIconButton",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"alignByText",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"overrides",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],bj.prototype,"disabled",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"isShorts",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"buttonTooltipPosition",void 0);_.U([_.Z(),_.O("design:type",Object)],bj.prototype,"animatedText",void 0);_.U([_.Z(),_.O("design:type",String)],bj.prototype,"textNumberValue",void 0);_.U([_.Z({computed:"computeTooltip(data, data.isToggled)"}),_.O("design:type",Object)],bj.prototype,"tooltip",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bj.prototype,"resetAnimation",null);_.U([_.G("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.O("design:type",Object),_.O("design:paramtypes",[])],bj.prototype,"computedButtonShape",null);_.U([_.G("data.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],bj.prototype,"computedIcon",null);
bj=_.U([_.T({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],bj);yiA&&_.q(bj,"ytd-toggle-button-renderer",GOz,{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var qGp=[],u9p=!1;_.UK(Lvc);var RTs,op8;RTs=_.GM(function(W){function k(E){var a;return _.F(function(X){if(X.nextAddress==1)return(a=!GUX(E,w())||!w().enabled)?X.jumpTo(2):_.l(X,i1K(),3);X.nextAddress!=2&&(a=X.yieldResult);if(a)return X.return();C();setTimeout(function(){A(!1)},1500);
_.ab(X)})}
function C(){setTimeout(function(){A(!0);var E;(E=n.lottieEl)==null||E.goToAndPlay(0)},150)}
var n=_.rE(),N=_.b(_.kw(!1,void 0,"xffAp")),B=N.next().value,A=N.next().value,w=_.pq(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Ee(function(){var E,a;((E=W.settings)==null?void 0:(a=E.call(W))==null?void 0:a.uniqueId)==="this is not intended behavior"&&_.zJ(new _.AM("Smartimation Settings is undefined"))});
_.XM(function(){w().experimentEnabled&&(w().enabled?yXc(k):(A(!1),$GX(k)),_.fy(function(){$GX(k)}))});
_.XM(function(){oym(w().timings);w().experimentEnabled&&(Z1P(w()),_.fy(function(){RGp(w())}))});
var x=_.BH(function(){return sfz(n,w())},void 0,"d96jJc");
N={};return _.t("yt-smartimation",{class:_.Li(W.className,"smartimation",(N["smartimation--experiment-enabled"]=function(){return w().experimentEnabled},N["smartimation--active-border"]=B,N["smartimation--enable-masking"]=jf2(),N))},_.t(_.NI,{cond:function(){return w().experimentEnabled},
then:function(){return _.t("div",{class:"smartimation__border"},_.t(_.jc,{className:"smartimation__border-gradient",data:x,animationName:function(){return x().animationConfig.name}}))}}),_.t("div",{class:"smartimation__content"},W.children))},"x");
_.sg2=_.m("web_enable_sink_smartimations")?RTs:Lvc;op8=_.m("web_enable_sink_smartimations")?RTs:_.ry(Lvc);RTs.idomCompat=!0;_.m("web_enable_sink_smartimations")?_.Gj(op8,"yt-smartimation",{props:{className:_.Ik,settings:_.Ik}}):_.qN(_.sg2,"yt-smartimation",{propNames:["className","settings"]});var AZ=function(){var W=_.R.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.D(AZ,_.R);AZ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
AZ.prototype.onDataChanged=function(){var W,k;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(k=W.timedAnimationData)==null?void 0:k.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
AZ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.z(this.data.likeButton,_.JT),k=_.z(this.data.dislikeButton,_.JT);return!!((W==null?0:W.isToggled)||(k==null?0:k.isToggled))};
AZ.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]]"}}}}}};
_.oq.Object.defineProperties(AZ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,k,C=((W=this.data)==null?void 0:(k=W.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:C,enabled:this.shouldEnableSmartimation,experimentEnabled:C.length>0}}}});
var FC=AZ;FC.prototype.onDataChanged=FC.prototype.onDataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FC.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],FC.prototype,"likeButtonOverride",void 0);
_.U([_.Z(),_.O("design:type",Object)],FC.prototype,"dislikeButtonOverride",void 0);_.U([_.G("shouldEnableSmartimation"),_.O("design:type",Object),_.O("design:paramtypes",[])],FC.prototype,"smartimationSettings",null);_.U([_.Hl("data"),_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FC.prototype,"onDataChanged",null);FC=_.U([_.T({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],FC);
_.q(FC,"ytd-segmented-like-dislike-button-renderer",function(){if(eTs!==void 0)return eTs;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return eTs=W},{mode:1});var iQ2;var Tzx;(Tzx=document.body)==null||Tzx.setAttribute("rounded-container","");var qTs={};qTs.YtToggleButtonBehavior=[_.$D.YtActionHandlerBehavior,PR.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var k={toggled:this.data.isToggled,actions:{}};k.actions[this.buttonIcon]=this.data.isToggled;_.Pe(this.hostElement,"yt-toggle-button",k)}k=this.data.defaultServiceEndpoint||null;var C=this.data.toggledServiceEndpoint||null;if(k&&C||k&&this.data.preventAutoToggle)W=W?C:k,k=this.disableCommandHandlerOverride,_.m("killswitch_toggle_button_behavior_resolve_command")||k?_.kQ(this.hostElement,
[W]):_.Pp(W,this.hostElement),_.Pe(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var k=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,k));this._setButtonText(this.computeButtonText_(W,k));this._setButtonAccessibility(this.computeAccessibility_(W,k));this._setButtonTooltip(this.computeTooltip_(W,k));this._setButtonClass(this.computeButtonClass_(W,k));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=k):this.elements_.button.setAttribute("aria-pressed",k));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=k)}},
shouldSetIconActiveState_:function(){return _.m("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.m("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var k,C;return!!((k=this.data)==null?0:(C=k.toggledServiceEndpoint)==null?0:C.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,k){var C=W&&W.defaultIcon?_.Hp(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.Hp(W.toggledIcon.iconType):C;return k?W:C},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,k){return W?k&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,k){return W?(k?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,k){return W?k&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,k){if(!W)return"";var C="",n=W.toggledStyle||W.style;if(k=k?n:W.style){k.styleType&&(k=k.styleType);try{C+=k.toLowerCase().replace(/_/g,"-")+" "}catch(N){_.Dx(N,k,typeof k),_.zJ(N)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{C+=W.toLowerCase().replace(/_/g,"-")+" "}catch(N){_.Dx(N,W,typeof W),_.zJ(N)}}return C.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var k=W&&W.serviceEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return k?k:C&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.EJ("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var u4z=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),wX=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.roundedContainer=!0;return W};
_.D(wX,_.R);wX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
wX.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var k={toggled:!!this.data.isToggled,actions:{}};k.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var C,n;k.actions.playlistId=(C=this.data.defaultServiceEndpoint)==null?void 0:(n=C.playlistEditEndpoint)==null?void 0:n.playlistId;_.Pe(this.hostElement,"yt-toggle-button",k)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
wX.prototype.onYtNavigate=function(W){var k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);k&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(k))};
_.oq.Object.defineProperties(wX,{template:{configurable:!0,enumerable:!0,get:function(){if(iQ2===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);iQ2=W}W=iQ2;return W}}});
var x8=wX;x8.prototype.onYtNavigate=x8.prototype.onYtNavigate;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],x8.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],x8.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(qTs.YtToggleButtonBehavior),_.O("design:type",Object)],x8.prototype,"ytToggleButtonBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],x8.prototype,"data",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],x8.prototype,"showTooltips",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],x8.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],x8.prototype,"roundedContainer",void 0);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],x8.prototype,"onYtNavigate",null);
x8=_.U([_.T({is:"ytd-toggle-button-renderer",disableElementRegistration:u4z})],x8);var UdI;_.lj=new _.Tc("PANEL_CONTROLLER_TOKEN");_.tZ=new _.Tc("SHEET_CONTROLLER_TOKEN");_.E1=new _.Tc("DIALOG_CONTROLLER_TOKEN");UdI=new _.Tc("DIALOG_CONTAINER_TOKEN");var C33=_.w8("DOWNLOAD",{},"Download"),n_P=_.w8("DOWNLOADING",{},"Downloading"),NVX=_.w8("DOWNLOADED",{},"Downloaded"),YPc=_.w8("RETRY",{},"Retry");var OQI=_.GM(function(W){var k=tuX,C=function(){return""},n=FH2(W.data),N=w73(W.data),B=xQ2(W.data),A=l$p(W.data);
k=function(){var w=W.data(),x=WHm(w,n(),N(),B(),A()),E=!!w.videoId,a=x.text;return{title:E?a:void 0,tooltip:E?void 0:a,accessibilityText:a,onTap:x.onTap,iconName:x.iconType,style:w.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:x.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:w.buttonSize}};
C={};C=_.Li("ytDownloadButtonViewModelHost",(C.ytDownloadButtonViewModelIsHidden=function(){var w=W.data(),x=A();return w.playlistId||x()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},C));
return _.t("download-button-view-model",{class:C},_.t(_.zn,{data:k}))},"y");
OQI.idomCompat=!0;_.UK(X7m);_.UK(E_p);var jgs=_.GM(function(W){var k=W.backgroundLottieRef;var C=W.foregroundLottieRef;var n=W.children;var N=W.wrapperClass;var B=W.disableAnimation;W=function(){return(_.m("web_animated_actions")||_.m("web_animated_actions_v2"))&&!(B==null?0:B())};
return _.t("yt-animated-action",{class:_.Li("animated-action__container",N)},_.t("div",{class:"animated-action__content-with-background"},_.t(_.NI,{cond:W,then:function(){return _.t(LO8,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:k==null?void 0:k(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(f$3()?"dark":"light")+"_v5.json"}}}})}}),n),_.t(_.NI,{cond:W,
then:function(){return _.t(LO8,{lottiePlayerProps:function(){return{animationRef:C==null?void 0:C(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(f$3()?"dark":"light")+"_v4.json"}}}})}}))},"z");
jgs.idomCompat=!0;var Hmm=_.m("web_enable_sink_animated_actions")?jgs:X7m,HQA=_.m("web_enable_sink_animated_actions")?jgs:_.ry(X7m),LO8=_.GM(function(W){var k=W.wrapperClass;var C=W.lottieClass;var n=W.lottiePlayerProps;return _.t("div",{class:_.Li("animated-action__lottie",k),"aria-hidden":"true"},_.t(_.jc,{className:C,data:n,animationName:function(){return n().animationConfig.name}}))},"A");var dQw={isOpen:!1};var ztw={isAllowed:!1};var Vu4={errorMessage:"",title:"",privacy:"",isDisabled:!0};var cFw={isOpen:!1};var SPc={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var riz={response:void 0};var QGw=function(W,k){W=W===void 0?riz:W;switch(k.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:k.payload});default:return W}};var gpA={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var p7z=function(W,k){W=W===void 0?gpA:W;switch(k.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:k.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:k.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:k.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:k.payload});default:return W}};var Pm8={reportFormData:void 0,reportDetailsFormData:void 0};var v_X=function(W,k){W=W===void 0?Pm8:W;switch(k.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:k.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:k.payload});default:return W}};var KO8=void 0;_.m("mweb_enable_redux_store_on_demand")||(KO8=new $S(etz()));var jGw=_.GM(function(W){W=_.vp(W,{themeOverride:void 0,animationRef:{}});var k=W.animatedIconType,C=W.active,n=W.themeOverride,N=W.animationRef;W=W.staticIconFn;var B=_.b(_.kw(void 0,void 0,"P5a72b")),A=B.next().value,w=B.next().value,x=function(){a:{var p=k();var e=n==null?void 0:n();var u;e=(e==null?void 0:e.useDarkTheme)||((u=_.f().resolve(_.qI(_.cj)))==null?void 0:u());switch(p){case "LIKE":b:{KO8||(KO8=new $S(etz()));if((p=eFp(KO8.getState()))&&p.animationStyle)switch(p.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":p=
G5m({name:e?"valentines25_heart_dark":"valentines25_heart_light",path:e?"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":p=G5m({name:e?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:e?"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":p=
G5m({name:e?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:e?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}p=void 0}if(p){e=p;break a}e="animated_like_icon_"+(e?"dark_v4":"light_v4");e={lottiePlayerProps:{animationConfig:{name:e,path:sGK("animated_like_icon",e),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":e={lottiePlayerProps:{animationConfig:{name:e?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(e?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}e=void 0}return e},E=function(){var p,e;
return(e=(p=x())==null?void 0:p.lottiePlayerProps.animationConfig.name)!=null?e:""},a=function(){if(x()){var p=x().lottiePlayerProps.animationConfig.path;
return Oi.get(p)||A()}};
B=_.b(_.kw(!1,void 0,"h6xR3c"));var X=B.next().value;B=B.next().value;var d=$Qw(B),V=function(){var p=x(),e,u,h;return(h=p==null?void 0:(e=p.lottiePlayerProps.animationConfig)==null?void 0:(u=e.rendererSettings)==null?void 0:u.className)!=null?h:""},c=void 0,M=void 0;
_.XM(function(){var p=x(),e=E(),u=a(),h=X(),L=C();if(p&&(M!==e&&(M=e,c=L,e=N(),d.animationConfig=p.lottiePlayerProps.animationConfig,d.animationRef=e,u&&(d.animationConfig.animationData=u,d.animationConfig.path=void 0),e=p.lottiePlayerProps.animationConfig.path,!Oi.get(e)&&p.lazyLoad&&e&&yFw(e,w)),!(h||p.lazyLoad&&!u))){if(u=!N().lottieEl)L?(h=p.totalFrames,d.animationConfig.initialSegment=[h-1,h]):d.animationConfig.initialSegment=void 0;if(c!==L&&!u)if(u=N(),L){var Bw;(Bw=u.lottieEl)==null||Bw.playSegments([0,
p.totalFrames],!0)}else{var P;(P=u.lottieEl)==null||P.playSegments([0,1],!0)}c=L}});
return _.t("animated-icon",{class:"ytAnimatedIconHost"},_.t(_.NI,{cond:function(){var p,e;return!((p=x())==null||!p.lottiePlayerProps.animationConfig.path||((e=x())==null?0:e.lazyLoad)&&!a()||X())},
then:function(){return _.t(_.jc,{data:d,animationName:E,className:V,animationRef:N})},
else:W}))},"B");_.UK(rFI);var hTs,ksS;hTs=_.GM(function(W){var k=_.yE(),C=_.yE(),n=_.yE(),N=_.rE(),B=_.rE(),A=_.rE(),w=_.kj(_.Ln,function(){return W.data().stateEntityStoreKey}),x=_.kj(VEz,function(){var hK,Tz;
return(Tz=(hK=W.data().notificationStateEntityStoreKeys)==null?void 0:hK.subsNotificationStateKey)!=null?Tz:""}),E=function(){return!W.data().enableSubscribeButtonPostClickAnimation},a=_.b(_.kw(0,void 0,"LZz2ld")),X=a.next().value,d=a.next().value;
a=_.b(_.kw(0,void 0,"DTJZzd"));var V=a.next().value,c=a.next().value;a=_.b(_.kw(!1,void 0,"vYdJ9e"));var M=a.next().value,p=a.next().value;a=_.b(_.kw(!1,void 0,"HsSmhb"));var e=a.next().value,u=a.next().value,h=!1,L="";a=_.b(_.kw(!1,void 0,"p20o0d"));var Bw=a.next().value,P=a.next().value,xz=function(){u(!0);_.bX(_.aM,function(){u(!1)},1500)};
_.XM(function(){var hK=e();WH(function(){hK&&!E()&&w()&&kOX(N,B,A)})});
_.XM(function(){var hK=w();WH(function(){if(!E()&&hK){var Tz;((Tz=W.animateWidth)==null?0:Tz.call(W))&&WOc(k.value,!!hK.subscribed,X(),V());hK.subscribed&&hK.key===L&&xz();hK.key&&(L=hK.key)}})});
a=_.BH(function(){var hK,Tz,S8,ms=W.data(),pA=!((hK=w())==null||!hK.subscribed);hK=!((Tz=W.isOverlay)==null||!Tz.call(W));Tz=M()?k.value:void 0;var k3=(S8=x())==null?void 0:S8.state;S8=Bw();htK(ms,k3);return CX({model:ms,subscribed:pA,isOverlay:hK,element:Tz,notificationState:k3,disableTextEllipsis:!0,focused:S8})},void 0,"CJfYod");
var Sp=function(){var hK;if(!E()&&((hK=W.animateWidth)==null?0:hK.call(W))&&(C==null?0:C.value)&&(n==null?0:n.value)&&!h){hK=w();var Tz=_.b((hK==null?0:hK.subscribed)?[C,n]:[n,C]),S8=Tz.next().value;Tz=Tz.next().value;S8=Math.ceil(S8.value.getBoundingClientRect().width);Tz=Math.ceil(Tz.value.getBoundingClientRect().width);d(S8);c(Tz);WOc(k.value,!(hK==null||!hK.subscribed),S8,Tz);h=!0}},vw=_.Pj(function(hK){Sp();
var Tz=w();Tz&&(hK.detail.endpoint.subscribeEndpoint||hK.detail.endpoint.unsubscribeEndpoint)&&P3X(k.value,!Tz.subscribed,Tz)}),lw=function(){var hK=_.f().resolve(_.qI(_.Ay));
hK&&P(hK.isKeyBoardInUse())},G4=function(){P(!1)};
_.GJ("yt-player-subscribe",function(hK){var Tz=w();Tz&&hK===W.data().channelId&&P3X(k.value,!0,Tz)});
_.GJ("yt-player-unsubscribe",function(hK){var Tz=w();Tz&&hK===W.data().channelId&&P3X(k.value,!1,Tz)});
_.GJ("yt-update-subscribe-button-action",function(hK){hK=_.z(hK,LH3);var Tz=w();Tz&&hK&&hK.channelId===W.data().channelId&&P3X(k.value,!!hK.subscribed,Tz)});
_.Ee(function(){k.value&&(k.value.addEventListener("focusin",lw),k.value.addEventListener("focusout",G4));var hK=_.wI(_.aM,function(){Sp()});
p(!0);_.fy(function(){_.aM.cancelJob(hK);k.value&&(k.value.removeEventListener("focusin",lw),k.value.removeEventListener("focusout",G4))})});
var nA=function(){var hK,Tz,S8;if(S8=!((hK=w())==null||!hK.subscribed))hK=!!W.data().disableNotificationBell,S8=(Tz=x())==null?void 0:Tz.state,S8=!hK&&!!S8;return S8},Xs=function(){var hK;
return!((hK=w())==null?0:hK.subscribed)},aI=function(){var hK,Tz;
if(Tz=Xs()){Tz=!!W.data().disableNotificationBell;var S8=(hK=x())==null?void 0:hK.state;Tz=!Tz&&!!S8}return Tz},LA={},dj={};
return _.t("yt-subscribe-button-view-model",{class:_.Li("yt-subscribe-button-view-model-wiz",(LA["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var hK,Tz;return!((hK=w())==null||!hK.subscribed)&&((Tz=W.animateWidth)==null?void 0:Tz.call(W))&&e()},LA["yt-subscribe-button-view-model-wiz--hidden"]=function(){var hK;
return!((hK=w())==null?0:hK.subscribed)&&W.data().hideWhenUnsubscribed},LA)),
el:k,"on:yt-service-request-sent":vw},_.t(HQA,{backgroundLottieRef:N,foregroundLottieRef:B,wrapperClass:_.Li("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(dj["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var hK;return((hK=W.animateWidth)==null?void 0:hK.call(W))&&e()},dj["yt-subscribe-button-view-model-wiz__static-width"]=function(){var hK;
return!((hK=W.animateWidth)==null?0:hK.call(W))},dj)),
disableAnimation:E},_.t("div",{el:C,class:"yt-subscribe-button-view-model-wiz__container"},_.t(LX,{data:a,icon:function(){return _.t(_.NI,{cond:nA,then:function(){var hK=function(){var Tz;return g_m((Tz=x())==null?void 0:Tz.state)};
return _.t(_.NI,{cond:function(){return E()||hK()!=="NOTIFICATIONS_NONE"},
then:function(){return _.t(_.ka,{icon:hK})},
else:function(){return _.t(jGw,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:A})}})}})},
secondaryIconName:function(){return nA()?"EXPAND":void 0}}))),_.t("div",{el:n,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.t(_.NI,{cond:function(){var hK;return((hK=W.animateWidth)==null?void 0:hK.call(W))&&!E()&&!h},
then:function(){return _.t(LX,{data:_.BH(function(){var hK;return CX({model:W.data(),subscribed:Xs(),isOverlay:!((hK=W.isOverlay)==null||!hK.call(W)),element:k.value,disableTextEllipsis:!0})},void 0,"VQgKbc"),
iconName:function(){var hK;return aI()?g_m((hK=x())==null?void 0:hK.state):void 0},
secondaryIconName:function(){return aI()?"EXPAND":void 0}})}})))},"C");
_.W6A=_.m("web_enable_sink_yt_subscribe_button_view_model")?hTs:rFI;ksS=_.m("web_enable_sink_yt_subscribe_button_view_model")?hTs:_.ry(rFI);hTs.idomCompat=!0;var CmX=new _.Tc("RENDERER_STAMPER_OPTIONS_TOKEN");var lX;_.xj=new dE2;lX=new Map;var ddm="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),zTP=["notificationTextRenderer","notificationMultiActionRenderer"],md2="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
fLc=wz3(function(W){return _.m$(W==null?void 0:W.targetId)}).useUpdatableData;var Xzm=0;_.Ex.debugName="EjJbCe";var C9b=_.GM(function(W){var k=W.data;var C=_.kj(_.Ln,function(){return k().subscriptionStateEntityKey});
return _.t(_.NI,{cond:function(){var n=k(),N=C();return!n.hideWhenUnsubscribed||(N==null?0:N.subscribed)?_.z(k().button,_.aS):void 0},
then:function(n){return _.t("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.t(_.zn,{data:n,buttonOverrides:function(){return{toggled:!k().isPurchasable}}}))}})},"D");var Jiw=_.w7({buttonViewModel:_.zn,subscribeButtonViewModel:_.W6A,downloadButtonViewModel:OQI,toggleButtonViewModel:_.fX,subscribePlusButtonViewModel:C9b});_.UK(ILX);var nW2=_.GM(function(W){return _.t(_.Ex,{data:function(){return W.actionRow().actions}},{buttonViewModel:function(k){var C=k.data;
return _.t(at,{isRow:W.isRow,isIconOnlyButton:function(){return ST3(C())},
useIntrinsicWidth:W.useIntrinsicWidth},_.t(_.zn,{data:C}))},
subscribeButtonViewModel:function(k){return _.t(at,{isRow:W.isRow},_.t(ksS,{data:k.data,isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(k){var C=k.data;return _.t(at,{isRow:W.isRow,isIconOnlyButton:function(){return!!C().playlistId}},_.t(OQI,{data:C}))},
toggleButtonViewModel:function(k){var C=k.data;return _.t(at,{isRow:W.isRow,isIconOnlyButton:function(){var n=C();return ST3(_.z(n.isToggled?n.toggledButtonViewModel:n.defaultButtonViewModel,_.aS))}},_.t(_.fX,{data:C}))},
subscribePlusButtonViewModel:function(k){return _.t(at,{isRow:W.isRow},_.t(C9b,{data:k.data}))}})},"E"),at=_.GM(function(W){var k={};
return _.t("div",{class:_.Li("yt-flexible-actions-view-model-wiz__action",(k["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,k["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,k["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,k["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=W.isIconOnlyButton,k))},W.children)},"F"),NY2=_.GM(function(W){var k=function(){var n;
return((n=W.layout)==null?void 0:n.call(W))===1},C={};
return _.t("yt-flexible-actions-view-model",{class:_.Li("yt-flexible-actions-view-model-wiz",W.className,(C["yt-flexible-actions-view-model-wiz--inline"]=function(){return!k()},C["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},C))},_.t(_.bI,{each:function(){return W.data().actionsRows||[]}},function(n){return _.t(_.NI,{cond:k,
then:function(){return _.t("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.t(nW2,{actionRow:n,isRow:k,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.t(nW2,{actionRow:n,isRow:k})}})}))},"G"),Y_x=_.m("web_enable_sink_yt_flexible_actions_view_model")?NY2:ILX,XC=_.m("web_enable_sink_yt_flexible_actions_view_model")?NY2:_.ry(ILX);
NY2.idomCompat=!0;_.Gj(XC,"yt-flexible-actions-view-model",{props:{data:_.Ik,layout:_.Ik,justifyContentOverride:_.Ik,className:_.Ik}});_.UK(Mjw);var BYS,GO4;BYS=_.GM(function(W){var k=_.kj(fn,function(){var N;return(N=W.data().dislikeEntityKey)!=null?N:""}),C=_.BH(function(){var N=k();
return N?N.likeStatus==="DISLIKE":_.z(W.data().toggleButtonViewModel,_.Xo).isToggled},void 0,"D8oIFb"),n=_.BH(function(){return Object.assign({},_.z(W.data().toggleButtonViewModel,_.Xo),{isToggled:C()})},void 0,"shaCXe");
return _.t("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.t(_.fX,{data:n,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(N){var B=k();B&&N!==(B.likeStatus==="DISLIKE")&&B.key&&_.Q3(_.d7("likeStatusEntity",B.key,{likeStatus:N?"DISLIKE":"INDIFFERENT",hadUserInteraction:N}))}}))},"H");
GO4=_.m("web_enable_sink_dislike_button_view_model")?BYS:Mjw;_.bfb=_.m("web_enable_sink_dislike_button_view_model")?BYS:_.ry(Mjw);BYS.idomCompat=!0;_.AJS=_.ry(pzm);_.UK(pzm);_.UK(yiI);_.qN(yiI,"segmented-like-dislike-button-view-model",{propNames:["data"]});var Tz3=0;_.Gj(nWz,"account-link-button-view-model",{props:{data:_.Ik,className:_.si,setMinWidth:_.si,forceIconOnly:_.si}});_.EJ("menuRenderer","menuRenderer","ytd-menu-renderer");
var F6s={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"}},
wAS=_.m("web_fix_missing_action_buttons")?100:200,fu=function(){var W=_.R.apply(this,arguments)||this;W.safeArea=!_.m("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$12367_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.m("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var k;if((k=W.data)!=null&&k.flexibleItems){W.maybeFlushDebouncer();k=W.hostElement.clientWidth;var C=k>W.JSC$12367_lastWidth,n,N=((n=W.topLevelButtonsContainer)==null?void 0:n.scrollHeight)||0,B;n=((B=W.flexibleItemButtonsContainer)==null?void 0:B.scrollHeight)||0;B=W.hostElement.scrollHeight>Math.max(N,n)+8;C?(W.resetFlexibleItems(),W.JSC$12367_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):B&&(W.shrinkFlexibleMenu(),W.JSC$12367_lastWidth=
k)}};
W.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.f().resolve(_.uI).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.Pp(W.data.disabledCommand,W.hostElement);else{var k=W.createMenuRendererVe(),C={items:W.items};W.data.menuPopupAccessibility&&(C.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(C.footer=W.data.footer);k={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:C},veData:k}};_.f().resolve(_.tZ).openSheet({openPopupActionCommand:k},
W.hostElement)}};
return W};
_.D(fu,_.R);_.Y=fu.prototype;_.Y.updateButtonOverrides=function(){if(!_.m("menu_renderer_label_update_upkillswitch")){var W=_.S(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.Y.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.Y.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.Y.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Op(this.hostElement,{"--ytd-menu-renderer-button-color":_.a8(this.data.iconColor)}))};
_.Y.onStamperFinished=function(){this.JSC$12367_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.Y.setupFlexibleMenu=function(){var W=this,k;(k=this.data)!=null&&k.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Ox(this.maybeUpdateFlexibleMenu,wAS,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.Y.maybeFlushDebouncer=function(){if(_.m("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(C){var n;(C=(n=C.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&czw(C)});
var k;(k=this.flexibleItemButtons)==null||k.forEach(function(C){var n;(C=(n=C.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&czw(C)})}};
_.Y.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.m("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var k;this.flexAsTopLevelButtons=(k=this.data.flexibleItems)==null?void 0:k.map(function(C){return _.z(C,_.qq8).topLevelButton});
_.m("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.Y.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.Y.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.J8(this.flexAsTopLevelButtons.slice(0,-1))))};
_.Y.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:F6s,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:F6s,events:!0}}};
_.Y.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.detached=function(){this.icon="yt-icons:more_vert"};
_.Y.computeTopLevelButtonData=function(W){if(!W)return[];var k;W=(k=W==null?void 0:W.topLevelButtons)!=null?k:[];return _.JU.unsafeClone([].concat(_.J8(W)))};
_.Y.computeItems=function(W,k){if(!W)return[];var C=[];if(k){var n=(W.flexibleItems||[]).map(function(A){return _.z(A,_.qq8)});
n=_.b(n);for(var N=n.next();!N.done;N=n.next())N=N.value,k.includes(N.topLevelButton)||(N=N.menuItem)&&C.push(N)}var B;W=(B=W==null?void 0:W.items)!=null?B:[];return[].concat(_.J8(C),_.J8(W))};
_.Y.computeMenuActive=function(W,k){return W||k};
_.Y.onPopupOpened=function(){this.overlayOpen=!0;_.Pe(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.Y.onPopupClosed=function(){this.overlayOpen=!1;_.Pe(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.onPopupCanceled=function(){this.overlayOpen=!1;_.Pe(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.Y.isHidden=function(W,k){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(k==null?0:k.length)};
_.Y.isModernOverflowHidden=function(W,k){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(k==null?0:k.length):!0};
_.Y.createMenuRendererVe=function(){var W=this.data.trackingParams,k=_.VM(),C=_.DH();return W&&k&&C?(W=_.Yf(W),C=_.F8(7591),_.m("combine_ve_grafts")?_.Hn(_.kf(),C,W):_.sr(k,W,C),C):null};
_.oq.Object.defineProperties(fu.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
fu.prototype.onPopupCanceled=fu.prototype.onPopupCanceled;fu.prototype.onPopupClosed=fu.prototype.onPopupClosed;fu.prototype.onPopupOpened=fu.prototype.onPopupOpened;fu.prototype.tonalOverrideChanged=fu.prototype.tonalOverrideChanged;fu.prototype.resetFlexibleItems=fu.prototype.resetFlexibleItems;fu.prototype.setupFlexibleMenu=fu.prototype.setupFlexibleMenu;fu.prototype.iconButtonColorChanged=fu.prototype.iconButtonColorChanged;fu.prototype.updateButtonOverrides=fu.prototype.updateButtonOverrides;
_.U([_.v(_.vL),_.O("design:type",Object)],fu.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#button-shape"),_.O("design:type",qi)],fu.prototype,"buttonShape",void 0);_.U([_.gi("#button"),_.O("design:type",Object)],fu.prototype,"button",void 0);
_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"data",void 0);_.U([_.Z({computed:"computeTopLevelButtonData(data)"}),_.O("design:type",Array)],fu.prototype,"topLevelButtonData",void 0);_.U([_.Z(),_.O("design:type",Array)],fu.prototype,"flexAsTopLevelButtons",void 0);_.U([_.Z({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.O("design:type",Array)],fu.prototype,"items",void 0);_.U([_.Z({value:"yt-icons:more_vert"}),_.O("design:type",String)],fu.prototype,"icon",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fu.prototype,"safeArea",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.O("design:type",Boolean)],fu.prototype,"menuActive",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fu.prototype,"menuFocused",void 0);_.U([_.Z({value:"bottom"}),_.O("design:type",String)],fu.prototype,"buttonTooltipPosition",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fu.prototype,"overlayOpen",void 0);
_.U([_.Z({value:!0}),_.O("design:type",Boolean)],fu.prototype,"forceIconButton",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fu.prototype,"styleActionButton",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fu.prototype,"disableTextTransformOnButtons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fu.prototype,"tonalOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"threeDotSize",void 0);
_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"threeDotButtonOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"isOverlay",void 0);_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"useOverlayDark",void 0);_.U([_.Z({computed:"computeButtonOverride(tonalOverride)"}),_.O("design:type",Object)],fu.prototype,"buttonOverride",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],fu.prototype,"hasCustomIconColor",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("flexAsTopLevelButtons"),_.O("design:type",Object),_.O("design:paramtypes",[])],fu.prototype,"hasFlexibleItems",null);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.O("design:type",Boolean)],fu.prototype,"hasItems",void 0);_.U([_.Z(),_.O("design:type",Object)],fu.prototype,"topLevelIconsOnly",void 0);
_.U([_.Hl("topLevelIconsOnly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"updateButtonOverrides",null);_.U([_.G("topLevelIconsOnly"),_.O("design:type",Object),_.O("design:paramtypes",[])],fu.prototype,"buttonOverrides",null);_.U([_.gi("#top-level-buttons-computed"),_.O("design:type",HTMLElement)],fu.prototype,"topLevelButtonsContainer",void 0);_.U([_.hh(".top-level-buttons > *"),_.O("design:type",Array)],fu.prototype,"topLevelButtons",void 0);
_.U([_.gi("#flexible-item-buttons"),_.O("design:type",HTMLElement)],fu.prototype,"flexibleItemButtonsContainer",void 0);_.U([_.hh("#flexible-item-buttons > *"),_.O("design:type",Array)],fu.prototype,"flexibleItemButtons",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"iconButtonColorChanged",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"setupFlexibleMenu",null);_.U([_.Cq("topLevelIconsOnly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"resetFlexibleItems",null);_.U([_.Hl("tonalOverride"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"tonalOverrideChanged",null);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"onPopupOpened",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"onPopupClosed",null);_.U([_.jI("yt-popup-canceled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fu.prototype,"onPopupCanceled",null);
_.q(fu,"ytd-menu-renderer",function(){if(Dds===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);Dds=W}W=Dds;return W},{mode:_.UC("kevlar_poly_si_batch_j030")?1:2});var xWS;var lcx;_.qj=_.GM(function(W){var k=W.data;var C=function(){if(k().icon)a:{var n={iconName:k().icon};for(var N=_.f().resolve(_.rH),B=_.b([12,24]),A=B.next();!A.done;A=B.next()){var w=A.value;A=Object.assign({},n,{iconStyle:"youtube_fill",iconSize:w});w=Object.assign({},n,{iconStyle:"youtube_outline",iconSize:w});if(N.resolveIcon(A)){n=A;break a}if(N.resolveIcon(w)){n=w;break a}}n=void 0}else n=void 0;return n};
W={};return _.t("badge-shape",{class:_.Li("badge-shape-wiz",function(){return BYX(k().type)},(W["badge-shape-wiz--overlay"]=function(){return k().isOverlay},W["badge-shape-wiz--ads-include-dot"]=function(){return k().adsIncludeDot},W["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(k().type){case 16:case 17:case 18:var n=!0;
break a;default:n=!1}return n},W["badge-shape-wiz--status-badge"]=function(){a:switch(k().type){case 11:case 12:case 13:case 14:case 15:var n=!0;
break a;default:n=!1}return n},W["badge-shape-wiz--no-text"]=function(){return!k().text},W["badge-shape-wiz--modern"]=function(){return k().modern},W)),
style:_.WJ({"background-color":function(){var n;return(n=k().customColors)==null?void 0:n.backgroundColor}}),
role:function(){return k().accessibilityText?"img":void 0},
"aria-label":function(){return k().accessibilityText}},_.t(_.NI,{cond:function(){return k().animation},
then:function(n){return _.t(_.jc,{className:"badge-shape-wiz__icon",data:n,animationName:function(){return n().animationConfig.name||""}})}}),_.t(_.NI,{cond:function(){var n;
return C()&&!((n=k())==null?0:n.animation)},
then:function(){return _.t("div",{class:"badge-shape-wiz__icon"},_.t(LzX,{data:function(){return C()}}))}}),_.t("div",{class:"badge-shape-wiz__text"},function(){var n;
return(n=k())==null?void 0:n.text}))},"I");
_.qj.idomCompat=!0;_.Gj(_.qj,"badge-shape",{props:{data:_.Ik}});var txY=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.animated=_.m("animated_live_badge_icon");W.useBadgeShape=_.m("web_badge_shape_defrag");return W};
_.D(txY,_.R);_.Y=txY.prototype;_.Y.addTooltips=function(){for(var W=_.S(this.hostElement).querySelectorAll(".badge"),k=0,C;C=W[k++];){var n=this.repeatElement.itemForElement(C);C=_.S(C);C.lastChild&&C.lastChild.is==="tp-yt-paper-tooltip"&&C.removeChild(C.lastChild);if(n=n.metadataBadgeRenderer&&n.metadataBadgeRenderer.tooltip){var N=_.eV("tp-yt-paper-tooltip");(0,_.Up)(N).textContent=n;N.setAttribute("position","top");C.appendChild(N)}}};
_.Y.badgesChanged=function(){var W=this;_.Ir().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.Y.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.Y.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.computeStyle=function(W){_.m("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.m("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.Y.computeAriaLabel=function(W){var k;return(W==null?void 0:(k=W.accessibilityData)==null?void 0:k.label)||(W==null?void 0:W.label)};
_.Y.computeBadgeShape=function(W){var k;if(W){var C,n=NYz(W.style),N=Y_3(W.style),B=W.label,A=((C=W.accessibilityData)==null?void 0:C.label)||W.label;W=(k=W.icon)==null?void 0:k.iconType;k={type:n,brNzRatingBadgeType:N,text:B,accessibilityText:A,icon:W!=="PREMIUM"?W:void 0}}else k={};return k};
_.Y.updateComputedBadges=function(W,k,C){var n=this;(k=k?[k]:C?[C]:void 0)?this.computedBadges=k:this.computedBadges=W==null?void 0:W.filter(function(N){var B;if((B=N.metadataBadgeRenderer)==null?0:B.groups){B=!1;N=_.b(N.metadataBadgeRenderer.groups);for(var A=N.next();!A.done;A=N.next()){A=A.value;var w=void 0;B=B||((w=n.hiddenBadgeGroups)==null?void 0:w.includes(A))}return!B}return!0})};
_.Y.useFilledIcons=function(W){return _.m("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.Y.computeIcon=function(W){var k,C;W=W==null?void 0:(k=W.metadataBadgeRenderer)==null?void 0:(C=k.icon)==null?void 0:C.iconType;if(W!=="PREMIUM"&&W)return _.Hp(W)};
_.Y.computeStandaloneBadge=function(W){var k;W=W==null?void 0:(k=W.icon)==null?void 0:k.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var dX=txY;dX.prototype.hiddenBadgeGroupsChanged=dX.prototype.hiddenBadgeGroupsChanged;dX.prototype.standaloneBadgeChanged=dX.prototype.standaloneBadgeChanged;dX.prototype.standaloneRoundedBadgeChanged=dX.prototype.standaloneRoundedBadgeChanged;dX.prototype.badgesChanged=dX.prototype.badgesChanged;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"hidden",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],dX.prototype,"componentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Array)],dX.prototype,"badges",void 0);_.U([_.Z(),_.O("design:type",Object)],dX.prototype,"topStandaloneBadge",void 0);_.U([_.Z(),_.O("design:type",Object)],dX.prototype,"bottomStandaloneBadge",void 0);_.U([_.Z(),_.O("design:type",Object)],dX.prototype,"computedBadges",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"mediumFontAdBadge",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"useRoundedBadge",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"largeFontAdBadge",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"overlayAd",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"overlayPremium",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"noDotAdBadge",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"collectionTruncate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"isThumbnailBadge",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dX.prototype,"wrapBadges",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dX.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dX.prototype,"animated",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dX.prototype,"useBadgeShape",void 0);_.U([_.Z({value:[]}),_.O("design:type",Array)],dX.prototype,"hiddenBadgeGroups",void 0);_.U([_.gi("#repeat"),_.O("design:type",Fr)],dX.prototype,"repeatElement",void 0);_.U([_.Cq("badges"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dX.prototype,"badgesChanged",null);
_.U([_.Cq("useRoundedBadge"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dX.prototype,"standaloneRoundedBadgeChanged",null);_.U([_.Cq("topStandaloneBadge","bottomStandaloneBadge"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dX.prototype,"standaloneBadgeChanged",null);_.U([_.Cq("hiddenBadgeGroups"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dX.prototype,"hiddenBadgeGroupsChanged",null);
dX=_.U([_.T({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],dX);
var EW8=_.u0()(dX,"ytd-badge-supported-renderer",function(){if(lcx===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);lcx=W}W=lcx;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.UC("kevlar_poly_si_batch_j053")?1:2});var m2,acI=function(){var W=_.R.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.m("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.m("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.D(acI,_.R);_.Y=acI.prototype;
_.Y.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"}}}};
_.Y.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",m2.JSC$12379_DEFAULT_CLICK_LOCATION_BEHAVIOR,m2.JSC$12379_CLICK_LOCATION_ID_MAP))};
_.Y.onTap=function(W){if(!_.m("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.Y.onClick=function(W){if(_.m("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.Y.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.Y.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.yI(W,0))&&_.Op(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var k=this.data.impressionEndpoints[W];k.clickTrackingParams&&delete k.clickTrackingParams;_.f().resolve(_.uI).resolveCommand(k,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var C;((C=this.data)==null?0:C.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.Y.handleMuteAd=function(){};
_.Y.attached=function(){var W=this;_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.detached=function(){_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.oq.Object.defineProperties(acI.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var k;return _.w8("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((k=this.data)==null?void 0:k.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
var z1=m2=acI;m2.prototype.onClick=m2.prototype.onClick;m2.prototype.onTap=m2.prototype.onTap;m2.prototype.dataChanged=m2.prototype.dataChanged;z1.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
z1.JSC$12379_CLICK_LOCATION_ID_MAP=_.m("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"]]);
z1.JSC$12379_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.m("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"}];_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],z1.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],z1.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],z1.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.v(XO),_.O("design:type",Object)],z1.prototype,"ytdActiveViewBehavior",void 0);_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],z1.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],z1.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],z1.prototype,"clickCommand",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],z1.prototype,"miniMode",void 0);_.U([_.Z(),_.O("design:type",String)],z1.prototype,"iconType",void 0);_.U([_.G("data.titleText"),_.O("design:type",String),_.O("design:paramtypes",[])],z1.prototype,"titleAriaLabel",null);
_.U([_.G("data.rating"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"getRating",null);_.U([_.G("data.price"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"getPrice",null);_.U([_.G("data.thirdLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"getThirdLine",null);_.U([_.G("data.fourthLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"getFourthLine",null);
_.U([_.G("data.fifthLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"getFifthLine",null);_.U([_.G("getRating"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computeRatingHidden",null);_.U([_.G("getPrice"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computePriceHidden",null);_.U([_.G("getThirdLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computeThirdLineHidden",null);
_.U([_.G("getFourthLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computeFourthLineHidden",null);_.U([_.G("getFifthLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computeFifthLineHidden",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.energyIcon"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"hasEnergyIcon",null);
_.U([_.G("computePriceHidden","computeRatingHidden"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"computeSecondaryTextHidden",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z1.prototype,"standardizeIconSize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z1.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z1.prototype,"noBottomMargin",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.layout"),_.O("design:type",String),_.O("design:paramtypes",[])],z1.prototype,"layout",null);_.U([_.G("data.layout"),_.O("design:type",Object),_.O("design:paramtypes",[])],z1.prototype,"mediaThumbnailWidth",null);_.U([_.G("layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],z1.prototype,"useRoundedBadge",null);_.U([_.Z(),_.O("design:type",String)],z1.prototype,"thumbnailObjectFit",void 0);
_.U([_.Z(),_.O("design:type",Object)],z1.prototype,"thumbnailFitHeight",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z1.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],z1.prototype,"onTap",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],z1.prototype,"onClick",null);
z1=m2=_.U([_.T({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],z1);
_.q(z1,"ytd-display-ad-renderer",function(){if(xWS!==void 0)return xWS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xWS=W},{mode:1});var XAC;var fcA;var dWC;var bfw=new Map;var mWY=!1;var zhS=function(){var W=_.R.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.D(zhS,_.R);_.Y=zhS.prototype;_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.Y.attached=function(){var W=this;this.observer=new MutationObserver(function(k,C){W.handleResized();C.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.Y.detached=function(){this.observer&&this.observer.disconnect()};
_.Y.logTooltipEvent=function(){_.m("kevlar_wiz_tooltip_event_killswitch")||mWY||(_.AJK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),mWY=!0)};
_.Y.handleWindowResized=function(){this.handleResized()};
_.Y.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")))};
_.Y.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.DE("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.Y.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.DE("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.Y.handleResized=function(){var W=this;this.verified&&_.aM.addLowPriorityJob(function(){W.fitBackgroundToText();var k=getComputedStyle(W.hostElement).lineHeight;k&&(k=k.match(/\d+/))&&k.length&&(W.lineHeight=Number(k[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.Y.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),k=_.S(this.textEl).children;k.length>0?W.selectNodeContents(k[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.Y.computeChannelBadgeStyle=function(W){var k;if((W==null?0:(k=W.runs)==null?0:k.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.a8(W.runs[0].textColor)+";"};
_.oq.Object.defineProperties(zhS.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"?_.Go(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.y4(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var Dj=zhS;Dj.prototype.onLineHeightChanged=Dj.prototype.onLineHeightChanged;Dj.prototype.onHeightChanged=Dj.prototype.onHeightChanged;Dj.prototype.onChannelNameChanged=Dj.prototype.onChannelNameChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Dj.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"badges",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"channelName",void 0);
_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"noEndpoints",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"wrapText",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"forceVerified",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"tooltipPosition",void 0);_.U([_.Z(),_.O("design:type",String)],Dj.prototype,"tooltip",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Dj.prototype,"hasChannelArt",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dj.prototype,"compactStyle",void 0);_.U([_.gi("#text-container"),_.O("design:type",HTMLElement)],Dj.prototype,"textContainerEl",void 0);_.U([_.gi("#text"),_.O("design:type",Object)],Dj.prototype,"textEl",void 0);_.U([_.gi("#verified-tooltip"),_.O("design:type",HTMLElement)],Dj.prototype,"verifiedTooltip",void 0);_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"height",void 0);
_.U([_.Z(),_.O("design:type",Object)],Dj.prototype,"lineHeight",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("badges","forceVerified"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dj.prototype,"verified",null);_.U([_.G("badges","verified"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dj.prototype,"hideBadges",null);_.U([_.G("channelName"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dj.prototype,"formattedName",null);
_.U([_.G("badges","verified","formattedName"),_.O("design:type",String),_.O("design:paramtypes",[])],Dj.prototype,"tooltipText",null);_.U([_.G("hasChannelArt"),_.O("design:type",String),_.O("design:paramtypes",[])],Dj.prototype,"tooltipOffset",null);_.U([_.Hl("channelName"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dj.prototype,"onChannelNameChanged",null);
_.U([_.Hl("height"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dj.prototype,"onHeightChanged",null);_.U([_.Hl("lineHeight","height"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dj.prototype,"onLineHeightChanged",null);Dj=_.U([_.T({is:"ytd-channel-name",disableElementRegistration:!0})],Dj);
_.q(Dj,"ytd-channel-name",function(){if(dWC!==void 0)return dWC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return dWC=W},{mode:_.UC("kevlar_poly_si_batch_j036")?1:2});var Vt=function(){var W=_.R.apply(this,arguments)||this;W.standardizeIconSize=_.m("kevlar_system_icons");W.enableModernCommentBadges=_.m("enable_modern_comment_badges");return W};
_.D(Vt,_.R);Vt.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.lV(this.hostElement,this.data.color.basicColorPaletteData)};
Vt.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var W,k=this.get("basicColorPaletteData.backgroundColor",(W=this.data)==null?void 0:W.color),C;W=this.get("basicColorPaletteData.foregroundTitleColor",(C=this.data)==null?void 0:C.color);C={};k?(k=_.a8(k),C["--ytd-author-comment-badge-background-color"]=k):(C["--ytd-author-comment-badge-icon-background-color"]="transparent",C["--ytd-author-comment-badge-background-color"]="transparent");W?(k=_.a8(W),C["--ytd-author-comment-badge-name-color"]=
k,C["--ytd-author-comment-badge-icon-color"]=k):C["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(C).length>0&&_.Op(this.hostElement,C)}};
Vt.prototype.useFilledIcons=function(W){return _.m("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.oq.Object.defineProperties(Vt.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var JZ=Vt;JZ.prototype.colorChanged=JZ.prototype.colorChanged;JZ.prototype.basicPaletteChanged=JZ.prototype.basicPaletteChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JZ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],JZ.prototype,"standardizeIconSize",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],JZ.prototype,"enableModernCommentBadges",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.authorUnifiedVerified"),_.O("design:type",Object),_.O("design:paramtypes",[])],JZ.prototype,"verified",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],JZ.prototype,"creator",null);
_.U([_.Hl("data.color.basicColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],JZ.prototype,"basicPaletteChanged",null);_.U([_.Hl("data.color"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],JZ.prototype,"colorChanged",null);JZ=_.U([_.T({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],JZ);
_.q(JZ,"ytd-author-comment-badge-renderer",function(){if(fcA!==void 0)return fcA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return fcA=W},{mode:1});var DWz;var Vxz=function(){return _.R.apply(this,arguments)||this};
_.D(Vxz,_.R);Vxz.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var cr=Vxz;cr.communityTabWidth=638;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cr.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],cr.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],cr.prototype,"surface",void 0);
_.U([_.Z({reflectToAttribute:!0,value:_.m("enable_shrink_image_size_on_web_posts_singleton")}),_.O("design:type",Boolean)],cr.prototype,"searchSxsUx",void 0);cr=_.U([_.T({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],cr);
_.q(cr,"ytd-backstage-image-renderer",function(){if(DWz!==void 0)return DWz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return DWz=W},{mode:1});var JJZ;var cJ8=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.D(cJ8,_.R);_.Y=cJ8.prototype;_.Y.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.Y.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.Y.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.Y.thumbnailSrc=function(W){var k,C,n,N;return(W==null?0:(k=W.thumbnails)==null?0:(C=k[0])==null?0:C.url)?_.QG((n=W.thumbnails)==null?void 0:(N=n[0])==null?void 0:N.url):void 0};
_.Y.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.Y.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.Y.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.Y.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,k=0;k<W.length;k++)if(W[k].selected){this.selectedItemIndex=k;break}};
_.Y.onPopupClosed=function(W,k){W=Number(this.pollVotes.selected);k.confirmed&&(this.selectChoice(W,!1),_.KY(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.Y.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.Y.onYtCommentPollRevert=function(W,k){k&&(this.selectChoice(k.selectedChoiceIndex,!0),this.set("data.totalVotes",k.totalVotes))};
_.Y.onYtServiceRequestSent=function(W,k){if(k.actions)for(W=0;W<k.actions.length;W++){var C=k.actions[W];_.z(C,tT)&&this.set("data.totalVotes",_.z(C,tT).totalVotes)}};
_.Y.onYtServiceRequestCompleted=function(W){var k=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(k==="FEEDBACK_DESELECT"||k==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.Pe(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.Y.getEndpoint=function(W,k){return k===W?this.data.choices[k].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.Y.selectChoice=function(W,k){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var C=0;C<this.data.choices.length;C++){var n;if(W===this.selectedItemIndex){var N=!1;var B=n=null}else n=(N=C===W)?this.data.choices[C].voteRatioIfSelected:this.data.choices[C].voteRatioIfNotSelected,B=N?this.data.choices[C].votePercentageIfSelected:this.data.choices[C].votePercentageIfNotSelected;this.set("data.choices."+C+".voteRatio",n);
this.set("data.choices."+C+".votePercentage",B);this.set("data.choices."+C+".selected",N)}k||(this.isLoading=!0,(k=this.getEndpoint(W,this.selectedItemIndex))&&(_.m("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.kQ(this.hostElement,[k]):_.f().resolve(_.uI).resolveCommand(k,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.oq.Object.defineProperties(cJ8.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var It=cJ8;It.prototype.onYtServiceRequestCompleted=It.prototype.onYtServiceRequestCompleted;It.prototype.onYtServiceRequestSent=It.prototype.onYtServiceRequestSent;It.prototype.onYtCommentPollRevert=It.prototype.onYtCommentPollRevert;It.prototype.onPopupClosed=It.prototype.onPopupClosed;It.prototype.dataChanged=It.prototype.dataChanged;_.U([_.v(_.ZI),_.O("design:type",Object)],It.prototype,"paperItemBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],It.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],It.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],It.prototype,"isLoading",void 0);_.U([_.Z({computed:"computeIsChannelOwner(data.choices)"}),_.O("design:type",Boolean)],It.prototype,"isChannelOwner",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.O("design:type",Boolean)],It.prototype,"isImagePoll",void 0);_.U([_.Z({computed:"computeIsTotalVotesDisabled(data)"}),_.O("design:type",Boolean)],It.prototype,"isTotalVotesDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],It.prototype,"previousPollInfo",void 0);_.U([_.Z(),_.O("design:type",Object)],It.prototype,"selectedItemIndex",void 0);_.U([_.gi("#poll-votes"),_.O("design:type",Object)],It.prototype,"pollVotes",void 0);
_.U([_.G("isChannelOwner"),_.O("design:type",Object),_.O("design:paramtypes",[])],It.prototype,"endpointStyle",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],It.prototype,"dataChanged",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],It.prototype,"onPopupClosed",null);
_.U([_.jI("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],It.prototype,"onYtCommentPollRevert",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],It.prototype,"onYtServiceRequestSent",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],It.prototype,"onYtServiceRequestCompleted",null);It=_.U([_.T({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],It);
_.q(It,"ytd-backstage-poll-renderer",function(){if(JJZ!==void 0)return JJZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JJZ=W},{mode:2});var IcS;var S_8={autoplay:!1,loop:!1},Mxs={simpleText:""},Q6s=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},S_8,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},S_8,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.D(Q6s,_.R);_.Y=Q6s.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.Y.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.Y.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.Y.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.Y.onExplanationChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var k=0;k<W.length;k++)if(W[k].isSelected||this.isChannelOwner&&W[k].isCorrect){this.selectedItemIndex=k;return}this.selectedItemIndex=-1}}};
_.Y.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,k=Number(this.quizVotes.selected);this.selectChoice(k);this.sendVoteAction(k,W);this.quizVotes.selected=-1;var C;W=!((C=this.data)==null?0:C.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.Y.onYtCommentPollRevert=function(W,k){k&&(this.selectChoice(k.selectedChoiceIndex),this.set("data.totalVotes",k.totalVotes))};
_.Y.onYtServiceRequestSent=function(W,k){if(k.actions)for(W=_.b(k.actions),k=W.next();!k.done;k=W.next())(k=_.z(k.value,tT))&&this.set("data.totalVotes",k.totalVotes)};
_.Y.onYtServiceRequestCompleted=function(W){var k=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(k==="FEEDBACK_DESELECT"||k==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.Pe(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.Y.getAnimationPropsForChoiceIndex=function(W,k){return k[W]};
_.Y.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var k;if((k=this.data)!=null&&k.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){k=_.b(this.correctnessAnimationRefs);for(var C=k.next();!C.done;C=k.next()){var n=void 0,N=void 0;(n=C.value)==null||(N=n.lottieEl)==null||N.stop()}if(!(this.selectedItemIndex<0)){k=0;W&&(k=this.isCorrect?37:25);var B,A;(B=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(A=B.lottieEl)==null||A.goToAndPlay(W?k:0,!0);if(!(this.isCorrect||
(B=this.data.choices.findIndex(function(a){return a.isCorrect}),B<0))){var w,x;
(x=(w=this.correctnessAnimationRefs[B])==null?void 0:w.lottieEl)==null||x.goToAndPlay(37,!0);var E;w=(E=this.fadeContainers)==null?void 0:E.item(B);!W&&w&&this.fadeIn(w)}}}};
_.Y.thumbnailSrc=function(W){var k,C,n,N;return(W==null?0:(k=W.thumbnails)==null?0:(C=k[0])==null?0:C.url)?_.QG((n=W.thumbnails)==null?void 0:(N=n[0])==null?void 0:N.url):void 0};
_.Y.a11yVotedText=function(W,k){var C,n,N=((C=this.data)==null?void 0:(n=C.correctVotedText)==null?void 0:n.simpleText)||"",B,A;C=((B=this.data)==null?void 0:(A=B.votedText)==null?void 0:A.simpleText)||"";if(!k)return"";var w,x;if((w=this.data)==null?0:(x=w.choices)==null?0:x[W].isCorrect)return N;var E,a;return((E=this.data)==null?0:(a=E.choices)==null?0:a[W].isSelected)?C:""};
_.Y.getEndpoint=function(W,k){return k===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.Y.sendVoteAction=function(W,k){if(W=this.getEndpoint(W,k))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.Y.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var k=0;k<this.data.choices.length;k++)this.set("data.choices."+k+".isSelected",W===this.selectedItemIndex?!1:k===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.Y.maybeInitializeQuizLotties=function(W){var k=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=W.map(function(C){return{animationConfig:C.isCorrect?k.baseCorrectLottiePlayerAnimationConfig:k.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){k.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(C){return C.animationRef||{}})};
_.Y.fadeIn=function(W){W.classList.add("fade-in");_.oE(_.aM,function(){W.classList.remove("fade-in")},900)};
_.oq.Object.defineProperties(Q6s.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.m("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.y4(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 W,k;return((W=this.data)==null?void 0:(k=W.choices)==null?void 0:k.some(function(C){return C.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Mxs:this.data.choices[this.selectedItemIndex].explanation||Mxs}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var SR=Q6s;SR.prototype.onYtServiceRequestCompleted=SR.prototype.onYtServiceRequestCompleted;SR.prototype.onYtServiceRequestSent=SR.prototype.onYtServiceRequestSent;SR.prototype.onYtCommentPollRevert=SR.prototype.onYtCommentPollRevert;SR.prototype.dataChanged=SR.prototype.dataChanged;SR.prototype.onExplanationChanged=SR.prototype.onExplanationChanged;_.U([_.v(_.ZI),_.O("design:type",Object)],SR.prototype,"paperItemBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.vR.YtTaskEmitterBehavior),_.O("design:type",Object)],SR.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],SR.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],SR.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],SR.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Object)],SR.prototype,"usesPanelLockup",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.O("design:type",Boolean)],SR.prototype,"isChannelOwner",void 0);_.U([_.Z({computed:"computeIsTotalVotesDisabled(data)"}),_.O("design:type",Boolean)],SR.prototype,"isTotalVotesDisabled",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.O("design:type",Boolean)],SR.prototype,"isImageQuiz",void 0);_.U([_.Z(),_.O("design:type",Object)],SR.prototype,"previousQuizInfo",void 0);_.U([_.Z(),_.O("design:type",Object)],SR.prototype,"selectedItemIndex",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data","usesPanelLockup"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"shouldUseModernUi",null);
_.U([_.hh(".fade-container"),_.O("design:type",Object)],SR.prototype,"fadeContainers",void 0);_.U([_.Z(),_.O("design:type",Array)],SR.prototype,"correctnessAnimationProps",void 0);_.U([_.G("explanation","showCorrectAnswer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"showExplanation",null);_.U([_.G("isChannelOwner","isAttempted"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"showCorrectAnswer",null);
_.U([_.G("isChannelOwner","isAttempted","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"isQuizAnsweringDisabled",null);_.U([_.G("isQuizAnsweringDisabled"),_.O("design:type",Object),_.O("design:paramtypes",[])],SR.prototype,"endpointStyle",null);_.U([_.G("data","selectedItemIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"isAttempted",null);
_.U([_.G("data","selectedItemIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],SR.prototype,"explanation",null);_.U([_.G("data","selectedItemIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],SR.prototype,"isCorrect",null);_.U([_.gi("ytd-expander"),_.O("design:type",Object)],SR.prototype,"expander",void 0);_.U([_.gi("#quiz-votes"),_.O("design:type",Object)],SR.prototype,"quizVotes",void 0);
_.U([_.Hl("explanation"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SR.prototype,"onExplanationChanged",null);_.U([_.Hl("data","isChannelOwner"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SR.prototype,"dataChanged",null);_.U([_.jI("yt-comment-quiz-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],SR.prototype,"onYtCommentPollRevert",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],SR.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],SR.prototype,"onYtServiceRequestCompleted",null);SR=_.U([_.T({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],SR);
_.q(SR,"ytd-backstage-quiz-renderer",function(){if(IcS!==void 0)return IcS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return IcS=W},{mode:1});var pAA;var vWZ=function(){return _.R.apply(this,arguments)||this};
_.D(vWZ,_.R);var MY=vWZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MY.prototype,"data",void 0);MY=_.U([_.T({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],MY);
_.q(MY,"ytd-post-uploaded-video-renderer",function(){if(pAA!==void 0)return pAA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pAA=W},{mode:1});var ehS;var s62=function(){return _.R.apply(this,arguments)||this};
_.D(s62,_.R);s62.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
var Qt=s62;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Qt.prototype,"data",void 0);Qt=_.U([_.T({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Qt);
_.q(Qt,"ytd-sponsors-only-badge-renderer",function(){if(ehS!==void 0)return ehS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ehS=W},{mode:1});var Gs8;var yJs=function(){return _.R.apply(this,arguments)||this};
_.D(yJs,_.R);var pu=yJs;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],pu.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pu.prototype,"data",void 0);pu=_.U([_.T({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pu);
_.q(pu,"ytd-child-video-renderer",function(){if(Gs8!==void 0)return Gs8;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Gs8=W},{mode:1});var $WZ;var ZfA;var RhC=function(){var W=_.R.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.m("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.D(RhC,_.R);_.Y=RhC.prototype;_.Y.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.Y.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.Y.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.Y.computePreserve=function(W){return W?!0:!1};
_.Y.setBackground=function(){var W,k;_.m("web_modern_collections_v2")&&((W=this.data)==null?0:(k=W.thumbnail)==null?0:k.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
var vr=RhC;vr.prototype.setBackground=vr.prototype.setBackground;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],vr.prototype,"watchFeedThumbnail",void 0);_.U([_.Z(),_.O("design:type",Object)],vr.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],vr.prototype,"size",void 0);
_.U([_.Z({computed:"computeBlurredImageSize(size)"}),_.O("design:type",Object)],vr.prototype,"blurredImageSize",void 0);_.U([_.Z({computed:"computeImageSize(size)"}),_.O("design:type",Object)],vr.prototype,"imageSize",void 0);_.U([_.Z({computed:"computePreserve(size)"}),_.O("design:type",String)],vr.prototype,"preserve",void 0);_.U([_.Z({computed:"computeObjectFit(size)"}),_.O("design:type",String)],vr.prototype,"objectFit",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],vr.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vr.prototype,"webModernCollections",void 0);_.U([_.Hl("data.thumbnail.sampledThumbnailColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vr.prototype,"setBackground",null);vr=_.U([_.T({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],vr);
_.q(vr,"ytd-playlist-custom-thumbnail-renderer",function(){if(ZfA!==void 0)return ZfA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ZfA=W},{mode:1});var oW2;var ifI=function(){return _.R.apply(this,arguments)||this};
_.D(ifI,_.R);var eR=ifI;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eR.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],eR.prototype,"width",void 0);eR=_.U([_.T({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],eR);
_.q(eR,"ytd-playlist-video-thumbnail-renderer",function(){if(oW2!==void 0)return oW2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return oW2=W},{mode:1});var TYS;var q_2=function(){return _.R.apply(this,arguments)||this};
_.D(q_2,_.R);var s1=q_2;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],s1.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],s1.prototype,"width",void 0);s1=_.U([_.T({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],s1);
_.q(s1,"ytd-show-custom-thumbnail-renderer",function(){if(TYS!==void 0)return TYS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return TYS=W},{mode:1});var ujb;var G1=function(){return _.R.apply(this,arguments)||this};
_.D(G1,_.R);G1.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
G1.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=fO(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.oq.Object.defineProperties(G1.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
var $8=G1;$8.prototype.overlayColorChanged=$8.prototype.overlayColorChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$8.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],$8.prototype,"overlayColor",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],$8.prototype,"overlayStyle",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],$8.prototype,"overlayTextStyle",null);_.U([_.Hl("overlayColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$8.prototype,"overlayColorChanged",null);$8=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],$8);
_.q($8,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(ujb!==void 0)return ujb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ujb=W},{mode:1});var UWs;var OfA=function(){var W=_.R.apply(this,arguments)||this;W.active=!1;return W};
_.D(OfA,_.R);OfA.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
OfA.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var Zj=OfA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Zj.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Zj.prototype,"active",void 0);Zj=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Zj);
_.q(Zj,"ytd-thumbnail-overlay-downloading-renderer",function(){if(UWs!==void 0)return UWs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return UWs=W},{mode:1});var L6C;var j6b=function(){return _.R.apply(this,arguments)||this};
_.D(j6b,_.R);_.oq.Object.defineProperties(j6b.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var Rt=j6b;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rt.prototype,"data",void 0);_.U([_.G("data.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],Rt.prototype,"text",null);Rt=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Rt);
_.q(Rt,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(L6C!==void 0)return L6C;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return L6C=W},{mode:1});var Hfb,rJz=function(){if(Hfb!==void 0)return Hfb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Hfb=W};var gWA=function(){return _.R.apply(this,arguments)||this};
_.D(gWA,_.R);_.oq.Object.defineProperties(gWA,{template:{configurable:!0,enumerable:!0,get:function(){return rJz()}}});
var P98=gWA;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],P98.prototype,"animateEqualizer",void 0);P98=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],P98);_.u0()(P98,"ytd-thumbnail-overlay-equalizer",function(){return rJz()},{allowedProps:["animateEqualizer"],
mode:1});var K6s;var hhz=function(){var W=_.R.apply(this,arguments)||this;W.nowPlayingBadge=_.m("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.D(hhz,_.R);hhz.prototype.activeChanged=function(){var W=this;_.m("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ZR(this,function(){_.Pe(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
hhz.prototype.onMiniplayerPlayStateChanged=function(W){var k,C=(k=_.z(_.k7().currentEndpoint,_.RA))==null?void 0:k.videoId;this.isVideoPlaying=W&&(_.m("web_limit_now_playing_animation_killswitch")||this.videoId===C)};
var ot=hhz;ot.prototype.activeChanged=ot.prototype.activeChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ot.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ot.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],ot.prototype,"isVideoPlaying",void 0);_.U([_.Z(),_.O("design:type",String)],ot.prototype,"videoId",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ot.prototype,"equalizerOnly",void 0);_.U([_.Z(),_.O("design:type",Boolean)],ot.prototype,"isActive",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ot.prototype,"nowPlayingBadge",void 0);_.U([_.Hl("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ot.prototype,"activeChanged",null);
ot=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],ot);
_.q(ot,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(K6s!==void 0)return K6s;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return K6s=W},{mode:1});var Wos;var kFA=function(){return _.R.apply(this,arguments)||this};
_.D(kFA,_.R);var ij=kFA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ij.prototype,"data",void 0);ij=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ij);
_.q(ij,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Wos!==void 0)return Wos;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Wos=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var ChZ;var nFs=function(){return _.R.apply(this,arguments)||this};
_.D(nFs,_.R);nFs.prototype.onDurationChanged=function(){var W,k;_.S(this.hostElement).querySelector("#progress").style.width=((k=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?k:0)+"%"};
var T1=nFs;T1.prototype.onDurationChanged=T1.prototype.onDurationChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],T1.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],T1.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],T1.prototype,"isLive",void 0);_.U([_.Hl("data.percentDurationWatched"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],T1.prototype,"onDurationChanged",null);
T1=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],T1);
_.q(T1,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(ChZ!==void 0)return ChZ;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ChZ=W},{mode:1});var NNA;var YsC=function(){var W=_.R.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.D(YsC,_.R);YsC.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.oq.Object.defineProperties(YsC.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.icon)==null?void 0:k.iconType)==="PLAY_ALL"&&_.m("kevlar_system_icons")}}});
var qY=YsC;qY.prototype.widthChanged=qY.prototype.widthChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qY.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],qY.prototype,"width",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qY.prototype,"bottomPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qY.prototype,"richGridOverlay",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qY.prototype,"watchFeedOverlay",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qY.prototype,"isCompact",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qY.prototype,"isIconFilled",null);_.U([_.Hl("width","watchFeedOverlay"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qY.prototype,"widthChanged",null);
qY=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],qY);
_.q(qY,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(NNA!==void 0)return NNA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return NNA=W},{mode:1});var BNz;var bpC=["CLIP","SHORTS"],AHs=function(){var W=_.R.apply(this,arguments)||this;W.animated=_.m("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.D(AHs,_.R);_.Y=AHs.prototype;_.Y.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.Y.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.Y.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.Y.hasIconOrText=function(){var W,k;return!!(((W=this.data)==null?0:W.icon)||((k=this.data)==null?0:k.text))};
_.Y.initializeLiveBadgeTimer=function(){var W=this,k,C=(k=this.liveBadgeData)==null?void 0:k.startTimestampSec;if(C&&this.canShowLiveBadgeTimer()){var n;k=Number((n=this.liveBadgeData)==null?void 0:n.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(C);this.updateTimerIntervalId=_.gA(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},k)}else this.timeSinceLive=0};
_.Y.canShowLiveBadgeTimer=function(){var W=Date.now(),k,C;return W<(Number((k=this.liveBadgeData)==null?void 0:k.endTimestampSec)-1)*1E3&&W>Number((C=this.liveBadgeData)==null?void 0:C.startTimestampSec)*1E3};
_.oq.Object.defineProperties(AHs.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var k=this.timeSinceLive;var C,n,N,B;a:{var A=W.style;if(A===void 0)A=16;else switch(A){case "LIVE":A=17;break a;default:A=16}}k={type:A,text:k?kA3({seconds:k}):_.y4(W.text),accessibilityText:(C=W.text)==null?void 0:(n=C.accessibility)==null?void 0:(N=n.accessibilityData)==null?void 0:N.label,icon:(B=W.icon)==null?void 0:B.iconType}}else k={};return k}},
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 W;return(W=this.data)==null?void 0:W.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 bpC.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var uj=AHs;uj.prototype.initializeLiveBadgeTimer=uj.prototype.initializeLiveBadgeTimer;uj.prototype.dataChanged=uj.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],uj.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uj.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],uj.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],uj.prototype,"animated",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.O("design:type",Boolean)],uj.prototype,"hideTimeStatus",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],uj.prototype,"hasIcon",void 0);_.U([_.Z(),_.O("design:type",Object)],uj.prototype,"timeSinceLive",void 0);_.U([_.G("data","timeSinceLive"),_.O("design:type",Object),_.O("design:paramtypes",[])],uj.prototype,"badgeShapeData",null);
_.U([_.G("data","overlayType"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uj.prototype,"hideBadgeShape",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uj.prototype,"dataChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],uj.prototype,"overlayStyle",null);
_.U([_.G("data.liveBadgeData"),_.O("design:type",Object),_.O("design:paramtypes",[])],uj.prototype,"liveBadgeData",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.type"),_.O("design:type",Object),_.O("design:paramtypes",[])],uj.prototype,"overlayType",null);_.U([_.G("overlayType","overlayStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uj.prototype,"useFilledIcon",null);
_.U([_.Cq("liveBadgeData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uj.prototype,"initializeLiveBadgeTimer",null);uj=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],uj);
_.q(uj,"ytd-thumbnail-overlay-time-status-renderer",function(){if(BNz!==void 0)return BNz;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return BNz=W},{mode:_.UC("kevlar_poly_si_batch_j035")?1:2});var Fob;var U1=function(){return _.R.apply(this,arguments)||this};
_.D(U1,_.R);U1.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"}}}}};
U1.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
U1.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
var O1=U1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],O1.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.O("design:type",Boolean)],O1.prototype,"hasPlaybackProgressBar",void 0);
O1=_.U([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],O1);
_.q(O1,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Fob!==void 0)return Fob;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Fob=W},{mode:1});var wCS;_.UK(xWX);var xTx=_.GM(function(W){var k=W.data;var C=W.children;var n=function(){return!!k().doubleStack};
return _.t("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!k().experimentEnabled}},_.t(_.NI,{cond:k,
then:function(){return _.t("div",null,_.t(_.NI,{cond:n,then:function(){var N={};return _.t("div",{class:_.Li("collections-stack-wiz__collection-stack2",function(){return k().customClassName2ndStack},(N["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return k().enableResponsiveMode},N)),
style:_.WJ({"background-color":function(){return F6m(k())}})})}}),_.t("div",{class:_.Li("collections-stack-wiz__collection-stack1",function(){return k().customClassName1stStack},function(){return wAX(k().thumbnailSize?k().thumbnailSize:"medium")}),
style:_.WJ({"background-color":function(){return F6m(k())}})}),C)}}))},"J");_.Gj(xTx,"yt-collections-stack",{props:{data:_.Ik}});var lsA=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.m("web_modern_collections_v2");return W};
_.D(lsA,_.R);_.Y=lsA.prototype;
_.Y.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]]"}}}}}};
_.Y.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var k=W.thumbnailRenderer,C;if((C=k.playlistVideoThumbnailRenderer)==null?0:C.thumbnail)return k.playlistVideoThumbnailRenderer.thumbnail;var n;if((n=k.playlistCustomThumbnailRenderer)==null?0:n.thumbnail)return k.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var N;if((N=W.showCustomThumbnailRenderer)==null?0:N.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.Y.computeOverlayColor=function(W){var k,C;if((k=this.getThumbnailDetails(W))==null?0:(C=k.darkColorPalette)==null?0:C.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var n;return(n=this.getThumbnailDetails(W))==null?void 0:n.sampledThumbnailColor};
_.Y.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.b(W.thumbnailOverlays);for(var k=W.next();!k.done;k=W.next()){var C=void 0;if((C=k.value)==null?0:C.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.Y.computeNavigationEndpoint=function(W){return $n4(W==null?void 0:W.navigationEndpoint)};
_.oq.Object.defineProperties(lsA.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var Lu=lsA;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Lu.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(u98),_.O("design:type",Object)],Lu.prototype,"ytdThumbnailBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Lu.prototype,"componentBehavior",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Lu.prototype,"watchFeedThumbnail",void 0);_.U([_.Z(),_.O("design:type",Number)],Lu.prototype,"customThumbnailSize",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],Lu.prototype,"hideAria",void 0);_.U([_.Z(),_.O("design:type",Object)],Lu.prototype,"data",void 0);_.U([_.Z({computed:"computeOverlayColor(data)"}),_.O("design:type",Object)],Lu.prototype,"overlayColor",void 0);
_.U([_.Z({computed:"computeWebModernCollections(data)"}),_.O("design:type",Object)],Lu.prototype,"webModernCollections",void 0);_.U([_.Z({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],Lu.prototype,"computedNavigationEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Lu.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Lu.prototype,"isDoubleStack",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Lu.prototype,"thumbnailSize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Lu.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.G("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lu.prototype,"collectionStack",null);Lu=_.U([_.T({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Lu);
_.q(Lu,"ytd-playlist-thumbnail",function(){if(wCS!==void 0)return wCS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return wCS=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var t0s;var EFz=function(){var W=_.R.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.m("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.D(EFz,_.R);_.Y=EFz.prototype;_.Y.getMetadata=function(W){if(!W)return[];var k=[],C=W.shortViewCountText||W.viewCountText;C&&k.push(_.y4(C));W.publishedTimeText&&k.push(_.y4(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&k.push(_.Di(_.y4(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return k};
_.Y.observeDataForBylineSeparator=function(){this.data&&_.qw(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.Y.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.a8(this.metadataColor)};
_.Y.getSimpleString=function(W){return _.y4(W)};
_.Y.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.Y.isMetadataHidden=function(W){var k;return((k=this.getMetadata(W))==null?void 0:k.length)===0};
_.Y.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.Y.isLongByline=function(W,k){return k&&!(W==null||!W.longBylineText)};
_.oq.Object.defineProperties(EFz.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.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 _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var jR=EFz;jR.prototype.metadataColorChanged=jR.prototype.metadataColorChanged;jR.prototype.observeDataForBylineSeparator=jR.prototype.observeDataForBylineSeparator;_.U([_.v(_.fk),_.O("design:type",Object)],jR.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jR.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],jR.prototype,"noEndpoints",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"isSlimShort",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"radioMeta",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],jR.prototype,"isGridViewEnabled",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"richMeta",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jR.prototype,"amsterdamPostMvp",void 0);_.U([_.Z(),_.O("design:type",Boolean)],jR.prototype,"noByline",void 0);
_.U([_.Z({computed:"isLongByline(data, radioMeta)"}),_.O("design:type",Boolean)],jR.prototype,"longByline",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"truncateMetadataLine",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"miniMode",void 0);_.U([_.Z(),_.O("design:type",Number)],jR.prototype,"metadataColor",void 0);_.U([_.Z(),_.O("design:type",Array)],jR.prototype,"badges",void 0);
_.U([_.Z({selector:_.V4,selectorArgs:["data.videoId"]}),_.O("design:type",String)],jR.prototype,"transferState",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"isDownloading",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],jR.prototype,"typographyBump",void 0);_.U([_.gi("#metadata-line"),_.O("design:type",HTMLElement)],jR.prototype,"metadataLine",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jR.prototype,"observeDataForBylineSeparator",null);_.U([_.Hl("metadataColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jR.prototype,"metadataColorChanged",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],jR.prototype,"shouldShowVideoInfo",null);
_.U([_.G("badges"),_.O("design:type",String),_.O("design:paramtypes",[])],jR.prototype,"inlineBadgeClass",null);_.U([_.G("longByline"),_.O("design:type",String),_.O("design:paramtypes",[])],jR.prototype,"longBylineClass",null);_.U([_.G("data","longByline"),_.O("design:type",Object),_.O("design:paramtypes",[])],jR.prototype,"bylineText",null);_.U([_.G("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jR.prototype,"watchFeedBigThumbs",null);
jR=_.U([_.T({is:"ytd-video-meta-block",disableElementRegistration:!0})],jR);
_.q(jR,"ytd-video-meta-block",function(){if(t0s!==void 0)return t0s;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return t0s=W},{mode:_.UC("kevlar_poly_si_batch_j080")?1:2});_.EJ("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var as8=function(){var W=_.R.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.m("web_modern_collections_v2");return W};
_.D(as8,_.R);_.Y=as8.prototype;_.Y.computeFirstVideos=function(W,k){return W===void 0||k===void 0?[]:W.slice(0,k)};
_.Y.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.Y.computeThumbnailHeight=function(W,k,C,n,N){return n?N==="BIG"?280:N==="MASSIVE"?337:234:C?240:k?72:W?118:138};
_.Y.computeThumbnailWidth=function(W,k,C,n,N){return n?N==="MEDIUM"?450:N==="BIG"?500:N==="MASSIVE"?600:420:C?360:k?128:W?210:246};
_.Y.computeUseBiggerThumbs=function(W){return W&&_.m("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelThumbnail=function(W,k){return W&&!(k==null||!k.channelThumbnail)};
_.oq.Object.defineProperties(as8.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var Hr=as8;Hr.prototype.dataChanged=Hr.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],Hr.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hr.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Hr.prototype,"displayItemCount",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hr.prototype,"isBackstagePlaylist",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hr.prototype,"isPostCompactPlaylist",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Hr.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.O("design:type",Boolean)],Hr.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],Hr.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Hr.prototype,"isDownloads",void 0);_.U([_.Z({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.O("design:type",Object)],Hr.prototype,"shouldShowChannelThumbnail",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hr.prototype,"useModernCollectionsV2",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hr.prototype,"dataChanged",null);_.U([_.G("isSearch"),_.O("design:type",String),_.O("design:paramtypes",[])],Hr.prototype,"stackThumbnailSize",null);Hr=_.U([_.T({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Hr);
_.q(Hr,"ytd-playlist-renderer",function(){if($WZ===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);$WZ=W}W=$WZ;return W},{mode:1});var XCs;var fsA;var rX=function(){var W=_.R.apply(this,arguments)||this;W.collections=!!_.m("web_modern_collections_v2");W.startX=0;return W};
_.D(rX,_.R);rX.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
rX.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
rX.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
rX.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.oq.Object.defineProperties(rX.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,k;return this.collections&&((W=this.data)==null?void 0:(k=W.searchRefinementCardRendererStyle)==null?void 0:k.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var gX=rX;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gX.prototype,"data",void 0);_.U([_.Z({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.O("design:type",Number)],gX.prototype,"objectFit",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.O("design:type",String)],gX.prototype,"cardStyle",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],gX.prototype,"roundContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],gX.prototype,"collections",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],gX.prototype,"isAlbumCard",null);_.U([_.G("data","collections","isAlbumCard"),_.O("design:type",Object),_.O("design:paramtypes",[])],gX.prototype,"collectionStack",null);
gX=_.U([_.T({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],gX);
_.q(gX,"ytd-search-refinement-card-renderer",function(){if(fsA!==void 0)return fsA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fsA=W},{mode:1});var dTb;var mTI=function(){var W=_.R.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.D(mTI,_.R);var Pr=mTI;_.U([_.Z(),_.O("design:type",Object)],Pr.prototype,"data",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Pr.prototype,"componentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Pr.prototype,"isRichGrid",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],Pr.prototype,"miniMode",void 0);
Pr=_.U([_.T({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Pr);
_.q(Pr,"ytd-game-details-renderer",function(){if(dTb!==void 0)return dTb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return dTb=W},{mode:1});var zpS;var DT2;var V08=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.D(V08,_.R);_.Y=V08.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(W){var k=W||this.data;return k&&k.states&&k.currentStateId!=null?k.states.find(function(C){return C.stateId===k.currentStateId})||null:null};
_.Y.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.Y.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())};
_.Y.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var k;return(W==null?0:(k=W.icon)==null?0:k.iconType)?W.icon.iconType.toLowerCase():null};
_.Y.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.Y.computeButtonClass=function(W){var k=this.currentStateRendererData(W);if(!k)return"";W="";var C=k.style;C&&(W+=C.toLowerCase().replace(/_/g,"-")+" ");(k=k.size)&&(W+=k.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.Y.computeServiceEndpoint=function(W){if(!W)return null;var k=W&&W.serviceEndpoint,C=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return k?k:C&&W.command?W.command:null};
_.Y.computeBellMenuItemParams=function(W){var k;W=(k=_.z(W==null?void 0:W.command,_.Nl))==null?void 0:k.commands;if(!W||W.length===0)return null;k=_.z(W[0],_.Eq);var C,n;return(k==null?0:(C=k.popup)==null?0:(n=C.menuPopupRenderer)==null?0:n.items)?k.popup.menuPopupRenderer.items.map(function(N){return N.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(W){var k=W.trackingParams,C=this.computeBellMenuItemParams(this.data);this.data&&k&&C&&C.includes(k)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.Y.onYtServiceRequestCompleted=function(W,k){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",k))&&this.set("data",W)};
_.Y.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.Y.resetState=function(){this.set("data.currentStateId",3)};
_.Y.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
var Ku=V08;Ku.prototype.onYtServiceRequestError=Ku.prototype.onYtServiceRequestError;Ku.prototype.onYtServiceRequestCompleted=Ku.prototype.onYtServiceRequestCompleted;Ku.prototype.stateChanged=Ku.prototype.stateChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ku.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(PR.YtRenderButtonBehavior),_.O("design:type",Object)],Ku.prototype,"ytRenderButtonBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ku.prototype,"data",void 0);_.U([_.Cq("data","data.currentStateId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ku.prototype,"stateChanged",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Ku.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ku.prototype,"onYtServiceRequestError",null);Ku=_.U([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Ku);
_.q(Ku,"ytd-subscription-notification-toggle-button-renderer",function(){if(DT2!==void 0)return DT2;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return DT2=W},{mode:1});var JHx;var cHY=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var k=W.currentStateRendererData();k&&W.ytRendererBehavior.logExplicitClick(k)}};
return W};
_.D(cHY,_.R);_.Y=cHY.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(k){return k.stateId===W.data.currentStateId})||null:null};
_.Y.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.Y.computeAccessibilityLabel=function(){var W,k,C;return(W=this.currentStateRendererData())==null?void 0:(k=W.accessibilityData)==null?void 0:(C=k.accessibilityData)==null?void 0:C.label};
_.Y.computeBellMenuItemParams=function(){var W,k,C=(k=_.z((W=this.data)==null?void 0:W.command,_.Nl))==null?void 0:k.commands;if(!C||C.length===0)return null;W=_.z(C[0],_.Eq);var n,N;return(W==null?0:(n=W.popup)==null?0:(N=n.menuPopupRenderer)==null?0:N.items)?W.popup.menuPopupRenderer.items.map(function(B){return B.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(W){var k=W.trackingParams,C=this.computeBellMenuItemParams();if(this.data&&k&&C&&C.includes(k)&&(W==null||!W.isDisabled)){var n;((n=_.z(W.serviceEndpoint,_.AQ))==null?void 0:n.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.Y.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.Y.onYtServiceRequestCompleted=function(W,k){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",k))this.icon=void 0,this.set("data",W)};
_.Y.onYtServiceRequestError=function(){this.icon=void 0};
_.oq.Object.defineProperties(cHY.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,k=this.textLabel,C=this.hostElement,n=this.computeAccessibilityLabel(),N=this.tapHandler,B=this.isOverlay?"overlay":"mono",A=(W==null?0:W.disableButton)?"disabled":"active";k=k?_.t7(k):void 0;return{style:B,type:"tonal",state:A,size:"M",focused:!1,formattedButtonText:k,iconPosition:"leading-trailing",onTap:EWw(W,N,C),accessibilityLabel:n}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),k,C,n=(C=this.icon)!=null?C:W==null?void 0:(k=W.icon)==null?void 0:k.iconType;if(n)return _.Hp(n)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.secondaryIcon)==null?void 0:k.iconType;if(C)return _.Hp(C)}}});
var hZ=cHY;hZ.prototype.onYtServiceRequestError=hZ.prototype.onYtServiceRequestError;hZ.prototype.onYtServiceRequestCompleted=hZ.prototype.onYtServiceRequestCompleted;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hZ.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],hZ.prototype,"textLabel",void 0);_.U([_.Z(),_.O("design:type",String)],hZ.prototype,"icon",void 0);_.U([_.Z(),_.O("design:type",Boolean)],hZ.prototype,"isOverlay",void 0);_.U([_.G("data.*","textLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],hZ.prototype,"computedButtonShape",null);_.U([_.G("data.*","icon"),_.O("design:type",Object),_.O("design:paramtypes",[])],hZ.prototype,"computedIcon",null);
_.U([_.G("data.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],hZ.prototype,"computedSecondaryIcon",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],hZ.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],hZ.prototype,"onYtServiceRequestError",null);
hZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],hZ);_.q(hZ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(JHx!==void 0)return JHx;var W=document.createElement("template");_.J(W,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return JHx=W},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var Isx;_.m("web_enable_sink_animated_actions")?_.Gj(HQA,"yt-animated-action",{props:{backgroundLottieRef:_.Ik,foregroundLottieRef:_.Ik,wrapperClass:_.Ik,disableAnimation:_.Ik},unsafeExternallySettableAttributes:new Set(["key"])}):_.qN(Hmm,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var Ss8=function(){var W=_.R.apply(this,arguments)||this;W.animatedActionEnabled=_.m("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.D(Ss8,_.R);_.Y=Ss8.prototype;_.Y.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.Y.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]]"}}}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onYtServiceRequestSent=function(W,k){(this.get("endpoint.subscribeEndpoint",k)||this.get("endpoint.unsubscribeEndpoint",k))&&this.updateSubscriptionState(!this.subscribed)};
_.Y.onYtServiceRequestCompleted=function(W,k){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",k.data))&&this.bellButton&&(this.bellButton.data=W)};
_.Y.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Op(this.hostElement)};
_.Y.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.Y.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.Y.handleUpdateSubscribeButtonAction=function(W){W=_.z(W,LH3);var k;W&&W.channelId===((k=this.data)==null?void 0:k.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.Y.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.Y.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.Y.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.Y.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var k,C=(k=this.data)==null?void 0:k.subscribedEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Nj("subscriptionStateEntity",C,{key:C,subscribed:W}));this.isCompactRed()||_.Pe(this.hostElement,"yt-subscription-changed",W);W||(_.KY(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.Y.startAnimation=function(){var W=this;if(!this.isAnimating){var k=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var C;(C=this.backgroundLottieRef.lottieEl)==null||C.goToAndPlay(0);var n;(n=this.foregroundLottieRef.lottieEl)==null||n.goToAndPlay(0);_.aM.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.aM.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.aM.addJob(function(){W.isAnimating=!1},2,k)}};
_.Y.maybeAnimateBellIcon=function(){var W=_.Ty(this.hostElement).querySelector("yt-animated-icon");if(W){var k;(k=W.animationRef.lottieEl)==null||k.goToAndPlay(0)}};
_.Y.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.Y.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.Y.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var k;this.subscribedWidth=(k=this.bellButton)==null?void 0:k.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.Y.updateContainerToFitContent=function(W,k){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,k=this.isAnimating&&!k,this.subscribedIconOnlyWidth===void 0||k||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.Y.clearContainerSize=function(){this.hostElement.style.width=""};
_.Y.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Y.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=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 k;W.subscribedIconOnlyWidth=(k=W.bellButton)==null?void 0:k.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var C;W.bellButton.textLabel=
(C=W.data)==null?void 0:C.subscribedButtonText}})})))};
_.oq.Object.defineProperties(Ss8.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var k;return this.forceIconOnly?void 0:(k=this.data)==null?void 0:k.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,k,C=((W=this.data)==null?void 0:(k=W.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"subscribe",timings:C,enabled:C.length>0&&!this.subscribed,experimentEnabled:C.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var k=W.renderer;var C=W.element;var n=W.subscribed;var N=W.commandController;var B=W.isOverlay;W=W.config;var A=dWc(k,n);B&&(A.style="overlay");B=Object;var w=B.assign,x;a:switch((x=k.style)==null?void 0:x.styleType){case "COMPACT_GRAY":case "COMPACT_RED":x={size:"S"};break a;default:x={size:"M"}}var E=fcI(k,n);var a=
(a=n?k.subscribedButtonText:k.unsubscribedButtonText)?_.t7(a):void 0;return w.call(B,{},A,x,{focused:!1,toggled:n,accessibilityLabel:E,formattedButtonText:a,onTap:XAc(k,W,n,C,N)})}}}});
var WZ=Ss8;WZ.prototype.onMouseDown=WZ.prototype.onMouseDown;WZ.prototype.onDataChanged=WZ.prototype.onDataChanged;WZ.prototype.observedSubscribed=WZ.prototype.observedSubscribed;WZ.prototype.onYtServiceRequestCompleted=WZ.prototype.onYtServiceRequestCompleted;WZ.prototype.onYtServiceRequestSent=WZ.prototype.onYtServiceRequestSent;WZ.prototype.maybeUpdateBellButtonText=WZ.prototype.maybeUpdateBellButtonText;
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],WZ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WZ.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.subscribedEntityKey"],selector:_.Ln}),_.O("design:type",Object)],WZ.prototype,"subscriptionStateEntity",void 0);_.U([_.Z({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.O("design:type",Boolean)],WZ.prototype,"subscribed",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],WZ.prototype,"branded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WZ.prototype,"animatedActionEnabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WZ.prototype,"foregroundLottieRef",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WZ.prototype,"backgroundLottieRef",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],WZ.prototype,"overlayButton",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.O("design:type",Object)],WZ.prototype,"buttonStyle",void 0);_.U([_.Z(),_.O("design:type",Object)],WZ.prototype,"forceIconOnly",void 0);_.U([_.Z(),_.O("design:type",Object)],WZ.prototype,"showTextWhileAnimating",void 0);_.U([_.Z({value:function(){return!!_.f().resolve(_.qI(_.Ay))&&_.m("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.O("design:type",Boolean)],WZ.prototype,"useKeyboardFocused",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WZ.prototype,"keyboardFocused",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WZ.prototype,"isAnimating",void 0);_.U([_.G("data.notificationPreferenceButton.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"hasBellButton",null);
_.U([_.Hl("subscribedButtonText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WZ.prototype,"maybeUpdateBellButtonText",null);_.U([_.G("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"subscribedButtonText",null);_.U([_.G("data.timedAnimationData.animationTiming","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"smartimationSettings",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"subscribeButtonHidden",null);_.U([_.Z({reflectToAttribute:!0}),_.G("subscribed","hasBellButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"subscribeButtonInvisible",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"unsubscribeButtonHidden",null);_.U([_.gi("ytd-subscription-notification-toggle-button-renderer-next"),_.O("design:type",Object)],WZ.prototype,"bellButton",void 0);_.U([_.gi("#subscribe-button-shape"),_.O("design:type",HTMLElement)],WZ.prototype,"subscribeButtonShape",void 0);
_.U([_.G("overlayButton","subscribed","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],WZ.prototype,"buttonShape",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],WZ.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],WZ.prototype,"onYtServiceRequestCompleted",null);
_.U([_.Hl("subscribed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WZ.prototype,"observedSubscribed",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WZ.prototype,"onDataChanged",null);_.U([_.jI("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],WZ.prototype,"onMouseDown",null);
WZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],WZ);
_.q(WZ,"ytd-subscribe-button-renderer",function(){if(Isx!==void 0)return Isx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Isx=W},{mode:1});var M0Z=function(){var W=_.R.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.D(M0Z,_.R);M0Z.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
var kA=M0Z;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kA.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kA.prototype,"isRichGrid",void 0);kA=_.U([_.T({is:"ytd-game-card-renderer",disableElementRegistration:!0})],kA);
_.q(kA,"ytd-game-card-renderer",function(){if(zpS!==void 0)return zpS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zpS=W},{mode:1});var Cc={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.m("defer_menus")&&!lJ2?0:void 0,waitForSignal:"eocs"};var Qj8;var pCz;var vFC=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.D(vFC,_.R);_.Y=vFC.prototype;_.Y.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.Y.onSeriesReminderStateEntityChange=function(){var W,k,C;((W=this.eventReminderStateEntity)==null?0:W.key)&&((k=this.seriesReminderStateEntity)==null?void 0:k.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((C=this.eventReminderStateEntity)==null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Nj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.Y.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.Y.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.Y.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.z(W,ejA)){var k,C=(k=this.data)==null?void 0:k.targetId;C&&W.targetId===C&&_.zM(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.Y.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var k;if(((k=this.eventReminderStateEntity)==null?void 0:k.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var C,n;if(((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((n=this.eventReminderStateEntity)==
null?void 0:n.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var N;return(N=this.data)==null?void 0:N.currentState};
_.Y.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var k="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";k="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";k="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var C;
((C=this.eventReminderStateEntity)==null?0:C.key)&&this.ytdReduxBehavior.dispatch(_.Nj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var n;((n=this.seriesReminderStateEntity)==null?0:n.key)&&this.ytdReduxBehavior.dispatch(_.Nj("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:k})))}};
_.oq.Object.defineProperties(vFC.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),k,C;if(W&&((k=this.data)==null?0:(C=k.states)==null?0:C.length))for(k=_.b(this.data.states),C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;if(((n=_.z(C,sr2))==null?void 0:n.state)===W)return _.z(C,sr2)}}}});
var nc=vFC;nc.prototype.onYtServiceRequestError=nc.prototype.onYtServiceRequestError;nc.prototype.onYtServiceRequestCompleted=nc.prototype.onYtServiceRequestCompleted;nc.prototype.onSeriesReminderStateEntityChange=nc.prototype.onSeriesReminderStateEntityChange;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],nc.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],nc.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nc.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:JXm}),_.O("design:type",Object)],nc.prototype,"eventReminderStateEntity",void 0);
_.U([_.Z({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,k){return _.hQ(W.entities,"sportsSeriesReminderStateEntity",k)}}),
_.O("design:type",Object)],nc.prototype,"seriesReminderStateEntity",void 0);_.U([_.G("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],nc.prototype,"currentButtonStateRenderer",null);_.U([_.Hl("seriesReminderStateEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nc.prototype,"onSeriesReminderStateEntityChange",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nc.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nc.prototype,"onYtServiceRequestError",null);nc=_.U([_.T({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],nc);
_.q(nc,"ytd-upcoming-event-reminder-button-renderer",function(){if(pCz!==void 0)return pCz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return pCz=W},{mode:1});var ep8;var sjs=function(){return _.R.apply(this,arguments)||this};
_.D(sjs,_.R);sjs.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.oq.Object.defineProperties(sjs.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(_.m("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var Ng=sjs;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ng.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ng.prototype,"shelfDismissal",void 0);
_.U([_.G("data.responseText"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ng.prototype,"text",null);_.U([_.G("data.responseText"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ng.prototype,"textAriaLabel",null);Ng=_.U([_.T({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Ng);
_.q(Ng,"ytd-notification-multi-action-renderer",function(){if(ep8!==void 0)return ep8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ep8=W},{mode:1});var GFI;var yHx=function(){return _.R.apply(this,arguments)||this};
_.D(yHx,_.R);yHx.prototype.ready=function(){var W=this;_.S(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
yHx.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
var YA=yHx;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YA.prototype,"data",void 0);YA=_.U([_.T({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],YA);
_.q(YA,"ytd-notification-text-renderer",function(){if(GFI!==void 0)return GFI;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return GFI=W},{mode:1});var $Tz;var ZpA=function(){var W=_.R.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.D(ZpA,_.R);_.Y=ZpA.prototype;_.Y.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.Y.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.showThumbnail=function(){var W=this;this.csn=_.VM();_.Iz("fmth");_.aM.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.oE(_.aM,function(){W.loadingStartTimeMs=(0,_.oX)();var k=_.S(W.hostElement).querySelector("#thumbnail");k.complete?W.displayMouseOverImage():k.addEventListener("load",_.LO(W,W.displayMouseOverImage))},150):_.qw(_.S(this.hostElement).querySelector("#play"),"show",!0)};
_.Y.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.Y.onTap=function(){this.removeVideoPreview()};
_.Y.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,k=this.csn,C=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,n=this.startTimeMs,N=this.hasVideoPreview,B=_.Yf(this.trackingParams),A={isMovingThumbnail:N};N&&n>0&&(C>0&&(A.movingThumbnailLoadingDurationMs=Math.round(C)),A.durationHoveredMs=Math.round((0,_.oX)()-n));W&&(A.videoId=W);_.Rz(k,B,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:A});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.Y.removeVideoPreview=function(){_.aM.cancelJob(this.mouseOverDelayJobId);_.aM.cancelJob(this.fadeInImageDelayJobId);var W=_.S(this.hostElement).querySelector("#thumbnail");_.qw(W,"fade-in",!1);W.removeEventListener("load",_.LO(this,this.displayMouseOverImage));W=_.S(this.hostElement).querySelector("#play");_.qw(W,"fade-in",!1);_.qw(W,"show",!1)};
_.Y.displayMouseOverImage=function(){var W=_.S(this.hostElement).querySelector("#thumbnail"),k=_.S(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.oX)(),this.startTimeMs=(0,_.oX)(),this.fadeInImageDelayJobId=_.oE(_.aM,function(){_.qw(W,"fade-in",!0)},50)):_.qw(k,"fade-in",!0)};
_.Y.computeThumbnail=function(W,k){var C;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&k?C=_.yI(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):C=k?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(C)return _.QG(C)};
_.Y.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
var xA=ZpA;xA.prototype.onTap=xA.prototype.onTap;xA.prototype.dataChanged=xA.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],xA.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xA.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],xA.prototype,"csn",void 0);
_.U([_.Z(),_.O("design:type",Object)],xA.prototype,"trackingParams",void 0);_.U([_.Z(),_.O("design:type",String)],xA.prototype,"videoId",void 0);_.U([_.Z(),_.O("design:type",Boolean)],xA.prototype,"isAttachedAndDataSet",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xA.prototype,"dataChanged",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xA.prototype,"onTap",null);
xA=_.U([_.T({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],xA);
_.q(xA,"ytd-moving-thumbnail-renderer",function(){if($Tz!==void 0)return $Tz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $Tz=W},{mode:1});var Rp8;_.YN=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.YN.prototype.shouldForward=function(){var W,k;return(k=(W=this.eventSink)==null?void 0:W.isConnected)!=null?k:document.body.contains(this.eventSink)};
_.YN.prototype.start=function(W,k){this.eventSink&&this.stop();for(var C=0;C<W.length;C++)this.hostElement.addEventListener(W[C],_.LO(this,this.forwardEvent));var n;this.eventSink=(n=k.hostElement)!=null?n:k;this.eventList=W};
_.YN.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.LO(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.YN.prototype.forwardEvent=function(W,k){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.Pe(this.eventSink,W.type,k):_.zJ(new _.AM("eventSink is not an element")))};_.l4={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.YN(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,k){this.forwarder_.start(W,k)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var oF8=function(){return _.R.apply(this,arguments)||this};
_.D(oF8,_.R);_.Y=oF8.prototype;_.Y.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=_.DE("HTML_DIR")==="rtl"?"right":"left"};
_.Y.dataChanged=function(){this.popupOpen=!1};
_.Y.computeAriaLabel=function(W){return _.z(W,CsI).label};
_.Y.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.f().resolve(_.uI).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var ta=oF8;ta.prototype.onPopupClosed=ta.prototype.onPopupClosed;ta.prototype.onPopupOpened=ta.prototype.onPopupOpened;ta.prototype.onTap=ta.prototype.onTap;ta.prototype.dataChanged=ta.prototype.dataChanged;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],ta.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.DI),_.O("design:type",Object)],ta.prototype,"ironButtonState",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ta.prototype,"componentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],ta.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:-1}),_.O("design:type",Number)],ta.prototype,"tabindex",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.O("design:type",Object)],ta.prototype,"ariaLabel",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],ta.prototype,"disableTooltips",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ta.prototype,"popupOpen",void 0);
_.U([_.Z(),_.O("design:type",Element)],ta.prototype,"eventSink",void 0);_.U([_.gi("#tooltip"),_.O("design:type",Object)],ta.prototype,"tooltip",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ta.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ta.prototype,"onTap",null);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ta.prototype,"onPopupOpened",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ta.prototype,"onPopupClosed",null);ta=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ta);
_.q(ta,"ytd-thumbnail-overlay-button-renderer",function(){if(Rp8!==void 0)return Rp8;var W=document.createElement("template");_.J(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Rp8=W},{mode:1});var ipx;var TNI=function(){return _.R.apply(this,arguments)||this};
_.D(TNI,_.R);var Em=TNI;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Em.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Em.prototype,"disableAnimation",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Em.prototype,"rounded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Em.prototype,"transparentBackground",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Em.prototype,"noPadding",void 0);Em=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Em);
_.q(Em,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(ipx!==void 0)return ipx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ipx=W},{mode:1});var qs8;var ac=function(){return _.R.apply(this,arguments)||this};
_.D(ac,_.R);ac.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
ac.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
ac.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var k;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((k=W.icon)==null?void 0:k.iconType)==="ERROR_BLACK"};
var Xy=ac;_.U([_.Z(),_.O("design:type",Object)],Xy.prototype,"data",void 0);_.U([_.Z({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Xy.prototype,"iconPosition",void 0);_.U([_.Z({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.O("design:type",Object)],Xy.prototype,"iconStyle",void 0);_.U([_.Z({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Xy.prototype,"iconStyleFilled",void 0);
Xy=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Xy);
_.q(Xy,"ytd-thumbnail-overlay-icon-renderer",function(){if(qs8!==void 0)return qs8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qs8=W},{mode:1});var uBS;var UTA=function(){return _.R.apply(this,arguments)||this};
_.D(UTA,_.R);var fc=UTA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fc.prototype,"data",void 0);fc=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],fc);
_.q(fc,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(uBS!==void 0)return uBS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return uBS=W},{mode:1});var OpS;var Los=function(){var W=_.R.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.D(Los,_.R);var dl=Los;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dl.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dl.prototype,"isPreviewLoading",void 0);dl=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],dl);
_.q(dl,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(OpS!==void 0)return OpS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return OpS=W},{mode:1});var jjb;var HpS=function(){return _.R.apply(this,arguments)||this};
_.D(HpS,_.R);var mA=HpS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mA.prototype,"data",void 0);mA=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],mA);
_.q(mA,"ytd-thumbnail-overlay-pinking-renderer",function(){if(jjb!==void 0)return jjb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jjb=W},{mode:1});var rHS;var gFZ=function(){var W=_.R.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.D(gFZ,_.R);_.Y=gFZ.prototype;_.Y.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");_.S(this.hostElement).querySelector("#tooltip").position=_.DE("HTML_DIR")==="rtl"?"right":"left"};
_.Y.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.aM.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.aM.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.aM.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.Y.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.aM.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.aM.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.aM.cancelJob(this.expandAnimationDelayJobId)};
_.Y.computeIcon=function(W,k,C){return(W=C?k:W)&&W.iconType?_.Hp(W.iconType):void 0};
_.Y.computeAriaLabel=function(W,k,C){return _.z(C?k:W,CsI).label};
_.Y.computeTooltip=function(W,k,C){return C?k:W};
_.Y.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.Y.computeIconOnHover=function(W,k){if((W==null?0:W.iconType)&&!k)return _.Hp(W.iconType)};
_.Y.onTap=function(W){var k=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.oE(_.aM,function(){k.hovered=!1;k.data&&!k.data.toggledServiceEndpoint&&(k.expandAnimationDelayJobId=_.oE(_.aM,function(){k.set("data.isToggled",
!1)},200))},2E3))};
_.Y.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.oE(_.aM,function(){W.hovered=!0},300)};
_.Y.onMouseleave=function(){_.aM.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.Y.onServiceRequestCompleted=function(W,k){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(k)||this.set("data.isToggled",!this.data.isToggled)};
_.Y.serviceRequestWasSuccessful=function(W){return _.z(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.mB)?W.data.status==="STATUS_SUCCEEDED":!0};
var zk=gFZ;zk.prototype.onServiceRequestCompleted=zk.prototype.onServiceRequestCompleted;zk.prototype.onPopupClosed=zk.prototype.onPopupClosed;zk.prototype.onPopupOpened=zk.prototype.onPopupOpened;zk.prototype.onMouseleave=zk.prototype.onMouseleave;zk.prototype.dataChanged=zk.prototype.dataChanged;_.U([_.v(_.DI),_.O("design:type",Object)],zk.prototype,"ironButtonState",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],zk.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],zk.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zk.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.O("design:type",Object)],zk.prototype,"ariaLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],zk.prototype,"disableTooltips",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],zk.prototype,"popupOpen",void 0);_.U([_.Z(),_.O("design:type",Object)],zk.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Element)],zk.prototype,"eventSink",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],zk.prototype,"useExpandableTooltip",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.O("design:type",Object)],zk.prototype,"toggled",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],zk.prototype,"hovered",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.O("design:type",Object)],zk.prototype,"iconOnHover",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zk.prototype,"dataChanged",null);
_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zk.prototype,"onMouseleave",null);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zk.prototype,"onPopupOpened",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zk.prototype,"onPopupClosed",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],zk.prototype,"onServiceRequestCompleted",null);zk=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],zk);
_.q(zk,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(rHS!==void 0)return rHS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return rHS=W},{mode:_.UC("kevlar_poly_si_batch_j053")?1:2});var PhY;var Ko8=_.GM(function(W){var k=W.data;var C=function(){return k().enableSegmentView};
return _.t("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.t(_.NI,{cond:C,then:function(){return _.t("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.t("div",{class:_.Hj("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+k().startPercent+"%"}}),_.t("div",{class:_.Hj("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+k().segmentDurationPercent+"%"}},_.t("div",{class:_.Hj("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.t("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.t("div",null," ",function(){return k().segmentLabel})),_.t("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.t("div",{class:_.Hj("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.t(_.NI,{cond:function(){return!C()&&k().startPercent},
then:function(){var n={};return _.t("div",{class:_.Hj("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(n.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.m("web_enable_modern_progress_bar_overlay"),n))},_.t("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+k().startPercent+"%"}}))}}))},"K");
Ko8.idomCompat=!0;var hps=_.GM(function(W){var k=_.rE(),C=_.X8(function(N){var B,A,w;a:{var x=(B=W.data())==null?void 0:B.animationActivationTargetId;B=((A=W.data())==null?void 0:A.animationActivationEntityKey)||"";A=(w=W.data())==null?void 0:w.animationActivationEntitySelectorType;if(B&&x)switch(A){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":N=_.hQ(N.entities,"playerStateEntity",B);w=_.f().resolve(_.qI(_.eq));x=!!(N&&N.videoId===x&&(w==null?0:w.isMiniplayerActive()));x={activated:x,playAnimation:x&&
N.playerState==="PLAYER_STATE_PLAYING"};break a}x=void 0}return x});
_.XM(function(){var N;if((N=C())==null?0:N.activated){var B;if((B=C())==null?0:B.playAnimation){var A;(A=k.lottieEl)==null||A.goToAndPlay(0)}else{var w;(w=k.lottieEl)==null||w.goToAndStop(0)}}});
var n=function(){var N,B=!((N=C())==null||!N.activated);if(W.data()){N=W.data();var A=void 0;N.icon&&(A=lK3(N.icon),A=mpP(A));var w=void 0,x;if((x=N.backgroundColor)==null?0:x.lightTheme){var E;w={backgroundColor:fO((E=N.backgroundColor)==null?void 0:E.lightTheme,"0.8")}}if(N.text||A||B){if(B&&N.lottieData&&k){E=N.lottieData;var a,X,d;x={animationConfig:{name:E.url,path:E.url,autoplay:(a=E.settings)==null?void 0:a.autoplay,loop:(d=(X=E.settings)==null?void 0:X.loop)!=null?d:!0},animationRef:k}}else x=
void 0;if(B)a=16;else b:switch(N.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":a=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":a=18;break b;default:a=16}B={type:a,text:B&&N.animatedText?N.animatedText:N.text,icon:A,customColors:w,animation:x}}else B=void 0}else B=void 0;return B};
return _.t("yt-thumbnail-badge-view-model",{class:_.Li("yt-thumbnail-badge-view-model-wiz",W.class)},_.t(_.NI,{cond:n,then:function(){return _.t(_.qj,{data:function(){return n()}})}}))},"L");var WCZ=_.GM(function(W){var k={};return _.t("yt-thumbnail-bottom-overlay-view-model",{class:_.Li("ytThumbnailBottomOverlayViewModelHost",(k.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},k))},_.t("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.t(_.Ex,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:Ko8}),_.t(_.Ex,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(C){return _.t(hps,
{data:C.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.t(_.Ex,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(C){return _.t(hps,{data:C.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
WCZ.idomCompat=!0;_.Gj(WCZ,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.si}});var Q6m={calledOnce:!1,state:"visible"},pAI={calledOnce:!1,state:"hidden"};_.UK(s6z);var kVs=_.GM(function(W){var k=W.data;var C=W.className;W=W.alwaysShow;var n=_.yE();_.pX(n,function(){return k().rendererContext});
var N=_.zhK(),B={};return _.t("thumbnail-hover-overlay-view-model",{el:n,class:_.Li("ytThumbnailHoverOverlayViewModelHost",C,(B.ytThumbnailHoverOverlayViewModelHostForceHover=W,B)),"aria-label":function(){var A;return(A=_.z(k().rendererContext,_.vB))==null?void 0:A.label},
role:function(){return _.SH(k().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.SH(k().rendererContext)!==void 0?0:void 0},
"on:keypress":N},_.t("div",{class:_.Li("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(k().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var A="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:A="ytThumbnailHoverOverlayViewModelStyleCover"}return A})},_.t(_.NI,{cond:function(){return k().icon},
then:function(A){return _.t(_.pi,{data:A,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.t(_.NI,{cond:function(){return k().text},
then:function(A){return _.t(_.Ya,{text:A,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),CJS=_.m("web_enable_sink_lockups_batch")?kVs:s6z,nGs=_.m("web_enable_sink_lockups_batch")?kVs:_.ry(s6z);
kVs.idomCompat=!0;var sx=_.GM(function(W){var k=W.data;return _.t(_.Ex,{data:function(){return k==null?void 0:k().overlays}},{thumbnailHoverOverlayViewModel:nGs})},"O");
sx.idomCompat=!0;var NfS={};var eH=_.GM(function(W){var k=W.data;var C=W.image;var n=W.state;var N=W.iconType;var B=W.overlays;var A=W.isOverlay;var w=_.$I();W=_.b(_.kw(!0,void 0,"xOB8yb"));var x=W.next().value,E=W.next().value,a=_.pq(N,"LIVE");_.Ee(function(){requestAnimationFrame(function(){var d=k().size;var V=k().badgeText;if(w.value===null)V=!0;else{var c=Gsp(d);V in NfS?d=NfS[V]:(d=w.value.clientWidth,NfS[V]=d);(V=d>c)?w.value.style.display="none":w.value.style.visibility="visible"}E(V)})});
var X=function(){var d={};return d["yt-spec-avatar-shape__image"]=!0,d["yt-spec-avatar-shape__image--ads-app"]=k().type===1,d};
N=_.Pj(function(d){var V,c;return void((c=(V=k()).onTap)==null?void 0:c.call(V,d))});
return _.t("yt-avatar-shape",null,_.t("div",{class:function(){var d={};d=(d["yt-spec-avatar-shape"]=!0,d["yt-spec-avatar-shape__button"]=!0,d[$WX(k().size)]=!0,d["yt-spec-avatar-shape__button--tappable"]=!!k().onTap,d);var V=k().avatarButtonCustomClassName;V&&(d[V]=!0);return _.Hj(d)},
"on:click":N,"on:keydown":_.cB(),"aria-label":function(){return k().onTap?k().accessibilityText:""},
role:function(){return k().onTap?"button":void 0},
tabindex:function(){return k().onTap?0:void 0}},_.t("div",{class:function(){var d,V=k(),c=n==null?void 0:n(),M=A==null?void 0:A(),p=!((d=V.decorations)==null||!d.includes(2)||V.size!=="medium"&&V.size!=="large"),e=V.size==="tiny"||V.size==="extra-small",u,h,L,Bw,P={};
d=(P["yt-spec-avatar-shape--live-ring"]=!!(((u=V.decorations)==null?0:u.includes(0))&&Rhc(V.size)),P["yt-spec-avatar-shape--stories-watched"]=p&&!(c==null||!c.storiesWatched),P["yt-spec-avatar-shape--stories-unwatched"]=p&&!(c==null?0:c.storiesWatched),P["yt-spec-avatar-shape--background-border"]=oWz(V.decorations)&&!e,P["yt-spec-avatar-shape--background-border-thin"]=oWz(V.decorations)&&e,P["yt-spec-avatar-shape__on-select-border"]=!((h=V.decorations)==null||!h.includes(4)),P["yt-spec-avatar-shape__white-border"]=
!((L=V.decorations)==null||!L.includes(5)),P["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Bw=V.decorations)==null?0:Bw.includes(5))&&e),P["yt-spec-avatar-shape--is-overlay"]=!!M,P);return _.Hj(d)}},_.t("div",{class:function(){var d={};
d=(d[yJm(k().size)]=!0,d["yt-spec-avatar-shape--no-margin"]=oWz(k().decorations),d);return _.Hj(d)}},_.t(_.pi,{data:C,
alt:function(){return!k().onTap&&k().accessibilityText?k().accessibilityText:""},
targetWidth:function(){return Zf2(k().size)},
targetHeight:function(){return Zf2(k().size)},
className:function(){return _.Hj(X())}}),_.t(_.NI,{cond:function(){var d;
return((d=k().decorations)==null?void 0:d.includes(0))&&Rhc(k().size)},
then:function(){return _.t("div",{class:function(){var d={};d=(d["yt-spec-avatar-shape__live-badge"]=!0,d["yt-spec-avatar-shape__live-badge--badge-small"]=k().size==="small",d["yt-spec-avatar-shape__live-badge--badge-medium"]=k().size==="medium"||k().size==="48",d["yt-spec-avatar-shape__live-badge--badge-large"]=k().size==="large",d["yt-spec-avatar-shape__live-badge--badge-extra-large"]=k().size==="extra-large"||k().size==="extra-extra-large"||k().size==="giant",d);return _.Hj(d)}},_.t(_.NI,{cond:function(){return k().badgeText},
then:function(d){return _.t("div",{class:"yt-spec-avatar-shape__badge-text",el:w},d)}}),_.t(_.NI,{cond:x,
then:function(){return _.t("div",{class:"yt-spec-avatar-shape__badge-icon"},_.t(_.ka,{icon:a,size:function(){a:switch(k().size){case "extra-large":var d=16;break a;default:d=13}return d}}))}}))}}),_.t(_.NI,{cond:function(){var d,V;
return((d=k().decorations)==null?void 0:d.includes(1))||((V=k().decorations)==null?void 0:V.includes(0))&&!Rhc(k().size)},
then:function(){return _.t("div",{class:function(){var d=k(),V,c,M={};var p=(M["yt-spec-avatar-shape__live-dot"]=!((V=d.decorations)==null||!V.includes(0)||Rhc(d.size)),M["yt-spec-avatar-shape__new-content"]=!((c=d.decorations)==null||!c.includes(1)),M);return _.Hj(p)}})}}),_.Tb(B,function(){return _.t("div",{class:function(){var d={};
d=Object.assign((d["yt-spec-avatar-shape__image-overlays"]=!0,d),X());return _.Hj(d)}},B==null?void 0:B())})))))},"P");
eH.idomCompat={callbacks:{overlays:!0}};var Y82=_.GM(function(W){function k(){C().endpoint&&_.zj(C().endpoint)}
var C=W.data;var n=W.decorations;var N=W.avatarButtonCustomClassName;var B=W.isOverlay;return _.t("avatar-view-model",null,_.t(_.NI,{cond:function(){return C().image},
then:function(A){return _.t(eH,{data:function(){return TYK({data:C(),onTap:C().endpoint?k:void 0,decorations:n==null?void 0:n(),badgeText:void 0,accessibilityText:C().accessibilityText,avatarButtonCustomClassName:N==null?void 0:N()})},
image:A,iconType:"RADAR_LIVE",overlays:function(){return _.t(sx,{data:C})},
isOverlay:B})}}))},"Q");
Y82.idomCompat=!0;_.m4=_.m("mweb_enable_sink_avatar_view_model")||_.m("web_enable_sink_avatars_batch")?Y82:q_z;_.D_=_.m("mweb_enable_sink_avatar_view_model")||_.m("web_enable_sink_avatars_batch")?Y82:_.ry(_.m4);_.UK(q_z);_.UK(L6c);var Bf2,b92;Bf2=_.GM(function(W){var k=W.data;W=W.className;var C=_.$I(),n=function(){return _.z(k().avatar,_.Gn)},N=_.BH(function(){var B,A=k(),w=n(),x=_.SH(k().rendererContext),E=(B=C.value)!=null?B:void 0;
return w?UWm({data:A,avatar:w,onTap:x,element:E}):{size:"medium"}},void 0,"v09a6");
return _.t("yt-decorated-avatar-view-model",{class:_.Li("yt-decorated-avatar-view-model-wiz",W),el:C},_.t(_.NI,{cond:function(){var B;return(B=n())==null?void 0:B.image},
then:function(B){return _.t(eH,{data:N,image:B,iconType:"RADAR_LIVE",overlays:function(){return _.t(sx,{data:n})}})}}))},"R");
b92=_.m("web_enable_sink_avatars_batch")?Bf2:L6c;_.VO=_.m("web_enable_sink_avatars_batch")?Bf2:_.ry(L6c);Bf2.idomCompat=!0;var gWI=_.w7({avatarViewModel:_.m4,decoratedAvatarViewModel:b92});_.UK(P9p);var AOC;AOC=_.GM(function(W){var k=_.yE(),C=function(){return k&&_.Mj(W.data().rendererContext)};
_.pX(k,function(){return W.data().rendererContext});
var n=function(){var B=W.data().avatars,A,w;return(w=(A=(B==null?0:B[0])?_.z(B[0],_.Gn):void 0)==null?void 0:A.avatarImageSize)!=null?w:"AVATAR_SIZE_UNKNOWN"},N={};
return _.t("yt-avatar-stack-view-model",{el:k,class:_.Li("yt-avatar-stack-view-model-wiz",W.className,(N["yt-avatar-stack-view-model-wiz--tappable"]=C,N["yt-avatar-stack-view-model-wiz--is-overlay"]=W.isOverlay,N["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,N)),tabindex:function(){return C()?0:void 0},
role:function(){return C()?"link":void 0},
"aria-label":function(){var B,A;return(A=(B=_.z(W.data().rendererContext,_.vB))==null?void 0:B.label)!=null?A:""}},_.t(_.NI,{cond:function(){var B;
return W.data().avatars&&!((B=W.hideAvatar)==null?0:B.call(W))},
then:function(){return _.t("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.t(_.NI,{cond:function(){return W.data().decoratedText},
then:function(B){var A={};return _.t("div",{class:_.Li("yt-avatar-stack-view-model-wiz__text-container",(A["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS"},A["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var w;
return((w=W.isOverlay)==null?void 0:w.call(W))&&(n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS")},A)),
style:_.WJ({width:function(){return K6m(n())+"px"},
height:function(){return K6m(n())+"px"}})},_.t(_.Ya,{text:B,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.t(_.Ex,{data:function(){return W.data().avatars.slice().reverse()}},{avatarViewModel:function(B){return _.t("div",{class:function(){return hh4(n())}},_.t(_.D_,{data:B.data,
decorations:function(){var A;if((A=W.decorations)==null?0:A.call(W))A=W.decorations();else{A=W.data();var w=0;A.avatars&&(w+=A.avatars.length);A.decoratedText&&(w+=1);A=w>1?[3]:[]}return A},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:W.isOverlay}))},
decoratedAvatarViewModel:function(B){return _.t("div",{class:function(){return hh4(n())}},_.t(_.VO,{data:B.data}))}}))}}),_.t(_.NI,{cond:function(){return W.data().text},
then:function(B){return _.t(_.Ya,{text:B,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.FCS=_.m("web_enable_sink_avatars_batch")?AOC:P9p;_.Ja=_.m("web_enable_sink_avatars_batch")?AOC:_.ry(P9p);AOC.idomCompat=!0;_.Gj(_.GM(function(W){var k=W.data;var C=W.thumbnailSize;return _.t("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.t("div",{class:_.Li("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Wom(C==null?void 0:C())})},_.t(_.Ex,{data:function(){return k().avatarStack}},{avatarStackViewModel:function(n){return _.t(_.Ja,{data:n.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Ik,
thumbnailSize:_.Ik}});_.UK(kF2);var wUC=_.GM(function(W){W=_.vp(W,{hidden:!1});var k=W.data;return _.t("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden},_.t(_.Ya,{text:function(){return k().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(){return _.t(_.Ya,{text:function(){return k().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),x8Y=_.m("web_enable_sink_lockups_batch")?wUC:kF2,loY=_.m("web_enable_sink_lockups_batch")?wUC:_.ry(kF2);
wUC.idomCompat=!0;_.m("web_enable_sink_lockups_batch")?_.Gj(loY,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Ik,hidden:_.Ik}}):_.qN(x8Y,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var tb8=_.GM(function(W){W=_.vp(W,{isClip:!1});var k=W.data,C=W.thumbnailSize,n={};return _.t("yt-thumbnail-overlay-badge-view-model",{class:_.Li("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(k().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var N="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:N="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return N},function(){return ChX(C==null?void 0:C())},(n["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
W.isClip,n))},_.t(_.Ex,{data:function(){return k().thumbnailBadges}},{thumbnailBadgeViewModel:function(N){return _.t(hps,{data:N.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
tb8.idomCompat=!0;_.Gj(tb8,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Ik,thumbnailSize:_.Ik,isClip:_.Ik}});_.UK(nFm);_.qN(nFm,"yt-page-indicator-view-model",{propNames:["data"]});var EGI=function(){var W=_.R.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.D(EGI,_.R);_.Y=EGI.prototype;
_.Y.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:_.m("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"}}};
_.Y.onImageLoaded=function(){this.loaded=!0};
_.Y.onImageUnloaded=function(){this.loaded=!1};
_.Y.computeRichThumbnail=function(W,k,C,n){if(W&&k&&!n&&!_.m("disable_moving_thumbs_handling")&&!C)return k};
_.Y.computeImageWidth=function(W,k){return k||9999};
_.Y.computeIsOriginalAspectRatio=function(W){return W};
_.Y.computeIsLive=function(W){if(W==null?0:W.badges)for(var k=0;k<W.badges.length;k++){var C=W.badges[k];if(C.metadataBadgeRenderer&&C.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(k=0;k<W.thumbnailOverlays.length;k++)if(C=W.thumbnailOverlays[k],C.thumbnailOverlayTimeStatusRenderer&&C.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.Y.computeObjectFit=function(W,k){return k||(W?"CONTAIN":"")};
_.Y.computeNavigationEndpoint=function(W,k,C){return W?k:C};
_.Y.computeHasClip=function(W){W=_.b(W||[]);for(var k=W.next();!k.done;k=W.next())if(k.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.Y.computeOverlayColor=function(W){var k;return(W==null?0:(k=W.darkColorPalette)==null?0:k.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.oq.Object.defineProperties(EGI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Gf(this.width)}}});
var cZ=EGI;cZ.prototype.onImageUnloaded=cZ.prototype.onImageUnloaded;cZ.prototype.onImageLoaded=cZ.prototype.onImageLoaded;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],cZ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(u98),_.O("design:type",Object)],cZ.prototype,"ytdThumbnailBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],cZ.prototype,"componentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],cZ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cZ.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],cZ.prototype,"circular",void 0);
_.U([_.Z({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.O("design:type",Object)],cZ.prototype,"richThumbnail",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.O("design:type",Boolean)],cZ.prototype,"hasClip",void 0);_.U([_.Z(),_.O("design:type",Object)],cZ.prototype,"eventSink",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],cZ.prototype,"queued",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],cZ.prototype,"richGridThumbnail",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],cZ.prototype,"useExpandableTooltip",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],cZ.prototype,"useUntranslatedNavigationEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cZ.prototype,"disableInteraction",void 0);
_.U([_.Z({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.O("design:type",Object)],cZ.prototype,"computedNavigationEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],cZ.prototype,"nowPlayingEqualizerOnly",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],cZ.prototype,"hidePlaybackStatus",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],cZ.prototype,"objectFit",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cZ.prototype,"noRoundedCorners",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],cZ.prototype,"watchFeedThumbnail",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cZ.prototype,"isPreviewLoading",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.O("design:type",Object)],cZ.prototype,"isOriginalAspectRatio",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.O("design:type",Object)],cZ.prototype,"computedObjectFit",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.O("design:type",Boolean)],cZ.prototype,"isLiveVideo",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],cZ.prototype,"loaded",void 0);_.U([_.Z({computed:"computeOverlayColor(data.thumbnail)"}),_.O("design:type",Object)],cZ.prototype,"overlayColor",void 0);_.U([_.Z({selector:_.srz}),_.O("design:type",Boolean)],cZ.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.Z(),_.O("design:type",Number)],cZ.prototype,"width",void 0);
_.U([_.G("inlinePreviewIsEnabled"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],cZ.prototype,"isPreviewDisabled",null);_.U([_.G("width"),_.O("design:type",String),_.O("design:paramtypes",[])],cZ.prototype,"thumbnailSize",null);_.U([_.jI("image-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cZ.prototype,"onImageLoaded",null);
_.U([_.jI("image-unloaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cZ.prototype,"onImageUnloaded",null);cZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-thumbnail"})],cZ);
var ao8=_.u0()(cZ,"ytd-thumbnail",function(){if(PhY===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);PhY=W}W=PhY;return W},{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 bpc=function(W){var k=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12649_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12649_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(C){XUs(k,C)};
this.onLockupMouseLeaveFn=function(C){C=C.relatedTarget;var n,N;((n=document.getElementsByTagName("ytd-video-preview"))==null?0:(N=n.item(0))==null?0:N.contains(C))||(k.terminateVideoPreview(),Ic(k))};
this.onThumbnailMouseDownFn=function(){k.terminateVideoPreview();Ic(k)};
this.onTouchStart=function(){k.JSC$12649_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;foS(this);SA(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)):
_.zJ(Error("Ch")):_.zJ(Error("Dh")):d8S(this)},PB=function(W){d8S(W);
var k;(k=W.lockupElement)==null||k.removeEventListener("mouseenter",W.onMouseMoveFn);var C;(C=W.lockupElement)==null||C.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var n;(n=W.lockupElement)==null||n.removeEventListener("touchstart",W.onTouchStart);var N;(N=W.thumbnailElement)==null||N.removeEventListener("mousedown",W.onThumbnailMouseDownFn);Ic(W)},foS=function(W){W.inlinePreviewIsEnabledForUser=_.ZF().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.nE(_.ZF(),_.srz,function(k){(W.inlinePreviewIsEnabledForUser=k)||Ic(W)});
W.JSC$12649_unsubscribeFromInlinePreviewIsActive=_.nE(_.ZF(),_.ej2,function(k){(W.inlinePreviewIsActive=k)||Ic(W)})},d8S=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$12649_unsubscribeFromInlinePreviewIsActive();W.JSC$12649_unsubscribeFromInlinePreviewIsActive=function(){}},XUs=function(W,k){k.buttons>0||(k=_.Oe("kevlar_lockup_hover_delay",-1),W.JSC$12649_touched&&k>=0?(_.aM.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.oE(_.aM,function(){m8A(W)},k),W.JSC$12649_touched=!1):m8A(W))},ziI=function(W){W.videoPreviewJobId=_.oE(_.aM,function(){var k,C,n,N;
return _.F(function(B){if(B.nextAddress==1){if(!SA(W))return B.return();k=W.getVideoPreviewOpts();return k?(n=(C=_.hA(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[k]))&&C[0])?_.l(B,C[0],3):B.jumpTo(2):B.return()}B.nextAddress!=2&&(n=B.yieldResult===1);n&&Ysc((N=W.mediaRenderer)==null?void 0:N.data);_.ab(B)})},2E3)},m8A=function(W){!W.previewTriggered&&SA(W)&&(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=!0,_.aM.cancelJob(W.videoPreviewJobId),
W.videoPreviewJobId=_.oE(_.aM,function(){var k,C,n,N;
return _.F(function(B){if(B.nextAddress==1){if(!SA(W))return B.return();k=W.getVideoPreviewOpts();return k?(n=(C=_.hA(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[k]))&&C[0])?_.l(B,C[0],3):B.jumpTo(2):B.return()}B.nextAddress!=2&&(n=B.yieldResult===1);n&&Ysc((N=W.mediaRenderer)==null?void 0:N.data);_.ab(B)})}))};
bpc.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,k;if((k=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=k;else if(W=this.mediaRenderer.data)if(NN2(W))W={inlinePlaybackEndpoint:_.fi(W.inlinePlayerData.onVisible),navigationEndpoint:_.fi(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:BN4(W)};else if("multipleInlinePlaybackEndpoint"in W){var C=_.z(_.z(W.multipleInlinePlaybackEndpoint,Wfs),k$z);if(C!=
null&&C.playerDescriptors){k=[];C=_.b(C.playerDescriptors);for(var n=C.next();!n.done;n=C.next())n=n.value,k.push({inlinePlaybackEndpoint:n.inlinePlaybackEndpoint,navigationEndpoint:n.navigationEndpoint,thumbnail:n.thumbnail,thumbnailOverlays:n.thumbnailOverlays,accessibilityText:BN4(W)});W=k}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:BN4(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var SA=function(W){var k;if(k=W.inlinePreviewIsEnabledForUser)k=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||NN2(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return k};
bpc.prototype.terminateVideoPreview=function(){_.KY(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Ic=function(W){_.aM.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var D82=_.iH(["#"]),Vbs=function(){var W=_.R.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.D(Vbs,_.R);_.Y=Vbs.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":Cc,"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"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.getMetadata=function(W){var k=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var C=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(C=_.Di(C,Number(W.upcomingEventData.startTime)));k.push(C)}else W.shortViewCountText&&k.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&k.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(C=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),k.push(_.Di(C,Number(W.upcomingEventData.startTime))));return k};
_.Y.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.Y.calculateIsDisabled=function(W){return!!W.isDisabled};
_.Y.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.eN(D82)};
_.Y.onDetailsTap=function(W){var k=this.data&&this.data.navigationEndpoint;k&&!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.m("kevlar_grid_video_renderer_killswitch")?_.Pe(this.hostElement,"yt-navigate",{endpoint:k}):this.ytComponentBehavior.resolveCommand(k))};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12653_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:_.S(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.S(this.hostElement).querySelector("ytd-thumbnail")})};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12653_inlinePreviewHoverListener)==null||PB(W)};
_.Y.computeThumbnailWidth=function(W,k){return k&&k>0?k:W?360:210};
_.Y.computeShowChannelThumbnail=function(W,k){var C;return k&&!!(W==null?0:(C=W.channelThumbnailSupportedRenderers)==null?0:C.channelThumbnailWithLinkRenderer)};
_.oq.Object.defineProperties(Vbs.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12653_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var Mg=Vbs;Mg.prototype.dataChanged=Mg.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Mg.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.MC),_.O("design:type",Object)],Mg.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Mg.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Mg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Mg.prototype,"noEndpoints",void 0);_.U([_.Z({computed:"calculateBylineText(data)"}),_.O("design:type",Object)],Mg.prototype,"bylineText",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Mg.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Mg.prototype,"isDownloading",void 0);_.U([_.Z({reflectToAttribute:!0,value:0}),_.O("design:type",Number)],Mg.prototype,"width",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.O("design:type",Object)],Mg.prototype,"isDisabled",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mg.prototype,"dataChanged",null);_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mg.prototype,"isHovered",null);Mg=_.U([_.T({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Mg);
_.q(Mg,"ytd-grid-video-renderer",function(){if(Qj8!==void 0)return Qj8;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Qj8=W},{mode:_.UC("kevlar_poly_si_batch_j047")?1:2});var JOA;var QO=function(){var W=_.R.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.m("enable_desktop_amsterdam_info_panels");return W};
_.D(QO,_.R);QO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
QO.prototype.onClick=function(W){var k,C=(k=this.data)==null?void 0:k.sourceEndpoint;!_.er(_.vl(W),this.hostElement,["A".toString()])&&C&&_.Pe(this.hostElement,"yt-navigate",{endpoint:C})};
_.oq.Object.defineProperties(QO.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?k:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var pc=QO;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pc.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pc.prototype,"showVerticalDividers",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pc.prototype,"roundedContainer",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pc.prototype,"skipRoundingTop",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pc.prototype,"disableTopPadding",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],pc.prototype,"amsterdamEnabled",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],pc.prototype,"showMetadataAtTop",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],pc.prototype,"showMetadataBelowTitle",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],pc.prototype,"hasMenu",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.truncateParagraphs"),_.O("design:type",Object),_.O("design:paramtypes",[])],pc.prototype,"truncateParagraphs",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.paragraphMaxLines"),_.O("design:type",Number),_.O("design:paramtypes",[])],pc.prototype,"paragraphMaxLines",null);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.O("design:type",Object),_.O("design:paramtypes",[])],pc.prototype,"background",null);pc=_.U([_.T({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],pc);
_.q(pc,"ytd-info-panel-content-renderer",function(){if(JOA!==void 0)return JOA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return JOA=W},{mode:_.UC("kevlar_poly_si_batch_j076")?1:2});var cOA;var Ioz;var S8S;var Mb8;var Q2S=function(){return _.R.apply(this,arguments)||this};
_.D(Q2S,_.R);Q2S.prototype.computeStyle=function(W){return W};
var vZ=Q2S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vZ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],vZ.prototype,"style_",void 0);vZ=_.U([_.l0({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],vZ);
_.q(vZ,"yt-channel-thumbnail-with-link-renderer",function(){if(Mb8===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;S8S===void 0&&(S8S=document.createElement("template"));var n=S8S;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Mb8=W}W=Mb8;return W},{mode:2});var eA=function(){var W=_.R.apply(this,arguments)||this;W.modernTypography=_.m("web_modern_typography");return W};
_.D(eA,_.R);eA.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"}}}};
eA.prototype.computeTitleStyle=function(W){return W||null};
eA.prototype.computeAvatarStyle=function(W){return W||null};
eA.prototype.computeShowNavigationButton=function(W,k){return!(W==null||!W.navigationButton||k)};
var sm=eA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sm.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.O("design:type",String)],sm.prototype,"titleStyle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.O("design:type",String)],sm.prototype,"avatarStyle",void 0);_.U([_.Z(),_.O("design:type",Boolean)],sm.prototype,"hideNavigationButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sm.prototype,"isModernSd",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sm.prototype,"modernTypography",void 0);
sm=_.U([_.T({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],sm);
_.q(sm,"ytd-rich-list-header-renderer",function(){if(Ioz!==void 0)return Ioz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ioz=W},{mode:_.UC("kevlar_poly_si_batch_j058")?1:2});var pUY=function(){return _.R.apply(this,arguments)||this};
_.D(pUY,_.R);pUY.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
var Gk=pUY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Gk.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Gk.prototype,"isSearch",void 0);Gk=_.U([_.T({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Gk);
_.q(Gk,"ytd-preview-card-renderer",function(){if(cOA!==void 0)return cOA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return cOA=W},{mode:1});var vG8;var yO=function(){return _.R.apply(this,arguments)||this};
_.D(yO,_.R);yO.prototype.configureRendererStamper=function(){return{"data.menu":Cc}};
yO.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.a8(W);_.Op(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
yO.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
var $A=yO;$A.prototype.dataChanged=$A.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],$A.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$A.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.O("design:type",String)],$A.prototype,"cardStyle",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$A.prototype,"dataChanged",null);$A=_.U([_.T({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],$A);
_.q($A,"ytd-compact-channel-recommendation-card-renderer",function(){if(vG8!==void 0)return vG8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return vG8=W},{mode:1});var eiA;var s2A;var GVS=function(){var W=_.R.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.D(GVS,_.R);_.Y=GVS.prototype;_.Y.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.Y.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.Y.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.S(this.hostElement),k=W.childNodes,C=document.createDocumentFragment(),n=W.childNodes.length-1;n>=0;n--)_.S(C).appendChild(k[n]);_.m("enable_shadydom_free_scoped_node_methods")?_.Ty(this.hostElement).appendChild(C):W.appendChild(C)}};
_.Y.ready=function(){var W=this;_.zM(function(){W.initChildrenObserver()},1)};
_.Y.detached=function(){this.detachObserver()};
_.Y.toggle=function(W,k){this.canToggle&&(this.isToggled=k,_.Pe(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.Y.reset=function(){this.childrenChanged()};
_.Y.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.Y.computeIsMoreVisible=function(W,k){return W&&!k};
_.Y.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(k){}return!1};
_.Y.computeIsLessVisible=function(W,k){return W&&k};
_.Y.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,k=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Op(this.hostElement,{"--ytd-expander-max-lines":""+k,"--ytd-expander-collapsed-height":""}):_.Op(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.Y.handleMoreTap=function(W){this.disableToggle||(_.Pe(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.Y.handleLessTap=function(W){_.Pe(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.Y.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.Y.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){RE(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.Y.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};
_.Y.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.Y.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("collapsed-changed",this.collapsed))};
_.Y.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("is-toggled-changed",this.isToggled))};
_.Y.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("can-toggle-changed",this.canToggle))};
_.oq.Object.defineProperties(GVS.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var Z_=GVS;Z_.prototype.canToggleChangedForBinding=Z_.prototype.canToggleChangedForBinding;Z_.prototype.isToggledChangedForBinding=Z_.prototype.isToggledChangedForBinding;Z_.prototype.collapsedChangedForBinding=Z_.prototype.collapsedChangedForBinding;Z_.prototype.observeCollapsedHeightAndMaxLines=Z_.prototype.observeCollapsedHeightAndMaxLines;Z_.prototype.onIronResize=Z_.prototype.onIronResize;Z_.prototype.reversedChanged=Z_.prototype.reversedChanged;Z_.prototype.toggledChanged=Z_.prototype.toggledChanged;
Z_.prototype.alwaysToggleableChanged=Z_.prototype.alwaysToggleableChanged;_.U([_.v(_.mV),_.O("design:type",Object)],Z_.prototype,"ironResizableBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"alignAuto",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Z_.prototype,"collapsed",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"isToggled",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"alwaysCollapsed",void 0);
_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"canToggle",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"collapsedHeight",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"disableToggle",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"alwaysToggleable",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"reversed",void 0);_.U([_.Z(),_.O("design:type",Number)],Z_.prototype,"maxNumberOfLines",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.O("design:type",Object)],Z_.prototype,"shouldUseNumberOfLines",void 0);_.U([_.Z(),_.O("design:type",Object)],Z_.prototype,"recomputeOnResize",void 0);_.U([_.gi("#content"),_.O("design:type",HTMLDivElement)],Z_.prototype,"content",void 0);_.U([_.Cq("alwaysToggleable"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"alwaysToggleableChanged",null);
_.U([_.Cq("isToggled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"toggledChanged",null);_.U([_.G("canToggleJobId"),_.O("design:type",Object),_.O("design:paramtypes",[])],Z_.prototype,"isResetting",null);_.U([_.Hl("reversed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"reversedChanged",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"onIronResize",null);_.U([_.Hl("maxNumberOfLines","collapsedHeight"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"observeCollapsedHeightAndMaxLines",null);_.U([_.Hl("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"collapsedChangedForBinding",null);
_.U([_.Hl("isToggled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"isToggledChangedForBinding",null);_.U([_.Hl("canToggle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Z_.prototype,"canToggleChangedForBinding",null);Z_=_.U([_.T({disableElementRegistration:!0,is:"ytd-expander"})],Z_);
_.q(Z_,"ytd-expander",function(){if(s2A!==void 0)return s2A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return s2A=W},{mode:1});var Rc=function(){return _.R.apply(this,arguments)||this};
_.D(Rc,_.R);Rc.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
Rc.prototype.observeLightsourcePalette=function(){var W,k=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;k&&_.lV(this.hostElement,k)};
Rc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var oc=Rc;oc.prototype.observeLightsourcePalette=oc.prototype.observeLightsourcePalette;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],oc.prototype,"data",void 0);_.U([_.Z({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],oc.prototype,"isCarousel",void 0);
_.U([_.Hl("data.vibrantsourceColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oc.prototype,"observeLightsourcePalette",null);oc=_.U([_.T({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],oc);
_.q(oc,"ytd-media-upsell-renderer",function(){if(eiA!==void 0)return eiA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return eiA=W},{mode:2});var yO8;var $8b=function(){var W=_.R.apply(this,arguments)||this;W.JSC$12681_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.m("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.m("web_enable_deeper_metadata_highlight_styling");W.modern=_.m("kevlar_modern_sd");W.enableProblemWalkthrough=_.m("problem_walkthrough_sd");return W};
_.D($8b,_.R);_.Y=$8b.prototype;
_.Y.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}}}}}};
_.Y.created=function(){this.JSC$12681_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.LO(this,this.onRepeatButtonToggle));_.m("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.LO(this,this.onActiveUpdate))};
_.Y.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.LO(this,this.onRepeatButtonToggle));_.m("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.LO(this,this.onActiveUpdate))};
_.Y.onDataChanged=function(){this.removePlayerListeners()};
_.Y.onColorPaletteChange=function(){var W={},k;if(_.Vi()==="USER_INTERFACE_THEME_DARK"&&((k=this.data)==null?0:k.darkColorPalette)){var C=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.Xi(this.get("section2Color",C))}else{var n;_.Vi()==="USER_INTERFACE_THEME_LIGHT"&&((n=this.data)==null?0:n.lightColorPalette)&&(C=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.Xi(this.get("section3Color",C)))}C?(W["--ytd-macro-markers-list-item-title-color"]=
_.Xi(this.get("primaryTitleColor",C)),W["--ytd-macro-markers-list-item-secondary-color"]=_.Xi(this.get("secondaryTitleColor",C)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Xi(this.get("section1Color",C)),this.customButtonProperties={customColors:{color:_.Xi(this.get("primaryTitleColor",C))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Op(this.hostElement,W)};
_.Y.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.Y.onEndpointClick=function(W){var k=this,C,n,N;return _.F(function(B){if(B.nextAddress==1){if(k.startX!==W.clientX)return W.preventDefault(),B.return();k.data&&k.ytRendererBehavior.logExplicitClick(k.data);if(!k.seekWithAnimationOnClick)return B.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.er(_.vl(W),k.hostElement,["BUTTON".toString()]))return B.return();W.stopPropagation();W.preventDefault();return k.data?_.l(B,_.Rh().getPlayerPromise(),3):B.return()}C=B.yieldResult;
N=(n=_.z(k.data.onTap,_.RA))==null?void 0:n.startTimeSeconds;N!==void 0&&C.seekToTimeWithAnimation(N*1E3,_.y4(k.data.title));_.ab(B)})};
_.Y.computeLayout=function(W){return W};
_.Y.computeIsHighlighted=function(W){return!!W};
_.Y.computeCarouselType=function(W){return W};
_.Y.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.Y.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.Y.onRepeatButtonToggle=function(W){var k=this;W.detail.toggled&&_.Rh().getPlayerPromise().then(function(C){k.ytPlayerListenerBehavior.listenToPlayerEvents(C,k.JSC$12681_playerEvents);k.listeningToPlayer=!0})};
_.Y.onLoopRangeChange=function(W){var k=_.S(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(k){var C=k.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",k.polymerController.data);if(C){var n=Number(C.endTimeMs);if(Number(C.startTimeMs)!==(W==null?void 0:W.startTimeMs)||n!==(W==null?void 0:W.endTimeMs))k.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.Y.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.Rh().getPlayerPromise().then(function(k){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(k,W.JSC$12681_playerEvents);W.listeningToPlayer=!1})};
_.Y.onActiveUpdate=function(W){this.active=W.detail.active};
var i4=$8b;i4.prototype.onColorPaletteChange=i4.prototype.onColorPaletteChange;i4.prototype.onDataChanged=i4.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],i4.prototype,"ytPlayerListenerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],i4.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],i4.prototype,"useCustomColors",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"active",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],i4.prototype,"shouldShowButtons",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.O("design:type",String)],i4.prototype,"layout",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.O("design:type",Object)],i4.prototype,"isHighlighted",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"useHighlightStyling",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],i4.prototype,"enableProblemWalkthrough",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.O("design:type",String)],i4.prototype,"carouselType",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],i4.prototype,"useColorSampling",void 0);_.U([_.Z(),_.O("design:type",Boolean)],i4.prototype,"seekWithAnimationOnClick",void 0);_.U([_.Z(),_.O("design:type",Object)],i4.prototype,"customButtonProperties",void 0);
_.U([_.gi("#repeat-button"),_.O("design:type",HTMLElement)],i4.prototype,"repeatButton",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i4.prototype,"onDataChanged",null);_.U([_.Hl("data.lightColorPalette","data.darkColorPalette"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],i4.prototype,"onColorPaletteChange",null);
i4=_.U([_.T({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],i4);
_.q(i4,"ytd-macro-markers-list-item-renderer",function(){if(yO8!==void 0)return yO8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return yO8=W},{mode:1});var Z9s;var Ri8;var oGA=function(){var W=_.R.apply(this,arguments)||this;W.modernTypography=_.m("web_modern_typography");return W};
_.D(oGA,_.R);var Tk=oGA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Tk.prototype,"modernTypography",void 0);_.U([_.Z(),_.O("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.U([_.T({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Tk);
_.q(Tk,"ytd-title-and-button-list-header-renderer",function(){if(Ri8!==void 0)return Ri8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ri8=W},{mode:1});var i9b;var TfI=new _.Tc("BUTTON_RENDERER_WIZ_TOKEN"),q8I=new _.Tc("BUTTON_RENDERER_TOKEN");_.qg=_.GM(function(W){var k=_.f().resolve(_.qI(TfI));if(k)return _.t(k,Object.assign({},W));var C=_.f().resolve(q8I);return C?_.t(x22,null,function(){return _.t(R9,null,function(){var n,N,B,A,w,x,E,a,X,d,V,c;return void C(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(n=W.shouldShowIcons)==null?void 0:n.call(W),icon:(N=W.icon)==null?void 0:N.call(W),processAllEndpoints:(B=W.processAllEndpoints)==null?void 0:B.call(W),preventDefault:(A=W.preventDefault)==null?void 0:A.call(W),
stopPropagation:(w=W.stopPropagation)==null?void 0:w.call(W),disableButtonRendererClickHandling:(x=W.disableButtonRendererClickHandling)==null?void 0:x.call(W),className:(E=W.className)==null?void 0:E.call(W),buttonOverrides:(a=W.buttonOverrides)==null?void 0:a.call(W),forceModernIconButton:(X=W.forceModernIconButton)==null?void 0:X.call(W),isSubscribe:(d=W.isSubscribe)==null?void 0:d.call(W),alignByText:(V=W.alignByText)==null?void 0:V.call(W),forceDisabled:(c=W.forceDisabled)==null?void 0:c.call(W)})})}):
_.t(_.qf,null)},"W");
_.qg.idomCompat=!0;var uxI=_.GM(function(W){var k=W.notification,C=_.pq(W.useSquareAspectRatio,!1);return _.t(_.NI,{cond:function(){var n,N;return(n=k().responseText)==null?void 0:(N=n.runs)==null?void 0:N.length},
then:function(){var n={};return _.t("div",{class:_.Li("yt-mini-game-card-view-model__dismissed-card",(n["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!C()},n["yt-mini-game-card-view-model--dismissed-square-card"]=C,n))},_.t("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.t(_.NI,{cond:function(){return k().responseText.runs[0].text},
then:function(N){return _.t("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:N},N)}}),_.t(_.Ex,{data:function(){return k().buttons}},{buttonRenderer:_.qg,
buttonViewModel:_.zn})))}})},"X");var rOs=_.GM(function(W){W=_.vp(W,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var k=W.data,C=W.useFullWidth,n=W.isDesktopWeb,N=W.addSearchResultTopMargin,B=function(){return k().layout},A=function(){return k().title},w=function(){return k().genre},x=function(){return k().channelName},E=function(){return k().image},a=function(){return k().colorPalette},X=function(){return k().actionButton},d=function(){return k().overflowButton},V=function(){return k().avatar},
c=function(){var u={};
u=_.Li("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 n()},u));
return _.t("div",{class:u},_.t(U88,{imageData:E,colorPalette:a}),_.t(O9Y,{onTap:function(){return k().onTap},
imageData:E,accessibilityText:function(){return k().accessibilityText},
overlayBadgeText:function(){return k().overlayBadgeText},
iconName:function(){return k().iconName},
unplayableInlinePlaybackIconName:function(){return k().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.t(_.NI,{cond:function(){return!n()},
then:function(){return _.t(_.qf,null,_.t(LCA,{layout:B,colorPalette:a,isDesktopWeb:n,overflowButton:d,avatar:V,onTap:function(){return k().onTap},
genre:w,title:A,channelName:x,entityRedesignExperiments:function(){return k().entityRedesignExperiments}}),_.t(u4,{actionButton:X}))}}))},M=function(){var u={};
u=_.Li((u["yt-mini-game-card-view-model--search-result-desktop"]=function(){return n()},u["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!n()},u["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return N()},u));
return _.t("div",{class:u},c(),_.t(j28,{description:function(){return k().description},
isDesktopWeb:n,title:A,genre:w,onTap:function(){return k().onTap},
actionButton:X,overflowButton:d,avatar:V,channelName:x}))},p=function(){var u=function(){var L;
return(L=k().entityRedesignExperiments)==null?void 0:L.changePlayablesLayoutWithCta},h={};
h=_.Li("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(h["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return u()},h["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return n()},h["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return n()&&k().width===135},h["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return n()},h["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!u()&&n()&&k().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},h["yt-mini-game-card-view-model--big-metadata-font"]=function(){return k().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},h["yt-mini-game-card-view-model--use-full-width"]=function(){return C()},h["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!X()},h));
return _.t("div",{class:h},_.t(_.NI,{cond:function(){return u()},
then:function(){return _.t(_.qf,null,_.t(H9I,{entityRedesignExperiments:function(){return k().entityRedesignExperiments},
colorPalette:a,isDesktopWeb:n,onTap:function(){return k().onTap},
accessibilityText:function(){return k().accessibilityText},
overlayBadgeText:function(){return k().overlayBadgeText},
iconName:function(){return k().iconName},
unplayableInlinePlaybackIconName:function(){return k().unplayableInlinePlaybackIconName},
actionButton:X,imageData:E}),_.t(LCA,{layout:B,colorPalette:a,isDesktopWeb:n,overflowButton:d,avatar:V,onTap:function(){return k().onTap},
genre:w,title:A,channelName:x,entityRedesignExperiments:function(){return k().entityRedesignExperiments}}),_.t(_.NI,{cond:function(){return!!u()===!1&&X()},
then:function(){return _.t(u4,{actionButton:X})}}))},
else:function(){return _.t(_.qf,null,_.t(U88,{imageData:E,colorPalette:a}),_.t(O9Y,{onTap:function(){return k().onTap},
imageData:E,accessibilityText:function(){return k().accessibilityText},
overlayBadgeText:function(){return k().overlayBadgeText},
iconName:function(){return k().iconName},
unplayableInlinePlaybackIconName:function(){return k().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.t(LCA,{layout:B,colorPalette:a,isDesktopWeb:n,overflowButton:d,avatar:V,onTap:function(){return k().onTap},
genre:w,title:A,channelName:x,entityRedesignExperiments:function(){return k().entityRedesignExperiments}}),_.t(u4,{actionButton:X}))}}))},e=function(){var u={};
u=_.Li("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 n()},u["yt-mini-game-card-view-model--use-full-width"]=function(){return C()},u));
return _.t("div",{class:u},_.t(O9Y,{onTap:function(){return k().onTap},
imageData:E,accessibilityText:function(){return k().accessibilityText},
overlayBadgeText:function(){return k().overlayBadgeText},
iconName:function(){return k().iconName},
unplayableInlinePlaybackIconName:function(){return k().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.t(LCA,{layout:B,colorPalette:a,isDesktopWeb:n,overflowButton:d,avatar:V,onTap:function(){return k().onTap},
genre:w,title:A,channelName:x,entityRedesignExperiments:function(){return k().entityRedesignExperiments}}))};
return _.t("mini-game-card-view-model",{class:W.className},_.t(_.Fc,null,_.t(_.Aj,{when:function(){return B()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return p()}),_.t(_.Aj,{when:function(){return B()==="MINI_APP_LAYOUT_SQUARE"}},function(){return e()}),_.t(_.Aj,{when:function(){return B()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return M()})))},"Y");
rOs.idomCompat=!0;var u4=_.GM(function(W){var k=_.pq(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.t(_.Ex,{data:W.actionButton},{buttonViewModel:function(C){return _.t("div",{class:k},_.t(_.zn,{data:C.data}))}})},"Z"),O9Y=_.GM(function(W){var k=W.onTap;
var C=W.imageData;var n=W.accessibilityText;var N=W.overlayBadgeText;var B=W.iconName;var A=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.t(_.NE,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:k},_.t(_.pi,{data:C,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(n==null?void 0:n())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.t(gGx,{overlayBadgeText:N,iconName:B,unplayableInlinePlaybackIconName:A,isDesktopWeb:W}))},"$"),gGx=_.GM(function(W){var k=W.overlayBadgeText;
var C=W.iconName;var n=W.unplayableInlinePlaybackIconName;var N=W.isDesktopWeb;return _.t("div",{class:"yt-mini-game-card-view-model__badge-container"},_.t(_.NI,{cond:C,then:function(B){return _.t("div",{class:"yt-mini-game-card-view-model__badge"},_.t("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.t(_.ka,{icon:B,className:"yt-mini-game-card-view-model__icon"}),_.t("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},k)))}}),_.t(_.NI,{cond:function(){return!C()&&
k()},
then:function(){return _.t("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},k)}}),_.t(_.NI,{cond:function(){return n()&&N()},
then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.t(_.ka,{icon:n,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),U88=_.GM(function(W){var k=W.colorPalette;
var C=W.imageData;var n=function(){return k().vibrantColorPalette?k().vibrantColorPalette.section2Color:k().sectionTwoColor};
return _.t(_.qf,null,_.t("div",{class:"yt-mini-game-card-view-model__background-base",style:_.WJ({"background-color":function(){return fO(n(),"1")}})}),_.t("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.WJ({"background-image":function(){return"url("+C().sources[0].url+")"}})}),_.t("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.WJ({background:function(){return"linear-gradient(180deg,\n    "+fO(n(),".8")+" 0%,\n    "+fO(n(),".4")+" 25%,\n    "+fO(k().vibrantColorPalette?k().vibrantColorPalette.section4Color:k().sectionFourColor,".8")+" 100%)"}})}))},"ba"),LCA=_.GM(function(W){var k=W.layout;
var C=W.colorPalette;var n=W.overflowButton;var N=W.avatar;var B=W.onTap;var A=W.title;var w=W.channelName;var x=W.entityRedesignExperiments;var E=W.genre;var a=function(){var d;return k()!=="MINI_APP_LAYOUT_SQUARE"&&((d=C())==null?0:d.textPrimaryColor)?"color: "+fO(C().textPrimaryColor,".7"):""},X=function(){var d;
return x==null?void 0:(d=x())==null?void 0:d.changePlayablesLayoutWithCta};
return _.t("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.t(_.NI,{cond:N,then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__avatar"},_.t(_.Ex,{data:N},{avatarViewModel:_.D_}))}}),_.t(_.NE,{command:B,
className:"yt-mini-game-card-view-model__metadata-details"},_.t("h3",{class:"yt-mini-game-card-view-model__title",title:A},A),_.t(_.NI,{cond:N,then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.t("span",{class:"yt-mini-game-card-view-model__genre",title:w,style:a},w),_.t("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:a},E))},
else:function(){return _.t(_.NI,{cond:X,then:function(){return _.t("span",{class:"yt-mini-game-card-view-model__genre",title:E},E)},
else:function(){return _.t("span",{class:"yt-mini-game-card-view-model__genre",title:E,style:a},E)}})}})),_.t("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.t(_.Ex,{data:n},{buttonViewModel:function(d){var V=d.data;
return _.t(_.zn,{data:function(){return Object.assign({},V(),{customFontColor:X()?void 0:V().customFontColor})}})}})))},"ca"),H9I=_.GM(function(W){var k=W.entityRedesignExperiments;
var C=W.colorPalette;var n=W.isDesktopWeb;var N=W.onTap;var B=W.accessibilityText;var A=W.overlayBadgeText;var w=W.iconName;var x=W.unplayableInlinePlaybackIconName;var E=W.actionButton;W=W.imageData;var a=function(){var X;return k==null?void 0:(X=k())==null?void 0:X.changePlayablesLayoutWithCta};
return _.t("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.t(U88,{imageData:W,colorPalette:C}),_.t(O9Y,{onTap:N,imageData:W,accessibilityText:B,overlayBadgeText:A,iconName:w,unplayableInlinePlaybackIconName:x,isDesktopWeb:n}),_.t(_.NI,{cond:function(){return(a==null?void 0:a())&&(E==null?void 0:E())},
then:function(){return _.t(u4,{actionButton:E})}}))},"da"),j28=_.GM(function(W){var k=W.description;
var C=W.isDesktopWeb;var n=W.title;var N=W.genre;var B=W.onTap;var A=W.actionButton;var w=W.overflowButton;var x=W.avatar;W=W.channelName;var E={};E=_.Li("yt-mini-game-card-view-model--search-result-metadata-wrapper",(E["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=C,E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=C,E["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!C()},E));
var a={};a=_.Li("yt-mini-game-card-view-model__search-result-info-row",(a["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!C()},a));
return _.t("div",{class:E},_.t("div",{class:a},_.t(_.NE,{command:B,className:"yt-mini-game-card-view-model__metadata-details"},_.t("h3",{class:"yt-mini-game-card-view-model__title",title:n},n),_.t("span",{class:"yt-mini-game-card-view-model__genre",title:N},N)),_.t(u4,{actionButton:A,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.t("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.t(_.Ex,{data:w},{buttonViewModel:_.zn}))),_.t("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.t("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.t("div",{class:"yt-mini-game-card-view-model__avatar"},_.t(_.Ex,{data:x},{avatarViewModel:function(X){var d=X.data;return _.t(_.D_,{data:function(){return Object.assign({},d(),{avatarImageSize:C()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.t(_.NE,{command:B,
className:"yt-mini-game-card-view-model__description"},_.t("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.t(_.NE,{command:B,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.t("div",null)))),_.t(_.NI,{cond:C,then:function(){return _.t(_.NE,{command:B,className:"yt-mini-game-card-view-model__description"},k)}}))},"ea");var PJC={isAdsVideo:!0},KCZ={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},hix={showPlayerControls:!1,videoPreviewDurationMs:15E3},CLX={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.m("web_shorts_imp_fullwidth_killswitch")},WLx={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var keb=function(){var W=_.R.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.D(keb,_.R);_.Y=keb.prototype;_.Y.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.Y.dismissibleItemOnYtServiceRequestSent=function(W,k){k.actions&&this.dismissibleItemProcessActions(W,k.actions)};
_.Y.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.Y.dismissibleItemProcessActions=function(W,k){for(var C=0;C<k.length;C++){var n=k[C];_.z(n,_.F5)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.z(n,_.F5)),W.stopPropagation())}};
_.Y.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12713_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:WLx}))};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12713_inlinePreviewHoverListener)==null||PB(W)};
_.Y.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.Y.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var W=this.data.layout==="MINI_APP_LAYOUT_SQUARE";MN(uxI)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:W===void 0?!1:W})}else MN(rOs)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var Um=keb;Um.prototype.experimentalPropertiesChanged=Um.prototype.experimentalPropertiesChanged;Um.prototype.dataChanged=Um.prototype.dataChanged;Um.prototype.dismissibleItemOnRequestSent=Um.prototype.dismissibleItemOnRequestSent;Um.prototype.dismissibleItemOnYtServiceRequestSent=Um.prototype.dismissibleItemOnYtServiceRequestSent;_.U([_.v(t$z),_.O("design:type",Object)],Um.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Um.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Um.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Um.prototype,"isDismissed",void 0);_.U([_.Z(),_.O("design:type",Object)],Um.prototype,"dismissedRenderer",void 0);_.U([_.gi(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.O("design:type",HTMLElement)],Um.prototype,"thumbnailWrapper",void 0);
_.U([_.gi("mini-game-card-view-model"),_.O("design:type",HTMLElement)],Um.prototype,"miniGameCardViewModel",void 0);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Um.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.U([_.jI("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Um.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Um.prototype,"dataChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Um.prototype,"isRichGrid",void 0);_.U([_.Hl("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Um.prototype,"experimentalPropertiesChanged",null);
Um=_.U([_.l0({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Um);
_.q(Um,"ytd-mini-game-card-view-model",function(){if(i9b!==void 0)return i9b;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return i9b=W},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var CLS;var niA;var N6A=function(){return _.iD.apply(this,arguments)||this};
_.D(N6A,_.iD);N6A.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
N6A.prototype.getContinuationUrl=function(W){var k={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(k.itct=this.data.clickTrackingParams);return _.$n(W,k)};
var Y4I=N6A;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Y4I.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Y4I.prototype,"data",void 0);Y4I=_.U([_.l0({is:"yt-reload-continuation",noInjection:!0})],Y4I);var B6s;var bW8;var A_x=function(){var W=_.R.apply(this,arguments)||this;W.notificationData={};return W};
_.D(A_x,_.R);_.Y=A_x.prototype;_.Y.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.Y.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.qw(this.hostElement,"has-items",W);_.S(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.Y.onDropdownOpen=function(){var W=_.VM();if(this.parentTrackingParams&&this.data){var k=_.Yf(this.parentTrackingParams);this.data.forEach(function(C){W&&k&&C.trackingParams&&(C=_.Yf(C.trackingParams),_.sr(W,k,C),_.yb(W,[C]))})}else this.parentTrackingParams||_.zJ(new _.AM("No parent tracking params passed in for yt-dropdown-menu."))};
_.Y.hasNotification=function(W){var k;if(W.targetId&&((k=this.notificationData)==null?0:k.targetId)){var C;return W.targetId===((C=this.notificationData)==null?void 0:C.targetId)}};
_.Y.computeSelectedIndex_=function(W){if(W)for(var k=0,C=W.length;k<C;k++)if(W[k].selected)return k;return-1};
_.Y.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.Y.computeShowIcon_=function(W,k){return!k&&!!W};
_.Y.computeVerticalOffset_=function(W){return W?36:0};
_.Y.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.Y.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.Y.onIronActivate_=function(W){W=W.detail.item;var k=_.S(this.hostElement).querySelector("#repeat").itemForElement(W);if(k&&k.trackingParams){var C=_.VM(),n=_.Yf(k.trackingParams);C&&_.Zr(C,n)}if(k&&k.serviceEndpoint)_.m("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(k.serviceEndpoint):_.kQ(this.hostElement,[k.serviceEndpoint]),_.Pe(this.hostElement,"yt-playlist-reloading");else a:{if((k=W.querySelector("yt-supported-renderers"))&&(k=
k.rendererElement)&&k.is=="yt-reload-continuation"){k.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.Y.onTap_=function(W){W.preventDefault()};
_.Y.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.Y.onLinkFocus_=function(W){try{var k=W.target}catch(n){}if(k){var C=k.querySelector("tp-yt-paper-item");C&&_.Dy(this,"focus",function(){C.focus()})}};
_.Y.onMenuClose_=function(){this.menuExpanded="false"};
_.Y.isLabelIconActive_=function(W){return W==="true"};
_.Y.computeHasSubtitle_=function(W){return!!W};
_.Y.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.Y.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
var Om=A_x;Om.prototype.onMenuClose_=Om.prototype.onMenuClose_;Om.prototype.onTap_=Om.prototype.onTap_;Om.prototype.onIronActivate_=Om.prototype.onIronActivate_;Om.prototype.onDropdownOpen=Om.prototype.onDropdownOpen;Om.prototype.dataChanged_=Om.prototype.dataChanged_;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Om.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],Om.prototype,"ytEndpointBehavior",void 0);
_.U([_.Z(),_.O("design:type",Array)],Om.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Om.prototype,"parentTrackingParams",void 0);_.U([_.Z(),_.O("design:type",Object)],Om.prototype,"selected",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Om.prototype,"useLabel",void 0);_.U([_.Z(),_.O("design:type",String)],Om.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Om.prototype,"iconLabel",void 0);
_.U([_.Z(),_.O("design:type",String)],Om.prototype,"ariaLabel",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Om.prototype,"disabled",void 0);_.U([_.Z({computed:"isMenuExpanded(data)"}),_.O("design:type",String)],Om.prototype,"menuExpanded",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Om.prototype,"closeOnActivate",void 0);_.U([_.Z({reflectToAttribute:!0,value:_.m("web_modern_buttons")}),_.O("design:type",Boolean)],Om.prototype,"modernButtons",void 0);
_.U([_.Z(),_.O("design:type",Object)],Om.prototype,"notificationData",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Om.prototype,"dataChanged_",null);_.U([_.jI("paper-dropdown-open"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Om.prototype,"onDropdownOpen",null);
_.U([_.jI("iron-activate"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Om.prototype,"onIronActivate_",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Om.prototype,"onTap_",null);_.U([_.jI("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Om.prototype,"onMenuClose_",null);
Om=_.U([_.l0({is:"yt-dropdown-menu",disableElementRegistration:!0})],Om);
_.q(Om,"yt-dropdown-menu",function(){if(bW8===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;B6s===void 0&&(B6s=document.createElement("template"));var n=B6s;C.call(k,n.content.cloneNode(!0),W.content.firstChild);bW8=W}W=bW8;return W},{mode:2});var Lc=function(){var W=_.R.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.D(Lc,_.R);Lc.prototype.computeId=function(W){return W};
Lc.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
Lc.prototype.computeAccessibilityLabel=function(W){var k,C;return((k=W.accessibility)==null?void 0:(C=k.accessibilityData)==null?void 0:C.label)||null};
Lc.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
var jA=Lc;jA.prototype.notificationDataChanged=jA.prototype.notificationDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fl.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],jA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jA.prototype,"data",void 0);
_.U([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",String)],jA.prototype,"id",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],jA.prototype,"isRightAligned",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],jA.prototype,"disabled",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],jA.prototype,"closeOnActivate",void 0);_.U([_.Z(),_.O("design:type",Object)],jA.prototype,"notificationData",void 0);
_.U([_.Z(),_.O("design:type",Object)],jA.prototype,"hasNotification",void 0);_.U([_.Hl("notificationData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jA.prototype,"notificationDataChanged",null);jA=_.U([_.l0({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],jA);
_.q(jA,"yt-sort-filter-sub-menu-renderer",function(){if(niA===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;CLS===void 0&&(CLS=document.createElement("template"));var n=CLS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);niA=W}W=niA;return W},{mode:2});_.UK(Fow);
var FL8=_.GM(function(W){var k=W.children;var C=W.className;var n=W.style;var N=W.role;var B=W.ariaSelected;var A=W.ariaLabel;var w=W.ariaHidden;var x=W.ariaLabelledby;var E=W.ariaDescribedby;var a=W.command;var X=W.elementsCommand;var d=W.forceNewState;var V=W.tabIdentifier;var c=W.target;var M=W.tabIndex;var p=W.stopPropagation;W=_.BH(function(){var e=_.m8({innertubeCommand:a==null?void 0:a(),elementsCommand:X==null?void 0:X(),forceNewState:d==null?void 0:d(),stopPropagation:(p==null?void 0:p())!==
!1});e||(e={});e["aria-hidden$"]=w==null?void 0:w();var u;e.tabindex$=(u=M==null?void 0:M())!=null?u:e.tabindex$;var h;e["force-new-state$"]=(h=d==null?void 0:d())!=null?h:e["force-new-state$"];var L;e.role$=(L=N==null?void 0:N())!=null?L:e.role$;var Bw;e["aria-hidden$"]=(Bw=w==null?void 0:w())!=null?Bw:e["aria-hidden$"];var P;e.target$=(P=c==null?void 0:c())!=null?P:e.target$;return e},void 0,"SU0Mnc");
return _.t(_.NE,{aTagConfig:W,className:C,style:n,ariaLabel:A,ariaLabelledby:x,ariaDescribedby:E,ariaSelected:B,tabIdentifier:V},k)},"fa");var wCK=_.m("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",wkA=_.ry(xT3);_.UK(xT3);_.Gj(wkA,"place-data-view-model",{props:{data:_.Ik}});var xm2=new _.Tc("INLINE_PLAYBACK_HOOK_TOKEN");var Is3=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},M0X=function(W){if(W.isSlideshowPlaying){W.isSlideshowPlaying=!1;
for(var k=W.jobIds,C=0,n=k.length;C<n;C++)_.aM.cancelJob(k[C]);W.jobIds.length=0}},Ssw=function(W,k){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,lQs(W),tmC(W,k,0))},lQs=function(W){_.oE(_.aM,function(){W.setActiveSlideIndex(0)},1)},tmC=function(W,k,C){W.jobIds.push(_.oE(_.aM,function(){var n=C<k-1?C+1:0;
W.setActiveSlideIndex(n);tmC(W,k,n)},1800))};var dTw=new _.Tc("IMAGE_ON_LOAD_HANDLER_TOKEN");var Ei8=_.GM(function(W){return _.t("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.t(_.NI,{cond:function(){var k;return(k=W.data())==null?void 0:k.thumbnail},
then:function(k){return _.t(_.pi,{data:k,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.HZ=_.GM(function(W){var k=W.data;var C=W.lockupExperiments;W={};return _.t("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.t("div",{class:_.Li("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var n;return C&&((n=C())==null?void 0:n.useLegacySizedIconButton)},W))},_.t(_.Ex,{data:function(){return k().overlayButton}},{buttonViewModel:function(n){return _.t(_.zn,{data:n.data,
buttonOverrides:function(){var N;return C&&((N=C())==null?0:N.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.HZ.idomCompat=!0;var aQs=_.GM(function(W){var k=_.Pj(function(C){C.preventDefault();return!1});
return _.t("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":k},_.t(_.Ex,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(C){return _.t("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.t(_.fX,{data:C.data}))}}))},"ia");
aQs.idomCompat=!0;var Xkz=_.GM(function(W){var k=function(){var C;return((C=_.z(W.data().rendererContext,_.vB))==null?void 0:C.label)||""};
return _.t("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.t(_.NI,{cond:function(){return W.data().image},
then:function(){return _.t("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.t(_.pi,{data:function(){return W.data().image},
alt:k}))}}),_.t(_.NI,{cond:function(){return W.data().text},
then:function(){return _.t("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"ja");var zpK=_.w7({thumbnailOverlayTitleViewModel:x8Y,thumbnailOverlayBadgeViewModel:tb8,thumbnailBottomOverlayViewModel:WCZ,thumbnailOverlayFullViewModel:Xkz,thumbnailOverlayButtonViewModel:_.HZ}),DTz=_.w7({thumbnailHoverOverlayViewModel:CJS,thumbnailHoverOverlayToggleActionsViewModel:aQs}),V0p=_.w7({animatedThumbnailOverlayViewModel:Ei8});_.UK(JH3);var fQs=_.GM(function(W){var k=[],C=function(){var d,V;return Gf((d=W.width)==null?void 0:d.call(W),(V=W.height)==null?void 0:V.call(W))},n=_.f().resolve(_.qI(dTw)),N=_.yE(function(){k.push("elRef.value set");
var d;(d=W.playbackRef)==null||d.call(W,{thumbnailElRef:N,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:C()})});
_.Ee(function(){k.push("onInit");_.fy(function(){k.push("onCleanup")})});
var B=_.X8(t0m),A=function(){var d,V;return(V=(d=W.aspectRatio)==null?void 0:d.call(W))!=null?V:0},w=function(){return(W.data().image?_.xp2(W.data().image):A())<=1&&A()===0},x=function(){return w()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},E=function(){N.value||_.zJ(new _.AM("Thumbnail elRef.value is null",k.join("\n")));
n&&N.value&&n(N.value)},a=function(){var d,V;
return((d=W.hovered)==null?void 0:d.call(W))&&C()!=="large"&&((V=W.data().overlays)==null?void 0:V.some(function(c){return _.z(c,mTJ)}))},X={};
return _.t("yt-thumbnail-view-model",{class:_.Li("yt-thumbnail-view-model",W.className,function(){return cHP(A())},function(){var d,V;
a:{var c=C(),M=(d=W.disableRounding)==null?void 0:d.call(W);d=(V=W.isClip)==null?void 0:V.call(W);if(!M&&!d)switch(c){case "large":V="yt-thumbnail-view-model--large";break a;case "small":V="yt-thumbnail-view-model--small";break a;default:V="yt-thumbnail-view-model--medium";break a}V=void 0}return V},(X["yt-thumbnail-view-model--cinematic"]=w,X)),
style:_.WJ({"background-color":function(){var d,V=w()?(d=W.data().backgroundColor)==null?void 0:d.lightTheme:void 0;return V?fO(V,"1"):void 0}}),
el:N},_.t(_.NI,{cond:w,then:function(){return _.t("div",{class:"yt-thumbnail-view-model__blurred-image"},_.t(_.pi,{data:function(){return W.data().image},
alt:"",contentMode:x,targetWidth:W.width,onload:E}))}}),_.t("div",{class:"yt-thumbnail-view-model__image"},_.t(_.pi,{data:function(){return W.data().image},
alt:"",contentMode:x,targetWidth:W.width,onload:E}),null),_.t(_.Ex,{data:function(){return a()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:loY,thumbnailOverlayBadgeViewModel:function(d){return _.t(tb8,{data:d.data,thumbnailSize:C,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:WCZ,thumbnailOverlayFullViewModel:Xkz,thumbnailOverlayButtonViewModel:function(d){return _.t(_.HZ,{data:d.data,lockupExperiments:W.lockupExperiments})}}),_.t(_.Ex,{data:function(){var d;
return((d=W.hovered)==null?0:d.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(d){return _.t(nGs,{data:d.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:aQs}),_.t(_.Ex,{data:function(){var d;return((d=W.hovered)==null?0:d.call(W))&&B()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Ei8}),_.t(_.NI,{cond:W.isClip,then:function(){return XCm()}}))},"ka"),dms=_.m("web_enable_sink_lockups_batch")?fQs:JH3,rl=_.m("web_enable_sink_lockups_batch")?fQs:_.ry(dms,{callbacks:{playbackRef:!0}});
fQs.idomCompat={callbacks:{playbackRef:!0}};var Qjw=_.w7({thumbnailViewModel:dms});_.UK(pC4);var mm8=_.GM(function(W){var k=_.b(_.kw(-1,void 0,"GEkecf")),C=k.next().value,n=k.next().value;_.Ee(function(){var N=new Is3(n);Ssw(N,W.data().thumbnails.length);_.fy(function(){M0X(N)})});
return _.t("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.t(_.Ex,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(N,B){return _.t("div",{class:function(){var A=!W.data().primaryThumbnail,w=B(),x=C(),E=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
A&&w===0&&E.push("yt-collection-thumbnail-slideshow--first-slide");w<=x&&E.push("yt-collection-thumbnail-slideshow--show-slide");return E.join(" ")}},_.t(rl,{data:N.data,
disableRounding:W.disableRounding}))}}))},"la"),yH3=_.m("web_enable_sink_lockups_batch")?mm8:pC4,zzS=_.m("web_enable_sink_lockups_batch")?mm8:_.ry(pC4);
mm8.idomCompat=!0;var vFc=new _.Tc("DWELL_DETECTOR_REGISTRY_TOKEN");var GFJ=_.w7({thumbnailViewModel:dms});_.UK($T4);var VmA=_.GM(function(W){var k=sjm(W.triggeringElement),C=function(){return!!W.data().primaryThumbnail};
return _.t("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.t(DmI,{stackEnabled:C,thumbnailSize:function(){var n,N;return Gf((n=W.width)==null?void 0:n.call(W),(N=W.height)==null?void 0:N.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor}},_.t("div",null,_.t(_.Ex,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(n){var N={};
return _.t(rl,{data:n.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.Li((N["yt-collection-thumbnail-view-model--has-stacks"]=C,N)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.t(_.NI,{cond:function(){var n;
return k()&&((n=W.data().thumbnails)==null?void 0:n.length)},
then:function(){return _.t("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.t(zzS,{data:W.data,disableRounding:function(){return!C()}}))}}))))},"ma"),J_2=_.m("web_enable_sink_lockups_batch")?VmA:_.ry($T4,{callbacks:{playbackRef:!0}});
VmA.idomCompat={callbacks:{playbackRef:!0}};
var DmI=_.GM(function(W){var k=W.children;var C=W.stackEnabled;var n=W.thumbnailSize;var N=W.doubleStack;var B=W.stackColor;var A,w=(A=_.f().resolve(_.qI(_.cj)))==null?void 0:A();return _.t(_.NI,{cond:C,then:function(){return _.t(xTx,{data:function(){var x,E;return{experimentEnabled:!0,thumbnailSize:n(),doubleStack:N==null?void 0:N(),color:w?B==null?void 0:(x=B())==null?void 0:x.darkTheme:B==null?void 0:(E=B())==null?void 0:E.lightTheme,enableResponsiveMode:!1}}},k)},
else:function(){return k}})},"na");var c_8=new _.Tc("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var PZ;_.gl={calledOnce:!0,state:"visible"};PZ={calledOnce:!0,state:"hidden"};_.Kc=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;var n=W.className;var N=W.delayedClassName;W=W.animationEntityKey;var B=_.yE(),A=_.pq(W,""),w=_.kj(ps3,A),x=function(){var P,xz;return(xz=(P=w())==null?void 0:P.value)!=null?xz:!1},E=function(){_.Q3(_.Nj("booleanEntity",A(),{key:A(),
value:!0}));e=void 0};
W=_.b(_.h7(x));var a=W.next().value,X=W.next().value;W=_.b(_.h7(x));var d=W.next().value,V=W.next().value;W=_.b(_.h7(function(){var P;return x()?(P=k().styleTransitionConfig)==null?void 0:P.destinationStyle:void 0}));
var c=W.next().value,M=W.next().value,p=function(){var P=Object.assign({},k(),c()&&{style:c()}),xz,Sp,vw=P.label,lw=(xz=P.interaction)==null?void 0:(Sp=xz.accessibility)==null?void 0:Sp.label;xz=P.iconImage?P.label&&P.label.content?P.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:vw,accessibilityLabel:lw,style:ip3(P.style),type:TNJ(P.style),state:"active",size:oFw(P.size),iconPosition:xz,disabled:!1,aTagConfig:Rpp(P,C)}},e;
_.uT(B,{visibilityCallback:function(P){var xz,Sp=(xz=k().interaction)==null?void 0:xz.onFirstVisible;P&&Sp&&_.zj(Sp)},
showOption:_.gl});var u=function(){return Cn(p(),!!k().iconImage)};
n=_.Li(function(){return"ytwAdButtonViewModelHost"},function(){return k().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var P=!!k().delayedAppearanceConfig,xz=a();
return P?xz?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var P=!!k().delayedAppearanceConfig,xz=d();
return P?xz?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!k().delayedAppearanceConfig||a()?N==null?void 0:N():""},n!=null?n:"");
var h=function(){var P,xz=(P=k().delayedAppearanceConfig)==null?void 0:P.delayedInvisibleSeconds;xz&&(e=_.bX(_.aM,function(){X(!0);L()},xz*1E3))},L=function(){var P,xz=(P=k().delayedAppearanceConfig)==null?void 0:P.delayedVisibleSeconds;
xz&&(e=_.bX(_.aM,function(){V(!0);Bw()},xz*1E3))},Bw=function(){var P,xz=(P=k().styleTransitionConfig)==null?void 0:P.styleTransitionSeconds,Sp,vw=(Sp=k().styleTransitionConfig)==null?void 0:Sp.destinationStyle;
xz&&vw?e=_.bX(_.aM,function(){M(vw);E()},xz*1E3):E()};
_.Ee(function(){var P;((P=k().delayedAppearanceConfig)==null?0:P.transitionDurationSeconds)&&B.value.style.setProperty("transition-duration",k().delayedAppearanceConfig.transitionDurationSeconds+"s");h()});
_.fy(function(){e&&_.aM.cancelJob(e)});
return _.t("ad-button-view-model",{class:n,el:B},_.t(_.NI,{cond:p,then:function(){return _.t(LX,{data:p,icon:function(){return _.t(_.NI,{cond:function(){return k().iconImage},
then:function(P){return _.t(_.pi,{data:P,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var IQZ=_.GM(function(W){var k=W.data;W=_.yE();_.uT(W,{visibilityCallback:function(C){var n,N=(n=k().interaction)==null?void 0:n.onFirstVisible;C&&N&&_.zj(N)},
showOption:_.gl});return _.t("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:W},_.t("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.t(_.Ex,{data:function(){return k().secondaryAdButton}},{adButtonViewModel:function(C){return _.t(_.Kc,{data:C.data})}})),_.t("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.t(_.Ex,{data:function(){return k().primaryAdButton}},{adButtonViewModel:function(C){return _.t(_.Kc,{data:C.data})}})))},"pa");var S4I=_.GM(function(W){var k=function(){var C;return((C=W.data())==null?void 0:C.answers)||[]};
return _.t("yt-survey-icons",{class:"ytSurveyIconsHost"},_.t("div",{class:"ytSurveyIconsHeader"},_.t("div",{class:"ytSurveyIconsTitle"},function(){var C;return(C=W.data())==null?void 0:C.text}),_.t("div",null,_.t(LX,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var C;(C=W.onDismiss)==null||C.call(W)}}},
iconName:"DISMISSAL"}))),_.t("div",null,_.t("div",{class:"ytSurveyIconsAnswers"},_.t(_.bI,{each:function(){return k()},
keyBy:"INDEX"},function(C,n){return _.t("div",null,_.t(LX,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var N;(N=W.onSelect)==null||N.call(W,C(),n)}}},
icon:function(){return _.t(_.ka,{icon:function(){var N,B;return(N=C())==null?void 0:(B=N.icon)==null?void 0:B.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.t("div",{class:"ytSurveyIconsAnswersText"},_.t("div",null,function(){return k().length?k()[0].text:""}),_.t("div",null,function(){return k().length?k()[k().length-1].text:""}))))},"qa");var MmI=_.GM(function(W){var k=_.b(_.kw(!1,void 0,"s8HkOb")),C=k.next().value,n=k.next().value,N=_.kj(gp2,function(){var w;return(w=W.data().keys)==null?void 0:w.surveyEntityKey}),B=_.kj(Pmp,function(){var w;
return(w=W.data().keys)==null?void 0:w.surveyStateEntityKey});
_.GJ("ytd-slimline-survey-show-action",function(){n(!1)});
var A=function(){var w,x;var E=(w=B())==null?void 0:(x=w.questionStack)==null?void 0:x[0];if(E!==void 0){var a,X;return(a=N())==null?void 0:(X=a.questions)==null?void 0:X[E]}};
k={};return _.t("yt-slimline-survey-view-model",{class:_.Li("ytSlimlineSurveyViewModelHost",(k.ytSlimlineSurveyViewModelCollapsed=function(){return C()},k))},_.t("div",{class:"ytSlimlineSurveyViewModelContainer"},_.t(_.NI,{cond:function(){var w;
return((w=A())==null?void 0:w.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.t(S4I,{data:function(){return A()},
onSelect:function(w,x){var E,a;return _.F(function(X){n(!0);if(a=(E=W.data())==null?void 0:E.onSelectRating)_.zj(a),_.Q3(Aa2(x));_.ab(X)})},
onDismiss:function(){n(!0)}})}})))},"ra");var QxC=_.GM(function(W){return _.t("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.t(_.Ex,{data:function(){var k;return(k=W.data())==null?void 0:k.attachments}},{flexibleActionsViewModel:function(k){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(XC,{data:k.data,
layout:function(){var C;return((C=W.lockupStyle())==null?void 0:C.arrangement)===1?0:1},
justifyContentOverride:function(){var C;return((C=W.lockupStyle())==null?void 0:C.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(k){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(MmI,{data:k.data}))},
expandableMetadataViewModel:function(k){k=k.data;var C;return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},(C=_.f().resolve(_.qI(c_8)))==null?void 0:C({data:k}))},
adButtonGroupViewModel:function(k){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(IQZ,{data:k.data}))}}))},"sa");var jjw=_.Oe("rich_grid_min_item_width",310),OpX=_.Oe("rich_grid_max_item_width",500);var Y8z=_.GM(function(W){var k=W.data;return _.t("br-nz-badge-shape",{class:_.Li(function(){return kVm(k().brNzRatingBadgeType)}),
role:function(){return k().accessibilityText?"img":void 0},
"aria-label":function(){return k().accessibilityText}},function(){var C;
return(C=k())==null?void 0:C.text})},"ta");_.UK(Bfz);var pks,g5m;pks=_.GM(function(W){var k=function(){var C=W.data(),n,N;return C?NfK(C,!((n=W.workaroundShortsIsThumbnailBadge)==null||!n.call(W)),(N=W.modern)==null?void 0:N.call(W)):void 0};
return _.t("yt-badge-view-model",{class:_.Li("yt-badge-view-model-wiz",W.class)},_.t(_.Fc,null,_.t(_.Aj,{when:function(){var C;return!((C=k())==null||!C.brNzRatingBadgeType)}},function(){return _.t(Y8z,{data:function(){return k()}})}),_.t(_.Aj,{when:function(){return!!k()&&!k().brNzRatingBadgeType}},function(){return _.t(_.qj,{data:function(){return k()}})})))},"ua");
g5m=_.m("web_enable_sink_lockups_batch")?pks:Bfz;_.ha=_.m("web_enable_sink_lockups_batch")?pks:_.ry(Bfz);pks.idomCompat=!0;var AOc,b9z;AOc=16/9;b9z=2/3;_.W2=_.GM(function(W){var k=W.data;var C=W.className;var n=W.imageSizeConfig;var N=W.notifyOnLoaded;W=_.yE();var B=function(){return k().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},A=function(){var a;
return _.Mj((a=k())==null?void 0:a.rendererContext)},w={};
w=(w["yt-content-preview-image-view-model-wiz"]=!0,w["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return B()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},w["yt-content-preview-image-view-model-wiz--tappable"]=function(){return A()},w);
var x=function(){var a,X;return(X=(a=_.z(k().rendererContext,_.vB))==null?void 0:a.label)!=null?X:""},E=function(){return wUc(k())};
_.pX(W,function(){var a;return(a=k())==null?void 0:a.rendererContext});
return _.t("yt-content-preview-image-view-model",{el:W,role:function(){return A()?"link":void 0},
tabindex:function(){return A()?0:void 0},
class:_.Li(C,w,function(){var a=B();var X=n==null?void 0:n();a=a==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||a==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||a==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||a==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(X==null?void 0:X.size)!=null&&X.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(X==null?void 0:X.size)!=null&&X.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 a}),
style:function(){return FCX(B(),k().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",n==null?void 0:n(),x8P(E()),k().layoutWidth,k().layoutHeight)}},_.t(_.NI,{cond:E,
then:function(a){return _.t(_.pi,{data:a,alt:x,"data-disabled$":function(){return!x()},
notifyOnLoaded:N})}}),_.t(_.Ex,{data:function(){var a;
return(a=k())==null?void 0:a.overlays}},{thumbnailHoverOverlayViewModel:nGs,
thumbnailOverlayButtonViewModel:_.HZ}))},"va");
_.W2.idomCompat=!0;var kC=_.GM(function(W){var k=W.data;var C=W.className;var n=W.useSmallLayout;var N=W.useMediumText;W=_.yE();var B={};N=(B["yt-attribution-view-model-wiz"]=!0,B["yt-attribution-view-model-wiz--medium-text"]=N,B);_.pX(W,function(){var A;return(A=k())==null?void 0:A.rendererContext});
return _.t("yt-attribution-view-model",{el:W,class:_.Li(C,N)},_.t(_.NI,{cond:function(){return _.Mj(k().rendererContext)},
then:function(){return _.t("button",{class:"yt-attribution-view-model-wiz--tappable"},_.t(vix,{data:k,useSmallLayout:n}))},
else:function(){return _.t(vix,{data:k,useSmallLayout:n})}}))},"wa"),vix=_.GM(function(W){var k=W.data;
var C=W.useSmallLayout;var n=function(){return{size:(C==null?0:C())?16:24}};
return _.t(_.qf,null,_.t(_.Ex,{data:function(){return k().contentPreviewImage}},{contentPreviewImageViewModel:function(N){return _.t(_.W2,{data:N.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:n})}}),_.t(_.Ex,{data:function(){return k().badge}},{badgeViewModel:function(N){return _.t(_.ha,{data:N.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.t(_.NI,{cond:function(){return k().text},
then:function(){return _.t(_.Ya,{text:function(){return k().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.t(_.NI,{cond:function(){return k().suffix},
then:function(){return _.t(_.Ya,{text:function(){return k().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
kC.idomCompat=!0;var d8K=_.w7({avatarStackViewModel:_.FCS,badgeViewModel:g5m});_.UK(D8z);var ezA,sxx,Ge2,y_x,$mZ,ZWs,RzA;ezA=_.GM(function(W){var k=W.delimiter;var C=W.max;var n=W.index;var N=W.isStandalone;return _.t(_.NI,{cond:function(){return C()-1>n()},
then:function(){var B={};return _.t("span",{class:_.Li("yt-content-metadata-view-model-wiz__delimiter",(B["yt-content-metadata-view-model-wiz__delimiter--standalone"]=N,B)),"aria-hidden":!0},k)}})},"ya");
sxx=_.GM(function(W){var k=W.metadataPart;var C=W.maxLines;return _.t(_.Ya,{text:function(){return k().text},
linkInheritColor:!0,className:function(){return Vbm(C())},
userInput:!0})},"za");
Ge2=_.GM(function(W){var k=W.metadataPart;var C=W.maxLines;return _.t(_.qf,null,_.t(_.NI,{cond:function(){return k().tooltip},
then:function(n){return _.t("span",{title:n,role:"tooltip"},_.t(sxx,{metadataPart:k,maxLines:C}))},
else:function(){return _.t(sxx,{metadataPart:k,maxLines:C})}}))},"Aa");
y_x=_.GM(function(W){var k=W.metadataPart;var C=W.isOverlay;var n=W.useMediumText;var N=W.hideAvatar;var B=function(){return k().maxLines!==void 0?k().maxLines:1};
return _.t(_.qf,null,_.t(_.Ex,{data:function(){return k().avatarStack}},{avatarStackViewModel:function(A){return _.t(_.Ja,{data:A.data,
isOverlay:C,useMediumText:n,hideAvatar:N})},
badgeViewModel:_.ha}),_.t(_.NI,{cond:function(){return k().text},
then:function(){return _.t(Ge2,{metadataPart:k,maxLines:B})}}))},"Ba");
$mZ=_.GM(function(W){var k=W.metadataRow;var C=W.isInline;var n=W.delimiter;var N=W.isOverlay;var B=W.useMediumText;var A=W.extensions;var w=function(){var x;return tbw(A==null?void 0:(x=A())==null?void 0:x.lockupMetadata,k())};
W={};return _.t("div",{class:_.Li("yt-content-metadata-view-model-wiz__metadata-row",(W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=C,W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var x;return EGJ(A==null?void 0:(x=A())==null?void 0:x.lockupMetadata,k())},W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var x;
return!!(A==null?0:(x=A())==null?0:x.lockupMetadata)&&k().badges},W))},_.t(_.Ex,{data:function(){return k().badges}},{badgeViewModel:function(x){return _.t("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.t(_.ha,{data:x.data}))}}),_.t(_.bI,{each:function(){return k().metadataParts||[]}},function(x,E){return _.t(_.qf,null,_.t(y_x,{metadataPart:x,
isOverlay:N,useMediumText:B,hideAvatar:w}),_.t(ezA,{delimiter:n,max:function(){return k().metadataParts.length},
index:E,isStandalone:!1}))}),_.t(_.NI,{cond:function(){return k().isSpacerRow&&!C()},
then:function(){return _.t("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
ZWs=_.GM(function(W){var k=_.vp(W,{layout:0,isOverlay:!1});W=k.className;var C=k.data,n=k.layout,N=k.isOverlay,B=k.useMediumText,A=k.extensions;k=_.yE();var w=function(){return n()===0};
_.pX(k,function(){return C().rendererContext});
var x={};return _.t("yt-content-metadata-view-model",{class:_.Li(W,"yt-content-metadata-view-model-wiz",(x["yt-content-metadata-view-model-wiz--inline"]=w,x["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Mj(C().rendererContext)},x["yt-content-metadata-view-model-wiz--medium-text"]=B,x)),
el:k},_.t(_.bI,{each:function(){return C().metadataRows}},function(E,a){return _.t(_.qf,null,_.t($mZ,{metadataRow:E,
isInline:w,delimiter:function(){return C().delimiter},
isOverlay:N,useMediumText:B,extensions:A}),_.t(_.NI,{cond:function(){return w()&&!E.isSpacerRow},
then:function(){return _.t(ezA,{delimiter:function(){return C().delimiter},
max:function(){return C().metadataRows.length},
index:a,isStandalone:!0})}}))}))},"Da");
RzA=_.m("web_enable_sink_lockups_batch")?ZWs:D8z;_.oib=_.m("web_enable_sink_lockups_batch")?ZWs:_.ry(D8z);ZWs.idomCompat=!0;var Ux=_.w7({avatarViewModel:_.m4,decoratedAvatarViewModel:b92,contentMetadataViewModel:RzA,buttonViewModel:_.zn,attributionViewModel:kC,lockupAttachmentsViewModel:QxC});_.UK(Io4);var iWs=_.GM(function(W){var k={};return _.t("yt-lockup-metadata-view-model",{class:_.Li("yt-lockup-metadata-view-model-wiz",function(){a:{var C=W.lockupStyle();if(C==null?0:C.isOverlay)C="yt-lockup-metadata-view-model-wiz--overlay";else switch(C==null?void 0:C.arrangement){case 1:C="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:C="yt-lockup-metadata-view-model-wiz--vertical"}}return C},function(){a:{var C=W.lockupStyle();
if(C==null?0:C.isTiny)C="yt-lockup-metadata-view-model-wiz--tiny";else switch(C==null?void 0:C.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":C="yt-lockup-metadata-view-model-wiz--compact";break a;default:C="yt-lockup-metadata-view-model-wiz--standard"}}return C},(k["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.isOverlay},k["yt-lockup-metadata-view-model-wiz--card"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.isCard},k["yt-lockup-metadata-view-model-wiz--centered"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.isCentered},k["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.typographyBump},k["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.useLegacyTypography},k["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var C;
return(C=W.lockupStyle())==null?void 0:C.useRichGridLegacyTypography},k))},_.t(_.Ex,{data:function(){return W.data().image}},{avatarViewModel:function(C){return _.t("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.t(_.D_,{data:C.data}))},
decoratedAvatarViewModel:function(C){return _.t("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.t(_.VO,{data:C.data}))}}),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.t("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var C;return(C=W.data().title)==null?void 0:C.content}},_.t(_.NI,{cond:function(){return W.data().title},
then:function(C){return _.t(_.NE,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.t(_.Ya,{text:C}))}})),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.t(_.Ex,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(C){return _.t(_.oib,{data:C.data,
layout:1,useMediumText:function(){var n,N;return((n=W.lockupStyle())==null?void 0:n.typographyBump)||((N=W.lockupStyle())==null?void 0:N.useRichGridLegacyTypography)},
extensions:function(){var n,N;return{lockupMetadata:{byline:{hideAvatar:((n=W.lockupStyle())==null?void 0:n.arrangement)===0,addPadding:((N=W.lockupStyle())==null?void 0:N.arrangement)===1}}}}})}})),_.t(_.Ex,{data:function(){return W.data().attribution}},{attributionViewModel:function(C){return _.t("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.t(kC,{data:C.data,
useSmallLayout:!0}))}}),_.t("div",null,_.t(_.Ex,{data:function(){return W.data().attachmentSlot}},{lockupAttachmentsViewModel:function(C){return _.t(QxC,{data:C.data,
lockupStyle:W.lockupStyle})}}))),_.t("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.t(_.Ex,{data:function(){return W.data().menuButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
buttonOverrides:function(){var n;return((n=W.lockupStyle())==null?0:n.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),T6Z=_.m("web_enable_sink_lockups_batch")?iWs:_.ry(Io4);
iWs.idomCompat=!0;var q4x=_.GM(function(W){var k=_.yE();_.lI(function(){requestAnimationFrame(function(){_.sL(k.value)})});
var C={},n={},N={};return _.t("notification-multi-action-renderer",{class:_.Li("ytNotificationMultiActionRendererHost",(C.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var B;return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},C)),
el:k},_.t("span",{"aria-live":"polite",class:_.Li("ytNotificationMultiActionRendererTextContainer",(n.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var B;return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},n))},_.t(_.Ya,{text:function(){return W.data().responseText}})),_.t("div",{class:_.Li("ytNotificationMultiActionRendererButtonContainer",(N.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var B;
return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},N))},_.t(_.Ex,{data:function(){var B;
return(B=W.data().buttons)==null?void 0:B.map(function(A){if(A=A.buttonRenderer){var w,x=Object,E=x.assign,a=(w=A.icon)==null?void 0:w.iconType;w=(w=A.command||A.serviceEndpoint||A.navigationEndpoint)?{innertubeCommand:w}:void 0;A={buttonViewModel:E.call(x,{},{iconName:a,onTap:w,trackingParams:A.trackingParams,titleFormatted:A.text?_.t7(A.text):void 0},S8X(A))}}else A=void 0;return A}).filter(function(A){return!!A})}},{buttonViewModel:function(B,A){return _.t("div",null,_.t(_.zn,{data:B.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var w;return((w=W.useModernStyles)==null?0:w.call(W))?{type:A()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var un8=_.GM(function(W){var k=_.yE();_.lI(function(){requestAnimationFrame(function(){_.sL(k.value)})});
return _.t("notification-text-renderer",{el:k,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.t(_.Ya,{text:function(){return W.data().successResponseText}}))},"Ga");_.Umb=_.GM(function(W){var k=_.kj(QfX,function(){var n;return Mbp((n=W.contentId)==null?void 0:n.call(W))}),C=function(){var n;
return _.z((n=k())==null?void 0:n.command,_.F5)};
return _.t(_.NI,{cond:function(){var n;if(!(n=C())){var N;n=_.z((N=k())==null?void 0:N.command,wS8)}return n},
then:function(){return _.t(_.NI,{cond:C,then:function(){var n={};return _.t("div",{class:_.Li("ytDismissibleItemReplacedContent",function(){var N;return Q2K((N=W.aspectRatio)==null?void 0:N.call(W))})},_.t("div",{class:_.Li((n.ytDismissibleItemAspectRatioContainer=function(){var N;
return((N=W.aspectRatio)==null?void 0:N.call(W))!==void 0},n))},_.t(_.Ex,{data:function(){var N;
return(N=C())==null?void 0:N.item}},{notificationMultiActionRenderer:function(N){return _.t(q4x,{data:N.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:un8})))}})},
else:W.children})},"Ha");_.OWA=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;W=_.$I();var n=function(){var B;return((B=k().interaction)==null?0:B.onTap)?function(A){var w;ZpI(A,(w=k().interaction)==null?void 0:w.onTap,C)}:void 0},N=function(){var B,A=k(),w=n(),x=(B=_.z(k().rendererContext,_.vB))==null?void 0:B.label;
a:switch(A.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":B=1;break a;default:B=0}return{size:eiI(A.size),type:B,onTap:w,accessibilityText:x}};
_.uT(W,{visibilityCallback:function(B){var A,w=(A=k().interaction)==null?void 0:A.onFirstVisible;B&&w&&_.zj(w)},
showOption:_.gl});return _.t("ad-avatar-view-model",{class:function(){var B;return((B=k().interaction)==null?0:B.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.t(_.NI,{cond:function(){return k().image},
then:function(B){return _.t(eH,{data:N,image:B})}}))},"Ia");_.CG=_.GM(function(W){W=_.vp(W,{hasDot:!1});var k=Object.assign({},W),C=W.data,n=W.hasDot;W=W.customCommandResolver;var N=(delete k.data,delete k.hasDot,delete k.customCommandResolver,k);k=function(){return C().style};
k!==void 0&&k!==null||_.pS(Error("Eh"));k=_.yE();_.Zi(k,function(){return C().interaction},W);
return _.t("ad-badge-view-model",{class:_.Li(function(){var B;return((B=C().interaction)==null?0:B.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var B=N.adRenderingContextType();
C();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:k},_.t(_.qj,{data:function(){var B;C();var A=(B=C().label)==null?void 0:B.content;B=n();var w=C().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:A,adsIncludeDot:B,isOverlay:w}}}))},"Ja");var LL2;_.nG=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;var n=W.adRenderingContextType;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(N){var B,A=(B=k().interaction)==null?void 0:B.onFirstVisible;N&&A&&_.zj(A)},
showOption:_.gl});return _.t("ad-details-line-view-model",{class:function(){var N;return((N=k().interaction)==null?0:N.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:W},_.t(_.NI,{cond:function(){return k().style},
then:function(N){return _.t(_.bI,{each:function(){var B;return((B=k())==null?void 0:B.attributes)||[]},
keyBy:"INDEX"},function(B){return _.t(LL2,{attribute:B,style:N,adRenderingContextType:function(){return n()}})})}}))},"Ka");
LL2=_.GM(function(W){var k=W.attribute;var C=W.style;var n=W.adRenderingContextType;return _.t(_.NI,{cond:function(){return k().text},
then:function(N){return _.t(_.Ya,{text:N,className:function(){var B=n();C();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var jxs=_.GM(function(W){var k=W.data;var C=function(){return k().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.t(_.qf,null,_.t("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.t(_.Ya,{text:function(){return k().headline},
className:function(){return C()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.t(_.NI,{cond:function(){return k().description},
then:function(n){return _.t(_.Ya,{text:n,className:function(){return C()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.t("div",{class:function(){return C()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.t(_.Ex,{data:function(){return k().adBadge}},{adBadgeViewModel:function(n){return _.t(_.CG,{data:n.data,
hasDot:function(){return!!k().adDetailsLine},
adRenderingContextType:function(){return k().adRenderingContextType}})}}),_.t(_.Ex,{data:function(){return k().adDetailsLine}},{adDetailsLineViewModel:function(n){return _.t(_.nG,{data:n.data,
adRenderingContextType:function(){return k().adRenderingContextType}})}}))),_.t("div",{class:function(){return C()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:function(n){return _.t(_.zn,{data:n.data,
buttonOverrides:function(){a:switch(k().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var N="S";break a;default:N="M"}return{size:N}}})}})))},"Ma"),HWA=_.GM(function(W){var k=W.data;
var C=W.noBottomMargin;var n=W.useVideoLockupTopPadding;W={};W=_.Li("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return C==null?void 0:C()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},W));
var N=function(){return k().adBadge};
N!==void 0&&N!==null||_.pS(Error("Fh"));N={};return _.t(_.qf,null,_.t(_.NI,{cond:function(){return k().adAvatar},
then:function(){return _.t("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.t(_.Ex,{data:function(){return k().adAvatar}},{adAvatarViewModel:function(B){return _.t(_.OWA,{data:B.data})}}))}}),_.t("div",{class:W},_.t("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.t(_.Ya,{text:function(){return k().headline},
linkInheritColor:!0})),_.t(_.NI,{cond:function(){return k().description},
then:function(B){return _.t(_.Ya,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.t("div",{class:function(){return k().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.m("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.t(_.Ex,{data:function(){return k().adBadge}},
{adBadgeViewModel:function(B){return _.t(_.CG,{data:B.data,
hasDot:function(){return!!k().adDetailsLine},
adRenderingContextType:function(){return k().adRenderingContextType}})}}),_.t(_.Ex,{data:function(){return k().adDetailsLine}},{adDetailsLineViewModel:function(B){return _.t(_.nG,{data:B.data,
adRenderingContextType:function(){return k().adRenderingContextType}})}})),_.t(_.NI,{cond:function(){return k().secondaryDescription},
then:function(B){return _.t(_.Ya,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.t("div",{class:_.Li("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(N.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},N))},_.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:_.zn})))},"Na"),r_Y=_.GM(function(W){var k=W.data;
var C=W.noBottomMargin;var n=W.listenToTapEvent;var N=W.setTouchEndHandler;var B=W.useVideoLockupTopPadding;var A=_.yE();_.Zi(A,function(){return k().interaction},void 0,function(){return n==null?void 0:n()});
W=_.b(_.kw(!1,void 0,"rVW2Qd"));var w=W.next().value,x=W.next().value;W=_.Pj(function(){(N==null?0:N())&&!w()&&(A.value.click(),x(!0),setTimeout(function(){x(!1)},100));
return!1});
_.uT(A,{visibilityCallback:function(E){var a,X=(a=k().interaction)==null?void 0:a.onFirstVisible;E&&X&&_.zj(X)},
showOption:_.gl});return _.t("feed-ad-metadata-view-model",{class:function(){var E;return((E=k().interaction)==null?0:E.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:A,"on:touchend":W},_.t(_.Fc,null,_.t(_.Aj,{when:function(){return k().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.t(jxs,{data:k})}),_.t(_.Aj,{when:function(){return k().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.t(HWA,{data:k,
noBottomMargin:C,useVideoLockupTopPadding:B})})))},"Oa");var Nk=_.GM(function(W){return _.t("yt-lockup-view-model",{class:_.Li(W.className)},_.t(_.Umb,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var k,C;return((k=W.containerType)==null?void 0:k.call(W))!==3?hpm(W.data().contentType,(C=W.force16By9ThumbnailAspectRatio)==null?void 0:C.call(W)):void 0}},function(){return _.t(giA,Object.assign({},W))}))},"Pa"),giA=_.GM(function(W){W=_.vp(W,{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 k=W.data,C=W.containerLayoutConfig,n=W.containerType,N=W.sizing,B=W.protectBackground,A=W.typographyBump,w=W.force16By9ThumbnailAspectRatio,x=W.thumbnailFixedWidth,E=W.thumbnailTargetWidth,a=W.lockupExperiments,X=W.elementsPerRow;W=_.yE();_.pX(W,function(){var lw;return(lw=k())==null?
void 0:lw.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 d=_.X8(EF4),V=_.f().resolve(_.qI(xm2)),c=V?{}:void 0,M=function(){var lw,G4,nA;return(nA=(G4=_.z((lw=k())==null?void 0:lw.rendererContext,_.vB))==null?void 0:G4.label)!=null?nA:void 0},p=function(){var lw=C==null?void 0:C(),G4;
if(lw==null?0:lw.containerType){var nA=(G4=k())==null?void 0:G4.contentType;G4=a();var Xs=A(),aI=E(),LA=B();lw=Object.assign({},WCX(gFX(lw),HpK(lw.responsiveSize),Xs,nA,lw.force16By9ThumbnailAspectRatio,aI,LA,G4),{thumbnailFixedWidth:lw.contentPreviewWidth})}else lw=WCX(n(),N(),A(),(nA=k())==null?void 0:nA.contentType,w(),E(),B(),a());return lw};
V&&c&&V({enabled:function(){return d()},
itemPlaybackModel:function(){return k().itemPlayback},
thumbnailElRef:function(){return c.thumbnailElRef},
containerElRef:W,options:function(){var lw,G4=(lw=_.z(k().metadata,Rj8))==null?void 0:lw.endorsement;lw=c.thumbnailOverlays||[];G4&&lw.push(G4);var nA,Xs;return{thumbnail:c.thumbnail,thumbnailOverlays:lw,accessibilityText:M(),thumbnailSize:c.thumbnailSize,enableRounding:p().isCollection,containPlayerWithinThumbnail:p().isCollection,trackingParams:(nA=_.z(k().rendererContext,_.yPP))==null?void 0:(Xs=nA.loggingDirectives)==null?void 0:Xs.trackingParams}}});
var e=0;V=_.b(_.kw(!1,void 0,"BKBkhb"));var u=V.next().value,h=V.next().value;V=_.b(_.kw(!1,void 0,"GK0mq"));var L=V.next().value,Bw=V.next().value;V=_.Pj(function(){var lw=d()&&k().itemPlayback;L()?(_.aM.cancelJob(e),e=_.aM.addJob(function(){h(!lw)},8,32)):h(!lw);
return!0});
_.Zx(W,"mouseleave",function(){e&&(_.aM.cancelJob(e),e=0);h(!1)});
_.fy(function(){e&&(_.aM.cancelJob(e),e=0)});
var P=vGp(function(){Bw(!0)}),xz=P.touchFeedbackEvents,Sp=P.touchFeedbackOnPointerUp,vw=P.touchFeedbackOnPointerDown;
_.Zx(W,"pointerleave",P.touchFeedbackOnPointerLeave);P={};return _.t("div",{el:W,class:_.Li("yt-lockup-view-model-wiz",function(){a:{var lw=p();if(lw.isOverlay)lw="yt-lockup-view-model-wiz--overlay";else switch(lw.arrangement){case 1:lw="yt-lockup-view-model-wiz--horizontal";break a;default:lw="yt-lockup-view-model-wiz--vertical"}}return lw},function(){a:{var lw=p();
if(lw.isOverlay)lw="yt-lockup-view-model-wiz--overlay";else{switch(lw.collectionStackNumber){case 1:lw="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:lw="yt-lockup-view-model-wiz--collection-stack-2";break a}lw=void 0}}return lw},(P["yt-lockup-view-model-wiz--card"]=function(){return p().isCard},P["yt-lockup-view-model-wiz--compact"]=function(){return p().isTiny||p().sizing!=="STANDARD"},P["yt-lockup-view-model-wiz--protect-background"]=B,P["yt-lockup-view-model-wiz--add-margins"]=
function(){return p().addMarginForFullbleed},P["yt-lockup-view-model-wiz--centered"]=function(){return p().isCentered},P["yt-lockup-view-model-wiz--fullbleed"]=function(){return p().fullbleed},P["yt-lockup-view-model-wiz--single-column-grid"]=function(){return X()===1&&n()===2},P["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var lw;
return(lw=a())==null?void 0:lw.useRichGridLegacyMargin},P)),
"on:mousedown":vw,"on:mouseup":Sp,"on:mouseover":V,"on:touchstart":vw,"on:touchend":Sp},_.t(_.NE,{command:function(){var lw;return _.SH((lw=k())==null?void 0:lw.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return x()&&p().arrangement===1?"width: "+x():""}},_.t(_.Ex,{data:function(){var lw;
return(lw=k())==null?void 0:lw.contentImage}},{thumbnailViewModel:function(lw){return _.t(rl,{data:lw.data,
aspectRatio:function(){return p().aspectRatio},
disableRounding:function(){return p().disableRounding},
width:E,hovered:u,isClip:function(){var G4;return((G4=k())==null?void 0:G4.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:lsI(c),lockupExperiments:function(){return a()}})},
collectionThumbnailViewModel:function(lw){return _.t(J_2,{data:lw.data,aspectRatio:function(){return p().aspectRatio},
disableRounding:function(){return p().disableRounding},
width:E,doubleStack:function(){return p().collectionStackNumber===2},
hovered:u,playbackRef:lsI(c)})},
decoratedAvatarViewModel:_.VO})),_.t("div",{class:"yt-lockup-view-model-wiz__metadata"},_.t(_.Ex,{data:function(){var lw;return(lw=k())==null?void 0:lw.metadata}},{lockupMetadataViewModel:function(lw){return _.t(T6Z,{data:lw.data,
lockupStyle:p,lockupCommand:function(){var G4;return _.SH((G4=k())==null?void 0:G4.rendererContext)},
lockupAccessibilityLabel:function(){return M()}})},
feedAdMetadataViewModel:function(lw){return _.t(r_Y,{data:lw.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.t(_.Ex,{data:function(){var lw;
return(lw=k())==null?void 0:lw.attachmentSlot}},{lockupAttachmentsViewModel:function(lw){return _.t(QxC,{data:lw.data,
lockupStyle:p})}})),_.t(_.BJ,{model:function(){a:{switch(p().collectionStackNumber){case 1:var lw=8;
break a;case 2:lw=12;break a}lw=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:lw}},
pointerDownEvent:xz.pointerDownEvent,pointerUpEvent:xz.pointerUpEvent,pointerLeaveEvent:xz.pointerLeaveEvent}))},"Qa");
Nk.idomCompat=!0;_.Gj(Nk,"yt-lockup-view-model",{props:{data:_.Ik,containerLayoutConfig:_.Ik,containerType:_.Ik,sizing:_.Ik,protectBackground:_.Ik,typographyBump:_.Ik,thumbnailFixedWidth:_.Ik,thumbnailTargetWidth:_.Ik,force16By9ThumbnailAspectRatio:_.Ik,className:_.Ik,lockupExperiments:_.Ik,elementsPerRow:_.Ik}});_.UK(Rip);var U8w=_.w7({buttonViewModel:_.zn}),PLx=_.ry(q8J);_.UK(q8J);_.UK(i9w);_.UK(TfJ);_.Gj(PLx,"yt-video-attribute-view-model",{props:{data:_.Ik,className:_.Ik}});var KL8=function(){var W=_.R.apply(this,arguments)||this;W.useHighlightStyling=_.m("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$12902_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.D(KL8,_.R);_.Y=KL8.prototype;
_.Y.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}}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.LO(this,this.onPageChange))};
_.Y.detached=function(){document.removeEventListener("yt-page-type-changed",_.LO(this,this.onPageChange))};
_.Y.getItemsPath=function(){return"data.cards"};
_.Y.onIronResize=function(){this.updateListStyles()};
_.Y.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.m("problem_walkthrough_sd")&&!!this.centerItems};
_.Y.computeCardListStyle=function(W){return W||null};
_.Y.computeEmpty=function(W){return!this.get("cards.length",W)};
_.Y.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.Y.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.Y.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.Y.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.Y.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(k){return k.gameCardRenderer}):!1};
_.Y.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.Y.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(k){return k.miniGameCardViewModel&&k.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.Y.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(k){return k.miniGameCardViewModel&&k.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.Y.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(k){return k.miniGameCardViewModel&&k.miniGameCardViewModel.width===135}):!1};
_.Y.computeCenterItems=function(W){return!!W};
_.Y.computeHasInfoPanel=function(W){var k;return W==null?void 0:(k=W.cards)==null?void 0:k.some(function(C){return C.infoPanelContentRenderer})};
_.Y.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.Y.getItemByIndex=function(W){var k=this.items.children;return k&&k.length>W?k[W]:void 0};
_.Y.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.aM.addJob(function(){W.pageLoadingFromNavigation=!1;_.hA(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.Y.updateListStyles=function(){if(_.m("problem_walkthrough_sd")&&this.JSC$12902_scrollContainer!==void 0){var W=this.JSC$12902_scrollContainer.clientWidth;W!==this.JSC$12902_lastScrollContainerWidth&&(this.JSC$12902_lastScrollContainerWidth=W,_.Op(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.Pe(this.hostElement,"iron-resize"))}};
_.oq.Object.defineProperties(KL8.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.m("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return _.m("kevlar_modern_sd")&&!!((W=this.data)==null?0:(k=W.cards)==null?0:(C=k[0])==null?0:C.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return!!((W=this.data)==null?0:(k=W.cards)==null?0:(C=k[0])==null?0:C.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return _.m("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(k=W.cards)==null?0:(C=k[0])==null?0:C.infoPanelContentRenderer)}}});
var YC=KL8;YC.prototype.dataChanged=YC.prototype.dataChanged;YC.prototype.onIronResize=YC.prototype.onIronResize;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],YC.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],YC.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YC.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],YC.prototype,"useCustomColors",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YC.prototype,"useHighlightStyling",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.O("design:type",Object)],YC.prototype,"cardListStyle",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.O("design:type",Boolean)],YC.prototype,"empty",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasSubtitle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.O("design:type",Boolean)],YC.prototype,"thumbnailStyle",void 0);_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasGameCard",void 0);_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.O("design:type",Boolean)],YC.prototype,"centerHeaderTitle",void 0);
_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasPortraitMiniApp",void 0);_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasSquareMiniApp",void 0);_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.U([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.O("design:type",Boolean)],YC.prototype,"hasInfoPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YC.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],YC.prototype,"inlineStructuredDescription",void 0);_.U([_.gi("#scroll-container"),_.O("design:type",HTMLDivElement)],YC.prototype,"JSC$12902_scrollContainer",void 0);
_.U([_.Z({computed:"computeInitialCountNumber(data.style.type)"}),_.O("design:type",Number)],YC.prototype,"initialCount",void 0);_.U([_.Z({computed:"computeUseFloorScrolling(data.style.type)"}),_.O("design:type",Boolean)],YC.prototype,"useFloorScrolling",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.O("design:type",Boolean)],YC.prototype,"centerItems",void 0);_.U([_.Z(),_.O("design:type",Object)],YC.prototype,"pageLoadingFromNavigation",void 0);
_.U([_.Z(),_.O("design:type",Object)],YC.prototype,"currentIndex",void 0);_.U([_.Z(),_.O("design:type",Number)],YC.prototype,"scrollCount",void 0);_.U([_.Z(),_.O("design:type",Object)],YC.prototype,"supportComponentResize",void 0);_.U([_.gi("#items"),_.O("design:type",HTMLDivElement)],YC.prototype,"items",void 0);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YC.prototype,"onIronResize",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YC.prototype,"dataChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.G("inlineStructuredDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YC.prototype,"hideNavigationButton",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YC.prototype,"modernChapters",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YC.prototype,"hasVideoAttributeViewModels",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YC.prototype,"modernInfoPanels",null);YC=_.U([_.T({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],YC);
_.q(YC,"ytd-horizontal-card-list-renderer",function(){if(Z9s!==void 0)return Z9s;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Z9s=W},{mode:_.UC("kevlar_poly_si_batch_j072")?1:2});_.UK(LC2);var hzY=_.ry(LC2);_.qN(LC2,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var WnA=function(){var W=_.R.apply(this,arguments)||this;var k,C;W.isExpanded=(C=(k=W.data)==null?void 0:k.isExpanded)!=null?C:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(n){W.disableExpand||(n.stopPropagation(),_.sJ(_.vl(n),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$12914_cardList&&!_.m("expandable_metadata_a11y_fix_ks")&&_.ZR(W,function(){_.ek(W.hostElement)})))};
W.useSquareThumbnail=!1;W.startX=0;return W};
_.D(WnA,_.R);_.Y=WnA.prototype;_.Y.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.Y.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"}}}}};
_.Y.dataChanged=function(){if(this.data){var W,k;this.isExpanded=(k=(W=this.data)==null?void 0:W.isExpanded)!=null?k:!1;var C,n,N,B;if(W=this.isDarkTheme()?(C=this.data)==null?void 0:(n=C.colorData)==null?void 0:n.darkColorPalette:(N=this.data)==null?void 0:(B=N.colorData)==null?void 0:B.lightColorPalette){var A,w;if((A=this.data)==null?0:(w=A.colorData)==null?0:w.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.lV(this.hostElement,W)}}};
_.Y.isExpandedChanged=function(){this.isExpanded&&this.JSC$12914_cardList&&_.Pe(this.JSC$12914_cardList,"iron-resize")};
_.Y.computeIsExpanded=function(W){return!!W.isExpanded};
_.Y.computeShowProminentLabel=function(W,k){var C;return!!(W==null?0:(C=W.header)==null?0:C.showLeadingCollapsedLabel)&&!k};
_.Y.computeShowRightSideLabel=function(W,k){var C;return!(W==null?0:(C=W.header)==null?0:C.showLeadingCollapsedLabel)&&!k};
_.Y.captureContentClick=function(W){if(!this.disableExpand)if(_.m("expandable_metadata_fix_killswitch")){var k=W.target;_.v3S(k,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(k==null?void 0:k.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.sJ(_.vl(W),this.hostElement,["items"])||_.er(_.vl(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.Y.timestampClick=function(W){W.stopPropagation();var k,C;(W=(k=this.data)==null?void 0:(C=k.header)==null?void 0:C.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.Y.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.Y.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.Y.skipKeyInteraction=function(W){var k=W.target;if((k==null?void 0:k.id)==="scroll-container"||(k==null?void 0:k.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.vl(W);W=_.b(W);for(k=W.next();!k.done;k=W.next()){k=k.value;if(k===this.hostElement)break;if(k.hasAttribute&&k.hasAttribute("skip-key-interaction"))return!0}return!1};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.oq.Object.defineProperties(WnA.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.z((W=this.data)==null?void 0:W.expandedContent,WVx)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.z((W=this.data)==null?void 0:W.expandedContent,o7s)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.useCustomColors)&&!((k=this.data)==null||!k.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.data)==null?0:(k=W.header)==null?0:k.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.data)==null?0:(k=W.header)==null?0:k.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.data)==null?0:(k=W.header)==null?0:k.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var B2=WnA;B2.prototype.onUp=B2.prototype.onUp;B2.prototype.onDown=B2.prototype.onDown;B2.prototype.isExpandedChanged=B2.prototype.isExpandedChanged;B2.prototype.dataChanged=B2.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],B2.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],B2.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],B2.prototype,"isExpanded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],B2.prototype,"disableExpand",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],B2.prototype,"isSearch",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],B2.prototype,"isWatch",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.O("design:type",Object)],B2.prototype,"showProminentLabel",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.O("design:type",Object)],B2.prototype,"showRightSideLabel",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"hasVideoSummary",null);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"hasLockupViewModel",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","isWatch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"useCustomColors",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"showInfoButton",null);_.U([_.G("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"showTimestamp",null);_.U([_.G("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"showExpandedSubtitle",null);
_.U([_.G("data","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B2.prototype,"showThumbnail",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],B2.prototype,"useVppShoppingDestinationStyle",null);_.U([_.Z(),_.O("design:type",Object)],B2.prototype,"toggleExpandableContent",void 0);_.U([_.gi("ytd-horizontal-card-list-renderer"),_.O("design:type",Object)],B2.prototype,"JSC$12914_cardList",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.O("design:type",Object)],B2.prototype,"useSquareThumbnail",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],B2.prototype,"dataChanged",null);_.U([_.Hl("isExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],B2.prototype,"isExpandedChanged",null);
_.U([_.jI("down"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],B2.prototype,"onDown",null);_.U([_.jI("up"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],B2.prototype,"onUp",null);B2=_.U([_.T({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],B2);
_.q(B2,"ytd-expandable-metadata-renderer",function(){if(XCs!==void 0)return XCs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return XCs=W},{mode:1});var kaS,Cqs=function(){if(kaS!==void 0)return kaS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return kaS=W};_.EJ("itemSectionRenderer","videoRenderer","ytd-video-renderer");var bi=function(){var W=_.R.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.D(bi,_.R);_.Y=bi.prototype;_.Y.computeUseSearchUi=function(){var W,k;return this.isSearch||((W=this.data)==null?void 0:(k=W.style)==null?void 0:k.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.m("polymer_video_renderer_defer_menu")&&!lJ2?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]]"}}}}}};
_.Y.attached=function(){_.qw(this.hostElement,"blue-links",_.m("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.uK(_.S(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),k;W&&((k=_.z(W.commandMetadata,_.au))==null?0:k.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12919_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.JSC$12919_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12919_inlinePreviewHoverListener)==null||PB(W)};
_.Y.onTextWrapperClick=function(W){var k,C,n=this.hideTranslation?(k=this.data)==null?void 0:k.untranslatedNavigationEndpoint:(C=this.data)==null?void 0:C.navigationEndpoint;k=_.sJ(_.vl(W),this.hostElement,["expandable-metadata"]);!n||k&&!_.m("expandable_metadata_fix_killswitch")||_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString()])||_.Pe(this.hostElement,"yt-navigate",{endpoint:n})};
_.Y.computeThumbnailWidth=function(W,k,C,n,N){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:n?N==="MASSIVE"?600:N==="BIG"?500:N==="MEDIUM"?450:420:C?360:k?128:W?210:246};
_.Y.computeUseBiggerThumbs=function(W){return W&&_.m("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.Y.computeVideoStyle=function(){if(_.m("enable_video_style")){var W,k;return(W=this.data)==null?void 0:(k=W.style)==null?void 0:k.value}};
_.Y.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.handleHideItemSectionVideosByIdCommand=function(W){var k;W=(k=_.z(W,J9z))==null?void 0:k.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.Y.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.Y.computeTitleText=function(W,k,C){return W?C:k};
_.Y.computeDescriptionSnippet=function(W,k,C){return W?C:k};
_.Y.computeSnippetText=function(W,k,C){return W?C:k};
_.Y.computeNavigationEndpoint=function(W,k){return W?k==null?void 0:k.untranslatedNavigationEndpoint:k==null?void 0:k.navigationEndpoint};
_.Y.hideInlineTitleIcon=function(W,k){return W||!k};
_.oq.Object.defineProperties(bi.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12919_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.oq.Object.defineProperties(bi,{template:{configurable:!0,enumerable:!0,get:function(){return Cqs()}}});
var Ac=bi;Ac.prototype.dataChanged=Ac.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Ac.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.MC),_.O("design:type",Object)],Ac.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ac.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ac.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ac.prototype,"isBackstageVideo",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ac.prototype,"isPostCompactVideo",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ac.prototype,"isHistory",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ac.prototype,"isRichGridVideoPost",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ac.prototype,"isHidden",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Ac.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.O("design:type",Boolean)],Ac.prototype,"useSearchUi",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.O("design:type",Boolean)],Ac.prototype,"useThreeLineTitle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.O("design:type",Boolean)],Ac.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.O("design:type",Object)],Ac.prototype,"videoStyle",void 0);_.U([_.Z({computed:"computeDisableExpand(videoStyle)"}),_.O("design:type",Object)],Ac.prototype,"disableExpand",void 0);
_.U([_.Z({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.O("design:type",Object)],Ac.prototype,"shouldShowChannelInfo",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],Ac.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.O("design:type",String)],Ac.prototype,"inlineTitleIcon",void 0);_.U([_.Z({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.O("design:type",Object)],Ac.prototype,"computedNavigationEndpoint",void 0);_.U([_.Z({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,k){return _.hQ(W.entities,"searchVideoResultEntity",k)}}),
_.O("design:type",Object)],Ac.prototype,"searchVideoResultEntity",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],Ac.prototype,"thumbnail",void 0);_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],Ac.prototype,"JSC$12919_dismissibleMedia",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ac.prototype,"dataChanged",null);
_.U([_.G("searchVideoResultEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ac.prototype,"hideTranslation",null);_.U([_.G("searchVideoResultEntity"),_.O("design:type",Array),_.O("design:paramtypes",[])],Ac.prototype,"hiddenBadgeGroups",null);_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ac.prototype,"isHovered",null);Ac=_.U([_.T({is:"ytd-video-renderer",disableElementRegistration:!0})],Ac);
_.q(Ac,"ytd-video-renderer",function(){return Cqs()},{mode:_.UC("kevlar_poly_si_batch_j047")?1:2});var n5Y=function(){var W=_.R.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.m("reduce_side_paddings_in_shelf");W.JSC$12925_spinnerEl=null;return W};
_.D(n5Y,_.R);_.Y=n5Y.prototype;
_.Y.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"}}}};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var k=0,C=this.data.actions&&this.data.actions.length;k<C;k++)this.openEditDialog(_.z(this.data.actions[k],PsC));if((k=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(k=this.get("buttonRenderer.hint.hintRenderer.hintId",k))&&k.startsWith("share-post-hint")){var n=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(n){_.q$.getInstance();var N=u8(_.Go(_.w8("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.aM.addLowPriorityJob(function(){_.CB(W.hostElement,N,n)})}}}};
_.Y.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12925_spinnerEl||(this.JSC$12925_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S(this.hostElement).appendChild(this.JSC$12925_spinnerEl));this.JSC$12925_spinnerEl&&(this.JSC$12925_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(W){var k=this.get("updateCommentDialogEndpoint",W.detail.endpoint);k&&(this.openEditDialog(k),W.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(W,k){k&&this.updatePoll(k.selectedChoiceIndex)};
_.Y.onYtServiceRequestSent=function(W,k){var C;k.endpoint&&(_.z(k.endpoint,FS2)||_.z(k.endpoint,A4b)&&((C=_.z(k.endpoint,A4b))==null||!C.clientActions))&&(this.isLoading=!0);if(k.actions)for(W=0;W<k.actions.length;W++)C=k.actions[W],_.z(C,tT)&&(C=this.get("updateBackstagePollAction.selectedChoiceIndex",C),C==void 0&&(C=-1),this.updatePoll(C))};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.Y.computeIsPostHidden=function(W,k){return!!W||k};
_.Y.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.Y.computePostAttachment=function(W){if(W.backstageAttachment){if(_.z(W.backstageAttachment,u5A))return"poll";if(_.z(W.backstageAttachment,SqC))return"quiz";if(_.z(W.backstageAttachment,_.PuI))return"video";if(_.z(W.backstageAttachment,MCz))return"uploaded-videos";if(_.z(W.backstageAttachment,IuI))return W.contentText?"image":"image-only";if(_.z(W.backstageAttachment,VC2))return"playlist"}return"none"};
_.Y.computePostTabIndex=function(W){return W?0:-1};
_.Y.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.Y.computeHasText=function(W){return!(W==null||!W.contentText)};
_.Y.onTap=function(W){var k,C;if(((k=this.data)==null?0:k.navigationEndpoint)&&((C=this.data)==null?void 0:C.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var n;((n=this.data)==null?0:n.navigationEndpoint)&&!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.oq.Object.defineProperties(n5Y.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Go("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,u5A))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,MCz))}}});
var FT=n5Y;FT.prototype.onYtServiceRequestCompleted=FT.prototype.onYtServiceRequestCompleted;FT.prototype.onYtServiceRequestSent=FT.prototype.onYtServiceRequestSent;FT.prototype.onYtCommentPollRevert=FT.prototype.onYtCommentPollRevert;FT.prototype.onYtCommentboxDismiss=FT.prototype.onYtCommentboxDismiss;FT.prototype.onYtNavigate=FT.prototype.onYtNavigate;FT.prototype.isLoadingChanged=FT.prototype.isLoadingChanged;FT.prototype.dataChanged=FT.prototype.dataChanged;FT.prototype.contentTextChanged=FT.prototype.contentTextChanged;
_.U([_.v(_.md),_.O("design:type",Object)],FT.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FT.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],FT.prototype,"editDialog",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],FT.prototype,"roundedContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],FT.prototype,"isLoading",void 0);_.U([_.Z({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.O("design:type",String)],FT.prototype,"surface",void 0);
_.U([_.Z({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.O("design:type",Boolean)],FT.prototype,"usesCompactLockup",void 0);_.U([_.Z({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],FT.prototype,"showWithoutToolbar",void 0);_.U([_.Z({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.O("design:type",String)],FT.prototype,"attachment",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],FT.prototype,"isRichGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],FT.prototype,"isRichGridRepost",void 0);_.U([_.Z({reflectToAttribute:!0,value:_.m("use_better_post_dismissals")}),_.O("design:type",Boolean)],FT.prototype,"useBetterPostDismissals",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],FT.prototype,"reduceSidePaddings",void 0);
_.U([_.Z({computed:"computeHasText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],FT.prototype,"hasText",void 0);_.U([_.gi("#expander"),_.O("design:type",Object)],FT.prototype,"expander",void 0);_.U([_.gi("#action-buttons"),_.O("design:type",Object)],FT.prototype,"actionButtons",void 0);_.U([_.gi("#edit-dialog"),_.O("design:type",HTMLElement)],FT.prototype,"editDialogEl",void 0);
_.U([_.Hl("data.contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FT.prototype,"contentTextChanged",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FT.prototype,"dataChanged",null);_.U([_.Hl("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FT.prototype,"isLoadingChanged",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],FT.prototype,"onYtNavigate",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FT.prototype,"onYtCommentboxDismiss",null);_.U([_.jI("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],FT.prototype,"onYtCommentPollRevert",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],FT.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],FT.prototype,"onYtServiceRequestCompleted",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],FT.prototype,"voteCount",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],FT.prototype,"commentCount",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FT.prototype,"hasPoll",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FT.prototype,"hasUploadedVideo",null);FT=_.U([_.T({is:"ytd-post-renderer",disableElementRegistration:!0})],FT);
_.q(FT,"ytd-post-renderer",function(){if(XAC!==void 0)return XAC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return XAC=W},{mode:1});var N5I;var YEY;var B5s=function(){return _.R.apply(this,arguments)||this};
_.D(B5s,_.R);B5s.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var wO=B5s;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],wO.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],wO.prototype,"componentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],wO.prototype,"data",void 0);_.U([_.Z({value:"$.items.children"}),_.O("design:type",String)],wO.prototype,"itemsPath",void 0);_.U([_.Z({value:1}),_.O("design:type",Number)],wO.prototype,"initialCount",void 0);_.U([_.Z(),_.O("design:type",String)],wO.prototype,"surface",void 0);wO=_.U([_.T({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],wO);
_.q(wO,"ytd-post-multi-image-renderer",function(){if(YEY!==void 0)return YEY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return YEY=W},{mode:_.UC("kevlar_poly_si_batch_j079")?1:2});var bZA={"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"}}},AqZ=function(){var W=_.R.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$12941_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.D(AqZ,_.R);_.Y=AqZ.prototype;_.Y.configureRendererStamper=function(){return bZA};
_.Y.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.Y.getPublishTimeStampString=function(W,k){k=new Date((Number(k)-60*((new Date).getTimezoneOffset()-(new Date(Number(k)*1E3)).getTimezoneOffset()))*1E3);k=(new eW(10)).format(k);if(W&&W.runs&&W.runs.length)for(var C=0;C<W.runs.length;C++)W.runs[C].text&&(W.runs[C].text=W.runs[C].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",k));return W};
_.Y.created=function(){this.JSC$12941_spinnerEl=null};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.b(this.data.actions);for(var k=W.next();!k.done;k=W.next())this.openEditDialog(_.z(k.value,PsC))}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){_.S(this.hostElement).querySelector("#action-buttons").reply()};
_.Y.updatePoll=function(W,k){k&&this.set("data.pollMetadataVoteCountText",k);this.hasInlineCommentSection&&(W=W>=0,k=_.S(this.hostElement).querySelector("#action-buttons"),W?k.reply():k.hideReplyDialog())};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12941_spinnerEl||(this.JSC$12941_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S(this.hostElement).appendChild(this.JSC$12941_spinnerEl));this.JSC$12941_spinnerEl&&(this.JSC$12941_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(W){var k=this.get("updateCommentDialogEndpoint",W.detail.endpoint);k&&(this.openEditDialog(k),W.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(W,k){k&&this.updatePoll(k.selectedChoiceIndex,k.totalVotes)};
_.Y.onYtServiceRequestSent=function(W,k){W.stopPropagation();W=_.z(k.endpoint,A4b);if(_.z(k.endpoint,FS2)||W&&!W.clientActions)this.isLoading=!0;if(k.actions)for(W=0;W<k.actions.length;W++){var C=k.actions[W],n=_.z(C,tT);n&&(C=this.get("updateBackstagePollAction.selectedChoiceIndex",C),C===void 0&&(C=-1),this.updatePoll(C,n.totalVotes))}};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.Y.computeIsBodyHidden=function(W,k){return!!W||k};
_.oq.Object.defineProperties(AqZ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,k;if((W=this.data)==null?0:(k=W.pollMetadataIcon)==null?0:k.iconType)return _.Hp(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Go("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,u5A))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,SqC))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.z(this.data.backstageAttachment,MCz))}}});
var xC=AqZ;xC.prototype.onYtServiceRequestCompleted=xC.prototype.onYtServiceRequestCompleted;xC.prototype.onYtServiceRequestSent=xC.prototype.onYtServiceRequestSent;xC.prototype.onYtCommentPollRevert=xC.prototype.onYtCommentPollRevert;xC.prototype.onYtCommentboxDismiss=xC.prototype.onYtCommentboxDismiss;xC.prototype.onYtNavigate=xC.prototype.onYtNavigate;xC.prototype.isLoadingChanged=xC.prototype.isLoadingChanged;xC.prototype.dataChanged=xC.prototype.dataChanged;xC.prototype.contentTextChanged=xC.prototype.contentTextChanged;
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],xC.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xC.prototype,"rendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xC.prototype,"rendererstamperBehavior",void 0);_.U([_.gi("#contentTextExpander"),_.O("design:type",Object)],xC.prototype,"expander",void 0);
_.U([_.gi("#edit-dialog"),_.O("design:type",Element)],xC.prototype,"editDialogElement",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"hasInlineCommentSection",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"editDialog",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"isLoading",void 0);
_.U([_.Z({computed:"computeIsPollHeaderEnabled(data)"}),_.O("design:type",Boolean)],xC.prototype,"isPollHeaderEnabled",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"shouldHideAuthor",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"shouldShowVideoTime",void 0);_.U([_.Z(),_.O("design:type",Object)],xC.prototype,"isInEngagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xC.prototype,"hideBorder",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xC.prototype,"usesFullLockup",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xC.prototype,"shouldShowMenuInCompactView",void 0);_.U([_.G("isInEngagementPanel"),_.O("design:type",Number),_.O("design:paramtypes",[])],xC.prototype,"postTextMaxLines",null);_.U([_.G("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],xC.prototype,"pollIcon",null);
_.U([_.Hl("data.contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xC.prototype,"contentTextChanged",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xC.prototype,"dataChanged",null);_.U([_.Hl("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xC.prototype,"isLoadingChanged",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xC.prototype,"onYtNavigate",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xC.prototype,"onYtCommentboxDismiss",null);_.U([_.jI("yt-comment-poll-revert"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],xC.prototype,"onYtCommentPollRevert",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],xC.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xC.prototype,"onYtServiceRequestCompleted",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],xC.prototype,"voteCount",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],xC.prototype,"commentCount",null);_.U([_.G("data.backstageAttachment"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xC.prototype,"hasPoll",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xC.prototype,"hasQuiz",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xC.prototype,"hasUploadedVideo",null);
xC=_.U([_.T({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],xC);
_.q(xC,"ytd-backstage-post-renderer",function(){if(N5I!==void 0)return N5I;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return N5I=W},{mode:1});var Fn8;var wEC=function(){var W=_.R.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.D(wEC,_.R);_.Y=wEC.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.Y.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.Y.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.Y.computeShowFullContentText=function(W){return!W};
_.Y.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.Y.onTap=function(W){if(this.data){var k=null;this.usesCompactLockup&&!_.er(_.vl(W)||[],this.hostElement,["YT-IMG-SHADOW"])?k=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(k=this.get("navigationEndpoint",W.target.data));k&&_.Pe(this.hostElement,"yt-navigate",{endpoint:k})}};
var li=wEC;li.prototype.onYtCommentboxDismiss=li.prototype.onYtCommentboxDismiss;li.prototype.onYtNavigate=li.prototype.onYtNavigate;li.prototype.dataChanged=li.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],li.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],li.prototype,"editDialog",void 0);_.U([_.Z({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],li.prototype,"usesCompactLockup",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],li.prototype,"showExpandButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],li.prototype,"isRichGrid",void 0);
_.U([_.Z({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.O("design:type",Boolean)],li.prototype,"showFullContentText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],li.prototype,"usesFullLockup",void 0);_.U([_.gi("#more"),_.O("design:type",Object)],li.prototype,"moreButtonEl",void 0);_.U([_.gi("#repost-content-text"),_.O("design:type",HTMLElement)],li.prototype,"repostContentTextEl",void 0);
_.U([_.gi("#repost-edit-dialog"),_.O("design:type",HTMLElement)],li.prototype,"repostEditDialogEl",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],li.prototype,"dataChanged",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],li.prototype,"onYtNavigate",null);
_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],li.prototype,"onYtCommentboxDismiss",null);li=_.U([_.T({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],li);
_.q(li,"ytd-shared-post-renderer",function(){if(Fn8!==void 0)return Fn8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Fn8=W},{mode:1});var xAS;var lOC;var tc=function(){return _.R.apply(this,arguments)||this};
_.D(tc,_.R);tc.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.Qw,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
tc.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
tc.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var ED=tc;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ED.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ED.prototype,"data",void 0);ED=_.U([_.T({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],ED);
_.q(ED,"ytd-reload-page-button-renderer",function(){if(lOC!==void 0)return lOC;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return lOC=W},{mode:1});var tUs={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"},E58=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(E58,_.R);_.Y=E58.prototype;_.Y.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Y.computeHasBodyText=function(W){return!!W.bodyText};
_.Y.computeButtons=function(W){var k=[];W.ctaButton&&k.push(W.ctaButton);W.secondaryButton&&k.push(W.secondaryButton);return k};
_.Y.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.Y.getIconName=function(W,k){k=k===void 0?!1:k;if(W===void 0)return"";W=this.get("icon.iconType",W);var C;_.m("enable_hlp_client_icon_pick")?C=this.getThemedIcon(W,k):C=W;(k=tUs[C])||(k="yt-icons");return[k,C].join(":")};
_.Y.getThemedIcon=function(W,k){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?k?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?k?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.Y.isThumbnail=function(W){return!!W.thumbnail};
_.Y.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var a_=E58;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],a_.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],a_.prototype,"data",void 0);
_.U([_.Z({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],a_.prototype,"rendererStyle",void 0);_.U([_.Z({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.O("design:type",String)],a_.prototype,"iconName",void 0);_.U([_.Z({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],a_.prototype,"thumbnail",void 0);_.U([_.Z({computed:"computeButtons(data)"}),_.O("design:type",Array)],a_.prototype,"buttons",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],a_.prototype,"isDarkTheme",void 0);_.U([_.Z({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],a_.prototype,"hasBodyText",void 0);a_=_.U([_.T({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],a_);
_.q(a_,"ytd-background-promo-renderer",function(){if(xAS!==void 0)return xAS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xAS=W},{mode:1});var aOZ;var XEz=function(){var W=_.R.apply(this,arguments)||this;W.collections=_.m("web_modern_collections_v2");return W};
_.D(XEz,_.R);_.oq.Object.defineProperties(XEz.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(k=W.thumbnail)==null?void 0:k.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(n=C.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
var XT=XEz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XT.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XT.prototype,"collections",void 0);_.U([_.G("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],XT.prototype,"collectionStack",null);XT=_.U([_.T({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],XT);
_.q(XT,"ytd-compact-station-renderer",function(){if(aOZ!==void 0)return aOZ;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return aOZ=W},{mode:1});var fO2;var dAs=function(){var W=_.R.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.D(dAs,_.R);dAs.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
var fG=dAs;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fG.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fG.prototype,"isRichGrid",void 0);fG=_.U([_.T({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],fG);
_.q(fG,"ytd-grid-channel-renderer",function(){if(fO2!==void 0)return fO2;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return fO2=W},{mode:1});var mAs;var z1A=function(){return _.R.apply(this,arguments)||this};
_.D(z1A,_.R);var dO=z1A;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dO.prototype,"data",void 0);dO=_.U([_.T({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],dO);
_.q(dO,"ytd-grid-movie-playlist-renderer",function(){if(mAs!==void 0)return mAs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return mAs=W},{mode:1});var DAZ;var mZ=function(){var W=_.R.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.m("web_modern_buttons");W.useModernCollectionsV2=_.m("web_modern_collections_v2");return W};
_.D(mZ,_.R);mZ.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
mZ.prototype.configureRendererStamper=function(){return{"data.menu":Cc}};
mZ.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
mZ.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.m("woffle_playlist_renderer_killswitch")){var W,k=SQc(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=k.viewPlaylistText;var C=k.badges;k=k.thumbnailOverlays;this.isDownloads=!!W||!!C;this.set("data.viewPlaylistText",W);C&&C.length>0&&this.set("data.badges",C);k&&k.length>0&&this.set("data.thumbnailOverlays",
k)}};
_.oq.Object.defineProperties(mZ.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 W;return!((W=this.data)==null?0:W.menu)}}});
var zx=mZ;zx.prototype.transferStateChanged=zx.prototype.transferStateChanged;zx.prototype.dataChanged=zx.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],zx.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],zx.prototype,"ytdReduxBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({selector:_.qVw,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],zx.prototype,"downloadProgress",void 0);_.U([_.Z({selector:_.Je,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],zx.prototype,"transferState",void 0);_.U([_.Z({selector:TF3,selectorArgs:["data.playlistId"]}),_.O("design:type",Object)],zx.prototype,"entityInfo",void 0);
_.U([_.Z({selector:y4z}),_.O("design:type",Boolean)],zx.prototype,"isOnline",void 0);_.U([_.Z(),_.O("design:type",Object)],zx.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],zx.prototype,"downloadRenderData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],zx.prototype,"modernButtons",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],zx.prototype,"isDownloads",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],zx.prototype,"useModernCollectionsV2",void 0);_.U([_.G("transferState"),_.Z({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],zx.prototype,"downloadState",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],zx.prototype,"menuHidden",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zx.prototype,"dataChanged",null);_.U([_.Cq("transferState","downloadProgress","isOnline"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zx.prototype,"transferStateChanged",null);zx=_.U([_.T({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],zx);
_.q(zx,"ytd-grid-playlist-renderer",function(){if(DAZ!==void 0)return DAZ;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return DAZ=W},{mode:1});var VUs;var Jq8=function(){var W=_.R.apply(this,arguments)||this;W.collections=_.m("web_modern_collections_v2");return W};
_.D(Jq8,_.R);Jq8.prototype.configureRendererStamper=function(){return{"data.menu":Cc,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.oq.Object.defineProperties(Jq8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(k=W.thumbnail)==null?void 0:k.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(n=C.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
var DU=Jq8;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],DU.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],DU.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],DU.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],DU.prototype,"collections",void 0);_.U([_.G("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],DU.prototype,"collectionStack",null);DU=_.U([_.T({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],DU);
_.q(DU,"ytd-grid-radio-renderer",function(){if(VUs!==void 0)return VUs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return VUs=W},{mode:1});var cqb;var IOA=function(){var W=_.R.apply(this,arguments)||this;W.useModernCollectionsV2=_.m("web_modern_collections_v2");return W};
_.D(IOA,_.R);IOA.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
IOA.prototype.computeNavigationEndpoint=function(W){return $n4(W==null?void 0:W.navigationEndpoint)};
var V6=IOA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],V6.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],V6.prototype,"data",void 0);
_.U([_.Z({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],V6.prototype,"computedNavigationEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],V6.prototype,"useModernCollectionsV2",void 0);V6=_.U([_.T({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],V6);
_.q(V6,"ytd-grid-show-renderer",function(){if(cqb!==void 0)return cqb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return cqb=W},{mode:1});var SEA;_.Jc=function(W){this.playerClient=W};
_.MUS=function(W,k,C){C=C===void 0?{}:C;return W.playerClient.setOption("ad",k,C)};
_.Jc.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Jc.prototype.executeCommand=function(W,k){this.getOptions().includes("executeCommand")?_.MUS(this,"executeCommand",{command:W,layoutId:k}):_.jH("Calling executeCommand when adModule is not loaded")};var Qss=function(){return _.R.apply(this,arguments)||this};
_.D(Qss,_.R);Qss.prototype.getLayoutId=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
Qss.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.Zf(),k=this.getLayoutId(),C=this.data.clickthroughEndpoint;W&&k&&_.m("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(n){(new _.Jc(n)).executeCommand(C,k)}):_.Pe(this.hostElement,"yt-navigate",{endpoint:C})}};
var c2=Qss;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],c2.prototype,"data",void 0);c2=_.U([_.T({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],c2);
_.q(c2,"ytd-shopping-companion-item-renderer",function(){if(SEA!==void 0)return SEA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SEA=W},{mode:1});var pEI;var v5S=function(){var W=_.R.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.D(v5S,_.R);_.oq.Object.defineProperties(v5S.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?void 0:W.price)||((k=this.data)==null?void 0:(C=k.dealsData)==null?void 0:C.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,k;if((W=this.data)!=null&&W.dealsData&&((k=this.data)==null||!k.priceReplacementText)){W=this.data.dealsData;var C,n,N;return((C=W.salesData)==null?void 0:C.originalPrice)||((n=W.priceDropData)==null?void 0:n.referencePrice)||((N=W.promotionData)==null?void 0:N.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,k;return(W=this.data)==null?void 0:(k=W.dealsData)==null?void 0:k.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var I_=v5S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],I_.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],I_.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],I_.prototype,"isExpandableContent",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"showCta",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"ctaText",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"hasPriceTopPosition",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"hasPriceBottomPosition",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"useNewStyle",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"showPriceReplacementText",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"priceValue",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"showDeal",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"showAffiliateDisclaimer",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"useSaleStyle",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"useFromBrandCtaStyle",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"useFromVendorCtaStyle",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],I_.prototype,"useShoppingCollectionCtaStyle",null);I_=_.U([_.T({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],I_);
_.q(I_,"ytd-vertical-product-card-renderer",function(){if(pEI!==void 0)return pEI;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pEI=W},{mode:1});var e1I;var ssI=function(){return _.R.apply(this,arguments)||this};
_.D(ssI,_.R);ssI.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var SL=ssI;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],SL.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],SL.prototype,"data",void 0);SL=_.U([_.T({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],SL);
_.q(SL,"ytd-grid-movie-renderer",function(){if(e1I!==void 0)return e1I;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return e1I=W},{mode:1});var Ga8;var yqZ=function(){var W=_.R.apply(this,arguments)||this;W.rounded=!0;W.itemStyle="small-item";return W};
_.D(yqZ,_.R);yqZ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,k,C,n,N=(k=_.z((W=this.data)==null?void 0:W.buttonCommand,_.FP8))==null?void 0:(C=k.item)==null?void 0:(n=C.notificationTextRenderer)==null?void 0:n.successResponseText;N&&_.j2w(this.hostElement,N)}};
_.oq.Object.defineProperties(yqZ.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((k=this.data)==null?void 0:k.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
var Mk=yqZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Mk.prototype,"rounded",void 0);_.U([_.Z(),_.O("design:type",Object)],Mk.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Mk.prototype,"itemStyle",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"hasPrice",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"hasPriceReplacementText",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"hasAdditionalFeesText",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"hasAffiliateDisclaimer",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"isProductPlaceholder",null);
_.U([_.Z(),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"hideOpenInNewIcon",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mk.prototype,"ariaLabel",null);Mk=_.U([_.T({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Mk);
_.q(Mk,"ytd-merch-shelf-item-renderer",function(){if(Ga8!==void 0)return Ga8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ga8=W},{mode:1});var $AA=_.GM(function(W){var k=_.yE();_.pX(k,function(){return W.data().rendererContext});
return _.t("button-card-view-model",{el:k,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.t(_.BJ,{model:{}}),_.t("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.t("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.t(_.NI,{cond:function(){return W.data().image},
then:function(C){return _.t(_.pi,{data:C,alt:function(){var n;return(n=W.data().title)!=null?n:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.t("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"Ra");_.m("web_button_view_model_wcw_registration_killswitch")||_.Gj($AA,"button-card-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){W=_.vp(W,{className:void 0});var k=W.data;W=W.className;var C=_.BH(function(){return k().onTapCommand},void 0,"NprDr");
return _.t("ytd-shopping-item-card",{class:_.Li("ytdShoppingItemCardHost",W)},_.t(_.NE,{command:C,className:"ytdShoppingItemCardHostLink"},_.t("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.t(_.Ex,{data:function(){return k().thumbnailViewModel}},{thumbnailViewModel:function(n){return _.t(rl,{data:n.data,
aspectRatio:3})}})),_.t("div",null,_.t("p",{class:"ytdShoppingItemCardHostItemTitle"},_.t(_.Ya,{text:function(){return k().itemTitle}})),_.t("p",{class:"ytdShoppingItemCardHostPrice"},_.t(_.Ya,{text:function(){return k().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.Ik,
className:_.Ik}});var HB=null,H9J={};var PJc="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(" "),Q6={},KCX=(Q6.FEwhat_to_watch="home",Q6.FEhashtag="hashtag",Q6.FEtrending="trending",Q6.FEhistory="history",Q6.SPunlimited="premium",Q6.FEmemberships_and_purchases="paid_memberships",Q6.SPredeem_code="redeem",Q6.SPverify_location="locate",Q6.SPminor_moment="minor_moment",
Q6.FEmini_app_container="mini_app",Q6.FEnews_destination="news",Q6.SPopen_in_app="open_in_app",Q6.FEexplore="explore",Q6.FEsubscriptions="subscriptions",Q6.FEsfv_audio_pivot="sfv_audio_pivot",Q6.FEplaylist_aggregation="playlist_aggregation",Q6);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");_.nB("init");var N62=_.w7({badgeViewModel:g5m}),kew=function(){},ZZx=_.ry(bWw),R18=_.GM(function(W){var k=_.BH(function(){var C=W.data().entityId;
return C?C.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.t("ytm-shorts-lockup-view-model-v2",{class:_.Li("shortsLockupViewModelHost",W.className)},_.t(_.Umb,{contentId:k,aspectRatio:function(){var C;if(((C=W.aspectRatio)==null?void 0:C.call(W))===1)return 1;var n;return((n=W.aspectRatio)==null?void 0:n.call(W))===2?2:4}},function(){return _.t(ZZx,Object.assign({},W))}))},"Ta");
_.UK(bWw);_.UK(niI);_.UK(B6m);_.UK(A_3);_.UK(Y4J);_.Gj(R18,"ytm-shorts-lockup-view-model-v2",{props:{data:_.si,inlineMetadata:_.si,aspectRatio:_.si,scrimStyle:_.si,className:_.si,useDefaultStyle:_.si}});var o5A=16/9*210,pG=function(){var W=_.R.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.D(pG,_.R);_.Y=pG.prototype;
_.Y.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]]"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.m("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.Y.computeInitialCountNumber=function(W){if(!W)return 6;var k=W.items.some(function(B){return!!B.topicRecommendationsChipRenderer}),C=W.items.some(function(B){return!!B.displayAdRenderer}),n=this.computeShouldListItemsHaveEqualHeight(W),N=W.items.some(function(B){return!!B.gridPlaylistRenderer});
W=W.items.some(function(B){return!!B.shoppingItemCardViewModel});
return k?9:C?8:N||n?10:W?7:6};
_.Y.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(k){return!!k.postRenderer})};
_.Y.computeContainsLockup=function(){if(_.m("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,k;return(W=this.data)==null?void 0:(k=W.items)==null?void 0:k.some(function(C){return!!C.lockupViewModel})};
_.Y.maybeUpdateLockupAspectRatio=function(){var W,k;if(this.computeContainsLockup()&&((W=this.data)==null?0:(k=W.items)==null?0:k.length)){var C;W=hpm((C=this.data.items[0].lockupViewModel)==null?void 0:C.contentType,this.data.force16By9ThumbnailAspectRatio);C=GB4(W);C=this.computeLockupWidth()/C;_.Op(this.hostElement,{"--yt-horizontal-list-content-height":C+"px"})}};
_.Y.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){return!!C.verticalProductCardRenderer}))};
_.Y.computeOverrideArrowPositionForShoppingItemCard=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){return!!C.shoppingItemCardViewModel}))};
_.Y.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.Y.computeHasBigThumbsReelItems=function(W,k){return W&&this.containsReelItemRenderer(k)};
_.Y.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.Y.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.Y.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.Y.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.Y.containsReelItemRenderer=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){return!(!C.reelItemRenderer&&!C.shortsLockupViewModel)}))};
_.Y.containsGridVideoRenderer=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){return!!C.gridVideoRenderer||!!C.lockupViewModel}))};
_.Y.computeContainsGridMovieRenderer=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){return!!C.gridMovieRenderer}))};
_.Y.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.Y.computeIsSearchPostShelf=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){var n,N;return((N=(n=C.postRenderer)==null?void 0:n.surface)!=null?N:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.Y.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var k;return!!(W==null?0:(k=W.items)==null?0:k.some(function(C){var n,N,B;return((B=(n=C.backgroundPromoRenderer)==null?void 0:(N=n.style)==null?void 0:N.value)!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.Y.computeIsSearchVodShelf=function(W,k){return W&&this.containsGridVideoRenderer(k)};
_.Y.computeDisableWheelScroll=function(W,k){return this.computeIsSearchVodShelf(W,k)};
_.Y.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.Y.computeShortsLockupAspectRatio=function(W){return W&&_.m("web_shorts_2_by_3_lockups_no_search")&&!_.m("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.Y.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Op(this.hostElement,{"--ytd-reel-item-thumbnail-height":o5A+"px"})};
pG.prototype.dataChanged=pG.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],pG.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pG.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],pG.prototype,"isExpandableContent",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"hideShelfHeader",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"engagementPanel",void 0);_.U([_.Z(),_.O("design:type",Array)],pG.prototype,"buttonClasses",void 0);_.U([_.Z(),_.O("design:type",Object)],pG.prototype,"isSearch",void 0);
_.U([_.Z(),_.O("design:type",Object)],pG.prototype,"disableScrollEventListener",void 0);_.U([_.Z({computed:"computeInitialCountNumber(data)"}),_.O("design:type",Number)],pG.prototype,"initialCount",void 0);_.U([_.Z({computed:"computeContainsPost(data)"}),_.O("design:type",Boolean)],pG.prototype,"supportComponentResize",void 0);_.U([_.Z({computed:"computeContainsPost(data)"}),_.O("design:type",Boolean)],pG.prototype,"containsPost",void 0);
_.U([_.Z({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"containsLockup",void 0);_.U([_.Z({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],pG.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.U([_.Z({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForProductCard",void 0);_.U([_.Z({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.U([_.Z({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForReelItems",void 0);_.U([_.Z({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForGridMovie",void 0);
_.U([_.Z({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionToCenter",void 0);_.U([_.Z({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"isSearchPostShelf",void 0);_.U([_.Z({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.U([_.Z({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.U([_.Z({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"hasBigThumbsReelItems",void 0);
_.U([_.Z({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"shouldUseMixedListHeight",void 0);_.U([_.Z({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"shouldUseShortsListHeight",void 0);_.U([_.Z({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"gridVideoWidth",void 0);
_.U([_.Z({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"isSearchVodShelf",void 0);_.U([_.Z({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.O("design:type",Object)],pG.prototype,"disableWheelScroll",void 0);_.U([_.Z({computed:"computeSizing(isSearch)"}),_.O("design:type",Object)],pG.prototype,"sizing",void 0);
_.U([_.Z({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.O("design:type",Object)],pG.prototype,"shortsLockupAspectRatio",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pG.prototype,"dataChanged",null);
_.q(pG,"yt-horizontal-list-renderer",function(){if(zTY===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);zTY=W}W=zTY;return W},{mode:1});var iZb;var T5Y=[10,12,14,16,18,20,24,28,32,36],qEb=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],uQs=function(){var W=_.R.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.D(uQs,_.R);_.Y=uQs.prototype;
_.Y.attached=function(){var W=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();_.ZR(this,function(){W.resize()});
if(!_.Cr){var k,C,n;(k=document)==null||(C=k.fonts)==null||(n=C.ready)==null||n.then(function(){W.resize()})}};
_.Y.dataChanged=function(){this.resize()};
_.Y.guideIsExpandedChanged=function(){this.resize()};
_.Y.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 W=this.getMaxNumLines(),k=this.getMinFont(),C=this.getMaxFont(),n=this.useRoboto?T5Y:qEb;for(n=n.filter(function(B){return B<=C&&B>=k});n.length>1;){var N=Math.floor(n.length/2);
this.updateFontSize(n[N]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)n=n.slice(N,n.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)n=n.slice(0,N);else break}this.updateFontSize(n[n.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.Y.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.Y.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.Y.getMaxFont=function(){var W=this.useRoboto?T5Y:qEb;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.Y.getMinFont=function(){var W=(this.useRoboto?T5Y:qEb)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.Y.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.Y.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.Y.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.y4(this.text).split("\n").length-1:Infinity};
_.Y.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
var v2=uQs;v2.prototype.guideIsExpandedChanged=v2.prototype.guideIsExpandedChanged;v2.prototype.dataChanged=v2.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],v2.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],v2.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],v2.prototype,"text",void 0);
_.U([_.Z(),_.O("design:type",String)],v2.prototype,"fontFamily",void 0);_.U([_.Z(),_.O("design:type",Number)],v2.prototype,"maxWidth",void 0);_.U([_.Z(),_.O("design:type",Number)],v2.prototype,"maxHeight",void 0);_.U([_.Z(),_.O("design:type",Number)],v2.prototype,"maxFontSize",void 0);_.U([_.Z(),_.O("design:type",Number)],v2.prototype,"minFontSize",void 0);_.U([_.Z(),_.O("design:type",Number)],v2.prototype,"maxLines",void 0);_.U([_.Z(),_.O("design:type",Object)],v2.prototype,"hideOverflow",void 0);
_.U([_.Z({selector:_.Qrm}),_.O("design:type",Boolean)],v2.prototype,"guideIsExpanded",void 0);_.U([_.gi("#container"),_.O("design:type",HTMLElement)],v2.prototype,"containerNode",void 0);_.U([_.gi("#text"),_.O("design:type",HTMLElement)],v2.prototype,"textNode",void 0);_.U([_.Cq("text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v2.prototype,"dataChanged",null);
_.U([_.Cq("guideIsExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v2.prototype,"guideIsExpandedChanged",null);v2=_.U([_.T({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],v2);
_.q(v2,"yt-dynamic-sizing-formatted-string",function(){if(iZb!==void 0)return iZb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return iZb=W},{mode:1});var UAs;_.OZY=function(W){_.Ww.call(this,W)};
_.D(_.OZY,_.Ww);var LnS=function(W){_.Ww.call(this,W)};
_.D(LnS,_.OZY);var eL=function(){return _.R.apply(this,arguments)||this};
_.D(eL,_.R);eL.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var k,C;(W=(C=_.z((k=this.data)==null?void 0:k.serviceEndpoint,_.pM))==null?void 0:C.url)?_.zy(W,void 0,void 0,window.top):(k=new LnS("Did not handle suspended account tap. No appealUrl."),_.dI(k))}else k=new LnS("Did not handle suspended account tap. No serviceEndpoint."),_.dI(k)};
eL.prototype.onTap=function(){var W=this,k=_.kf(),C,n=(C=_.Wj(k,{veType:7116}))!=null?C:void 0;_.JW(k,{visualElement:n});_.di();this.saveRoleText();var N;if((N=this.data)==null?0:N.youtubeSuspended)this.onTapSuspendedChannel();else{var B=!1,A,w;(k=(w=_.z((A=this.data)==null?void 0:A.serviceEndpoint,_.aYb))==null?void 0:w.supportedTokens)&&k.forEach(function(x){if(x.accountSigninToken)if(B=!0,W.onAccountItemTap)W.onAccountItemTap(x.accountSigninToken.signinUrl);else _.zy(x.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!B){if(A=this.get("serviceEndpoint",this.data))B=!0,this.ytComponentBehavior.resolveCommand(A);B||_.mw(new LnS("Did not handle account switch tap. No token."))}}};
eL.prototype.saveRoleText=function(){if(this.data){var W=this.data,k=W.channelDelegationRole;if(k){var C,n=(C=_.z(W==null?void 0:W.serviceEndpoint,_.aYb))==null?void 0:C.supportedTokens;if(!n){var N,B,A,w;n=(N=_.z(W==null?void 0:W.serviceEndpoint,_.Eq))==null?void 0:(B=N.popup)==null?void 0:(A=B.confirmDialogRenderer)==null?void 0:(w=A.confirmButton)==null?void 0:w.buttonRenderer;var x;n=(x=_.z(n==null?void 0:n.command,_.Nl))==null?void 0:x.commands;if(!n)return;var E;n=(E=_.z(n[1],_.aYb))==null?
void 0:E.supportedTokens}if(n){x=void 0;E=_.b(n);for(n=E.next();!n.done;n=E.next())if(n=n.value,n.datasyncIdToken){x=n.datasyncIdToken.datasyncIdToken;break}if(x){var a;a:{if(_.ljm()&&(E=_.w3X(x+"::pom"))){E=new kD(E);break a}E=void 0}(a=E)==null||a.set("role_text",k);if((IjK?IjK:window.location).href.indexOf("studio")!==-1&&(a=tR4())){E=a.src?(new URL(a.src)).origin:"*";var X;(X=a.contentWindow)==null||X.postMessage({action:"save_pom_role",datasyncId:x,roleText:k},E)}}}}}};
_.oq.Object.defineProperties(eL.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.accountPhoto)==null?void 0:k.thumbnails;return C&&C.length>0&&(C[0].height===36||C[0].height===48)?C[0].height:40}}});
var sD=eL;sD.prototype.onTap=sD.prototype.onTap;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],sD.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sD.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Function)],sD.prototype,"onAccountItemTap",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sD.prototype,"enableRingForActiveAccount",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],sD.prototype,"thumbnailSize",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sD.prototype,"onTap",null);sD=_.U([_.T({is:"ytd-account-item-renderer",disableElementRegistration:!0})],sD);
_.q(sD,"ytd-account-item-renderer",function(){if(UAs!==void 0)return UAs;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return UAs=W},{mode:1});var js8;var HZs=function(){return _.R.apply(this,arguments)||this};
_.D(HZs,_.R);HZs.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.f().resolve(_.uI).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
var Gx=HZs;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Gx.prototype,"data",void 0);Gx=_.U([_.T({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Gx);
_.q(Gx,"ytd-identity-chip-renderer",function(){if(js8!==void 0)return js8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return js8=W},{mode:1});var rq8;var g5s;var Pqs;var KnA;var h1b=function(){var W=_.R.apply(this,arguments)||this;W.richItemMinWidth=_.Oe("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.D(h1b,_.R);_.oq.Object.defineProperties(h1b.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],k=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Op(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var C;if(((C=this.data)==null?0:C.rows)&&k)for(k*=this.data.rows,C=0;C<k;C++)W.push({});return W}}});
var y6=h1b;_.U([_.v(_.fk),_.O("design:type",Object)],y6.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],y6.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.m7,value:3}),_.O("design:type",Number)],y6.prototype,"itemsPerRow",void 0);_.U([_.Z({selector:_.MDP,value:6}),_.O("design:type",Number)],y6.prototype,"slimItemsPerRow",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Number)],y6.prototype,"richItemMinWidth",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],y6.prototype,"miniMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],y6.prototype,"isShorts",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],y6.prototype,"isWatchNext",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],y6.prototype,"isExploreHub",void 0);
_.U([_.G("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.O("design:type",Array),_.O("design:paramtypes",[])],y6.prototype,"cardItems",null);y6=_.U([_.T({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],y6);
_.WYs=_.u0()(y6,"ytd-ghost-grid-renderer",function(){if(KnA===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);KnA=W}W=KnA;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Gj(_.GM(function(W){var k=_.vp(W,{numberOfComments:3}).numberOfComments,C=_.vp(W,{isInitialLoad:!1}).isInitialLoad,n=_.X8(_.DF),N=function(){return Math.min(Number(k==null?void 0:k())||20,20)};
return _.t("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.t(_.NI,{cond:function(){return(n==null?void 0:n())&&(C==null?void 0:C())},
then:function(){return _.t("div",{class:"ytGhostCommentsComments"},_.t("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.t("div",{class:_.Li("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.t("div",{class:_.Li("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.t("div",{class:"ytGhostCommentsGhostCard"},_.t("div",{class:"ytGhostCommentsAvatar"},_.t("div",{class:"ytGhostCommentsCircle"})),_.t("div",{class:"ytGhostCommentsComments"},_.t("div",{class:"ytGhostCommentsMeta"},
_.t("div",{class:_.Li("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.t("div",{class:_.Li("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.t("div",{class:"ytGhostCommentsComments"},_.t(_.bI,{each:function(){return Array((N==null?void 0:N())||3)}},function(){return _.t("div",{class:"ytGhostCommentsGhostCard"},_.t("div",{class:"ytGhostCommentsAvatar"},_.t("div",{class:"ytGhostCommentsCircle"})),_.t("div",{class:"ytGhostCommentsHost"},_.t("div",{class:"ytGhostCommentsMeta"},
_.t("div",{class:_.Li("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.t("div",{class:_.Li("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:_.Li("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:"ytGhostCommentsGhostLikeDislike"},_.t("div",{class:_.Li("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:_.Li("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.Ik,
isInitialLoad:_.Ik}});_.EJ("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var k2A=function(){var W=_.R.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.m("show_ghost_comments_shorts_watch")||_.m("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.D(k2A,_.R);_.Y=k2A.prototype;_.Y.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.Y.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,k;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((k=this.data)==null?0:k.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.Y.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(k){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.Y.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]]"}}}}}};
_.Y.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.z(this.data.continuationEndpoint,_.dE))&&this.ytdReduxBehavior.dispatch(_.jo({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.Y.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.Y.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.Y.onServiceRequestCompleted=function(W,k){if(!_.m("kevlar_hide_spinner_on_empty_continuation_killswitch")){var C;(C=k.actions)!=null&&C.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.Y.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.Y.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.Y.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.Y.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.isShortsPage){var k,C,n;W=Math.floor(((((k=this.hostElement)==null?void 0:(C=k.parentElement)==null?void 0:(n=C.parentElement)==null?void 0:n.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}k=[].concat(_.J8(this.hostElement.querySelectorAll("yt-ghost-comments")));k=_.b(k);for(C=k.next();!C.done;C=k.next())C=C.value,C.numberOfComments=W,C.isInitialLoad=this.isInitialLoad}};
_.Y.detached=function(){this.resetIntersectionObserver()};
_.oq.Object.defineProperties(k2A.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.m("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.m("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var $C=k2A;$C.prototype.numberOfGhostCommentsChanged=$C.prototype.numberOfGhostCommentsChanged;$C.prototype.continuationTriggerOffsetChanged=$C.prototype.continuationTriggerOffsetChanged;$C.prototype.showButtonChanged=$C.prototype.showButtonChanged;$C.prototype.onYtServiceRequestCompletedForButtonRenderer=$C.prototype.onYtServiceRequestCompletedForButtonRenderer;$C.prototype.onServiceRequestCompleted=$C.prototype.onServiceRequestCompleted;$C.prototype.onYtServiceRequestSentForButtonRenderer=$C.prototype.onYtServiceRequestSentForButtonRenderer;
$C.prototype.observeData=$C.prototype.observeData;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],$C.prototype,"ytVisibilityBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],$C.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],$C.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"isOverridable",void 0);_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"spinnerActive",void 0);_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"showButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],$C.prototype,"isCommentsSection",void 0);
_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"isShortsGrid",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.v7p}),_.O("design:type",Object)],$C.prototype,"isShortsPage",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.DF}),_.O("design:type",Object)],$C.prototype,"isWatchPage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],$C.prototype,"ghostCardExperimentEnabled",void 0);_.U([_.Z(),_.O("design:type",Number)],$C.prototype,"continuationTriggerOffset",void 0);
_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"endOfList",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],$C.prototype,"isInitialLoad",void 0);_.U([_.gi("ytd-button-renderer"),_.O("design:type",_.s9)],$C.prototype,"buttonRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],$C.prototype,"buttonOverrides",void 0);
_.U([_.Z(),_.G("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.O("design:type",Object),_.O("design:paramtypes",[])],$C.prototype,"isShortsCommentsSection",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"observeData",null);
_.U([_.jI("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],$C.prototype,"onServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-completed-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.U([_.Cq("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"showButtonChanged",null);
_.U([_.Cq("continuationTriggerOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"continuationTriggerOffsetChanged",null);_.U([_.Hl("isInitialLoad","isShortsPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$C.prototype,"numberOfGhostCommentsChanged",null);$C=_.U([_.T({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],$C);
_.q($C,"ytd-continuation-item-renderer",function(){if(Pqs!==void 0)return Pqs;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Pqs=W},{mode:1});var Cz8;var ZU=function(){var W=_.R.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.D(ZU,_.R);ZU.prototype.dataChanged=function(){var W;this.videoData=_.z((W=this.data)==null?void 0:W.renderer,H8x);this.transferStateChanged()};
ZU.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),k=MVm(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),C=k.publishedTimeText,n=k.badges;W.shortViewCountText=k.shortViewCountText;W.publishedTimeText=C;W.badges=n;this.set("videoData",W)}};
ZU.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",k=_.FD(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ae(this.entityInfo.policyEntity),C=Object.assign({},this.videoData),n=MVm(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),N=n.publishedTimeText,B=n.badges;C.shortViewCountText=
n.shortViewCountText;C.publishedTimeText=N;C.badges=B;C.isDisabled=k;C.isWatched=this.downloadedVideoPlaybackPosition>0;C.navigationEndpoint=k?void 0:Guw(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var A;W&&((A=this.videoData)==null?0:A.videoId)&&!_.m("dl_resume_click_killswitch")&&(C.isDisabled=!1,C.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});C.thumbnailOverlays=I1K(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",C)}};
var R_=ZU;R_.prototype.transferStateChanged=R_.prototype.transferStateChanged;R_.prototype.downloadProgressChanged=R_.prototype.downloadProgressChanged;R_.prototype.dataChanged=R_.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],R_.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],R_.prototype,"videoData",void 0);_.U([_.Z({selector:c3,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"downloadProgress",void 0);_.U([_.Z(),_.O("design:type",Number)],R_.prototype,"relativeDateReference",void 0);_.U([_.Z({selector:_.V4,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"transferState",void 0);
_.U([_.Z({selector:P82,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"downloadState",void 0);_.U([_.Z({selector:ZEX,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"offlinePolicyAction",void 0);_.U([_.Z({selector:Rjp,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.Z({selector:IY,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"downloadedVideoPlaybackPosition",void 0);_.U([_.Z({selector:iEJ,selectorArgs:["videoData.videoId"]}),_.O("design:type",Object)],R_.prototype,"entityInfo",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],R_.prototype,"isDownloading",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R_.prototype,"dataChanged",null);
_.U([_.Cq("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R_.prototype,"downloadProgressChanged",null);_.U([_.Cq("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R_.prototype,"transferStateChanged",null);
R_=_.U([_.T({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],R_);
_.q(R_,"ytd-downloaded-video-grid-video-renderer",function(){if(Cz8!==void 0)return Cz8;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Cz8=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var n9A;var o_=function(){};
o_.prototype.resolve=function(W,k){var C=this;return _.F(function(n){return _.l(n,C.resolveCommand(W,k),0)})};var N_s,ii;N_s=wz3(function(W){return W.targetId},{shouldPersist:!1});
ii=N_s.updateData;_.YIZ=N_s.useUpdatableData;var B_I,bb8;B_I=wz3(function(W){return W.targetId});
bb8=B_I.updateData;_.ARC=B_I.useUpdatableData;var FYI=FLp.bind(null,ii),wub=FLp.bind(null,bb8);(function(W,k,C){var n=_.z(C==null?void 0:C.updatedRenderer,_.JTb);return n?W({targetId:k},function(){return n}):!1}).bind(null,ii);var Tx=function(){};
_.D(Tx,o_);Tx.prototype.resolveCommand=function(W){var k;return _.F(function(C){k=_.z(W,_.cN4);if(!k)return C.return();FYI(k.targetId,k);_.ab(C)})};var xv8=function(){var W=_.Wp.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.D(xv8,_.Wp);_.Y=xv8.prototype;_.Y.configureContinuationPathMap=function(){return{}};
_.Y.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.Y.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.Y.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.Y.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.Y.handleAppendContinuationItemsAction=function(W){var k=_.z(W,_.bFY);if(this.data&&this.data.targetId&&k&&this.continuationPathMap&&k.targetId===this.data.targetId){var C=QSw(W);if((W=C&&this.continuationPathMap[C])&&C){C=this.get(W,this.data);var n;a:{for(n=0;n<C.length;n++){var N=C[n],B=void 0,A=!!_.z((B=_.z(N,T18))==null?void 0:B.content,_.UtC);if(_.z(N,_.K6)||A)break a}n=C.length}W="data."+W;k.continuationItems?n===C.length-1?(this.pop(W),this.push.apply(this,[W].concat(_.J8(k.continuationItems)))):
n===C.length?this.push.apply(this,[W].concat(_.J8(k.continuationItems))):this.splice.apply(this,[W,n,1].concat(_.J8(k.continuationItems))):this.splice(W,n,1);(_.m("web_enable_voting_animation")||_.m("enable_music_web_cairo_voting_animation"))&&_.Pe(this.hostElement,"yt-append-continuation-items-action-finished");_.Pe(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.zJ(new _.AM("append continuation path does not exist",C))}};
_.Y.handleReloadContinuationItemsCommand=function(W){var k=_.z(W,_.cN4);if(this.data&&k){if(_.m("web_explore_hub")||_.m("web_client_explore_hub")||_.m("web_explore_hub_on_hover")||_.m("web_client_explore_hub_on_hover"))try{_.f().resolve(Tx).resolveCommand(W)}catch(B){}if(this.data.targetId&&this.continuationPathMap&&k.targetId===this.data.targetId&&(!_.m("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||k.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var C,n=(C=
k.slot)==null?void 0:C.replace("RELOAD_CONTINUATION_SLOT_","");C=(W=QSw(W)+"-"+(n==null?void 0:n.toLowerCase()))&&this.continuationPathMap[W];if(!C||!W||!n)_.zJ(new _.AM("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(k)){if(k.replaceWithFirstItem){var N;this.set("data."+C,((N=k.continuationItems)==null?0:N.length)?k.continuationItems[0]:{})}else this.set("data."+C,k.continuationItems?k.continuationItems:
[]);this.continuationIsReloading=!1;_.Pe(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.Y.handleShowReloadUiCommand=function(W){W=_.z(W,mRx);var k;((k=this.data)==null?0:k.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var qk=xv8;qk.prototype.observeData=qk.prototype.observeData;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],qk.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qk.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qk.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],qk.prototype,"continuationIsReloading",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qk.prototype,"observeData",null);qk=_.U([_.kr()],qk);_.ui=[_.dh.YtComponentBehavior,_.$D.YtActionHandlerBehavior,qk.prototype];_.UD={};_.UD.YtNextContinuationBehavior=[_.vR.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",_.LO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.LO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,k){W.stopPropagation();if(this.nextContinuation.requestPath){W=this.nextContinuation.requestPath;var C={};_.m("direct_innertube_click_tracking_reporting")&&(C={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(W,k,C)}else W={locationRetrieved:function(n,N){var B={};_.m("direct_innertube_click_tracking_reporting")&&N.clickTrackingParams&&Object.assign(B,{context:{clickTracking:{clickTrackingParams:N.clickTrackingParams}}});
this.makeNextContinuationRequest_(n,k,B)}.bind(this)},_.Pe(this.hostElement,"yt-retrieve-location",W)},
makeNextContinuationRequest_:function(W,k,C){_.Iz("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=k(W);var n;this.canUseContextualNetworkManager_()&&(n=this.getNetworkManager());n||(n=_.f().resolve(_.Ah));k=_.cJ.instance;if(_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&k){n=_.RY([W.startsWith("/")?W.substr(1):W]);var N,B;C=_.DY(k,{},n,C==null?void 0:(N=C.context)==null?void 0:(B=N.clickTracking)==null?void 0:B.clickTrackingParams).then(function(A){return{response:A}})}else C=
this.nextContinuation.usePost?n.postData(W,C):n.fetchData(W);
C.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=C;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,k){var C=this;_.Iz("ncl");this.pendingContinuationRequest_=void 0;if(k){var n={};this.nextContinuation&&(n=this.nextContinuation);if(k.response&&k.response.continuationContents&&k.response.continuationContents[n.continuationType]){W=k.response.continuationContents[n.continuationType];var N=n.header||"data.header",B=W[n.responseHeaderKey||"header"];B&&this.set(N,B);N=n.contentsArray||"data.contents";B=this.getContents_(W,n.responseContentsKey||"contents")||[];
this.pathExists_(N)?(B.unshift(N),this.push.apply(this,B)):this.set(N,B);B&&(wkI(_.kf(),k.response,this.hostElement,function(A){_.KY(C.hostElement,"yt-store-grafted-ve-action",[A])}),_.Pe(this.hostElement,"yt-next-continuation-data-updated",{continuationData:k,
page:this,contentsArray:N}));this.set(n.continuationsArray||"data.continuations",W[n.responseContinuationsKey||"continuations"]||[])}else k.reload?_.zJ(new _.AM("Reloading from continuation is unsupported")):k.responseContext&&k.responseContext.errors||(delete k.xsrf_token,delete k.timing,delete k.endpoint,delete k.csn,k.responseContext&&delete k.responseContext.serviceTrackingParams,N={request:_.yK(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(k).sort()},k.response&&(N.responseContentKeys=
Object.keys(k.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(N.continuationType=this.nextContinuation.continuationType.substr(0,256)),k=new _.AM("Malformed continuation",N),W.indexOf("/comment_service_ajax")==0?_.zJ(k):_.dI(k)),this.set(n.continuationsArray||"data.continuations",[])}else _.mw(new _.AM("Missing continuation response",W))},
getContents_:function(W,k){k=k.split(".");return _.JU.getValueByKeys(W,k)},
pathExists_:function(W){var k=this;W=W.toString().split(".");for(var C=0;C<W.length;C++)if(k=k[W[C]],k===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var lWA;var tsC;var E9z=function(){var W=_.R.apply(this,arguments)||this;W.triggered_=!1;return W};
_.D(E9z,_.R);_.Y=E9z.prototype;_.Y.attached=function(){this.maybeTriggerAutoload()};
_.Y.detached=function(){this.hasBeenTriggered_=!1};
_.Y.onPrescanVisible=function(){this.onShow()};
_.Y.onShow=function(){this.showButton||this.trigger()};
_.Y.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Pe(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.Y.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.Y.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.Y.computeLabel_=function(W,k){return W===void 0?null:W.label||!k?W.label:this.showMoreText_};
_.Y.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.Y.getContinuationUrl=function(W){var k={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(k.itct=this.data.clickTrackingParams);return _.$n(W,k)};
_.Y.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var OD=E9z;OD.prototype.showButtonChanged_=OD.prototype.showButtonChanged_;OD.prototype.observeData_=OD.prototype.observeData_;_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],OD.prototype,"ytVisibilityBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OD.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],OD.prototype,"showButton",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],OD.prototype,"showIcon",void 0);_.U([_.Z({computed:"computeLabel_(data, showButton)"}),_.O("design:type",Object)],OD.prototype,"label",void 0);_.U([_.Z({value:_.Go(_.w8("SHOW_MORE",void 0,"Show More"))}),_.O("design:type",Object)],OD.prototype,"showMoreText_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],OD.prototype,"spinnerActive_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],OD.prototype,"hasBeenTriggered_",void 0);
_.U([_.Z({value:void 0}),_.O("design:type",String)],OD.prototype,"observeVisibleOption",void 0);_.U([_.Z({value:void 0}),_.O("design:type",String)],OD.prototype,"observeHiddenOption",void 0);_.U([_.Z({value:"observe_once"}),_.O("design:type",Object)],OD.prototype,"observePrescanOption",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OD.prototype,"observeData_",null);
_.U([_.Hl("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OD.prototype,"showButtonChanged_",null);OD=_.U([_.l0({is:"yt-next-continuation",disableElementRegistration:!0})],OD);
_.q(OD,"yt-next-continuation",function(){if(tsC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;lWA===void 0&&(lWA=document.createElement("template"));var n=lWA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);tsC=W}W=tsC;return W},{mode:2});var aWx;var XuY;var fWC=function(){return _.R.apply(this,arguments)||this};
_.D(fWC,_.R);fWC.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var LG=fWC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LG.prototype,"data",void 0);LG=_.U([_.l0({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],LG);
_.q(LG,"yt-music-pass-small-feature-info-renderer",function(){if(XuY===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;aWx===void 0&&(aWx=document.createElement("template"));var n=aWx;C.call(k,n.content.cloneNode(!0),W.content.firstChild);XuY=W}W=XuY;return W},{mode:2});_.EJ("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var dvS=function(){var W=_.R.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.D(dvS,_.R);_.Y=dvS.prototype;_.Y.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.Y.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"}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.Y.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.Y.onIronResize=function(){var W=this;_.Dy(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.Y.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.Y.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.Y.computeExpandVisible=function(W,k,C,n){return W&&k&&C&&!!n&&!!n.showMoreText};
_.Y.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.Y.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var k;(this.collapsed=!((k=this.data)==null||!k.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ZR(this,function(){_.hA(W.hostElement,"yt-refit-popups-action")})};
_.Y.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.computeViewAllHidden=function(W,k){return W||!k.viewAllEndpoint};
var jL=dvS;jL.prototype.fillRestIfNotCollapsible=jL.prototype.fillRestIfNotCollapsible;jL.prototype.initCollapsed=jL.prototype.initCollapsed;jL.prototype.onIronResize=jL.prototype.onIronResize;jL.prototype.persistentGuideChanged=jL.prototype.persistentGuideChanged;_.U([_.v(_.mV),_.O("design:type",Object)],jL.prototype,"ironResizableBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],jL.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],jL.prototype,"ytNextContinuationBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],jL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.v(_.ui),_.O("design:type",Object)],jL.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jL.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],jL.prototype,"collapsed",void 0);_.U([_.Z(),_.O("design:type",Number)],jL.prototype,"initialCount",void 0);_.U([_.Z({computed:"computeShowMoreButton(data.showMoreText)"}),_.O("design:type",Object)],jL.prototype,"showMoreButton",void 0);
_.U([_.Z({computed:"computeIsCollapsible(data)"}),_.O("design:type",Object)],jL.prototype,"isCollapsible",void 0);_.U([_.gi("#items"),_.O("design:type",HTMLElement)],jL.prototype,"items",void 0);_.U([_.Cq("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jL.prototype,"persistentGuideChanged",null);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jL.prototype,"onIronResize",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jL.prototype,"initCollapsed",null);_.U([_.Cq("canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jL.prototype,"fillRestIfNotCollapsible",null);jL=_.U([_.T({is:"ytd-grid-renderer",disableElementRegistration:!0})],jL);
_.q(jL,"ytd-grid-renderer",function(){if(n9A!==void 0)return n9A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return n9A=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var mvY=function(){return _.R.apply(this,arguments)||this};
_.D(mvY,_.R);
mvY.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
var H2=mvY;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],H2.prototype,"data",void 0);H2=_.U([_.T({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],H2);
_.q(H2,"ytd-carousel-ad-renderer",function(){if(g5s!==void 0)return g5s;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return g5s=W},{mode:1});var zEz;var rO,DvS=function(){return _.R.apply(this,arguments)||this};
_.D(DvS,_.R);_.Y=DvS.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,rO.JSC$13111_CLICK_LOCATION_ID_MAP))};
_.Y.onSitelinkTap=function(W){W.stopPropagation();var k,C,n=W==null?void 0:(k=W.model)==null?void 0:(C=k.item)==null?void 0:C.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,W,!1)};
_.Y.onTap=function(W){var k=this.data&&this.data.content&&this.data.content.navigationEndpoint;k&&this.ytSparklesClickLocationBehavior.handleClick(k,W,!1)};
_.Y.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.b(this.data.content.impressionEndpoints||[]),k=W.next();!k.done;k=W.next()){k=_.b(k.value.loggingUrls||[]);for(var C=k.next();!C.done;C=k.next())C=C.value,C.baseUrl&&Mq(C.baseUrl,C.attributionSrcMode)}};
var gO=rO=DvS;rO.prototype.onTap=rO.prototype.onTap;rO.prototype.dataChanged=rO.prototype.dataChanged;gO.JSC$13111_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"]]);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],gO.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gO.prototype,"data",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gO.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],gO.prototype,"onTap",null);gO=rO=_.U([_.T({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],gO);
_.q(gO,"ytd-promoted-sparkles-text-search-renderer",function(){if(zEz!==void 0)return zEz;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return zEz=W},{mode:1});var VsI;var P2,JRZ=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.D(JRZ,_.R);_.Y=JRZ.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.m("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]]"}}}}}};
_.Y.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.Y.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.Y.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",P2.JSC$13120_DEFAULT_AD_BADGE_RENDERER),_.qw(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,P2.JSC$13120_CLICK_LOCATION_ID_MAP))};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(k){k=_.b(k.loggingUrls||[]);for(var C=k.next();!C.done;C=k.next())C=C.value,C.baseUrl&&Mq(C.baseUrl,C.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.Y.onTap=function(W){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint,n;(k=(n=this.data)==null?void 0:n.thumbnailNavigationEndpoint)&&_.sJ(_.vl(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(k,W,!1):C&&this.ytSparklesClickLocationBehavior.handleClick(C,W,!1)};
_.Y.handleMuteAd=function(){this.collapsed=!0};
_.Y.attached=function(){var W=this;_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.detached=function(){_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.oq.Object.defineProperties(JRZ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
var KG=P2=JRZ;P2.prototype.dataChanged=P2.prototype.dataChanged;
KG.JSC$13120_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"]]);
KG.JSC$13120_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.w8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.U([_.v(XO),_.O("design:type",Object)],KG.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],KG.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],KG.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KG.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],KG.prototype,"collapsed",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],KG.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],KG.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.O("design:type",Boolean)],KG.prototype,"fixAlignmentSmallScreens",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs_square")}}),
_.O("design:type",Boolean)],KG.prototype,"useBiggerThumbsSquare",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.mediaHoverOverlay"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"hideHoverOverlay",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"webSearchLayout",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"webSearchLayoutLandscape",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"webSearchLayoutSquare",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"sparklesCtaNoBackground",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.actionButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"hideActionButton",null);_.U([_.Z({computed:"computeButtonOverride(uiUpdate)"}),_.O("design:type",Object)],KG.prototype,"buttonOverride",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.O("design:type",Boolean)],KG.prototype,"hasNewAdBadge",void 0);_.U([_.G("data.promotedSparklesWebStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],KG.prototype,"useRoundedBadge",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],KG.prototype,"dataChanged",null);KG=P2=_.U([_.T({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],KG);
_.q(KG,"ytd-promoted-sparkles-web-renderer",function(){if(VsI!==void 0)return VsI;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return VsI=W},{mode:1});var cRz;var hc,IWZ=function(){return _.R.apply(this,arguments)||this};
_.D(IWZ,_.R);_.Y=IWZ.prototype;_.Y.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]]"}}}}}};
_.Y.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.Y.onCtaClick=function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.ctaRenderer)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.Y.onWatchButtonClick=function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.watchButtonRenderer)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.Y.onTap=function(){};
_.Y.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",hc.JSC$13123_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",hc.JSC$13123_DEFAULT_CLICK_LOCATION_BEHAVIOR,hc.JSC$13123_CLICK_LOCATION_ID_MAP),this.thumbnail)){var W=this.thumbnail.getElementsByTagName("a");W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href")}};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.b(this.data.impressionUrls),k=W.next();!k.done;k=W.next())k=k.value,lz4(k,Ef2(k));this.data.impressionsFired=!0}};
_.Y.maybeComputeHref=function(){return null};
_.Y.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.Y.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.Y.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.Y.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.Y.onClick=function(W){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint;if(this.enableShortDR&&C&&(_.z(C,_.RA)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(C,W,!!_.z(C,_.RA)),W.stopPropagation();else if(C&&_.z(C,_.RA))this.ytSparklesClickLocationBehavior.handleClick(C,W,!0),W.stopPropagation();else if(C){var n,N;((n=this.data)==null?0:n.navigationEndpoint)&&((N=this.data)==null?0:N.adPlaybackContextParams)&&Ync(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(C)}};
_.Y.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Y.onThumbnailContainerClick=function(W){this.onClick(W)};
_.Y.computeThumbnailWidth=function(W,k){return W?k==="MASSIVE"?600:k==="BIG"?500:k==="MEDIUM"?450:420:360};
_.Y.attached=function(){var W=this;_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.detached=function(){_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var W5=hc=IWZ;hc.prototype.dataChanged=hc.prototype.dataChanged;hc.prototype.onTap=hc.prototype.onTap;W5.JSC$13123_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.w8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};W5.JSC$13123_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
W5.JSC$13123_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"}];_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.U([_.v(XO),_.O("design:type",Object)],W5.prototype,"ytdActiveViewBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],W5.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],W5.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],W5.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],W5.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_video_display_compact_button_group_for_desktop_search")}}),
_.O("design:type",Boolean)],W5.prototype,"enableShortDR",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_vac_ui_update_for_desktop_search")}}),
_.O("design:type",Boolean)],W5.prototype,"enableUiUpdate",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],W5.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.O("design:type",Boolean)],W5.prototype,"showCta",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.O("design:type",Boolean)],W5.prototype,"isShortDr",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.O("design:type",Boolean)],W5.prototype,"isShortDrOrNewUi",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.O("design:type",Boolean)],W5.prototype,"isNewUiAndNotShortDr",void 0);_.U([_.Z({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],W5.prototype,"buttonOverride",void 0);_.U([_.Z({computed:"computeSecondaryButtonOverride(data)"}),_.O("design:type",Object)],W5.prototype,"secondaryButtonOverride",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],W5.prototype,"thumbnail",void 0);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],W5.prototype,"onTap",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],W5.prototype,"dataChanged",null);W5=hc=_.U([_.T({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],W5);
_.q(W5,"ytd-promoted-video-renderer",function(){if(cRz!==void 0)return cRz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return cRz=W},{mode:1});var SI8;var kc,MsI=function(){var W=_.R.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.D(MsI,_.R);_.Y=MsI.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.m("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]]"}}}}}};
_.Y.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,kc.JSC$13130_CLICK_LOCATION_ID_MAP)};
_.Y.onTap=function(W){var k,C=(k=this.data)==null?void 0:k.navigationCommand;C&&!_.sJ(_.vl(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(C,W,!1)};
_.Y.onSitelinkTap=function(W){var k,C,n=W==null?void 0:(k=W.model)==null?void 0:(C=k.item)==null?void 0:C.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,W,!1)};
_.Y.configureSitelinkClickTargets=function(){var W=this,k,C,n=(k=this.data)==null?void 0:(C=k.clickLocationTargets)==null?void 0:C.find(function(N){return N.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
n&&_.S(this.hostElement).querySelectorAll(".sitelink").forEach(function(N){_.qw(N,"yt-simple-endpoint",!0);W.sitelinkIds.push(N.id);var B,A;(B=W.ytSparklesClickLocationBehavior)==null||(A=B.clickTargetMap)==null||A.set(N.id,n)})};
_.Y.sendImpression=function(){var W,k,C=((W=this.data)==null?void 0:(k=W.impressionCommand)==null?void 0:k.loggingUrls)||[];W=_.b(C);for(k=W.next();!k.done;k=W.next())k=k.value,k.baseUrl&&Mq(k.baseUrl,k.attributionSrcMode)};
_.Y.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.oq.Object.defineProperties(MsI.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var CV=kc=MsI;kc.prototype.onTap=kc.prototype.onTap;kc.prototype.dataChanged=kc.prototype.dataChanged;
CV.JSC$13130_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"]]);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],CV.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CV.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],CV.prototype,"showFavicon",null);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],CV.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],CV.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.O("design:type",Boolean)],CV.prototype,"enableThumbnailScalingFix",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],CV.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],CV.prototype,"onTap",null);CV=kc=_.U([_.T({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],CV);
_.q(CV,"ytd-text-image-no-button-layout-renderer",function(){if(SI8!==void 0)return SI8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return SI8=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var QNI;var nV,puY=function(){var W=_.R.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.m("web_modern_buttons");W.hideCta=_.m("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.Oe("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.player=null;W.JSC$13137_playerEvents=new Map;W.JSC$13137_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.D(puY,_.R);_.Y=puY.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){this.JSC$13137_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13137_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.m("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.Y.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13137_playerEvents)};
_.Y.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",nV.JSC$13136_DEFAULT_CLICK_LOCATION_BEHAVIOR,nV.JSC$13136_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.Y.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.aM.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.m("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.bX(_.aM,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.Oe("delayed_cta_on_web_delay_milliseconds")))};
_.Y.setPlayer=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return(k=_.hA(W.hostElement,"yt-get-inline-preview-player-action"))&&k[0]?_.l(C,k[0].getPlayerPromise(),3):C.jumpTo(0);W.player=C.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$13137_playerEvents);_.ab(C)})};
_.Y.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13137_preventProgressSaveTimer=_.oE(_.aM,function(){W.JSC$13137_preventProgressSaveTimer=null},1E4))};
_.Y.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.Y.resetPreventProgressSaveTimer=function(){_.aM.cancelJob(this.JSC$13137_preventProgressSaveTimer);this.JSC$13137_preventProgressSaveTimer=null};
_.Y.getSimpleString=function(W){return _.y4(W)};
_.Y.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint,n;k=(n=this.data)==null?void 0:n.channelEndpoint;var N,B;(n=(B=_.z((N=this.data)==null?void 0:N.adCtaButton,_.Vq))==null?void 0:B.command)&&_.sJ(_.vl(W),this.hostElement,["call-to-action"])?_.m("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(n,W,!1):k&&_.sJ(_.vl(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(k,W,!1):!_.sJ(_.vl(W),this.hostElement,["secondary-button"])&&C&&(_.m("enable_short_dr_for_desktop_launchable")?(N=!!_.z(C,_.RA),this.isInlinePlaybackState&&N&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(C,W,N)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(C,W,!0)))}};
_.Y.updateWatchEndpointStartTime=function(){var W,k;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((k=this.data)==null?0:k.navigationEndpoint)&&!this.JSC$13137_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.z(this.data.navigationEndpoint,_.RA).startTimeSeconds=W,_.z(this.data.inlinePlaybackEndpoint,_.RA).startTimeSeconds=W)};
_.Y.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.oq.Object.defineProperties(puY.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.watchButton)&&!((k=this.data)==null||!k.adCtaButton)}}});
var N6=nV=puY;nV.prototype.hoverChanged=nV.prototype.hoverChanged;nV.prototype.dataChanged=nV.prototype.dataChanged;
N6.JSC$13136_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"]]);
N6.JSC$13136_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"}];
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],N6.prototype,"ytSparklesClickLocationBehavior",void 0);
_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],N6.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],N6.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"isInlinePlaybackState",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],N6.prototype,"miniMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"uiUpdate",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"hideCta",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"noBottomMargin",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"animateInCta",void 0);_.U([_.Z({computed:"computeButtonOverride(uiUpdate)"}),_.O("design:type",Object)],N6.prototype,"buttonOverride",void 0);
_.U([_.Z({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.O("design:type",Object)],N6.prototype,"secondaryButtonOverride",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N6.prototype,"isHovered",void 0);_.U([_.gi("#button-container"),_.O("design:type",HTMLElement)],N6.prototype,"buttonContainer",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],N6.prototype,"dataChanged",null);
_.U([_.Hl("isHovered"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],N6.prototype,"hoverChanged",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],N6.prototype,"isButtonGroup",null);N6=nV=_.U([_.T({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],N6);
_.q(N6,"ytd-ad-inline-playback-meta-block",function(){if(QNI!==void 0)return QNI;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return QNI=W},{mode:_.UC("kevlar_poly_si_batch_j065")?1:2});var v92;var Yc,eES=function(){var W=_.R.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$13142_activeViewMeasurementDataResolver=_.ME();return W};
_.D(eES,_.R);_.Y=eES.prototype;_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13142_activeViewMeasurementDataResolver.promise.then(function(k){W.ytdActiveViewBehavior.enableActiveViewMeasurement(k,15)});
_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners();_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13142_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.JSC$13142_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PJC})};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13142_inlinePreviewHoverListener)==null||PB(W)};
_.Y.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13142_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Yc.JSC$13141_DEFAULT_CLICK_LOCATION_BEHAVIOR,Yc.JSC$13141_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var k;if((k=this.data)==
null?0:k.hasAutoplay){var C;(C=this.JSC$13142_inlinePreviewHoverListener)==null||ziI(C)}};
_.Y.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(C,W,!!_.z(C,_.RA));W.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var k,C,n=(C=_.z((k=this.data)==null?void 0:k.onImpression,_.Nl))==null?void 0:C.commands;n&&(n.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;W.ytComponentBehavior.resolveCommand(N)}),this.data.impressionsFired=!0)}};
_.oq.Object.defineProperties(eES.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13142_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var B5=Yc=eES;Yc.prototype.onDataChanged=Yc.prototype.onDataChanged;B5.JSC$13141_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);B5.JSC$13141_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"}];_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);
_.U([_.v(XO),_.O("design:type",Object)],B5.prototype,"ytdActiveViewBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],B5.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],B5.prototype,"ytdLockupBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],B5.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],B5.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],B5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],B5.prototype,"noBottomMargin",void 0);_.U([_.Z(),_.O("design:type",Object)],B5.prototype,"isInlinePreviewTriggered",void 0);
_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],B5.prototype,"miniMode",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],B5.prototype,"thumbnail",void 0);_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],B5.prototype,"JSC$13142_dismissibleMedia",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],B5.prototype,"onDataChanged",null);
_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],B5.prototype,"isHovered",null);B5=Yc=_.U([_.T({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],B5);
_.q(B5,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(v92!==void 0)return v92;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return v92=W},{mode:1});var sN8;var br,G2Z=function(){var W=_.R.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$13145_activeViewMeasurementDataResolver=_.ME();return W};
_.D(G2Z,_.R);_.Y=G2Z.prototype;_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13145_activeViewMeasurementDataResolver.promise.then(function(k){W.ytdActiveViewBehavior.enableActiveViewMeasurement(k,15)})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13145_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.JSC$13145_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PJC})};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13145_inlinePreviewHoverListener)==null||PB(W)};
_.Y.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13145_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",br.JSC$13144_DEFAULT_CLICK_LOCATION_BEHAVIOR,br.JSC$13144_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.Y.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(C,W,!0);W.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var k,C,n=(C=_.z((k=this.data)==null?void 0:k.onImpression,_.Nl))==null?void 0:C.commands;n&&(n.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;_.f().resolve(_.uI).resolveCommand(N,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.oq.Object.defineProperties(G2Z.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13145_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var A0=br=G2Z;br.prototype.onDataChanged=br.prototype.onDataChanged;A0.JSC$13144_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);A0.JSC$13144_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"}];_.U([_.v(XO),_.O("design:type",Object)],A0.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],A0.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],A0.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],A0.prototype,"ytdReduxBehavior",void 0);
_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],A0.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A0.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],A0.prototype,"isInlinePreviewTriggered",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],A0.prototype,"miniMode",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],A0.prototype,"thumbnail",void 0);
_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],A0.prototype,"JSC$13145_dismissibleMedia",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A0.prototype,"onDataChanged",null);_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],A0.prototype,"isHovered",null);A0=br=_.U([_.T({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],A0);
_.q(A0,"ytd-video-display-full-buttoned-renderer",function(){if(sN8!==void 0)return sN8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return sN8=W},{mode:1});var C6=function(W,k,C,n){n=n===void 0?!1:n;_.Ww.call(this,W);this.adsClientErrorMessage=C;this.aggressivelySample=n;this.args=[];k&&this.args.push(k)};
_.D(C6,_.Ww);var WG=function(W,k,C,n){n=n===void 0?!1:n;_.Ww.call(this,W);this.adsClientErrorMessage=C;this.aggressivelySample=n;this.args=[];k&&this.args.push(k)};
_.D(WG,_.Ww);var yRZ=function(W){_.XK.call(this);var k=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.LU(k.instance);k.instance=null})};
_.D(yRZ,_.XK);yRZ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.jH("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var dmm=function(){var W=new Map;[].forEach(function(k){W.set(k.JSC$26617_getType(),k)})};new Promise(function(){});var tmc=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"]]),xmz=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"}]]),$vZ=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var FN=function(W,k,C,n){_.XK.call(this);this.adsControlFlowEventListeners=k;this.adEventLogger=C;this.experimentApiProvider=n;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.Bf(this,this.adsControlFlowManagerHelper);W=_.b(k);for(k=W.next();!k.done;k=W.next())_.Bf(this,k.value)};
_.D(FN,_.XK);var Zbs=function(W,k,C,n){wp(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",k,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n);W=_.b(W.adsControlFlowEventListeners);for(n=W.next();!n.done;n=W.next())Zbs(n.value,k,C)};
_.Y=FN.prototype;_.Y.onOpportunityProcessedExternallyManaged=function(W,k,C,n){wp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,C,k,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n)};
_.Y.onSlotReceivedExternallyManaged=function(W,k){xc(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,k)};
_.Y.onSlotEntered=function(W){if(lr(this.adsControlFlowManagerHelper,W)!=null){xc(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var k=_.b(this.adsControlFlowEventListeners),C=k.next();!C.done;C=k.next())C.value.onSlotEntered(W);if(lr(this.adsControlFlowManagerHelper,W)!=null&&lr(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&t0(this.adsControlFlowManagerHelper,W)&&!RES(this.adsControlFlowManagerHelper,W)){var n;E6(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(n=t0(this.adsControlFlowManagerHelper,W))!=null?n:void 0);W=lr(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&aC(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.Y.onSlotExited=function(W){if(lr(this.adsControlFlowManagerHelper,W)!=null){xc(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var k=_.b(this.adsControlFlowEventListeners),C=k.next();!C.done;C=k.next())C.value.onSlotExited(W);lr(this.adsControlFlowManagerHelper,W)!=null&&lr(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&o9Y(this,W)}};
_.Y.onLayoutReceivedExternallyManaged=function(W,k,C){W.managerLayer!=="core"&&E6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,k,C)};
var ib8=function(W,k,C){if(lr(W.adsControlFlowManagerHelper,k)!=null){E6(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",k,C);W=_.b(W.adsControlFlowEventListeners);for(var n=W.next();!n.done;n=W.next())ib8(n.value,k,C)}};
FN.prototype.onLayoutExited=function(W,k,C){if(lr(this.adsControlFlowManagerHelper,W)!=null){E6(this.adEventLogger,lQm(C),W,k);this.adsControlFlowManagerHelper.onLayoutExited(W,k);for(var n=_.b(this.adsControlFlowEventListeners),N=n.next();!N.done;N=n.next())N.value.onLayoutExited(W,k,C);(C=t0(this.adsControlFlowManagerHelper,W))&&k.layoutId===C.layoutId&&T_I(this,W)}};
FN.prototype.disposeInternal=function(){var W=qIA(this.adsControlFlowManagerHelper);W=_.b(W);for(var k=W.next();!k.done;k=W.next())o9Y(this,k.value);_.XK.prototype.disposeInternal.call(this)};
var o9Y=function(W,k){if(lr(W.adsControlFlowManagerHelper,k)!=null)if(lr(W.adsControlFlowManagerHelper,k).JSC$26648_isSlotExitRequested()||lr(W.adsControlFlowManagerHelper,k).JSC$26648_isLayoutExitRequested())lr(W.adsControlFlowManagerHelper,k).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(lr(W.adsControlFlowManagerHelper,k).isOccupyingSlotType())lr(W.adsControlFlowManagerHelper,k).markedForUnscheduleAfterOutboundAdapterRequests=!0,T_I(W,k);else if(lr(W.adsControlFlowManagerHelper,k).JSC$26648_isSlotFillRequested())lr(W.adsControlFlowManagerHelper,
k).markedForUnscheduleAfterOutboundAdapterRequests=!0,lr(W.adsControlFlowManagerHelper,k)!=null&&(xc(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",k),k=lr(W.adsControlFlowManagerHelper,k),k.fulfillmentLifecycleStage="fill_cancel_requested",k.registeredFulfillmentAdapter.cancelSlotFilling());else{var C=t0(W.adsControlFlowManagerHelper,k),n;W.experimentApiProvider.get();(n=_.m("h5_enable_layout_unscheduling_events"))&&(C?uIs(W,k,C):_.jH(Error("Ih"),k,C,void 0,!1));xc(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",k);var N=lr(W.adsControlFlowManagerHelper,k),B=k.slotEntryTrigger,A=N.registeredSlotEntryTriggerAdapters.get(B.triggerId);A&&(A.unregisterTrigger(B),N.registeredSlotEntryTriggerAdapters.delete(B.triggerId));B=_.b(k.slotFulfillmentTriggers);for(A=B.next();!A.done;A=B.next()){A=A.value;var w=N.registeredFulfillmentTriggerAdapters.get(A.triggerId);w&&(w.unregisterTrigger(A),N.registeredFulfillmentTriggerAdapters.delete(A.triggerId))}B=_.b(k.slotExpirationTriggers);
for(A=B.next();!A.done;A=B.next())if(A=A.value,w=N.registeredExpirationTriggerAdapters.get(A.triggerId))w.unregisterTrigger(A),N.registeredExpirationTriggerAdapters.delete(A.triggerId);N.hasLayout()&&(B=N.layout,XN(N,B.layoutExitNormalTriggers),XN(N,B.layoutExitSkipTriggers),XN(N,B.layoutExitMuteTriggers),XN(N,B.layoutExitUserInputSubmittedTriggers),XN(N,B.layoutExitUserCancelledTriggers));N.registeredFulfillmentAdapter=void 0;N.registeredSlotAdapter!=null&&(N.registeredSlotAdapter.release(),N.registeredSlotAdapter=
void 0);N.registeredLayoutRenderingAdapter!=null&&(N.registeredLayoutRenderingAdapter.release(),N.registeredLayoutRenderingAdapter=void 0);N=W.adsControlFlowManagerHelper;lr(N,k)&&(N=Uv2(N,k.slotType+"_"+k.slotPhysicalPosition))&&N.delete(k.slotId);xc(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);W=_.b(W.adsControlFlowEventListeners);for(N=W.next();!N.done;N=W.next())N=N.value,N.onSlotUnscheduled(k),C&&!n&&uIs(N,k,C)}},uIs=function(W,k,C){E6(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
k,C);
E6(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",k,C);W=_.b(W.adsControlFlowEventListeners);for(var n=W.next();!n.done;n=W.next())n=n.value,C&&uIs(n,k,C)},T_I=function(W,k){if(lr(W.adsControlFlowManagerHelper,k)!=null&&lr(W.adsControlFlowManagerHelper,k).isOccupyingSlotType()){var C=t0(W.adsControlFlowManagerHelper,k);
if(C&&RES(W.adsControlFlowManagerHelper,k)){if(lr(W.adsControlFlowManagerHelper,k)!=null){var n=W.adEventLogger,N;var B=((N=xmz.get("abandoned"))==null?void 0:N.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";E6(n,B,k,C);W=lr(W.adsControlFlowManagerHelper,k);W.slotLifecycleStage!=="rendering"&&aC(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(C,"abandoned")}}else{xc(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
k);try{n=lr(W.adsControlFlowManagerHelper,k);if(!n)throw new WG("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");n.slotLifecycleStage!=="enter_requested"&&n.slotLifecycleStage!=="entered"&&n.slotLifecycleStage!=="rendering"&&aC(n.slot,n.slotLifecycleStage,"exitSlot");n.slotLifecycleStage="exit_requested";if(n.registeredSlotAdapter===void 0)throw n.slotLifecycleStage="scheduled",new WG("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
n.registeredSlotAdapter.exit()}catch(A){A instanceof WG&&A.adsClientErrorMessage?(ObZ(W.adEventLogger,A.adsClientErrorMessage,k),_.jH(A,k,void 0,void 0,A.aggressivelySample)):(ObZ(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k),_.jH(A,k))}}}};var fV=function(W,k,C,n,N,B){_.XK.call(this);this.registry=W;this.experimentApiProvider=B;this.slotMap=new Map};
_.D(fV,_.XK);var Uv2=function(W,k){return(W=W.slotMap.get(k))?W:new Map},lr=function(W,k){return Uv2(W,k.slotType+"_"+k.slotPhysicalPosition).get(k.slotId)},qIA=function(W){var k=[];
W.slotMap.forEach(function(C){C=_.b(C.values());for(var n=C.next();!n.done;n=C.next())k.push(n.value.slot)});
return k};
fV.prototype.onSlotEntered=function(W){W=lr(this,W);W.slotLifecycleStage!=="enter_requested"&&aC(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var RES=function(W,k){W=lr(W,k);return W.hasLayout()&&W.isRendering()},t0=function(W,k){(W=lr(W,k))?W.hasLayout()&&!W.layout&&_.jH("Unexpected empty layout",k):_.jH("Unexpected undefined slotState",k);
return(W==null?void 0:W.layout)||null};
fV.prototype.onSlotExited=function(W){W=lr(this,W);W.slotLifecycleStage!=="exit_requested"&&aC(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
fV.prototype.onLayoutExited=function(W,k){W=lr(this,W);W.isPrimaryLayout(k)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&aC(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var XN=function(W,k){k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=W.registeredLayoutExitTriggerAdapters.get(C.triggerId);n&&(n.unregisterTrigger(C),W.registeredLayoutExitTriggerAdapters.delete(C.triggerId))}},aC=function(W,k,C){_.jH("Slot stage was "+k+" when calling method "+C,W)};var jNY=function(W){_.XK.call(this);this.deps=W;this.JSC$13194_adsControlFlowManager=LY2(this)};
_.D(jNY,_.XK);var LY2=function(W){var k=new FN(function(C,n,N,B){return new fV(W.deps.registry,C,n,N,B,W.deps.experimentApiProvider)},new Set(fQm(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.Bf(W,k);return k};var Hbs=function(W,k){_.XK.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=k;this.eventCount=0};
_.D(Hbs,_.XK);Hbs.prototype.logEvent=function(W){wp(this,W)};
var xc=function(W,k,C,n){wp(W,k,void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,void 0,n)},E6=function(W,k,C,n,N){wp(W,k,void 0,void 0,void 0,C,n?n:void 0,void 0,void 0,C.adSlotLoggingData,n?n.adLayoutLoggingData:void 0,void 0,N)},ObZ=function(W,k,C){wp(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:k})},wp=function(W,k,C,n,N,B,A,w,x,E,a,X,d){d=d===void 0?0:d;
rRS(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+k,"slot:",B,"layout:",A,"ping:",w,"Opportunity:",{opportunityType:C,associatedSlotId:n,slotsFromOpportunity:N,triggerBundle:x,adSlotLoggingData:E,adLayoutLoggingData:a});try{var V=function(){W.experimentApiProvider.get();if(k!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){k||_.jH("Empty PACF event type",B,A);var c=W.eventLoggingSettingsProvider.get();var M;(M=c.alwaysIncludeDebugData)||(c.experimentApiProvider.get(),M=
!1);c=M;M={eventType:k,eventOrder:++W.eventCount};var p={};B&&(p.slotData=aQm(c,B));if(A){var e={type:A.layoutType,controlFlowManagerLayer:tmc.get(A.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c&&(e.debugData={layoutId:A.layoutId});p.layoutData=e}w&&(p.pingData={pingDispatchStatus:w.dispatchStatus,serializedAdPingMetadata:w.ping.serializedAdPingMetadata,pingIndex:w.index});x&&(p.triggerData=Eiw(x.trigger,x.category));C&&(p.opportunityData=Xk4(c,C,n,N));M.adClientData=p;E&&(M.serializedSlotAdServingData=
E.serializedSlotAdServingDataEntry);a&&(M.serializedAdServingData=a.serializedAdServingDataEntry);X&&(M.errorInfo=X);_.a9("adsClientStateChange",{adsClientEvent:M})}};
d&&d>0?_.wI(_.D7(),function(){return V()},d):V()}catch(c){rRS(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.wI(_.D7(),function(){_.jH(c instanceof Error?c:String(c),B,A,{pacf_message:"exception during pacf logging"})})}};var g9S=function(W,k){Hbs.call(this,W,k)};
_.D(g9S,Hbs);var Pzs=function(){},rRS=function(W,k){return _.m(k)};var hEs=function(){var W=new KYb;this.JSC$13213_adsControlFlowManager=(new jNY(W)).JSC$13194_adsControlFlowManager},KYb=function(){_.XK.call(this);
var W=this;this.experimentApiProvider=new yRZ(function(){return new Pzs});
var k=new yRZ(function(){return new $vZ(W.experimentApiProvider)});
this.adEventLogger=new g9S(this.experimentApiProvider,k);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.D(KYb,_.XK);var WM8=function(){},kHx,dp=function(){kHx||(kHx=new WM8);
return kHx},mp=function(W){if(!W.JSC$13224_externallyManagedSlotAdapterCallback){var k=(new hEs).JSC$13213_adsControlFlowManager;
W.JSC$13224_externallyManagedSlotAdapterCallback=k}return W.JSC$13224_externallyManagedSlotAdapterCallback},CnS=function(W,k,C){var n=k.opportunityType,N=Error("Jh");
if(n!==void 0){var B=mp(W);Zbs(B,n,void 0,C)}else _.jH(N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});B=[];if(k.adSlotAndLayoutMetadata!==void 0){k=_.b(k.adSlotAndLayoutMetadata);for(var A=k.next();!A.done;A=k.next()){var w=A.value;if(A=w.adSlotMetadata)if(B.push(A),W.onSlotReceivedExternallyManaged(A,C),w.adLayoutMetadata){w=_.b(w.adLayoutMetadata);for(var x=w.next();!x.done;x=w.next())W.onLayoutReceivedExternallyManaged(A,x.value,C)}else C>0&&_.jH("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else C>0&&_.jH("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else C>0&&_.jH("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(n!==void 0)W.onOpportunityProcessedExternallyManaged(n,B,void 0,C);else _.jH(N,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
WM8.prototype.onSlotReceivedExternallyManaged=function(W,k){W=kx(W);if(W instanceof WG)_.jH(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else mp(this).onSlotReceivedExternallyManaged(W,k)};
WM8.prototype.onLayoutReceivedExternallyManaged=function(W,k,C){W=kx(W);k=mmp(k);if(W instanceof WG)_.jH(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(k instanceof C6)_.jH(k,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else mp(this).onLayoutReceivedExternallyManaged(W,k,C)};
WM8.prototype.onOpportunityProcessedExternallyManaged=function(W,k,C,n){var N=[];k=_.b(k);for(var B=k.next();!B.done;B=k.next())B=kx(B.value),B instanceof WG?_.jH(B,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):N.push(B);mp(this).onOpportunityProcessedExternallyManaged(W,N,C,n)};
var nh8=function(W,k){k=kx(k);if(k instanceof WG)_.jH(k,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var C=mp(W);xc(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",k);C=_.b(C.adsControlFlowEventListeners);for(var n=C.next();!n.done;n=C.next())n=lr(n.value,k),n.slotLifecycleStage!=="not_scheduled"&&aC(n.slot,n.slotLifecycleStage,"onSlotScheduled"),n.slotLifecycleStage="scheduled";W=mp(W);xc(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",k);W=_.b(W.adsControlFlowEventListeners);
for(C=W.next();!C.done;C=W.next())C.value.onSlotEntered(k)}},NM8=function(W,k){k=kx(k);
if(k instanceof WG)_.jH(k,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var C=mp(W);xc(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",k);C=_.b(C.adsControlFlowEventListeners);for(var n=C.next();!n.done;n=C.next())n.value.onSlotExited(k);W=mp(W);xc(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);W=_.b(W.adsControlFlowEventListeners);for(C=W.next();!C.done;C=W.next())C.value.onSlotUnscheduled(k)}},YWI=function(W,k,C){k=kx(k);
C=mmp(C);if(k instanceof WG)_.jH(k,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(C instanceof C6)_.jH(C,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var n=mp(W);E6(n.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",k,C);n=_.b(n.adsControlFlowEventListeners);for(var N=n.next();!N.done;N=n.next())N.value.onLayoutScheduled(k,C);W=mp(W);E6(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",k,C);W=_.b(W.adsControlFlowEventListeners);
for(n=W.next();!n.done;n=W.next())ib8(n.value,k,C)}},zT=function(W,k,C){k=kx(k);
C=mmp(C);if(k instanceof WG)_.jH(k,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(C instanceof C6)_.jH(C,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var n=mp(W);E6(n.adEventLogger,lQm("normal"),k,C);n=_.b(n.adsControlFlowEventListeners);for(var N=n.next();!N.done;N=n.next())N.value.onLayoutExited(k,C,"normal");W=mp(W);W=_.b(W.adsControlFlowEventListeners);for(n=W.next();!n.done;n=W.next())uIs(n.value,k,C)}};_.DJ=_.GM(function(W){var k=_.vp(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},k);var C=k.data;k=k.customCommandResolver;var n=(delete W.data,delete W.customCommandResolver,W),N=_.yE();_.Zi(N,function(){return C().interaction},k,function(){var w;
return(w=n.listenToTapEvent)==null?void 0:w.call(n)});
_.uT(N,{visibilityCallback:function(w){var x,E=(x=C().interaction)==null?void 0:x.onFirstVisible;w&&(E&&_.zj(E),n.setOnErrorHandler()&&zzK(N))},
showOption:_.gl});W=_.b(_.kw(!1,void 0,"eiYvIe"));var B=W.next().value,A=W.next().value;W=_.Pj(function(){var w;((w=n.setTouchEndHandler)==null?0:w.call(n))&&!B()&&(N.value.click(),A(!0),setTimeout(function(){A(!1)},100));
return!1});
return _.t("ad-image-view-model",{class:function(){var w,x=[((w=C().interaction)==null?0:w.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],E;((E=n.isGridViewEnabled)==null?0:E.call(n))&&x.push("ytwAdImageViewModelHostInGridView");return x.join(" ")},
el:N,"on:touchend":W},_.t("div",{class:"ytwAdImageViewModelHostImageContainer"},_.t(_.pi,{data:function(){var w;return{sources:C().imageSources,contentMode:(w=C().imageProperties)==null?void 0:w.contentMode}},
alt:function(){var w,x;return((w=C().interaction)==null?void 0:(x=w.accessibility)==null?void 0:x.label)||""},
targetHeight:n.targetHeight,targetWidth:n.targetWidth,preserveHeight:n.preserveHeight,preserveWidth:n.preserveWidth,useWidth:n.useWidth,style:function(){var w,x;return"vertical-align: bottom;"+(((w=C().background)==null?0:w.color)?"background-color:"+_.a8((x=C().background)==null?void 0:x.color)+";":"")},
className:function(){return n.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var w,x;return(x=(w=n.setDraggable)==null?void 0:w.call(n))!=null?x:void 0}})))},"Va");var BM8=_.GM(function(W){var k=W.data,C=W.listenToTapEvent,n=_.yE();_.m("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Zi(n,function(){return k().interaction},void 0,function(){return C==null?void 0:C()});
_.uT(n,{visibilityCallback:function(B){var A,w=(A=k().interaction)==null?void 0:A.onFirstVisible;B&&w&&_.zj(w)},
showOption:_.gl});W=_.Pj(function(){if(_.m("enable_web_home_top_landscape_image_layout_legacy_click_command")){var B,A=(B=k().interaction)==null?void 0:B.onTap;A&&_.Pe(n.value,"yt-navigate",{endpoint:_.fi(A)})}});
var N=function(){};
return _.t("ad-button-hover-overlay-view-model",{"on:click":W,class:function(){var B;return((B=k().interaction)==null?0:B.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:n},function(){return _.m("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.t(_.Ex,{data:function(){return k().button}},{adButtonViewModel:function(B){return _.t(_.Kc,{data:B.data,
customCommandResolver:N})}}):_.t(_.Ex,{data:function(){return k().button}},{adButtonViewModel:_.Kc})}())},"Wa");var n6;_.Gj(_.GM(function(W){var k=W.data;var C=_.yE();_.m("stop_av_measurement_on_detach")&&_.fy(function(){Yx(C)});
_.Zi(C,function(){return k().interaction},void 0,function(){return!0});
_.uT(C,{visibilityCallback:function(B){if(B){var A;(B=(A=k().interaction)==null?void 0:A.onFirstVisible)&&_.zj(B);var w;if(A=(w=k().adLayoutData)==null?void 0:w.activeViewData)N2(C,A),_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yx(C)})}else _.m("stop_av_measurement_on_detach")&&Yx(C)},
showOption:_.gl,hideOption:PZ});W=_.b(_.kw(!1,void 0,"yzu6qe"));var n=W.next().value,N=W.next().value;_.Zx(C,"mouseenter",function(){N(!0)});
_.Zx(C,"mouseleave",function(){N(!1)});
return _.t("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:C},_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.WJ({"max-width":function(){return _.m("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.t("div",{class:function(){var B;
a:{var A;switch((B=_.z(k().thumbnailImage,wc))==null?void 0:(A=B.imageProperties)==null?void 0:A.renderingAspect){case "RENDERING_ASPECT_SQUARE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}B=void 0}return B}},_.t(_.Ex,{data:function(){return k().thumbnailImage}},{adImageViewModel:function(B){return _.t(_.DJ,
{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.m("enable_top_landscape_image_experiment_dom_id_web")})}})),_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.t(_.NI,{cond:function(){var B,A,w;
return(B=_.z(k().thumbnailImage,wc))==null?void 0:(A=B.imageProperties)==null?void 0:(w=A.overlayIcon)==null?void 0:w.iconImage},
then:function(B){return _.t(_.pi,{data:B,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.t("div",{class:function(){return n()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.t(_.Ex,{data:function(){return k().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(B){return _.t(BM8,
{data:B.data,
listenToTapEvent:!0})}}))),_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.t(_.Ex,{data:function(){return k().feedAdMetadata}},{feedAdMetadataViewModel:function(B){return _.t(r_Y,{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.m("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=_.yE();_.m("stop_av_measurement_on_detach")&&_.fy(function(){Yx(C)});
var n=_.X8(_.Vg);_.Zi(C,function(){return k().interaction});
_.uT(C,{visibilityCallback:function(E){if(E){var a;(E=(a=k().interaction)==null?void 0:a.onFirstVisible)&&_.zj(E);var X;if(a=(X=k().adLayoutData)==null?void 0:X.activeViewData)N2(C,a),_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yx(C)})}else _.m("stop_av_measurement_on_detach")&&Yx(C)},
showOption:_.gl,hideOption:PZ});var N=_.Pj(function(E){var a,X,d=(a=_.z(k().adImage,wc))==null?void 0:(X=a.interaction)==null?void 0:X.onTap;d&&(_.m("enable_square_image_components_ui_web_with_custom_event")?_.Pe(C.value,"yt-navigate",{endpoint:_.fi(d)}):ZpI(E,d))}),B=_.Pj(function(){var E,a,X=(E=_.z(k().adButton,Dez))==null?void 0:(a=E.interaction)==null?void 0:a.onTap;
X&&_.Pe(C.value,"yt-navigate",{endpoint:_.fi(X)})}),A=function(){};
W={};var w={},x={};return _.t("square-image-layout-view-model",{class:_.Li("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=n,W)),el:C},_.t("div",{class:_.Li("ytwSquareImageLayoutViewModelHostImage",(w.ytwSquareImageLayoutViewModelHostColumnImage=n,w))},function(){return _.m("enable_square_image_components_ui_web_with_native_img")?_.t("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var E,a,X;return((E=_.z(k().adImage,wc))==null?void 0:(a=E.imageSources)==
null?void 0:(X=a[0])==null?void 0:X.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":N}):_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(E){return _.t(_.DJ,{data:E.data,
isGridViewEnabled:n,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.t("div",{class:_.Li("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(x.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=n,x))},_.t(_.Ex,{data:function(){return k().feedAdMetadata}},{feedAdMetadataViewModel:r_Y}),function(){return _.m("enable_square_image_components_ui_web_with_float_button")?_.t("div",{"on:click":B},_.t(_.Ex,{data:function(){return k().adButton}},
{adButtonViewModel:function(E){var a={};
return _.t(_.Kc,{data:E.data,customCommandResolver:A,className:_.Li((a.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=n,a))})}})):_.t(_.Ex,{data:function(){return k().adButton}},{adButtonViewModel:function(E){var a={};
return _.t(_.Kc,{data:E.data,className:_.Li((a.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=n,a))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=W.noBottomMargin;var n=_.yE();_.m("stop_av_measurement_on_detach")&&_.fy(function(){Yx(n)});
_.m("enable_web_home_top_landscape_image_layout_level_click")&&_.Zi(n,function(){return k().interaction},void 0,function(){return!0});
W=function(){return k().interaction};
W!==void 0&&W!==null||_.pS(Error("Kh"));_.uT(n,{visibilityCallback:function(x){if(x){var E;(x=(E=k().interaction)==null?void 0:E.onFirstVisible)&&_.zj(x);var a;if(E=(a=k().adLayoutData)==null?void 0:a.activeViewData)N2(n,E),_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yx(n)})}else _.m("stop_av_measurement_on_detach")&&Yx(n)},
showOption:_.gl,hideOption:PZ});var N=function(){var x,E,a;return(x=_.z(k().thumbnailImage,wc))==null?void 0:(E=x.background)==null?void 0:(a=E.backgroundImageSource)==null?void 0:a.imageSources};
W=_.b(_.kw(!1,void 0,"rWKgsf"));var B=W.next().value,A=W.next().value;_.Zx(n,"mouseenter",function(){A(!0)});
_.Zx(n,"mouseleave",function(){A(!1)});
var w=function(){return B()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.t("top-landscape-image-layout-view-model",{class:function(){var x;return((x=k().interaction)==null?0:x.onTap)&&_.m("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:n},_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.t(_.NI,{cond:function(){return N()&&N().length>0},
then:function(){return _.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.WJ({top:"0","background-image":function(){return"url("+String(N()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.t(_.NI,{cond:function(){return!!k().adButtonHoverOverlay},
then:function(){return _.t("div",{class:w},_.t(_.Ex,{data:function(){return k().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:BM8}))}}),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.t(_.Ex,{data:function(){return k().thumbnailImage}},{adImageViewModel:function(x){return _.t(_.DJ,{data:x.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.m("enable_web_home_top_landscape_image_layout_level_click")})}})),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.t(_.pi,{data:{sources:[{clientResource:{imageName:_.m("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.t(_.Ex,{data:function(){return k().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.t(r_Y,{data:x.data,
noBottomMargin:function(){return C==null?void 0:C()},
listenToTapEvent:function(){return _.m("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.Ik,
noBottomMargin:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=_.yE();_.m("stop_av_measurement_on_detach")&&_.fy(function(){Yx(C)});
_.uT(C,{visibilityCallback:function(n){if(n){var N;(n=(N=k().interaction)==null?void 0:N.onFirstVisible)&&_.zj(n);var B;if(N=(B=k().adLayoutData)==null?void 0:B.activeViewData)N2(C,N),_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yx(C)})}else _.m("stop_av_measurement_on_detach")&&Yx(C)},
showOption:_.gl,hideOption:PZ});return _.t("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:C},_.t("div",null,_.t(_.Ex,{data:function(){return k().videoLockup}},{lockupViewModel:function(n){return _.t(Nk,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.Ik,
noBottomMargin:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=_.yE();_.m("stop_av_measurement_on_detach")&&_.fy(function(){Yx(C)});
_.uT(C,{visibilityCallback:function(n){if(n){var N;(n=(N=k().interaction)==null?void 0:N.onFirstVisible)&&_.zj(n);var B;if(N=(B=k().adLayoutData)==null?void 0:B.activeViewData)N2(C,N),_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yx(C)})}else _.m("stop_av_measurement_on_detach")&&Yx(C)},
showOption:_.gl,hideOption:PZ});return _.t("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:C},_.t("div",null,_.t(_.Ex,{data:function(){return k().videoLockup}},{lockupViewModel:function(n){return _.t(Nk,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.Ik,
noBottomMargin:_.Ik}});_.bDI=_.GM(function(W){var k=W.data;W=_.yE();return _.t("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.t(_.NI,{cond:function(){return k().imageBadge},
then:function(C){return _.t(_.pi,{data:C,alt:""})}}))},"bb");var AmA=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});return _.t("carousel-ad-card-image-view-model",{class:function(){var n;return((n=k().interaction)==null?0:n.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:W,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(n){return _.t(_.DJ,{data:n.data,
customCommandResolver:C})}}),_.t("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.t(_.Ex,{data:function(){return k().badge}},{adCardBadgeViewModel:_.bDI})),_.t(_.BJ,{model:{color:4}}))},"cb");var FMA=_.GM(function(W){var k=_.b(_.kw(0,void 0,"o9Bzd")),C=k.next().value;k.next();var n=k.next().value,N=_.b(_.kw(!1,void 0,"KLdzYe"));k=N.next().value;var B=N.next().value,A;_.fy(function(){clearTimeout(A)});
N=_.Pj(function(){var E;((E=W.animate)==null?0:E.call(W))?(B(!0),A=setTimeout(function(){B(!1);w()},200)):w();
return!1});
var w=function(){n(function(E){return(E+W.numShownItems())%W.data().length})},x={};
return _.t("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.t("div",{class:_.Li("ytwHorizontalCarouselCarouselWrapper")},_.t("div",{class:_.Li("ytwHorizontalCarouselCarouselInnerWrapper",(x.ytwHorizontalCarouselAnimating=k,x))},_.t(_.bI,{each:W.data,keyBy:"INDEX"},function(E,a){return _.t("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.WJ({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var X=a-C();X<0&&(X+=W.data().length);return X}})},W.children(E,a))}))),_.t("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":N},W.nextButton()))},"db");var wcI=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;var n=W.expansive;W=_.yE();_.uT(W,{visibilityCallback:function(N){var B,A=(B=k().interaction)==null?void 0:B.onFirstVisible;N&&A&&_.zj(A)},
showOption:_.gl});return _.t("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:W},_.t(FMA,{data:function(){var N;return((N=k())==null?void 0:N.carouselAdCards)||[]},
nextButton:function(){return _.t(_.Ex,{data:function(){return k().nextButton}},{buttonViewModel:function(N){var B=N.data;
return _.t(_.zn,{data:function(){return(n==null?0:n())?Object.assign({},B(),{style:"mono"}):B()},
className:_.m("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(N){return _.t(_.Ex,{data:N},{carouselAdCardImageViewModel:function(B){return _.t(AmA,{data:B.data,customCommandResolver:C})}})}))},"eb");var x0I=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;var n=W.className;var N=W.buttonClassName;var B=W.animationEntityKey;var A=W.expansive;return _.t("carousel-button-view-model",{class:_.Li("ytwCarouselButtonViewModelHost",n)},_.t(_.Ex,{data:function(){return k().carousel}},{carouselAdCardCollectionViewModel:function(w){return _.t(wcI,{data:w.data,
customCommandResolver:C,expansive:A})}}),_.t(_.Ex,{data:function(){return k().button}},{adButtonViewModel:function(w){var x=w.data;
return _.t(_.Kc,{data:function(){return(A==null?0:A())?Object.assign({},x(),{style:"AD_BUTTON_STYLE_TONAL"}):x()},
className:N,customCommandResolver:C,animationEntityKey:B})}}))},"fb");_.lSS=_.GM(function(W){var k=W.data;W=W.className;var C=_.yE();_.Ee(function(){var n;((n=k())==null?0:n.backgroundColor)&&C.value.setAttribute("data-background-color",String(k().backgroundColor))});
return _.t("pivot-button-view-model",{el:C,class:_.Li("ytwPivotButtonViewModelHost",W)},_.t(_.NE,{command:function(){var n=k();n=n.onClickCommand?_.fi(n.onClickCommand):n.contentDescription?_.iO(n.contentDescription):void 0;return n},
ariaLabel:function(){return k().contentDescription}},_.t(_.NI,{cond:function(){return k().thumbnail},
then:function(n){return _.t(_.pi,{data:n,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.t(_.NI,{cond:function(){return k().icon},
then:function(n){return _.t(_.ka,{icon:function(){return n().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.tJs=_.GM(function(W){var k=W.data;var C=W.buttonShapeOverrideables;return _.t("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.t(_.Ex,{data:function(){return k().buttonViewModels}},{buttonViewModel:function(n){return _.t(_.zn,{data:n.data,
buttonOverrides:C})},
likeButtonViewModel:function(n){return _.t(_.AJS,{data:n.data,buttonShapeOverrideables:C})},
dislikeButtonViewModel:function(n){return _.t(_.bfb,{data:n.data,buttonShapeOverrideables:C})}}))},"hb");var EhC=_.GM(function(W){var k=W.avatar;var C=W.headline;var n=W.badge;var N=W.description;var B=W.expansive;W={};return _.t("yt-ad-metadata-shape",{class:_.Li("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=B,W))},_.t("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.t(_.NI,{cond:k,then:function(A){return _.t(_.OWA,{data:function(){return(B==null?0:B())?Object.assign({},A(),{size:"AD_AVATAR_SIZE_MPLUS"}):A()}})}}),_.t("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.t(_.Ya,{text:C,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.t(_.NI,{cond:n,then:function(A){return _.t(_.CG,{data:function(){return(B==null?0:B())?Object.assign({},A(),{style:"AD_BADGE_STYLE_STARK"}):A()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.t("h2",{class:"ytAdMetadataShapeHostDescription"},_.t(_.Ya,{text:N,
linkInheritColor:!0})))},"ib");var aSC=_.GM(function(W){var k=W.data;var C=W.onShow;var n=W.expansive;W=_.yE();_.Zi(W,function(){return k().interaction});
_.Ee(function(){var B,A=(B=k().animatedRenderingConfig)==null?void 0:B.delayedSecondsToVisible;if(A){var w=setTimeout(C,A*1E3);_.fy(function(){clearTimeout(w)})}});
var N={};return _.t("reels-ad-card-buttoned-view-model",{class:_.Li(function(){var B;return((B=k().interaction)==null?0:B.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(N.ytwReelsAdCardButtonedViewModelHostExpansive=n,N)),
el:W},_.t(EhC,{avatar:function(){return _.z(k().avatar,me8)},
headline:function(){return k().headline},
badge:function(){return _.z(k().adBadge,zOA)},
description:function(){return k().description},
expansive:n}),_.t(_.Ex,{data:function(){return k().ctaButton}},{adButtonViewModel:function(B){var A=B.data;
return _.t(_.Kc,{data:function(){return(n==null?0:n())?Object.assign({},A(),{style:"AD_BUTTON_STYLE_FILLED"}):A()}})}}))},"jb");var XcC=_.GM(function(W){var k=W.data;W=W.expansive;var C=_.yE();_.m("web_ad_metadata_clickable")&&_.Zi(C,function(){return k().interaction});
var n={};n=_.Hj("ytwReelsAdMetadataViewModelHost",(n.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.m("web_ad_metadata_clickable"),n));return _.t("reels-ad-metadata-view-model",{class:n,el:C},_.t(EhC,{avatar:function(){return _.z(k().avatar,me8)},
headline:function(){return k().headline},
badge:function(){return _.z(k().adBadge,zOA)},
description:function(){return k().description},
expansive:W}))},"kb");var fSZ={iconPosition:"icon-with-label",size:"L"},d0z=_.GM(function(W){var k=W.data;W=W.overlayDensity;var C=_.yE(),n=_.pq(W,0);_.XM(function(){C.value.setAttribute("overlay-density",String(n()))});
var N=function(){var X;return(X=k().reelsAdCardButtonedEntityKey)!=null?X:""},B=function(){return N()+"/ad_button"},A=_.kj(ps3,N),w=function(){var X,d;
return(d=(X=A())==null?void 0:X.value)!=null?d:!1},x=_.X8(S4J),E=function(){return Object.assign({},fSZ,(x()||n()===2)&&{style:"overlay-dark"})};
W={};var a={};return _.t("reels-player-overlay-layout-view-model",{class:_.Li("ytwReelsPlayerOverlayLayoutViewModelHost",(W.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!k().extension},W.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},W)),
el:C},_.t("div",{class:_.Li("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(a.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},a))},_.t("div",{"aria-hidden":function(){return w()},
class:_.Li("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.WJ({"transition-duration":function(){return pkm(k())}})},_.t(_.Ex,{data:function(){return k().adMetadata}},{reelsAdMetadataViewModel:function(X){return _.t(XcC,{data:X.data,
expansive:function(){return n()===1}})}}),_.t(_.NI,{cond:function(){return k().extension},
then:function(X){return _.t("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.t(_.Ex,{data:X},{adButtonViewModel:function(d){return _.t(_.Kc,{data:d.data,animationEntityKey:B,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(d){return _.t(x0I,{data:d.data,animationEntityKey:B,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return n()===1}})}}))}})),_.t("div",{"aria-hidden":function(){return!w()},
class:_.Li("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.WJ({"transition-duration":function(){return pkm(k())}})},_.t(_.Ex,{data:function(){return k().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(X){return _.t(aSC,{data:X.data,
onShow:function(){_.Q3(_.Nj("booleanEntity",N(),{key:N(),value:!0}))},
expansive:function(){return n()===1}})}}))),_.t("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.t(_.Ex,{data:function(){return k().actions}},{reelActionBarViewModel:function(X){return _.t(_.tJs,{data:X.data,
buttonShapeOverrideables:E})}}),_.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:function(X){return _.t(_.zn,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},E(),{type:"tonal"})}})}}),_.t(_.Ex,{data:function(){return k().pivotButton}},{pivotButtonViewModel:function(X){return _.t(_.lSS,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.Gj(d0z,"reels-player-overlay-layout-view-model",{props:{data:_.Ik,overlayDensity:_.Ik}});var m0C=function(){var W=_.R.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.D(m0C,_.R);_.Y=m0C.prototype;
_.Y.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:_.m("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]]"}}}}}};
_.Y.ready=function(){var W=this;Wv3(function(){W.isAttached&&KX(W.JSC$13266_storedAdSlotMetadata,W.JSC$13266_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&zT(dp(),W.JSC$13266_storedAdSlotMetadata,W.JSC$13266_storedAdLayoutMetadata)})};
_.Y.attached=function(){KX(this.JSC$13266_storedAdSlotMetadata,this.JSC$13266_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YWI(dp(),this.JSC$13266_storedAdSlotMetadata,this.JSC$13266_storedAdLayoutMetadata)};
_.Y.detached=function(){KX(this.JSC$13266_storedAdSlotMetadata,this.JSC$13266_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zT(dp(),this.JSC$13266_storedAdSlotMetadata,this.JSC$13266_storedAdLayoutMetadata)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13266_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13266_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13266_storedAdLayoutMetadata!==void 0&&this.JSC$13266_storedAdSlotMetadata!==void 0&&zT(dp(),this.JSC$13266_storedAdSlotMetadata,this.JSC$13266_storedAdLayoutMetadata),YWI(dp(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13266_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13266_storedAdSlotMetadata=this.adSlotMetadata)};
_.oq.Object.defineProperties(m0C.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
var VJ=m0C;VJ.prototype.onAdMetadataChanged=VJ.prototype.onAdMetadataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],VJ.prototype,"rendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],VJ.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],VJ.prototype,"noBottomMargin",void 0);_.U([_.Z(),_.O("design:type",Object)],VJ.prototype,"overlayDensity",void 0);_.U([_.G("data.adLayoutMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],VJ.prototype,"adLayoutMetadata",null);_.U([_.Z(),_.O("design:type",Object)],VJ.prototype,"adSlotMetadata",void 0);
_.U([_.Hl("adLayoutMetadata","adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VJ.prototype,"onAdMetadataChanged",null);VJ=_.U([_.T({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],VJ);
_.q(VJ,"ytd-in-feed-ad-layout-renderer",function(){if(rq8!==void 0)return rq8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return rq8=W},
{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var zg2;var D0x;var VJS=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.D(VJS,_.R);_.Y=VJS.prototype;_.Y.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.Y.onYtToggleButton=function(W){var k,C=(k=this.data)==null?void 0:k.videoReminderEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Nj("upcomingEventReminderStateEntity",C,{key:C,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.Y.attached=function(){this.updateChannelBanner()};
_.Y.dataChanged=function(){this.updateChannelBanner()};
_.Y.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.z((W=this.data)==null?void 0:W.cta,_.JT)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.Y.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.yI(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.Op(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.m("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.Y.onPlayerReady=function(){this.onIronResize()};
_.Y.maybeFlushDebouncer=function(){_.m("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var k;W=(k=W.getElementsByTagName("yt-attributed-string"))==null?void 0:k[0];czw(W==null?void 0:W.polymerController)})};
_.Y.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.S(this.hostElement).querySelector("#live-description"),k;W&&((k=this.data)==null?0:k.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var J0=VJS;J0.prototype.onIronResize=J0.prototype.onIronResize;J0.prototype.videoReminderStateChanged=J0.prototype.videoReminderStateChanged;J0.prototype.dataChanged=J0.prototype.dataChanged;J0.prototype.onYtToggleButton=J0.prototype.onYtToggleButton;_.U([_.v(_.mV),_.O("design:type",Object)],J0.prototype,"ironResizableBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],J0.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],J0.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],J0.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.videoReminderEntityKey"],selector:JXm}),_.O("design:type",Object)],J0.prototype,"videoReminderState",void 0);
_.U([_.Z({reflectToAttribute:!0,value:_.m("web_modern_buttons")}),_.O("design:type",Boolean)],J0.prototype,"rounded",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.O("design:type",Boolean)],J0.prototype,"hasLiveDescription",void 0);_.U([_.Z({reflectToAttribute:!0,value:_.m("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.O("design:type",Boolean)],J0.prototype,"resizableAdBannerSafariFix",void 0);
_.U([_.Z({reflectToAttribute:!0,value:_.m("align_three_dot_menu_with_title_description")}),_.O("design:type",Boolean)],J0.prototype,"menuFix",void 0);_.U([_.hh("yt-formatted-string"),_.O("design:type",Array)],J0.prototype,"formattedStrings",void 0);_.U([_.gi("#cta-button"),_.O("design:type",HTMLElement)],J0.prototype,"ctaButton",void 0);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],J0.prototype,"onYtToggleButton",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"dataChanged",null);_.U([_.Hl("videoReminderState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"videoReminderStateChanged",null);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J0.prototype,"onIronResize",null);
J0=_.U([_.T({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],J0);
_.q(J0,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(D0x!==void 0)return D0x;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return D0x=W},{mode:1});var Jmb;var cmz=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.D(cmz,_.R);_.Y=cmz.prototype;_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded&&_.hA(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
var c5=cmz;c5.prototype.onTap=c5.prototype.onTap;c5.prototype.onMouseOver=c5.prototype.onMouseOver;c5.prototype.onExpandedChanged=c5.prototype.onExpandedChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],c5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],c5.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],c5.prototype,"expanded",void 0);_.U([_.Cq("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c5.prototype,"onExpandedChanged",null);_.U([_.jI("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c5.prototype,"onMouseOver",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c5.prototype,"onTap",null);
c5=_.U([_.T({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],c5);
_.q(c5,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Jmb!==void 0)return Jmb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Jmb=W},{mode:1});var IS2;var IC,SWs=function(){var W=_.R.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.m("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$13278_playerManager=null;W.JSC$13278_mastheadCounter=new IDs;return W};
_.D(SWs,_.R);_.Y=SWs.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$13278_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13278_playerManager=new Cl)};
_.Y.ready=function(){var W=this;this.JSC$13278_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var k=_.S(this.hostElement).querySelector("#player");this.useYtdPlayer?k.style.display="none":(this.ytdPlayer.style.display="none",MQA(this.JSC$13278_playerManager,k,function(){W.onPlaybackEnded()}),_.S(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var C;
((C=W.data)==null?0:C.navigationEndpoint)&&_.Pe(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13278_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.Y.attached=function(){var W=this;_.zM(function(){W.maybePlayVideo()})};
_.Y.maybePlayVideo=function(){var W=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$13278_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$13278_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.Y.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13278_playerManager.stopVideo()};
_.Y.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,k={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(k);this.setupYtdPlayer()}else p5A(this.JSC$13278_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(QCS(this.JSC$13278_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.Y.getPlayerPromise=function(){return this.JSC$13278_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13278_playerManager.mute():this.JSC$13278_playerManager.unMute()};
_.Y.onYtNavigate=function(W){var k=MRI(W.detail.endpoint),C=Qt4(this.data.clickthroughReportingData);k&&C&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=C:_.qL(k,C,30))};
_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded?(_.hA(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
_.Y.lockAndCollapseExpandableTiles=function(){_.KY(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.Y.unlockExpandableTiles=function(){_.KY(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.Y.setupYtdPlayer=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.ytdPlayer.getPlayerPromise(),2);k=C.yieldResult;k.addEventListener("onStateChange",function(n){W.onPlayerStateChange(n)});
k.addEventListener("onCueRangeExit",function(n){W.onCueRangeExit(n)});
_.ab(C)})};
_.Y.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var k=W.getCurrentTime(),C,n,N=k+((n=(C=this.data)==null?void 0:C.playbackDurationMs)!=null?n:0)/1E3;W.addCueRange("playback",k,N);this.JSC$13278_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.Y.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.ytdPlayer.getPlayerPromise(),2);C=n.yieldResult;W?C.mute():C.unMute();_.ab(n)})};
var SQ=IC=SWs;IC.prototype.onTap=IC.prototype.onTap;IC.prototype.onMouseOver=IC.prototype.onMouseOver;IC.prototype.onExpandedChanged=IC.prototype.onExpandedChanged;IC.prototype.onYtNavigate=IC.prototype.onYtNavigate;IC.prototype.onYtToggleButton=IC.prototype.onYtToggleButton;IC.prototype.dataChanged=IC.prototype.dataChanged;SQ.JSC$13277_PLAYBACK_CUE_RANGE="playback";_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],SQ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],SQ.prototype,"expanded",void 0);_.U([_.Z(),_.O("design:type",Object)],SQ.prototype,"buttonOverrides",void 0);
_.U([_.Z(),_.O("design:type",Object)],SQ.prototype,"useYtdPlayer",void 0);_.U([_.gi("#ytd-player"),_.O("design:type",Object)],SQ.prototype,"ytdPlayer",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SQ.prototype,"dataChanged",null);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],SQ.prototype,"onYtToggleButton",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],SQ.prototype,"onYtNavigate",null);_.U([_.Cq("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SQ.prototype,"onExpandedChanged",null);_.U([_.jI("mouseover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SQ.prototype,"onMouseOver",null);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],SQ.prototype,"onTap",null);SQ=IC=_.U([_.T({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],SQ);
_.q(SQ,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(IS2!==void 0)return IS2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return IS2=W},{mode:1});var MJS;var M6=function(){return _.R.apply(this,arguments)||this};
_.D(M6,_.R);M6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
M6.prototype.onShow=function(){var W=_.S(this.hostElement).querySelector("#live-description"),k;W&&((k=this.data)==null?0:k.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
M6.prototype.onYtToggleButton=function(W){var k,C=(k=this.data)==null?void 0:k.videoReminderEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Nj("upcomingEventReminderStateEntity",C,{key:C,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
M6.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.z((W=this.data)==null?void 0:W.cta,_.JT)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var QJ=M6;QJ.prototype.videoReminderStateChanged=QJ.prototype.videoReminderStateChanged;QJ.prototype.onYtToggleButton=QJ.prototype.onYtToggleButton;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],QJ.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],QJ.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.videoReminderEntityKey"],selector:JXm}),_.O("design:type",Object)],QJ.prototype,"videoReminderState",void 0);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],QJ.prototype,"onYtToggleButton",null);
_.U([_.Hl("videoReminderState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QJ.prototype,"videoReminderStateChanged",null);QJ=_.U([_.T({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],QJ);
_.q(QJ,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(MJS!==void 0)return MJS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return MJS=W},{mode:_.UC("kevlar_poly_si_batch_j065")?1:2});var Q0s;var pV,pcx=function(){var W=_.R.apply(this,arguments)||this;W.useYtdPlayer=_.m("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$13286_playerManager=null;W.JSC$13286_mastheadCounter=new IDs;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.D(pcx,_.R);_.Y=pcx.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$13286_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13286_playerManager=new Cl)};
_.Y.ready=function(){var W=this;this.JSC$13286_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var k;(k=this.embeddedPlayer)==null||k.remove()}else{var C;(C=this.ytdPlayer)==null||C.remove();MQA(this.JSC$13286_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.Pe(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13286_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.Y.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var k=!this.data.disableAutoPlayback,C,n={autoplay:k,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((C=this.data.playbackStartMs)!=null?C:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(k?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(n);this.setupYtdPlayer()}else p5A(this.JSC$13286_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(QCS(this.JSC$13286_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13286_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.KY(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$13286_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.Y.getPlayerPromise=function(){return this.JSC$13286_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13286_playerManager.mute():this.JSC$13286_playerManager.unMute()};
_.Y.onYtNavigate=function(W){var k=MRI(W.detail.endpoint),C=Qt4(this.data.clickthroughReportingData);k&&C&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=C:_.qL(k,C,30))};
_.Y.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13286_playerManager.stopVideo()};
_.Y.setupYtdPlayer=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.ytdPlayer.getPlayerPromise(),2);k=C.yieldResult;k.addEventListener("onStateChange",function(n){W.onPlayerStateChange(n)});
k.addEventListener("onCueRangeExit",function(n){W.onCueRangeExit(n)});
_.ab(C)})};
_.Y.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var k=W.getCurrentTime(),C,n,N=k+((n=(C=this.data)==null?void 0:C.playbackDurationMs)!=null?n:0)/1E3;W.addCueRange("playback",k,N);_.KY(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13286_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.Y.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.ytdPlayer.getPlayerPromise(),2);C=n.yieldResult;W?C.mute():C.unMute();_.ab(n)})};
_.oq.Object.defineProperties(pcx.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,k;if(!((W=this.data)==null?0:(k=W.accessibilityData)==null?0:k.label))return"Ad primary link";var C,n;return _.w8("AD_TITLE",{title:(C=this.data)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label})}}});
var v5=pV=pcx;pV.prototype.onYtMastheadHidden=pV.prototype.onYtMastheadHidden;pV.prototype.onYtNavigate=pV.prototype.onYtNavigate;pV.prototype.onYtToggleButton=pV.prototype.onYtToggleButton;pV.prototype.dataChanged=pV.prototype.dataChanged;v5.JSC$13285_PLAYBACK_CUE_RANGE="playback";_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],v5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],v5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],v5.prototype,"useYtdPlayer",void 0);_.U([_.gi("ytd-toggle-button-renderer"),_.O("design:type",Object)],v5.prototype,"muteButton",void 0);_.U([_.Z(),_.O("design:type",Object)],v5.prototype,"buttonOverrides",void 0);
_.U([_.G("data.accessibilityData.label"),_.O("design:type",String),_.O("design:paramtypes",[])],v5.prototype,"titleAriaLabel",null);_.U([_.gi("#replay-button"),_.O("design:type",Object)],v5.prototype,"replayButton",void 0);_.U([_.gi("#player-container"),_.O("design:type",Object)],v5.prototype,"playerContainer",void 0);_.U([_.gi("#player"),_.O("design:type",Object)],v5.prototype,"embeddedPlayer",void 0);_.U([_.gi("#ytd-player"),_.O("design:type",Object)],v5.prototype,"ytdPlayer",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v5.prototype,"dataChanged",null);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],v5.prototype,"onYtToggleButton",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],v5.prototype,"onYtNavigate",null);
_.U([_.jI("yt-masthead-hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v5.prototype,"onYtMastheadHidden",null);v5=pV=_.U([_.T({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],v5);
_.q(v5,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Q0s!==void 0)return Q0s;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Q0s=W},{mode:2});var vhz;var egZ=function(){var W=_.R.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.ME();W.JSC$13290_activeViewMeasurementDataResolver=_.ME();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.D(egZ,_.R);_.Y=egZ.prototype;_.Y.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"}}}};
_.Y.ready=function(){var W=this;_.S(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(k){if(k.detail.actionName==="yt-service-request"){var C=k.detail.args[1];C.videoMastheadAdMuteCommand&&(W.collapseAd(C.videoMastheadAdMuteCommand.encryptedMastheadId),k.stopPropagation())}})};
_.Y.attached=function(){var W=this;_.zM(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(k){if(!W.collapsed){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,Mq(C.baseUrl,C.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$13290_activeViewMeasurementDataResolver.promise.then(function(k){W.ytdActiveViewBehavior.enableActiveViewMeasurement(k,15)});
_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var k;((k=this.data)==null?0:k.activeView)&&this.JSC$13290_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.Y.computeWidescreen=function(W){var k;return!!(W&&((k=_.z(W,ETY))==null?0:k.isWidescreen))};
_.Y.computeExpandable=function(W){return!!(W&&W.length>0)};
_.Y.onIronResize=function(){if(this.expandable){var W=_.S(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.Y.handleMuteAd=function(){this.collapseAd(null)};
_.Y.restoreCollapsedState=function(W){this.collapsed=_.tQ().get("HIDDEN_MASTHEAD_ID")===W};
_.Y.collapseAd=function(W){if(W){var k=_.tQ();k.set("HIDDEN_MASTHEAD_ID",W);k.save()}(W=_.S(this.hostElement).querySelector("#video"))&&_.Pe(W,"yt-masthead-hidden");this.collapsed=!0};
_.Y.expandAd=function(){var W=_.tQ();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.Y.detached=function(){_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var eQ=egZ;eQ.prototype.onIronResize=eQ.prototype.onIronResize;eQ.prototype.dataChanged=eQ.prototype.dataChanged;_.U([_.v(_.mV),_.O("design:type",Object)],eQ.prototype,"ironResizableBehavior",void 0);_.U([_.v(XO),_.O("design:type",Object)],eQ.prototype,"ytdActiveViewBehavior",void 0);_.U([_.v(_.Vv),_.O("design:type",Object)],eQ.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],eQ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eQ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.O("design:type",Boolean)],eQ.prototype,"widescreen",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.O("design:type",Boolean)],eQ.prototype,"expandable",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],eQ.prototype,"collapsed",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eQ.prototype,"dataChanged",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eQ.prototype,"onIronResize",null);eQ=_.U([_.T({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],eQ);
_.q(eQ,"ytd-video-masthead-ad-v3-renderer",function(){if(vhz!==void 0)return vhz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vhz=W},{mode:2});var s0x=function(){return _.R.apply(this,arguments)||this};
_.D(s0x,_.R);_.Y=s0x.prototype;_.Y.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.Y.ready=function(){var W=this;Wv3(function(){W.isAttached&&KX(W.JSC$13295_storedAdSlotMetadata,W.JSC$13295_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&zT(dp(),W.JSC$13295_storedAdSlotMetadata,W.JSC$13295_storedAdLayoutMetadata)})};
_.Y.attached=function(){KX(this.JSC$13295_storedAdSlotMetadata,this.JSC$13295_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YWI(dp(),this.JSC$13295_storedAdSlotMetadata,this.JSC$13295_storedAdLayoutMetadata)};
_.Y.detached=function(){KX(this.JSC$13295_storedAdSlotMetadata,this.JSC$13295_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zT(dp(),this.JSC$13295_storedAdSlotMetadata,this.JSC$13295_storedAdLayoutMetadata)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13295_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13295_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13295_storedAdLayoutMetadata!==void 0&&this.JSC$13295_storedAdSlotMetadata!==void 0&&zT(dp(),this.JSC$13295_storedAdSlotMetadata,this.JSC$13295_storedAdLayoutMetadata),YWI(dp(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13295_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13295_storedAdSlotMetadata=this.adSlotMetadata)};
_.oq.Object.defineProperties(s0x.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
var s6=s0x;s6.prototype.onAdMetadataChanged=s6.prototype.onAdMetadataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],s6.prototype,"data",void 0);_.U([_.G("data.adLayoutMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],s6.prototype,"adLayoutMetadata",null);
_.U([_.Z(),_.O("design:type",Object)],s6.prototype,"adSlotMetadata",void 0);_.U([_.Hl("adLayoutMetadata","adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],s6.prototype,"onAdMetadataChanged",null);s6=_.U([_.T({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],s6);
_.q(s6,"ytd-page-top-ad-layout-renderer",function(){if(zg2!==void 0)return zg2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return zg2=
W},{mode:_.UC("kevlar_poly_si_batch_j070")?1:2});var GHA;var ymS=function(){var W=_.R.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.D(ymS,_.R);_.Y=ymS.prototype;
_.Y.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]]"}}}}}};
_.Y.ready=function(){var W=this;Wv3(function(){W.isAttached&&W.adSlotMetadata&&NM8(dp(),W.adSlotMetadata)})};
_.Y.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))nh8(dp(),this.adSlotMetadata);else{var k;_.zJ(Error("Lh`"+this.adSlotMetadata+"`"+((k=this.data)==null?void 0:k.adSlotMetadata)))}}};
_.Y.detached=function(){this.adSlotMetadata&&NM8(dp(),this.adSlotMetadata)};
_.Y.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&NM8(dp(),this.adSlotMetadata),nh8(dp(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.oq.Object.defineProperties(ymS.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.fulfillmentContent)==null?void 0:k.fulfilledLayout,_.XSs),n;return(W=(n=_.z(C==null?void 0:C.renderingContent,au8))==null?void 0:n.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
var GT=ymS;GT.prototype.onAdSlotMetadataChanged=GT.prototype.onAdSlotMetadataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],GT.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GT.prototype,"rendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],GT.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],GT.prototype,"noBottomMargin",void 0);_.U([_.Z(),_.O("design:type",Object)],GT.prototype,"overlayDensity",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],GT.prototype,"layout",null);_.U([_.Hl("data.adSlotMetadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GT.prototype,"onAdSlotMetadataChanged",null);
GT=_.U([_.T({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],GT);
_.q(GT,"ytd-ad-slot-renderer",function(){if(GHA!==void 0)return GHA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return GHA=W},{mode:_.UC("kevlar_poly_si_batch_j077")?
1:2});var $0z;var ZDC=function(){return _.R.apply(this,arguments)||this};
_.D(ZDC,_.R);_.Y=ZDC.prototype;_.Y.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"}}}};
_.Y.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&Ync(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.Y.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var W=_.b(this.data.impressionUrls),k=W.next();!k.done;k=W.next())k=k.value,lz4(k,Ef2(k));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.Y.attached=function(){var W=this;_.m("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.Y.detached=function(){_.m("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.oq.Object.defineProperties(ZDC.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var yJ=ZDC;yJ.prototype.dataChanged=yJ.prototype.dataChanged;yJ.prototype.onTap=yJ.prototype.onTap;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(XO),_.O("design:type",Object)],yJ.prototype,"ytdActiveViewBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],yJ.prototype,"isGridViewEnabled",void 0);_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yJ.prototype,"watchFeedBigThumbs",null);_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],yJ.prototype,"thumbnailWidth",null);_.U([_.Z(),_.O("design:type",Object)],yJ.prototype,"data",void 0);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yJ.prototype,"onTap",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yJ.prototype,"dataChanged",null);yJ=_.U([_.T({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],yJ);
_.q(yJ,"ytd-compact-promoted-video-renderer",function(){if($0z!==void 0)return $0z;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $0z=W},{mode:1});var Rg8;_.EJ("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var ohz=function(){return _.R.apply(this,arguments)||this};
_.D(ohz,_.R);ohz.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var $c=ohz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$c.prototype,"data",void 0);$c=_.U([_.T({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],$c);
_.q($c,"ytd-search-pyv-renderer",function(){if(Rg8!==void 0)return Rg8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Rg8=W},{mode:1});var iDs;_.EJ("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var TMI=function(){var W=_.R.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$13311_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.D(TMI,_.R);_.Y=TMI.prototype;
_.Y.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}}};
_.Y.onStampFinished=function(){this.JSC$13311_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.S(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$13311_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Y.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.Y.computeHideBorder=function(){return this.isInEngagementPanel};
_.Y.computeIsCompact=function(){return this.isInEngagementPanel};
_.Y.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeUsesFullLockup=function(){var W,k=(W=this.data)==null?void 0:W.post,C;W=(C=_.z(k,SYA))==null?void 0:C.surface;var n;C=(n=_.z(k,Qab))==null?void 0:n.originalPost;var N;if(n=W||((N=_.z(C,SYA))==null?void 0:N.surface))return!this.computeUsesCompactLockup(n)&&this.useUpdatedRepostUi;var B;return((B=_.z(k,Qab))==null?void 0:B.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.oq.Object.defineProperties(TMI.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,k;return((k=_.z((W=this.data)==null?void 0:W.post,SYA))==null?void 0:k.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
var ZJ=TMI;ZJ.prototype.onYtCommentModerationPanelEmpty=ZJ.prototype.onYtCommentModerationPanelEmpty;ZJ.prototype.onStampFinished=ZJ.prototype.onStampFinished;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],ZJ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ZJ.prototype,"roundedContainer",void 0);_.U([_.Z({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ZJ.prototype,"hideBorder",void 0);_.U([_.Z({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ZJ.prototype,"isCompact",void 0);
_.U([_.Z({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.O("design:type",Boolean)],ZJ.prototype,"usesFullLockup",void 0);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZJ.prototype,"onStampFinished",null);
_.U([_.jI("ytd-comment-moderation-panel-empty"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ZJ.prototype,"onYtCommentModerationPanelEmpty",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ZJ.prototype,"isInEngagementPanel",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ZJ.prototype,"useUpdatedRepostUi",null);
ZJ=_.U([_.T({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ZJ);
_.q(ZJ,"ytd-backstage-post-thread-renderer",function(){if(iDs!==void 0)return iDs;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return iDs=W},{mode:1});var qW8;var RC=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(RC,_.R);RC.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
RC.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.yI(W,24,void 0,"height"))?W:void 0}};
RC.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
RC.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.oq.Object.defineProperties(RC.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.QG(this.bannerImageUrl))+'");'}}});
var oC=RC;oC.prototype.computeHasText=oC.prototype.computeHasText;oC.prototype.computeBannerImageUrl=oC.prototype.computeBannerImageUrl;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],oC.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],oC.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],oC.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],oC.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",String)],oC.prototype,"bannerImageUrl",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.O("design:type",Boolean)],oC.prototype,"hasText",void 0);_.U([_.Hl("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oC.prototype,"computeBannerImageUrl",null);
_.U([_.Hl("data.text"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oC.prototype,"computeHasText",null);_.U([_.G("bannerImageUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],oC.prototype,"bannerStyle",null);oC=_.U([_.T({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],oC);
_.q(oC,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(qW8!==void 0)return qW8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return qW8=W},{mode:1});var uUS;var U08=function(){return _.R.apply(this,arguments)||this};
_.D(U08,_.R);var ir=U08;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ir.prototype,"data",void 0);ir=_.U([_.T({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],ir);
_.q(ir,"ytd-backstage-zero-state-renderer",function(){if(uUS!==void 0)return uUS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return uUS=W},{mode:1});var ODb;var LMA=function(){return _.R.apply(this,arguments)||this};
_.D(LMA,_.R);var TT=LMA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TT.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],TT.prototype,"icon",void 0);TT=_.U([_.T({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],TT);
_.q(TT,"ytd-post-filter-zero-state-renderer",function(){if(ODb!==void 0)return ODb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ODb=W},{mode:1});var j0b;var HDs={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},rmC=function(){return _.R.apply(this,arguments)||this};
_.D(rmC,_.R);rmC.prototype.configureRendererStamper=function(){return HDs};
var q6=rmC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],q6.prototype,"rendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],q6.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],q6.prototype,"icon",void 0);q6=_.U([_.T({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],q6);
_.q(q6,"ytd-post-scheduling-zero-state-renderer",function(){if(j0b!==void 0)return j0b;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return j0b=W},{mode:1});var gh8;var ur=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.D(ur,_.R);ur.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
ur.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
ur.prototype.handleUpdatePostsTotalCountAction=function(W){var k=this.get(["data.tabs",1,"totalCount"]),C=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);k!==void 0&&C!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(C==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(k)+W):C==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(k)-W))};
_.oq.Object.defineProperties(ur.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,k=this.data.tabs.length;W<k;W++)if(this.data.tabs[W].selected)return W;return 0}}});
var U6=ur;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],U6.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],U6.prototype,"rendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],U6.prototype,"data",void 0);_.U([_.G("data.tabs"),_.O("design:type",Number),_.O("design:paramtypes",[])],U6.prototype,"selected",null);U6=_.U([_.T({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],U6);
_.q(U6,"ytd-post-stream-filter-renderer",function(){if(gh8!==void 0)return gh8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return gh8=W},{mode:1});var PnZ;var KMA=function(){return _.R.apply(this,arguments)||this};
_.D(KMA,_.R);var O6=KMA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O6.prototype,"kevlarBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],O6.prototype,"data",void 0);O6=_.U([_.T({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],O6);
_.q(O6,"ytd-channel-age-gate-renderer",function(){if(PnZ!==void 0)return PnZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return PnZ=W},{mode:1});var hgs;_.EJ("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var WU8=function(){var W=_.R.apply(this,arguments)||this;W.data=null;return W};
_.D(WU8,_.R);WU8.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.oq.Object.defineProperties(WU8.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?0:(k=W.title)==null?0:(C=k.runs)==null?0:C.length)?147:160}}});
var LV=WU8;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LV.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],LV.prototype,"imageSizePx",null);LV=_.U([_.T({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],LV);
_.q(LV,"ytd-channel-owner-empty-state-renderer",function(){if(hgs!==void 0)return hgs;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return hgs=W},{mode:1});var k9S;var CxC;var nP8=function(){var W=_.R.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.D(nP8,_.R);_.Y=nP8.prototype;_.Y.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]]"}}}}}};
_.Y.toggleClearButton=function(){this.hideClearButton=MdP||!this.input.value};
_.Y.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.Y.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.Y.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.Y.submit=function(){_.Pe(this.hostElement,"search-query-changed",this.input.value)};
var jQ=nP8;jQ.prototype.toggleClearButton=jQ.prototype.toggleClearButton;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],jQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jQ.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],jQ.prototype,"hideClearButton",void 0);_.U([_.Z(),_.O("design:type",Object)],jQ.prototype,"boundSubmitSearch",void 0);_.U([_.Z(),_.O("design:type",Object)],jQ.prototype,"boundClearSearch",void 0);_.U([_.gi("#input"),_.O("design:type",Object)],jQ.prototype,"input",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jQ.prototype,"toggleClearButton",null);
jQ=_.U([_.T({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],jQ);
_.q(jQ,"ytd-channel-switcher-search-box-renderer",function(){if(CxC!==void 0)return CxC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return CxC=W},{mode:1});var Nbz;var YZZ=function(){var W=_.R.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.D(YZZ,_.R);_.Y=YZZ.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var W=this;this.form.addEventListener("submit",function(k){return W.onSubmit(k)})};
_.Y.onSubmit=function(W){W.preventDefault();return!1};
_.Y.toggleClearButton=function(){this.hideClearButton=MdP||!this.input.value};
_.Y.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.Y.submit=function(){var W=this.data.endpoint,k=(0,_.JU.unsafeClone)(W);_.z(k,_.kZ)?_.z(k,_.kZ).query=this.input.value:_.z(k,_.CO)&&(_.z(k,_.CO).query=this.input.value);var C=_.z(k.commandMetadata,_.Ok);(C==null?0:C.url)?(C.url=_.JB(C.url,"query",this.input.value),_.Pe(this.hostElement,"yt-navigate",{endpoint:k})):_.z(k,Abs)?(_.z(k,Abs).channelSwitcherQuery=this.input.value,_.f().resolve(_.uI).resolveCommand(k,{form:{element:this.hostElement}})):(W=Error("Mh`"+JSON.stringify(W)),_.dI(W))};
_.Y.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
var H5=YZZ;H5.prototype.toggleClearButton=H5.prototype.toggleClearButton;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],H5.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],H5.prototype,"hideClearButton",void 0);
_.U([_.Z(),_.O("design:type",Object)],H5.prototype,"boundSubmit",void 0);_.U([_.gi("#form"),_.O("design:type",HTMLFormElement)],H5.prototype,"form",void 0);_.U([_.gi("#input"),_.O("design:type",Object)],H5.prototype,"input",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],H5.prototype,"toggleClearButton",null);H5=_.U([_.T({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],H5);
_.q(H5,"ytd-search-box-renderer",function(){if(Nbz!==void 0)return Nbz;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Nbz=W},{mode:2});var Bbs=function(){var W=_.R.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.D(Bbs,_.R);Bbs.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var rp=Bbs;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rp.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rp.prototype,"showSearchBox",void 0);rp=_.U([_.T({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],rp);
_.q(rp,"ytd-channel-switcher-header-renderer",function(){if(k9S!==void 0)return k9S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return k9S=W},{mode:1});var b2S;var A$S;var FUY=function(){var W=_.R.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.D(FUY,_.R);_.Y=FUY.prototype;_.Y.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.isDisplayed=!0};
_.Y.computeType=function(W){return W||"UNKNOWN"};
_.Y.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.Y.onClose=function(){this.isDisplayed=!1};
var gp=FUY;gp.prototype.onYtServiceRequestCompleted=gp.prototype.onYtServiceRequestCompleted;gp.prototype.dataChanged=gp.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gp.prototype,"data",void 0);
_.U([_.Z({computed:"computeType(data.type)",reflectToAttribute:!0}),_.O("design:type",String)],gp.prototype,"type",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],gp.prototype,"isDisplayed",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gp.prototype,"dataChanged",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],gp.prototype,"onYtServiceRequestCompleted",null);gp=_.U([_.T({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],gp);
_.q(gp,"ytd-alert-with-button-renderer",function(){if(A$S!==void 0)return A$S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return A$S=W},{mode:1});var wQx=function(){var W=_.R.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.D(wQx,_.R);_.Y=wQx.prototype;_.Y.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.Y.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.Y.updateChannelSwitcherAction=function(W){var k;W=(k=_.z(W,iF8))==null?void 0:k.page;_.z(W,oXs)!==void 0&&(this.data=_.z(W,oXs))};
_.Y.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]]"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.searchQueryChanged=function(W,k){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var C=[];this.hideCreateChannelButton=this.noResult=!1;for(var n=document.querySelectorAll("ytd-account-item-renderer"),N=_.b(n),B=N.next();!B.done;B=N.next())B=B.value,C.push(B),B.style.display="block";this.resetRightBorder(C);if(k){this.hideCreateChannelButton=!0;for(C=1;C<this.data.contents.length;C++)if(B=this.data.contents[C],_.z(B,YYx)){var A=void 0,w=void 0;N=(A=_.z(B,YYx))==null?void 0:(w=
A.accountName)==null?void 0:w.simpleText;w=A=void 0;B=(A=_.z(B,YYx))==null?void 0:(w=A.channelHandle)==null?void 0:w.simpleText;(A=n[C-1])&&N&&_.aJ(N,k)?W.push(A):_.m("enable_handle_search_on_channel_switcher")&&A&&B&&_.aJ(B.toString(),k.toString())?W.push(A):A.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.Y.resetRightBorder=function(W){for(var k=0;k<W.length;k++)W[k].style.borderRight=!this.hideCreateChannelButton&&(k+2)%3===0||this.hideCreateChannelButton&&(k+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.Y.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.Y.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var k=0;k<W.contents.length;k++)_.z(W.contents[k],_.K6)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.Y.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.oq.Object.defineProperties(wQx.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
var P5=wQx;P5.prototype.onContinuationItemsUpdated=P5.prototype.onContinuationItemsUpdated;P5.prototype.searchQueryChanged=P5.prototype.searchQueryChanged;P5.prototype.onDataChanged=P5.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],P5.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],P5.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],P5.prototype,"data",void 0);_.U([_.gi("ytd-channel-switcher-header-renderer"),_.O("design:type",Object)],P5.prototype,"channelSwitcherHeaderRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],P5.prototype,"noResult",void 0);
_.U([_.Z(),_.O("design:type",Object)],P5.prototype,"enableAlertBanner",void 0);_.U([_.Z(),_.O("design:type",Object)],P5.prototype,"dismissedAlertBanner",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],P5.prototype,"hideCreateChannelButton",void 0);_.U([_.G("data.contents"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],P5.prototype,"isLoading",null);_.U([_.Z(),_.O("design:type",Object)],P5.prototype,"boundDismissAlertBanner",void 0);
_.U([_.Z({computed:"computeButtonOverride()"}),_.O("design:type",Object)],P5.prototype,"buttonOverride",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P5.prototype,"onDataChanged",null);_.U([_.jI("search-query-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],P5.prototype,"searchQueryChanged",null);
_.U([_.jI("yt-next-continuation-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],P5.prototype,"onContinuationItemsUpdated",null);P5=_.U([_.T({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],P5);
_.q(P5,"ytd-channel-switcher-page-renderer",function(){if(b2S!==void 0)return b2S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return b2S=W},{mode:1});var x5x;var ltz;var t4C=function(){var W=_.R.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.D(t4C,_.R);_.Y=t4C.prototype;
_.Y.ready=function(){_.b6(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.b6(this.JSC$13356_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.b6(this.JSC$13356_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.b6(this.JSC$13356_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.Y.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.Y.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.J8(this.images))};
_.Y.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Pe(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.Y.saveImageRepositions=function(){this.selectedImageIndex=0;_.Pe(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.oq.Object.defineProperties(t4C.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(k,C){return{image:k,selected:C===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var KV=t4C;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("ytd-backstage-image-preview-renderer"),_.O("design:type",Object)],KV.prototype,"JSC$13356_imagePreviewContainer",void 0);_.U([_.gi(".thumbnail-images-container"),_.O("design:type",HTMLElement)],KV.prototype,"thumbnailImagesContainer",void 0);_.U([_.Z(),_.O("design:type",Array)],KV.prototype,"images",void 0);
_.U([_.Z(),_.O("design:type",Object)],KV.prototype,"repositionInstructions",void 0);_.U([_.Z(),_.O("design:type",Object)],KV.prototype,"selectedImageIndex",void 0);_.U([_.G("images","selectedImageIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],KV.prototype,"thumbnailRendererDatas",null);_.U([_.G("images","selectedImageIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],KV.prototype,"selectedImageData",null);
KV=_.U([_.T({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],KV);
_.q(KV,"ytd-backstage-multi-image-reposition-renderer",function(){if(ltz!==void 0)return ltz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ltz=W},{mode:1});var h0=function(W,k){_.xT.call(this);this.uploadUrl=W;this.channelId=k;this.imagesUploadData=[]};
_.D(h0,_.xT);h0.prototype.getAllUploadStatuses=function(){var W=this,k,C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,EPI(W),2);k=N.yieldResult;C=k.get("succeed");n=k.get("failed");return N.return(C.concat(n))})};
var XQb=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,EPI(W),2);k=n.yieldResult;C=k.get("failed");C.length>0&&atA(W,C);return n.return(W.getAllUploadStatuses())})},EPI=function(W){var k,C,n,N,B,A,w;
return _.F(function(x){if(x.nextAddress==1)return k=new Map,_.l(x,Promise.allSettled(W.imagesUploadData.map(function(E){return E.uploadPromise})),2);
C=x.yieldResult;n=[];N=_.b(C);for(B=N.next();!B.done;B=N.next())A=B.value,A.status==="fulfilled"&&n.push(A.value);w=W.imagesUploadData.map(function(E){return E.image}).filter(function(E){return n.every(function(a){return a.id!==E.id})});
k.set("succeed",n);k.set("failed",w);return x.return(k)})},atA=function(W,k){k=_.b(k);
for(var C=k.next();!C.done;C=k.next()){var n=W;C=C.value;ft8(n,C.id)>=0&&n.cancel(C.id);var N=new d5A(C),B=_.jHS(n.uploadUrl,{"X-YouTube-ChannelId":n.channelId},C.imageBlob);N.transfer=B;N.uploadPromise=m5Y(B,C);n.imagesUploadData.push(N);B.run()}};
h0.prototype.cancel=function(W){var k=ft8(this,W);k!==-1&&((k=this.imagesUploadData[k].transfer)&&k.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(C){return C.image.id!==W}))};
var ft8=function(W,k){return W.imagesUploadData.findIndex(function(C){return C.image.id===k})},m5Y=function(W,k){return new Promise(function(C,n){W.listen("l",function(){var N=W.getResponseText();
N?(N=JSON.parse(N).encryptedBlobId,k.encryptedBlobId=N,C(k)):n("upload failed")});
W.listen("n",function(){n("upload failed")})})},d5A=function(W){this.image=W};var vi3=function(W,k,C,n,N){this.id=W;this.imageBlob=k;this.localImageSrc=C;this.naturalWidth=n;this.naturalHeight=N;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 zL8=[".jpeg",".jpg",".png"],D58=function(){var W=_.R.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$13367_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new kk(null,"single_file",zL8);return W};
_.D(D58,_.R);_.Y=D58.prototype;_.Y.ready=function(){_.b6(this.imageSelector,"j",this.onImageSelect,!1,this);_.b6(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.b6(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.Y.dataChanged=function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.cellTemplate)==null?void 0:k.onEmptyCellTap,ZT8);if(C&&C.uploadUrl&&C.channelId){var n;this.maxFileSizeMb=((n=C.imageValidationInfo)==null?void 0:n.maxFileSizeMb)||0;var N;this.maxAspectRatio=((N=C.imageValidationInfo)==null?void 0:N.allowedMaxAspectRatio)||0;var B;this.invalidFileSizeError=this.getSimpleString((B=this.data)==null?void 0:B.invalidFileSizeError);var A;this.invalidAspectRatioError=this.getSimpleString((A=this.data)==
null?void 0:A.invalidAspectRatioError);var w;this.invalidFileTypeError=this.getSimpleString((w=this.data)==null?void 0:w.invalidFileTypeError);this.uploadManager=new h0(C.uploadUrl,C.channelId)}};
_.Y.onEditorInfoChange=function(){this.optionPlaceholderText=_.y4(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.y4(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.Y.observeAddImageError=function(){this.errorMessage!==""&&_.Pe(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.Y.onPollOptionsChange=function(){for(var W=!1,k=[],C=0;C<this.pollOptions.length;C++){var n=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(C+1);this.pollOptions[C].placeholderText!==n?(W=!0,k.push(Object.assign({},this.pollOptions[C],{placeholderText:n}))):k.push(this.pollOptions[C])}W&&(this.pollOptions=k);this.isValid()?_.Pe(this.hostElement,"yt-commentbox-post-enable"):_.Pe(this.hostElement,"yt-commentbox-post-disable")};
_.Y.createPollOptions=function(W){var k=[],C;W=(C=W==null?void 0:W.minPollOptions)!=null?C:0;for(C=0;C<W;C++)k.push(this.createPollOption());return k};
_.Y.onImageSelect=function(W){var k=this,C,n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1){if(k.selectedImageIndex===void 0)return x.jumpTo(0);C=W.files[0];k.errorMessage="";n=k.validateImage(C);if(n!=="")return k.errorMessage=n,x.return();N=new eC(k.maxAspectRatio,!1,!0);return _.l(x,N.transform(C),3)}if(x.nextAddress!=4)return B=x.yieldResult,B.transformedData?B.invalidAspectRatio?(k.errorMessage=k.invalidAspectRatioError,x.return()):_.l(x,ez2(k.JSC$13367_imageId,W.files[0],B.transformedData),
4):(k.errorMessage=k.invalidFileTypeError,x.return());A=x.yieldResult;k.JSC$13367_imageId++;atA(k.uploadManager,[A]);w=Object.assign({},k.pollOptions[k.selectedImageIndex],{image:A});k.pollOptions.splice(k.selectedImageIndex,1,w);k.refreshPollOptions();_.Pe(k.hostElement,"yt-backstage-poll-image-select");_.ab(x)})};
_.Y.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.Y.refreshPollOptions=function(){this.pollOptions=[].concat(_.J8(this.pollOptions))};
_.Y.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.J8(this.pollOptions),[this.createPollOption()]))};
_.Y.onRemovePollOption=function(W){var k=this.pollOptions[W.model.index];k&&k.image&&this.uploadManager.cancel(k.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Pe(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.Y.onTextInput=function(){this.refreshPollOptions()};
_.Y.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.Y.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.Y.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.Y.saveImageRepositions=function(W){W=W.event_.detail;for(var k=0,C=[],n=_.b(this.pollOptions),N=n.next();!N.done;N=n.next())N=N.value,N.image!==void 0?(N=Object.assign({},N,{image:W[k]}),C.push(N),k++):C.push(N);this.showImagesPreview=!1;this.pollOptions=[].concat(_.J8(C))};
_.Y.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 W=0,k=_.b(this.pollOptions),C=k.next();!C.done;C=k.next())if(C=C.value,C.optionText.trim()!==""||C.image!==void 0){if(!C.image||this.hasCustomOptionText&&C.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.Y.getAllUploadStatuses=function(){var W=this,k,C,n,N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.uploadManager.getAllUploadStatuses(),2);k=B.yieldResult;C=_.b(k);for(n=C.next();!n.done;n=C.next())if(N=n.value,N.encryptedBlobId===void 0)return B.return(XQb(W.uploadManager));return B.return(k)})};
_.Y.getPostCreateOptions=function(){for(var W=[],k=_.b(this.pollOptions),C=k.next();!C.done;C=k.next())C=C.value,C.image!==void 0&&W.push({text:this.hasCustomOptionText?C.optionText:C.placeholderText,image:C.image});return W};
_.Y.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.Y.createButtonRenderer=function(W,k){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:k}};
_.Y.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.Y.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.Y.getSimpleString=function(W){return _.y4(W)};
_.Y.updateOptionTextFromBinding=function(W){if(W.target){var k=Array.from(_.S(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(k>=0){var C;this.pollOptions[k].optionText=(C=W.detail.value)!=null?C:""}}};
_.oq.Object.defineProperties(D58.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,k;return this.pollOptions.length<((k=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?k:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.data)==null?void 0:W.addOptionButtonText;return k?this.createButtonRenderer(k,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return k?this.createButtonRenderer(k,!this.hasImages):void 0}}});
var Wg=D58;Wg.prototype.onPollOptionsChange=Wg.prototype.onPollOptionsChange;Wg.prototype.observeAddImageError=Wg.prototype.observeAddImageError;Wg.prototype.onEditorInfoChange=Wg.prototype.onEditorInfoChange;Wg.prototype.dataChanged=Wg.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gi("ytd-backstage-multi-image-reposition-renderer"),_.O("design:type",Object)],Wg.prototype,"imageRepositionContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Wg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Wg.prototype,"editorInfo",void 0);_.U([_.Z(),_.O("design:type",h0)],Wg.prototype,"uploadManager",void 0);_.U([_.Z(),_.O("design:type",Object)],Wg.prototype,"showImagesPreview",void 0);_.U([_.Z(),_.O("design:type",Array)],Wg.prototype,"pollOptions",void 0);
_.U([_.Z(),_.O("design:type",Object)],Wg.prototype,"errorMessage",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Wg.prototype,"dataChanged",null);_.U([_.Cq("editorInfo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Wg.prototype,"onEditorInfoChange",null);_.U([_.Hl("errorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Wg.prototype,"observeAddImageError",null);
_.U([_.Cq("pollOptions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Wg.prototype,"onPollOptionsChange",null);_.U([_.G("pollOptions","editorInfo"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"isAllowedToAddOption",null);_.U([_.G("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"hasImages",null);
_.U([_.G("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"imagesToReposition",null);_.U([_.G("pollOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"hasCustomOptionText",null);_.U([_.G("data","isAllowedToAddOption"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"addOptionButton",null);_.U([_.G("data","hasImages"),_.O("design:type",Object),_.O("design:paramtypes",[])],Wg.prototype,"repositionImagesButton",null);
Wg=_.U([_.T({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Wg);
_.q(Wg,"ytd-backstage-image-poll-editor-renderer",function(){if(x5x!==void 0)return x5x;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return x5x=W},{mode:2});var V4S={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 J$8;var c$A=function(){var W=_.R.apply(this,arguments)||this;W.a11yConfig=V4S;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.D(c$A,_.R);_.Y=c$A.prototype;_.Y.created=function(){_.Q8.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var k=0,C=0,n="";switch(W.detail.keyboardEvent.key){case "ArrowUp":sx3(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:k=this.imageHeight*.05*-1;break;case "ArrowDown":sx3(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
k=this.imageHeight*.05;break;case "ArrowLeft":sx3(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:C=this.imageWidth*.05*-1;break;case "ArrowRight":sx3(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:C=this.imageWidth*.05}n&&_.w8(n)&&_.Pe(this.hostElement,"iron-announce",{text:_.w8(n)});if(C||k)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+k)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.w8(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+C)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.w8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.Pe(this.hostElement,"iron-announce",{text:W})}};
_.Y.getPreviewPosition=function(W,k,C,n){return Math.round(100*(W+k*.5-C)/n)};
_.Y.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,k=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/k);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var C=W*this.displayScale*this.imageData.previewCoordinates.left,n=k*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=k>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-C;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>k?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-n;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=k*this.displayScale};
_.Y.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.Y.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.Y.getSignedPosition=function(W,k,C){return k==="X"&&_.DE("HTML_DIR")==="rtl"?C==="-"?W+"px":W*-1+"px":C==="-"?W*-1+"px":W+"px"};
_.Y.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var k=this.pickerOffsetX-W.clientX,C=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
C)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-k))}};
_.Y.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.Pe(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.Y.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Pe(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.Y.deleteImage=function(){_.Pe(this.hostElement,"ytd-backstage-image-preview-delete")};
_.Y.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.Y.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.Pe(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.Y.getPreviewOffset=function(W,k,C){return k&&W?(C==="X"&&_.DE("HTML_DIR")==="rtl"?300/k*W:300/k*W*-1)+"px":"0px"};
_.Y.getSimpleText=function(W){return W?_.y4(W):""};
_.Y.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}};
_.oq.Object.defineProperties(c$A.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.w8(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.w8(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.w8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.w8(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 W,k,C=(W=this.instruction)==null?void 0:(k=W.previewInstruction)==null?void 0:k.editButtonLabel;return C?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N=this.editOnlyMode?(W=this.instruction)==null?void 0:(k=W.editInstruction)==null?void 0:k.saveImagesButtonLabel:(C=this.instruction)==null?void 0:(n=C.editInstruction)==null?void 0:n.saveButtonLabel;return N?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.instruction)==null?void 0:(k=W.previewInstruction)==null?void 0:k.deleteButtonLabel;return C?{size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.instruction)==null?void 0:(k=W.editInstruction)==null?void 0:k.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return C?{style:W,size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
var kY=c$A;kY.prototype.onEditOnlyModeUpdate=kY.prototype.onEditOnlyModeUpdate;kY.prototype.onImageChange=kY.prototype.onImageChange;_.U([_.Z(),_.O("design:type",vi3)],kY.prototype,"imageData",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"instruction",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"a11yConfig",void 0);_.U([_.Z(),_.O("design:type",Number)],kY.prototype,"imageWidth",void 0);_.U([_.Z(),_.O("design:type",Number)],kY.prototype,"imageHeight",void 0);
_.U([_.Z(),_.O("design:type",Number)],kY.prototype,"displayScale",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"imageDisplayOffsetTop",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"showPreviewContainer",void 0);
_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"startPicker",void 0);_.U([_.Z(),_.O("design:type",Number)],kY.prototype,"pickerOffsetX",void 0);_.U([_.Z(),_.O("design:type",Number)],kY.prototype,"pickerOffsetY",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"repositionOptional",void 0);_.U([_.Z(),_.O("design:type",Object)],kY.prototype,"editOnlyMode",void 0);_.U([_.gi("#picker-container"),_.O("design:type",HTMLElement)],kY.prototype,"JSC$13380_pickerContainer",void 0);
_.U([_.gi("#picker"),_.O("design:type",HTMLElement)],kY.prototype,"picker",void 0);_.U([_.gi("#preview-clipper"),_.O("design:type",HTMLElement)],kY.prototype,"previewClipper",void 0);_.U([_.gi("#image-in-picker-background"),_.O("design:type",HTMLImageElement)],kY.prototype,"JSC$13380_imageInBackground",void 0);_.U([_.gi("#image-in-picker"),_.O("design:type",HTMLImageElement)],kY.prototype,"JSC$13380_imageInPicker",void 0);
_.U([_.gi("#image-in-preview-clipper"),_.O("design:type",HTMLImageElement)],kY.prototype,"JSC$13380_imageInPreviewClipper",void 0);_.U([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"altLabelForImage",null);_.U([_.G("imageHeight","imageWidth"),_.O("design:type",Number),_.O("design:paramtypes",[])],kY.prototype,"pickerSize",null);
_.U([_.G("imageHeight","imageWidth"),_.O("design:type",Object),_.O("design:paramtypes",[])],kY.prototype,"imageOrientationStyle",null);_.U([_.G("instruction"),_.O("design:type",Object),_.O("design:paramtypes",[])],kY.prototype,"editButton",null);_.U([_.G("instruction","editOnlyMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],kY.prototype,"saveButton",null);_.U([_.G("instruction"),_.O("design:type",Object),_.O("design:paramtypes",[])],kY.prototype,"deleteButton",null);
_.U([_.G("instruction","editOnlyMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],kY.prototype,"cancelButton",null);_.U([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.O("design:type",Number),_.O("design:paramtypes",[])],kY.prototype,"cropOffsetTop",null);_.U([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.O("design:type",Number),_.O("design:paramtypes",[])],kY.prototype,"cropOffsetLeft",null);
_.U([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"pickerBackgroundStyle",null);_.U([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"pickerDisplayStyle",null);_.U([_.G("cropOffsetLeft","cropOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"imageInPickerStyle",null);
_.U([_.G("cropOffsetLeft","cropOffsetTop","pickerSize"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"previewClipperStyle",null);_.U([_.Cq("imageData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kY.prototype,"onImageChange",null);_.U([_.Cq("editOnlyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kY.prototype,"onEditOnlyModeUpdate",null);
_.U([_.G("showPreviewContainer"),_.O("design:type",String),_.O("design:paramtypes",[])],kY.prototype,"pickerModeStyle",null);kY=_.U([_.T({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],kY);
_.q(kY,"ytd-backstage-image-preview-renderer",function(){if(J$8!==void 0)return J$8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return J$8=W},{mode:1});var ItS;var SZA={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 M4s;var Qns;var pQY=function(){var W=_.R.apply(this,arguments)||this;W.a11yConfig=SZA;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.D(pQY,_.R);_.Y=pQY.prototype;_.Y.created=function(){_.Q8.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var k=0,C=0,n="";switch(W.detail.keyboardEvent.key){case "ArrowUp":Gez(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:k=this.imageHeight*.05*-1;break;case "ArrowDown":Gez(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
k=this.imageHeight*.05;break;case "ArrowLeft":Gez(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:C=this.imageWidth*.05*-1;break;case "ArrowRight":Gez(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:C=this.imageWidth*.05}n&&_.w8(n)&&_.Pe(this.hostElement,"iron-announce",{text:_.w8(n)});if(C||k)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+k)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.w8(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+C)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.w8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.Pe(this.hostElement,"iron-announce",{text:W})}};
_.Y.getPreviewPosition=function(W,k,C,n){return Math.round(100*(W+k*.5-C)/n)};
_.Y.displayImage=function(){var W=this.JSC$13391_pickerContainer.getBoundingClientRect().width,k=this.JSC$13391_pickerContainer.getBoundingClientRect().height,C=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),n=this.JSC$13391_imageInBackground.naturalWidth,N=this.JSC$13391_imageInBackground.naturalHeight;this.displayScale=Math.max(C/n,C/N);this.imageWidth=n*this.displayScale;this.imageHeight=N*this.displayScale;this.pickerDisplayOffsetLeft=(W-C)/2;this.pickerDisplayOffsetTop=
(k-C)/2;this.imageDisplayOffsetLeft=N>n?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=n>N?this.pickerDisplayOffsetTop:(k-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.Y.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13391_imageInBackground.src=this.imageData.toString(),this.JSC$13391_imageInPicker.src=this.imageData.toString(),this.JSC$13391_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.Y.getSignedPosition=function(W,k,C){return k==="X"&&_.DE("HTML_DIR")==="rtl"?C==="-"?W+"px":W*-1+"px":C==="-"?W*-1+"px":W+"px"};
_.Y.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var k=this.pickerOffsetX-W.clientX,C=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
C)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-k))}};
_.Y.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.Y.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Pe(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.Y.getPreviewOffset=function(W,k,C,n){return k&&W&&C?(n==="X"&&_.DE("HTML_DIR")==="rtl"?C/k*W:C/k*W*-1)+"px":"0px"};
_.Y.getSimpleText=function(W){return W?_.y4(W):""};
_.Y.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,k=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,C=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,n=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.S(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Pe(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:k,bottom:C,left:n})}};
_.oq.Object.defineProperties(pQY.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.w8(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.w8(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.w8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.w8(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 W,k=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,C;return((C=_.z(k,_.pM))==null?void 0:C.url)||void 0}}}});
var Ce=pQY;Ce.prototype.onImageDataChange=Ce.prototype.onImageDataChange;_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"imageData",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"instruction",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"a11yConfig",void 0);_.U([_.Z(),_.O("design:type",Number)],Ce.prototype,"imageWidth",void 0);_.U([_.Z(),_.O("design:type",Number)],Ce.prototype,"imageHeight",void 0);_.U([_.Z(),_.O("design:type",Number)],Ce.prototype,"displayScale",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"imageDisplayOffsetTop",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"cropCoordinatesSaved",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"previewSize",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"startPicker",void 0);_.U([_.Z(),_.O("design:type",Number)],Ce.prototype,"pickerOffsetX",void 0);_.U([_.Z(),_.O("design:type",Number)],Ce.prototype,"pickerOffsetY",void 0);_.U([_.Z(),_.O("design:type",Object)],Ce.prototype,"repositionOptional",void 0);_.U([_.gi("#picker-container"),_.O("design:type",HTMLElement)],Ce.prototype,"JSC$13391_pickerContainer",void 0);_.U([_.gi("#picker"),_.O("design:type",HTMLElement)],Ce.prototype,"picker",void 0);
_.U([_.gi("#image-in-picker-background"),_.O("design:type",HTMLImageElement)],Ce.prototype,"JSC$13391_imageInBackground",void 0);_.U([_.gi("#image-in-picker"),_.O("design:type",HTMLImageElement)],Ce.prototype,"JSC$13391_imageInPicker",void 0);_.U([_.gi("#image-in-preview-clipper"),_.O("design:type",HTMLImageElement)],Ce.prototype,"JSC$13391_imageInPreviewClipper",void 0);_.U([_.gi("#full-image-as-preview"),_.O("design:type",HTMLImageElement)],Ce.prototype,"imageAsPreview",void 0);
_.U([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"altLabelForImage",null);_.U([_.G("imageHeight","imageWidth"),_.O("design:type",Number),_.O("design:paramtypes",[])],Ce.prototype,"pickerSize",null);_.U([_.G("imageHeight","imageWidth"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"imageOrientationStyle",null);
_.U([_.G("instruction.previewInstruction.editButtonLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"editButton",null);_.U([_.G("instruction.editInstruction.saveButtonLabel"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"saveButton",null);_.U([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.O("design:type",Number),_.O("design:paramtypes",[])],Ce.prototype,"cropOffsetTop",null);
_.U([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.O("design:type",Number),_.O("design:paramtypes",[])],Ce.prototype,"cropOffsetLeft",null);_.U([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"pickerBackgroundStyle",null);_.U([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"pickerDisplayStyle",null);
_.U([_.G("cropOffsetLeft","cropOffsetTop"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"imageInPickerStyle",null);_.U([_.G("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"previewClipperStyle",null);_.U([_.Hl("imageData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ce.prototype,"onImageDataChange",null);
_.U([_.G("cropCoordinatesSaved"),_.O("design:type",String),_.O("design:paramtypes",[])],Ce.prototype,"pickerModeStyle",null);_.U([_.G("instruction.editInstruction.learnMore"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"learnMore",null);_.U([_.G("learnMore"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ce.prototype,"learnMoreUrl",null);Ce=_.U([_.l0({is:"yt-img-crop-picker",disableElementRegistration:!0})],Ce);
_.q(Ce,"yt-img-crop-picker",function(){if(Qns===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;M4s===void 0&&(M4s=document.createElement("template"));var n=M4s;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Qns=W}W=Qns;return W},{mode:2});var vPY=function(){var W=_.R.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.D(vPY,_.R);_.Y=vPY.prototype;_.Y.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"}}}};
_.Y.detached=function(){this.removeOverlay()};
_.Y.setPreview=function(W){_.S(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.Pe(this.hostElement,"yt-backstage-image-select-preview")};
_.Y.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.S(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.Pe(this.hostElement,"yt-backstage-image-select-cancel")};
_.Y.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var k=_.S(this.hostElement).querySelector("#dropzone"),C=_.S(this.hostElement).querySelector("#select");this.overlay=new GQ(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,k,C,!0);_.b6(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.b6(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.b6(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.b6(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.b6(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.Y.removeOverlay=function(){this.overlay&&(_.wm(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.wm(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.wm(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.wm(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.wm(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.Y.onDragOver=function(W){var k=_.S(this.hostElement).querySelector("#dropzone");_.qw(k,"dragover",W.value)};
_.Y.onPreview=function(W){this.setPreview(W.value)};
_.Y.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var k;W=(k=this.data)==null?void 0:k.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var C;W=(C=this.data)==null?void 0:C.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var n;W=(n=this.data)==null?void 0:n.invalidAspectRatioError}else return;this.errorMessage=_.y4(W);_.S(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.Y.onImageAlert=function(W){this.onImageError(W)};
_.Y.uploadPromise=function(){var W=this,k=this.overlay&&this.overlay.uploadPromise();if(k)return k.catch(function(){throw Error(W.data?_.y4(W.data.uploadFailureError):"");})};
_.oq.Object.defineProperties(vPY.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,k;if((W=this.data)==null?0:(k=W.icon)==null?0:k.iconType)return _.Hp(this.data.icon.iconType)}}});
var ne=vPY;ne.prototype.setupOverlay=ne.prototype.setupOverlay;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ne.prototype,"rendererStamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ne.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],ne.prototype,"imageUploadEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],ne.prototype,"errorMessage",void 0);
_.U([_.Z(),_.O("design:type",GQ)],ne.prototype,"overlay",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ne.prototype,"hasPreview",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ne.prototype,"isBackstagePost",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ne.prototype,"selectionCancel",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ne.prototype,"previewCancel",null);
_.U([_.G("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],ne.prototype,"icon",null);_.U([_.Z(),_.O("design:type",Object)],ne.prototype,"dismissButtonOverrides",void 0);_.U([_.Hl("imageUploadEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ne.prototype,"setupOverlay",null);ne=_.U([_.T({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],ne);
_.q(ne,"ytd-backstage-image-select-renderer",function(){if(ItS!==void 0)return ItS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ItS=W},{mode:1});var eLs;var snI;var G9A=function(){var W=_.R.apply(this,arguments)||this;W.selected=!1;return W};
_.D(G9A,_.R);_.Y=G9A.prototype;_.Y.computeSelected=function(W){return W==null?void 0:W.selected};
_.Y.computeTransform=function(W,k,C){var n,N,B=(N=(n=this.imageContainer)==null?void 0:n.getBoundingClientRect())!=null?N:{width:0,height:0};n=Math.max(B.width/k,B.height/C);C=C*n*W.top;return"translateX("+this.getSignedPosition(k*n*W.left,"X","-")+") translateY("+this.getSignedPosition(C,"Y","-")+")"};
_.Y.getSignedPosition=function(W,k,C){return k==="X"&&_.DE("HTML_DIR")==="rtl"?C==="-"?W+"px":W*-1+"px":C==="-"?W*-1+"px":W+"px"};
_.Y.onClick=function(){var W;_.Pe(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.Y.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.oq.Object.defineProperties(G9A.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.image)==null?void 0:k.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var k;W=(k=this.data)==null?void 0:k.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(k=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+k+";":"height:inherit;transform:"+k+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var Nh=G9A;Nh.prototype.onKeyPress=Nh.prototype.onKeyPress;_.U([_.gi(".image-container"),_.O("design:type",HTMLElement)],Nh.prototype,"imageContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Nh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.O("design:type",Object)],Nh.prototype,"selected",void 0);_.U([_.G("data.image"),_.O("design:type",Object),_.O("design:paramtypes",[])],Nh.prototype,"thumbnailUrl",null);
_.U([_.G("data.image","data.image.previewCoordinates"),_.O("design:type",Object),_.O("design:paramtypes",[])],Nh.prototype,"thumbnailStyle",null);_.U([_.jI("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Nh.prototype,"onKeyPress",null);Nh=_.U([_.T({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Nh);
_.q(Nh,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(snI!==void 0)return snI;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return snI=W},{mode:2});var YY=function(W,k,C){C=C===void 0?!1:C;_.xT.call(this);var n=this;this.dropZoneOverlay=new Wn(W);this.selectOverlay=C?new kk(k,"multiple_file",["image/*"]):new kk(k,"single_file",["image/*"]);this.handler=new _.j9(this);_.Bf(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(k,"click",function(){n.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.D(YY,_.xT);YY.prototype.onChange=function(W){var k;(k=W.files)!=null&&k.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var y$Y=function(){var W=_.R.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.m("web_modern_buttons");W.maxNumImagesPerPost=_.Oe("max_num_images_per_post_web_ui");W.JSC$13406_imageId=0;return W};
_.D(y$Y,_.R);_.Y=y$Y.prototype;_.Y.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Pe(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.Y.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var k,C=Jcz(_.q$.getInstance(),(k=this.data)==null?void 0:k.dragToReorderTooltip);_.aM.addLowPriorityJob(function(){_.CB(W.hostElement,C,W.thumbnailDragDropArea)})}};
_.Y.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}}};
_.Y.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.Y.onRendererstamperFinished=function(){_.DQC(this.ytReorderableBehavior,_.S(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.S(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.Y.handleDrop=function(W){var k=W.currDragItem;if(k!=null&&k.data){W=this.images[this.selectedImageIndex];var C=k.data.image,n=this.images.indexOf(C)||0;k=_.$z(k.parentNode.children,k);this.images.splice(n,1);this.images.splice(k,0,C);this.images=[].concat(_.J8(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.Y.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new h0(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new YY(this.dropzone,this.selectLink,!0),_.b6(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new YY(this.addImageButtonContainer,this.addImageSelectButton),_.b6(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.b6(this.JSC$13406_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.b6(this.JSC$13406_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.b6(_.S(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.Y.detached=function(){this.initialPicker&&(_.wm(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.wm(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.Y.onInitialSelectImages=function(W){var k=this;return _.F(function(C){return _.l(C,k.onSelectImages(W,!1),0)})};
_.Y.onAddImage=function(W){var k=this;return _.F(function(C){return _.l(C,k.onSelectImages(W,!0),0)})};
_.Y.onSelectImages=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P;return _.F(function(xz){switch(xz.nextAddress){case 1:k?C.addImageErrorMessage="":(C.images=[],C.errorMessage="");n=W.detail;N=C.validateImages([].concat(_.J8(n)));if(N!=="")return k?C.addImageErrorMessage=N:C.errorMessage=N,xz.return();B=[].concat(_.J8(n)).map(function(Sp){return(new eC(C.maxAspectRatio,!1,!0)).transform(Sp)});
return _.l(xz,Promise.allSettled(B),2);case 2:A=xz.yieldResult,w=_.b(A.entries()),x=w.next();case 3:if(x.done){xz.jumpTo(5);break}E=x.value;a=_.b(E);X=a.next().value;d=a.next().value;V=X;c=d;if(c.status!=="fulfilled"){e=p=M=void 0;k?C.addImageErrorMessage=_.y4((M=C.data)==null?void 0:M.invalidError):C.errorMessage=C.errorMessage===""?_.y4((p=C.data)==null?void 0:p.invalidError):_.y4((e=C.data)==null?void 0:e.multiFileError);xz.jumpTo(4);break}u=c.value;u.cropped&&_.Pe(C.hostElement,"yt-backstage-multi-image-cropped");
if(u.invalidAspectRatio){Bw=L=h=void 0;k?C.addImageErrorMessage=_.y4((h=C.data)==null?void 0:h.invalidAspectRatioError):C.errorMessage=C.errorMessage===""?_.y4((L=C.data)==null?void 0:L.invalidAspectRatioError):_.y4((Bw=C.data)==null?void 0:Bw.multiFileError);xz.jumpTo(4);break}return _.l(xz,ez2(C.JSC$13406_imageId,W.detail[V],u.transformedData),8);case 8:P=xz.yieldResult,C.images.push(P),C.JSC$13406_imageId++;case 4:x=w.next();xz.jumpTo(3);break;case 5:if(C.errorMessage!==""||C.addImageErrorMessage!==
"")return xz.return();k?atA(C.uploadManager,[C.images[C.images.length-1]]):atA(C.uploadManager,C.images);C.images=[].concat(_.J8(C.images));C.selectedImageIndex=k?Math.max(C.images.length-1,0):0;_.Pe(C.hostElement,"yt-backstage-multi-image-select");_.ab(xz)}})};
_.Y.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.Y.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var k;return _.y4((k=this.data)==null?void 0:k.multiImageExceedMaxImageCountError)}var C=1048576*this.maxFileSizeMb;W=W.filter(function(B){return B.size>C}).length;
if(W===0)return"";var n,N;W=W>1?(n=this.data)==null?void 0:n.multiFileError:(N=this.data)==null?void 0:N.fileSizeError;return _.y4(W)};
_.Y.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.J8(this.images));this.selectedImageIndex=0};
_.Y.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.J8(this.images))};
_.Y.getAllUploadStatuses=function(){var W=this,k,C,n,N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.uploadManager.getAllUploadStatuses(),2);k=B.yieldResult;C=_.b(k);for(n=C.next();!n.done;n=C.next())if(N=n.value,N.encryptedBlobId===void 0)return B.return(XQb(W.uploadManager));return B.return(k)})};
_.Y.hasImages=function(){return this.images.length>0};
_.Y.cancel=function(){for(var W=this.uploadManager,k=_.b(W.imagesUploadData),C=k.next();!C.done;C=k.next())W.cancel(C.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Pe(this.hostElement,"yt-backstage-multi-image-cancel")};
_.oq.Object.defineProperties(y$Y.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.imageUploadEndpoint)==null?void 0:(k=W.imageValidationInfo)==null?void 0:k.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.imageUploadEndpoint)==null?void 0:(k=W.imageValidationInfo)==null?void 0:k.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,k;if((W=this.data)==null?0:(k=W.icon)==null?0:k.iconType)return _.Hp(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(k,C){return{renderer:{image:k,selected:C===W.selectedImageIndex}}})}}});
var Bg=y$Y;Bg.prototype.setUpImagePicker=Bg.prototype.setUpImagePicker;Bg.prototype.onRendererstamperFinished=Bg.prototype.onRendererstamperFinished;Bg.prototype.observeDragToReorder=Bg.prototype.observeDragToReorder;Bg.prototype.observeAddImageError=Bg.prototype.observeAddImageError;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bg.prototype,"rendererStamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.JF8),_.O("design:type",Object)],Bg.prototype,"ytReorderableBehavior",void 0);_.U([_.gi("#dropzone"),_.O("design:type",HTMLElement)],Bg.prototype,"dropzone",void 0);_.U([_.gi("#select-link"),_.O("design:type",HTMLElement)],Bg.prototype,"selectLink",void 0);_.U([_.gi("#thumbnail-drag-drop-area"),_.O("design:type",HTMLElement)],Bg.prototype,"thumbnailDragDropArea",void 0);_.U([_.gi("#add-image-button-container"),_.O("design:type",HTMLElement)],Bg.prototype,"addImageButtonContainer",void 0);
_.U([_.gi("#add-image-button"),_.O("design:type",HTMLElement)],Bg.prototype,"addImageSelectButton",void 0);_.U([_.gi("#image-preview-container"),_.O("design:type",Object)],Bg.prototype,"JSC$13406_imagePreviewContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Bg.prototype,"addImageErrorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],Bg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Bg.prototype,"errorMessage",void 0);
_.U([_.Z(),_.O("design:type",Object)],Bg.prototype,"imageUploadEndpoint",void 0);_.U([_.Z(),_.O("design:type",Array)],Bg.prototype,"images",void 0);_.U([_.Z(),_.O("design:type",YY)],Bg.prototype,"initialPicker",void 0);_.U([_.Z(),_.O("design:type",YY)],Bg.prototype,"addImagePicker",void 0);_.U([_.Z(),_.O("design:type",h0)],Bg.prototype,"uploadManager",void 0);_.U([_.Z(),_.O("design:type",Object)],Bg.prototype,"selectedImageIndex",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Bg.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Bg.prototype,"maxNumImagesPerPost",void 0);_.U([_.G("imageUploadEndpoint"),_.O("design:type",Number),_.O("design:paramtypes",[])],Bg.prototype,"maxAspectRatio",null);_.U([_.G("imageUploadEndpoint"),_.O("design:type",Number),_.O("design:paramtypes",[])],Bg.prototype,"maxFileSizeMb",null);
_.U([_.G("data.icon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bg.prototype,"dropIcon",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bg.prototype,"selectionCancel",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bg.prototype,"previewCancel",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bg.prototype,"dataForAddImageButton",null);
_.U([_.G("errorMessage"),_.O("design:type",String),_.O("design:paramtypes",[])],Bg.prototype,"dropzoneClass",null);_.U([_.G("images"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Bg.prototype,"showImagesPreview",null);_.U([_.G("images"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Bg.prototype,"containMaxImages",null);_.U([_.Hl("addImageErrorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bg.prototype,"observeAddImageError",null);
_.U([_.Hl("showImagesPreview"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bg.prototype,"observeDragToReorder",null);_.U([_.G("images","selectedImageIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bg.prototype,"selectedImageData",null);_.U([_.G("images","selectedImageIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],Bg.prototype,"thumbnailRenderers",null);
_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bg.prototype,"onRendererstamperFinished",null);_.U([_.Hl("imageUploadEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bg.prototype,"setUpImagePicker",null);Bg=_.U([_.T({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Bg);
_.q(Bg,"ytd-backstage-multi-image-select-renderer",function(){if(eLs!==void 0)return eLs;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return eLs=W},{mode:1});var $5x;var Z2A;var RLA;var oPY=function(){var W=_.R.apply(this,arguments)||this;W.boundCaptureFocus=function(k){W.onCaptureFocus(k)};
return W};
_.D(oPY,_.R);_.Y=oPY.prototype;_.Y.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.Y.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.Y.onCaptureFocus=function(W){_.vl(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.Y.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.Y.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.m("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var k;((k=_.z(this.data.onSelectCommand.commandMetadata,_.Ok))==null?0:k.url)?_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.f().resolve(_.uI).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.oq.Object.defineProperties(oPY.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.y4(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
var bS=oPY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bS.prototype,"data",void 0);_.U([_.gi("#item"),_.O("design:type",HTMLElement)],bS.prototype,"item",void 0);_.U([_.G("data.label"),_.O("design:type",String),_.O("design:paramtypes",[])],bS.prototype,"label",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],bS.prototype,"value",null);bS=_.U([_.T({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],bS);
_.q(bS,"ytd-privacy-dropdown-item-renderer",function(){if(RLA!==void 0)return RLA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RLA=W},{mode:1});var i2s=function(){var W=_.R.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.D(i2s,_.R);_.Y=i2s.prototype;_.Y.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"}}}};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.b(this.data.entries);for(var k=W.next();!k.done;k=W.next())if((k=this.getRendererForEntry(k.value))&&this.getItemRendererValue(k)===this.value){this.label=this.ytComponentBehavior.getSimpleString(k.label);break}}};
_.Y.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.b(this.data.entries),k=W.next();!k.done;k=W.next())if(k=this.getRendererForEntry(k.value)){if(k.isSelected){this.label=this.ytComponentBehavior.getSimpleString(k.label);break}this.data.label&&(this.label=this.data.label)}};
_.Y.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.b(this.data.entries),k=W.next();!k.done;k=W.next()){k=this.getRendererForEntry(k.value);var C=void 0;if((C=k)==null?0:C.isSelected)return this.getItemRendererValue(k)||-1}return-1};
_.Y.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.Y.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("value-changed",this.value))};
_.Y.updateValueFromBinding=function(W){this.value=W.detail.value};
var Az=i2s;Az.prototype.valueChangedForBinding=Az.prototype.valueChangedForBinding;Az.prototype.valueChanged=Az.prototype.valueChanged;Az.prototype.dataChanged=Az.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Az.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Az.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Az.prototype,"value",void 0);_.U([_.Z(),_.O("design:type",Object)],Az.prototype,"label",void 0);_.U([_.gi("#entries"),_.O("design:type",Object)],Az.prototype,"entries",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Az.prototype,"disabled",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Az.prototype,"dataChanged",null);_.U([_.Cq("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Az.prototype,"valueChanged",null);_.U([_.Hl("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Az.prototype,"valueChangedForBinding",null);Az=_.U([_.T({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Az);
_.q(Az,"ytd-flat-dropdown-renderer",function(){if(Z2A!==void 0)return Z2A;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Z2A=W},{mode:1});var TbS;var qZA=function(){var W=_.R.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.D(qZA,_.R);_.Y=qZA.prototype;_.Y.dataChanged=function(){this.optionPlaceholderText=_.y4(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.y4(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.Y.onMarkCorrectAnswer=function(W){var k,C=((k=this.quizOptions[this.correctAnswerIndex])==null?void 0:k.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:C,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.J8(this.quizOptions))};
_.Y.updatePlaceholderTexts=function(){for(var W=!1,k=[],C=0;C<this.quizOptions.length;C++){var n=this.optionPlaceholderText+" "+(C+1),N=void 0;((N=this.quizOptions[C])==null?void 0:N.placeholderText)!==n?(W=!0,k.push(Object.assign({},this.quizOptions[C],{placeholderText:n}))):k.push(this.quizOptions[C])}W&&(this.quizOptions=k);this.isValid()?_.Pe(this.hostElement,"yt-commentbox-post-enable"):_.Pe(this.hostElement,"yt-commentbox-post-disable")};
_.Y.getSimpleString=function(W){return _.y4(W)};
_.Y.createQuizOptions=function(W){var k=[],C;W=(C=W==null?void 0:W.minQuizOptions)!=null?C:0;for(C=0;C<W;C++)k.push(this.createQuizOption());return k};
_.Y.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.J8(this.quizOptions),[this.createQuizOption()]))};
_.Y.onInput=function(){this.quizOptions=[].concat(_.J8(this.quizOptions))};
_.Y.onExplanationInput=function(){_.Pe(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.Y.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.J8(this.quizOptions));this.quizOptions.length===0&&_.Pe(this.hostElement,"yt-quiz-attachment-dismiss")};
_.Y.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.Y.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,k=0,C=_.b(this.quizOptions),n=C.next();!n.done;n=C.next()){n=n.value;var N=void 0;if(((N=n.optionText)==null?void 0:N.trim())!==""||n.isCorrect){n.isCorrect&&k++;N=void 0;if(this.hasCustomOptionText&&((N=n.optionText)==null?void 0:N.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&k===1};
_.Y.getPostCreateOptions=function(){for(var W=[],k=_.b(this.quizOptions),C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;((n=C.optionText)==null?void 0:n.trim())!==""&&W.push({pollOption:{text:C.optionText,explanation:C.explanationText},isCorrect:C.isCorrect})}return W};
_.Y.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.Y.maybeDisplayMarkAnswerEduToolTip=function(){var W,k,C,n,N,B,A;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(k=W.markAnswerButton)==null?0:(C=k.buttonRenderer)==null?0:(n=C.hint)==null?0:(N=n.hintRenderer)==null?0:(B=N.content)==null?0:(A=B.bubbleHintRenderer)==null?0:A.text)&&(_.q$.getInstance(),W=u8(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.Pp(W[0],this.optionSelectors[0]))};
_.Y.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,k=_.b(this.quizOptions),C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;((n=C.optionText)==null?void 0:n.trim())!==""&&W++;if(C.isCorrect)return!1}return W<2?!1:!0};
_.Y.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.Y.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.Y.updateOptionTextFromBinding=function(W){if(W.target){var k=Array.from(_.S(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(k>=0){var C;this.quizOptions[k].optionText=(C=W.detail.value)!=null?C:""}}};
_.oq.Object.defineProperties(qZA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.editorInfo)==null?void 0:(k=W.addOptionButton)==null?void 0:k.buttonRenderer;C&&(C.style="STYLE_SUGGESTIVE",C.size="SIZE_SMALL",C.isDisabled=!this.isAllowedToAddOption);return(C==null?0:C.text)?C:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,k;return this.quizOptions.length<((k=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?k:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var k;return(k=W.optionText)==null?void 0:k.trim()})}}});
var FL=qZA;FL.prototype.updatePlaceholderTexts=FL.prototype.updatePlaceholderTexts;FL.prototype.dataChanged=FL.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],FL.prototype,"editorInfo",void 0);_.U([_.Z(),_.O("design:type",Array)],FL.prototype,"quizOptions",void 0);_.U([_.Z(),_.O("design:type",Object)],FL.prototype,"explanationPlaceholderText",void 0);_.U([_.hh(".option-selector-button"),_.O("design:type",Array)],FL.prototype,"optionSelectors",void 0);
_.U([_.Cq("editorInfo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FL.prototype,"dataChanged",null);_.U([_.G("editorInfo","isAllowedToAddOption","quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],FL.prototype,"addAnswerButton",null);_.U([_.G("editorInfo","quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],FL.prototype,"isAllowedToAddOption",null);
_.U([_.Cq("quizOptions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FL.prototype,"updatePlaceholderTexts",null);_.U([_.G("quizOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],FL.prototype,"hasCustomOptionText",null);FL=_.U([_.T({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],FL);
_.q(FL,"ytd-backstage-quiz-editor-renderer",function(){if(TbS!==void 0)return TbS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return TbS=W},{mode:2});var ut2;var U58=(XY.FIRSTDAYOFWEEK+1)%7;var O2A;var LUx=[],jnx=0,H2x=0;jnx=0;H2x=24;if(.25*(H2x-jnx)<0)O2A=[];else{for(var r$b=jnx;r$b<H2x;r$b+=.25)LUx.push(r$b);O2A=LUx}var gPb=O2A.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new eW(7)).format(new Date(0,0,0,0,0,W))}});var Pxs;var KUI=function(){var W=_.R.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";return W};
_.D(KUI,_.R);_.Y=KUI.prototype;_.Y.attached=function(){var W=this,k=new MutationObserver(function(){W.JSC$13449_calendarMain.scrollHeight>0&&(k.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
k.observe(this.JSC$13449_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){k.disconnect()},1E3)};
_.Y.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.Y.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.Y.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.Y.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=unp(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$13449_calendarMain.scrollToIndex(W)}};
_.Y.scrollToNextMonth=function(){this.JSC$13449_calendarMain.scrollToIndex(this.JSC$13449_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$13449_calendarMain.firstVisibleIndex===0&&this.JSC$13449_calendarMain.scrollTo(0,0);this.JSC$13449_calendarMain.scrollToIndex(this.JSC$13449_calendarMain.firstVisibleIndex-1)};
_.Y.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.Y.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var k=0;k<this.dropdownButton.children.length;k++)this.dropdownButton.children[k]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;k=this.validateDateText();W&&k.isValid&&this.commitDate(k.details);this.dialog.close();this.textbox.value=
this.dateText};
_.Y.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.Pe(this.hostElement,"ytd-calendar-date-selected",W))};
_.Y.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var k=new Date;W=(new AqX(2)).parse(W,k,{validate:!0})===W.length?T6X(k):void 0;if(!W)return this.errorMessage=_.w8("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};k=this.calendarConfig.start;var C=this.calendarConfig.end;if($mX(W,k))return this.errorMessage=_.w8("ENTER_DATE_OR_LATER",{allowed_date:iWm(k)}),{isValid:!1,details:void 0};if($mX(C,W))return this.errorMessage=
_.w8("ENTER_DATE_OR_EARLIER",{allowed_date:iWm(C)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.oq.Object.defineProperties(KUI.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?iWm(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,k=[],C=0;C<7;C++)k.push(XY.NARROWWEEKDAYS[(C+U58)%7]);C=[];for(var n=new Date(W.start.year,W.start.month);n.getFullYear()<W.end.year||n.getFullYear()===W.end.year&&n.getMonth()<=W.end.month;){var N=C,B=N.push,A=n.getFullYear(),w=n.getMonth(),x=W,E=void 0,a=[],X=Object.freeze({extraCssClass:"invisible",debugClass:""}),d=new Date(A,w),V=T6X(d);d=d.getDay();for(var c=T6X(new Date);V.month===
w;){d!==U58&&E||(E=Array.from({length:7}).fill(X),a.push(E));var M={date:{year:A,month:w,day:V.day},extraCssClass:"",debugClass:""};x.selectedDate&&M.date&&y_3(M.date,x.selectedDate)&&(M.extraCssClass+=" selected");if($mX(V,x.start)||$mX(x.end,V))M.extraCssClass+=" disabled";y_3(V,c)&&(M.extraCssClass+=" today");M.extraCssClass=M.extraCssClass.trim();E[(d-U58+7)%7]=M;V=Rz2(V);d=(d+1)%7}B.call(N,{weeks:a,monthLabel:XY.SHORTMONTHS[w]+" "+A,year:A,month:w,monthLabelExtraCssClass:a[0][2]===X?"shift-down-label":
""});n.setMonth(n.getMonth()+1)}return{months:C,daysOfWeekLabel:k}}}}});
var wQ=KUI;wQ.prototype.onEscOrClickingOutside=wQ.prototype.onEscOrClickingOutside;wQ.prototype.scrollToDate=wQ.prototype.scrollToDate;_.U([_.Z(),_.O("design:type",Object)],wQ.prototype,"calendarConfig",void 0);_.U([_.Z(),_.O("design:type",Object)],wQ.prototype,"skipNextOpenDialog",void 0);_.U([_.Z(),_.O("design:type",Object)],wQ.prototype,"errorMessage",void 0);_.U([_.gi("#textbox"),_.O("design:type",HTMLInputElement)],wQ.prototype,"textbox",void 0);
_.U([_.gi("#calendar-dialog"),_.O("design:type",Object)],wQ.prototype,"dialog",void 0);_.U([_.gi("#calendar-main"),_.O("design:type",Object)],wQ.prototype,"JSC$13449_calendarMain",void 0);_.U([_.gi("#date-picker"),_.O("design:type",HTMLElement)],wQ.prototype,"dropdownButton",void 0);_.U([_.G("calendarConfig.selectedDate"),_.O("design:type",String),_.O("design:paramtypes",[])],wQ.prototype,"dateText",null);
_.U([_.G("calendarConfig","calendarConfig.selectedDate"),_.O("design:type",Object),_.O("design:paramtypes",[])],wQ.prototype,"renderData",null);_.U([_.Hl("renderData","calendarConfig.selectedDate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wQ.prototype,"scrollToDate",null);_.U([_.jI("iron-overlay-canceled"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],wQ.prototype,"onEscOrClickingOutside",null);
wQ=_.U([_.l0({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],wQ);
_.q(wQ,"ytd-calendar-date-picker",function(){if(Pxs!==void 0)return Pxs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Pxs=W},{mode:2});var hL8=_.w8("UTC_OFFSET_FORMAT",{utc_offset:(new eW("Z")).format(new Date)}),Wqb=(new Date).getTimezoneOffset()*-60,kES=new Date,CCC,nEA=v3(kES.getTimezoneOffset());CCC=hUS(kjC(nEA,kES));var Nrs=_.w8("LOCAL_TIME_GMT_LABEL",{gmt_text:CCC.replace("+0","+").replace("-0","-").replace(":00","")}),YBS=function(){var W=_.R.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=gPb;return W};
_.D(YBS,_.R);_.Y=YBS.prototype;_.Y.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=oiw();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var k=q43(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:k.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(C){return C.secondsSinceMidnight===k.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.Y.onDatePicked=function(W){this.selectedDate=W.detail};
_.Y.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Pe(this.hostElement,"ytd-date-time-selection-cancelled")};
_.Y.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.Pe(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.Y.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.w8("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.Y.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.Y.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.oq.Object.defineProperties(YBS.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var k={name:"Etc/Unknown",localizedName:_.w8("LOCAL_TIME_LABEL"),localizedUtcOffset:hL8,utcOffsetSec:""+Wqb,localizedDisplayText:Nrs};W?W.length&&W[0].name!==k.name&&(W[0].localizedDisplayText||(k.localizedDisplayText=""),W.unshift(k)):W=[k];return W}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
var xY=YBS;xY.prototype.onDateTimeTimezoneChange=xY.prototype.onDateTimeTimezoneChange;xY.prototype.onDatePicked=xY.prototype.onDatePicked;xY.prototype.updateDefaultSelectedValue=xY.prototype.updateDefaultSelectedValue;_.U([_.Z(),_.O("design:type",Object)],xY.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],xY.prototype,"calendarConfig",void 0);_.U([_.Z(),_.O("design:type",Object)],xY.prototype,"selectedDate",void 0);
_.U([_.Z(),_.O("design:type",Object)],xY.prototype,"selectedTimeIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],xY.prototype,"selectedTimezoneIndex",void 0);_.U([_.gi("#time-listbox"),_.O("design:type",Object)],xY.prototype,"timeListBox",void 0);_.U([_.gi("#timezone-listbox"),_.O("design:type",Object)],xY.prototype,"timezoneListBox",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xY.prototype,"rendererStamperBehavior",void 0);
_.U([_.G("data.timezoneOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],xY.prototype,"timeZones",null);_.U([_.Cq("data","timeZones"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xY.prototype,"updateDefaultSelectedValue",null);_.U([_.G("selectedTimezoneIndex","timeZones"),_.O("design:type",Object),_.O("design:paramtypes",[])],xY.prototype,"selectedTimezone",null);
_.U([_.G("selectedTimeIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],xY.prototype,"selectedTime",null);_.U([_.jI("ytd-calendar-date-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xY.prototype,"onDatePicked",null);_.U([_.Hl("selectedTimezone","selectedTime","selectedDate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xY.prototype,"onDateTimeTimezoneChange",null);
xY=_.U([_.T({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],xY);
_.q(xY,"ytd-date-time-picker-renderer",function(){if(ut2!==void 0)return ut2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ut2=W},{mode:1});var Brs;var lS=function(){var W=_.R.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.D(lS,_.R);lS.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}}}}}};
lS.prototype.dismissTapHandler=function(){_.Pe(this.hostElement,"yt-backstage-attachment-dismissed")};
lS.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
var tz=lS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],tz.prototype,"attachmentPreview",void 0);_.U([_.Z(),_.O("design:type",Object)],tz.prototype,"dismissButton",void 0);_.U([_.Z(),_.O("design:type",Object)],tz.prototype,"boundOnTapDismissButton",void 0);
_.U([_.Z(),_.O("design:type",Object)],tz.prototype,"dismissButtonOverrides",void 0);_.U([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.O("design:type",String)],tz.prototype,"attachmentType",void 0);tz=_.U([_.T({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],tz);
_.q(tz,"ytd-backstage-dismissable-attachment",function(){if(Brs!==void 0)return Brs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Brs=W},{mode:1});var bwI;var A1Z=function(){var W=_.R.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.D(A1Z,_.R);_.Y=A1Z.prototype;_.Y.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.Y.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.Y.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}}}}}};
_.Y.onLaunchVideoPicker=function(W){var k=this,C=_.y4(this.get("addVideoLinkAction.title",W)),n=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);n&&(this.picker||(C=_.Ce8(_.eHm(n).setTitle(C).addView(KKA()).addView(PpZ()),function(N){k.onPickVideo(N)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||C.addView("youtube"),this.picker=C.build()),this.picker.setVisible(!0))};
_.Y.onPickVideo=function(W){if(W)if(W.action==="cancel")_.Pe(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.Y.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.Y.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.Pe(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.Y.onGetVideoPreviewError=function(){this.cancel()};
_.Y.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Pe(this.hostElement,"yt-video-link-cancel")};
_.Y.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var E5=A1Z;E5.prototype.onServiceRequestCompleted=E5.prototype.onServiceRequestCompleted;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],E5.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],E5.prototype,"videoPreview",void 0);_.U([_.Z(),_.O("design:type",Object)],E5.prototype,"cancelButton",void 0);_.U([_.Z(),_.O("design:type",Object)],E5.prototype,"getVideoPreviewCommand",void 0);_.U([_.Z(),_.O("design:type",Object)],E5.prototype,"dismissButtonOverrides",void 0);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],E5.prototype,"onServiceRequestCompleted",null);E5=_.U([_.T({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],E5);
_.q(E5,"ytd-backstage-video-link-attachment",function(){if(bwI!==void 0)return bwI;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bwI=W},{mode:1});var FqC;var wtz;var xzx;var ai=function(){return _.R.apply(this,arguments)||this};
_.D(ai,_.R);ai.prototype.dataChanged=function(){this.active=!1};
ai.prototype.onTap=function(){_.Pe(this.hostElement,"yt-select-emoji-suggestion",this.data)};
ai.prototype.identity=function(W){return W};
_.oq.Object.defineProperties(ai.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;if((W=this.data)==null?0:(k=W.image)==null?0:(C=k.thumbnails)==null?0:(n=C[0])==null?0:n.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?fL(W):_.QG(W)}}});
var XL=ai;XL.prototype.dataChanged=XL.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],XL.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XL.prototype,"active",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XL.prototype,"dataChanged",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],XL.prototype,"imageSrc",null);
XL=_.U([_.T({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],XL);
_.q(XL,"ytd-emoji-suggestion",function(){if(xzx!==void 0)return xzx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xzx=W},{mode:1});var lGA=/.*([:@#].*?)$/,tKC=function(){var W=_.R.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$13477_lastSuggestionRange=null;return W};
_.D(tKC,_.R);_.Y=tKC.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.Y.getSuggestions=function(W){var k=[],C=QBx(this.emojiManager,W.substr(0,3));if(C)for(var n in C)if(n.toLocaleLowerCase().indexOf(W)===0){var N=C[n];if(N&&N.emojiId){N=zP(this.emojiManager,N.emojiId);var B=void 0,A=void 0,w=void 0,x=void 0,E=((B=N)==null?0:B.isCustomEmoji)?(A=N)==null?void 0:(w=A.shortcuts)==null?void 0:w[0]:(x=N)==null?void 0:x.emojiId;B=void 0;k.push({suggestion:{image:(B=N)==null?void 0:B.image,alt:E,text:n}});if(k.length>=64)break}}return k?k.sort(function(a,X){return X.suggestion.text<
a.suggestion.text?-1:X.suggestion.text===a.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(W){_.Pe(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13477_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.Y.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.Y.offsetStartOfRangeBy=function(W,k){W.startOffset>=k&&W.setStart(W.startContainer,W.startOffset-k)};
_.Y.updateSuggestions=function(W,k){var C=this;this.JSC$13477_lastSuggestionRange&&(this.JSC$13477_lastSuggestionRange.detach(),this.JSC$13477_lastSuggestionRange=null);if((k=lGA.exec(k))&&k.length&&(k=k[k.length-1].toLocaleLowerCase(),k.length>2||k===":_")&&(this.offsetStartOfRangeBy(W,k.length),this.JSC$13477_lastSuggestionRange=W,(W=this.getSuggestions(k))&&W.length)){this.suggestions=W;_.ZR(this,function(){C.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.Y.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.Y.onKeyUp=function(W,k){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(k);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(k)}};
_.Y.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.Y.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.Y.retrieveTextBeforeRange=function(W){var k=W.startContainer;return k&&k.nodeType===Node.TEXT_NODE?k.textContent.substr(0,W.startOffset):""};
var fe=tKC;fe.prototype.onKeyPress=fe.prototype.onKeyPress;fe.prototype.onKeyUp=fe.prototype.onKeyUp;fe.prototype.onKeyDown=fe.prototype.onKeyDown;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Array)],fe.prototype,"suggestions",void 0);_.U([_.Z(),_.O("design:type",_.dL)],fe.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Number)],fe.prototype,"verticalSuggestionsOffset",void 0);
_.U([_.gi("#dropdown"),_.O("design:type",Object)],fe.prototype,"dropdown",void 0);_.U([_.gi("#dropdown-content"),_.O("design:type",HTMLDivElement)],fe.prototype,"dropdownContent",void 0);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],fe.prototype,"onKeyDown",null);_.U([_.jI("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent,Range]),_.O("design:returntype")],fe.prototype,"onKeyUp",null);
_.U([_.jI("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],fe.prototype,"onKeyPress",null);fe=_.U([_.T({disableElementRegistration:!0,is:"ytd-emoji-input"})],fe);
_.q(fe,"ytd-emoji-input",function(){if(wtz!==void 0)return wtz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wtz=W},{mode:2});var EE8;var aGZ=function(){var W=_.R.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.D(aGZ,_.R);_.Y=aGZ.prototype;_.Y.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.Y.setPrefilledChoices=function(W){var k=this;this.set("pollOptions",[]);var C;for(C=0;C<Math.min(W.length,this.data.maxPollOptions);C++)this.push("pollOptions",W[C].substring(0,this.data.maxPollOptionChars));for(;C<this.data.minPollOptions;C++)this.push("pollOptions","");this.hasMaxOptions=C>=this.data.maxPollOptions;_.ZR(this,function(){for(var n=k.pollOptions,N=_.S(k.hostElement).querySelectorAll(".poll-option-input"),B=0;B<N.length;B++)N[B].value=n[B]})};
_.Y.focusChanged=function(){_.Op(this.hostElement)};
_.Y.onInput=function(){var W=this;_.Dy(this,"onInput",function(){W.isValid()?_.Pe(W.hostElement,"yt-commentbox-post-enable"):_.Pe(W.hostElement,"yt-commentbox-post-disable")},300)};
_.Y.setPollOptions=function(){var W=[],k,C=((k=this.data)==null?0:k.minPollOptions)?this.data.minPollOptions:0;for(k=0;k<C;k++)W.push("");return W};
_.Y.addPollOption=function(){var W=this;_.Pe(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.aM.addLowPriorityJob(function(){var k;(k=_.S(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||k.focus()})};
_.Y.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Pe(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Pe(this.hostElement,"yt-commentbox-post-enable"))))};
_.Y.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.Y.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,k=this.pollOptions.length;W<k;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.Y.getPollOptions=function(){return this.pollOptions};
_.Y.setPollOptionsFromInputs=function(){for(var W=_.S(this.hostElement).querySelectorAll(".poll-option-input"),k=0;k<W.length;k++)this.pollOptions[k]=W[k].value.trim()};
_.Y.clearPollOptions=function(){var W=_.S(this.hostElement).querySelectorAll(".poll-option-input");W=_.b(W);for(var k=W.next();!k.done;k=W.next())k.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.Y.getSimpleString=function(W){return _.y4(W)};
_.Y.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var k=Array.from(_.S(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(k>=0){var C;this.pollOptions[k]=(C=W.detail.value)!=null?C:"";this.notifyPath("pollOptions."+k)}}};
var dQ=aGZ;dQ.prototype.dataChanged=dQ.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dQ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],dQ.prototype,"pollOptions",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dQ.prototype,"hasMaxOptions",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],dQ.prototype,"enableCreationBox",void 0);_.U([_.gi("#repeat"),_.O("design:type",Fr)],dQ.prototype,"repeat",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dQ.prototype,"dataChanged",null);dQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-poll-attachment"})],dQ);
_.q(dQ,"ytd-poll-attachment",function(){if(EE8!==void 0)return EE8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return EE8=W},{mode:2});var Xt8;var fGs;var dzS;var mzz;var zfS=function(){return _.R.apply(this,arguments)||this};
_.D(zfS,_.R);_.oq.Object.defineProperties(zfS.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var mc=zfS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mc.prototype,"rendererBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],mc.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],mc.prototype,"focused",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("focused"),_.O("design:type",Object),_.O("design:paramtypes",[])],mc.prototype,"ariaSelected",null);mc=_.U([_.l0({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],mc);
_.q(mc,"yt-user-mention-suggestion-renderer",function(){if(mzz===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;dzS===void 0&&(dzS=document.createElement("template"));var n=dzS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);mzz=W}W=mzz;return W},{mode:2});var DzZ;var VKx;var J18=function(){var W=_.R.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.D(J18,_.R);_.Y=J18.prototype;_.Y.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.Y.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.Y.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.Y.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.Y.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.S(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.Y.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.Y.onSuggestionTap=function(W){var k=_.z(W.model.item,MDY);this.ytRendererBehavior.logExplicitClick(k);_.Pe(this.hostElement,"yt-user-mention-suggestion-selected",{data:k,index:W.model.index})};
_.Y.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.Y.isSuggestionFocused=function(W,k){return W===k};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("focused-suggestion-id-changed",this.focusedSuggestionId))};
var zg=J18;zg.prototype.focusedSuggestionIdChangedForBinding=zg.prototype.focusedSuggestionIdChangedForBinding;zg.prototype.onDomChange=zg.prototype.onDomChange;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],zg.prototype,"focusedSuggestionIndex",void 0);_.U([_.Z({readOnly:!0}),_.O("design:type",String)],zg.prototype,"focusedSuggestionId",void 0);
_.U([_.jI("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],zg.prototype,"onDomChange",null);_.U([_.Hl("focusedSuggestionId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zg.prototype,"focusedSuggestionIdChangedForBinding",null);zg=_.U([_.l0({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],zg);
_.q(zg,"yt-user-mention-suggestions-dropdown",function(){if(VKx===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;DzZ===void 0&&(DzZ=document.createElement("template"));var n=DzZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);VKx=W}W=VKx;return W},{mode:2});var c1I=function(){var W=_.R.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.m("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.m("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.m("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.D(c1I,_.R);_.Y=c1I.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.Y.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.Y.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.Y.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.Y.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var k=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),C=this.activeMention.JSC$9112_getText().slice(-1)===" ",n=this.activeMention.JSC$9112_getText().slice(-2,-1)===" ",N="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9112_getText().slice(-2,-1))>=
0;N=this.zeroPrefixMentionSuggestionEnabled&&N;if(this.activeMention.isCollapsed()||(k||n||N)&&C)this.cancelActiveMention();else{var B=this.activeMention.JSC$9112_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Dy(this,"requestSuggestions",function(){W.requestSuggestions(B)},100)}}}};
_.Y.onServiceRequestSent=function(W){W.stopPropagation()};
_.Y.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.Y.onServiceRequestError=function(W){W.stopPropagation()};
_.Y.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.Y.onSelectionChange=function(){if(this.activeMention){var W=_.xx(),k=this.activeMention.JSC$9112_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());k||W||this.cancelActiveMention()}};
_.Y.containsHelper=function(W,k){var C;if(((C=window.ShadyDOM)==null?void 0:C.noPatch)===!0)return W.contains(k);for(;k;){if(k===W)return!0;k=k instanceof ShadowRoot?k.host:k.parentNode}return!1};
_.Y.maybeStartSuggest=function(){var W=_.xx();if(W&&W.isCollapsed()){var k=W.JSC$9112_getStartNode(),C=W.JSC$9112_getStartOffset();if(k instanceof Text&&!(C<1)){var n=k.textContent;!(n=n&&n.charAt(C-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(n)<0||(this.activeMention=_.Iy(k,C-1,W.JSC$9112_getEndNode(),W.JSC$9112_getEndOffset()),this.flowNonce=mQ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.Y.updateActiveMention=function(){if(this.activeMention){var W=_.xx();W&&W.isCollapsed()&&(this.activeMention=_.Iy(this.activeMention.JSC$9112_getStartNode(),this.activeMention.JSC$9112_getStartOffset(),W.JSC$9112_getEndNode(),W.JSC$9112_getEndOffset()))}};
_.Y.requestSuggestions=function(W){if(this.activeMention){var k={suggestions_query:W};this.pendingQuery=W;_.kQ(this.hostElement,[this.suggestionsEndpoint,k])}};
_.Y.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()};
_.Y.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.Y.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.Y.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var k=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.z(k,MDY)&&(this.selectSuggestion(_.z(k,MDY),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.Y.selectSuggestion=function(W,k){if(W){var C=this.activeMention;if(C){var n=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.Q$(n,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.Q$(n,"\u00a0"+W.displayName+"\u00a0"):_.Q$(n,"\u00a0@"+W.displayName+"\u00a0");Gi(n,"/channel/"+W.channelId);n.classList.add("yt-formatted-string","yt-simple-endpoint");n.setAttribute("spellcheck","false");C.isCollapsed()||C.JSC$9112_removeContents();C.insertNode(n,!0);W=document.createTextNode(" ");
n.parentNode.insertBefore(W,n.nextSibling);window.getSelection().collapse(W,1);k={suggestionSelected:{suggestionIndex:k}};if(this.zeroPrefixMentionSuggestionEnabled){var N;k.suggestionSelected.isZeroPrefix=((N=this.suggestionsResponse)==null?void 0:N.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",k);this.cancelActiveMention();_.Pe(this.hostElement,"yt-mention-inserted")}}};
_.Y.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.Y.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.Y.onFocusedSuggestionIdChanged=function(W){var k=_.TlK(this.hostElement)[0];k&&(W.detail.value?k.setAttribute("aria-activedescendant",W.detail.value):k.removeAttribute("aria-activedescendant"))};
_.Y.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.Y.logGELEvent=function(W,k){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};k&&(W=Object.assign(W,k));_.a9("userMentionAutoCompleteBoxEvent",W)};
var Dg=c1I;Dg.prototype.onDomChange=Dg.prototype.onDomChange;Dg.prototype.onUserMentionSuggestionSelected=Dg.prototype.onUserMentionSuggestionSelected;Dg.prototype.onServiceRequestError=Dg.prototype.onServiceRequestError;Dg.prototype.onServiceRequestCompleted=Dg.prototype.onServiceRequestCompleted;Dg.prototype.onServiceRequestSent=Dg.prototype.onServiceRequestSent;Dg.prototype.onInput=Dg.prototype.onInput;_.U([_.v(_.wS),_.O("design:type",Object)],Dg.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Dg.prototype,"suggestionsEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],Dg.prototype,"suggestionsResponse",void 0);_.U([_.Z(),_.O("design:type",Object)],Dg.prototype,"activeMention",void 0);_.U([_.gi("#dropdown"),_.O("design:type",Object)],Dg.prototype,"dropdown",void 0);_.U([_.gi("#iron-dropdown"),_.O("design:type",Object)],Dg.prototype,"ironDropdown",void 0);
_.U([_.jI("input"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Dg.prototype,"onInput",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dg.prototype,"onServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dg.prototype,"onServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dg.prototype,"onServiceRequestError",null);_.U([_.jI("yt-user-mention-suggestion-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dg.prototype,"onUserMentionSuggestionSelected",null);
_.U([_.jI("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Dg.prototype,"onDomChange",null);Dg=_.U([_.l0({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Dg);
_.q(Dg,"yt-user-mention-autosuggest-input",function(){if(fGs===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Xt8===void 0&&(Xt8=document.createElement("template"));var n=Xt8;C.call(k,n.content.cloneNode(!0),W.content.firstChild);fGs=W}W=fGs;return W},{mode:2});var VS=null;
_.Av({is:"ytd-commentbox",_template:function(){if(FqC!==void 0)return FqC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return FqC=W},
behaviors:[_.IU2.YtHostElementBehavior,_.wS,_.$D.YtActionHandlerBehavior,_.dh.YtComponentBehavior,_.ym.YtRendererstamperBehavior,_.TRA.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(W,k){return _.hQ(W.entities,"aadcGuidelinesStateEntityPayload",k)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,k){return _.hQ(W.entities,"commentboxStateEntity",k)},
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 _.Dp}},
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:_.m("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.m("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",_.LO(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,k,C){this.isValidPrefilledImage_(W,k,C)&&(this.prefilledAttachment_="image",this.prefilledImageData_=k,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,k){this.isValidPrefilledVideo_(W,k)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.kM();this.focus()},
detached:function(){document.removeEventListener("tap",_.LO(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var k=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(k,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.xx();if(W){W=W.getBrowserRangeObject();for(var k=W.commonAncestorContainer;k;){if(k===this.getEditableTextArea_())return W;k=k.parentNode}}W=this.getEditableTextArea_();W=_.cF(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,k,C){(k=this.emojiManager.createDocumentFragment(k,!0,!1,C===void 0?!0:C))&&k.childNodes.length!==0&&(W.collapsed||W.deleteContents(),C=k.lastChild,W.insertNode(k),_.zUs(C).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.xx();if(W){var k=W.JSC$9112_getStartNode(),C=W.JSC$9112_getEndNode();if(Umw(k)&&Umw(C)){var n=W.JSC$9112_getStartOffset(),N;if(_.Y4&&k.nodeType===Node.ELEMENT_NODE&&(N=_.bLs(k)))_.cF(N,0).select();else{N=Af(k)?k:_.vD(k,Af);var B=Af(C)?C:_.vD(C,Af);if(N||B)if(W.isCollapsed()){if(k.nodeType===Node.TEXT_NODE){W=!0;n===k.length&&(W=!1);if(VS==="end"||VS==="right")W=!1;k=k.parentNode;W=[].concat(_.J8(k.parentNode.childNodes)).indexOf(k)+(W?0:1);_.cF(k.parentNode,W).select()}}else N?
N.previousSibling&&N.previousSibling.length>0?_.Iy(C,W.JSC$9112_getEndOffset(),N.previousSibling,N.previousSibling.length-1).select():(k=document.createTextNode("\u200b"),N.parentNode.insertBefore(k,N),_.Iy(C,W.JSC$9112_getEndOffset(),k,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.Iy(k,W.JSC$9112_getStartOffset(),B.nextSibling,1).select():(C=document.createTextNode("\u200b"),B.parentNode.insertBefore(C,B.nextSibling),_.Iy(k,W.JSC$9112_getStartOffset(),C,C.length).select()));VS=null}}else VS=
null}else VS=null},
leftKeyPressed_:function(){VS="left"},
rightKeyPressed_:function(){VS="right"},
endKeyPressed_:function(){VS="end"},
maybeDeleteChip_:function(){var W=giI(!0);if(W){var k=_.xx(),C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();_.mF(C,k,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=giI(!1);if(W){var k=_.xx(),C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();_.mF(C,k,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var k=_.xx();if(k.isCollapsed()){var C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();var n=PL3(C,k,!0);n&&(_.mF(C,k,n,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var k=_.xx();if(k.isCollapsed()){var C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();var n=PL3(C,k,!1);n&&(_.mF(C,k,n,n.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&Af(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var k=this.$$("#emojis"),C=this.$$("#emoji-button"),n=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(k)&&!W.includes(n)&&!W.includes(C))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,k,C){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&k!==void 0&&k.encryptedBlobId!==null&&k.sourceExternalVideoId!==null&&C!==void 0&&C.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,k){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!k&&!!k.videoRenderer&&!!k.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,k,C){return this.isValidPrefilledImage_(W,k,C)||this.isValidPrefilledVideo_(W,C)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.m("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.S(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.S(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(W,k){W=LLz(W,this.emojiManager,k).cloneNode(!0);for(k=W.firstChild;k;)if(k.nodeType!==1)k=k.nextSibling;else switch(k.tagName){case "BR":var C=_.D8();_.alb(C,k);k=C.nextSibling;break;case "DIV":(C=k.lastChild)&&k.nextSibling&&_.IH(_.D8(),C);k.previousSibling&&(k.previousSibling.nodeType===1||k.previousSibling.nodeType===3&&!k.previousSibling.textContent.endsWith("\n"))&&_.cT(_.D8(),k);C&&C.nodeName==="BR"&&_.xL(C);C=k;k.hasChildNodes()?(k=k.firstChild,
_.X6C(C)):(k=k.nextSibling,_.xL(C));break;default:k=k.nextSibling}return KLw(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.Go(W.detail)},
setTextAreaValue_:function(W){W||(W="");var k=this.getEditableFormattedString_();k.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});k.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();VS=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.cF(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.DE("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),k=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",k)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return Wfm((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||Wfm(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var k=this.getInputRange_();k&&(W=this.emojiInput.retrieveTextBeforeRange(k))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,k,C){k=k===void 0?!1:k;C=C===void 0?!0:C;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(k&&this.emojiInput.offsetStartOfRangeBy(n,W.length),this.insertTextWithEmojis_(n,W,C),OWI(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,W),this.updateSuggestionOffset_(n)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",k=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||k){var C=this.getTextAreaValue().trim();k=C===this.previousText_;C=!C||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(C=this.aboveCharLimit_);this.submitButtonDisabled=
k||C||!this.getTextLength();W&&_.m("enable_post_scheduling")&&(this.submitButtonDisabled=k&&!this.scheduledPublishTimeSec_||C)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.y4,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,k){return k?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,k){return k?k:W},
computeFooterMessageHidden_:function(W,k){return!k&&!W},
computePlaceholderText_:function(W,k,C){return(C==="video"||C==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:k==="poll"||k==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:k==="quiz"?W==null?void 0:W.quizPostPlaceholderText:k==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,k,C,n){return W===void 0?!1:n&&this.getSimpleString(n)===this.getSimpleString(W.rateLimitErrorMessage)?!0:k!=="none"||C!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,k){return W&&!k?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var k,C;return W==null?void 0:(k=W.advancedTierFeatures)==null?void 0:(C=k.rateLimit)==null?void 0:C.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.m("web_modern_buttons")){var W,k;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(k=W.postOptionsMenu)==null?0:k.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.m("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,k){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);k&&(W=k);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.m("enable_rfa_external_links")){var k,C,n;return(n=W==null?void 0:(k=W.advancedTierFeatures)==null?void 0:(C=k.externalLinks)==null?void 0:C.allowExternalLinks)!=null?n:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(k){return k.emojiPickerCategoryRenderer?k.emojiPickerCategoryRenderer.emojiIds&&k.emojiPickerCategoryRenderer.emojiIds.length>0:k.emojiPickerUpsellCategoryRenderer?k.emojiPickerUpsellCategoryRenderer.emojis&&k.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,k){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&k)return k},
computeInlineSchedulingPanel_:function(W,k){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&k)return k},
computeHideAuthorThumbnail_:function(W,k){return W||this.computeUseIdentityChip_(k)},
computeHideIdentityChipRenderer_:function(W,k){return W||!this.computeUseIdentityChip_(k)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var k,C,n,N;(W==null?0:(k=W.detail)==null?0:(C=k.endpoint)==null?0:C.ypcGetOffersEndpoint)||(W==null?0:(n=W.detail)==null?0:(N=n.endpoint)==null?0:N.ypcOffersEndpoint)?(W.stopPropagation(),_.kQ(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var k=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){k.focus()})},
onYtServiceRequestSent_:function(W,k){if(k.actions)for(W=_.b(k.actions),k=W.next();!k.done;k=W.next())k.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var k=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),C,n,N,B=W==null?void 0:(C=W.detail)==null?void 0:(n=C.data)==null?void 0:(N=n.actionResult)==null?void 0:N.commentboxStateEntityKey;if(k)this.errorMessage_=k;else if(B){var A;this.dismissData_=W==null?void 0:(A=W.detail)==null?void 0:A.data;this.commentboxStateKey_=B}else{this.clear();var w;this.fire("yt-commentbox-dismiss",W==null?void 0:(w=W.detail)==
null?void 0:w.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var k,C;if(((k=this.data)==null?void 0:k.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((C=this.data)==null?void 0:C.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(k=this.get("detail.error.args",W)||[],k.length>1&&k[1].message){this.handlePostsServiceRequestError_(k[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.Go(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.m("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var k=_.b(this.rateLimitErrorCommands),C=k.next();!C.done;C=k.next())if(C=C.value,C.errorLabel===W){_.Pp(C.command,this.hostElement);return}this.errorMessage_=_.Go(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var k=this,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p;return _.F(function(e){switch(e.nextAddress){case 1:W.stopPropagation();if(!k.serviceEndpoint||!k.isValidInput_())return e.return();if(k.shouldShowPostAadcNotice_())return k.showPostAadcNotice_(),e.return();if(k.shouldShowCommentAadcNotice_())return k.showCommentAadcNotice_(),e.return();if(!(k.$$("ytd-backstage-multi-image-select-renderer")&&k.hasImage_&&_.m("enable_multi_image_post_creation"))){e.jumpTo(2);break}C=k.$$("ytd-backstage-multi-image-select-renderer");
return _.l(e,C.getAllUploadStatuses(),3);case 3:n=e.yieldResult;if(!n)return e.return();N=_.b(n);for(B=N.next();!B.done;B=N.next())if(A=B.value,A.encryptedBlobId===void 0)return k.isLoading=!1,x=w=void 0,k.errorMessage_=(x=(w=k.imageUploadEndpoint_)==null?void 0:w.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?x:null,e.return();return e.return(k.submitForm_(void 0,void 0,void 0,void 0,C.images,k.taggedVideoId_));case 2:if(!k.hasImagePoll_||!k.$["image-poll-attachment"]){e.jumpTo(4);
break}return _.l(e,k.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:E=e.yieldResult;if(!E)return e.return();a=_.b(E);for(X=a.next();!X.done;X=a.next())if(d=X.value,!d.encryptedBlobId)return k.isLoading=!1,V=void 0,k.errorMessage_=(V=k.data.errorMessage)!=null?V:null,e.return();case 4:M=(c=k.$$("ytd-backstage-image-select-renderer"))&&c.uploadPromise(),p=k.getSharedPostId_(),M?M.then(function(){k.submitForm_.apply(k,_.J8(_.v6.apply(0,arguments)))}).catch(function(u){k.isLoading=!1;
k.errorMessage_=_.Go(u.message)}):k.selectedVideoId_?k.submitForm_(void 0,k.selectedVideoId_):k.prefilledAttachment_==="image"?k.submitForm_(k.prefilledImageData_.encryptedBlobId,void 0,void 0,k.prefilledImageData_.sourceExternalVideoId,void 0,k.taggedVideoId_):k.prefilledAttachment_==="video"?k.submitForm_(void 0,k.data.backstageAttachment.videoRenderer.videoId):p?k.submitForm_(void 0,void 0,p):k.taggedVideoId_!==void 0?k.submitForm_(void 0,void 0,void 0,void 0,void 0,k.taggedVideoId_):k.submitForm_(),
_.ab(e)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var k=this.$["video-link-attachment"];k&&k.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.m("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.m("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var k;if(this.addedAttachment==="quiz"&&((k=this.$["quiz-attachment"])==null||!k.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,k,C,n,N,B){var A=this.getTextAreaValue().trim(),w={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&A===this.previousText_&&(A=void 0);A!==void 0&&(w.comment_text=A);this.isLoading=!0;B!=void 0&&(w.tagged_video_id=B);W?(w.image_blob_id=W,this.imagePreviewCoordinates_&&(w.image_preview_coordinates=this.imagePreviewCoordinates_)):k?w.attached_video_id=k:C?w.shared_post_id=C:N&&N.length>0&&(w.images_data=N.map(function(x){return{encryptedBlobId:x.encryptedBlobId,
previewCoordinates:x.previewCoordinates}}));
n&&(w.source_video_id=n);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(w.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(w.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(w.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.m("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(w.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.m("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(w.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.kQ(this,[this.serviceEndpoint,w])},
onIsInputFocusChanged_:function(W,k){W?this.fire("yt-autonav-pause-focus"):k!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var k=this.getEditableTextArea_();[].concat(_.J8(W.dataTransfer.items)).forEach(function(C){C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(n){k.appendChild(document.createTextNode(n))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,k){return!k||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.S(this.emojiInput).querySelector("#dropdown")){var k=this.getEditableTextArea_().getBoundingClientRect().bottom,C=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(k-C)+5;k=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-k;_.S(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.m("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var k=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(k)||k!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.m("enable_quiz_creation")&&W.push("quiz-button");_.m("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,k){if(W)switch(k){case "video-link-button":var C;return((C=W.videoLinkButton)==null?void 0:C.buttonRenderer)||void 0;case "image-button":var n;return((n=W.imageButton)==null?void 0:n.buttonRenderer)||void 0;case "poll-button":var N;return((N=W.pollButton)==null?void 0:N.buttonRenderer)||void 0;case "image-poll-button":var B;return((B=W.imagePollButton)==null?void 0:B.buttonRenderer)||void 0;case "quiz-button":var A;return((A=W.quizButton)==null?void 0:A.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,k;return!((W=this.data)==null||!W.openAadcDialog)&&!((k=this.aadcGuidelinesState_)==null||!k.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.DE("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.D3("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.kf().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.KY(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var k;this.set("data.placeholderText",(k=W.hideIdentityChipAction)==null?void 0:k.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var IGA=function(){var W=_.R.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.m("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.m("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var k=["image-button","image-poll-button","poll-button"];_.m("enable_quiz_creation")&&k.push("quiz-button");_.m("auto_convert_posts_video_tag")||k.push("video-link-button");W.attachmentButtonIds=k;W.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 W};
_.D(IGA,_.R);_.Y=IGA.prototype;_.Y.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.m("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.Y.configureRendererStamper=function(){var W={"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]]"}}}}};_.m("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.Y.ready=function(){var W=this,k=_.S(this.hostElement).querySelector("#placeholder-area"),C=function(n){W.onOpen(n)};
k.addEventListener("tap",C);k.addEventListener("keypress",C)};
_.Y.showButtonEduTooltip=function(){var W,k,C,n,N,B,A;if(_.m("enable_quiz_creation")&&((W=this.data)==null?0:(k=W.quizButton)==null?0:(C=k.buttonRenderer)==null?0:(n=C.hint)==null?0:(N=n.hintRenderer)==null?0:(B=N.content)==null?0:(A=B.bubbleHintRenderer)==null?0:A.text)&&(_.q$.getInstance(),W=u8(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var w;if((w=this.data)==null?0:w.imagePollButtonTooltip)if(_.q$.getInstance(),w=u8(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(w==null?void 0:w.length)>0){this.ytComponentBehavior.resolveCommand(w[0],{form:{element:this.imagePollButton}});return}var x;_.m("enable_multi_image_post_creation")&&
((x=this.data)==null?0:x.multiImageButtonTooltip)&&(_.q$.getInstance(),x=u8(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(x==null?void 0:x.length)>0&&this.ytComponentBehavior.resolveCommand(x[0],{form:{element:this.imageButton}}))};
_.Y.onCreatePollAction=function(W){_.z(W,rbS)&&(this.JSC$13532_commentbox.addedAttachment="poll",this.openDialog())};
_.Y.onAddVideoLinkAction=function(W){if(_.z(W,Hxx))this.JSC$13532_commentbox.onAddVideoLink(W)};
_.Y.onShowSchedulingPanelCommand=function(W){(W=_.z(W,Jbb))&&this.openSchedulingPanel(W)};
_.Y.onCreateImagePollCommand=function(W){_.z(W,cT2)&&(this.JSC$13532_commentbox.openImagePollComponent(),this.openDialog())};
_.Y.onCreateQuizCommand=function(W){_.z(W,InI)&&(this.JSC$13532_commentbox.openQuizComponent(),this.openDialog())};
_.Y.openSchedulingPanel=function(W){_.m("enable_post_scheduling")&&(this.openDialog(),this.JSC$13532_commentbox.openSchedulingPanel(W))};
_.Y.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$13532_commentbox.clear(),this.closeDialog())};
_.Y.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.closeDialog()};
_.Y.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.Y.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.Y.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.Y.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.Y.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.Y.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$13532_commentbox.addedAttachment="image",this.JSC$13532_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.Y.onRequestSent=function(W){if(_.m("web_button_rework"))for(var k=_.b(W.detail),C=k.next();!C.done;C=k.next())_.z(C.value,ZT8)&&(this.JSC$13532_commentbox.addedAttachment="image",this.JSC$13532_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.Y.openDialog=function(){this.JSC$13532_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13532_commentbox.focus()};
_.Y.onPopupClosed=function(){_.q$.getInstance()};
_.Y.computeCreationDisabled=function(W){return!!W};
_.Y.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.Y.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.Y.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.Y.computeIsHeaderHidden=function(W,k){return!W||k};
_.Y.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.Y.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.S(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
var Jz=IGA;Jz.prototype.onPopupClosed=Jz.prototype.onPopupClosed;Jz.prototype.onRequestSent=Jz.prototype.onRequestSent;Jz.prototype.onYtNavigate=Jz.prototype.onYtNavigate;Jz.prototype.onIronSelect=Jz.prototype.onIronSelect;Jz.prototype.onYtVideoLinkSelected=Jz.prototype.onYtVideoLinkSelected;Jz.prototype.onYtVideoLinkButtonCancel=Jz.prototype.onYtVideoLinkButtonCancel;Jz.prototype.onYtCommentboxLoadingEnd=Jz.prototype.onYtCommentboxLoadingEnd;Jz.prototype.onYtCommentboxLoadingStart=Jz.prototype.onYtCommentboxLoadingStart;
Jz.prototype.onYtCommentboxDismiss=Jz.prototype.onYtCommentboxDismiss;Jz.prototype.showButtonEduTooltip=Jz.prototype.showButtonEduTooltip;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Jz.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Jz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Jz.prototype,"isOpen",void 0);_.U([_.Z({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],Jz.prototype,"buttonOverride",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Jz.prototype,"modern",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Jz.prototype,"roundedContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Jz.prototype,"dropdownButtonOverride",void 0);_.U([_.Z({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.O("design:type",Boolean)],Jz.prototype,"creationDisabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Jz.prototype,"enableCreationBox",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.O("design:type",Boolean)],Jz.prototype,"isCreationDialog",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Jz.prototype,"inPopupContainer",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.O("design:type",Boolean)],Jz.prototype,"isCreationDialogWithHeader",void 0);_.U([_.Z(),_.O("design:type",Object)],Jz.prototype,"accessRestriction",void 0);
_.U([_.Z({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.O("design:type",Array)],Jz.prototype,"dropdownRendererClasses",void 0);_.U([_.Z(),_.O("design:type",Object)],Jz.prototype,"isCommentboxLoading",void 0);_.U([_.Z(),_.O("design:type",Array)],Jz.prototype,"attachmentButtonIds",void 0);_.U([_.gi("#image-button"),_.O("design:type",HTMLElement)],Jz.prototype,"imageButton",void 0);
_.U([_.gi("#image-poll-button"),_.O("design:type",HTMLElement)],Jz.prototype,"imagePollButton",void 0);_.U([_.gi("#quiz-button"),_.O("design:type",HTMLElement)],Jz.prototype,"quizButton",void 0);_.U([_.gi("#commentbox"),_.O("design:type",Object)],Jz.prototype,"JSC$13532_commentbox",void 0);_.U([_.Hl("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jz.prototype,"showButtonEduTooltip",null);
_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtCommentboxDismiss",null);_.U([_.jI("yt-commentbox-loading-start"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtCommentboxLoadingStart",null);
_.U([_.jI("yt-commentbox-loading-end"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtCommentboxLoadingEnd",null);_.U([_.jI("yt-video-link-button-cancel"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtVideoLinkButtonCancel",null);
_.U([_.jI("yt-video-link-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtVideoLinkSelected",null);_.U([_.jI("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onIronSelect",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onYtNavigate",null);
_.U([_.jI("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Jz.prototype,"onRequestSent",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jz.prototype,"onPopupClosed",null);Jz=_.U([_.T({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Jz);
_.q(Jz,"ytd-backstage-post-dialog-renderer",function(){if($5x!==void 0)return $5x;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $5x=W},{mode:1});var SB2;var MKY;var QlA=function(){return _.R.apply(this,arguments)||this};
_.D(QlA,_.R);_.Y=QlA.prototype;_.Y.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&(_.m("web_ytd_creator_heart_renderer_command_resolver_ks")?_.kQ(this.hostElement,[W]):_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}}))}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.Y.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.Y.getEndpoint=function(W){var k,C=(k=this.data)==null?void 0:k.heartEndpoint,n;k=(n=this.data)==null?void 0:n.unheartEndpoint;if(C&&k)return W?k:C};
_.Y.computeButtonAccessibility=function(W,k){var C,n,N=W==null?void 0:(C=W.heartedAccessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label,B,A;W=W==null?void 0:(B=W.unheartedAccessibility)==null?void 0:(A=B.accessibilityData)==null?void 0:A.label;return k?N:W};
_.oq.Object.defineProperties(QlA.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 W;return _.m("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
var cg=QlA;cg.prototype.onYtButtonTap=cg.prototype.onYtButtonTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],cg.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cg.prototype,"data",void 0);_.U([_.G("data.isHearted"),_.O("design:type",Object),_.O("design:paramtypes",[])],cg.prototype,"heartTooltip",null);
_.U([_.G("data.isHearted"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],cg.prototype,"iconFilled",null);_.U([_.Z({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.O("design:type",String)],cg.prototype,"buttonAccessibility",void 0);_.U([_.Z({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],cg.prototype,"heartButtonStyle",void 0);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cg.prototype,"onYtButtonTap",null);cg=_.U([_.T({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],cg);
_.q(cg,"ytd-creator-heart-renderer",function(){if(MKY!==void 0)return MKY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return MKY=W},{mode:1});var pt2=function(){var W=_.R.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.m("web_modern_buttons");W.modern=_.m("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.m("kevlar_system_icons");W.replyDialog=null;return W};
_.D(pt2,_.R);_.Y=pt2.prototype;
_.Y.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]]"}}}}}};
_.Y.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.Y.dataChange=function(){this.replyDialog&&_.S(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,k,C;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(k=W.likeButton)==null?0:(C=k.toggleButtonRenderer)==null?0:C.isToggled)};
_.Y.computeShowVoteCountBeginning=function(W,k){return W===void 0||k===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!k&&this.ytRendererBehavior.getSimpleString(k)!=="0"};
_.Y.computeShowVoteCountEnd=function(W,k){return W===void 0||k===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!k&&this.ytRendererBehavior.getSimpleString(k)!=="0"};
_.Y.computeShowCommentCount=function(W,k){return W===void 0||k===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!k&&this.ytRendererBehavior.getSimpleString(k)!=="0"};
_.Y.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.Y.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.Y.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.S(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.Y.onRequestSent=function(W){if(_.m("web_button_rework")){W=_.b(W.detail);for(var k=W.next();!k.done;k=W.next())(k=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",k.value))&&this.showReplyDialog(k)}};
_.Y.onYtNavigate=function(W){var k,C;(W=(k=_.z(W.detail.endpoint,_.oqZ))==null?void 0:(C=k.dialog)==null?void 0:C.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.Y.onYtServiceRequestSent=function(W,k){W.stopPropagation();if(k.actions)for(W=0;W<k.actions.length;W++){var C=_.z(k.actions[W],KPA);C&&this.handleUpdateCommentVoteAction(C)}};
_.Y.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.Go("0");W.voteStatus==="LIKE"?this.JSC$13543_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$13543_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13543_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13543_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Y.computeReplyButtonHidden=function(W){return W};
_.Y.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.Y.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.Y.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.Y.onYtToggleButton=function(W){var k,C;this.isLiked=this.systemIcons&&!!((k=W.detail)==null?0:(C=k.actions)==null?0:C.like)};
var Ii=pt2;Ii.prototype.onYtToggleButton=Ii.prototype.onYtToggleButton;Ii.prototype.onButtonTooltipPositionChanged=Ii.prototype.onButtonTooltipPositionChanged;Ii.prototype.onYtServiceRequestSent=Ii.prototype.onYtServiceRequestSent;Ii.prototype.onYtNavigate=Ii.prototype.onYtNavigate;Ii.prototype.onRequestSent=Ii.prototype.onRequestSent;Ii.prototype.onYtCommentboxDismiss=Ii.prototype.onYtCommentboxDismiss;Ii.prototype.dataChange=Ii.prototype.dataChange;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"voteCount",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"commentCount",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"replyThumbnail",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"hasCreatorReply",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ii.prototype,"enableCreationBox",void 0);_.U([_.Z({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],Ii.prototype,"actionButtonsStyle",void 0);_.U([_.Z({computed:"computeReplyButtonBeginning(data)"}),_.O("design:type",Object)],Ii.prototype,"replyButtonBeginning",void 0);
_.U([_.Z({computed:"computeReplyButtonEnd(data)"}),_.O("design:type",Object)],Ii.prototype,"replyButtonEnd",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"buttonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"replyButtonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"forceIconButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ii.prototype,"useCommentIcon",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ii.prototype,"modern",void 0);_.U([_.Z(),_.O("design:type",Object)],Ii.prototype,"buttonTooltipPosition",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ii.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ii.prototype,"isLiked",void 0);_.U([_.gi("ytd-button-renderer"),_.O("design:type",Object)],Ii.prototype,"ytdReplyButtonRenderer",void 0);
_.U([_.gi("#like-button"),_.O("design:type",Object)],Ii.prototype,"JSC$13543_ytdLikeToggleButtonRenderer",void 0);_.U([_.gi("#dislike-button"),_.O("design:type",Object)],Ii.prototype,"JSC$13543_ytdDislikeToggleButtonRenderer",void 0);_.U([_.gi("#reply-dialog"),_.O("design:type",HTMLElement)],Ii.prototype,"replyDialogElement",void 0);_.U([_.gi("#reply-button"),_.O("design:type",HTMLElement)],Ii.prototype,"replyButtonElement",void 0);
_.U([_.gi("#reply-button-end"),_.O("design:type",HTMLElement)],Ii.prototype,"replyButtonEndElement",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ii.prototype,"dataChange",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ii.prototype,"onYtCommentboxDismiss",null);
_.U([_.jI("yt-service-request-sent-button-renderer"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ii.prototype,"onRequestSent",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ii.prototype,"onYtNavigate",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Ii.prototype,"onYtServiceRequestSent",null);_.U([_.Hl("buttonTooltipPosition"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ii.prototype,"onButtonTooltipPositionChanged",null);
_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ii.prototype,"onYtToggleButton",null);Ii=_.U([_.T({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Ii);
_.q(Ii,"ytd-comment-action-buttons-renderer",function(){if(SB2!==void 0)return SB2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SB2=W},{mode:1});var vEs;var efS=function(){return _.R.apply(this,arguments)||this};
_.D(efS,_.R);efS.prototype.focus=function(){_.S(this.hostElement).querySelector("#commentbox").focus()};
var Sn=efS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Sn.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Sn.prototype,"zeroStepChannelCreationRenderer",void 0);Sn=_.U([_.T({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Sn);
_.q(Sn,"ytd-comment-dialog-renderer",function(){if(vEs!==void 0)return vEs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vEs=W},{mode:1});var sl2;var GE2=function(){var W=_.R.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.D(GE2,_.R);_.Y=GE2.prototype;_.Y.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.Y.detached=function(){this.replyBox&&this.replyBox.remove()};
_.Y.showReplyDialog=function(W){if(W){var k=this.replyBox;k||(k=document.createElement("ytd-comment-reply-dialog-renderer"),k.id="replybox",_.S(this.replyDialogDiv).appendChild(k));k.data=W;this.replyDialogDiv.hidden=!1;k.openDialog()}};
_.Y.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.Y.onYtServiceRequestSent=function(W,k){W.stopPropagation();if(k.actions)for(var C=0;C<k.actions.length;C++){var n=_.z(k.actions[C],KPA);n?this.handleUpdateCommentVoteAction(n):W.target===this.heartButton&&this.toggleHeartState()}};
_.Y.handleUpdateCommentVoteAction=function(W){var k;(k=this.toolbarState)!=null&&k.key&&this.ytdReduxBehavior.dispatch(_.d7("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.Y.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.d7("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.oq.Object.defineProperties(GE2.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(k=this.toolbarData)==null?void 0:k.likeCountLiked:(C=this.toolbarData)==null?void 0:C.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.m("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k=_.z((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.XZ),C,n,N,B,A,w,x,E,a;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((C=this.toolbarSharedData)==null||!C.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:k!=null?k:_.z((N=this.toolbarSurface)==null?void 0:N.likeCommand,_.XZ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:k!=null?k:_.z((B=this.toolbarSurface)==null?void 0:B.unlikeCommand,_.XZ),defaultCommand:this.isVisiblyDisabled?_.z((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand,_.XZ):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.likeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:x.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(E=this.toolbarData)==null?void 0:E.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(a=this.toolbarSharedData)==null?void 0:a.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k=_.z((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.XZ),C,n,N,B,A,w,x,E,a,X;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((C=this.toolbarSharedData)==null||!C.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:k!=null?k:_.z((N=this.toolbarSurface)==null?void 0:N.dislikeCommand,_.XZ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:k!=null?k:_.z((B=this.toolbarSurface)==null?void 0:B.undislikeCommand,_.XZ),defaultCommand:this.isVisiblyDisabled?_.z((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand,_.XZ):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.dislikeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:
x.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(E=this.toolbarSharedData)==null?void 0:E.dislikeReplyButtonA11y:(a=this.toolbarSharedData)==null?void 0:a.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k,C;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((k=this.toolbarState)==null?void 0:k.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((C=this.toolbarState)==null?void 0:C.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var n,N,B,A,w,x,E,a,X,d,V,c,M,p;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(n=this.toolbarData)==null?void 0:n.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.z((x=this.toolbarSurface)==null?void 0:x.heartCommand,
_.XZ),unheartEndpoint:this.isVisiblyDisabled?void 0:_.z((E=this.toolbarSurface)==null?void 0:E.unheartCommand,_.XZ),disabledEndpoint:this.isVisiblyDisabled?_.z((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand,_.XZ):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(X=this.toolbarData)==null?void 0:X.heartActiveTooltip,unheartedTooltip:(d=this.toolbarData)==null?void 0:d.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((V=
this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(c=this.toolbarSharedData)==null?void 0:c.unheartButtonA11y:(M=this.toolbarSharedData)==null?void 0:M.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.z((k=this.toolbarSurface)==null?void 0:k.replyCommand,_.XZ),command:this.isVisiblyDisabled?_.z((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.XZ):void 0}}}});
var Mh=GE2;Mh.prototype.onYtServiceRequestSent=Mh.prototype.onYtServiceRequestSent;Mh.prototype.hideReplyDialogDiv=Mh.prototype.hideReplyDialogDiv;_.U([_.Z(),_.O("design:type",Object)],Mh.prototype,"commentStrings",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Mh.prototype,"isReply",void 0);_.U([_.Z(),_.O("design:type",Object)],Mh.prototype,"toolbarData",void 0);_.U([_.Z(),_.O("design:type",Object)],Mh.prototype,"toolbarSharedData",void 0);
_.U([_.Z(),_.O("design:type",String)],Mh.prototype,"toolbarStateKey",void 0);_.U([_.Z(),_.O("design:type",String)],Mh.prototype,"toolbarSurfaceKey",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gi("#reply-dialog"),_.O("design:type",HTMLElement)],Mh.prototype,"replyDialogDiv",void 0);_.U([_.gi("#replybox"),_.O("design:type",Object)],Mh.prototype,"replyBox",void 0);_.U([_.gi("ytd-creator-heart-renderer"),_.O("design:type",Object)],Mh.prototype,"heartButton",void 0);_.U([_.Z({selector:function(W,k){return _.hQ(W.entities,"engagementToolbarStateEntityPayload",k)},
selectorArgs:["toolbarStateKey"]}),_.O("design:type",Object)],Mh.prototype,"toolbarState",void 0);_.U([_.Z({selector:cXJ,selectorArgs:["toolbarSurfaceKey"]}),_.O("design:type",Object)],Mh.prototype,"toolbarSurface",void 0);_.U([_.Z(),_.O("design:type",Object)],Mh.prototype,"buttonOverrides",void 0);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mh.prototype,"hideReplyDialogDiv",null);
_.U([_.G("toolbarData","toolbarState"),_.O("design:type",String),_.O("design:paramtypes",[])],Mh.prototype,"likeCount",null);_.U([_.G("likeCount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mh.prototype,"showLikeCount",null);_.U([_.G("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mh.prototype,"isVisiblyDisabled",null);_.U([_.G("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mh.prototype,"hasPrepareAccountCommand",null);
_.U([_.G("toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mh.prototype,"likeToggleButtonRenderer",null);_.U([_.G("isReply","toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mh.prototype,"dislikeToggleButtonRenderer",null);_.U([_.G("toolbarData","toolbarState","toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mh.prototype,"creatorHeartSupportedRenderer",null);
_.U([_.G("toolbarSurface"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mh.prototype,"hasReplyCommand",null);_.U([_.G("toolbarSurface","commentStrings","isVisiblyDisabled"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mh.prototype,"replyButtonRenderer",null);_.U([_.Z(),_.O("design:type",Object)],Mh.prototype,"replyButtonOverrides",void 0);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Mh.prototype,"onYtServiceRequestSent",null);Mh=_.U([_.T({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Mh);
_.q(Mh,"ytd-comment-engagement-bar",function(){if(sl2!==void 0)return sl2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sl2=W},{mode:1});var y1s;var $z2=function(){return _.R.apply(this,arguments)||this};
_.D($z2,_.R);var QS=$z2;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QS.prototype,"data",void 0);QS=_.U([_.T({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],QS);
_.q(QS,"ytd-comment-inline-thumbnail-renderer",function(){if(y1s!==void 0)return y1s;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return y1s=W},{mode:1});var Zwz;var RfI=function(){return _.R.apply(this,arguments)||this};
_.D(RfI,_.R);var oES=RfI;_.U([_.Z(),_.O("design:type",Object)],oES.prototype,"data",void 0);oES=_.U([_.T({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],oES);
_.q(oES,"ytd-comment-pause-composer-renderer",function(){if(Zwz!==void 0)return Zwz;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Zwz=W},{mode:1});var iws;var TrA;var qBS=function(){var W=_.R.apply(this,arguments)||this;W.isOpen=!1;return W};
_.D(qBS,_.R);_.Y=qBS.prototype;_.Y.dataChanged=function(){this.isOpen=!1};
_.Y.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.Y.focus=function(){this.JSC$13569_commentbox.focus()};
_.Y.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.Y.openDialog=function(){this.isOpen=!0;this.JSC$13569_commentbox.focus();this.JSC$13569_commentbox.maybeHeightChanged()};
var pe=qBS;pe.prototype.onYtCommentboxDismiss=pe.prototype.onYtCommentboxDismiss;pe.prototype.dataChanged=pe.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pe.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],pe.prototype,"isOpen",void 0);_.U([_.gi("#commentbox"),_.O("design:type",Object)],pe.prototype,"JSC$13569_commentbox",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pe.prototype,"dataChanged",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],pe.prototype,"onYtCommentboxDismiss",null);pe=_.U([_.T({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],pe);
_.q(pe,"ytd-comment-reply-dialog-renderer",function(){if(TrA!==void 0)return TrA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return TrA=W},{mode:1});var uks;var Uzb=function(){return _.R.apply(this,arguments)||this};
_.D(Uzb,_.R);_.oq.Object.defineProperties(Uzb.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.icon)==null?void 0:k.iconType;return C?"yt-icons:"+C.toLowerCase():null}}});
var vg=Uzb;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vg.prototype,"data",void 0);_.U([_.Z(),_.G("data.icon"),_.O("design:type",Object),_.O("design:paramtypes",[])],vg.prototype,"icon",null);vg=_.U([_.T({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],vg);
_.q(vg,"ytd-pinned-comment-badge-renderer",function(){if(uks!==void 0)return uks;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return uks=W},{mode:1});var Owx;var LqI={},jlA={input:!0,meta:!0,br:!0,link:!0,img:!0},en=null;LqI.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(){en==null&&(en=document.createElement("tp-yt-paper-tooltip"),en.offset=8,en.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.vD(W.target,function(N){return N==this||N.getAttribute&&N.getAttribute("shared-tooltip-text")}.bind(this),!0)){var k=W.getAttribute("shared-tooltip-text");
if(k){var C=this,n=null;W!=this&&(W.tagName.toLowerCase()in jlA?C=W.parentElement:C=W,W.id&&(n=W.id));this.polymerController.createTooltipIfRequired_();if(en.parentElement!=C||en.for!=n)(0,_.Up)(en).textContent=k,_.S(C).appendChild(en),en.for=n,en.animationDelay=this.polymerController.sharedTooltipAnimationDelay,en.position=this.polymerController.sharedTooltipPosition}}}};var s5=function(){return _.R.apply(this,arguments)||this};
_.D(s5,_.R);s5.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]]"}}}}}};
s5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
s5.prototype.colorChanged=function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.color)==null?void 0:(C=k.basicColorPaletteData)==null?void 0:C.foregroundBodyColor;n&&(this.rgbBadgeColor=_.a8(n));_.S(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
s5.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var Gg=s5;Gg.prototype.tooltipChanged=Gg.prototype.tooltipChanged;Gg.prototype.colorChanged=Gg.prototype.colorChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(LqI.YtSharedTooltipBehavior),_.O("design:type",Object)],Gg.prototype,"ytSharedTooltipBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Gg.prototype,"data",void 0);_.U([_.Z({value:"#4285F4"}),_.O("design:type",String)],Gg.prototype,"rgbBadgeColor",void 0);_.U([_.Hl("data.color"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"colorChanged",null);_.U([_.Hl("data.tooltip"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Gg.prototype,"tooltipChanged",null);
Gg=_.U([_.T({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Gg);
_.q(Gg,"ytd-sponsor-comment-badge-renderer",function(){if(Owx!==void 0)return Owx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Owx=W},{mode:1});var Hwz;var r1x;var yS=function(){return _.R.apply(this,arguments)||this};
_.D(yS,_.R);yS.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
yS.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var k=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.d7("triStateButtonStateEntityPayload",k,{key:k,stateIdentifier:W}))}};
yS.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.oq.Object.defineProperties(yS.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
var $Y=yS;_.U([_.Z(),_.O("design:type",Object)],$Y.prototype,"viewModel",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],$Y.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);
_.U([_.Z({selector:IMz,selectorArgs:["viewModel.triStateKey"]}),_.O("design:type",Object)],$Y.prototype,"triStateButtonStateEntity",void 0);_.U([_.Z({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.O("design:type",String)],$Y.prototype,"state",void 0);_.U([_.G("viewModel","state"),_.O("design:type",Object),_.O("design:paramtypes",[])],$Y.prototype,"data",null);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],$Y.prototype,"buttonText",null);
$Y=_.U([_.T({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],$Y);
_.q($Y,"ytd-tri-state-button-view-model",function(){if(r1x!==void 0)return r1x;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return r1x=W},{mode:1});var gEA;var PC2;var Zg=function(){var W=_.R.apply(this,arguments)||this;W.defaultIconToFilled=!_.m("kevlar_fill_comment_chip_icon_killswitch");return W};
_.D(Zg,_.R);Zg.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Zg.prototype.dataChanged=function(){if(this.data){var W,k;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((k=this.data.chipColorPalette)==null?0:k.foregroundTitleColor)&&_.Op(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Xi(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Xi(this.data.chipColorPalette.foregroundTitleColor)});var C;((C=this.data)==null?0:C.command)?(_.Op(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Op(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}};
Zg.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var k;this.ytComponentBehavior.resolveCommand((k=this.data)==null?void 0:k.command)}};
Zg.prototype.getIconSize=function(){return _.m("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var Ri=Zg;Ri.prototype.onTap=Ri.prototype.onTap;Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.wS),_.O("design:type",Object)],Ri.prototype,"ironA11yKeysBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ri.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ri.prototype,"basePriceText",void 0);_.U([_.Z(),_.O("design:type",Object)],Ri.prototype,"chipIcon",void 0);_.U([_.Z(),_.O("design:type",Object)],Ri.prototype,"defaultIconToFilled",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ri.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ri.prototype,"onTap",null);
Ri=_.U([_.l0({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Ri);
_.q(Ri,"yt-pdg-comment-chip-renderer",function(){if(PC2===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;gEA===void 0&&(gEA=document.createElement("template"));var n=gEA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);PC2=W}W=PC2;return W},{mode:2});var Kqx=function(){var W=_.R.apply(this,arguments)||this;W.useSmallAvatars=_.m("small_avatars_for_comments");W.webWatchCompactComments=_.m("web_watch_compact_comments");W.editDialog=null;return W};
_.D(Kqx,_.R);_.Y=Kqx.prototype;_.Y.onShow=function(){_.Iz("cmv",void 0,"wn_comments")};
_.Y.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"}}}};
_.Y.detached=function(){this.editDialog=null;this.expander.reset()};
_.Y.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.Xi(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Op(this.hostElement,W)}else _.Op(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.Y.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.Y.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.Y.onYtNavigate=function(W){var k=W.detail.endpoint;if(k=_.z(k,_.iTb)||_.z(k,_.TSA))W.stopPropagation(),this.openEditDialog(k)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null;_.Op(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.Y.onAuthorThumbnailClicked=function(){var W=this;_.m("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(k,C){W.onAuthorThumbnailEndpointSuccess(C)},
onServerError:function(k,C){_.zJ(new _.AM("Failed to resolve the command",C))}}})};
_.Y.onAuthorThumbnailEndpointSuccess=function(W){if((W=W==null?void 0:W.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(W,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();W=W==null?void 0:W.clickTrackingParams;var k=_.DH();W&&k&&_.kf().graftServerVe(W,k)}};
_.Y.logScreenVe=function(){_.jC(_.kf(),66557)};
_.Y.onYtCommentboxResize=function(W){var k;(W==null?0:(k=W.detail)==null?0:k.height)&&_.Op(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.oq.Object.defineProperties(Kqx.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 W,k=(W=this.commentEntity)==null?void 0:W.author;return k&&(k.isCreator||k.isVerified||k.isArtist)?{renderer:{authorEndpoint:k.channelPageEndpoint?_.z(k.channelPageEndpoint,_.XZ):_.z(k.channelCommand,_.XZ),authorText:{runs:[{text:k.displayName}]},color:k.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:k.isArtist?{iconType:"AUDIO_BADGE"}:
k.isVerified?{iconType:k.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:k.isArtist||k.isVerified?k.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.commentEntity)==null?void 0:W.author;return k!=null&&k.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:k.sponsorBadgeUrl}]},tooltip:k.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.z((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.anS)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.z((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,Y3I)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?k:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.m("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,k;return(((W=this.commentEntity)==null?void 0:(k=W.properties)==null?void 0:k.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,k;if(_.m("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(k=W.author)==null?0:k.profileCardEndpoint)&&this.viewModel.allowProfileCard){var C,n;return _.z((C=this.commentEntity)==null?void 0:(n=C.author)==null?void 0:n.profileCardEndpoint,_.XZ)}var N,B;return _.z((N=this.commentEntity)==null?void 0:(B=N.avatar)==null?void 0:B.endpoint,_.XZ)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,k;if(_.m("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(k=W.author)==null?0:k.channelPageEndpoint)){var C,n;return _.z((C=this.commentEntity)==null?void 0:(n=C.author)==null?void 0:n.channelPageEndpoint,_.XZ)}var N,B;return _.z((N=this.commentEntity)==null?void 0:(B=N.avatar)==null?void 0:B.endpoint,_.XZ)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N=(W=this.commentEntity)==null?void 0:(k=W.avatar)==null?void 0:(C=k.image)==null?void 0:(n=C.sources)==null?void 0:n[0];return N?{thumbnails:[{url:N.url,width:N.width,height:N.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.commentEntity)==null?0:(k=W.author)==null?0:k.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.commentEntity)==null?void 0:(k=W.author)==null?void 0:k.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.commentEntity)==null?void 0:(k=W.properties)==null?void 0:k.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.z((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.XZ)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,k;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((k=this.translateButtonState)==null?void 0:k.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var C;if((C=this.voiceReplyContainerViewModel)==null?0:C.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var n,N;return((n=this.commentEntity)==null?void 0:(N=n.properties)==null?void 0:N.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.commentSharedEntity)==null?void 0:(k=W.strings)==null?void 0:k.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.commentSharedEntity)==null?void 0:(k=W.strings)==null?void 0:k.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,k,C=(k=_.z((W=this.viewModel)==null?void 0:W.translateButton,N1z))!=null?k:{},n,N,B,A,w,x,E,a,X,d,V;return Object.assign({},C,{untoggledStateData:Object.assign({},C.untoggledStateData,{buttonText:(n=this.commentEntity)==null?void 0:(N=n.translateData)==null?void 0:N.text}),togglingStateData:Object.assign({},C.togglingStateData,{buttonText:(B=this.commentSharedEntity)==null?
void 0:(A=B.strings)==null?void 0:A.translatingText}),toggledStateData:Object.assign({},C.toggledStateData,{buttonText:(w=this.commentSharedEntity)==null?void 0:(x=w.strings)==null?void 0:x.seeOriginalText}),transitionCommand:((E=this.commentEntity)==null?0:E.translatedContent)?void 0:_.z((a=this.commentEntity)==null?void 0:(X=a.translateData)==null?void 0:X.translateComment,_.XZ),triStateKey:(d=this.commentEntity)==null?void 0:(V=d.properties)==null?void 0:V.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((k=_.z(_.z((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.XZ),q7z))==null?void 0:(C=k.menu)==null?void 0:C.menuRenderer)||null}}});
var oi=Kqx;oi.prototype.onYtCommentboxResize=oi.prototype.onYtCommentboxResize;oi.prototype.onYtCommentboxDismiss=oi.prototype.onYtCommentboxDismiss;oi.prototype.onYtNavigate=oi.prototype.onYtNavigate;oi.prototype.resetExpander=oi.prototype.resetExpander;oi.prototype.updateBackgroundColor=oi.prototype.updateBackgroundColor;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],oi.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#author-thumbnail > button"),_.O("design:type",HTMLElement)],oi.prototype,"authorThumbnailAnchor",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oi.prototype,"linked",null);_.U([_.G("viewModel","linked"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"linkedCommentBadge",null);_.U([_.Z({reflectToAttribute:!0}),_.G("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oi.prototype,"pinned",null);
_.U([_.G("viewModel","pinned"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"pinnedCommentBadge",null);_.U([_.G("commentEntity","commentSharedEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"authorCommentBadge",null);_.U([_.Z({reflectToAttribute:!0}),_.G("authorCommentBadge"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"hasAuthorBadge",null);
_.U([_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"sponsorCommentBadge",null);_.U([_.Z({reflectToAttribute:!0}),_.G("sponsorCommentBadge"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"hasSponsorBadge",null);_.U([_.G("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"pdgCommentChipRenderer",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"hasVoiceReply",null);_.U([_.G("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"voiceReplyContainerViewModel",null);_.U([_.G("voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"voiceReplyUnavailableText",null);_.U([_.Z(),_.O("design:type",Object)],oi.prototype,"data",void 0);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"viewModel",null);_.U([_.Z({selector:function(W,k){return _.hQ(W.entities,"commentSharedEntityPayload",k)},
selectorArgs:["viewModel.sharedKey"]}),_.O("design:type",Object)],oi.prototype,"commentSharedEntity",void 0);_.U([_.Z({selector:function(W,k){return _.hQ(W.entities,"commentEntityPayload",k)},
selectorArgs:["viewModel.commentKey"]}),_.O("design:type",Object)],oi.prototype,"commentEntity",void 0);_.U([_.Z({selector:function(W,k){return _.hQ(W.entities,"commentSurfaceEntityPayload",k)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.O("design:type",Object)],oi.prototype,"commentSurfaceEntity",void 0);_.U([_.Z({selector:cXJ,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.O("design:type",Object)],oi.prototype,"toolbarSurface",void 0);_.U([_.Z({selector:IMz,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.O("design:type",Object)],oi.prototype,"translateButtonState",void 0);
_.U([_.G("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"backgroundColor",null);_.U([_.Z({reflectToAttribute:!0}),_.G("viewModel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oi.prototype,"optimalReadingWidthComments",null);_.U([_.gi("ytd-expander"),_.O("design:type",Object)],oi.prototype,"expander",void 0);
_.U([_.Hl("backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oi.prototype,"updateBackgroundColor",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],oi.prototype,"useSmallAvatars",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],oi.prototype,"webWatchCompactComments",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"isReply",null);
_.U([_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"authorThumbnailEndpoint",null);_.U([_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"authorNameEndpoint",null);_.U([_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"authorThumbnail",null);_.U([_.G("commentEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],oi.prototype,"authorTextClass",null);
_.U([_.G("commentEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],oi.prototype,"authorChannelName",null);_.U([_.G("commentEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"publishedTime",null);_.U([_.G("commentSurfaceEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"publishedTimeCommand",null);
_.U([_.G("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"contentText",null);_.U([_.Hl("contentText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oi.prototype,"resetExpander",null);_.U([_.G("commentEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oi.prototype,"shouldShowReadMoreInitially",null);
_.U([_.G("commentSharedEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],oi.prototype,"expandText",null);_.U([_.G("commentSharedEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],oi.prototype,"collapseText",null);_.U([_.G("commentEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],oi.prototype,"shouldShowTranslateButton",null);
_.U([_.G("commentEntity","commentSharedEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"translateButton",null);_.U([_.G("toolbarSurface"),_.O("design:type",Object),_.O("design:paramtypes",[])],oi.prototype,"overflowMenuRenderer",null);_.U([_.Z(),_.O("design:type",Object)],oi.prototype,"editDialog",void 0);_.U([_.gi("ytd-comment-dialog-renderer"),_.O("design:type",Object)],oi.prototype,"editCommentDialogContainer",void 0);
_.U([_.gi("ytd-comment-reply-dialog-renderer"),_.O("design:type",Object)],oi.prototype,"editReplyDialogContainer",void 0);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],oi.prototype,"onYtNavigate",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],oi.prototype,"onYtCommentboxDismiss",null);
_.U([_.jI("yt-commentbox-resize"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],oi.prototype,"onYtCommentboxResize",null);oi=_.U([_.T({disableElementRegistration:!0,is:"ytd-comment-view-model"})],oi);
_.q(oi,"ytd-comment-view-model",function(){if(Hwz!==void 0)return Hwz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Hwz=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var hfI=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_modern_buttons");W.isWatchGrid=_.m("kevlar_watch_grid");W.buttonOverrides={style:"call-to-action"};W.JSC$13616_spinnerEl=null;W.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return W};
_.D(hfI,_.R);_.Y=hfI.prototype;_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"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]]"}}}}}};
_.Y.attached=function(){this.isShowRepliesVisible=!0};
_.Y.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.Y.onRetrieveLocation=function(W,k){k.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);W.stopPropagation()};
_.Y.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.Y.isLoadingChanged=function(){this.isLoading&&!this.JSC$13616_spinnerEl&&(this.JSC$13616_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S(this.expanderContents).appendChild(this.JSC$13616_spinnerEl));this.JSC$13616_spinnerEl&&(this.JSC$13616_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.Y.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var W=_.z(this.data.viewReplies,_.Vq);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.Y.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.z(this.data.hideReplies,_.Vq);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.Y.isShowMoreChanged=function(){var W=_.S(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)};
_.Y.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.oq.Object.defineProperties(hfI.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.data)==null?void 0:W.contents,C;return!((C=this.data)==null||!C.continuations)||!!k&&k.length>0&&!!k[k.length-1].continuationItemRenderer}}});
var iS=hfI;iS.prototype.isShowMoreChanged=iS.prototype.isShowMoreChanged;iS.prototype.isLoadingChanged=iS.prototype.isLoadingChanged;iS.prototype.triggerFirstContinuation=iS.prototype.triggerFirstContinuation;iS.prototype.onRetrieveLocation=iS.prototype.onRetrieveLocation;iS.prototype.dataChanged=iS.prototype.dataChanged;_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],iS.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],iS.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iS.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],iS.prototype,"modern",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],iS.prototype,"isLoading",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],iS.prototype,"isShowRepliesVisible",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],iS.prototype,"useNewFormatting",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],iS.prototype,"isWatchGrid",void 0);_.U([_.Z(),_.O("design:type",Object)],iS.prototype,"buttonOverrides",void 0);
_.U([_.gi("#expander-contents"),_.O("design:type",HTMLElement)],iS.prototype,"expanderContents",void 0);_.U([_.gi("yt-next-continuation"),_.O("design:type",Object)],iS.prototype,"continuation",void 0);_.U([_.gi("ytd-continuation-item-renderer"),_.O("design:type",Object)],iS.prototype,"continuationItemRenderer",void 0);_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],iS.prototype,"contents",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iS.prototype,"dataChanged",null);_.U([_.G("data.continuations","data.contents"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],iS.prototype,"hasContinuation",null);_.U([_.jI("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],iS.prototype,"onRetrieveLocation",null);
_.U([_.jI("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iS.prototype,"triggerFirstContinuation",null);_.U([_.Hl("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iS.prototype,"isLoadingChanged",null);_.U([_.Hl("isShowRepliesVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iS.prototype,"isShowMoreChanged",null);
iS=_.U([_.T({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],iS);
_.q(iS,"ytd-comment-replies-renderer",function(){if(iws!==void 0)return iws;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return iws=W},{mode:1});var WXs;var kpS=function(){var W=_.R.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.m("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.m("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.D(kpS,_.R);_.Y=kpS.prototype;_.Y.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]]"}}}}}};
_.Y.ready=function(){var W=this,k=_.S(this.hostElement).querySelector("#placeholder-area"),C=_.S(this.hostElement).querySelector("#simplebox-placeholder"),n=function(N){N.stopPropagation();N instanceof KeyboardEvent&&N.type==="keypress"&&N.keyCode!==13&&N.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=n;C.addEventListener("focus",this.placeholderFocusListener);k.addEventListener("tap",n);k.addEventListener("keypress",n)};
_.Y.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.m("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.S(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.Y.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.Y.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.m("web_comment_simplebox_resolve_polymer_command_ks")?_.gH.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Pp(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.S(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.Y.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.Y.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.Y.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.Y.onHideIdentityChip=function(W){_.z(W,gTI)&&this.set("data.placeholderText",_.z(W,gTI).placeholderText)};
var Tg=kpS;Tg.prototype.onYtCommentboxDismiss=Tg.prototype.onYtCommentboxDismiss;Tg.prototype.dataChanged=Tg.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Tg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Tg.prototype,"isOpen",void 0);_.U([_.Z(),_.O("design:type",Object)],Tg.prototype,"commentDialog",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Tg.prototype,"engagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Tg.prototype,"useSmallAvatars",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Tg.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Tg.prototype,"enableCreationBox",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Tg.prototype,"showCreateDialog",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Tg.prototype,"dataChanged",null);
_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Tg.prototype,"onYtCommentboxDismiss",null);Tg=_.U([_.T({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Tg);
_.q(Tg,"ytd-comment-simplebox-renderer",function(){if(WXs!==void 0)return WXs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return WXs=W},{mode:1});var CtY;_.EJ("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var qh=function(){var W=_.R.apply(this,arguments)||this;W.addHoverEffect=_.m("swatcheroo_comments_hover_effect");return W};
_.D(qh,_.R);qh.prototype.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var k;((k=window.getSelection())==null?0:k.toString().length)||_.Pp({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
qh.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.oq.Object.defineProperties(qh.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.z(this.data.commentViewModel,nXI)}}});
var uS=qh;uS.prototype.onTap=uS.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],uS.prototype,"addHoverEffect",void 0);_.U([_.Z(),_.O("design:type",Object)],uS.prototype,"data",void 0);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],uS.prototype,"commentViewModel",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],uS.prototype,"engagementPanel",void 0);_.U([_.jI("tap"),_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],uS.prototype,"onTap",null);uS=_.U([_.T({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],uS);
_.q(uS,"ytd-comment-thread-renderer",function(){if(CtY!==void 0)return CtY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return CtY=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var nKS;var NU8=function(){var W=_.R.apply(this,arguments)||this;W.modernTypography=_.m("web_modern_typography");W.compactHeader=_.m("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.m("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$13635_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.D(NU8,_.R);_.Y=NU8.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.Y.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13635_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.onYtServiceRequestSent=function(W,k){if(!_.m("kevlar_command_handler")&&k.actions)for(W=0;W<k.actions.length;W++){var C=k.actions[W];_.z(C,Jbb)&&_.S(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.z(C,Jbb))}};
_.Y.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.S(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var k=_.S(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;k&&_.ZR(this,function(){k.focus();k.openDialog&&k.openDialog()})}}else this.hasActionsChange=!0};
_.Y.computeIsBackstage=function(W){return W};
_.Y.onYtCommentboxDismiss=function(){_.S(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.Y.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var k=W.actions.length-1;k>=0;k--){var C=void 0;((C=_.z(W.actions[k],RWx))==null?0:C.dialog)&&delete W.actions[k]}this.set("data",void 0);this.set("data",W)}};
_.Y.getPrefilledBackstagePostDialog=function(W){if(W)for(var k=0;k<W.length;k++){var C=W[k],n=void 0;if((n=_.z(C,RWx))==null?0:n.dialog)return _.z(C,RWx).dialog}return null};
_.Y.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.Y.dataChanged=function(){if(this.data){var W=this.data.customEmojis,k=this.data.unicodeEmojisUrl;_.Dp.clear();k&&_.JIz(_.Dp,k);W&&_.Dp.load(W)}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.S(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$13635_handleOpenPostCommentDialogActionAfterStamp=!0};
_.oq.Object.defineProperties(NU8.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.m("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B,A;return!this.hidePanelButton&&_.m("kevlar_watch_comments_panel_button")&&((A=_.z((W=this.data)==null?void 0:(k=W.sortMenu)==null?void 0:(C=k.sortFilterSubMenuRenderer)==null?void 0:(n=C.subMenuItems)==null?void 0:(N=n[0])==null?void 0:(B=N.serviceEndpoint)==null?void 0:B.commandMetadata,_.Ok))==null?void 0:A.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.w8("MINIPLAYER_EXPAND_LABEL"),text:_.Go(_.w8("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var U5=NU8;U5.prototype.dataChanged=U5.prototype.dataChanged;U5.prototype.onYtCommentboxDismiss=U5.prototype.onYtCommentboxDismiss;U5.prototype.observePrefilledBackstagePostDialog=U5.prototype.observePrefilledBackstagePostDialog;U5.prototype.onYtServiceRequestSent=U5.prototype.onYtServiceRequestSent;U5.prototype.onStampFinished=U5.prototype.onStampFinished;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],U5.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],U5.prototype,"modernTypography",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],U5.prototype,"compactHeader",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],U5.prototype,"engagementPanel",void 0);_.U([_.Z(),_.O("design:type",Object)],U5.prototype,"hidePanelButton",void 0);_.U([_.Z({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.O("design:type",Boolean)],U5.prototype,"isBackstage",void 0);_.U([_.Z({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.O("design:type",Object)],U5.prototype,"backstagePostDialog",void 0);
_.U([_.Z(),_.O("design:type",Object)],U5.prototype,"isPostSchedulingEnabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data","showCommentsPanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],U5.prototype,"useSpaceBetween",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","hidePanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],U5.prototype,"showCommentsPanelButton",null);
_.U([_.G("data","showCommentsPanelButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],U5.prototype,"commentsPanelButtonData",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U5.prototype,"onStampFinished",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],U5.prototype,"onYtServiceRequestSent",null);
_.U([_.Hl("data.actions"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U5.prototype,"observePrefilledBackstagePostDialog",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],U5.prototype,"onYtCommentboxDismiss",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U5.prototype,"dataChanged",null);
U5=_.U([_.T({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],U5);
_.q(U5,"ytd-comments-header-renderer",function(){if(nKS!==void 0)return nKS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nKS=W},{mode:1});var Ya8;var BUx=function(){return _.R.apply(this,arguments)||this};
_.D(BUx,_.R);var O5=BUx;_.U([_.Z(),_.O("design:type",Object)],O5.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);O5=_.U([_.T({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],O5);
_.q(O5,"ytd-destination-button-renderer",function(){if(Ya8!==void 0)return Ya8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ya8=W},{mode:1});var b4A;var As8=function(){var W=_.R.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.m("web_modern_typography");return W};
_.D(As8,_.R);_.Y=As8.prototype;_.Y.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.Y.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.Y.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var k;if(W&&(k=this.data)!=null&&k.destinationButtons){k=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var C=Math.ceil(W/k);this.fullyVisibleRows=W%k===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}}}};
_.Y.updateRichGridDestinationButtonsVisibility=function(){var W,k;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(k=this.data)!=null&&k.destinationButtons){W=this.richGridItemsPerRow+1;k=this.data.destinationButtons.length;var C=Math.ceil(k/W);this.fullyVisibleRows=k%W===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}};
_.Y.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Le=As8;Le.prototype.updateRichGridDestinationButtonsVisibility=Le.prototype.updateRichGridDestinationButtonsVisibility;_.U([_.Z(),_.O("design:type",Object)],Le.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Number)],Le.prototype,"fullyVisibleRows",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Le.prototype,"isShowMoreVisible",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Le.prototype,"isRichGrid",void 0);
_.U([_.Z({selector:_.m7,value:0}),_.O("design:type",Number)],Le.prototype,"richGridItemsPerRow",void 0);_.U([_.Z(),_.O("design:type",Object)],Le.prototype,"gridStateActionMap",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Le.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Le.prototype,"modernTypography",void 0);_.U([_.Hl("data","richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Le.prototype,"updateRichGridDestinationButtonsVisibility",null);
Le=_.U([_.T({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Le);
_.q(Le,"ytd-destination-shelf-renderer",function(){if(b4A!==void 0)return b4A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return b4A=W},{mode:1});var FX2;var wys=function(){return _.R.apply(this,arguments)||this};
_.D(wys,_.R);wys.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var jn=wys;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jn.prototype,"data",void 0);jn=_.U([_.T({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],jn);
_.q(jn,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(FX2!==void 0)return FX2;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return FX2=W},{mode:1});var xBs;var lvA=function(){var W=_.R.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.D(lvA,_.R);lvA.prototype.onTap=function(W){W.preventDefault();this.data&&_.Pe(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.oq.Object.defineProperties(lvA.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 W,k,C,n,N;return((W=this.data)==null?0:W.checked)?(k=this.data)==null?void 0:(C=k.onStateIcon)==null?void 0:C.iconType:(n=this.data)==null?void 0:(N=n.defaultStateIcon)==null?void 0:N.iconType}}});
var Hg=lvA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Hg.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Hg.prototype,"disableAnimation",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hg.prototype,"isSlimlineSurvey",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hg.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hg.prototype,"isShortsStyle",void 0);_.U([_.G("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Hg.prototype,"isAnimatedIcon",null);
_.U([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Number),_.O("design:paramtypes",[])],Hg.prototype,"iconSize",null);_.U([_.G("isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Hg.prototype,"isDarkTheme",null);_.U([_.G("data.checked"),_.O("design:type",Object),_.O("design:paramtypes",[])],Hg.prototype,"icon",null);Hg=_.U([_.T({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Hg);
_.q(Hg,"ytd-rating-survey-option-renderer",function(){if(xBs!==void 0)return xBs;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return xBs=W},{mode:2});var tvS;var EKI=function(){var W=_.R.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.D(EKI,_.R);_.Y=EKI.prototype;_.Y.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.Y.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.Y.onOptionChange=function(W,k){var C=this;W=k.onStateIcon&&k.defaultStateIcon&&k.onStateIcon.iconType===k.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(A,w){A.responseText===k.responseText?C.isSlimlineSurvey?(C.selectedRatingIndex=w,C.ytdReduxBehavior.dispatch(Aa2(w))):(C.setSurveyOptionValue(w,!0,"checked"),C.setSurveyOptionValue(w,!0,"selected")):(C.setSurveyOptionValue(w,!1,"checked"),C.setSurveyOptionValue(w,
!1,"selected"))});
else if(W)this.selectedNonStarOption=k,this.hideOptions=!0;else{var n=this.ytRendererBehavior.getSimpleString(k.responseText),N=!0;this.getOptionRenderers().forEach(function(A,w){C.setSurveyOptionValue(w,N,"checked");C.setSurveyOptionValue(w,!1,"selected");C.ytRendererBehavior.getSimpleString(A.responseText)===n&&(N=!1,C.setSurveyOptionValue(w,!0,"selected"))})}W=k.responseEndpoint;
var B;k.followUpCommand&&(B=_.z(k.followUpCommand,tFb));this.isSlimlineSurvey?(this.resetComponent(),_.KY(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.KY(this.hostElement,"ytd-inline-survey-rating-select-action",[W,B])};
_.Y.showSelectedOption=function(){var W=this;_.aM.addJob(function(){var k=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),k)},8,100)};
_.Y.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var k;return(k=_.z(W,amx))!=null?k:{}}):[]};
_.Y.onUndoClick=function(){this.resetComponent();_.KY(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.Y.setSurveyOptionValue=function(W,k,C){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+C);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+C,k)};
_.Y.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var k=this.getOptionRenderers(),C,n;this.firstResponseText=(n=(C=k[0])==null?void 0:C.responseText)!=null?n:null;var N,B;this.lastResponseText=(B=(N=k[k.length-1])==null?void 0:N.responseText)!=null?B:null;k.forEach(function(A,w){W.setSurveyOptionValue(w,!1,"checked");W.setSurveyOptionValue(w,!1,"selected")})};
_.oq.Object.defineProperties(EKI.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var rQ=EKI;rQ.prototype.onOptionChange=rQ.prototype.onOptionChange;rQ.prototype.dataChanged=rQ.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"firstResponseText",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"lastResponseText",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"selectedNonStarOption",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"hideOptions",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"hideUndoButton",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"disableAnimation",void 0);
_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"showResponseRangeText",void 0);_.U([_.Z(),_.O("design:type",Object)],rQ.prototype,"selectedRatingIndex",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rQ.prototype,"isSlimlineSurvey",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rQ.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rQ.prototype,"isShortsStyle",void 0);_.U([_.Z({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.O("design:type",Object)],rQ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.U([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],rQ.prototype,"isSingleSelect",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rQ.prototype,"dataChanged",null);
_.U([_.jI("ytd-rating-survey-option-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],rQ.prototype,"onOptionChange",null);rQ=_.U([_.T({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],rQ);
_.q(rQ,"ytd-rating-survey-renderer",function(){if(tvS!==void 0)return tvS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tvS=W},{mode:1});var av8;var Xy8;var fvS;var YEP=(XY.FIRSTDAYOFWEEK+1)%7,dBs=function(W,k,C,n){var N="";if(n.selection&&kaK(n.selection))tf(W,n.selection)&&(N+=" selected");else if(n.selection&&Cqm(n.selection)){var B=n.selection.selectionState||"START_DATE";tf(W,n.selection.start)&&(N+=" period-start ",B==="START_DATE"&&(N+="selected"));tf(W,n.selection.end)&&(N+=" period-end ",B==="END_DATE"&&(N+="selected"));ER(W,n.selection.start)||ER(n.selection.end,W)||(N+=" highlighted")}if(ER(k,n.start)||ER(n.end,k))N+=" disabled";n.circleToday&&
tf(k,C)&&(N+=" today");return N};var mBz=function(){return _.R.apply(this,arguments)||this};
_.D(mBz,_.R);_.Y=mBz.prototype;_.Y.attached=function(){var W=this;_.ZR(this,function(){W.JSC$13669_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(n5P(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.Y.updateSelection=function(W){W=B5m(Object.assign({},this.calendarConfig,{selection:W}),dBs);this.splice.apply(this,["renderData.months",0,W.length].concat(_.J8(W)))};
_.Y.scrollToDate=function(W){this.renderData&&(W=bZ2(W,this.renderData),W!==void 0&&this.JSC$13669_calendarMain.scrollToIndex(W))};
_.Y.scrollToNextMonth=function(){this.JSC$13669_calendarMain.scrollToIndex(this.JSC$13669_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$13669_calendarMain.firstVisibleIndex===0&&this.JSC$13669_calendarMain.scrollTo(0,0);this.JSC$13669_calendarMain.scrollToIndex(this.JSC$13669_calendarMain.firstVisibleIndex-1)};
_.Y.handleDayClick=function(W){_.KY(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.Y.handleDayMouseDown=function(W){W.preventDefault();_.KY(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.Y.handleDayMouseUp=function(W){_.KY(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.Y.handleDayMouseEnter=function(W){W.preventDefault();_.KY(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.Y.handleDayMouseLeave=function(W){_.KY(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.oq.Object.defineProperties(mBz.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,k=dBs;k=k===void 0?dBs:k;for(var C=[],n=0;n<7;n++)C.push(XY.NARROWWEEKDAYS[(n+YEP)%7]);return{months:B5m(W,k),daysOfWeekLabel:C}}}});
var gQ=mBz;_.U([_.Z(),_.O("design:type",Object)],gQ.prototype,"calendarConfig",void 0);_.U([_.gi("#calendar-main"),_.O("design:type",Object)],gQ.prototype,"JSC$13669_calendarMain",void 0);_.U([_.G("calendarConfig"),_.O("design:type",Object),_.O("design:paramtypes",[])],gQ.prototype,"renderData",null);gQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],gQ);
_.q(gQ,"ytd-scrollable-calendar",function(){if(fvS!==void 0)return fvS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fvS=W},{mode:2});var z2C;var DBS;var VvA=function(){var W=_.R.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.D(VvA,_.R);_.Y=VvA.prototype;_.Y.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.Y.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.Y.focusTextInput=function(){this.input.focus()};
_.Y.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()};
_.Y.valueChanged=function(){var W,k;if(((W=this.data)==null?0:W.value)||((k=this.data)==null?void 0:k.value)==="")this.value=this.data.value;else{var C;((C=this.data)==null?void 0:C.value)!==void 0||this.value||(this.value="")}};
_.Y.computeLabel=function(W,k){return k?"":_.y4(W)};
_.Y.computeAriaLabel=function(W,k){return k?_.y4(W):""};
_.Y.computeErrorMessage=function(W,k,C,n){!W&&k?W=C||this.strings.REQUIRED_LABEL:(W=_.y4(n),W=_.E2(W,"&")?"document"in _.NX?eC8(W):sIC(W):W);return W};
_.Y.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.Y.onTextValueChanged=function(W){this.value=W.detail.value;var k;(k=this.onValueChanged)==null||k.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.Y.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.z(W,yCs))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("value-changed",this.value))};
_.Y.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.oq.Object.defineProperties(VvA.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
var Pg=VvA;Pg.prototype.valueChangedForBinding=Pg.prototype.valueChangedForBinding;Pg.prototype.valueChanged=Pg.prototype.valueChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Pg.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Pg.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Pg.prototype,"value",void 0);_.U([_.Z(),_.O("design:type",String)],Pg.prototype,"pattern",void 0);_.U([_.Z(),_.O("design:type",String)],Pg.prototype,"errorMessage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Pg.prototype,"componentStyle",void 0);_.U([_.Z(),_.O("design:type",Object)],Pg.prototype,"hideCharCounter",void 0);
_.U([_.Z(),_.O("design:type",Object)],Pg.prototype,"hideLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],Pg.prototype,"noLabelFloat",void 0);_.U([_.Z(),_.O("design:type",Function)],Pg.prototype,"onValueChanged",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Pg.prototype,"isMultilineOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],Pg.prototype,"autoValidate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Pg.prototype,"invalid",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Pg.prototype,"enableOverlayTheme",void 0);_.U([_.Z({value:{REQUIRED_LABEL:_.w8("REQUIRED_LABEL",void 0,"Required")}}),_.O("design:type",Object)],Pg.prototype,"strings",void 0);_.U([_.gi("#input"),_.O("design:type",Object)],Pg.prototype,"input",void 0);_.U([_.G("data","isMultilineOverride"),_.O("design:type",Object),_.O("design:paramtypes",[])],Pg.prototype,"isMultiline",null);
_.U([_.Cq("data.value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pg.prototype,"valueChanged",null);_.U([_.Hl("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pg.prototype,"valueChangedForBinding",null);Pg=_.U([_.l0({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Pg);
_.q(Pg,"yt-text-input-form-field-renderer",function(){if(DBS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;z2C===void 0&&(z2C=document.createElement("template"));var n=z2C;C.call(k,n.content.cloneNode(!0),W.content.firstChild);DBS=W}W=DBS;return W},{mode:2});var JsY=function(){var W=_.R.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.D(JsY,_.R);_.Y=JsY.prototype;_.Y.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"}}}}};
_.Y.focus=function(){this.startDateInput.focus()};
_.Y.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:aZ(this.data.selection.start),end:aZ(this.data.selection.end)})};
_.Y.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.oI(this.selectionState)}};
_.Y.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.Y.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.Y.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,k=W.end;W=Fnw({start:W.start,end:this.endDate||k},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.Y.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,k=W.start;W=Fnw({start:this.startDate||k,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.Y.handleCalendarDateClicked=function(W){var k=this.selection&&n5P(this.selection),C=this.selection&&N5J(this.selection);k&&!ER(W,k)&&this.selectionState==="END_DATE"?(this.selection={start:k,end:W},this.selectionState="START_DATE"):(C&&!ER(C,W)?this.selection={start:W,end:C}:this.selection=W,this.selectionState="END_DATE")};
_.Y.handleCalendarDateMouseDown=function(W){this.selection&&!kaK(this.selection)&&(this.dragPivot=tf(W,this.selection.start)?this.selection.end:tf(W,this.selection.end)?this.selection.start:W)};
_.Y.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.Y.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(k,C){return ER(k,C)?k:C}(this.dragPivot,W),
end:function(k,C){return ER(k,C)?C:k}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.Y.handleCalendarDateMouseLeave=function(){};
_.Y.handleCalendarSubmitDateRange=function(){this.selection&&!kaK(this.selection)&&_.KY(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.Y.updateInvalidState=function(){var W=function(k,C){C?k.setAttribute("invalid",""):k.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.Y.updateDateStrings=function(){this.selection&&(kaK(this.selection)?Wn2(this.selection):(Wn2(this.selection.start),Wn2(this.selection.end)))};
_.Y.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.Y.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.Y.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.Y.updateStartDateStringFromBinding=function(){};
_.Y.updateEndDateStringFromBinding=function(){};
_.oq.Object.defineProperties(JsY.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:aZ(this.data.dateRangeStart),end:aZ(this.data.dateRangeEnd),selection:{start:aZ(this.data.selection.start),end:aZ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&n5P(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&N5J(this.selection)}}});
var Ke=JsY;Ke.prototype.resetTextboxes=Ke.prototype.resetTextboxes;Ke.prototype.observeSelection=Ke.prototype.observeSelection;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#calendar"),_.O("design:type",Object)],Ke.prototype,"calendar",void 0);
_.U([_.gi("#start-date"),_.O("design:type",Object)],Ke.prototype,"startDateInput",void 0);_.U([_.gi("#end-date"),_.O("design:type",Object)],Ke.prototype,"endDateInput",void 0);_.U([_.Z(),_.O("design:type",Object)],Ke.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Ke.prototype,"selection",void 0);_.U([_.Z(),_.O("design:type",String)],Ke.prototype,"selectionState",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ke.prototype,"calendarConfig",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ke.prototype,"errorMessage",null);_.U([_.G("selection"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ke.prototype,"startDate",null);_.U([_.G("selection"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ke.prototype,"endDate",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ke.prototype,"dataChanged",null);
_.U([_.Hl("selection","selectionState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ke.prototype,"observeSelection",null);_.U([_.Hl("selectionState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ke.prototype,"resetTextboxes",null);Ke=_.U([_.T({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Ke);
_.q(Ke,"ytd-date-period-picker-renderer",function(){if(Xy8!==void 0)return Xy8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Xy8=W},{mode:1});var csx=function(){var W=_.R.apply(this,arguments)||this;var k={};W.actionMap=(k["ytd-date-period-picker-apply"]="handleDateRangeUpdated",k);return W};
_.D(csx,_.R);csx.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
csx.prototype.handleDateRangeUpdated=function(){};
var hz=csx;_.U([_.Z(),_.O("design:type",Object)],hz.prototype,"data",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],hz.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hz.prototype,"rendererstamperBehavior",void 0);hz=_.U([_.T({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],hz);
_.q(hz,"ytd-report-history-section-header-renderer",function(){if(av8!==void 0)return av8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return av8=W},{mode:1});var Ivs;var SaC;var Mvs;var Q72=function(){return _.R.apply(this,arguments)||this};
_.D(Q72,_.R);_.oq.Object.defineProperties(Q72.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?0:(k=W.icon)==null?0:k.iconType)?_.Hp(this.data.icon.iconType):""}}});
var Wh=Q72;_.U([_.Z(),_.O("design:type",Object)],Wh.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],Wh.prototype,"icon",null);Wh=_.U([_.T({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Wh);
_.q(Wh,"ytd-report-history-table-text-cell-renderer",function(){if(Mvs!==void 0)return Mvs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Mvs=W},{mode:1});var pyA=function(){return _.R.apply(this,arguments)||this};
_.D(pyA,_.R);pyA.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var kt=pyA;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kt.prototype,"data",void 0);kt=_.U([_.T({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],kt);
_.q(kt,"ytd-report-history-table-reason-cell-renderer",function(){if(SaC!==void 0)return SaC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SaC=W},{mode:1});var vKz=function(){return _.R.apply(this,arguments)||this};
_.D(vKz,_.R);vKz.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
var CK=vKz;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CK.prototype,"rendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CK.prototype,"data",void 0);CK=_.U([_.T({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],CK);
_.q(CK,"ytd-report-history-table-cell-renderer",function(){if(Ivs!==void 0)return Ivs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return Ivs=W},{mode:1});var e2b;var nK=function(){var W=_.R.apply(this,arguments)||this;W.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 W};
_.D(nK,_.R);nK.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
nK.prototype.getCellForColumn=function(W){return this.cells.find(function(k){var C;return((C=_.z(k==null?void 0:k.cell,dFY)||_.z(k==null?void 0:k.cell,fmb))==null?void 0:C.columnId)===W.type})};
nK.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
nK.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.oq.Object.defineProperties(nK.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(k){return _.z(k,X0A)})}}});
var No=nK;No.prototype.onDataChanged=No.prototype.onDataChanged;_.U([_.Z(),_.O("design:type",Object)],No.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],No.prototype,"columnRenderData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],No.prototype,"componentStyle",void 0);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],No.prototype,"cells",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],No.prototype,"onDataChanged",null);No=_.U([_.T({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],No);
_.q(No,"ytd-report-history-table-row-renderer",function(){if(e2b!==void 0)return e2b;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return e2b=W},{mode:1});var s7x;var Gpz;var wEc={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},xAK={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Yt=function(){return _.R.apply(this,arguments)||this};
_.D(Yt,_.R);Yt.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"}}}}}};
Yt.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.oq.Object.defineProperties(Yt.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?XE4(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return E5p(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,k=wEc;k=k===void 0?xAK:k;k=aOX(W.columnDimensions,W.columnsToShow||[],k);W=0;k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,W+=C.minWidth+C.paddingLeft+C.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var Bh=Yt;_.U([_.v(_.ui),_.O("design:type",Object)],Bh.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bh.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Bh.prototype,"tableSpec",null);_.U([_.G("tableSpec"),_.O("design:type",Array),_.O("design:paramtypes",[])],Bh.prototype,"columnRenderData",null);
_.U([_.G("tableSpec"),_.O("design:type",Number),_.O("design:paramtypes",[])],Bh.prototype,"totalMinWidth",null);_.U([_.G("totalMinWidth"),_.O("design:type",String),_.O("design:paramtypes",[])],Bh.prototype,"tableWidthStyle",null);Bh=_.U([_.T({is:"ytd-table-renderer",disableElementRegistration:!0})],Bh);
_.q(Bh,"ytd-table-renderer",function(){if(Gpz!==void 0)return Gpz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Gpz=W},{mode:1});var ysb=function(){return _.R.apply(this,arguments)||this};
_.D(ysb,_.R);ysb.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var bZ=ysb;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bZ.prototype,"data",void 0);bZ=_.U([_.T({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],bZ);
_.q(bZ,"ytd-report-reason-history-modal-renderer",function(){if(s7x!==void 0)return s7x;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return s7x=W},{mode:1});var $BS;var Z4b;var R2A;var oKS=function(){return _.R.apply(this,arguments)||this};
_.D(oKS,_.R);var A6=oKS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A6.prototype,"data",void 0);A6=_.U([_.T({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],A6);
_.q(A6,"ytd-profile-column-stats-entry-renderer",function(){if(R2A!==void 0)return R2A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return R2A=W},{mode:1});var i48;var TU8=function(){return _.R.apply(this,arguments)||this};
_.D(TU8,_.R);TU8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var FJ=TU8;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FJ.prototype,"data",void 0);FJ=_.U([_.T({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],FJ);
_.q(FJ,"ytd-profile-column-stats-renderer",function(){if(i48!==void 0)return i48;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return i48=W},{mode:1});var qa8;var uSA=function(){return _.R.apply(this,arguments)||this};
_.D(uSA,_.R);_.oq.Object.defineProperties(uSA.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var k,C;W=(k=this.data)==null?void 0:(C=k.thumbnail)==null?void 0:C.thumbnails;var n;return W&&((n=W[0])==null?void 0:n.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var k,C;W=(k=this.data)==null?void 0:(C=k.thumbnail)==null?void 0:C.thumbnails;var n;return W&&((n=W[0])==null?void 0:n.height)||80}}});
var w$=uSA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],w$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],w$.prototype,"componentStyle",void 0);_.U([_.G("data.useThumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],w$.prototype,"thumbnailWidth",null);
_.U([_.G("data.useThumbnailSize"),_.O("design:type",Object),_.O("design:paramtypes",[])],w$.prototype,"thumbnailHeight",null);w$=_.U([_.T({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],w$);
_.q(w$,"ytd-profile-column-user-info-renderer",function(){if(qa8!==void 0)return qa8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qa8=W},{mode:1});var UBz=function(){return _.R.apply(this,arguments)||this};
_.D(UBz,_.R);UBz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
var xt=UBz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xt.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],xt.prototype,"componentStyle",void 0);xt=_.U([_.T({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],xt);
_.q(xt,"ytd-profile-column-renderer",function(){if(Z4b!==void 0)return Z4b;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Z4b=W},{mode:1});var O4I=function(){var W=_.R.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.D(O4I,_.R);O4I.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
O4I.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
var lZ=O4I;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lZ.prototype,"data",void 0);lZ=_.U([_.T({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],lZ);
_.q(lZ,"ytd-page-introduction-renderer",function(){if($BS!==void 0)return $BS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $BS=W},{mode:1});var LXx;var j7Y=function(){return _.R.apply(this,arguments)||this};
_.D(j7Y,_.R);var t6=j7Y;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],t6.prototype,"data",void 0);t6=_.U([_.T({is:"ytd-report-description-renderer",disableElementRegistration:!0})],t6);
_.q(t6,"ytd-report-description-renderer",function(){if(LXx!==void 0)return LXx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return LXx=W},{mode:1});var H4A;var rsA;var gKA=function(){return _.R.apply(this,arguments)||this};
_.D(gKA,_.R);gKA.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var Ec=gKA;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ec.prototype,"data",void 0);Ec=_.U([_.T({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Ec);
_.q(Ec,"ytd-video-report-renderer",function(){if(rsA!==void 0)return rsA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return rsA=W},{mode:1});var Pts;_.EJ("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.EJ("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var a3=function(){return _.R.apply(this,arguments)||this};
_.D(a3,_.R);a3.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]]"}}}}}};
a3.prototype.computeMessageStyle=function(W){return W};
a3.prototype.computeButtonOverride=function(W){var k;if((W==null?0:(k=W.style)==null?0:k.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var XJ=a3;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XJ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XJ.prototype,"shelf",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XJ.prototype,"panel",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.O("design:type",Boolean)],XJ.prototype,"componentStyle",void 0);_.U([_.Z({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],XJ.prototype,"buttonOverride",void 0);XJ=_.U([_.T({is:"ytd-message-renderer",disableElementRegistration:!0})],XJ);
_.q(XJ,"ytd-message-renderer",function(){if(Pts!==void 0)return Pts;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Pts=W},{mode:1});var fK=function(){return _.R.apply(this,arguments)||this};
_.D(fK,_.R);fK.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"}}}};
fK.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
fK.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.oq.Object.defineProperties(fK.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!(((W=this.data)==null?0:W.header)&&((k=this.data)==null?0:k.table))}}});
var d$=fK;d$.prototype.onRequestError=d$.prototype.onRequestError;_.U([_.v(_.ui),_.O("design:type",Object)],d$.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],d$.prototype,"data",void 0);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],d$.prototype,"isUnifiedReportHistory",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d$.prototype,"onRequestError",null);d$=_.U([_.T({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],d$);
_.q(d$,"ytd-report-history-section-renderer",function(){if(H4A!==void 0)return H4A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return H4A=W},{mode:1});var KX8;var h2s=function(){var W=_.R.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.D(h2s,_.R);h2s.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var mj=h2s;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mj.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],mj.prototype,"answerExpanded",void 0);mj=_.U([_.T({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],mj);
_.q(mj,"ytd-handles-claiming-faq-renderer",function(){if(KX8!==void 0)return KX8;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return KX8=W},{mode:1});var WTs;var kd8=function(){return _.R.apply(this,arguments)||this};
_.D(kd8,_.R);var CU2=kd8;_.U([_.Z(),_.O("design:type",Object)],CU2.prototype,"data",void 0);CU2=_.U([_.T({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],CU2);
_.q(CU2,"ytd-handles-claiming-faq-section-renderer",function(){if(WTs!==void 0)return WTs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return WTs=W},{mode:1});var nbb;var NGA=function(){var W=_.R.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.D(NGA,_.R);_.Y=NGA.prototype;_.Y.updateLeftSquigglyStyle=function(){_.Op(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.Y.updateRightSquigglyStyle=function(){_.Op(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.Y.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var zY=NGA;zY.prototype.updateRightSquigglyStyle=zY.prototype.updateRightSquigglyStyle;zY.prototype.updateLeftSquigglyStyle=zY.prototype.updateLeftSquigglyStyle;_.U([_.Z(),_.O("design:type",Object)],zY.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],zY.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",String)],zY.prototype,"leftSquiggly",void 0);_.U([_.Z(),_.O("design:type",String)],zY.prototype,"rightSquiggly",void 0);
_.U([_.Hl("leftSquiggly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"updateLeftSquigglyStyle",null);_.U([_.Hl("rightSquiggly"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zY.prototype,"updateRightSquigglyStyle",null);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],zY.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zY.prototype,"actionButtonOverride",void 0);zY=_.U([_.T({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],zY);
_.q(zY,"ytd-handles-claiming-header-renderer",function(){if(nbb!==void 0)return nbb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return nbb=W},{mode:1});var YwS;var BGC=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.D(BGC,_.R);_.Y=BGC.prototype;_.Y.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.Y.onDataChanged=function(){this.updateTitleAndImages()};
_.Y.onThemeChanged=function(){this.updateTitleAndImages()};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.Y.updateImage0SquigglyBackground=function(){_.Op(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.Y.updateImage1SquigglyBackground=function(){_.Op(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.Y.updateImage3SquigglyBackground=function(){_.Op(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.Y.updateTitleAndImages=function(){var W,k;((W=this.data)==null?void 0:(k=W.titleImages)==null?void 0:k.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var Dk=BGC;Dk.prototype.updateImage3SquigglyBackground=Dk.prototype.updateImage3SquigglyBackground;Dk.prototype.updateImage1SquigglyBackground=Dk.prototype.updateImage1SquigglyBackground;Dk.prototype.updateImage0SquigglyBackground=Dk.prototype.updateImage0SquigglyBackground;Dk.prototype.onThemeChanged=Dk.prototype.onThemeChanged;Dk.prototype.onDataChanged=Dk.prototype.onDataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Dk.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Dk.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"title0",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"title1",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"title2",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"title3",void 0);
_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"title4",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"image0",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"image1",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"image2",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"image3",void 0);_.U([_.Z(),_.O("design:type",Object)],Dk.prototype,"image4",void 0);_.U([_.Z(),_.O("design:type",String)],Dk.prototype,"image0SquigglyBackground",void 0);
_.U([_.Z(),_.O("design:type",String)],Dk.prototype,"image1SquigglyBackground",void 0);_.U([_.Z(),_.O("design:type",String)],Dk.prototype,"image3SquigglyBackground",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dk.prototype,"onDataChanged",null);_.U([_.Hl("isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dk.prototype,"onThemeChanged",null);
_.U([_.Hl("image0SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dk.prototype,"updateImage0SquigglyBackground",null);_.U([_.Hl("image1SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dk.prototype,"updateImage1SquigglyBackground",null);
_.U([_.Hl("image3SquigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dk.prototype,"updateImage3SquigglyBackground",null);Dk=_.U([_.T({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Dk);
_.q(Dk,"ytd-handles-claiming-title-images-section-renderer",function(){if(YwS!==void 0)return YwS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return YwS=W},{mode:1});var bzA;var Vu=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(Vu,_.R);Vu.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
Vu.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
Vu.prototype.onCopyButtonClick=function(){var W=this,k,C,n;return _.F(function(N){return(k=W.data)!=null&&k.primaryChannelUrl?_.l(N,navigator.clipboard.writeText(((C=W.data)==null?0:C.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.y4((n=W.data)==null?void 0:n.primaryChannelUrl)),0):N.jumpTo(0)})};
var J6=Vu;_.U([_.Z(),_.O("design:type",Object)],J6.prototype,"data",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],J6.prototype,"ytComponentBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],J6.prototype,"isDarkTheme",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],J6.prototype,"ytActionHandlerBehavior",void 0);J6=_.U([_.T({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],J6);
_.q(J6,"ytd-handles-claiming-update-social-renderer",function(){if(bzA!==void 0)return bzA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return bzA=W},{mode:1});var A2x;var ch=function(){var W=_.R.apply(this,arguments)||this;W.JSC$13764_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$13764_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$13764_squigglyBackgroundLight;return W};
_.D(ch,_.R);ch.prototype.updateSquigglyBackgroundStyle=function(){_.Op(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ch.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$13764_squigglyBackgroundDark:this.JSC$13764_squigglyBackgroundLight};
ch.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13764_squigglyBackgroundDark:this.JSC$13764_squigglyBackgroundLight)};
var I3=ch;I3.prototype.updateSquigglyBackgroundStyle=I3.prototype.updateSquigglyBackgroundStyle;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],I3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],I3.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],I3.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",String)],I3.prototype,"squigglyBackground",void 0);_.U([_.Hl("squigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],I3.prototype,"updateSquigglyBackgroundStyle",null);I3=_.U([_.T({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],I3);
_.q(I3,"ytd-handles-claiming-vanity-info-renderer",function(){if(A2x!==void 0)return A2x;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return A2x=W},{mode:1});var FTA;var w_C=function(){var W=_.R.apply(this,arguments)||this;W.JSC$13767_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$13767_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$13767_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(w_C,_.R);_.Y=w_C.prototype;_.Y.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13767_squigglyBackgroundDark:this.JSC$13767_squigglyBackgroundLight)};
_.Y.updateSquigglyBackgroundStyle=function(){_.Op(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.Y.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.Y.detached=function(){this.stop()};
_.Y.stop=function(){this.playerElement.stop()};
_.Y.setupVideoPlayer=function(){var W=this,k,C;return _.F(function(n){k=W.data.videoId;C="http://i1.ytimg.com/vi/"+k+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:k,iurlhq:C});_.ab(n)})};
var S$=w_C;S$.prototype.onDataChanged=S$.prototype.onDataChanged;S$.prototype.updateSquigglyBackgroundStyle=S$.prototype.updateSquigglyBackgroundStyle;_.U([_.Z({value:!1}),_.O("design:type",Boolean)],S$.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",String)],S$.prototype,"squigglyBackground",void 0);_.U([_.gi("#player"),_.O("design:type",Object)],S$.prototype,"playerElement",void 0);_.U([_.Z(),_.O("design:type",Object)],S$.prototype,"data",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Hl("squigglyBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S$.prototype,"updateSquigglyBackgroundStyle",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S$.prototype,"onDataChanged",null);
S$=_.U([_.T({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],S$);
_.q(S$,"ytd-handles-claiming-video-item-renderer",function(){if(FTA!==void 0)return FTA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return FTA=W},{mode:1});var xrA;var Qu=function(){var W=_.Wp.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",Mo(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",Mo(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(k){W.dragMouseStart=k.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(k){W.dragging&&W.set("offset",Mo(W,W.dragOffsetStart-(k.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(k){var C=0;Math.abs(k.deltaX)>=Math.abs(k.deltaY)?C=k.deltaX:k.shiftKey&&(C=k.deltaY);C!==0&&(W.offset+=C,k.stopPropagation(),k.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(k){(k=k.detail)&&W.scrollChipIntoView(k)};
return W};
_.D(Qu,_.Wp);Qu.prototype.attached=function(){var W=_.S(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Qu.prototype.detached=function(){var W=_.S(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Qu.prototype.reset=function(){this.set("offset",0);_.ZR(this,this.setContainerWidthDiff);pK(this)};
var Mo=function(W,k){return Math.min(Math.max(k,0),W.containerWidthDiff)};
Qu.prototype.onMouseUp=function(){this.dragging=!1};
Qu.prototype.transformContainer=function(){this.offset=Mo(this,this.offset);var W=_.DE("HTML_DIR")==="rtl"?"":"-";_.S(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";pK(this)};
var pK=function(W){_.ZR(W,W.setButtonsState)};
Qu.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Mo(this,this.offset));this.atStart=this.offset<=0};
Qu.prototype.setContainerWidthDiff=function(){var W=_.S(this.hostElement).querySelector("#scroll-container"),k=_.S(this.hostElement).querySelector("#chips");W&&k&&(this.containerWidthDiff=k.clientWidth-W.clientWidth)};
Qu.prototype.scrollChipIntoView=function(W){var k=_.S(this.hostElement).querySelector("#scroll-container");if(k){var C=this.atStart?0:106,n=this.atEnd?0:106;W.offsetLeft<this.offset+C?this.offset=Mo(this,W.offsetLeft-C):W.offsetLeft+W.clientWidth>this.offset+k.clientWidth-n&&(this.offset=Mo(this,W.offsetLeft+W.clientWidth+n-k.clientWidth))}};
var vh=Qu;vh.prototype.transformContainer=vh.prototype.transformContainer;_.U([_.Z({value:0}),_.O("design:type",Number)],vh.prototype,"offset",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],vh.prototype,"atStart",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],vh.prototype,"atEnd",void 0);_.U([_.Z(),_.O("design:type",Number)],vh.prototype,"scrollDistance",void 0);
_.U([_.Hl("offset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vh.prototype,"transformContainer",null);vh=_.U([_.kr()],vh);var lPI;var tS2;var X_s=_.GM(function(W){var k=W.data;W=_.b(_.kw(!1,void 0,"icHmSe"));var C=W.next().value,n=W.next().value;W={};W=_.Li("ytChipShapeChip",function(){a:switch(k==null?void 0:k().state){case 0:var w="ytChipShapeActive";break a;case 1:w="ytChipShapeDisabled";break a;default:w="ytChipShapeInactive"}return w},function(){var w=k().type===1||k().type===2,x=k();
return w||x!=null&&x.startIcon?x==null||!x.startIcon||x!=null&&x.text?w?"ytChipShapeEndIconPadding":(x==null?0:x.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var w;
return C()&&((w=k())==null?void 0:w.state)!==1},W));
var N=function(w){if((k==null?void 0:k().state)!==1){var x,E;(E=(x=k()).onTap)==null||E.call(x,w)}},B=_.Pj(function(){var w=_.f().resolve(_.qI(_.Ay));
if(w){n(w.isKeyBoardInUse());var x,E;(E=(x=k()).onFocusIn)==null||E.call(x)}return!1}),A=_.Pj(function(){n(!1);
return!1});
return _.t("chip-shape",{class:"ytChipShapeHost","on:focusin":B,"on:focusout":A},_.t(Eb2,{shouldWrapInButton:function(){return k().type!==2},
selected:function(){return k().state===0},
onClick:N,isDropdown:function(){return k().type===1},
accessibilityLabel:function(){return k().accessibilityLabel}},_.t("div",{class:W},_.t(_.NI,{cond:function(){return k().startIcon},
then:function(){return _.t(_.ka,{icon:function(){var w;return(w=k())==null?void 0:w.startIcon},
className:function(){return k().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return k().text},_.t(aPS,{shape:k,
onClick:N}))))},"mb");
X_s.idomCompat=!0;var Eb2=_.GM(function(W){var k=_.Pj(function(C){W.onClick(C);return!1});
return _.t(_.NI,{cond:W.shouldWrapInButton,then:function(){return _.t("button",{class:"ytChipShapeButtonReset","on:click":k,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"nb"),aPS=_.GM(function(W){var k=W.shape;
var C=W.onClick;var n=_.Pj(function(N){C(N);return!1});
return _.t(_.Fc,null,_.t(_.Aj,{when:function(){return k().type===1}},function(){return _.t(_.ka,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.t(_.Aj,{when:function(){return k().type===2}},function(){return _.t("button",{class:"ytChipShapeButtonReset",
"on:click":n},_.t(_.ka,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.t(_.Aj,{when:function(){return k().type===0}},function(){return _.t(_.qf,null)}))},"ob");_.Gj(X_s,"chip-shape",{props:{data:_.Ik}});var fPC=function(){var W=_.R.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.modern=_.m("web_modern_typography");W.useChipShape=_.m("web_chip_shape_defrag");W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.D(fPC,_.R);_.Y=fPC.prototype;_.Y.beforeRegister=function(){_.m("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.Y.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.Y.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.z(W,ITA),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.Y.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var k;(W=(k=_.z(W,saS))==null?void 0:k.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.Y.dataChanged=function(){var W=this;_.ZR(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.Y.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.Y.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.Y.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.KY(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.KY(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.Y.onFocus=function(){var W=_.f().resolve(_.qI(_.Ay));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.Y.scrollChipIntoView=function(){_.Pe(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.oq.Object.defineProperties(fPC.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return VUm({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
var e$=fPC;e$.prototype.onFocus=e$.prototype.onFocus;e$.prototype.onTap=e$.prototype.onTap;e$.prototype.selectionChanged=e$.prototype.selectionChanged;e$.prototype.dataChanged=e$.prototype.dataChanged;_.U([_.v(_.tl),_.O("design:type",Object)],e$.prototype,"ironButtonState",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],e$.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],e$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.wS),_.O("design:type",Object)],e$.prototype,"ironA11yKeysBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],e$.prototype,"disableDeselectEvent",void 0);_.U([_.Z(),_.O("design:type",Object)],e$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.icon"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],e$.prototype,"hasIcon",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.uniqueId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],e$.prototype,"isGnomeChip",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e$.prototype,"modern",void 0);_.U([_.Z({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.O("design:type",String)],e$.prototype,"chipStyle",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],e$.prototype,"selected",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e$.prototype,"useChipShape",void 0);_.U([_.G("data","selected"),_.O("design:type",Object),_.O("design:paramtypes",[])],e$.prototype,"chipShapeData",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e$.prototype,"dataChanged",null);_.U([_.Hl("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e$.prototype,"selectionChanged",null);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e$.prototype,"onTap",null);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e$.prototype,"onFocus",null);e$=_.U([_.l0({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],e$);
_.q(e$,"yt-chip-cloud-chip-renderer",function(){if(tS2===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;lPI===void 0&&(lPI=document.createElement("template"));var n=lPI;C.call(k,n.content.cloneNode(!0),W.content.firstChild);tS2=W}W=tS2;return W},{mode:2});var drC=function(){var W=_.R.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.m("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.D(drC,_.R);_.Y=drC.prototype;
_.Y.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}}}}}};
_.Y.attached=function(){var W=this;document.addEventListener("scroll",_.LO(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var k;this.toolbarHeight=((k=document.querySelector("ytd-masthead"))==null?void 0:k.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(C){W.handleIntersect(C)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.Y.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var k;(k=this.resizeObserver)==null||k.disconnect();document.removeEventListener("scroll",_.LO(this,this.updateChipBarWidthAndTop))};
_.Y.dataChanged=function(){var W=this,k,C,n;((n=_.z((k=this.data)==null?void 0:(C=k.contents)==null?void 0:C[0],LB8))==null?void 0:n.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var N=this.findSelectedChipIndex();this.selectedIndex!==N&&(this.selectedIndex=-1);_.ZR(this,function(){W.selectedIndex=N;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.Y.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var k=0;k<W.length;k++){var C=void 0;if((C=_.z(W[k],LB8))==null?0:C.isSelected)return k}return 0};
_.Y.computeStyle=function(W){return W};
_.Y.handleChipCloudChipSelectAction=function(W){W=this.JSC$13786_chipsSelector.indexOf(W);W>-1&&this.JSC$13786_chipsSelector.selectIndex(W)};
_.Y.handleChipCloudChipDeselectAction=function(){if(_.m("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],LB8))==null?void 0:C.navigationEndpoint;n&&_.KY(this.hostElement,"yt-browse-section-list-reload-endpoint",[n]);this.JSC$13786_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.Y.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.ZR(W,W.setContainerWidthDiff);pK(this.ytScrollableChipCloudBehavior)};
_.Y.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.ZR(W,W.setContainerWidthDiff);pK(this.ytScrollableChipCloudBehavior)};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.Y.handleIntersect=function(W){_.m("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1)};
_.Y.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var k,C=(k=W.headerElement)!=null?k:W;_.Op(this.hostElement,{"--ytd-rich-grid-chips-bar-width":C.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.Y.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.Y.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.Y.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.jo({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.oq.Object.defineProperties(drC.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 W,k,C=(W=this.data)==null?void 0:(k=W.contents)==null?void 0:k.find(function(n){return _.z(n,gkC)});
return{sortFilterHeaderRenderer:_.z(C,gkC)}}}});
var sc=drC;sc.prototype.dispatchChipBarIsSticky=sc.prototype.dispatchChipBarIsSticky;sc.prototype.isPlaylistPageChanged=sc.prototype.isPlaylistPageChanged;sc.prototype.updateChipBarWidthAndTop=sc.prototype.updateChipBarWidthAndTop;sc.prototype.onResize=sc.prototype.onResize;sc.prototype.onGuideIsExpandedChanged=sc.prototype.onGuideIsExpandedChanged;sc.prototype.dataChanged=sc.prototype.dataChanged;
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],sc.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],sc.prototype,"ironResizableBehavior",void 0);_.U([_.v(),_.O("design:type",vh)],sc.prototype,"ytScrollableChipCloudBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sc.prototype,"data",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sc.prototype,"selectedIndex",void 0);_.U([_.Z({value:320}),_.O("design:type",Number)],sc.prototype,"scrollDistance",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"isDarkTheme",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"notSticky",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"transparentBackground",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.O("design:type",String)],sc.prototype,"componentStyle",void 0);_.U([_.Z({selector:_.Qrm}),_.O("design:type",Boolean)],sc.prototype,"guideIsExpanded",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"shouldHide",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"disableSticky",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"fluidWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"isClipList",void 0);_.U([_.Z(),_.O("design:type",Object)],sc.prototype,"defaultChipIndex",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sc.prototype,"isPlaylist",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sc.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.gi("#chips"),_.O("design:type",Object)],sc.prototype,"JSC$13786_chipsSelector",void 0);_.U([_.gi("ytd-sort-filter-header-renderer"),_.O("design:type",HTMLElement)],sc.prototype,"sortFilterHeaderRendererElement",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],sc.prototype,"updating",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"dataChanged",null);_.U([_.Hl("guideIsExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"onGuideIsExpandedChanged",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"onResize",null);_.U([_.Cq("isChannelPageGrid","disableSticky","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"updateChipBarWidthAndTop",null);_.U([_.G("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sc.prototype,"isChannelPageGrid",null);
_.U([_.G("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sc.prototype,"isHashtagLandingPage",null);_.U([_.Hl("isPlaylistPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"isPlaylistPageChanged",null);_.U([_.G("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sc.prototype,"isPlaylistPage",null);
_.U([_.G("componentStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],sc.prototype,"isDisableDeselectEvent",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],sc.prototype,"sortFilterHeaderRendererData",null);_.U([_.Z({reflectToAttribute:!0,selector:_.$$z}),_.O("design:type",String)],sc.prototype,"frostedGlassMode",void 0);
_.U([_.Hl("notSticky"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sc.prototype,"dispatchChipBarIsSticky",null);sc=_.U([_.T({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],sc);
_.q(sc,"ytd-feed-filter-chip-bar-renderer",function(){if(xrA!==void 0)return xrA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xrA=W},{mode:1});var mrY;var zwC=_.GM(function(W){var k=W.data;var C=W.buttonIndex;var n=W.selectedIndex;var N=W.onSelect;var B=function(){return C()===n()},A=function(){var x,E;
return(E=(x=k().text)==null?void 0:x.content)!=null?E:""};
_.Pj(function(){});
W=_.cB();var w=_.Pj(function(){N(k().onSubmitCommand);return!1});
return _.t("yt-toggleable-image-button-view-model",{class:function(){var x={};x=(x["toggleable-image-button-view-model-wiz"]=!0,x[""]=!0,x["toggleable-image-button-view-model-wiz__semi-transparent"]=n()!==-1&&!B(),x);return _.Hj(x)},
tabindex:0,"aria-label":A,"aria-pressed":B,role:"button","on:keydown":W,"on:click":w},_.t(_.NI,{cond:function(){return k().logo},
then:function(x){return _.t(_.pi,{data:x,className:function(){var E={};E=(E["toggleable-image-button-view-model-wiz__image"]=!0,E["toggleable-image-button-view-model-wiz__circular-radius"]=!(!k().backgroundColor||!k().backgroundColorDarkMode),E["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(B()&&k().backgroundColor&&k().backgroundColorDarkMode),E);return _.Hj(E)},
alt:A,useWidth:!1,style:function(){if(B()&&k().backgroundColor&&k().backgroundColorDarkMode){var E=fO(Number(k().backgroundColorDarkMode),"1");var a=fO(Number(k().backgroundColor),"1");E="background: linear-gradient(180deg,"+E+","+a+") border-box;"}else E="";return E}})}}),_.t(_.BJ,{model:{borderRadius:"16px"}}),_.t("p",{class:function(){var x={};
x=(x["toggleable-image-button-view-model-wiz__label"]=!0,x["toggleable-image-button-view-model-wiz__bold-text"]=B(),x);return _.Hj(x)}},_.t(_.Ya,{text:function(){return k().text}})))},"pb");
zwC.idomCompat=!0;var VSs=_.GM(function(W){var k=W.data;W=_.b(_.kw({index:-1,command:{}},void 0,"Zcqtsb"));var C=W.next().value,n=W.next().value;return _.t("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.t("div",{class:"nudge-form-view-model-wiz__form-options"},_.t(_.Ex,{data:function(){return k().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(N,B){return _.t(zwC,{data:N.data,buttonIndex:B,selectedIndex:function(){return C().index},
onSelect:function(A){n({index:B(),command:A})}})}})),_.t(_.Ya,{text:function(){return k().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.t("div",{class:"nudge-form-view-model-wiz__submit"},_.t(_.Ex,{data:function(){return k().submitButton}},{buttonViewModel:function(N){return _.t(Dr8,{data:N.data,
isDisabled:function(){return C().index===-1},
onClick:function(){_.zj(C().command)}})}})))},"qb");
VSs.idomCompat=!0;var Dr8=_.GM(function(W){var k=_.BH(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.t(_.zn,{data:k,onClick:W.onClick})},"rb");_.Gj(VSs,"yt-nudge-form-view-model",{props:{data:_.Ik}});var J2A=function(){var W=_.R.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.m("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.D(J2A,_.R);_.Y=J2A.prototype;_.Y.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.Y.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.Y.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.Y.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"}}}};
_.Y.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.oq.Object.defineProperties(J2A.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.data)==null?void 0:W.backgroundStyle)!=null?k:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.data)==null?void 0:W.contentsLocation)!=null?k:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
var GY=J2A;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],GY.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],GY.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("isHideEnclosingAction"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GY.prototype,"isHidden",null);_.U([_.Z(),_.O("design:type",Object)],GY.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],GY.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],GY.prototype,"buttonUpdate",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.O("design:type",String)],GY.prototype,"nudgeStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.trimStyle"),_.O("design:type",String),_.O("design:paramtypes",[])],GY.prototype,"trimStyle",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.backgroundStyle"),_.O("design:type",String),_.O("design:paramtypes",[])],GY.prototype,"backgroundStyle",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.contentsLocation"),_.O("design:type",String),_.O("design:paramtypes",[])],GY.prototype,"contentsLocation",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.disableDropShadow"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GY.prototype,"noShadow",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.lightIconImage"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],GY.prototype,"noIcon",null);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.O("design:type",Boolean)],GY.prototype,"isHorizontalButtons",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],GY.prototype,"isDarkMode",void 0);GY=_.U([_.T({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],GY);
_.q(GY,"ytd-feed-nudge-renderer",function(){if(mrY!==void 0)return mrY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return mrY=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var c28;var IP2;var yu=function(){var W=_.R.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.D(yu,_.R);yu.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"}}}};
yu.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
yu.prototype.handleShowSurvey=function(){this.collapsed=!1};
var $t=yu;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],$t.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],$t.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],$t.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$t.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],$t.prototype,"collapsed",void 0);$t=_.U([_.T({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],$t);
_.q($t,"ytd-slimline-survey-renderer",function(){if(IP2!==void 0)return IP2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return IP2=W},{mode:1});var Sws;var MSC=function(){return _.R.apply(this,arguments)||this};
_.D(MSC,_.R);MSC.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
MSC.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.a8(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.a8(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var Zk=MSC;Zk.prototype.colorPaletteChanged=Zk.prototype.colorPaletteChanged;_.U([_.v(_.fk),_.O("design:type",Object)],Zk.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Zk.prototype,"data",void 0);_.U([_.Z({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.O("design:type",Boolean)],Zk.prototype,"isDarkMode",void 0);_.U([_.Z(),_.O("design:type",Object)],Zk.prototype,"lightColorPalette",void 0);_.U([_.Z(),_.O("design:type",Object)],Zk.prototype,"darkColorPalette",void 0);_.U([_.Hl("darkColorPalette","lightColorPalette","data","isDarkMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zk.prototype,"colorPaletteChanged",null);Zk=_.U([_.T({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Zk);
_.q(Zk,"ytd-endorsement-header-renderer",function(){if(Sws!==void 0)return Sws;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Sws=W},{mode:1});_.Gj(_.VO,"yt-decorated-avatar-view-model",{props:{data:_.Ik,className:_.Ik}});var QFA=function(){var W=_.R.apply(this,arguments)||this;W.fullHeight=_.m("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.prepareThumbnailForPageTransition=function(){_.m("web_thumbnail_to_watch_transition")&&(W.thumbnail.style.viewTransitionName="thumbnail-to-watch",W.cleanupThumbnailAfterPageTransition(W.thumbnail))};
return W};
_.D(QFA,_.R);_.Y=QFA.prototype;
_.Y.configureRendererStamper=function(){return{lazyLoadMenu:Cc,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"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.m("kevlar_modern_downloads_page")||!W};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13812_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.JSC$13812_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.Y.getVideoPreviewOpts=function(){var W={},k;if((k=this.data)==null?0:k.multipleInlinePlaybackEndpoint)W=hix;this.isRadio&&(W=KCZ);return _.m("web_thumbnail_to_watch_transition")?Object.assign({},W,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):W};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13812_inlinePreviewHoverListener)==null||PB(W)};
_.Y.getOwner=function(){var W,k,C;return((W=this.data)==null?void 0:(k=W.channelThumbnailSupportedRenderers)==null?void 0:k.channelThumbnailWithLinkRenderer)||_.z((C=this.data)==null?void 0:C.showProviderChannelThumbnail,UeY)};
_.Y.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.Y.getFeedbackEndpoint=function(W){if(_.z(W,_.I5))return W;var k,C;W=(C=(k=_.z(W,_.Nl))==null?void 0:k.commands)!=null?C:[];k=_.b(W);for(C=k.next();!C.done;C=k.next())if(C=this.getFeedbackEndpoint(C.value))return C;return null};
_.Y.computeNavigationEndpoint=function(W){return $n4(W==null?void 0:W.navigationEndpoint)};
_.Y.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.Y.onDataChanged=function(){var W=this,k=this.getOwner();if(k){this.set("data.owner",k);var C,n,N,B,A,w=((C=this.data)==null?void 0:(n=C.shortBylineText)==null?void 0:(N=n.runs)==null?void 0:(B=N[0])==null?void 0:B.text)||((A=k.name)==null?void 0:A.simpleText);this.set("data.owner.title",w)}var x,E,a,X,d,V;k=((x=this.data)==null?void 0:(E=x.thumbnailRenderer)==null?void 0:E.playlistVideoThumbnailRenderer)||((a=this.data)==null?void 0:(X=a.thumbnailRenderer)==null?void 0:X.playlistCustomThumbnailRenderer)||
((d=this.data)==null?void 0:(V=d.thumbnailRenderer)==null?void 0:V.showCustomThumbnailRenderer);var c;((c=this.data)==null?0:c.thumbnail)||!k||this.set("data.thumbnail",k.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var M;if(x=((M=this.data)==null?void 0:M.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(x);var p;((p=this.dismissActionToReplayEntity)==null?0:p.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.Y.onHiddenChanged=function(){this.updateLockupSize()};
_.Y.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.KY(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.Y.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.a8(this.metadataColor);else{var k,C;!this.metadataColor&&((k=this.videoTitle)==null?0:(C=k.style)==null?0:C.color)&&(this.videoTitle.style.color="")}};
_.Y.onDetailsClick=function(W){var k=this.computedNavigationEndpoint;k&&(_.er(_.vl(W),this.hostElement,["A","BUTTON"])||_.Pe(this.hostElement,"yt-navigate",{endpoint:k}))};
_.Y.cleanupThumbnailAfterPageTransition=function(W){_.R8J(document,"yt-page-type-changed",function(){W.style.viewTransitionName=""})};
_.Y.onRendererTap=function(){this.prepareThumbnailForPageTransition();var W,k,C=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((k=this.data)==null?void 0:k.navigationEndpoint);C&&_.z(C,_.I5)&&this.ytComponentBehavior.resolveCommand(C)};
_.Y.onMouseDown=function(W){var k=W.target,C=this.computedNavigationEndpoint,n;W=k.href||((n=_.z(C==null?void 0:C.commandMetadata,_.Ok))==null?void 0:n.url);n=k.data||C;W&&n&&UxP(W,n)};
_.Y.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.Y.computeHasPlaylistThumbnail=function(W){var k,C,n,N,B;if((((k=W.thumbnailRenderer)==null?0:k.playlistVideoThumbnailRenderer)||((C=W.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer)||((n=W.thumbnailRenderer)==null?0:n.showCustomThumbnailRenderer)||((N=W.thumbnailRenderer)==null?0:N.playlistVideoThumbnailRenderer)||((B=W.thumbnailRenderer)==null?0:B.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(k=0;k<W.thumbnailOverlays.length;k++)if(C=void 0,(C=W.thumbnailOverlays[k])==
null?0:C.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.oq.Object.defineProperties(QFA.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.m("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13812_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.mCX(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.videoId)||((k=this.data)==null?void 0:k.playlistId)||""}}});
var R3=QFA;R3.prototype.onMouseDown=R3.prototype.onMouseDown;R3.prototype.metadataColorChanged=R3.prototype.metadataColorChanged;R3.prototype.onIsDismissedChanged=R3.prototype.onIsDismissedChanged;R3.prototype.onHiddenChanged=R3.prototype.onHiddenChanged;R3.prototype.onDataChanged=R3.prototype.onDataChanged;R3.prototype.handleReloadDownloadsInfo=R3.prototype.handleReloadDownloadsInfo;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],R3.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],R3.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],R3.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],R3.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],R3.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],R3.prototype,"entitySelectorType",void 0);_.U([_.Z(),_.O("design:type",Boolean)],R3.prototype,"noEndpoints",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],R3.prototype,"isRadio",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],R3.prototype,"miniMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],R3.prototype,"fullHeight",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],R3.prototype,"showDarkVideoMetadata",void 0);_.U([_.Z(),_.O("design:type",Boolean)],R3.prototype,"showLightVideoMetadata",void 0);_.U([_.Z(),_.O("design:type",Number)],R3.prototype,"metadataColor",void 0);_.U([_.Z(),_.O("design:type",Object)],R3.prototype,"showChannelAvatar",void 0);_.U([_.Z(),_.O("design:type",Boolean)],R3.prototype,"hidden",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],R3.prototype,"showYtInteraction",void 0);
_.U([_.Z(),_.O("design:type",String)],R3.prototype,"dismissedContentId",void 0);_.U([_.Z({selectorArgs:["dismissedContentId"],selector:QfX}),_.O("design:type",Object)],R3.prototype,"dismissActionToReplayEntity",void 0);
_.U([_.Z({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,k,C){if(_.m("kevlar_modern_downloads_page")&&C&&k&&k!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(k){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var n=iEJ(W,C);if(n){k=_.V4(W,C);var N=c3(W,C),B=P82(W,C);W=IY(W,C);var A=MVm(n,k,N,B);N=A.shortViewCountText;var w=A.publishedTimeText;A=A.badges;var x=W>0;B=I1K(n,k,B,W);n=_.FD(k)||k==="TRANSFER_STATE_FAILED"||k==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ae(n.policyEntity)?
void 0:Guw(C,W,n.videoEntity.lengthSeconds);k==="TRANSFER_STATE_PAUSED_BY_USER"&&C&&!_.m("dl_resume_click_killswitch")&&(n={offlineVideoEndpoint:{videoId:C,action:"ACTION_RESUME"}});C={shortViewCountText:N,publishedTimeText:w,badges:A,isWatched:x,navigationEndpoint:n,thumbnailOverlays:B}}else C=void 0;return C;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(k=TF3(W,C))if(n=_.Je(W,C),B=_.qVw(W,C),n!=="TRANSFER_STATE_UNKNOWN"){C=SQc(k,n,B,C,y4z(W));break a}C=void 0}return C;default:_.zJ(new _.AM("Error: entitySelectorType defined but not matched in selector.",
W,k))}}}),
_.O("design:type",Object)],R3.prototype,"entityDrivenState",void 0);_.U([_.Z({computed:"computeVideoTitleText(data)"}),_.O("design:type",Object)],R3.prototype,"videoTitleText",void 0);_.U([_.Z({computed:"computeHasPlaylistThumbnail(data)"}),_.O("design:type",Object)],R3.prototype,"hasPlaylistThumbnail",void 0);_.U([_.Z({computed:"computeNavigationEndpoint(data)"}),_.O("design:type",Object)],R3.prototype,"computedNavigationEndpoint",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],R3.prototype,"typographyBump",void 0);_.U([_.G("typographyBump"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],R3.prototype,"typographyBumpV2",null);_.U([_.gi("#video-title"),_.O("design:type",HTMLElement)],R3.prototype,"videoTitle",void 0);_.U([_.gi("#video-title-link"),_.O("design:type",HTMLElement)],R3.prototype,"videoTitleLink",void 0);
_.U([_.gi("#thumbnail"),_.O("design:type",HTMLElement)],R3.prototype,"thumbnail",void 0);_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],R3.prototype,"JSC$13812_dismissibleMedia",void 0);_.U([_.G("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],R3.prototype,"lazyLoadMenu",null);_.U([_.G("data.menu"),_.O("design:type",Object),_.O("design:paramtypes",[])],R3.prototype,"immediateLoadMenu",null);
_.U([_.Cq("entityDrivenState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R3.prototype,"handleReloadDownloadsInfo",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R3.prototype,"onDataChanged",null);_.U([_.Cq("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R3.prototype,"onHiddenChanged",null);
_.U([_.Hl("isDismissed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R3.prototype,"onIsDismissedChanged",null);_.U([_.Hl("metadataColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],R3.prototype,"metadataColorChanged",null);_.U([_.jI("mousedown"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R3.prototype,"onMouseDown",null);
_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],R3.prototype,"isHovered",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],R3.prototype,"useAvatar",null);_.U([_.G("data","entitySelectorType"),_.O("design:type",String),_.O("design:paramtypes",[])],R3.prototype,"mediaId",null);R3=_.U([_.T({is:"ytd-rich-grid-media",disableElementRegistration:!0})],R3);
var p_x=_.u0()(R3,"ytd-rich-grid-media",function(){if(c28!==void 0)return c28;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return c28=W},{mode:_.UC("kevlar_poly_si_batch_j072")?1:2});var vbS;var ewA=function(){var W=_.R.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.D(ewA,_.R);_.Y=ewA.prototype;_.Y.configureRendererStamper=function(){return{innerMenu:Cc,outerMenu:Object.assign({},Cc,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onDataChanged=function(){var W,k=((W=this.data)==null?void 0:W.trackingParams)||"";k&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(k));var C;((C=this.dismissActionToReplayEntity)==null?0:C.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13818_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.JSC$13818_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CLX})};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13818_inlinePreviewHoverListener)==null||PB(W)};
_.Y.onRendererTap=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.serviceEndpoints)==null?void 0:k[0];_.z(C,_.I5)&&this.componentBehavior.resolveCommand(C)};
_.Y.onDetailsClick=function(W){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint;C&&(_.er(_.vl(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(C))};
_.Y.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.oq.Object.defineProperties(ewA.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.z(W.badge,ok2))){var k,C,n;return[{metadataBadgeRenderer:{label:((k=W.label)==null?void 0:(C=k.runs)==null?void 0:C[0].text)||((n=W.label)==null?void 0:n.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(k=W.accessibility)==null?void 0:(C=k.accessibilityData)==null?void 0:C.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13818_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var o3=ewA;o3.prototype.onDataChanged=o3.prototype.onDataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],o3.prototype,"componentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],o3.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],o3.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],o3.prototype,"thumbnail",void 0);_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],o3.prototype,"JSC$13818_dismissibleMedia",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],o3.prototype,"removeMaxWidth",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],o3.prototype,"insetMetadata",void 0);_.U([_.Z(),_.O("design:type",String)],o3.prototype,"dismissedContentId",void 0);_.U([_.Z({selectorArgs:["dismissedContentId"],selector:QfX}),_.O("design:type",Object)],o3.prototype,"dismissActionToReplayEntity",void 0);_.U([_.G("insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"thumbnailObjectFit",null);
_.U([_.G("data","insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"innerMenu",null);_.U([_.G("data","insetMetadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"outerMenu",null);_.U([_.Z(),_.O("design:type",Object)],o3.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],o3.prototype,"miniMode",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],o3.prototype,"onDataChanged",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"shortsBadges",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],o3.prototype,"isShort",null);
_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],o3.prototype,"isSlimShort",null);_.U([_.G("data","isShort"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"computedTitle",null);_.U([_.G("isSlimShort","computedTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],o3.prototype,"computedAccessibilityLabel",null);
_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],o3.prototype,"isHovered",null);o3=_.U([_.T({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],o3);
_.q(o3,"ytd-rich-grid-slim-media",function(){if(vbS!==void 0)return vbS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vbS=W},{mode:_.UC("kevlar_poly_si_batch_j063")?1:2});var sFC;var Gd8;var iZ=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(iZ,_.R);iZ.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
iZ.prototype.onMouseEnter=function(){this.isHovered=!0};
iZ.prototype.onMouseLeave=function(){this.isHovered=!1};
var TY=iZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],TY.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TY.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],TY.prototype,"isHovered",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],TY.prototype,"darkerDarkTheme",void 0);TY=_.U([_.T({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],TY);
_.q(TY,"ytd-expand-on-hover-card-renderer",function(){if(Gd8!==void 0)return Gd8;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Gd8=W},{mode:1});var y2z,$rC=function(){if(y2z!==void 0)return y2z;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return y2z=W};_.EJ("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var ZzS=function(){var W=_.R.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(ZzS,_.R);_.Y=ZzS.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.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"}}}};
_.Y.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.Y.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.Y.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.a8(W):"transparent"}};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.onTap=function(W){var k,C,n=((k=this.data)==null?void 0:k.navigationEndpoint)||((C=this.data)==null?void 0:C.serviceEndpoint);_.z(n,_.g7)&&(n&&_.f().resolve(_.uI).resolveCommand(n,{form:{element:this.hostElement}}),W.preventDefault())};
_.Y.computeChannelEndpoint=function(W){return _.z(W,_.g7)?null:W};
_.Y.computeHrefEndpoint=function(W){return _.z(W,_.g7)?null:this.componentBehavior.computeHref_(W)};
_.Y.computeChannelRendererStyle=function(W){return W};
_.Y.computeIconSize=function(W){return W?108:136};
_.oq.Object.defineProperties(ZzS,{template:{configurable:!0,enumerable:!0,get:function(){return $rC()}}});
var qo=ZzS;qo.prototype.backgroundColorChanged=qo.prototype.backgroundColorChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],qo.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qo.prototype,"componentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],qo.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],qo.prototype,"isDarkTheme",void 0);_.U([_.Z({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.O("design:type",String)],qo.prototype,"channelRendererStyle",void 0);_.U([_.Z({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],qo.prototype,"dualButtons",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],qo.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],qo.prototype,"biggerThumbStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qo.prototype,"compactStyle",void 0);_.U([_.Hl("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qo.prototype,"backgroundColorChanged",null);qo=_.U([_.T({is:"ytd-channel-renderer",disableElementRegistration:!0})],qo);_.q(qo,"ytd-channel-renderer",function(){return $rC()},{mode:1});var RwS;var obb;_.EJ("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var izs=function(){var W=_.R.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.m("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.D(izs,_.R);_.Y=izs.prototype;_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.computeFirstVideos=function(W,k){return W&&k?W.slice(0,k):[]};
_.Y.computeThumbnailWidth=function(W,k){return W?k==="BIG"?500:k==="MASSIVE"?600:k==="MEDIUM"?450:420:360};
_.Y.computeThumbnailHeight=function(W,k){return W?k==="BIG"?280:k==="MASSIVE"?337:234:202};
_.Y.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13831_inlinePreviewHoverListener)==null||PB(W)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13831_inlinePreviewHoverListener=yg({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:hix,thumbnailElement:this.thumbnail})};
_.Y.computeHasPlaylistThumbnail=function(W){var k,C;if((((k=W.thumbnailRenderer)==null?0:k.playlistVideoThumbnailRenderer)||((C=W.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(k=0;k<W.thumbnailOverlays.length;k++)if(C=void 0,(C=W.thumbnailOverlays[k])==null?0:C.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.oq.Object.defineProperties(izs.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13831_inlinePreviewHoverListener)==null?0:SA(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var uZ=izs;uZ.prototype.dataChanged=uZ.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],uZ.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uZ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],uZ.prototype,"displayItemCount",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],uZ.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],uZ.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],uZ.prototype,"collections",void 0);_.U([_.Z({computed:"computeHasPlaylistThumbnail(data)"}),_.O("design:type",Object)],uZ.prototype,"hasPlaylistThumbnail",void 0);_.U([_.Z(),_.O("design:type",String)],uZ.prototype,"stackThumbnailSize",void 0);_.U([_.gi("ytd-thumbnail"),_.O("design:type",HTMLElement)],uZ.prototype,"thumbnail",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uZ.prototype,"dataChanged",null);_.U([_.G("lockupIsHovered"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uZ.prototype,"isHovered",null);uZ=_.U([_.T({is:"ytd-radio-renderer",disableElementRegistration:!0})],uZ);
_.q(uZ,"ytd-radio-renderer",function(){if(obb!==void 0)return obb;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return obb=W},{mode:_.UC("kevlar_poly_si_batch_j058")?1:2});var TGs;_.EJ("itemSectionRenderer","showRenderer","ytd-show-renderer");var Uc=function(){return _.R.apply(this,arguments)||this};
_.D(Uc,_.R);Uc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Uc.prototype.computeThumbnailWidth=function(W){return W?360:246};
Uc.prototype.computeUseProminentThumbs=function(W){return W};
var Oc=Uc;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Oc.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Oc.prototype,"isSearch",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.O("design:type",Boolean)],Oc.prototype,"useProminentThumbs",void 0);Oc=_.U([_.T({is:"ytd-show-renderer",disableElementRegistration:!0})],Oc);
_.q(Oc,"ytd-show-renderer",function(){if(TGs!==void 0)return TGs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return TGs=W},{mode:1});_.EJ("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var qwA=function(){var W=_.R.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.D(qwA,_.R);qwA.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
var LK=qwA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LK.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],LK.prototype,"isRichGrid",void 0);LK=_.U([_.T({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],LK);
_.q(LK,"ytd-feed-entry-renderer",function(){if(RwS!==void 0)return RwS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return RwS=W},{mode:1});var uAA;var UrA=function(){return _.R.apply(this,arguments)||this};
_.D(UrA,_.R);UrA.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var j$=UrA;_.U([_.v(_.fk),_.O("design:type",Object)],j$.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],j$.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],j$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.m7,value:3}),_.O("design:type",Number)],j$.prototype,"itemsPerRow",void 0);
j$=_.U([_.T({is:"ytd-link-card-renderer",disableElementRegistration:!0})],j$);
_.q(j$,"ytd-link-card-renderer",function(){if(uAA!==void 0)return uAA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return uAA=W},{mode:1});var OzS;var LTz=function(){return _.R.apply(this,arguments)||this};
_.D(LTz,_.R);_.Y=LTz.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":Cc,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var k,C=(k=this.data)==null?void 0:k.navigationEndpoint;C&&!_.er(_.vl(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(C)?_.er(_.vl(W),this.hostElement,["A"])||_.Pe(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C,{}))}};
_.Y.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.Y.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.Y.isNavigationCommand=function(W){return W?_.z(W,_.kZ)||_.z(W,_.RA)||_.z(W,_.pM)?!0:!1:!1};
var Hh=LTz;Hh.prototype.onRendererTap=Hh.prototype.onRendererTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Hh.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Hh.prototype,"data",void 0);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Hh.prototype,"onRendererTap",null);Hh=_.U([_.T({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Hh);
_.q(Hh,"ytd-lumiere-promo-item-image-renderer",function(){if(OzS!==void 0)return OzS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return OzS=W},{mode:1});var jFC;var HzS=function(){return _.R.apply(this,arguments)||this};
_.D(HzS,_.R);HzS.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var r$=HzS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],r$.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],r$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],r$.prototype,"miniMode",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.m7}),_.O("design:type",Number)],r$.prototype,"itemsPerRow",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.O("design:type",Boolean)],r$.prototype,"landscapeThumbnail",void 0);r$=_.U([_.T({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],r$);
_.q(r$,"ytd-lumiere-shelf-details-renderer",function(){if(jFC!==void 0)return jFC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jFC=W},{mode:_.UC("kevlar_poly_si_batch_j076")?1:2});var r2b;var gb8=function(){return _.R.apply(this,arguments)||this};
_.D(gb8,_.R);gb8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var g$=gb8;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],g$.prototype,"data",void 0);g$=_.U([_.T({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],g$);
_.q(g$,"ytd-primetime-promo-details-renderer",function(){if(r2b!==void 0)return r2b;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return r2b=W},{mode:1});var PUS;var KTS=function(){return _.R.apply(this,arguments)||this};
_.D(KTS,_.R);var Ph=KTS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ph.prototype,"data",void 0);Ph=_.U([_.T({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Ph);
_.q(Ph,"ytd-panel-show-style-metadata-renderer",function(){if(PUS!==void 0)return PUS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return PUS=W},{mode:1});var hwA;var W98=function(){return _.R.apply(this,arguments)||this};
_.D(W98,_.R);_.Y=W98.prototype;_.Y.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.Y.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.Y.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.Y.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.Y.isNavigationCommand=function(W){return W?_.z(W,_.kZ)||_.z(W,_.RA)||_.z(W,_.pM)?!0:!1:!1};
_.Y.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
var KK=W98;KK.prototype.onPanelTap=KK.prototype.onPanelTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],KK.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KK.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],KK.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0,value:_.m("web_modern_buttons")}),_.O("design:type",Boolean)],KK.prototype,"modernButtons",void 0);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],KK.prototype,"onPanelTap",null);KK=_.U([_.T({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],KK);
_.q(KK,"ytd-primetime-promo-panel-renderer",function(){if(hwA!==void 0)return hwA;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return hwA=W},{mode:1});_.Gj(_.GM(function(W){W=_.vp(W,{data:{},useFullWidth:!1});var k=W.data,C=W.useFullWidth,n=function(){return k().caption},N=function(){return k().image},B=function(){return _.fi(k().onTap)};
W={};W=_.Li("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return C()},W));
return _.t("teaser-card-view-model",{class:W},_.t(_.NI,{cond:function(){return B()},
then:function(){return _.t(FL8,{className:"ytTeaserCardViewModelLink",command:B,forceNewState:!0,useATagConfig:!0},_.t("div",{class:"ytTeaserCardViewModelImageContainer"},_.t(_.NI,{cond:N,then:function(A){return _.t(_.pi,{data:A,className:"ytTeaserCardViewModelImage",alt:""})}})),_.t("p",{class:"ytTeaserCardViewModelCaption"},n))}}))},"sb"),"teaser-card-view-model",{props:{data:_.Ik,
useFullWidth:_.Ik}});var kGs=new _.Tc("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Gj(_.GM(function(W){var k=W.data;var C=W.showYtInteractionInContent;var n=function(){return!!k().selectableFeedback};
W=_.b(_.kw(!1,void 0,"nblDw"));var N=W.next().value,B=W.next().value;_.Ee(function(){var d=_.z(k().primaryButton,_.Xo);(d==null?0:d.isToggled)&&B(d.isToggled)});
W=_.Pj(function(d){if(!n())return!1;if(N()){var V;var c=(V=k().selectableFeedback)==null?void 0:V.onDeselect}else{var M;c=(M=k().selectableFeedback)==null?void 0:M.onSelect}c&&_.zj(c,{form:{element:d.target}});B(!N());if(d=_.z(k().primaryButton,_.Xo))d.isToggled=N();return!1});
var A=function(){if(!n()){var d,V=(d=k().loggingDirectives)==null?void 0:d.trackingParams;V&&_.Pn(_.f().resolve(_.nR),V)}},w=_.zhK(),x=function(){var d;
return n()?(d=k().selectableFeedback)==null?void 0:d.a11yLabel:void 0},E=function(){return n()?{toggled:N()}:{}},a=_.f().resolve(_.qI(kGs)),X={};
return _.t("yt-feedback-item-renderer",{class:_.Li("ytFeedbackItemRendererHost",(X.ytFeedbackItemRendererSelectableFeedback=n,X)),"on:click":W,"on:keydown":w,title:x,"aria-label":x,"aria-pressed":function(){return n()?N():void 0},
tabindex:function(){return n()?0:void 0},
role:function(){return n()?"button":void 0}},_.t("div",{class:"ytFeedbackItemRendererContentContainer"},_.t(_.Ex,{data:function(){return k().content}},{videoRenderer:function(d){return _.t(a,{data:d.data,
showYtInteraction:C})},
lockupViewModel:function(d){return _.t(Nk,{data:d.data,containerType:2})}})),_.t("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.t(_.Ex,{data:function(){return k().primaryButton}},{toggleButtonViewModel:function(d){return _.t(_.fX,{data:d.data,
buttonShapeOverrides:E,disableExplicitClickLogging:!0,onToggle:A})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.Ik,
showYtInteractionInContent:_.Ik}});var ClZ=function(){var W=_.R.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=_.m("web_no_bottom_margin_for_home_ad_buttons");W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};
W.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$13866_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.D(ClZ,_.R);_.Y=ClZ.prototype;_.Y.computeContainerType=function(){return this.useCompactList?3:2};
_.Y.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.Y.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.Y.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.m("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.Y.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]]"}}}}}};
_.Y.leave=function(W){W=W.relatedTarget;var k=document.querySelector("ytd-video-preview");W&&k&&_.Ty(k).contains(W)||this.removeAndCleanupHighlight()};
_.Y.hover=function(){var W;if(!this.highlighted&&(!_.m("web_enable_rich_item_on_focus_effect")||(W=this.data)!=null&&W.onFocusEffect)){var k,C;((k=this.data)==null?void 0:(C=k.onFocusEffect)==null?void 0:C.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W}));var n,N;((n=this.data)==null?void 0:(N=n.onFocusEffect)==null?void 0:
N.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.Y.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};
_.Y.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13866_unsubscribeFromInlinePreviewIsActive=_.nE(_.ZF(),_.ej2,function(k){W.highlighted&&!k&&W.removeAndCleanupHighlight()})};
_.Y.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13866_unsubscribeFromInlinePreviewIsActive()};
_.Y.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.Y.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.Y.getBackgroundColor=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.onFocusEffect)==null?void 0:k.onFocusColor;if(C){if(document.documentElement.hasAttribute("dark")&&(C==null?0:C.darkTheme))return _.a8(C==null?void 0:C.darkTheme);if(C==null?0:C.lightTheme)return _.a8(C==null?void 0:C.lightTheme)}};
_.Y.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.VM(),k,C,n;W&&((k=this.data)==null?0:k.trackingParams)&&((C=this.data)==null?void 0:C.colIndex)!=null&&((n=this.data)==null?void 0:n.rowIndex)!=null&&_.oz(W,_.Yf(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.Y.isSlimMediaRenderer=function(W){return!!_.z(W==null?void 0:W.content,_.aI8)||!!_.z(W==null?void 0:W.content,Eqs)||!!_.z(W==null?void 0:W.content,_.Dn)||!!_.z(W==null?void 0:W.content,$tC)};
_.Y.isPostRenderer=function(){var W,k;return!!_.z((W=this.data)==null?void 0:W.content,MZZ)||!!_.z((k=this.data)==null?void 0:k.content,Qab)};
_.Y.computeIsGameCardShelf=function(){var W;return!!_.z((W=this.data)==null?void 0:W.content,ckY)};
_.Y.computeIsMiniGameCardShelf=function(){var W,k;return!!_.z((W=this.data)==null?void 0:W.content,i_z)||!!_.z((k=this.data)==null?void 0:k.content,TDZ)};
_.Y.computeIsTeaserCard=function(){var W;return!!_.z((W=this.data)==null?void 0:W.content,TDZ)};
_.Y.computeIsSelectableFeedbackItem=function(){var W,k;return!((k=_.z((W=this.data)==null?void 0:W.content,_.uzb))==null||!k.selectableFeedback)};
_.Y.computeContainsLumierePosters=function(){var W,k;return((k=_.z((W=this.data)==null?void 0:W.content,oTY))==null?void 0:k.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.z((W=this.data)==null?void 0:W.content,ROZ)};
_.Y.computeIsLinkCardShelf=function(){var W;return!!_.z((W=this.data)==null?void 0:W.content,MVs)};
_.Y.computeIsReelItemStyleAvatarCircle=function(W){var k;return((k=_.z(W==null?void 0:W.content,_.Dn))==null?void 0:k.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.Y.computeIsLinkCardFullWidth=function(W,k){var C;return((C=_.z(W==null?void 0:W.content,MVs))==null?void 0:C.useFullWidth)||k<=2};
_.oq.Object.defineProperties(ClZ.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&&_.m("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.m("web_enable_rich_item_on_focus_effect")||_.m("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.m("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.m("web_shorts_2_by_3_lockups_study")||_.m("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var h6=ClZ;h6.prototype.richGridHoverHighlightChanged=h6.prototype.richGridHoverHighlightChanged;h6.prototype.observerContainerType=h6.prototype.observerContainerType;h6.prototype.updateIsInFirstColumn=h6.prototype.updateIsInFirstColumn;_.U([_.v(_.fk),_.O("design:type",Object)],h6.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],h6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],h6.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],h6.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.O("design:type",Boolean)],h6.prototype,"isPost",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.O("design:type",Boolean)],h6.prototype,"containsLumierePosters",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.O("design:type",Boolean)],h6.prototype,"isSlimMedia",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.O("design:type",Boolean)],h6.prototype,"isGameCardShelf",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.O("design:type",Boolean)],h6.prototype,"isMiniGameCardShelf",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.O("design:type",Boolean)],h6.prototype,"isTeaserCard",void 0);_.U([_.Z({computed:"computeIsSelectableFeedbackItem(data)"}),_.O("design:type",Boolean)],h6.prototype,"isSelectableFeedbackItem",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isShortsGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],h6.prototype,"isSlimGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isCompactGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isShortsPanelGrid",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.O("design:type",Boolean)],h6.prototype,"isExpandOnHoverCardShelf",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.O("design:type",Boolean)],h6.prototype,"isLinkCardShelf",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.m7,value:3}),_.O("design:type",Number)],h6.prototype,"itemsPerRow",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"renderedFromRichGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isInFirstColumn",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"noGutterMargins",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isInlineGroupItem",void 0);_.U([_.Z(),_.O("design:type",Object)],h6.prototype,"insetMetadata",void 0);
_.U([_.Z(),_.O("design:type",Object)],h6.prototype,"noBottomMarginInAds",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],h6.prototype,"isShelfItem",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.O("design:type",Boolean)],h6.prototype,"isReelItemStyleAvatarCircle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.O("design:type",Boolean)],h6.prototype,"isLinkCardFullWidth",void 0);
_.U([_.Z(),_.O("design:type",Object)],h6.prototype,"force16By9ThumbnailAspectRatio",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"useCompactList",void 0);_.U([_.Z(),_.O("design:type",String)],h6.prototype,"sizing",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],h6.prototype,"typographyBump",void 0);_.U([_.Z(),_.O("design:type",Number)],h6.prototype,"itemWidth",void 0);_.U([_.Z(),_.O("design:type",Boolean)],h6.prototype,"isHomeShelf",void 0);
_.U([_.gi("yt-lockup-view-model"),_.O("design:type",HTMLElement)],h6.prototype,"lockup",void 0);_.U([_.gi("ytd-rich-grid-media"),_.O("design:type",HTMLElement)],h6.prototype,"richGridMedia",void 0);_.U([_.Z({computed:"computeContainerType(useCompactList)"}),_.O("design:type",Object)],h6.prototype,"containerType",void 0);_.U([_.Z({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.O("design:type",Object)],h6.prototype,"thumbnailTargetWidth",void 0);
_.U([_.G("showYtInteractionOnRichItem"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"showYtInteractionOnRichGridMedia",null);_.U([_.G("isSelectableFeedbackItem","richGridHoverHighlight"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"showYtInteractionOnRichItem",null);_.U([_.G("typographyBump"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"richTypographyBump",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("isShortsGrid","isCompactGrid"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],h6.prototype,"richGridHoverHighlight",null);_.U([_.G("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.O("design:type",Number),_.O("design:paramtypes",[])],h6.prototype,"shortsLockupViewModelAspectRatio",null);_.U([_.G("isInlineGroupItem"),_.O("design:type",Number),_.O("design:paramtypes",[])],h6.prototype,"shortsLockupViewModelScrimStyle",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h6.prototype,"updateIsInFirstColumn",null);_.U([_.Hl("containerType","sizing","typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h6.prototype,"observerContainerType",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],h6.prototype,"isResponsiveGrid",void 0);_.U([_.Z(),_.O("design:type",Object)],h6.prototype,"lockupExperiments",void 0);
_.U([_.Hl("richGridHoverHighlight"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h6.prototype,"richGridHoverHighlightChanged",null);h6=_.U([_.T({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],h6);
_.nsz=_.u0()(h6,"ytd-rich-item-renderer",function(){if(sFC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);sFC=W}W=sFC;return W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var e1J={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var iZw=_.Go(_.w8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var NJS;var YN8=function(){var W=_.R.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.standardShelfMargins=_.m("web_rich_grid_standard_shelf_margins");W.isShowMoreHidden=!1;W.isExpanded=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.isShowLessHidden=!0;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};W.nextClick=function(){var k;(k=W.data)!=null&&k.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var k;(k=W.data)!=null&&k.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.D(YN8,_.R);_.Y=YN8.prototype;
_.Y.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:_.DE("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var k;((k=this.data.responsiveContainerConfiguration)==null?0:k.responsiveSize)?(W=_.uQm(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.Tn(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.Tn({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.Y.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.m("web_use_layout_library_for_rich_grid_disable_shorts"))){var W=_.rHK(this.data);if(W)return W;if(_.m("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.Y.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.m("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.Y.computeButton=function(W){var k=_.z(W,_.Vq);W=Object.assign({},_.z(W,_.Vq));return k?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):k};
_.Y.onRowIndexChange=function(){var W=_.VM(),k,C;((k=this.data)==null?0:k.trackingParams)&&((C=this.data)==null?void 0:C.rowIndex)!=null&&W&&_.oz(W,_.Yf(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.Y.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,k=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*k;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
_.Y.onUpdateElementsPerRowAction=function(W,k,C,n,N,B){if(this.containerWidth!==B&&(this.containerWidth=B,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&k&&C&&n&&N&&(this.elementsPerRow!==W||this.postsPerRow!==k||this.slimItemsPerRow!==C||this.gameCardsPerRow!==n||this.miniGameCardsPerRow!==N)&&(this.elementsPerRow=W,this.postsPerRow=k,this.slimItemsPerRow=C,this.gameCardsPerRow=n,this.miniGameCardsPerRow=N,this.updateItemVisibility())};
_.Y.getRichItemRenderers=function(){return _.S(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.Y.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var k=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(n,N){var B;((B=W.data)==null?0:B.isExpanded)?(n.hidden=N>k-1,n.ytRendererBehavior.markDirty()):n.hidden=N>W.currentElementsPerRow-1||N>k-1});
var C=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||C||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||C||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.Y.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),k=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(C,n){return Math.max(C,n.getBoundingClientRect().height+k)},0);
this.contents.style.height=W+"px"};
_.Y.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.Y.focusItem=function(W,k){var C=this.getRichItemRenderers();if(C[W]&&(W=C[W].querySelector(".focus-on-expand"))){if(k){var n;(n=C[this.currentElementsPerRow])==null||n.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.Y.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.ZR(this,function(){W.updateItemVisibility()});
var k;if((k=this.data)==null?0:k.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Op(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),k=0;k<this.data.contents.length;k++){var C=_.z(this.data.contents[k],_.X5)||{};C.colIndex=k;C.rowIndex=this.data.rowIndex}};
_.Y.handleRerenderDownloadsData=function(){_.m("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())};
_.Y.blockInlinePreview=function(W){var k=this,C;return _.F(function(n){(C=k.inlinePreviewIsEnabled)&&k.ytdReduxBehavior.dispatch(_.wZI(!1));return n.return(new Promise(function(N){W(function(){C&&k.ytdReduxBehavior.dispatch(_.wZI(!0));N()})}))})};
_.Y.expandShelf=function(){var W=this;if(this.data){var k,C=(k=_.z(this.data.showMoreButton,_.Vq))==null?void 0:k.trackingParams;C&&_.Pn(_.kf(),C);this.data.isExpanded=!0;this.blockInlinePreview(function(n){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.aM.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();n()},2,200)})}};
_.Y.collapseShelf=function(){var W=this;return _.F(function(k){if(k.nextAddress==1){if(!W.data)return k.return();W.data.isExpanded=!1;return _.l(k,W.blockInlinePreview(function(C){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.aM.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";C()},2,200)}),2)}_.Pe(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.ab(k)})};
_.Y.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.m("web_rich_shelf_renderer_use_data_contents_killswitch")){var k,C;W=((k=this.data)==null?void 0:(C=k.contents)==null?void 0:C.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.Y.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.Y.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.DE("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.Y.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),k=W.length;if(!_.m("web_rich_shelf_renderer_use_data_contents_killswitch")){var C,n;k=((C=this.data)==null?void 0:(n=C.contents)==null?void 0:n.length)||0}var N;W=((N=W[0])==null?void 0:N.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>k?this.firstShownIndex=k-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.Y.isSlimMediaShelfRenderer=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!(_.z(n,_.aI8)||_.z(n,Eqs)||_.z(n,_.Dn)||_.z(n,$tC))};
_.Y.isGameCardShelf=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!_.z(n,ckY)};
_.Y.isGnomeShelf=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!_.z(n,_.uzb)};
_.Y.isMiniGameCardShelf=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!_.z(n,i_z)||!!_.z(n,TDZ)};
_.Y.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.Y.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.Y.isShortsShelf=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!_.z(n,_.Dn)||!!_.z(n,$tC)};
_.Y.isPostShelfRenderer=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!(!_.z(n,MZZ)&&!_.z(n,Qab))};
_.Y.isLumiereShelf=function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5);return!!_.z(C==null?void 0:C.content,oTY)};
_.Y.isLumiereShelfWithPosters=function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5),n;return((n=_.z(C==null?void 0:C.content,oTY))==null?void 0:n.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.isExpandOnHoverCardShelf=function(){var W,k,C,n=(C=_.z((W=this.data)==null?void 0:(k=W.contents)==null?void 0:k[0],_.X5))==null?void 0:C.content;return!!_.z(n,ROZ)};
_.Y.computeHasFeaturedBadge=function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.badges)==null?void 0:k[0],_.u$x);return C?C.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHasPaygatedFeaturedBadge=function(){var W,k,C=_.z((W=this.data)==null?void 0:(k=W.badges)==null?void 0:k[0],_.u$x);return C?(C==null?void 0:C.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHeaderHidden=function(){var W,k,C,n,N,B;return!((W=this.data)==null?0:W.icon)&&!((k=this.data)==null?0:k.title)&&!((C=this.data)==null?0:C.subtitle)&&!((n=this.data)==null?0:n.thumbnail)&&!((N=this.data)==null?0:N.badges)&&!((B=this.data)==null?0:B.menu)};
_.Y.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.Y.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.Y.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.Y.computeForce16By9ThumbnailAspectRatio=function(){var W,k;return((W=this.data)==null?void 0:(k=W.responsiveContainerConfiguration)==null?void 0:k.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.Y.onSectionReactiveDismissal=function(W,k,C){var n,N;var B=(n=this.data)==null?void 0:(N=n.targetingContext)==null?void 0:N.targetGroupId;this&&B&&k.targetGroupId&&B.includes(k.targetGroupId)?(n=this.rowIndex,W=n===void 0?!1:!(k.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&n<=W)):W=!1;W&&(this.hidden=C)};
_.oq.Object.defineProperties(YN8.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.m("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.previousButton)&&!((k=this.data)==null||!k.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 W;return((W=_.f().resolve(_.yF).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return!((W=this.data)==null?0:(k=W.thumbnail)==null?0:(C=k.accessibility)==null?0:(n=C.accessibilityData)==null?0:n.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var WM=YN8;WM.prototype.onChildElementFocus=WM.prototype.onChildElementFocus;WM.prototype.handleRerenderDownloadsData=WM.prototype.handleRerenderDownloadsData;WM.prototype.onDataChange=WM.prototype.onDataChange;WM.prototype.onRowIndexChange=WM.prototype.onRowIndexChange;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],WM.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],WM.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],WM.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.O("design:type",Object)],WM.prototype,"useResponsiveGrid",void 0);_.U([_.Z(),_.O("design:type",Object)],WM.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Number)],WM.prototype,"standardUnitMinWidth",void 0);_.U([_.Z({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],WM.prototype,"elementsPerRow",void 0);_.U([_.Z({value:3}),_.O("design:type",Number)],WM.prototype,"postsPerRow",void 0);_.U([_.Z({value:6}),_.O("design:type",Number)],WM.prototype,"slimItemsPerRow",void 0);_.U([_.Z({value:6}),_.O("design:type",Number)],WM.prototype,"gameCardsPerRow",void 0);
_.U([_.Z({value:6}),_.O("design:type",Number)],WM.prototype,"miniGameCardsPerRow",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"standardShelfMargins",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"isShowMoreHidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"isExpanded",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"isInnerShelf",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.O("design:type",Boolean)],WM.prototype,"isShorts",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.O("design:type",Boolean)],WM.prototype,"isLumiere",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.O("design:type",Boolean)],WM.prototype,"hasBoxArtThumbnailStyle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.O("design:type",Boolean)],WM.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.O("design:type",Boolean)],WM.prototype,"hasFeaturedBadge",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.O("design:type",Boolean)],WM.prototype,"hasPaygatedFeaturedBadge",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.O("design:type",Boolean)],WM.prototype,"isHeaderHidden",void 0);_.U([_.Z({selector:_.o7m}),_.O("design:type",Object)],WM.prototype,"allVideosCount",void 0);_.U([_.Z({selector:qEw}),_.O("design:type",Object)],WM.prototype,"allPlaylistCount",void 0);_.U([_.Z({selector:r4z}),_.O("design:type",Object)],WM.prototype,"haveSmartDownloadsCompleted",void 0);
_.U([_.Z({selectorArgs:["entitySelectorType"],selector:function(W,k){if(_.m("kevlar_modern_downloads_page")&&k&&k!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var C=W.entities;switch(k){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":k=_.aY(C);W=dq(k);var n=_.wn(k);C=_.f5(C);C=_.Ur(Gap(n,C,k.length));return{contents:W,subtitle:C};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return C=_.aY(C),{contents:dq(C)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return C=
_.XD(C),{contents:dq(C)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return C=_.XKz(C),{contents:dq(C)};default:_.zJ(new _.AM("Error: entitySelectorType defined but not matched in selector.",W,k))}}}}),
_.O("design:type",Object)],WM.prototype,"entityDrivenRichShelfData",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.O("design:type",Boolean)],WM.prototype,"hasTopCtaButton",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.O("design:type",Boolean)],WM.prototype,"hasBottomCtaButton",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.O("design:type",Boolean)],WM.prototype,"force16By9ThumbnailAspectRatio",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"isShowLessHidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WM.prototype,"restrictContentsOverflow",void 0);_.U([_.Z({selector:_.srz}),_.O("design:type",Boolean)],WM.prototype,"inlinePreviewIsEnabled",void 0);
_.U([_.Z({computed:"computeSizing(data)"}),_.O("design:type",String)],WM.prototype,"sizing",void 0);_.U([_.Z(),_.O("design:type",Boolean)],WM.prototype,"typographyBump",void 0);_.U([_.Z(),_.O("design:type",Number)],WM.prototype,"itemWidth",void 0);_.U([_.Z(),_.O("design:type",Object)],WM.prototype,"firstShownIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],WM.prototype,"horizontalOffset",void 0);_.U([_.Z(),_.O("design:type",Object)],WM.prototype,"atEnd",void 0);
_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],WM.prototype,"contents",void 0);_.U([_.Hl("data.rowIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WM.prototype,"onRowIndexChange",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WM.prototype,"onDataChange",null);
_.U([_.Hl("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WM.prototype,"handleRerenderDownloadsData",null);_.U([_.jI("focusin"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],WM.prototype,"onChildElementFocus",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","isHomePage"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],WM.prototype,"isTruncated",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],WM.prototype,"hideBottomDivider",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],WM.prototype,"hasChevronButtons",null);_.U([_.G("firstShownIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],WM.prototype,"previousButtonOverride",null);
_.U([_.G("atEnd"),_.O("design:type",Object),_.O("design:paramtypes",[])],WM.prototype,"nextButtonOverride",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],WM.prototype,"isHomePage",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],WM.prototype,"thumbnailAriaHidden",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],WM.prototype,"initiallyIsExpanded",null);
_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],WM.prototype,"entitySelectorType",null);WM=_.U([_.T({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],WM);
_.BJA=_.u0()(WM,"ytd-rich-shelf-renderer",function(){if(NJS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);NJS=W}W=NJS;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var bas;var Ax8=function(){var W=_.R.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.m("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.D(Ax8,_.R);_.Y=Ax8.prototype;_.Y.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.Y.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"}}}};
_.Y.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.Y.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.Y.currentColorChanged=function(){this.updateButtonPalette()};
_.Y.computeBackgroundStyle=function(W){if(W&&this.data){var k=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var C=_.$f((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);C&&k.push('background-image: url("'+C+'");')}var n;((n=W.basicColorData)==null?void 0:n.backgroundColor)!==void 0&&k.push("background-color: "+_.Xi(W.basicColorData.backgroundColor)+";");return k.join("")}};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.Y.getCurrentLogo=function(W,k){if(W)return k?W.darkLogoImage:W.lightLogoImage};
_.Y.getCurrentStaticTileImage=function(W,k){if(this.hasStaticTile(W))return W.darkTileImage?k?W.darkTileImage:W.tileImage:W.tileImage};
_.Y.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.a8(W.basicColorData.foregroundTitleColor)+";"};
_.Y.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.a8(W.basicColorData.foregroundBodyColor)+";"};
_.Y.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.a8(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.Y.computeBadgeStyle=function(W){if(this.data&&this.data.badgeText&&W&&W.basicColorData&&W.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.a8(W.basicColorData.foregroundActivatedColor)+";"};
_.Y.computeDismissIconStyle=function(W){var k,C;if((W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor)&&(W==null?0:(C=W.dismissButtonColorData)==null?0:C.backgroundColor))return"--yt-button-color:"+_.Xi(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Xi(W.dismissButtonColorData.backgroundColor)+";"};
_.Y.computeOverflowIconStyle=function(W){var k,C;if((W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor)&&(W==null?0:(C=W.dismissButtonColorData)==null?0:C.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Xi(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Xi(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Xi(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.Y.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.Y.shouldShowTileSection=function(W,k,C){return!this.shouldExpandLogo(W,k,C)&&k};
_.Y.shouldShowExpandedLogoSection=function(W,k,C){return this.shouldExpandLogo(W,k,C)&&W!==void 0&&this.hasLogo(W)};
_.Y.shouldExpandLogo=function(W,k,C){return W&&k?!1:C>=2};
_.Y.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.Y.hasTileLottie=function(W){var k;return!!(W==null?0:(k=W.tileLottie)==null?0:k.url)};
_.Y.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.Y.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.Y.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.Y.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.Y.hasBackgroundLottie=function(W){var k;return!!(W==null?0:(k=W.backgroundLottie)==null?0:k.url)};
_.Y.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,k;(W=this.tileLottieAnimationRef)==null||(k=W.lottieEl)==null||k.play();var C,n;(C=this.backgroundLottieAnimationRef)==null||(n=C.lottieEl)==null||n.play()}};
_.Y.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,k;(W=this.tileLottieAnimationRef)==null||(k=W.lottieEl)==null||k.pause();var C,n;(C=this.backgroundLottieAnimationRef)==null||(n=C.lottieEl)==null||n.pause()}};
_.Y.pauseLottie=function(){var W,k;(W=this.tileLottieAnimationRef)==null||(k=W.lottieEl)==null||k.pause();var C,n;(C=this.backgroundLottieAnimationRef)==null||(n=C.lottieEl)==null||n.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.Y.performPrimaryButtonAction=function(){var W,k,C;((W=this.data)==null?0:(k=W.primaryButton)==null?0:(C=k.buttonRenderer)==null?0:C.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.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 k;if((k=this.data.primaryButton)==null?0:k.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var C;if((C=this.data.secondaryButton)==
null?0:C.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var n;((n=this.data.primaryButton)==null?0:n.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var N;((N=this.data.secondaryButton)==null?0:N.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.Y.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),k,C;if(W.url!==((k=this.tileLottiePlayerProps)==null?void 0:(C=k.animationConfig)==null?void 0:C.path)){var n,N;(n=this.tileLottieAnimationRef)==null||(N=n.lottieEl)==null||N.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=W.settings)==null?0:B.autoplay);var A,w;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(w=(A=W.settings)==null?void 0:A.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.Y.getOverflowButton=function(W){return _.z(W.overflowButton,TcS)};
_.Y.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),k,C;if(W.url!==((k=this.backgroundLottiePlayerProps)==null?void 0:(C=k.animationConfig)==null?void 0:C.path)){var n,N;(n=this.backgroundLottieAnimationRef)==null||(N=n.lottieEl)==null||N.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=W.settings)==null?0:B.autoplay);var A,w;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(w=(A=W.settings)==null?void 0:A.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.Y.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var k;((k=this.backgroundLottieAnimationRef)==null?void 0:k.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.Y.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var k;return((k=this.data)==null?0:k.tileLottie)?this.data.tileLottie:{}};
_.Y.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var k;return((k=this.data)==null?0:k.backgroundLottie)?this.data.backgroundLottie:{}};
_.Y.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.Y.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.Y.logoWithPadding=function(W){var k,C,n;return(W=(k=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?!0:!1};
var kV=Ax8;kV.prototype.currentColorChanged=kV.prototype.currentColorChanged;kV.prototype.themeChanged=kV.prototype.themeChanged;kV.prototype.dataChanged=kV.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],kV.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],kV.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],kV.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"primaryButton",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"secondaryButton",void 0);
_.U([_.Z({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],kV.prototype,"elementsPerRow",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kV.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kV.prototype,"hasTile",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kV.prototype,"hasMetadata",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],kV.prototype,"showLogoImage",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"currentColorData",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.O("design:type",String)],kV.prototype,"bannerStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.O("design:type",String)],kV.prototype,"location",void 0);
_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"tileLottiePlayerProps",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"tileLottieAnimationRef",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"backgroundLottiePlayerProps",void 0);_.U([_.Z(),_.O("design:type",Object)],kV.prototype,"backgroundLottieAnimationRef",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kV.prototype,"useBiggerShowcaseImage",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],kV.prototype,"isHideEnclosingAction",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kV.prototype,"dataChanged",null);_.U([_.Cq("isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kV.prototype,"themeChanged",null);
_.U([_.Cq("currentColorData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kV.prototype,"currentColorChanged",null);kV=_.U([_.T({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],kV);
_.q(kV,"ytd-statement-banner-renderer",function(){if(bas!==void 0)return bas;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bas=W},{mode:1});var F98;var wi2=function(){var W=_.R.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.m("web_modern_typography");return W};
_.D(wi2,_.R);wi2.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.w8("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.w8("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
wi2.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var Ch=wi2;Ch.prototype.onDataChanged=Ch.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ch.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ch.prototype,"hideShelfHeader",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ch.prototype,"engagementPanel",void 0);_.U([_.Z(),_.O("design:type",Object)],Ch.prototype,"disableMouseScroll",void 0);_.U([_.Z(),_.O("design:type",Object)],Ch.prototype,"useFloorScrolling",void 0);_.U([_.Z(),_.O("design:type",Object)],Ch.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ch.prototype,"modernTypography",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ch.prototype,"onDataChanged",null);Ch=_.U([_.T({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Ch);
_.q(Ch,"ytd-reel-shelf-renderer",function(){if(F98!==void 0)return F98;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return F98=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var x_I;var lw8=_.GM(function(W){var k=W.data;W=W.useSmallFont;var C={},n={};return _.t("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.t(_.NI,{cond:function(){return k().favicon},
then:function(N){return _.t(_.pi,{data:N,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.t("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.t(_.Ya,{text:function(){return k().title},
className:_.Li("yt-channel-external-link-view-model-wiz__title",(C["yt-channel-external-link-view-model-wiz__title--title-small-font"]=W,C)),ellipsisTruncate:!0,userInput:!0}),_.t(_.Ya,{text:function(){return k().link},
className:_.Li("yt-channel-external-link-view-model-wiz__link",(n["yt-channel-external-link-view-model-wiz__link--link-small-font"]=W,n)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
lw8.idomCompat=!0;_.Gj(lw8,"yt-channel-external-link-view-model",{props:{data:_.Ik,useSmallFont:_.Ik}});_.EJ("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var t18=function(){var W=_.R.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.D(t18,_.R);_.Y=t18.prototype;_.Y.refit=function(){var W=this;_.zM(function(){_.hA(W.hostElement,"yt-refit-popups-action")});
_.ZR(this,function(){_.hA(W.hostElement,"yt-refit-popups-action")})};
_.Y.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ML("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.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"}}}};
_.Y.computeEmailHref=function(W){return"mailto:"+W};
_.Y.computeSafeUrl=function(W){if(W)return _.QG(W)};
_.Y.linkEndpoint=function(W){return _.z(W.onTap,_.XZ)};
_.Y.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.Y.onYtServiceRequestCompleted=function(W){var k;if((k=W.detail.data)==null?0:k.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var C;if((C=W.detail.data)==null?0:C.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$13969_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var k=_.z(this.metadata.onBusinessEmailRevealClickCommand,_.XZ);k&&this.ytComponentBehavior.resolveCommand(k,{form:W})}}};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.oq.Object.defineProperties(t18.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.z((W=this.data)==null?void 0:W.metadata,ubS)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.z(this.metadata.businessEmailRevealButton,_.aS)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.z(this.metadata.learnMoreOnTap,_.XZ)}}});
var nh=t18;nh.prototype.onYtServiceRequestCompleted=nh.prototype.onYtServiceRequestCompleted;nh.prototype.businessEmailMetadataChanged=nh.prototype.businessEmailMetadataChanged;nh.prototype.refit=nh.prototype.refit;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],nh.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#g-recaptcha-response"),_.O("design:type",HTMLTextAreaElement)],nh.prototype,"JSC$13969_captchaTextarea",void 0);_.U([_.Z(),_.O("design:type",Object)],nh.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],nh.prototype,"revealButtonClass",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nh.prototype,"metadata",null);
_.U([_.G("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],nh.prototype,"revealButton",null);_.U([_.G("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],nh.prototype,"channelDisplayUrl",null);_.U([_.Cq("metadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nh.prototype,"refit",null);_.U([_.G("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],nh.prototype,"formattedDescription",null);
_.U([_.G("metadata","learnMoreCommand"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],nh.prototype,"shouldRendereVerifiedPhoneStatus",null);_.U([_.G("metadata"),_.O("design:type",Object),_.O("design:paramtypes",[])],nh.prototype,"learnMoreCommand",null);_.U([_.Z(),_.O("design:type",String)],nh.prototype,"businessEmailDisplayState",void 0);_.U([_.Z(),_.O("design:type",String)],nh.prototype,"businessEmail",void 0);
_.U([_.Z(),_.O("design:type",String)],nh.prototype,"businessEmailErrorMessage",void 0);_.U([_.Cq("metadata"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nh.prototype,"businessEmailMetadataChanged",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nh.prototype,"onYtServiceRequestCompleted",null);
nh=_.U([_.T({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],nh);
_.q(nh,"ytd-about-channel-renderer",function(){if(x_I!==void 0)return x_I;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return x_I=W},{mode:1});var Es8;var aws=function(){return _.R.apply(this,arguments)||this};
_.D(aws,_.R);var NH=aws;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],NH.prototype,"data",void 0);NH=_.U([_.T({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],NH);
_.q(NH,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Es8!==void 0)return Es8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Es8=W},{mode:1});var XiS;var fwY=function(){return _.R.apply(this,arguments)||this};
_.D(fwY,_.R);fwY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var YV=fwY;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YV.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],YV.prototype,"aligment",void 0);YV=_.U([_.T({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],YV);
_.q(YV,"ytd-channel-list-sub-menu-renderer",function(){if(XiS!==void 0)return XiS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return XiS=
W},{mode:1});var d_C;var m_S=function(){return _.R.apply(this,arguments)||this};
_.D(m_S,_.R);m_S.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
var BM=m_S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],BM.prototype,"data",void 0);BM=_.U([_.T({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],BM);
_.q(BM,"ytd-channel-sub-menu-renderer",function(){if(d_C!==void 0)return d_C;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return d_C=W},{mode:1});var z78;var D_A;var V18=function(){var W=_.R.apply(this,arguments)||this;W.isCompact=!1;return W};
_.D(V18,_.R);_.oq.Object.defineProperties(V18.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,k;return((k=_.z((W=this.data)==null?void 0:W.endpoint,_.pM))==null?void 0:k.target)==="TARGET_NEW_WINDOW"}}});
var bY=V18;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bY.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bY.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],bY.prototype,"isCompact",void 0);_.U([_.G("isCompact"),_.O("design:type",Number),_.O("design:paramtypes",[])],bY.prototype,"thumbnailWidth",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bY.prototype,"openNewWindow",null);bY=_.U([_.T({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],bY);
_.q(bY,"ytd-media-lockup-renderer",function(){if(D_A!==void 0)return D_A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return D_A=W},{mode:1});var Jxz;var cxC=function(){return _.R.apply(this,arguments)||this};
_.D(cxC,_.R);var AP=cxC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],AP.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],AP.prototype,"data",void 0);AP=_.U([_.T({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],AP);
_.q(AP,"ytd-structured-description-channel-lockup-renderer",function(){if(Jxz!==void 0)return Jxz;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Jxz=W},{mode:1});var Iwb;var SNb=function(){var W=_.R.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.m("web_modern_collections_v2");W.collectionsStackColor=_.m("modernize_structured_description_playlist_lockups_v2");return W};
_.D(SNb,_.R);SNb.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:_.m("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.oq.Object.defineProperties(SNb.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(k=W.thumbnail)==null?void 0:k.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(C=this.data)==null?void 0:(n=C.thumbnail)==null?void 0:n.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(N=this.data)==null?void 0:(B=N.thumbnail)==
null?void 0:B.vibrantColorPalette:void 0}}}});
var Ff=SNb;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ff.prototype,"componentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ff.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ff.prototype,"showSidePanelThumbnailOverlay",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ff.prototype,"isCompact",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ff.prototype,"collections",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ff.prototype,"collectionsStackColor",void 0);
_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ff.prototype,"twoLineTitle",null);_.U([_.G("data","collections","collectionsStackColor"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ff.prototype,"collectionStack",null);Ff=_.U([_.T({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ff);
_.q(Ff,"ytd-structured-description-playlist-lockup-renderer",function(){if(Iwb!==void 0)return Iwb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Iwb=W},{mode:1});var M1z;var QDs=function(){return _.R.apply(this,arguments)||this};
_.D(QDs,_.R);var wt=QDs;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],wt.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wt.prototype,"data",void 0);wt=_.U([_.T({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],wt);
_.q(wt,"ytd-structured-description-video-lockup-renderer",function(){if(M1z!==void 0)return M1z;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return M1z=W},{mode:2});var pi8=function(){return _.R.apply(this,arguments)||this};
_.D(pi8,_.R);
pi8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
var xV=pi8;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xV.prototype,"data",void 0);xV=_.U([_.T({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],xV);
_.q(xV,"ytd-compact-infocard-renderer",function(){if(z78!==void 0)return z78;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return z78=W},{mode:1});var vsY;var e7z=function(){var W=_.R.apply(this,arguments)||this;W.useModernCollectionsV2=_.m("web_modern_collections_v2");return W};
_.D(e7z,_.R);e7z.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.oq.Object.defineProperties(e7z.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var lY=e7z;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],lY.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],lY.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],lY.prototype,"isGridViewEnabled",void 0);
_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lY.prototype,"watchFeedBigThumbs",null);_.U([_.G("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0,value:"168"}),_.O("design:type",String),_.O("design:paramtypes",[])],lY.prototype,"thumbnailWidth",null);_.U([_.G("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0,value:"94"}),_.O("design:type",String),_.O("design:paramtypes",[])],lY.prototype,"customThumbnailSize",null);
_.U([_.Z(),_.O("design:type",Object)],lY.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lY.prototype,"useModernCollectionsV2",void 0);lY=_.U([_.T({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],lY);
_.q(lY,"ytd-compact-playlist-renderer",function(){if(vsY!==void 0)return vsY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vsY=W},{mode:1});var sDS;var GGb=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.D(GGb,_.R);_.Y=GGb.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.Y.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.Y.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
var tP=GGb;tP.prototype.dataChanged=tP.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],tP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],tP.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],tP.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],tP.prototype,"hideThumbnail",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.O("design:type",String)],tP.prototype,"viewStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tP.prototype,"darkerDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tP.prototype,"roundedContainer",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tP.prototype,"dataChanged",null);tP=_.U([_.T({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],tP);
_.q(tP,"ytd-compact-promoted-item-renderer",function(){if(sDS!==void 0)return sDS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sDS=W},{mode:1});var yxs;var EU=function(){var W=_.R.apply(this,arguments)||this;W.collections=_.m("web_modern_collections_v2");return W};
_.D(EU,_.R);EU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
EU.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
EU.prototype.onYtNavigate=function(W,k){var C=this;if(k.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",k)){var n=this.get("watchEndpoint.videoId",k.endpoint),N=_.hA(this.hostElement,"yt-get-current-video-id-action")[0];_.m("kevlar_mix_handle_first_endpoint_different")&&n&&N&&n!==N||(W.stopPropagation(),_.Rh().getPlayerPromise().then(function(B){if(B.getPlayerState()===0&&C.data.secondaryNavigationEndpoint)var A=C.data.secondaryNavigationEndpoint;else{A=
Object.assign({},k.endpoint);var w=_.z(A.commandMetadata,_.Ok);w&&(B=Math.floor(B.getCurrentTime()),w.url=_.$n(w.url,{t:B}),!_.m("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(w=_.z(A,_.RA)))&&(w.startTimeSeconds=B)}_.Pe(C.hostElement,"yt-navigate",{endpoint:A})}))}};
_.oq.Object.defineProperties(EU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(k=W.thumbnail)==null?void 0:k.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(n=C.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
var ad=EU;ad.prototype.onYtNavigate=ad.prototype.onYtNavigate;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],ad.prototype,"ytEndpointBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],ad.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.MC),_.O("design:type",Object)],ad.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],ad.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],ad.prototype,"isGridViewEnabled",void 0);_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ad.prototype,"watchFeedBigThumbs",null);
_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],ad.prototype,"thumbnailWidth",null);_.U([_.Z(),_.O("design:type",Object)],ad.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ad.prototype,"collections",void 0);_.U([_.G("data","collections"),_.O("design:type",Object),_.O("design:paramtypes",[])],ad.prototype,"collectionStack",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],ad.prototype,"onYtNavigate",null);ad=_.U([_.T({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ad);
_.q(ad,"ytd-compact-radio-renderer",function(){if(yxs!==void 0)return yxs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return yxs=W},{mode:1});var $_C;var Zax=function(){return _.R.apply(this,arguments)||this};
_.D(Zax,_.R);Zax.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Zax.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var Xf=Zax;_.U([_.Z(),_.O("design:type",Object)],Xf.prototype,"data",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Xf.prototype,"rendererBehavior",void 0);_.U([_.Z({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.O("design:type",String)],Xf.prototype,"rendererStyle",void 0);
Xf=_.U([_.T({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Xf);
_.q(Xf,"ytd-compact-text-promo-renderer",function(){if($_C!==void 0)return $_C;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $_C=W},{mode:1});var R78;var osS=function(){var W=_.R.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.D(osS,_.R);_.Y=osS.prototype;_.Y.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"}}}};
_.Y.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Pe(this.hostElement,"yt-disable-lockup-interaction"):_.Pe(this.hostElement,"yt-enable-lockup-interaction"))};
_.Y.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.Y.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.Y.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.Y.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.oq.Object.defineProperties(osS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var fh=osS;fh.prototype.disableInteractionChanged=fh.prototype.disableInteractionChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],fh.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],fh.prototype,"ytdLockupBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],fh.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.O("design:type",Boolean)],fh.prototype,"metaBlockEmpty",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],fh.prototype,"isGridViewEnabled",void 0);_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],fh.prototype,"watchFeedBigThumbs",null);
_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],fh.prototype,"thumbnailWidth",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fh.prototype,"isShortsStyle",void 0);_.U([_.Z(),_.O("design:type",Object)],fh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.O("design:type",Boolean)],fh.prototype,"hasOneLineTitle",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],fh.prototype,"hideThumbnail",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fh.prototype,"forceOneLineTitle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.O("design:type",Boolean)],fh.prototype,"disableInteraction",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],fh.prototype,"musicMetadataVideoLockup",void 0);
_.U([_.Hl("disableInteraction"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fh.prototype,"disableInteractionChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],fh.prototype,"shouldShowTopBadges",null);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],fh.prototype,"topBadges",null);
_.U([_.G("shouldShowTopBadges","data"),_.O("design:type",Array),_.O("design:paramtypes",[])],fh.prototype,"inlineMetadataBadges",null);_.U([_.G("shouldShowTopBadges"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],fh.prototype,"shouldShowBadgesBelowMetadata",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],fh.prototype,"compactTitleClass",null);fh=_.U([_.T({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],fh);
_.q(fh,"ytd-compact-video-renderer",function(){if(R78!==void 0)return R78;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return R78=W},{mode:_.UC("kevlar_poly_si_batch_j067")?1:2});var iax;_.EJ("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var TJz=function(){return _.R.apply(this,arguments)||this};
_.D(TJz,_.R);var dt=TJz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dt.prototype,"data",void 0);dt=_.U([_.T({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],dt);
_.q(dt,"ytd-counterfactual-renderer",function(){if(iax!==void 0)return iax;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return iax=W},{mode:1});var qN8;var mN=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;return W};
_.D(mN,_.R);mN.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.f().resolve(_.uI).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
mN.prototype.computeHidden=function(W){return!!W};
_.oq.Object.defineProperties(mN.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
var zh=mN;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.O("design:type",Object)],zh.prototype,"hidden",void 0);_.U([_.G("data.label"),_.O("design:type",String),_.O("design:paramtypes",[])],zh.prototype,"label",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],zh.prototype,"value",null);zh=_.U([_.T({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],zh);
_.q(zh,"ytd-dropdown-item-renderer",function(){if(qN8!==void 0)return qN8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qN8=W},{mode:1});var u_A;var U_b;var OaA=function(){return _.R.apply(this,arguments)||this};
_.D(OaA,_.R);var DV=OaA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],DV.prototype,"data",void 0);_.U([_.Z({computed:"getSimpleString(data.label)"}),_.O("design:type",String)],DV.prototype,"label",void 0);DV=_.U([_.T({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],DV);
_.q(DV,"ytd-navigation-dropdown-item-renderer",function(){if(U_b!==void 0)return U_b;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return U_b=W},{mode:1});var L9b=function(){var W=_.R.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.D(L9b,_.R);_.Y=L9b.prototype;_.Y.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"}}}};
_.Y.open=function(){this.inputEl.open()};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("value-changed",this.value))};
_.Y.stopPropagation=function(W){W.stopPropagation()};
_.Y.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.Y.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,k=this.data.entries.length;W<k;W++){var C=this.data.entries[W],n;for(n in C)if(C.hasOwnProperty(n)){var N=C[n];if("isSelected"in N&&N.isSelected)return"stringValue"in N?N.stringValue||"":"int32Value"in N?N.int32Value||0:0}}return null};
_.Y.updateValueFromBinding=function(W){this.value=W.detail.value};
_.oq.Object.defineProperties(L9b.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 W=0,k=this.data.entries.length;W<k;W++){var C=this.data.entries[W],n;for(n in C)if(C.hasOwnProperty(n)){var N=C[n];if("isSelected"in N&&N.isSelected&&"label"in N)return this.ytRendererBehavior.getSimpleString(N.label)}}return null}}});
var Vh=L9b;Vh.prototype.autoSizeLabel=Vh.prototype.autoSizeLabel;Vh.prototype.stopPropagation=Vh.prototype.stopPropagation;Vh.prototype.valueChangedForBinding=Vh.prototype.valueChangedForBinding;Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Vh.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vh.prototype,"disabled",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"value",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"noLabelFloat",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vh.prototype,"noUnderline",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Vh.prototype,"theme",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vh.prototype,"usePrimaryColor",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vh.prototype,"hasBackground",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"verticalAlign",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"autosize",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"minAutosizeWidth",void 0);_.U([_.Z(),_.O("design:type",Object)],Vh.prototype,"autosizeFont",void 0);
_.U([_.gi("#entries"),_.O("design:type",Object)],Vh.prototype,"entries",void 0);_.U([_.gi("#input"),_.O("design:type",Object)],Vh.prototype,"inputEl",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vh.prototype,"dataChanged",null);_.U([_.Cq("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vh.prototype,"valueChangedForBinding",null);
_.U([_.jI("iron-overlay-opened"),_.jI("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Vh.prototype,"stopPropagation",null);_.U([_.jI("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vh.prototype,"autoSizeLabel",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vh.prototype,"label",null);
Vh=_.U([_.T({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Vh);
_.q(Vh,"ytd-dropdown-renderer",function(){if(u_A!==void 0)return u_A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return u_A=W},{mode:1});var jD2;var JP=function(){var W=_.R.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.D(JP,_.R);JP.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"}}}};
JP.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
JP.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
JP.prototype.computeViewAllHidden=function(W,k){return W||!k.viewAllEndpoint};
var cM=JP;cM.prototype.fillRestIfNoShowMore=cM.prototype.fillRestIfNoShowMore;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],cM.prototype,"ytLazyListBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cM.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cM.prototype,"isConstrainedList",void 0);_.U([_.Cq("data","canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cM.prototype,"fillRestIfNoShowMore",null);cM=_.U([_.T({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],cM);
_.q(cM,"ytd-expanded-shelf-contents-renderer",function(){if(jD2!==void 0)return jD2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jD2=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var Hab;var rx2=function(){return _.R.apply(this,arguments)||this};
_.D(rx2,_.R);rx2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var Id=rx2;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Id.prototype,"data",void 0);Id=_.U([_.T({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Id);
_.q(Id,"ytd-feed-channel-filter-header-renderer",function(){if(Hab!==void 0)return Hab;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Hab=W},{mode:1});var gss;var Plz;var K9x;var h72=function(){return _.R.apply(this,arguments)||this};
_.D(h72,_.R);_.Y=h72.prototype;_.Y.onClick=function(W){var k,C=(k=this.data)==null?void 0:k.sectionEndpoint;!_.er(_.vl(W),this.hostElement,["A".toString()])&&C&&_.Pe(this.hostElement,"yt-navigate",{endpoint:C})};
_.Y.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.Y.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.Y.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.Y.getHeaderAsLinkClass=function(W){var k=[],C;(W==null?0:(C=W.headerIcon)==null?0:C.iconType)&&k.push("header-link-active");return k.join(" ")};
var Sg=h72;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Sg.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Sg.prototype,"data",void 0);
_.U([_.Z({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Sg.prototype,"hasSectionEndpoint",void 0);_.U([_.Z({computed:"computeShowHeaderAsLink(data)"}),_.O("design:type",Boolean)],Sg.prototype,"showHeaderAsLink",void 0);_.U([_.Z({computed:"computeShowSubheaderAsLink(data)"}),_.O("design:type",Boolean)],Sg.prototype,"showSubheaderAsLink",void 0);Sg=_.U([_.T({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Sg);
_.q(Sg,"ytd-medical-panel-section-renderer",function(){if(K9x!==void 0)return K9x;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return K9x=W},{mode:1});var Wrs=function(){var W=_.R.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.D(Wrs,_.R);
Wrs.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]]"}}}}}};
Wrs.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var MH=Wrs;MH.prototype.dataChanged=MH.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MH.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],MH.prototype,"isExpanded",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],MH.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],MH.prototype,"skipRoundingTop",void 0);_.U([_.Z(),_.O("design:type",Object)],MH.prototype,"toggleExpandableSection",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MH.prototype,"dataChanged",null);
MH=_.U([_.T({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],MH);
_.q(MH,"ytd-medical-panel-content-renderer",function(){if(Plz!==void 0)return Plz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Plz=W},{mode:1});_.EJ("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Qh=function(){var W=_.R.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.m("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.D(Qh,_.R);
Qh.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"}}}};
Qh.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
Qh.prototype.onClick=function(W){var k,C=(k=this.data)==null?void 0:k.headerEndpoint;!_.er(_.vl(W),this.hostElement,["BUTTON".toString()])&&C&&this.ytComponentBehavior.resolveCommand(C)};
_.oq.Object.defineProperties(Qh.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((k=this.data)==null?0:k.title)}}});
var ph=Qh;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ph.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ph.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ph.prototype,"amsterdamEnabled",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.O("design:type",Object)],ph.prototype,"hasTitle",void 0);
_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.O("design:type",Object),_.O("design:paramtypes",[])],ph.prototype,"background",null);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.titleStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ph.prototype,"titleStyle",null);
_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data.titleStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ph.prototype,"showLinkIcon",null);_.U([_.Z(),_.O("design:type",String)],ph.prototype,"linkIcon",void 0);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ph.prototype,"hideDivider",null);
_.U([_.Z({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,k){W=_.hQ(W.entities,"dismissState",k);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.O("design:type",Object)],ph.prototype,"isDismissed",void 0);ph=_.U([_.T({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ph);
_.q(ph,"ytd-info-panel-container-renderer",function(){if(gss!==void 0)return gss;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gss=W},{mode:1});var kZY;_.EJ("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var C7C=function(){var W=_.R.apply(this,arguments)||this;W.modernTypography=_.m("web_modern_typography");return W};
_.D(C7C,_.R);C7C.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
C7C.prototype.computeStyle=function(W){return W?W:""};
var vM=C7C;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vM.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.O("design:type",String)],vM.prototype,"titleStyle",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vM.prototype,"modernTypography",void 0);vM=_.U([_.T({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],vM);
_.q(vM,"ytd-item-section-header-renderer",function(){if(kZY!==void 0)return kZY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return kZY=W},{mode:1});var nRA;var Nsz,YHS=function(){return Nsz!==void 0?Nsz:Nsz=document.createElement("template")};
document.head.appendChild(YHS().content);var BsA;_.eg=new _.Tc("VOTING_ANIMATION_CONTROLLER_TOKEN");var Arz=_.GM(function(W){var k=W.data;var C=_.yE(),n=_.yE();W=_.b(_.kw("VOTE_STATUS_NONE",void 0,"FVF7mc"));var N=W.next().value,B=W.next().value,A=_.kj(UAm,function(){var d;return(d=k())==null?void 0:d.entityKey}),w=_.m("web_enable_voting_animation")||_.m("enable_music_web_cairo_voting_animation");
_.Ee(function(){var d;((d=k().initialState)==null?0:d.status)&&B(k().initialState.status)});
var x=function(){var d,V,c=(V=(d=k().initialState)==null?void 0:d.votes)!=null?V:0,M;d=(M=k().initialState)==null?void 0:M.status;return d==="VOTE_STATUS_UPVOTED"?c-1:d==="VOTE_STATUS_DOWNVOTED"?c+1:c},E=function(){return N()==="VOTE_STATUS_UPVOTED"?x()+1:N()==="VOTE_STATUS_DOWNVOTED"?x()-1:x()},a=function(d){var V=d?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
B(V);var c=E(),M=_.f().resolve(_.qI(_.eg)),p=A();p&&(d&&(p==null?0:p.upvoteDefaultButtonOnTap)?_.zj(p.upvoteDefaultButtonOnTap,{form:{element:C.value},disableClickTracking:!0}):(p==null?0:p.upvoteToggledButtonOnTap)&&_.zj(p.upvoteToggledButtonOnTap,{form:{element:C.value},disableClickTracking:!0}));var e;d=(e=p==null?void 0:p.enableOptimisticReordering)!=null?e:k().enableOptimisticReordering;w&&M&&k().itemId&&d&&bos(M,k().itemId,c,V)},X=function(d){var V=d?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
B(V);var c=E(),M=_.f().resolve(_.qI(_.eg)),p=A();p&&(d&&(p==null?0:p.downvoteDefaultButtonOnTap)?_.zj(p.downvoteDefaultButtonOnTap,{form:{element:n.value},disableClickTracking:!0}):(p==null?0:p.downvoteToggledButtonOnTap)&&_.zj(p.downvoteToggledButtonOnTap,{form:{element:n.value},disableClickTracking:!0}));var e;d=(e=p==null?void 0:p.enableOptimisticReordering)!=null?e:k().enableOptimisticReordering;w&&M&&k().itemId&&d&&bos(M,k().itemId,c,V)};
W={};W=_.Li("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return k().isDisabled},W));
return _.t("voting-view-model",{class:"ytVotingViewModelHost"},_.t("div",{el:C},_.t(_.Ex,{data:function(){var d=_.z(k().upvoteButton,_.Xo);return{toggleButtonViewModel:Object.assign({},d,{isToggled:N()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(d){return _.t(_.fX,{data:d.data,
onToggle:a})}})),_.t("div",{class:W},function(){var d,V,c;
return N()==="VOTE_STATUS_UPVOTED"?(d=k().initialState)==null?void 0:d.compactVotesUpvoted:N()==="VOTE_STATUS_DOWNVOTED"?(V=k().initialState)==null?void 0:V.compactVotesDownvoted:(c=k().initialState)==null?void 0:c.compactVotes}),_.t("div",{el:n},_.t(_.Ex,{data:function(){var d=_.z(k().downvoteButton,_.Xo);
return{toggleButtonViewModel:Object.assign({},d,{isToggled:N()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(d){return _.t(_.fX,{data:d.data,
onToggle:X})}})))},"vb");_.Gj(_.GM(function(W){var k=W.data;return _.t("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.t("div",{class:_.Li("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.t(_.Ex,{data:function(){return k().actions}},{votingViewModel:Arz})))},"wb"),"engagement-bar-view-model",{props:{data:_.Ik,
className:_.Ik}});var FrC=function(){var W=_.R.apply(this,arguments)||this;W.amsterdamPostMvp=_.m("web_amsterdam_post_mvp_playlists");W.cairoCollabPlaylistPostMvp=_.m("web_collab_playlist_thumbnail_size");W.playlistVotingAnimationEnabled=_.m("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.D(FrC,_.R);_.Y=FrC.prototype;_.Y.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"}}}};
_.Y.canReorderChanged=function(){this.persistentDragHandle=_.m("kevlar_playlist_drag_handles")&&this.canReorder};
_.Y.onDrag=function(){if(this.thumbnail){var W=_.S(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.Y.onMenuOverlayChanged=function(W,k){this.menuOpened=k};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Y.onContentsTap=function(W){var k,C=(k=this.data)==null?void 0:k.serviceEndpoints;if(C&&C.length===1&&_.z(C[0],hi3)&&!_.er(_.vl(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(C[0]);else{var n;(k=(n=this.data)==null?void 0:n.navigationEndpoint)&&_.m("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?wIZ(_.f().resolve(_.eq),k):(_.k7().playlistSuggestionsShelfActivation=
!0,_.x4Y(_.f().resolve(_.eq),k)):k&&!_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.m("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Pe(this.hostElement,"yt-navigate",{endpoint:k}):this.ytComponentBehavior.resolveCommand(k))}};
_.Y.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.Y.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=MVm(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))}};
_.Y.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.dataChanged=function(){if(this.data){var W,k,C,n=((W=this.downloadRenderData)==null?void 0:W.badges)&&((k=this.downloadRenderData)==null?void 0:k.badges)!==((C=this.data)==null?void 0:C.badges),N,B,A;W=((N=this.downloadRenderData)==null?void 0:N.thumbnailOverlays)&&((B=this.downloadRenderData)==null?void 0:B.thumbnailOverlays)!==((A=this.data)==null?void 0:A.thumbnailOverlays);(!this.downloadRenderData||n||W)&&this.downloadStateChanged()}};
_.Y.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,k,C=(W=this.data.menu)==null?void 0:(k=W.menuRenderer)==null?void 0:k.items;if(C)for(W=_.b(C),k=W.next();!k.done;k=W.next())if(k=k.value,C=void 0,_.z((C=k.menuServiceItemRenderer)==null?void 0:C.serviceEndpoint,_.mB)){var n=C=void 0,N=void 0;k=(C=k)==null?void 0:(n=C.menuServiceItemRenderer)==null?void 0:(N=n.serviceEndpoint)==null?void 0:N.playlistEditEndpoint;N=n=void 0;if(C=(n=k)==null?void 0:(N=n.actions)==null?void 0:
N[0])n=void 0,C.setVideoId=(n=this.data)==null?void 0:n.setVideoId;N=n=C=void 0;if(k=(C=k)==null?void 0:(n=C.clientActions)==null?void 0:(N=n[0])==null?void 0:N.playlistRemoveVideosAction)C=void 0,k.setVideoIds=[(C=this.data)==null?void 0:C.setVideoId]}}};
_.oq.Object.defineProperties(FrC.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var sU=FrC;sU.prototype.setVideoIdChanged=sU.prototype.setVideoIdChanged;sU.prototype.dataChanged=sU.prototype.dataChanged;sU.prototype.downloadStateChanged=sU.prototype.downloadStateChanged;sU.prototype.onMenuOverlayChanged=sU.prototype.onMenuOverlayChanged;sU.prototype.canReorderChanged=sU.prototype.canReorderChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],sU.prototype,"ytdReduxBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],sU.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],sU.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sU.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sU.prototype,"amsterdamPostMvp",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"canReorder",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"menuOpened",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"handleIsHovered",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"persistentDragHandle",void 0);
_.U([_.Z(),_.O("design:type",Object)],sU.prototype,"downloadRenderData",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],sU.prototype,"styleType",void 0);_.U([_.Z({computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],sU.prototype,"thumbnailWidth",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"isDownloads",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],sU.prototype,"cairoCollabPlaylistPostMvp",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],sU.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.Z({selector:c3,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"downloadProgress",void 0);_.U([_.Z(),_.O("design:type",Number)],sU.prototype,"relativeDateReference",void 0);
_.U([_.Z({selector:_.V4,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"transferState",void 0);_.U([_.Z({selector:P82,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"downloadState",void 0);_.U([_.Z({selector:ZEX,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"offlinePolicyAction",void 0);_.U([_.Z({selector:Rjp,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.Z({selector:iEJ,selectorArgs:["data.videoId"]}),_.O("design:type",Object)],sU.prototype,"entityInfo",void 0);_.U([_.Z({selector:_.zo}),_.O("design:type",Boolean)],sU.prototype,"miniplayerIsActive",void 0);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],sU.prototype,"playlistVideoId",null);_.U([_.gi("#thumbnail"),_.O("design:type",Object)],sU.prototype,"thumbnail",void 0);
_.U([_.Cq("canReorder"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sU.prototype,"canReorderChanged",null);_.U([_.jI("yt-menu-overlay-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Boolean]),_.O("design:returntype")],sU.prototype,"onMenuOverlayChanged",null);
_.U([_.Cq("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sU.prototype,"downloadStateChanged",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sU.prototype,"dataChanged",null);
_.U([_.Cq("data.setVideoId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sU.prototype,"setVideoIdChanged",null);sU=_.U([_.T({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],sU);
_.q(sU,"ytd-playlist-video-renderer",function(){if(BsA!==void 0)return BsA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(YHS().content.cloneNode(!0),W.content.firstChild);return BsA=W},{mode:1});var lhx;var tdY=function(){return _.R.apply(this,arguments)||this};
_.D(tdY,_.R);var Gh=tdY;_.U([_.Z(),_.O("design:type",Object)],Gh.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Gh.prototype,"rendererBehavior",void 0);Gh=_.U([_.T({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Gh);
_.q(Gh,"ytd-premium-browse-footer-renderer",function(){if(lhx!==void 0)return lhx;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lhx=W},{mode:1});var ERs;var ah2=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.D(ah2,_.R);_.Y=ah2.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.computeHeaderLogoThumbnail=function(W,k){if(W)return k?W.darkLogo:W.lightLogo};
_.Y.computeHeaderLogoHeight=function(W,k){var C,n,N;return(W=(C=this.computeHeaderLogoThumbnail(W,k))==null?void 0:(n=C.thumbnails)==null?void 0:(N=n[0])==null?void 0:N.height)&&W%31===0?"31":"24"};
_.Y.computeHeaderLogoMarginBottom=function(W,k){return this.computeHeaderLogoHeight(W,k)==="24"?"0":"-7"};
var yh=ah2;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],yh.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yh.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],yh.prototype,"isDarkTheme",void 0);_.U([_.Z({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.O("design:type",Object)],yh.prototype,"themeLogo",void 0);
_.U([_.Z({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.O("design:type",String)],yh.prototype,"logoHeight",void 0);_.U([_.Z({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.O("design:type",String)],yh.prototype,"logoMarginBottom",void 0);yh=_.U([_.T({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],yh);
_.q(yh,"ytd-primetime-promo-header-renderer",function(){if(ERs!==void 0)return ERs;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ERs=W},{mode:1});var XI8;_.UK(jsw);var h1w;h1w=_.w7({flexibleActionsViewModel:Y_x});_.$V=_.ry(WYm);_.UK(WYm);_.Gj(_.$V,"yt-section-header-view-model",{props:{data:_.Ik,className:_.Ik,disableHorizontalPadding:_.Ik,disableVerticalPadding:_.Ik,forceSmallLayout:_.Ik,useResponsiveLayout:_.Ik,isOverlay:_.Ik}});_.EJ("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var fh8=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.D(fh8,_.R);_.Y=fh8.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.onDataChange=function(){var W=this;_.ZR(this,function(){W.updateItemVisibility()})};
_.Y.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.Y.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.S(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(k,C){k.hidden=C>W.elementsPerRow-1})};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
var ZV=fh8;ZV.prototype.onDataChange=ZV.prototype.onDataChange;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],ZV.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ZV.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],ZV.prototype,"data",void 0);_.U([_.Z({value:3}),_.O("design:type",Number)],ZV.prototype,"elementsPerRow",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZV.prototype,"onDataChange",null);ZV=_.U([_.T({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ZV);
_.q(ZV,"ytd-primetime-promo-renderer",function(){if(XI8!==void 0)return XI8;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return XI8=W},{mode:1});var d4s;var Rd=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.D(Rd,_.R);Rd.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Rd.prototype.handleButtonRefreshAction=function(W){if(W=_.z(W,_.xex))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.oq.Object.defineProperties(Rd.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.avatars)==null?void 0:k.slice(0,8))||[]}}});
var od=Rd;_.U([_.Z(),_.O("design:type",Object)],od.prototype,"data",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],od.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],od.prototype,"rendererBehavior",void 0);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],od.prototype,"avatars",null);
od=_.U([_.T({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],od);
_.q(od,"ytd-recognition-shelf-renderer",function(){if(d4s!==void 0)return d4s;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return d4s=W},{mode:1});var m48;var zv2;var D4S=function(){var W=_.R.apply(this,arguments)||this;W.modernButtons=_.m("web_modern_buttons");return W};
_.D(D4S,_.R);_.Y=D4S.prototype;
_.Y.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]]"}}}}}};
_.Y.dataChanged=function(){this.collapsed=!0};
_.Y.computeVisibleItems=function(W,k){return W!==void 0&&W.items?k?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.Y.computeHideShowMore=function(W,k,C){return W>=k||!C};
_.Y.computeHideShowAll=function(W,k,C){return!(W&&k)||C};
_.Y.onMoreClick=function(){this.collapsed=!1};
_.oq.Object.defineProperties(D4S.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.m("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var iY=D4S;iY.prototype.dataChanged=iY.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iY.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],iY.prototype,"isSearch",void 0);
_.U([_.Z({computed:"computeVisibleItems(data,collapsed)"}),_.O("design:type",Array)],iY.prototype,"visibleItems",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],iY.prototype,"collapsed",void 0);_.U([_.Z({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.O("design:type",Boolean)],iY.prototype,"hideShowMore",void 0);
_.U([_.Z({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.O("design:type",Boolean)],iY.prototype,"hideShowAll",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],iY.prototype,"modernButtons",void 0);_.U([_.G("isSearch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],iY.prototype,"typographyBump",null);
_.U([_.G("isSearch"),_.O("design:type",String),_.O("design:paramtypes",[])],iY.prototype,"thumbnailWidth",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iY.prototype,"dataChanged",null);iY=_.U([_.T({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],iY);
_.q(iY,"ytd-vertical-list-renderer",function(){if(zv2!==void 0)return zv2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zv2=W},{mode:1});var VdA=_.iH(["#"]);_.EJ("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var JrA=function(){var W=_.R.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.m("web_modern_typography");return W};
_.D(JrA,_.R);_.Y=JrA.prototype;
_.Y.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"}}}};
_.Y.computeThumbnailStyle=function(W){return W||""};
_.Y.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.Y.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.eN(VdA)};
_.Y.computeIsPromoShelf=function(W){var k;return(W=W==null?void 0:(k=W[0])==null?void 0:k.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.Y.computePlaceBadgeBesideTitle=function(W){var k;return(W==null?0:(k=W[0])==null?0:k.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.Y.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.Y.onDataChange=function(){var W,k;((W=this.data)==null?0:(k=W.content)==null?0:k.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.Y.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var k=this.data.content.gridRenderer.items,C=new Set,n=_.b(W.detail.videoIds),N=n.next();!N.done;N=n.next())C.add(N.value);W.detail.returnValue=k.filter(function(B){return B.gridVideoRenderer&&B.gridVideoRenderer.videoId&&C.has(B.gridVideoRenderer.videoId)}).map(function(B){return B.gridVideoRenderer})}};
_.Y.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var Th=JrA;Th.prototype.onLockupRequested=Th.prototype.onLockupRequested;Th.prototype.onDataChange=Th.prototype.onDataChange;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Th.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],Th.prototype,"ironResizableBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Th.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Th.prototype,"isSearch",void 0);_.U([_.Z(),_.O("design:type",Object)],Th.prototype,"isConstrainedList",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("kevlar_fluid_dismiss")}}),
_.O("design:type",Boolean)],Th.prototype,"enableFluidDismiss",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.O("design:type",String)],Th.prototype,"thumbnailStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Th.prototype,"modernTypography",void 0);_.U([_.Z({computed:"computeMenuIcon(data.badges)"}),_.O("design:type",String)],Th.prototype,"menuIcon",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Th.prototype,"onDataChange",null);_.U([_.jI("yt-lockup-requested"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Th.prototype,"onLockupRequested",null);Th=_.U([_.T({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Th);
_.q(Th,"ytd-shelf-renderer",function(){if(m48!==void 0)return m48;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return m48=W},{mode:1});var crs;var Ihs=function(){return _.R.apply(this,arguments)||this};
_.D(Ihs,_.R);Ihs.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.oq.Object.defineProperties(Ihs.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var qH=Ihs;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qH.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],qH.prototype,"isPlaylist",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],qH.prototype,"isClipList",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],qH.prototype,"isPlaylistPageWithFilters",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],qH.prototype,"hasTitle",null);_.U([_.Z(),_.G("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.O("design:type",Object),_.O("design:paramtypes",[])],qH.prototype,"isRightAligned",null);
qH=_.U([_.T({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],qH);
_.q(qH,"ytd-sort-filter-header-renderer",function(){if(crs!==void 0)return crs;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return crs=W},{mode:1});var SHS;var uY=function(){return _.R.apply(this,arguments)||this};
_.D(uY,_.R);
uY.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]]"}}}}}};
uY.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.oq.Object.defineProperties(uY.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.m("enable_creator_details_shelf_m2")){var W=[],k;((k=this.data)==null?0:k.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var C;((C=this.data)==null?0:C.creatorAboutButton)&&W.push(this.data.creatorAboutButton);k=_.b(this.data.creatorCustomUrlButtons||[]);for(C=k.next();!C.done;C=k.next())W.push(C.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.m("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var UU=uY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],UU.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],UU.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],UU.prototype,"engagementPanel",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],UU.prototype,"creatorCustomUrlButtons",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","creatorCustomUrlButtons"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],UU.prototype,"showCreatorCustomUrlButtons",null);
_.U([_.G("showCreatorCustomUrlButtons"),_.O("design:type",Number),_.O("design:paramtypes",[])],UU.prototype,"channelAvatarSize",null);UU=_.U([_.T({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],UU);
_.q(UU,"ytd-video-description-infocards-section-renderer",function(){if(SHS!==void 0)return SHS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SHS=W},{mode:_.UC("kevlar_poly_si_batch_j067")?1:2});var MdY;var QoC=function(){return _.R.apply(this,arguments)||this};
_.D(QoC,_.R);var OU=QoC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OU.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.infoIcon)"}),_.O("design:type",Object)],OU.prototype,"infoIcon",void 0);
OU=_.U([_.T({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],OU);
_.q(OU,"ytd-eom-settings-disclaimer-renderer",function(){if(MdY!==void 0)return MdY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return MdY=W},{mode:1});var pI2;var vRA=function(){return _.R.apply(this,arguments)||this};
_.D(vRA,_.R);_.oq.Object.defineProperties(vRA.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
var Lh=vRA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Lh.prototype,"componentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Lh.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lh.prototype,"suppressPaddingDisclaimer",null);Lh=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Lh);
_.q(Lh,"ytd-product-list-header-renderer",function(){if(pI2!==void 0)return pI2;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pI2=W},{mode:1});var evA;var soz=function(){return _.R.apply(this,arguments)||this};
_.D(soz,_.R);soz.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.a8(W)))return"background-color:"+W+";"};
var jg=soz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jg.prototype,"rendererBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],jg.prototype,"data",void 0);jg=_.U([_.T({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],jg);
_.q(jg,"ytd-hashtag-tile-renderer",function(){if(evA!==void 0)return evA;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return evA=W},{mode:1});var GZb;var yrs=function(){return _.R.apply(this,arguments)||this};
_.D(yrs,_.R);yrs.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var HM=yrs;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],HM.prototype,"data",void 0);HM=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],HM);
_.q(HM,"ytd-sponsorships-alert-renderer",function(){if(GZb!==void 0)return GZb;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return GZb=W},{mode:1});var $4S;var Zos=function(){return _.R.apply(this,arguments)||this};
_.D(Zos,_.R);Zos.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.oq.Object.defineProperties(Zos.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.m("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.m("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var rt=Zos;_.U([_.v(_.md),_.O("design:type",Object)],rt.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],rt.prototype,"ytdLockupBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],rt.prototype,"isGridViewEnabled",void 0);
_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],rt.prototype,"watchFeedBigThumbs",null);_.U([_.G("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.O("design:type",String),_.O("design:paramtypes",[])],rt.prototype,"thumbnailWidth",null);_.U([_.Z(),_.O("design:type",Object)],rt.prototype,"data",void 0);rt=_.U([_.T({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],rt);
_.q(rt,"ytd-compact-movie-renderer",function(){if($4S!==void 0)return $4S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $4S=W},{mode:1});var Rv8;var oRA;var ioC=_.DE("HTML_DIR")==="rtl",TsA=function(){var W=_.R.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$14117_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.D(TsA,_.R);_.Y=TsA.prototype;_.Y.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var k;if((k=window.getSelection())==null||!k.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.Y.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.Y.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.Y.updateTextOnSnippetTypeChange=function(){_.m("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.Y.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var k,C;this.right=Math.min(W*2,(C=(k=this.simpleText)==null?void 0:k.length)!=null?C:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.Y.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.Y.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.zJ(new _.AM("AttributedSnippet is empty when the description is not empty",this.text))};
_.Y.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var k=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,k);k!==0||this.attributedTextIsEmpty()||_.zJ(new _.AM("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;W=W*this.maxLines/8;this.left=0;var C;this.right=Math.min(W*2,(C=(k=this.simpleText)==null?void 0:k.length)!=null?C:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.Y.mutationObserve=function(W){var k=this;this.observer||(this.observer=new MutationObserver(function(){k.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.Y.attached=function(){var W=this;_.ZR(this,function(){W.resize()})};
_.Y.isExpandedChanged=function(){_.Pe(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.Y.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)};
_.Y.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((ioC?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(ioC?"right":"left",this.expandButtonOffset+"px")};
_.Y.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.Y.setSnippetText=function(W,k){W||(W={});if(_.IE(W)){var C=qt4(W,k);C.attachmentRuns||C.commandRuns||C.decorationRuns||C.styleRuns||C.alignment||C.lineBreakMode?this.attributedSnippetTextEl?(_.m("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=qt4(W,k),this.attributedSnippetTextEl.headerRuns=TWz(k,this.headerRuns)):this.attributedSnippetText={data:qt4(W,k),headerRuns:TWz(k,this.headerRuns)},this.currentSnippetType=0):_.zJ(new _.AM("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=VI(W.content||"",k),this.currentSnippetType=2)}else{a:{C=k22(W,k);if(C.runs){C=_.b(C.runs);for(var n=C.next();!n.done;n=C.next())if(n=n.value,n.bold||n.deemphasize||n.italics||n.strikethrough||n.textColor||n.navigationEndpoint||_.z(n,Ei)){C=!0;break a}}C=!1}C?this.formattedSnippetText?(this.formattedSnippetText.text=k22(W,k),this.currentSnippetType=1):_.zJ(new _.AM("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
VI(_.y4(W),k),this.currentSnippetType=2)}};
_.Y.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.Y.attributedTextIsEmpty=function(){var W=this.text;if(!_.IE(W))return!0;var k;return((k=W.content)==null?void 0:k.length)===0?!0:!1};
_.Y.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$14117_lastWidth=NaN;var k=this.hostElement.offsetWidth;if(k!==this.JSC$14117_lastWidth&&!this.isExpanded)if(this.JSC$14117_lastWidth=k,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;W=0;var C,n;k=Math.min(k*this.maxLines/8*2,(n=(C=this.simpleText)==null?void 0:C.length)!=null?n:0)-1;for(C=0;W<=k;)n=Math.floor(W+(k-W)/2),this.setSnippetText(this.text,n),this.isOverflowing()?k=n-1:(W=n+1,C=n);this.setSnippetText(this.text,C);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.Y.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.Y.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.m("inline_expander_reset_focus_killswitch")||_.ZR(this,function(){var k;((k=_.f().resolve(_.qI(_.Ay)))==null?0:k.isKeyBoardInUse())&&_.ek(W.hostElement)});
_.Pe(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.Y.onCollapseClick=function(){this.collapse();_.Pe(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.Y.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.Y.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?ioC?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.oq.Object.defineProperties(TsA.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.IE(this.text)?this.text.content||"":_.y4(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 _.IE(this.text)?!0:this.text&&_.m("web_replace_formatted_with_attributed_string")&&AGm(this.text)?(this.text=_.t7(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
var gt=TsA;gt.prototype.onTextChanged=gt.prototype.onTextChanged;gt.prototype.updateMaskAndExpandButtonOffset=gt.prototype.updateMaskAndExpandButtonOffset;gt.prototype.updateSnippetContainerMaxHeight=gt.prototype.updateSnippetContainerMaxHeight;gt.prototype.isExpandedChanged=gt.prototype.isExpandedChanged;gt.prototype.updateTextOnSnippetTypeChange=gt.prototype.updateTextOnSnippetTypeChange;gt.prototype.updateIsFormattedExpanded=gt.prototype.updateIsFormattedExpanded;
gt.prototype.updateIsAttributedExpanded=gt.prototype.updateIsAttributedExpanded;gt.prototype.onClick=gt.prototype.onClick;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],gt.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"text",void 0);_.U([_.Z(),_.O("design:type",Array)],gt.prototype,"headerRuns",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],gt.prototype,"engagementPanel",void 0);
_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"maxLines",void 0);_.U([_.Z(),_.O("design:type",String)],gt.prototype,"expandLabel",void 0);_.U([_.Z(),_.O("design:type",String)],gt.prototype,"collapseLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"expandCommand",void 0);_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"expandButtonOffset",void 0);_.U([_.G("text"),_.O("design:type",String),_.O("design:paramtypes",[])],gt.prototype,"simpleText",null);
_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],gt.prototype,"onClick",null);_.U([_.G("text","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"expandedText",null);_.U([_.G("headerRuns","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"expandedHeaderRuns",null);
_.U([_.G("text"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],gt.prototype,"hasAttributedStringText",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],gt.prototype,"showExpandButton",void 0);_.U([_.G("collapseLabel","isExpanded"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"showCollapseButton",null);_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"isTruncated",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],gt.prototype,"isExpanded",void 0);_.U([_.Z(),_.O("design:type",Boolean)],gt.prototype,"isAttributedExpanded",void 0);_.U([_.Hl("isExpanded","hasAttributedStringText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"updateIsAttributedExpanded",null);_.U([_.Z(),_.O("design:type",Boolean)],gt.prototype,"isFormattedExpanded",void 0);
_.U([_.Hl("isExpanded","hasAttributedStringText"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"updateIsFormattedExpanded",null);_.U([_.Z(),_.O("design:type",Number)],gt.prototype,"currentSnippetType",void 0);_.U([_.G("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"useAttributedSnippet",null);
_.U([_.G("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"useFormattedSnippet",null);_.U([_.G("currentSnippetType"),_.O("design:type",Object),_.O("design:paramtypes",[])],gt.prototype,"usePlainSnippet",null);_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"alwaysShowExpandButton",void 0);_.U([_.Hl("currentSnippetType"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"updateTextOnSnippetTypeChange",null);
_.U([_.Z(),_.O("design:type",Object)],gt.prototype,"attributedSnippetText",void 0);_.U([_.gi("#snippet"),_.O("design:type",HTMLElement)],gt.prototype,"snippetContainer",void 0);_.U([_.gi("#snippet-text"),_.O("design:type",HTMLElement)],gt.prototype,"snippetText",void 0);_.U([_.gi("#plain-snippet-text"),_.O("design:type",HTMLElement)],gt.prototype,"plainSnippetText",void 0);_.U([_.gi("#formatted-snippet-text"),_.O("design:type",Object)],gt.prototype,"formattedSnippetText",void 0);
_.U([_.gi("#attributed-snippet-text"),_.O("design:type",Object)],gt.prototype,"attributedSnippetTextEl",void 0);_.U([_.gi("#expand"),_.O("design:type",HTMLElement)],gt.prototype,"expandButton",void 0);_.U([_.gi("#expand-sizer"),_.O("design:type",HTMLElement)],gt.prototype,"expandSizer",void 0);_.U([_.Cq("isExpanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"isExpandedChanged",null);
_.U([_.Hl("isExpanded","maxLines"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"updateSnippetContainerMaxHeight",null);_.U([_.Hl("isTruncated","showExpandButton","expandButtonOffset"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"updateMaskAndExpandButtonOffset",null);
_.U([_.Cq("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gt.prototype,"onTextChanged",null);gt=_.U([_.T({is:"ytd-text-inline-expander",disableElementRegistration:!0})],gt);
_.q(gt,"ytd-text-inline-expander",function(){if(oRA===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);oRA=W}W=oRA;return W},{mode:2});var PM=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.D(PM,_.R);PM.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
PM.prototype.handleUpdateDescriptionAction=function(W){if(W=_.z(W,_.Wu8))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var k;((k=this.data)==null?0:k.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.t7(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.oq.Object.defineProperties(PM.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((k=this.data)==null||!k.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var k;return(k=this.data)==null?void 0:k.collapsedLineCount}W=_.Oe("web_watch_description_collapsed_default_lines",12);if(_.m("ww_desc_line_page_size_ks"))return W;k=Math.round(_.Nw().height*_.Oe("web_watch_description_screen_height_percentage",.5)/20);return Math.max(k,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return(C=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?C:(k=this.data)==null?void 0:k.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
var Kh=PM;Kh.prototype.panelContentVisibleChanged=Kh.prototype.panelContentVisibleChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Kh.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Kh.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],Kh.prototype,"panelContentVisible",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Kh.prototype,"engagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Kh.prototype,"shortsPanel",void 0);_.U([_.gi("#inline-expander"),_.O("design:type",Object)],Kh.prototype,"inlineExpander",void 0);
_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Kh.prototype,"panelContentVisibleChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Kh.prototype,"hasDescriptionText",null);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],Kh.prototype,"collapsedLines",null);
_.U([_.G("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kh.prototype,"descriptionText",null);_.U([_.G("data","data.headerRuns"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kh.prototype,"headerRuns",null);_.U([_.G("data","data.sourceAttributions"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kh.prototype,"sourceAttributions",null);
Kh=_.U([_.T({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Kh);
_.q(Kh,"ytd-expandable-video-description-body-renderer",function(){if(Rv8!==void 0)return Rv8;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Rv8=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var qHZ;var uuz=_.GM(function(W){var k=W.data;return _.t("factoid-renderer",{class:"ytwFactoidRendererHost"},_.t("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return k().accessibilityText}},_.t("span",{class:"ytwFactoidRendererValue"},_.t(_.Ya,{text:function(){return k().value}})),_.t("span",{class:"ytwFactoidRendererLabel"},_.t(_.Ya,{text:function(){return k().label}}))))},"xb");_.Gj(uuz,"factoid-renderer",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;return _.t("upload-time-factoid-renderer",null,_.t(_.Ex,{data:function(){return k().factoid}},{factoidRenderer:uuz}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.si}});_.Gj(_.GM(function(W){var k=W.data;return _.t("view-count-factoid-renderer",null,_.t(_.Ex,{data:function(){return k().factoid}},{factoidRenderer:uuz}))},"zb"),"view-count-factoid-renderer",{props:{data:_.si}});var U4b=function(){var W=_.R.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.m("shorts_desktop_watch_while_sdp");return W};
_.D(U4b,_.R);U4b.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"}}}}};
_.oq.Object.defineProperties(U4b.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
var hP=U4b;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],hP.prototype,"componentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hP.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hP.prototype,"shortsPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hP.prototype,"engagementPanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hP.prototype,"watchWhileSdp",void 0);_.U([_.G("shortsPanel","engagementPanel","data.channel"),_.O("design:type",Object),_.O("design:paramtypes",[])],hP.prototype,"showChannelInfo",null);hP=_.U([_.T({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],hP);
_.q(hP,"ytd-video-description-header-renderer",function(){if(qHZ!==void 0)return qHZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qHZ=W},{mode:1});var OoI;var LrZ=function(){return _.R.apply(this,arguments)||this};
_.D(LrZ,_.R);var Wd=LrZ;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Wd.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Wd.prototype,"noPadding",void 0);_.U([_.Z(),_.O("design:type",Object)],Wd.prototype,"data",void 0);Wd=_.U([_.T({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Wd);
_.q(Wd,"ytd-list-item-view-model",function(){if(OoI!==void 0)return OoI;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return OoI=W},{mode:1});var joS;var Hos;var rr8;var gRz;var ku=function(){var W=_.R.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.m("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.D(ku,_.R);ku.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.S(this.hostElement).querySelector("#share-url").value=W.isSet?_.xo(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
ku.prototype.handleSignalActionCopyShareUrl_=function(W,k){(_.m("killswitch_copy_link_target_check")||_.S(this.hostElement).querySelector("#copy-button")===k)&&this.copyUrlToClipboard()};
ku.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.S(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
ku.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
var Cj=ku;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Cj.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.O("design:type",String)],Cj.prototype,"rendererStyle",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Cj.prototype,"adaptiveFullWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Cj.prototype,"modernButtons",void 0);_.U([_.Z(),_.O("design:type",Object)],Cj.prototype,"buttonOverrides",void 0);Cj=_.U([_.l0({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Cj);
_.q(Cj,"yt-copy-link-renderer",function(){if(gRz===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;rr8===void 0&&(rr8=document.createElement("template"));var n=rr8;C.call(k,n.content.cloneNode(!0),W.content.firstChild);gRz=W}W=gRz;return W},{mode:2});_.EJ("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var P7A=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.D(P7A,_.R);_.Y=P7A.prototype;_.Y.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.f().resolve(_.qI(_.Ay));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.Y.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.Y.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}};
_.Y.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.Y.handleUpdateToggleAction_=function(W){(W=_.z(W,VTI))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.Y.toBoolean_=function(W){return!!W};
_.Y.reset=function(){};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("data-changed",this.data))};
_.Y.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
var nj=P7A;nj.prototype.dataChangedForBinding=nj.prototype.dataChangedForBinding;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],nj.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nj.prototype,"data",void 0);_.U([_.Z({computed:"computeDescription_(data.*)"}),_.O("design:type",Object)],nj.prototype,"description_",void 0);_.U([_.Z({value:function(){return!!_.f().resolve(_.qI(_.Ay))&&_.m("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.O("design:type",Boolean)],nj.prototype,"useKeyboardFocused",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],nj.prototype,"keyboardFocused",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nj.prototype,"dataChangedForBinding",null);nj=_.U([_.l0({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],nj);
_.q(nj,"yt-toggle-form-field-renderer",function(){if(Hos===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;joS===void 0&&(joS=document.createElement("template"));var n=joS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Hos=W}W=Hos;return W},{mode:2});var Krz;var hvx;var W38=function(){var W=_.R.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.noTopMargin=_.m("kevlar_watch_no_top_margin");W.maskFade=_.m("web_watch_chips_mask_fade");W.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 W};
_.D(W38,_.R);_.Y=W38.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.Y.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var k,C;(k=this.ytScrollableChipCloudBehavior)==null||(C=k.reset)==null||C.call(k)}};
_.Y.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var k,C=0;C<((k=this.data)==null?void 0:k.chips.length);C++){var n=void 0,N=void 0;if((n=this.data)==null?0:(N=n.chips[C].chipCloudChipRenderer)==null?0:N.isSelected){W=C;break}}return W};
_.Y.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.ZR(W,W.setContainerWidthDiff);pK(this.ytScrollableChipCloudBehavior)};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.handleRelatedChipCommand=function(W,k){W=this.JSC$14144_chipsSelector.indexOf(k);W!==-1&&this.JSC$14144_chipsSelector.selectIndex(W)};
_.Y.handleChipCloudChipSelectAction=function(W){W=this.JSC$14144_chipsSelector.indexOf(W);W>-1&&this.JSC$14144_chipsSelector.selectIndex(W)};
_.Y.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14144_chipsSelector&&((W==null?0:W.continuationCommand)?_.kQ(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.CB(this.hostElement,[W],this.hostElement),this.JSC$14144_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.Y.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
var NU=W38;NU.prototype.onResize=NU.prototype.onResize;NU.prototype.dataChanged=NU.prototype.dataChanged;NU.prototype.isSearchChanged=NU.prototype.isSearchChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],NU.prototype,"actionHandlerBehavior",void 0);
_.U([_.v(_.mV),_.O("design:type",Object)],NU.prototype,"ironResizableBehavior",void 0);_.U([_.v(),_.O("design:type",vh)],NU.prototype,"ytScrollableChipCloudBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],NU.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],NU.prototype,"data",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],NU.prototype,"selected",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],NU.prototype,"isDarkTheme",void 0);_.U([_.Z({value:160}),_.O("design:type",Number)],NU.prototype,"scrollDistance",void 0);_.U([_.Z(),_.O("design:type",Object)],NU.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],NU.prototype,"darkerDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],NU.prototype,"noTopMargin",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],NU.prototype,"maskFade",void 0);_.U([_.gi("#chips"),_.O("design:type",Object)],NU.prototype,"JSC$14144_chipsSelector",void 0);_.U([_.Hl("isSearch"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NU.prototype,"isSearchChanged",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NU.prototype,"dataChanged",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NU.prototype,"onResize",null);NU=_.U([_.l0({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],NU);
_.q(NU,"yt-chip-cloud-renderer",function(){if(hvx===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Krz===void 0&&(Krz=document.createElement("template"));var n=Krz;C.call(k,n.content.cloneNode(!0),W.content.firstChild);hvx=W}W=hvx;return W},{mode:2});var k8S,Ca8=function(){return k8S!==void 0?k8S:k8S=document.createElement("template")};
document.head.appendChild(Ca8().content);var nlZ;var NgA=document.head,Yus=NgA.appendChild,Bgx;if(nlZ===void 0){var b$I=document.createElement("template");_.J(b$I,"");b$I.content.insertBefore(Ca8().content.cloneNode(!0),b$I.content.firstChild);nlZ=b$I}Bgx=nlZ;Yus.call(NgA,Bgx.content);var AVz=_.GM(function(W){var k=W.data;return _.t("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.t("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.t("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.t(_.NI,{cond:function(){return _.uX(k().image)},
then:function(C){return _.t("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.t(_.pi,{data:C,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.t("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.t(_.Ya,{text:function(){return k().subtitle}})))),_.t(_.NI,{cond:function(){var C;
return(C=k())==null?void 0:C.hasBottomDivider},
then:function(){return _.t("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var F3z=_.GM(function(W){var k=W.data;return _.t("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.t(_.Ex,{data:function(){var C;return(C=k().offerPlanDetailsItem)!=null?C:[]}},{offerPlanDetailsItemViewModel:function(C){return _.t("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.t(AVz,{data:C.data}))}})),_.t("div",null,_.t(_.NI,{cond:function(){return k().hasBottomDivider},
then:function(){return _.t("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.t("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.t("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var wox=_.GM(function(W){var k=W.data;W=_.b(_.kw(!1,void 0,"SpEGQd"));var C=W.next().value,n=W.next().value,N=_.Pj(function(){n(!C());return!1}),B=function(){var A;
return(A=k().offerPlanDetailsContainer)!=null?A:[]};
return _.t("lp-complex-offer-card-details-view-model",null,_.t("div",null,_.t(_.NI,{cond:function(){return C()},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.t("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":N,"aria-expanded":C},_.t(_.Ya,{text:function(){return k().expandedTitle}})),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.t(_.Ex,{data:B},{offerPlanDetailsContainerViewModel:function(A){return _.t("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.t(F3z,{data:A.data}))}})),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.t(_.Ya,{text:function(){return k().legalText}})))},
else:function(){return _.t("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":N,"aria-expanded":C},_.t(_.Ya,{text:function(){return k().collapsedTitle}}),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.t(_.ka,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var xcz=_.GM(function(W){var k=W.data;return _.t("lp-complex-offer-card-option-view-model",null,_.t("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.t(_.NI,{cond:function(){return k().planPricingPrimary},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.t(_.Ya,{text:function(){return k().planPricingPrimary}}))}}),_.t(_.NI,{cond:function(){return k().planPricingSecondary},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.t(_.Ya,{text:function(){return k().planPricingSecondary}}))}}),_.t(_.NI,{cond:function(){return k().primaryButton},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.t(_.Ex,{data:function(){return k().primaryButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Db");var lqA=_.GM(function(W){var k=W.data;var C=function(){var B;return((B=k())==null?void 0:B.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var n={},N={};return _.t("ytm-lp-complex-offer-card-view-model",null,_.t("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.t("div",{class:_.Li((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=C,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.t(_.NI,{cond:function(){var B;return(B=k())==null?void 0:B.bannerText},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.t("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.t(_.Ya,{text:function(){return k().bannerText}})))}}),_.t(_.NI,{cond:function(){return _.uX(k().logo)},
then:function(B){var A={};return _.t("div",{class:_.Li((A.ytmLpComplexOfferCardViewModelLogoAlignLeft=C,A),"ytmLpComplexOfferCardViewModelLogo")},_.t(_.pi,{data:B,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.t("div",{class:_.Li((n.ytmLpComplexOfferCardViewModelTitleAlignLeft=C,n),"ytmLpComplexOfferCardViewModelTitle")},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.NI,{cond:function(){var B;
return(B=k())==null?void 0:B.subtitle},
then:function(){var B={};return _.t("div",{class:_.Li((B.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=C,B),"ytmLpComplexOfferCardViewModelSubtitle")},_.t(_.Ya,{text:function(){return k().subtitle}}))}}),_.t(_.NI,{cond:function(){return k().planPricingPrimary},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.t(_.Ya,{text:function(){return k().planPricingPrimary}}))}}),_.t(_.NI,{cond:function(){return k().planPricingSecondary},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.t(_.Ya,{text:function(){return k().planPricingSecondary}}))}}),_.t(_.NI,{cond:function(){return k().purchaseButton},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.t(_.Ex,{data:function(){return k().purchaseButton}},{buttonViewModel:function(B){return _.t(_.zn,{data:B.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.t(_.NI,{cond:function(){var B;
return(B=k())==null?void 0:B.offerOptions},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.t(_.Ex,{data:function(){return k().offerOptions}},{lpComplexOfferCardOptionViewModel:xcz}))}}),_.t("div",{class:_.Li((N.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=C,N),"ytmLpComplexOfferCardViewModelLegalText")},_.t(_.Ya,{text:function(){return k().legalText}})),_.t(_.NI,{cond:function(){var B;
return(B=k())==null?void 0:B.offerCardDetails},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.t(_.Ex,{data:function(){return k().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:wox}))}}))))},"Eb");var t2s=_.GM(function(W){var k=W.data;var C=function(){var A;return((A=k())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var n={},N={},B={};return _.t("ytm-lp-complex-offer-card-section-view-model",null,_.t("div",{class:_.Li("ytmLpComplexOfferCardSectionViewModelHost")},_.t("div",{class:_.Li((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=C,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.t("div",{class:_.Li((n.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=C,n),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.t("h2",{class:_.Li((N.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
C,N),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.t(_.Ya,{text:function(){return k().title}}))),_.t(_.NI,{cond:function(){var A;
return(A=k())==null?void 0:A.subtitle},
then:function(){var A={},w={};return _.t("div",{class:_.Li((A.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=C,A),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.t("div",{class:_.Li((w.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=C,w),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.t(_.Ya,{text:function(){return k().subtitle}})))}}),_.t("div",{class:_.Li((B.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=C,B),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.t(_.Ex,{data:function(){var A;
return(A=k().offerPlans)!=null?A:[]}},{lpComplexOfferCardViewModel:function(A){return _.t("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.t(lqA,{data:A.data}))}})))))},"Fb");_.cG=UqS.getInstance();var ElS=_.GM(function(W){return _.t("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":W.shouldAriaHideContent},_.t("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:W.questionId},_.t(_.Ya,{text:W.question})))},"Gb"),aq2=_.GM(function(W){var k=W.data;
var C=W.themeOverride;W=_.b(_.kw(!1,void 0,"ljTVPd"));var n=W.next().value,N=W.next().value;W=_.Pj(function(){N(!n());return!1});
var B=function(){return n()?"EXPAND_LESS":"EXPAND_MORE"},A=("faq-container"+_.Jf(_.cG)).toString(),w="faq-question-and-answers-section-question"+_.Jf(_.cG),x={},E={};
return _.t("faq-entry-view-model-c3",null,_.t("div",{class:_.Li("yt-lp-faq-entry-view-model",(x["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return C==null?void 0:C().useDarkTheme},x))},_.t("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":W,role:"button","aria-expanded":n,"aria-labelledby":w.toString(),"tab-index":"0"},_.t(ElS,{question:function(){return k().question},
questionId:w,shouldAriaHideContent:!0}),_.t(_.NI,{cond:function(){return n()!==void 0},
then:function(){return _.t("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.t(_.ka,{icon:B,ariaHidden:!0}),_.t("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.t("div",{class:_.Li("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(E["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!n()},E))},_.t("div",{id:A},_.t(_.bI,{each:function(){return k().answers||[]}},function(a){return _.t("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.t(_.Ya,{text:a}))})))))},"Hb");
aq2.idomCompat=!0;var Xoz=_.GM(function(W){var k=W.data;var C=W.themeOverride;W={};return _.t("lp-faq-section-view-model-c3",null,_.t("div",{class:_.Li("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return k().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(C==null||!C().useDarkTheme)},W))},_.t("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.t(_.NI,{cond:function(){return k().header},
then:function(n){return _.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.t(_.Ya,{text:n}))}}),_.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.t(_.Ex,{data:function(){return k().faqs}},{faqEntryViewModel:function(n){return _.t(aq2,{data:n.data,
themeOverride:C})}})),_.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.t(_.bI,{each:function(){return k().footers||[]}},function(n){return _.t(_.Ya,{text:n})})),_.t(_.NI,{cond:function(){return k().legal},
then:function(n){return _.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.t(_.Ya,{text:n}))}}))))},"Ib");
Xoz.idomCompat=!0;var fqA=_.GM(function(W){var k=W.data;var C=W.themeOverride;_.Ee(function(){var A=k().gtmId;A&&_.YD(A,_.DE("GL",""))});
var n={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var A,w,x;return(x=(A=k().logo)==null?void 0:(w=A.accessibilityData)==null?void 0:w.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},N=_.f().resolve(_.qI(_.cj)),B=function(){return N&&N()||(C==null?void 0:C().useDarkTheme)};
return _.t("lp-header-section-view-model",null,_.t("div",{class:function(){var A=k().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",w=k().marginType==="LP_SECTION_MARGIN_TYPE_TOP",x=C==null?void 0:C().useDarkTheme,E=["lp-header-section-view-model"];A&&E.push("lp-header-section-view-model--ptc-layout-type");w&&E.push("lp-header-section-view-model__lp-header-section-margin");x&&E.push("lp-header-section-view-model--premium-force-dark-mode");return E.join(" ")}},_.t(_.NI,{cond:function(){return k().logo},
then:function(){return _.t("div",null,_.t(_.NI,{cond:B,then:function(){return _.t(_.NI,{cond:function(){var A;return(A=k().logo)==null?void 0:A.imageDark},
then:function(A){return _.t(_.pi,Object.assign({},{data:A},n))}})},
else:function(){return _.t(_.NI,{cond:function(){var A;return(A=k().logo)==null?void 0:A.imageLight},
then:function(A){return _.t(_.pi,Object.assign({},{data:A},n))}})}}))}}),_.t(_.NI,{cond:function(){return k().title},
then:function(A){return _.t("div",{class:"lp-header-section-view-model__lp-header-title"},_.t(_.Ya,{text:A}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.t(_.NI,{cond:function(){return k().subtitles},
then:function(A){return _.t(_.bI,{each:A},function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.t(_.Ya,{text:w}))})}})),_.t(_.NI,{cond:function(){return k().additionalInfo},
then:function(A){return _.t("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.t(_.Ya,{text:A}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.t(_.NI,{cond:function(){return k().primaryButton},
then:function(A){return _.t("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.t(_.Ex,{data:A},{buttonViewModel:_.zn}))}}),_.t(_.NI,{cond:function(){return k().secondaryButton},
then:function(A){return _.t("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.t(_.Ex,{data:A},{buttonViewModel:_.zn}))}})),_.t(_.NI,{cond:function(){return k().otherOffersInfo},
then:function(A){return _.t("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.t(_.Ya,{text:A}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.t(_.NI,{cond:function(){return k().billingInfo},
then:function(A){return _.t(_.bI,{each:A},function(w){return _.t("div",null,_.t(_.Ya,{text:w}))})}}))))},"Jb");
fqA.idomCompat=!0;var dcA=_.GM(function(W){var k=W.data;var C=_.pq(W.themeOverride,{useDarkTheme:!1});W={};W=_.Li("ytm-lp-headline-section-view-model",(W["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return C().useDarkTheme},W));
return _.t("lp-headline-section-view-model",null,_.t("div",{class:W},_.t("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(n){return _.t("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.t(_.Ya,{text:n}))}})))},"Kb");var mcx=_.GM(function(W){var k=W.data;var C=W.themeOverride;var n=_.f().resolve(_.qI(_.cj)),N=function(){return n&&n()||(C==null?void 0:C().useDarkTheme)},B=function(){var E,a;
var X=N()?(E=k().textBackgroundImage)==null?void 0:E.imageDark:(a=k().textBackgroundImage)==null?void 0:a.imageLight;return wWP((X==null?void 0:X.sources)||[])},A=function(){var E,a;
return N()?(E=k().featureImage)==null?void 0:E.imageDark:(a=k().featureImage)==null?void 0:a.imageLight},w=function(){return k().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},x=function(){var E,a;
return N()?(E=k().logo)==null?void 0:E.imageDark:(a=k().logo)==null?void 0:a.imageLight};
return _.t("ytm-lp-large-feature-section-view-model",null,_.t("div",{class:function(){var E=k().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",a=k().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",X=(k().index||0)%2===1,d=C==null?void 0:C().useDarkTheme,V=["yt-lp-large-feature-section-view-model"];E?V.push("yt-lp-large-feature-section-view-model--music-feature-type"):a?V.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):X||V.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
d&&V.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return V.join(" ")}},_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.t(_.NI,{cond:A,
then:function(){return _.t(_.pi,{data:function(){return A()},
alt:function(){var E,a,X;return(X=(E=k().featureImage)==null?void 0:(a=E.accessibilityData)==null?void 0:a.label)!=null?X:""},
contentMode:w})}})),_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var E;return((E=B())==null?0:E.url)?"background-image: url("+_.QG(B().url)+");":""}},_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.t(_.NI,{cond:x,
then:function(){return _.t(_.pi,{data:function(){return x()},
alt:function(){var E,a,X;return(X=(E=k().logo)==null?void 0:(a=E.accessibilityData)==null?void 0:a.label)!=null?X:""},
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"})}}),_.t(_.NI,{cond:function(){return k().eyebrowText},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.t(_.Ya,{text:function(){return k().eyebrowText}}))}}),_.t(_.NI,{cond:function(){return k().title},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.t(_.Ya,{text:function(){return k().title}}))}}),_.t(_.NI,{cond:function(){return k().subtitles},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.t(_.bI,{each:function(){return k().subtitles||[]}},function(E){return _.t(_.Ya,{text:E})}))}})))))},"Lb");
mcx.idomCompat=!0;var z0S=_.GM(function(W){return _.t("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.t("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.t(_.ka,{icon:function(){var k;return(k=W.data())==null?void 0:k.iconType},
className:function(){var k;return((k=W.data())==null?void 0:k.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.t("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.t(_.Ya,{text:function(){var k;
return(k=W.data())==null?void 0:k.text}}))))},"Mb");var DcZ=_.GM(function(W){W=_.vp(W,{config:void 0,themeOverride:void 0});var k=W.data,C=W.config,n=W.themeOverride;W={};W=_.Li("ytm-lp-offer-card-option-view-model",(W["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var x;return(x=n())==null?void 0:x.useDarkTheme},W));
var N=_.Pj(function(){var x,E;(x=C())==null||(E=x.handleRadioButtonClick)==null||E.call(x,k());return!1}),B=function(){var x;
return(x=C())==null?void 0:x.shouldDisplayRadioButton},A=_.Pj(function(){if(B()){var x,E;
(x=C())==null||(E=x.handleRadioButtonClick)==null||E.call(x,k())}return!1}),w=function(){var x;
return(x=k().featureListItems)!=null?x:[]};
return _.t("ytm-lp-offer-card-option-view-model",null,_.t("div",{class:W,"on:click":A},_.t(_.NI,{cond:B,then:function(){return _.t("div",null,_.t("input",{type:"radio","on:click":N,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var x;return!((x=C())==null||!x.isOptionSelected)}}))}}),_.t("div",null,_.t("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.t(_.Ya,{text:function(){return k().eyebrowText}})),_.t("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.t(_.Ya,{text:function(){return k().subtitle}})),_.t(_.NI,{cond:function(){return w().length>0},
then:function(){return _.t("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.t(_.Ex,{data:w},{lpFeatureListItemViewModel:z0S}))}}),_.t("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.t(_.Ya,{text:function(){return k().description}})))))},"Nb");
DcZ.idomCompat=!0;var V2b=_.GM(function(W){var k=W.data;var C=W.themeOverride;W=_.b(_.h7(function(){var B,A=(B=k().offerOptions)==null?void 0:B[0];return _.z(A,pnb)||{}}));
var n=W.next().value,N=W.next().value;W={};return _.t("ytm-lp-offer-card-view-model",null,_.t("div",{class:_.Li("ytm-lp-offer-card-view-model",(W["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(C==null||!C().useDarkTheme)},W))},_.t("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.t(_.NI,{cond:function(){return k().titleIconType},
then:function(){return _.t("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.t(_.ka,{icon:function(){var B;return((B=k().titleIconType)==null?void 0:B.toString())||""}}))}}),_.t("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.Ex,{data:function(){return k().titleBadge}},{badgeViewModel:function(B){return _.t("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.t(_.ha,{data:B.data}))}})),_.t("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.t(_.Ex,{data:function(){return k().offerOptions}},{lpOfferCardOptionViewModel:function(B){var A=B.data;
return _.t(_.qf,null,_.t("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.t(DcZ,{data:A,config:function(){var w;return{shouldDisplayRadioButton:(k().offerOptions||[]).length>1,isOptionSelected:A().id===((w=n())==null?void 0:w.id),handleRadioButtonClick:function(x){return void N(x)}}},
themeOverride:C}))}})),_.t("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.t(_.Ex,{data:function(){var B;
return(B=n())==null?void 0:B.purchaseButtonOverride}},{buttonViewModel:_.zn}))))},"Ob");
V2b.idomCompat=!0;var JVA=_.GM(function(W){var k=W.data;var C=W.themeOverride;W={};W=_.Li("ytm-lp-offer-card-section-view-model",(W["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var n;return C==null?void 0:(n=C())==null?void 0:n.useDarkTheme},W));
return _.t("ytm-lp-offer-card-section-view-model",null,_.t("div",{class:W},_.t(_.NI,{cond:function(){return k().title!==void 0},
then:function(){return _.t("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.t("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(){return _.t("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.t(_.Ya,{text:function(){return k().subtitle}}))}}))}}),_.t("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.t(_.Ex,{data:function(){return k().offerCards}},{lpOfferCardViewModel:function(n){return _.t("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.t(V2b,{data:n.data,
themeOverride:C}))}})),_.t(_.NI,{cond:function(){return k().footer},
then:function(){return _.t("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.t(_.Ya,{text:function(){return k().footer}}))}})))},"Pb");var cVx=_.GM(function(W){var k=W.data;return _.t("lp-offer-table-cell-content-view-model",null,_.t("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.t(_.Fc,null,_.t(_.Aj,{when:function(){return k().title}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return k().title}})}),_.t(_.Aj,{when:function(){return k().subTitle}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return k().subTitle}})}),_.t(_.Aj,{when:function(){return k().featureDescription}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return k().featureDescription}})}),_.t(_.Aj,{when:function(){return k().description}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return k().description}})}),_.t(_.Aj,{when:function(){return k().iconType}},function(){return _.t("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.t(_.ka,{icon:function(){return k().iconType.toString()}}))}),_.t(_.Aj,{when:function(){return k().purchaseButton}},function(){return _.t(_.Ex,{data:function(){return k().purchaseButton}},{buttonViewModel:function(C){return _.t("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.t(_.zn,{data:C.data}))}})}),_.t(_.Aj,{when:function(){return k().note}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return k().note}})}),_.t(_.Aj,{when:function(){return k().featureDetail}},function(){return _.t(_.Ya,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return k().featureDetail}})}),_.t(_.Aj,{when:function(){return k().badge}},function(){return _.t(_.Ex,{data:function(){return k().badge}},{badgeViewModel:_.ha})}))))},"Qb");
cVx.idomCompat=!0;var IqY=_.GM(function(W){var k=W.data;return _.t("lp-offer-table-cell-view-model",null,_.t("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(k().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;"}}},_.t(_.Ex,{data:function(){return k().contents}},{lpOfferTableCellContentViewModel:cVx})))},
"Rb");
IqY.idomCompat=!0;var Sub=_.GM(function(W){var k=W.data;var C=W.lpTableIsFirstRow;var n=W.lpTableIsLastRow;var N=function(){return(C==null?0:C())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},B=function(){return(C==null?0:C())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(n==null?0:n())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.t("ytm-lp-offer-table-row-view-model",null,_.t("div",{class:"yt-lp-offer-table-row-view-model"},_.t(_.Ex,{data:function(){return k().rowHeaderCell}},{lpOfferTableCellViewModel:function(A){return _.t("div",{class:N},_.t(IqY,{data:A.data}))}}),_.t(_.Ex,{data:function(){return k().contentCells}},{lpOfferTableCellViewModel:function(A){return _.t("div",{class:B},_.t(IqY,{data:A.data}))}})))},"Sb");
Sub.idomCompat=!0;var M2s=_.GM(function(W){var k=W.data;var C=W.themeOverride;var n=_.f().resolve(_.qI(_.cj)),N=function(){return _.z(k().logo,pRA)||{}};
W={};return _.t("ytm-lp-offer-table-section-view-model",null,_.t("div",{class:"yt-lp-offer-table-view-model"},_.t(_.NI,{cond:function(){var B,A;return n&&n()||(C==null?0:C().useDarkTheme)?(B=N())==null?void 0:B.imageDark:(A=N())==null?void 0:A.imageLight},
then:function(B){return _.t(_.pi,{data:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var A,w,x;return(x=(A=N())==null?void 0:(w=A.accessibilityData)==null?void 0:w.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.t(_.Ya,{text:function(){return k().subtitle}})),_.t(_.NI,{cond:function(){return k().disclaimers},
then:function(B){return _.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.t(_.bI,{each:B},function(A){return _.t("div",null,_.t(_.Ya,{text:A}))}))}}),_.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.t(_.Ex,{data:function(){return k().rows}},{lpOfferTableRowViewModel:function(B,A){return _.t(Sub,{data:B.data,
lpTableIsFirstRow:function(){return A()===0},
lpTableIsLastRow:function(){return A()===k().rows.length-1}})}})),_.t("div",{class:_.Li((W["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return k().hasFooterBackground},W))},_.t(_.NI,{cond:function(){return k().footer},
then:function(){return _.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.t(_.Ya,{text:function(){return k().footer}}))}}),_.t(_.NI,{cond:function(){return k().footerTitle},
then:function(){return _.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.t(_.Ya,{text:function(){return k().footerTitle}}))}}),_.t(_.NI,{cond:function(){return k().footerDescription},
then:function(){return _.t("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.t(_.Ya,{text:function(){return k().footerDescription}}))}}))))},"Tb");
M2s.idomCompat=!0;var QwS=_.GM(function(W){var k=W.data;var C=W.themeOverride;var n=_.f().resolve(_.qI(_.cj)),N=function(){var w;return C==null?void 0:(w=C())==null?void 0:w.useDarkTheme},B=function(){var w,x;
return n&&n()||N()?(w=k().image)==null?void 0:w.imageDark:(x=k().image)==null?void 0:x.imageLight};
W={};W=_.Li("ytm-lp-small-feature-section-view-model",(W["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=N,W));var A=function(){var w,x,E;return(E=(w=k().image)==null?void 0:(x=w.accessibilityData)==null?void 0:x.label)!=null?E:""};
return _.t("ytm-lp-small-feature-section-view-model",{class:W},_.t(_.NI,{cond:function(){return B()&&!Jqw},
then:function(){return _.t("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.t(_.pi,{data:function(){return B()},
alt:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.t("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.t("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.t(_.NI,{cond:function(){return k().title},
then:function(w){return _.t(_.Ya,{text:w})}})),_.t("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.t(_.Ya,{text:function(){return k().description}}))))},"Ub");
QwS.idomCompat=!0;var poS=_.GM(function(W){var k=W.data;var C=W.themeOverride;W={};return _.t("ytm-lp-small-feature-section-group-view-model",null,_.t("div",{class:_.Li("ytm-lp-small-feature-section-group-view-model",(W["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(C==null||!C().useDarkTheme)},W))},_.t("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.t(_.Ex,{data:function(){return k().smallFeatures}},{lpSmallFeatureSectionViewModel:function(n){return _.t("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.t(QwS,{data:n.data,
themeOverride:C}))}}))))},"Vb");
poS.idomCompat=!0;_.Gj(_.GM(function(W){var k=W.data;var C=function(){return k().forcedTheme==="USER_INTERFACE_THEME_DARK"},n=function(){return k().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},N=function(){var A="",w,x;
var E=_.f().resolve(_.qI(_.cj));E=C()||(E==null?0:E())?(w=k().themedImageViewModel)==null?void 0:w.imageDark:(x=k().themedImageViewModel)==null?void 0:x.imageLight;(w=wWP((E==null?void 0:E.sources)||[]))&&w.url&&(A=n()?"background-image: linear-gradient(to bottom, transparent, "+(k().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.QG(w.url)+");":"background-image: url("+_.QG(w.url)+");");return A},B=function(){return{useDarkTheme:C()}};
W={};return _.t("yt-section-group-view-model",null,_.t("div",{class:_.Li("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=C,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return k().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.t(_.NI,{cond:function(){return N().length},
then:function(){var A={};return _.t("div",{class:_.Li("yt-lp-section-group-view-model__bg-image",(A["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=n,A)),style:N})}}),_.t("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.t(_.Ex,{data:function(){return k().sections}},{lpFaqSectionViewModel:function(A){return _.t(Xoz,{data:A.data,
themeOverride:B})},
lpHeaderSectionViewModel:function(A){return _.t(fqA,{data:A.data,themeOverride:B})},
lpHeadlineSectionViewModel:function(A){return _.t(dcA,{data:A.data,themeOverride:B})},
lpLargeFeatureSectionViewModel:function(A){return _.t(mcx,{data:A.data,themeOverride:B})},
lpOfferCardSectionViewModel:function(A){return _.t(JVA,{data:A.data,themeOverride:B})},
lpComplexOfferCardSectionViewModel:function(A){return _.t(t2s,{data:A.data})},
lpOfferTableSectionViewModel:function(A){return _.t(M2s,{data:A.data,themeOverride:B})},
lpSmallFeatureSectionGroupViewModel:function(A){return _.t(poS,{data:A.data,themeOverride:B})}}))))},"Wb"),"yt-section-group-view-model",{props:{data:_.Ik}});var N_m=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.vlx=_.GM(function(W){function k(){if(N_m.has(W.data().displayType)){var E=!n(),a;if((a=W.disableDeselection)==null||!a.call(W)||E){W.data().selected=E;a=Object.assign({},A(),{selected:E});w(a);var X;(X=W.callback)==null||X.call(W,a,E)}}}
var C=_.yE(),n=function(){var E,a;return!!(((E=W.selected)==null?void 0:E.call(W))!==void 0?(a=W.selected)==null?0:a.call(W):A().selected)},N=_.b(_.h7(W.data)),B=N.next().value;
N=N.next().value;var A=B,w=N,x=_.kj(n92,function(){return W.data().chipEntityKey||""});
return _.t("chip-view-model",{class:"ytChipViewModelHost",el:C},_.t(X_s,{data:function(){var E,a=Object.assign({},A(),{selected:n()}),X=x(),d=(E=W.disableDeselection)==null?void 0:E.call(W);a:switch(a.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":E=1;break a;default:E=0}return{text:(X==null?void 0:X.text)||a.text,state:a.disabled?1:a.selected?0:2,type:E,onTap:YIX(a,C,k,d),accessibilityLabel:a.accessibilityLabel||a.text}}}))},"Xb");
_.vlx.idomCompat={callbacks:{callback:!0}};_.Gj(_.GM(function(W){var k=_.kj(Czw,function(){var A;return(A=W.data())==null?void 0:A.chipBarStateEntityKey}),C=function(){return W.data().disableDeselection},n=_.b(_.h7(function(){var A;
if(((A=k())==null?void 0:A.selectedIndex)!=void 0)return k().selectedIndex;var w,x;A=_.b(((w=W.data())==null?void 0:(x=w.chips)==null?void 0:x.entries())||[]);for(w=A.next();!w.done;w=A.next()){w=_.b(w.value);x=w.next().value;w=w.next().value;var E=void 0;if((E=_.z(w,_.Iu))==null?0:E.selected)return x}return-1})),N=n.next().value,B=n.next().value;
return _.t("chip-bar-view-model",{class:_.Li("ytChipBarViewModelHost",W.className),role:"tablist"},_.t(_.Ex,{data:function(){return W.data().chips}},{chipViewModel:function(A,w){return _.t("div",{class:"ytChipBarViewModelChipWrapper"},_.t(_.vlx,{data:A.data,
selected:function(){return w()===N()},
callback:function(x,E){x=!!E;E=w();B(x?E:-1);var a,X=(a=W.data())==null?void 0:a.chipBarStateEntityKey;X&&x&&_.Q3(_.Nj("chipBarStateEntity",X,{key:X,selectedIndex:E}))},
disableDeselection:W.disableDeselection||C}))}}))},"Yb"),"chip-bar-view-model",{props:{data:_.si,
className:_.si,disableDeselection:_.si}});var DN=new Map,zr=new Map,ARc=0,Vr;var aW3=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],dvX={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var e0I,swS;e0I=function(W){return function(k){return function(){return String(k())+W}}};
_.Yu=e0I("px");swS=e0I("s");var yVA=_.GM(function(W){function k(L){return function(){var Bw=V().numItemsPerGridRow,P=L()*Bw;Bw=P+Bw;var xz,Sp;return(Sp=(xz=n().contents)==null?void 0:xz.slice(P,Bw))!=null?Sp:[]}}
var C=_.vp(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),n=C.data,N=C.layoutContainerWidth,B=C.shouldUseOwnContainerSize,A=C.marginSettings;C=_.b(_.kw(!0,void 0,"qgr2Je"));var w=C.next().value,x=C.next().value,E=function(){var L,Bw=(L=_.z(n().showMoreButton,_.aS))==null?void 0:L.trackingParams;Bw&&_.Pn(_.kf(),Bw);x(!1)},a=function(){var L,Bw=(L=_.z(n().showLessButton,_.aS))==null?void 0:L.trackingParams;
Bw&&_.Pn(_.kf(),Bw);x(!0)};
C=_.yE();var X=zE4(C),d=function(){var L;return(L=n().contentAspectRatio)!=null?L:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},V=_.BH(function(){var L=_.Tn({containerWidth:B()&&X.width()>0?X.width()||N():N(),
sizing:"EXTRA_COMPACT",marginSettings:A(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L.maxContainerWidth,numItemsPerGridRow:L.numItems,contentPadding:B()?L.margin:L.contentMargin,itemWidth:L.itemWidth,itemMargin:L.gutter/2}},void 0,"pqVdjc"),c=function(){if(n().enableVerticalExpansion){if(w())return 1;
var L,Bw,P=(Bw=(L=n().contents)==null?void 0:L.length)!=null?Bw:0;return Math.ceil(P/V().numItemsPerGridRow)}return V().numItemsPerGridRow<=2?2:1},M=function(){return n().enableVerticalExpansion&&n().showLessButton&&!w()&&c()>1},p=function(){var L,Bw;
return n().enableVerticalExpansion&&n().showMoreButton&&w()&&((Bw=(L=n().contents)==null?void 0:L.length)!=null?Bw:0)>V().numItemsPerGridRow},e=function(){return!M()},u=function(){return!p()},h={};
return _.t("grid-shelf-view-model",{class:_.Li("ytGridShelfViewModelHost",W.className,(h.ytGridShelfViewModelHostHasBottomButton=function(){return M()||p()},h)),
el:C,style:_.WJ({"margin-left":(0,_.Yu)(function(){return V().contentPadding}),
"margin-right":(0,_.Yu)(function(){return V().contentPadding})})},_.t(_.NI,{cond:function(){return _.z(n().header,u1x)},
then:function(L){return _.t(_.$V,{data:L,disableHorizontalPadding:!0})}}),_.t("div",null,_.t(_.bI,{each:function(){return Array(c())}},function(L,Bw){return _.t(G8s,{className:W.className,
items:k(Bw),responsiveGridShelfLayout:V,contentAspectRatio:d})})),_.t("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.t(_.Ex,{data:function(){return n().showMoreButton}},{buttonViewModel:function(L){return _.t("div",{hidden:u},_.t(_.zn,{data:L.data,
onClick:E}))}}),_.t(_.Ex,{data:function(){return n().showLessButton}},{buttonViewModel:function(L){return _.t("div",{hidden:e},_.t(_.zn,{data:L.data,
onClick:a}))}})))},"dc");
yVA.idomCompat=!0;var G8s=_.GM(function(W){var k=W.items;var C=W.responsiveGridShelfLayout;var n=W.contentAspectRatio;W=W.className;var N=_.yE();bbw(N,function(){a:{var A=N.value;for(var w=k(),x=[],E=0;E<w.length;E++){var a=_.z(w[E],$tC);if(!a||a==null||!a.inlinePlayerData){A=null;break a}var X=A.children.item(E);if(!X){A=null;break a}x.push({thumbnailElement:X,videoData:a})}A={gridVideoPreviewData:{gridItems:x}}}return A});
var B=(0,_.Yu)(function(){return-C().itemMargin});
return _.t("div",{el:N,class:_.Li("ytGridShelfViewModelGridShelfRow",W),style:_.WJ({"margin-left":B,"margin-right":B})},_.t(_.Ex,{data:k,replacementWrapper:function(A){return _.t($cb,{responsiveGridShelfLayout:C},A)}},{shortsLockupViewModel:function(A){return _.t($cb,{responsiveGridShelfLayout:C},_.t(R18,{data:A.data,
aspectRatio:function(){return n()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),$cb=_.GM(function(W){return _.t("div",{style:_.WJ({width:(0,_.Yu)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"fc");_.Gj(yVA,"grid-shelf-view-model",{props:{data:_.Ik,layoutContainerWidth:_.Ik,shouldUseOwnContainerSize:_.Ik,marginSettings:_.Ik,className:_.Ik}});_.Gj(_.GM(function(W){var k=_.b(_.kw(!1,void 0,"YYtxR")),C=k.next().value,n=k.next().value;k={};return _.t("yt-alert-banner-view-model",{class:_.Li("ytAlertBannerViewModelHost",function(){var N;a:switch((N=W.data())==null?void 0:N.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":N="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":N="ytAlertBannerViewModelWarning";break a;default:N="ytAlertBannerViewModelInformational"}return N},(k.ytAlertBannerViewModelDismissed=C,k.ytAlertBannerViewModelFullbleed=
W.fullbleed,k.ytAlertBannerViewModelNarrow=W.narrow,k.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,k))},_.t(_.NI,{cond:function(){var N;
return!((N=W.data())==null?0:N.hideIcon)},
then:function(){return _.t("div",{class:"ytAlertBannerViewModelIcon"},_.t(_.ka,{icon:function(){return"info_circle"}}))}}),_.t("div",{class:"ytAlertBannerViewModelOuterContainer"},_.t("div",{class:"ytAlertBannerViewModelContainer"},_.t("div",{class:"ytAlertBannerViewModelContent"},_.t("div",{class:"ytAlertBannerViewModelHeading"},_.t(_.Ya,{text:function(){var N;
return(N=W.data())==null?void 0:N.heading}})),_.t("div",{class:"ytAlertBannerViewModelBody"},_.t(_.Ya,{text:function(){var N;
return(N=W.data())==null?void 0:N.body}})))),_.t(_.Ex,{data:function(){var N;
return(N=W.data())==null?void 0:N.actionButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.t(_.Ex,{data:function(){var N;
return(N=W.data())==null?void 0:N.dismissButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var B;((B=W.data())==null?0:B.disableLocalDismissBehavior)||n(!0)}})}}))},"gc"),"yt-alert-banner-view-model",{props:{data:_.Ik,
fullbleed:_.Ik,narrow:_.Ik,isInRichGrid:_.Ik}});var DvK;DvK=_.w7({chipViewModel:_.vlx,buttonViewModel:_.zn});_.Z$S=_.ry(VsJ,{callbacks:{callback:!0}});_.UK(VsJ);_.Gj(_.Z$S,"chips-shelf-view-model",{props:{data:_.Ik,callback:_.si,enableSingleChipSelection:_.Ik,disableChipsScrollAnimation:_.Ik}});var R0S=_.GM(function(W){W=_.vp(W,{disabled:!1});var k=W.active,C=W.disabled;W={};W=_.Li("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return k()},W.ytSwitchShapeTrackDisabled=function(){return C()},W));
var n={};n=_.Li("ytSwitchShapeKnob",(n.ytSwitchShapeKnobActive=function(){return k()},n));
return _.t("switch-shape",{class:"ytSwitchShapeHost"},_.t("div",{class:W}),_.t("div",{class:n}))},"hc");var olA=_.GM(function(W){var k=_.vp(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),C=k.data;W=k.className;var n=k.handleOnTapEventInParent,N=k.parentActive;k=_.b(_.h7(function(){var X;return(X=N())!=null?X:C().switchedOnByDefault||!1}));
var B=k.next().value,A=k.next().value,w=function(){return C().isDisabled},x=_.yE();
k=_.Pj(function(X){return X.key==="Enter"?(X.preventDefault(),x.value.click(),!1):!0});
var E=_.Pj(function(X){if(C().handleOnTapEventInParent||n())return!0;if(w())return!1;cR4(C(),B(),X);A(!B());return!1}),a={};
a=_.Li("ytSwitchButtonViewModelButton",(a.ytSwitchButtonViewModelTappable=function(){return!w()},a));
return _.t("switch-button-view-model",{class:_.Li("ytSwitchButtonViewModelHost",W)},_.t("button",{el:x,class:a,"on:click":E,"on:keydown":k,"aria-label":function(){return B()?C().a11yLabelSwitchedOn:C().a11yLabelSwitchedOff},
"aria-pressed":B,"aria-disabled":w},_.t(R0S,{active:B,disabled:w})))},"ic");_.UK(QNJ);_.i$s=_.ry(v9z,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.UK(v9z);var eEX;eEX=_.w7({buttonViewModel:_.zn,switchButtonViewModel:olA,avatarViewModel:_.m4,accountLinkButtonViewModel:nWz,subscribeButtonViewModel:_.W6A,collectionThumbnailViewModel:J_2,toggleButtonViewModel:_.fX});_.Bd=_.ry(yRX,{callbacks:{onTap:!0}});_.UK(yRX);_.TgS=_.GM(function(W){var k=W.data;var C=W.onTap;var n=W.onSwitch;var N=W.overrideDisabled;W=_.b(_.h7(function(){var a;return((a=SIw(E()))==null?void 0:a.switchedOnByDefault)||!1}));
var B=W.next().value,A=W.next().value;W=_.b(_.kw(!1,void 0,"Ri8Twb"));var w=W.next().value,x=W.next().value,E=function(){var a;if(!(a=k().switchButton)){var X=k();a=N==null?void 0:N();X={switchOnCommand:X.switchOnCommand,switchOffCommand:X.switchOffCommand,switchedOnByDefault:X.switchedOnByDefault,isDisabled:X.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:X.a11yLabelSwitchedOn,a11yLabelSwitchedOff:X.a11yLabelSwitchedOff};a!==void 0&&(X.isDisabled=a);a={switchButtonViewModel:X}}return a};
return _.t("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.t(_.Bd,{data:function(){return{title:k().title,subtitle:k().attributedSubtitle,leadingImage:k().leadingImage,leadingAccessory:k().leadingAccessory,isDisabled:k().isDisabled}},
onTap:function(a){var X=SIw(E());!X||X.isDisabled||k().ignoreTapUntilCommandCompletes&&w()||(C==null||C(a),cR4(X,B(),a,k().ignoreTapUntilCommandCompletes,x),A(!B()),n==null||n(B()))},
trailingAccessory:_.t(_.Ex,{data:E},{switchButtonViewModel:function(a){return _.t(olA,{data:a.data,parentActive:B,handleOnTapEventInParent:!!C})}})}))},"jc");var quY=_.w8("DOWNLOAD",{},"Download"),ugC=_.w8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),UcS=_.w8("RETRY",{},"Retry"),O$S=_.w8("PAUSE_DOWNLOADING",{},"Pause downloading"),L3b=_.w8("RESUME_DOWNLOAD",{},"Resume download"),$vX={text:quY,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},IZ={text:ugC,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},o9P={text:UcS,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Zbm={text:O$S,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},REK={text:L3b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var jwY=_.GM(function(W){var k=function(){var w=W.data();w=_.SH(w.rendererContext);var x;return(x=_.z(w,_.Kn))==null?void 0:x.videoId},C=_.X8(function(w){var x=k(),E=qI2(W.data());
return x?_.V4(w,x):E?_.Je(w,E):"TRANSFER_STATE_UNKNOWN"}),n=_.kj(_.g7w,k),N=_.X8(function(w){return _.U$p(w,k(),qI2(W.data()))}),B=function(){return T_J(C(),n(),_.SH(W.data().rendererContext),!!qI2(W.data()))},A=function(){return N()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.t("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:A},_.t(_.NI,{cond:function(){return!A()},
then:function(){return _.t(_.NI,{cond:B,then:function(w){return _.t(_.bI,{each:w},function(x){return _.t(_.Bd,{data:x,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup})})}})}}))},"kc");
jwY.idomCompat=!0;var Uvz;Uvz=_.w7({listItemViewModel:yRX,downloadListItemViewModel:jwY,switchListItemViewModel:_.TgS});_.H$s=_.ry(ObX);_.UK(ObX);var rVA=_.GM(function(W){var k=W.data;var C=W.isOverlay;W={};return _.t("yt-course-perks-view-model",{class:_.Li("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=C,W))},_.t("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",null,_.t(_.NI,{cond:function(){return k().perks},
then:function(n){return _.t(_.H$s,{data:function(){return{listItems:n()}},
isCompact:!0,isOverlay:C})}})))},"lc");_.Gj(rVA,"yt-course-perks-view-model",{props:{data:_.si,isOverlay:_.si}});_.Gj(_.GM(function(W){var k=W.data;return _.t("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.t("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.t(_.Ya,{text:function(){return k().progressSummary}})),_.t("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.t("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.WJ({width:function(){return k().progressPercentage*100+"%"}})})))},"mc"),"yt-course-progress-view-model",{props:{data:_.Ik}});var gls=_.GM(function(W){var k=_.vp(W,{}).data;return _.t("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.t(_.NI,{cond:function(){return k().progressSummary},
then:function(C){return _.t("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.t(_.Ya,{text:C}))}}),_.t("div",{class:"ytwProgressViewModelHostProgressContainer"},_.t("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.t(_.Ya,{text:function(){var C;
return(C=k())==null?void 0:C.leadingLabel}})),_.t("div",{class:"ytwProgressViewModelHostProgressBar"},_.t("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var C;return"width: "+(((C=k())==null?void 0:C.progressPercentage)||0)*100+"%"}}))))},"nc");var bQ=_.GM(function(W){var k=W.starNumber;var C=W.data;var n=function(){var N;return((N=C())==null?void 0:N.rating)||0};
return _.t(_.NI,{cond:function(){return k()},
then:function(N){return _.t(_.Fc,null,_.t(_.Aj,{when:function(){return n()>=N()-.25}},function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.ka,{icon:"STAR_FILLED"}))}),_.t(_.Aj,{when:function(){return n()>=N()-.75}},function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.ka,{icon:"STAR_HALF"}))}),_.t(_.qk3,null,function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.ka,{icon:"STAR_BORDER"}))}))}})},"oc"),Pab=_.GM(function(W){W=W.data;
return _.t("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.t(bQ,{starNumber:1,data:W}),_.t(bQ,{starNumber:2,data:W}),_.t(bQ,{starNumber:3,data:W}),_.t(bQ,{starNumber:4,data:W}),_.t(bQ,{starNumber:5,data:W}))},"pc");_.Gj(_.GM(function(W){var k=_.vp(W,{}).data;return _.t("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.t("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.t(_.Ya,{text:function(){var C;return(C=k())==null?void 0:C.title}})),_.t("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.t(_.NI,{cond:function(){return k().starProgressViewModels},
then:function(C){return _.t("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.t(_.Ex,{data:C},{progressViewModel:gls}))}}),_.t("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.t("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.t(_.Ya,{text:function(){var C;
return(C=k())==null?void 0:C.averageRatingLabel}})),_.t(_.NI,{cond:function(){return k().zeroStateText},
then:function(C){return _.t("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.t(_.Ya,{text:C}))}}),_.t(_.NI,{cond:function(){return k().starRatingViewModel},
then:function(C){return _.t("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.t(_.Ex,{data:C},{starRatingViewModel:Pab}))}}),_.t("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.t(_.Ya,{text:function(){var C;
return(C=k())==null?void 0:C.totalRatingsCountLabel}})))))},"qc"),"yt-course-ratings-view-model",{props:{data:_.si}});var K38;K38={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"}};_.h08=_.GM(function(W){var k=_.yE(),C=_.rE();_.lI(function(){requestAnimationFrame(function(){var A;(A=C.lottieEl)==null||A.addEventListener("DOMLoaded",function(){var w;(w=W.onLottieLoaded)==null||w.call(W)})});
var n,N=_.rK({browseEndpoint:{params:(n=W.data)==null?void 0:n.call(W).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),B;((B=W.shouldSkipRequest)==null?0:B.call(W))||_.Pe(k.value,"yt-navigate",{endpoint:N})});
return _.t("yt-learning-journey-loader-view-model",{class:_.Li("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var n;return((n=W.data)==null?void 0:n.call(W).targetId)||""},
el:k},_.t(_.jc,{className:_.Li("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return K38.animationConfig.name},
data:K38,animationRef:C}))},"rc");_.Gj(_.h08,"yt-learning-journey-loader-view-model",{props:{data:_.Ik,className:_.si,onLottieLoaded:_.si,shouldSkipRequest:_.si}});var Wmi=_.GM(function(W){var k=W.data;W=_.b(_.kw(-1,void 0,"r4B6h"));var C=W.next().value,n=W.next().value,N=function(x){return C()===x},B=function(x){return k().correctAnswerIndex===x},A=function(){return C()!==-1},w=_.Pj(function(){n(-1);
return!1});
return _.t("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.WJ({background:function(){return Qr(Sy(k())).backgroundColor}})},_.t(_.NI,{cond:function(){return!!k().video},
then:function(){return _.t("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.WJ({background:function(){return Qr(Sy(k())).videoBackgroundColor}})},_.t(_.Ex,{data:function(){return k().video}},{lockupViewModel:function(x){return _.t(Nk,{data:x.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.t("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.t("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.t("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.t("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.t("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.WJ({color:function(){return Qr(Sy(k())).primaryTextColor}})},_.t(_.Ya,{text:function(){var x=k(),E=A(),a=C()===k().correctAnswerIndex;
return E?a?x.successTitle:x.failureTitle:x.questionHeaderText}})),_.t(_.NI,{cond:A,
then:function(){return _.t("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":w,role:"button","aria-label":"Reset","tab-index":"0"},_.t("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.WJ({fill:function(){return Qr(Sy(k())).primaryTextColor}})},_.t("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"})))}})),
_.t("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.WJ({color:function(){return Qr(Sy(k())).secondaryTextColor}})},_.t(_.Ya,{text:function(){var x=k();
return A()?x.explanationText:x.questionSubheaderText}}))),_.t("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.t(_.bI,{each:function(){return k().optionsData||[]}},function(x,E){var a={};
return _.t("div",{class:_.Li("learningJourneyQuizViewModelHostQuizOptions",(a.learningJourneyQuizViewModelHostQuizHover=function(){return!A()},a.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return C()===k().correctAnswerIndex&&N(E())},a.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return C()!==k().correctAnswerIndex&&N(E())},a.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return A()&&!N(E())},a)),
"on:click":_.Pj(function(){if(A())return!1;n(E());return!1}),
style:_.WJ({background:function(){return A()&&N(E())?"":Qr(Sy(k())).optionColor}}),
role:"button","aria-disabled":A,"tab-index":"0"},_.t(_.NI,{cond:A,then:function(){return _.t("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var X=E();return B(X)?"0 0 24 24":"0 -960 960 960"},
style:_.WJ({fill:function(){return Qr(Sy(k())).primaryTextColor}})},_.t("path",{d:function(){var X=E();
return B(X)?"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"}}))}}),_.t(_.Ya,{text:x.optionText}))})))))},"sc");
Wmi.idomCompat=!0;_.Gj(Wmi,"learning-journey-quiz-view-model",{props:{data:_.Ik}});var k4B=_.GM(function(W){var k=_.yE();_.pX(k,function(){return W.data().rendererContext});
var C=_.vp(W,{palette:void 0,isLastItem:!1}),n=C.palette,N=C.isLastItem,B=function(){return W.data().isHighlighted},A=function(){var E;
return LYz((E=n())==null?void 0:E.iconDisabledColor)},w=function(){var E;
return LYz((E=n())==null?void 0:E.primaryTitleColor)},x=function(){var E;
return LYz((E=n())==null?void 0:E.secondaryTitleColor)};
C={};return _.t("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:k},_.t(_.Ex,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:rl}),_.t("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.t("div",{class:_.Li("ytMacroMarkerListItemViewModelTimeDescription",(C.ytMacroMarkerListItemViewModelHighlighted=B,C)),
style:_.WJ({"background-color":function(){return B()?w():A()},
color:function(){return B()?"":x()}})},_.t(_.Ya,{text:function(){return W.data().timestamp}})),_.t("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.WJ({"background-color":function(){return N()?"transparent":A()}})}),_.t("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(B()?w():x())}},_.t(_.Ya,{text:function(){return W.data().title}}))))},"tc");_.AG=_.GM(function(W){function k(S8){e("transform:translateX("+(_.DE("HTML_DIR")==="rtl"?"":"-")+S8+"px)")}
function C(S8){return Math.min(Math.max(S8,0),p()-P())}
function n(){var S8=L()+lw();return N()?(Math.round(P()/S8)||1)*S8:0}
var N=function(){return W.data().items||[]},B=function(){return W.data().previousButton},A=function(){return W.data().nextButton},w=function(){var S8,ms;
return(ms=(S8=W.disableArrows)==null?void 0:S8.call(W))!=null?ms:!1},x=function(){var S8;
return!((S8=W.forceNarrowLayout)==null||!S8.call(W))},E=_.yE(),a=_.yE(),X=_.b(_.kw(0,void 0,"yngx7d")),d=X.next().value,V=X.next().value;
X=_.b(_.kw(0,void 0,"rUOyGb"));var c=X.next().value,M=X.next().value,p=c;c=_.b(_.kw("",void 0,"jv2kWc"));X=c.next().value;var e=c.next().value;c=_.b(_.kw(0,void 0,"Xb0f0d"));var u=c.next().value,h=c.next().value,L=u;c=_.b(_.kw(0,void 0,"pt5wQ"));u=c.next().value;var Bw=c.next().value,P=u;c=_.b(_.kw(!1,void 0,"FfPefe"));var xz=c.next().value,Sp=c.next().value;c=_.b(_.kw(0,void 0,"kB5mhb"));u=c.next().value;var vw=c.next().value,lw=u;c=_.b(_.kw(0,void 0,"dnDmUd"));var G4=c.next().value,nA=c.next().value,
Xs=function(){var S8,ms=(S8=W.data())==null?void 0:S8.responsiveContainerConfiguration,pA,k3;return ms?HpK(ms==null?void 0:ms.responsiveSize):(k3=(pA=W.sizing)==null?void 0:pA.call(W))!=null?k3:"STANDARD"};
c=_.BH(function(){return!w()&&d()>0},void 0,"ZIGxke");
u=_.BH(function(){return!w()&&d()<p()-P()},void 0,"OJzhRd");
var aI=function(){V(C(d()-n()));k(d())},LA=function(){V(C(d()+n()));
k(d())},dj=function(){E.value!==null&&Tz()},hK;
_.Ee(function(){Tz();window.ResizeObserver?(hK=new ResizeObserver(_.w2(dj,0)),hK.observe(E.value)):window.addEventListener("resize",dj)});
_.fy(function(){if(window.ResizeObserver){var S8;(S8=hK)==null||S8.disconnect()}else window.removeEventListener("resize",dj)});
var Tz=function(){var S8=E.value.clientWidth,ms=W.includeMargin!==void 0?W.includeMargin():!1,pA;var k3=W.hasPeek!==void 0?W.hasPeek():!((pA=W.data())==null||!pA.hasPeek);S8=_.Tn({containerWidth:S8,hasPeek:k3,sizing:Xs(),marginSettings:ms?x()?4:1:0});vw(S8.gutter);nA(S8.margin);h(S8.itemWidth);Sp(S8.maxContainerWidth<528||x());Bw(S8.maxContainerWidth);N()&&M((S8.itemWidth+S8.gutter)*N().length-S8.gutter)};
return _.t("horizontal-shelf-view-model",{class:_.Li("ytwHorizontalShelfViewModelHost",W.className),el:E},_.t(_.NI,{cond:function(){return W.data().header},
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.WJ({width:function(){return P()+"px"},
padding:function(){return"0 "+G4()+"px"}})},_.t(_.Ex,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(S8){return _.t(_.$V,{data:S8.data,
disableHorizontalPadding:!0,forceSmallLayout:xz,useResponsiveLayout:!0})}}))}}),_.t("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.t("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.WJ({width:function(){return P()+"px"},
padding:function(){return"0 "+G4()+"px"},
overflow:function(){return w()?"auto":"hidden"}})},_.t("div",{class:"ytwHorizontalShelfViewModelItems",
el:a,style:X},_.t(_.Ex,{data:N},{macroMarkerListItemViewModel:function(S8,ms){return _.t("div",{style:_.WJ({width:function(){return L()+"px"},
"margin-right":function(){return(ms()===N().length-1?0:lw())+"px"}})},_.t(k4B,{data:S8.data,
palette:_.pq(W.palette),isLastItem:function(){return ms()===N().length-1}}))},
lockupViewModel:function(S8,ms){var pA=S8.data;return _.t("div",{style:_.WJ({width:function(){return L()+"px"},
"margin-right":function(){return(ms()===N().length-1?0:lw())+"px"}})},_.t(Nk,{data:pA,
containerType:4,sizing:Xs,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return jNP(pA())+"px"},
thumbnailTargetWidth:function(){return jNP(pA())}}))}}))),_.t(_.NI,{cond:c,
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.t(_.Ex,{data:B},{buttonViewModel:function(S8){return _.t(_.zn,{data:S8.data,onClick:aI})}}))}}),_.t(_.NI,{cond:u,
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.t(_.Ex,{data:A},{buttonViewModel:function(S8){return _.t(_.zn,{data:S8.data,onClick:LA})}}))}})))},"uc");
_.AG.idomCompat=!0;var Cw7=_.GM(function(W){var k=function(){return W.data().targetId||""},C=function(){var a;
return((a=W.data())==null?void 0:a.expansionEntityKey)||""},n=_.kj(_.CoK,C),N=function(){var a;
return n()?n().value===k():(a=W.data())==null?void 0:a.isExpanded},B=function(){if(N()){var a=!0;
W.onCollapse!==void 0&&(a=W.onCollapse());a&&_.Q3(_.Nj("stringEntity",C(),{key:C(),value:""}))}else _.Q3(_.Nj("stringEntity",C(),{key:C(),value:k()}))},A=_.Pj(B),w=function(){var a;
return(((a=W.accordionStyle)==null?void 0:a.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x={},E={};
return _.t("yt-accordion-item-view-model",{class:_.Li("ytAccordionItemViewModelHost",W.className,(x.ytAccordionItemViewModelExpanded=function(){return N()},x.ytAccordionItemViewModelHidden=function(){var a;
return(a=W.hideIfNotExpanded)==null?void 0:a.call(W)},x.ytAccordionItemViewModelMini=w,x)),
"data-target-id":k},_.t("div",{class:"ytAccordionItemViewModelContainer"},_.t("div",{class:"ytAccordionItemViewModelLeftSection","on:click":A},_.t(_.Ya,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel"})),_.t("div",{class:"ytAccordionItemViewModelRightSection"},_.t(_.Ex,{data:function(){return N()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(a){return _.t(_.zn,{data:a.data,
className:"ytAccordionItemViewModelToggleButton",onClick:B})}}))),_.t("div",{class:"ytAccordionItemViewModelContainer"},_.t("div",{class:_.Li("ytAccordionItemViewModelContent",(E.ytAccordionItemViewModelExpandedSubtitle=function(){return N()},E))},_.t(_.NI,{cond:function(){return!w()},
then:function(){return _.t(_.Ya,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.t(_.Ex,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(a){return _.t(_.AG,{data:a.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"vc");_.nzC=_.GM(function(W){var k=_.b((0,_.YIZ)(W.data)).next().value,C=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},n=function(){return C()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N=_.b(_.kw(!0,void 0,"ewf0jb")),B=N.next().value,A=N.next().value,w=function(){return n()&&B()},x=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){A(!B())}}};
N={};return _.t("yt-accordion-view-model",{class:_.Li("ytAccordionViewModelHost",(N.ytAccordionViewModelMinimized=function(){return w()},N)),
"data-target-id":function(){return W.data().targetId||""}},_.t(_.NI,{cond:function(){return n()||!!k().title},
then:function(){return _.t("div",{class:"ytAccordionViewModelHeader"},_.t(_.Ya,{text:function(){return k().title},
className:"ytAccordionViewModelTitle"}),_.t(_.NI,{cond:n,then:function(){return _.t(LX,{data:x,iconName:function(){return w()?"chevron_down":"chevron_up"}})}}))}}),_.t("div",{class:"ytAccordionViewModelContent"},_.t(_.Ex,{data:function(){return k().contents}},{accordionItemViewModel:function(E){return _.t(Cw7,{data:E.data,
className:"ytAccordionViewModelRow",accordionStyle:C,hideIfNotExpanded:w,onCollapse:function(){return n()?(A(!0),!1):!0}})}})),_.t("div",null,_.t(_.Ya,{text:function(){return k().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"wc");_.Gj(_.nzC,"yt-accordion-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k,C=(k=_.f().resolve(_.qI(_.cj)))==null?void 0:k(),n=_.b(_.kw(!1,void 0,"WGEOWd"));k=n.next().value;var N=n.next().value;n=_.b(_.kw(!0,void 0,"fAuWJ"));var B=n.next().value,A=n.next().value,w=_.yE(),x=function(V){N(!0);V={learningJourneyFormData:{query:V}};_.zj(W.data().searchEndpoint||{},{form:{formData:V}});return!1};
n=_.Pj(function(){A(w.value.value.length===0)});
var E=_.Pj(function(V){if(V.key==="Enter"&&!V.shiftKey&&!B()){var c=V.target;V.preventDefault();x(c.value)}}),a={},X={},d={};
return _.t("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.t("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.t(_.pi,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.t("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.t("div",{class:_.Li("ytLearningJourneyZeroStateSearchBar",(a.ytLearningJourneyZeroStateSearchBarDark=C,a))},_.t("textarea",{class:_.Li("ytLearningJourneyZeroStateTextInput",(X.ytLearningJourneyZeroStateTextInputDark=C,X)),el:w,"on:keyup":n,"on:keydown":E,placeholder:"What do you want to learn?",rows:1})),_.t("div",{class:_.Li("ytLearningJourneyZeroStateSearchButtonContainer",
(d.ytLearningJourneyZeroStateSearchButtonContainerDark=C,d))},_.t(_.zn,{data:function(){return _.z(W.data().searchButton,_.aS)},
className:"search-button",onClick:function(){return x(w.value.value)},
buttonOverrides:function(){return{disabled:B(),style:C?"mono-inverse":"mono",size:"XL"}}}))),_.t(_.NI,{cond:k,
then:function(){return _.t("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.t(_.Ex,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(V){return _.t(_.h08,{data:V.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.t("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.t("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),_.t(_.Ex,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(V){return _.t(XC,{data:V.data,
layout:1})}}))}}))},"xc"),"yt-learning-journey-zero-state",{props:{data:_.Ik}});var N31=_.GM(function(W){var k=W.data;return _.t("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Li("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.t(_.Ya,{text:function(){var C;return(C=k())==null?void 0:C.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.t(_.Ex,{data:function(){return k().actionButton}},{buttonViewModel:function(C){return _.t(_.zn,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:C.data})}}))},"yc");var Y2i=_.GM(function(W){var k=W.data;return _.t("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Li("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.t(_.Ya,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var C;return(C=k())==null?void 0:C.displayName},
ellipsisTruncate:!0}),_.t(_.Ex,{data:function(){return k().badge}},{buttonViewModel:function(C){return _.t(_.zn,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:C.data})}}))},"zc");_.Gj(_.GM(function(W){var k=W.data;return _.t("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.t("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.t(_.Ya,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var C;return(C=k())==null?void 0:C.rank}})),_.t("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.t(_.Ex,{data:function(){return k().avatar}},{avatarViewModel:_.D_})),_.t("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.t(_.Ex,{data:function(){return k().content}},{liveLeaderboardItemChannelContentViewModel:Y2i,
liveLeaderboardItemActionContentViewModel:N31})),_.t(_.Ya,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var C;return(C=k())==null?void 0:C.points}}))},"Ac"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;return _.t("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.t(_.Ya,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var C,n;return(C=k())==null?void 0:(n=C.ranking)==null?void 0:n.rank}}),_.t("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.t(_.Ex,{data:function(){return k().avatar}},{avatarViewModel:_.D_})),_.t(_.Ya,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var C,n;return(C=k())==null?void 0:(n=C.channelContent)==null?void 0:n.channelName}}),_.t(_.Ya,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var C;return(C=k())==null?void 0:C.points}}))},"Bc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Ik}});var B3E=_.GM(function(W){W=_.vp(W,{wrapper:!1}).wrapper;return _.t(_.NI,{cond:W,then:function(){return _.t("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.t("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.t("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Cc");
B3E.idomCompat=!0;var bI7=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],AKZ=_.GM(function(W){var k=W.data;var C=_.yE(),n=_.BH(function(){return k().command},void 0,"CGDtVe");
_.XM(function(){n()&&_.dy(n(),{form:{element:C.value}})});
return _.t("div",{el:C},_.t(_.NI,{cond:function(){return k().qrCodeImage},
then:function(N){return _.t(_.pi,{data:N,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.t(_.NI,{cond:function(){return k().spinner},
then:function(){return _.t(B3E,null)}})}}),_.t(_.NI,{cond:function(){return k().label},
then:function(N){return _.t(_.Ya,{text:N,className:"YtQrCodeRendererHostLabel"})}}),_.t(_.NI,{cond:function(){return k().labels},
then:function(N){return _.t("div",{class:"YtQrCodeRendererHostLabels"},_.t(_.bI,{each:N},function(B){return _.t(_.Ya,{text:B})}))}}))},"Ec");_.Gj(_.GM(function(W){var k=W.data;var C=_.BH(function(){return k().qrEntityKey},void 0,"joYCxd"),n=_.BH(function(){return k().deleteEntityOnDismiss},void 0,"x3yAde"),N=_.BH(function(){return k().command},void 0,"dJe1Re"),B=_.kj(vmK,C);
W=_.BH(function(){return k().style&&bI7.includes(k().style)},void 0,"rGILzf");
var A=_.yE();_.uT(A,{visibilityCallback:function(w){w&&N()&&_.dy(N())},
showOption:{calledOnce:!0,state:"visible"}});_.Ee(function(){_.fy(function(){n()&&C()&&_.SY().dispatch(_.Nj("qrCodeEntity",C()))})});
return _.t("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:A},_.t(_.NI,{cond:W,then:function(){return _.t(_.NI,{cond:B,then:function(w){return _.t(AKZ,{data:w})}})}}))},"Dc"),"yt-qr-code-renderer",{props:{data:_.Ik}});var Fmi=_.GM(function(W){var k=W.data;var C=W.topbarOffset;var n,N=((n=_.f().resolve(_.qI(_.cj)))==null?void 0:n())||!1;return _.t("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var B=k();var A,w,x=N?(A=B.config)==null?void 0:A.darkThemeBackgroundColor:(w=B.config)==null?void 0:w.lightThemeBackgroundColor;B=x?_.a8(x):void 0;B="background-color: "+B+";";C!==void 0&&(B+="top: -"+C()+"px;");return B},
"aria-hidden":!0},_.t(_.NI,{cond:function(){var B,A,w;return!!((B=k().backgroundImageConfig)==null?0:(A=B.image)==null?0:(w=A.sources)==null?0:w.length)},
then:function(){return _.t(_.pi,{data:function(){var B;return(B=k().backgroundImageConfig)==null?void 0:B.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.t("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+Hbm(N,k().gradientColorConfig)+";"}}))},"Fc");
Fmi.idomCompat=!0;var wwi=_.ry(rRK);_.UK(rRK);var xX1=_.GM(function(W){var k=W.data;var C=W.isOverlay;return _.t("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.t("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.t(_.Ex,{data:function(){return k().header}},{sectionHeaderViewModel:function(n){return _.t(_.$V,{data:n.data,
isOverlay:C})}})),_.t("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.t(_.Ex,{data:function(){return k().channelInfoButtons}},{flexibleActionsViewModel:XC})),_.t("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.t(_.Ex,{data:function(){return k().description}},{descriptionPreviewViewModel:function(n){return _.t(wwi,{data:n.data,
isOverlay:C})}})))},"Gc");
xX1.idomCompat=!0;var lXZ=_.GM(function(W){var k=W.data;var C={};return _.t("factoid-view-model",{class:_.Li("ytwFactoidViewModelHost",(C.ytwFactoidViewModelHostOverlay=W.isOverlay,C))},_.t(_.Ya,{text:function(){return k().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.t(_.Ya,{text:function(){return k().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Hc");
lXZ.idomCompat=!0;var tpC=_.GM(function(W){var k=W.data;var C=W.isOverlay;return _.t("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.t(_.Ex,{data:function(){return k().factoids}},{factoidViewModel:function(n){return _.t(lXZ,{data:n.data,
isOverlay:C})}}))},"Ic");
tpC.idomCompat=!0;_.Ezt=_.GM(function(W){var k=W.data;var C=W.isOverlay;return _.t("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.t(_.Ex,{data:function(){return k().items}},{channelInfoViewModel:function(n){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(xX1,{data:n.data,
isOverlay:C}))},
coursePerksViewModel:function(n){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(rVA,{data:n.data,isOverlay:C}))},
descriptionPreviewViewModel:function(n){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(wwi,{data:n.data,isOverlay:C}))},
factoidsRowViewModel:function(n){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(tpC,{data:n.data,isOverlay:C}))}}))},"Jc");var aX1=_.GM(function(W){return _.t("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.t(_.Ex,{data:function(){return W.data().content}},{courseMetadataViewModel:function(k){return _.t(_.Ezt,{data:k.data,
isOverlay:W.isOverlay})}}))},"Kc");var Xw7=_.GM(function(W){var k=W.data;W=W.className;var C=_.yE(),n=function(){var B;return _.Mj((B=k())==null?void 0:B.rendererContext)},N={};
N=(N["dynamic-text-view-model-wiz"]=!0,N["dynamic-text-view-model-wiz--tappable"]=function(){return n()},N);
_.pX(C,function(){var B;return(B=k())==null?void 0:B.rendererContext});
return _.t("yt-dynamic-text-view-model",{el:C,role:function(){return n()?"link":void 0},
tabindex:function(){return n()?0:void 0},
class:_.Li(W,N)},_.t("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var B,A,w;return(w=(A=_.z((B=k())==null?void 0:B.rendererContext,_.vB))==null?void 0:A.label)!=null?w:""}},_.t(_.Ya,{text:function(){return k().text},
userInput:!0})))},"Lc");
Xw7.idomCompat=!0;_.FW=_.GM(function(W){var k=W.data;var C=W.isPositionRelative;var n=_.$I(),N=_.hEm("(max-width: 527.9px)"),B=function(){var A,w;return(w=(A=k())==null?void 0:A.style)!=null?w:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};W=(W["yt-image-banner-view-model-wiz"]=!0,W["yt-image-banner-view-model-wiz--inset"]=function(){return WMw(B())},W["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.m$(!0)&&!(C==null?0:C())},W["yt-image-banner-view-model-wiz--small-inset"]=function(){return WMw(B())&&N()},W["yt-image-banner-view-model-wiz--tappable"]=function(){var A;
return _.m$(n.value)&&_.Mj((A=k())==null?void 0:A.rendererContext)},W);
_.pX(n,function(){var A;return(A=k())==null?void 0:A.rendererContext});
return _.t("yt-image-banner-view-model",{el:n,class:_.Li(W)},_.t(_.NI,{cond:function(){var A;return(A=k())==null?void 0:A.image},
then:function(){return _.t(_.pi,{data:function(){return k().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.t(_.Ex,{data:function(){var A;
return(A=k())==null?void 0:A.overlays}},{thumbnailHoverOverlayViewModel:nGs}))},"Mc");
_.FW.idomCompat=!0;var p6=_.w7({descriptionPreviewViewModel:rRK,dynamicTextViewModel:Xw7,contentPreviewImageViewModel:_.W2,contentMetadataViewModel:RzA,flexibleActionsViewModel:Y_x,attributionViewModel:kC,imageBannerViewModel:_.FW,decoratedAvatarViewModel:b92,cinematicContainerViewModel:Fmi,flexibleContainer:aX1});_.UK(AmI);var fXB,dX$;fXB=_.GM(function(W){var k=W.condition;var C=W.content;return _.t(_.NI,{cond:k,then:function(){return _.t("div",{class:"page-header-view-model-wiz__scroll-container"},C())},
else:function(){return C()}})},"Nc");
dX$=_.GM(function(W){var k=W.data;var C=W.noPadding;var n=W.enableBanner;var N=W.cinematicContainerTopbarOffset;var B=W.allowCinematicContainerOverflow;var A=W.displayAsSidebar;var w=W.displayAsPanel;var x=kH3(),E=function(){return!!k().image||!!k().animatedImage},a=function(){return!!k().background},X=function(){return(A==null?0:A())||(w==null?0:w())?1:x()},d=function(){return X()===1},V=function(){return d()||X()===2},c=function(){return X()===4},M=function(){return KYw(k(),!!k().heroImage,X(),
CnX(k()),A==null?void 0:A())};
W={};W=_.Li((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=function(){return!(C==null||!C())},W["page-header-view-model-wiz--small-top-padding"]=function(){return d()&&!k().actions||X()===2&&!(E()||k().heroImage)},W["page-header-view-model-wiz--small-bottom-padding"]=function(){return V()&&!k().actions},W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(B==null?0:B())},W["page-header-view-model-wiz--display-as-sidebar"]=A,W["page-header-view-model-wiz--display-as-panel"]=
w,W));
var p={},e=_.Li((p["page-header-view-model-wiz__page-header-headline"]=!0,p["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return M().allowFullWidth},p)),u=function(){return d()&&(!!k().heroImage||E())&&CnX(k())>0},h=function(){return u()&&(w==null?void 0:w())};
p={};var L=_.Li((p["page-header-view-model-wiz__page-header-title"]=!0,p["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!u()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return u()&&!h()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=h,p["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=a,p));
p={};var Bw=_.Li((p["page-header-view-model-wiz__page-header-headline-image"]=!0,p["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!k().heroImage&&V()},p));
p={};var P=_.Li((p["page-header-view-model-wiz__page-header-banner-container"]=n,p["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var lw;return(n==null?void 0:n())&&((lw=_.z(k().banner,_.bDJ))==null?void 0:lw.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},p));
p={};var xz=_.Li((p["page-header-view-model-wiz__page-header-content-metadata"]=!0,p["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=a,p));p={};var Sp=_.Li((p["page-header-view-model-wiz__page-header-flexible-actions"]=!0,p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!k().metadata||V()},p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!V()},p));
p={};var vw=_.Li((p["page-header-view-model-wiz__page-header-attribution"]=!0,p["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=a,p));return _.t("yt-page-header-view-model",{class:W},_.t(_.NI,{cond:a,then:function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-background"},_.t(_.Ex,{data:function(){return k().background}},{cinematicContainerViewModel:function(lw){return _.t(Fmi,{data:lw.data,
topbarOffset:N})}}))}}),_.t(fXB,{condition:function(){return!(A==null||!A())},
content:function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-content"},_.t(_.NI,{cond:function(){return(n==null?void 0:n())&&k().banner},
then:function(){return _.t("div",{class:P},_.t(_.Ex,{data:function(){return k().banner}},{imageBannerViewModel:_.FW}))}}),_.t("div",{class:e},_.t(_.NI,{cond:E,
then:function(){return _.t(_.Ex,{data:function(){var lw;(lw=k().animatedImage)||(lw=k(),E()&&(lw=Object.assign({},lw),NMp(lw,X(),CnX(k()))),lw=lw.image);return lw}},{contentPreviewImageViewModel:function(lw){return _.t(_.W2,{data:lw.data,
className:Bw,imageSizeConfig:M})},
decoratedAvatarViewModel:function(lw){return _.t(_.VO,{data:lw.data,className:Bw})}})}}),_.t(_.NI,{cond:function(){return!!k().heroImage&&!(V()&&!M().allowFullWidth)},
then:function(){return _.t(_.Ex,{data:function(){return k().heroImage}},{contentPreviewImageViewModel:function(lw){return _.t(_.W2,{data:lw.data,
className:Bw,imageSizeConfig:M})}})}}),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.t(_.NI,{cond:function(){return!!k().heroImage&&V()&&!M().allowFullWidth},
then:function(){return _.t("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.t(_.Ex,{data:function(){return k().heroImage}},{contentPreviewImageViewModel:function(lw){return _.t(_.W2,{data:lw.data,
className:Bw,imageSizeConfig:M})}}))}}),_.t(_.Ex,{data:function(){return k().title}},{dynamicTextViewModel:function(lw){return _.t(Xw7,{data:lw.data,
className:L})}}),_.t(_.Ex,{data:function(){return k().metadata}},{contentMetadataViewModel:function(lw){return _.t(_.oib,{data:lw.data,
layout:function(){return d()?1:0},
className:xz,isOverlay:a,useMediumText:c})}}),_.t(_.NI,{cond:function(){return k().description&&!d()},
then:function(){return _.t(_.Ex,{data:function(){return k().description}},{descriptionPreviewViewModel:function(lw){return _.t(wwi,{data:lw.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:a,maxLinesOverride:function(){return d()?void 0:1},
useMediumText:c})}})}}),_.t(_.NI,{cond:function(){return k().attribution&&!V()},
then:function(){return _.t(_.Ex,{data:function(){return k().attribution}},{attributionViewModel:function(lw){return _.t(kC,{data:lw.data,
className:vw,useMediumText:c})}})}}),_.t(_.NI,{cond:function(){return k().actions&&!V()},
then:function(){return _.t(_.Ex,{data:function(){return k().actions}},{flexibleActionsViewModel:function(lw){return _.t(XC,{data:lw.data,
layout:function(){return YWJ(X())},
className:Sp})}})}}))),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.t(_.NI,{cond:function(){return k().description&&d()},
then:function(){return _.t(_.Ex,{data:function(){return k().description}},{descriptionPreviewViewModel:function(lw){return _.t(wwi,{data:lw.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:a,maxLinesOverride:function(){return d()?void 0:1},
useMediumText:c})}})}}),_.t(_.NI,{cond:function(){return k().attribution&&V()},
then:function(){return _.t(_.Ex,{data:function(){return k().attribution}},{attributionViewModel:function(lw){return _.t(kC,{data:lw.data,
className:vw,useMediumText:c})}})}}),_.t(_.NI,{cond:function(){return k().actions&&V()},
then:function(){return _.t(_.Ex,{data:function(){return k().actions}},{flexibleActionsViewModel:function(lw){return _.t(XC,{data:lw.data,
layout:function(){return YWJ(X())},
className:Sp})}})}})),_.t("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.t(_.Ex,{data:function(){return k().bottomMetadataFlexibleContainer}},{flexibleContainer:function(lw){return _.t(aX1,{data:lw.data,
isOverlay:a})}})))}}))},"Oc");
_.mXC=_.m("web_enable_sink_page_header_view_model")?dX$:AmI;_.zc$=_.m("web_enable_sink_page_header_view_model")?dX$:_.ry(AmI);dX$.idomCompat=!0;_.Gj(_.GM(function(W){var k=_.b(_.kw(!1,void 0,"vVRl3b")),C=k.next().value,n=k.next().value;return _.t("yt-official-card-view-model",{class:_.Li("ytOfficialCardViewModelHost",W.className),style:_.WJ({"background-color":function(){var N,B=OZP((N=W.data())==null?void 0:N.backgroundColor);return B?_.Xi(B):void 0}})},_.t(_.Ex,{data:function(){return W.data().header}},{pageHeaderViewModel:function(N){return _.t(_.zc$,{data:N.data,
noPadding:!0})}}),_.t(_.Ex,{data:function(){return W.data().contents}},{horizontalShelfViewModel:_.AG}),_.t(_.NI,{cond:C,
then:function(){return _.t("div",{class:"ytOfficialCardViewModelExpandedContent"},_.t(_.Ex,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(N){return _.t(_.AG,{data:N.data,
sizing:"MINI"})}}),_.t("div",{class:"ytOfficialCardViewModelCollapseButton"},_.t(_.Ex,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
onClick:function(){n(!C())}})}})))},
else:function(){return _.t("div",{class:"ytOfficialCardViewModelExpandButton"},_.t(_.Ex,{data:function(){return W.data().expandButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
onClick:function(){n(!C())}})}}))}}))},"Pc"),"yt-official-card-view-model",{props:{data:_.Ik,
className:_.Ik}});var FM2=_.w7({buttonViewModel:_.zn});_.UK(wcJ);_.qN(wcJ,"ytw-search-friction-view-model",{propNames:["data"]});_.wW=_.GM(function(W){var k=_.yE(),C,n=(C=_.f().resolve(_.qI(_.cj)))==null?void 0:C();_.XM(function(){var N=k.value;var B=new qSA,A=new Map(B.JSC$7177_sanitizerTable.globalAttributePolicies);A.set("style",{policyAction:4});B.JSC$7177_sanitizerTable=new l1(B.JSC$7177_sanitizerTable.allowedElements,B.JSC$7177_sanitizerTable.elementPolicies,B.JSC$7177_sanitizerTable.allowedGlobalAttributes,A,B.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);var w=["data-time"];if(w===void 0)A=new Set(B.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes),
A.add("data-"),B.JSC$7177_sanitizerTable=new l1(B.JSC$7177_sanitizerTable.allowedElements,B.JSC$7177_sanitizerTable.elementPolicies,B.JSC$7177_sanitizerTable.allowedGlobalAttributes,B.JSC$7177_sanitizerTable.globalAttributePolicies,A);else{A=new Set(B.JSC$7177_sanitizerTable.allowedGlobalAttributes);w=_.b(w);for(var x=w.next();!x.done;x=w.next()){x=x.value;if(x.indexOf("data-")!==0)throw Error("qa`"+x);A.add(x)}B.JSC$7177_sanitizerTable=new l1(B.JSC$7177_sanitizerTable.allowedElements,B.JSC$7177_sanitizerTable.elementPolicies,
A,B.JSC$7177_sanitizerTable.globalAttributePolicies,B.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes)}A=new Set(B.JSC$7177_sanitizerTable.allowedGlobalAttributes);A.add("class");B.JSC$7177_sanitizerTable=new l1(B.JSC$7177_sanitizerTable.allowedElements,B.JSC$7177_sanitizerTable.elementPolicies,A,B.JSC$7177_sanitizerTable.globalAttributePolicies,B.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);_.jN(N,_.Z78(B.build(),lSK(W.text())));tJm(k.value)});
C={};return _.t("div",null,_.t("markdown-div",{class:_.Li("ytwMarkdownDivHost",(C.ytwMarkdownDivDark=n,C.ytwMarkdownDivHostSmall=function(){var N;return((N=W.isSmallText)==null?void 0:N.call(W))||!1},C)),
el:k}))},"Qc");
_.wW.idomCompat=!0;var DXB=_.GM(function(W){var k=W.imageData;var C=_.pq(W.isInList,!1),n=function(){return C()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.t("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.t(_.NI,{cond:function(){return k().image},
then:function(N){return _.t(_.pi,{data:N,alt:function(){return n().alt},
contentMode:function(){return n().contentMode},
targetWidth:function(){return n().targetWidth},
targetHeight:function(){return n().targetHeight},
className:function(){return n().className}})}}),_.t("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.t("div",{class:_.Li("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.bI,{each:function(){var N;
return(N=k().description)!=null?N:[]}},function(N){return _.t("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.t(xu,{content:N}))})))},"Rc"),Vp1=_.GM(function(W){var k=W.list;
var C=function(){var n;return(n=k().items)!=null?n:[]};
return _.t("div",{class:"ytwGenAiRichTextViewModelListContent"},_.t(_.NI,{cond:function(){return k().title},
then:function(n){return _.t("div",{class:_.Li("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.t(_.Ya,{text:n}))}}),_.t(_.NI,{cond:function(){return k().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.t("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.t(_.bI,{each:C},function(n){return _.t("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.t(xu,{content:n,isInList:!0}))}))}}),_.t(_.NI,{cond:function(){return k().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.t("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.t(_.bI,{each:C},function(n){return _.t("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.t(xu,{content:n,isInList:!0}))}))}}),_.t(_.NI,{cond:function(){return k().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.t("div",{class:"ytwGenAiRichTextViewModelImageList"},_.t(_.bI,{each:C},function(n){return _.t("div",{class:"ytwGenAiRichTextViewModelListItem"},_.t(xu,{content:n,isInList:!0}))}))}}))},"Sc"),JKT=_.GM(function(W){var k=W.table;
return _.t("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.t("thead",null,_.t("tr",null,_.t(_.bI,{each:function(){var C,n;return(n=(C=k().header)==null?void 0:C.cells)!=null?n:[]}},function(C){return _.t("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.t(_.bI,{each:function(){return C.contents}},function(n){return _.t(xu,{content:n})}))}))),_.t("tbody",null,_.t(_.bI,{each:function(){var C;
return(C=k().rows)!=null?C:[]}},function(C){return _.t("tr",null,_.t(_.bI,{each:function(){return C.cells}},function(n){return _.t("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.t(_.bI,{each:function(){return n.contents}},function(N){return _.t(xu,{content:N})}))}))})))},"Tc"),xu=_.GM(function(W){var k=W.content;
var C=_.pq(W.isInList,!1),n=function(){var N,B;return(B=(N=k().contentBlock)==null?void 0:N.contents)!=null?B:[]};
return _.t("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.t(_.NI,{cond:function(){return k().text},
then:function(N){return _.t(_.Ya,{className:"ytwGenAiRichTextViewModelText",text:N})}}),_.t(_.NI,{cond:function(){return k().image},
then:function(N){return _.t(DXB,{imageData:N,isInList:C})}}),_.t(_.NI,{cond:function(){return k().list},
then:function(N){return _.t(Vp1,{list:N})}}),_.t(_.NI,{cond:function(){return k().contentBlock},
then:function(){return _.t("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.t(_.bI,{each:n},function(N){return _.t(xu,{content:N,isInList:!1})}))}}),_.t(_.NI,{cond:function(){return k().table},
then:function(N){return _.t(JKT,{table:N})}}))},"Uc"),cK$=_.GM(function(W){var k={};
k=_.Hj("ytwGenAiRichTextViewModelHost",(k.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.LS("search_overview_link_style")),k));return _.t("gen-ai-rich-text-view-model",{class:k},_.t(xu,{content:function(){return W.data().content}}))},"Vc");_.UK(Ehc);_.UK(vG);_.IXA=_.GM(function(W){var k=W.data;var C=function(){var M;return((M=k().loadingUi)!=null?M:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},n=function(){return k().isLoading&&(C()==="UNSPECIFIED"||C()==="GHOST_CARD")},N=function(){return!k().isLoading},B=function(){return!!k().content&&!k().contents},A=function(){return!!k().contents},w=function(){return!!k().nextQueryButtons},x=function(){return k().isLoading&&C()==="INVISIBLE"},E=function(){var M,p;
return(p=(M=k().headerIcon)==null?void 0:M.iconType)!=null?p:""},a=function(){var M;
return(M=k().content)!=null?M:""},X=function(){return!!k().sourcesSection},d,V=!((d=_.f().resolve(_.qI(_.cj)))==null||!d()),c=_.BH(function(){var M=[],p=k().contents;
if(p)for(var e=0;e<p.length;e++){var u=_.z(p&&p[e],kRs);u&&M.push(u)}return M},void 0,"ycU97e");
_.Ee(function(){k().isLoading||_.cN("so_re",void 0,"search_overview_answer")});
return _.t("ytd-overview-answer-view-model",{class:function(){var M={};M=(M.ytdOverviewAnswerViewModelHost=!0,M.ytdOverviewAnswerViewModelDarkBackground=V&&!x(),M.ytdOverviewAnswerViewModelLightBackground=!V&&!x(),M);return _.Hj(M)}},_.t(_.NI,{cond:function(){return!x()},
then:function(){return _.t(_.qf,null,_.t("h2",null,_.t("div",{class:"ytdOverviewAnswerViewModelHeader"},_.t(_.NI,{cond:E,then:function(M){return _.t("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.t(_.ka,{icon:M}))}}),_.t("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.t("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return k().headerText}),_.t("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.t(_.Ya,{text:function(){return k().headerSubtext}}))))),_.t(_.NI,
{cond:n,
then:function(){return Ehc()}}),_.t(_.NI,{cond:N,
then:function(){return _.t(_.qf,null,_.t(_.NI,{cond:B,then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelText"},_.t(_.wW,{text:a,isSmallText:!0}))}}),_.t(_.NI,{cond:A,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelRichText"},_.t(_.bI,{each:c},function(M){return _.t(cK$,{data:M})}))}}),_.t(_.NI,{cond:w,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.t(_.Ex,{data:function(){return k().nextQueryButtons}},{buttonViewModel:function(M){return _.t(_.zn,{data:M.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.AG}))}}),_.t("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.t("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.t(_.NI,{cond:function(){return!!_.z(k().likeButtonViewModel,vpP)&&!!_.z(k().dislikeButtonViewModel,eTm)},
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.t(_.AJS,{data:function(){return _.z(k().likeButtonViewModel,vpP)},
disableIconAnimation:!0}),_.t(_.bfb,{data:function(){return _.z(k().dislikeButtonViewModel,eTm)}}))}})),_.t(_.NI,{cond:function(){var M;
return(M=k().sourcesSection)==null?void 0:M.headerText},
then:function(M){return _.t("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.t(_.Ya,{text:M}))}})),_.t(_.NI,{cond:X,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelSources"},_.t(_.Ex,{data:function(){var M;return(M=k().sourcesSection)==null?void 0:M.sourcesShelf}},{buttonViewModel:_.zn,
horizontalShelfViewModel:function(M){return _.t(_.AG,{data:M.data,includeMargin:!0,hasPeek:!0})}}))}}),_.t(_.NI,{cond:function(){return k().disclaimerText},
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.t(_.Ya,{text:function(){return k().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Wc");var S2C=_.GM(function(W){var k=W.data;var C=W.active;var n=_.yE();_.XM(function(){var N,B,A,w=((N=_.f().resolve(_.qI(_.cj)))==null?0:N())?(B=k())==null?void 0:B.darkThemeColorPalette:(A=k())==null?void 0:A.lightThemeColorPalette;w&&(w.invertedBackground&&n.value.style.setProperty("--timestamp-active-background-color",_.Xi(w.invertedBackground)),w.additiveBackground&&n.value.style.setProperty("--timestamp-background-color",_.Xi(w.additiveBackground)),w.textPrimaryInverse&&n.value.style.setProperty("--timestamp-active-color",
_.Xi(w.textPrimaryInverse)),w.textSecondary&&n.value.style.setProperty("--timestamp-color",_.Xi(w.textSecondary)))},"PUzFSd");
W={};return _.t("transcript-segment-view-model",{class:_.Li("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=C,W.ytwTranscriptSegmentViewModelHostModern=_.m("enable_timeline_view_modern_transcript")||_.m("enable_timeline_view_modern_transcript_fe"),W)),el:n},_.t(_.NI,{cond:function(){var N;return(N=k())==null?void 0:N.timestamp},
then:function(N){var B={};return _.t("div",{class:_.Li("ytwTranscriptSegmentViewModelTimestamp",(B.ytwTranscriptSegmentViewModelTimestampActive=C,B))},N)}}),_.t(_.Ya,{text:function(){var N,B,A;
return(A=(N=k())==null?void 0:N.attributedText)!=null?A:{content:(B=k())==null?void 0:B.simpleText}},
linkInheritColor:!0}))},"Xc");var Mp1=_.GM(function(W){var k=W.data;return _.t("div",{class:"yt-video-attributes-section-view-model__header"},_.t("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return k().headerTitle}),_.t(_.NI,{cond:function(){return k().headerSubtitle},
then:function(){return _.t("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return k().headerSubtitle})}}))},"Yc"),QJS=_.GM(function(W){function k(c){return Math.max(Math.min(c,0),E()-w())}
var C=W.data;var n=_.yE(),N=_.yE();W=_.b(_.kw(0,void 0,"ucDlDf"));var B=W.next().value,A=W.next().value,w=B;W=_.b(_.kw(0,void 0,"lHzSub"));B=W.next().value;var x=W.next().value,E=B;W=_.b(_.kw(0,void 0,"Q8fDIe"));var a=W.next().value,X=W.next().value;_.Ee(function(){var c=function(){A(N.value.scrollWidth);x(n.value.clientWidth)};
c();if(window.ResizeObserver){var M=new ResizeObserver(c);M.observe(n.value);_.fy(function(){M.disconnect()})}});
var d=function(){X(k(a()+E()))},V=function(){X(k(a()-E()))};
return _.t("yt-video-attributes-section-view-model",null,_.t("div",{class:"yt-video-attributes-section-view-model"},_.t(_.NI,{cond:function(){return C().headerTitle},
then:function(){return _.t(Mp1,{data:C})}}),_.t("div",{class:_.Li("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:n},_.t("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.WJ({transform:function(){var c=a();_.DE("HTML_DIR")==="rtl"&&(c*=-1);return"translateX("+c+"px)"}}),
el:N},_.t(_.Ex,{data:function(){return C().videoAttributeViewModels}},{videoAttributeViewModel:PLx}))),_.t(_.Ex,{data:function(){return C().footerButton}},{buttonViewModel:function(c){return _.t(_.zn,{data:c.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.t(_.NI,{cond:function(){return a()<0&&C().previousButton},
then:function(){return _.t("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.t(_.Ex,{data:function(){return C().previousButton}},{buttonViewModel:function(c){return _.t(_.zn,{data:c.data,
onClick:d})}}))}}),_.t(_.NI,{cond:function(){return a()>E()-w()&&C().nextButton},
then:function(){return _.t("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.t(_.Ex,{data:function(){return C().nextButton}},{buttonViewModel:function(c){return _.t(_.zn,{data:c.data,
onClick:V})}}))}})))},"Zc");
QJS.idomCompat=!0;var pw1=_.GM(function(W){var k=W.data;var C=W.active;var n={},N={};return _.t("timeline-item-view-model",{class:_.Li("ytwTimelineItemViewModelHost",(n.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,n.ytwTimelineItemViewModelModern=_.m("enable_timeline_view_modern_transcript")||_.m("enable_timeline_view_modern_transcript_fe"),n))},_.t("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.t("div",{class:_.Li("ytwTimelineItemViewModelTimestamp",(N.ytwTimelineItemViewModelTimestampActive=
C,N))},function(){return k().timestamp})),_.t("div",{class:"ytwTimelineItemViewModelContentItems"},_.t(_.Ex,{data:function(){return k().contentItems}},{transcriptSegmentViewModel:function(B){return _.t(S2C,{data:B.data,
active:C})},
videoAttributesSectionViewModel:QJS})))},"$c");var vzE=_.GM(function(W){var k=W.data;W={};return _.t("timeline-chapter-view-model",{class:_.Li("ytwTimelineChapterViewModelHost")},_.t("div",{class:_.Li("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.m("enable_timeline_view_modern_transcript")||_.m("enable_timeline_view_modern_transcript_fe"),W))},function(){return k().title}),_.t(_.Ex,{data:function(){return k().contents}},{timelineItemViewModel:function(C){return _.t(pw1,{data:C.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(C){return _.t(QJS,{data:C.data})}}))},"ad");var ecT=_.GM(function(W){var k=W.data;var C=_.yE(),n=_.kj(_.I4m,function(){var B;return(B=k().markersEngagementPanelSyncEntityKey)!=null?B:""}),N=function(){var B;
return((B=n())==null?void 0:B.activeItemIndex)===k().index};
W=_.Pj(function(B){var A,w,x,E,a;return _.F(function(X){if(X.nextAddress==1)return B.stopPropagation(),_.DW4(_.IS(B),C.value,["A".toString(),"BUTTON".toString()])?X.return():(A=_.fi(k().onTap))?_.l(X,_.HJ(),2):X.return();w=X.yieldResult;E=(x=_.z(A,_.RA))==null?void 0:x.startTimeSeconds;E===void 0||(a=w)!=null&&a.seekTo(E,!0);_.ab(X)})});
return _.t("macro-markers-panel-item-view-model",{class:_.Li("ytwMacroMarkersPanelItemViewModelHost",{"is-active":N}),el:C,"on:click":W,tabindex:0},_.t(_.Ex,{data:function(){var B;return(B=k())==null?void 0:B.item}},{timelineChapterViewModel:function(B){return _.t(vzE,{data:B.data,
active:N})},
timelineItemViewModel:function(B){return _.t(pw1,{data:B.data,active:N})},
videoAttributeViewModel:PLx}))},"bd");
ecT.idomCompat=!0;_.Gj(ecT,"macro-markers-panel-item-view-model",{props:{data:_.Ik}});_.Gj(QJS,"yt-video-attributes-section-view-model",{props:{data:_.Ik}});var sJ6=_.GM(function(W){var k=function(){var C,n,N;return(N=(C=W.data().leadingLogoAccessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)!=null?N:""};
return _.t("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.t(_.NI,{cond:function(){return W.data().leadingLogo},
then:function(C){return _.t(_.pi,{className:"ytwFantasySectionHeaderViewModelLogo",data:C,alt:k})}}),_.t("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.t(_.Ya,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.t(_.Ya,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.t(_.Ex,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"cd");var G4i=_.GM(function(W){var k={};k=_.Li("ytwFantasyTeamViewModelHost",(k.ytwFantasyTeamViewModelCompact=function(){var N;return!((N=W.compact)==null||!N.call(W))},k.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},k.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},k));
var C=function(){var N,B,A;return(A=(N=W.data().teamLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?A:""},n=_.kj(MGm,function(){return W.data().teamEntityKey});
return _.t("ytw-fantasy-team-view-model",{class:k},_.t(_.NI,{cond:function(){return W.data().teamLogo},
then:function(N){return _.t(_.pi,{className:"ytwFantasyTeamViewModelLogo",data:N,alt:C})}}),_.t("div",{class:"ytwFantasyTeamViewModelMetadata"},_.t("div",{class:"ytwFantasyTeamViewModelHeader"},_.t(_.Ya,{className:"ytwFantasyTeamViewModelScore",
text:function(){var N;return(N=n())==null?void 0:N.score}}),_.t(_.ka,{icon:function(){var N;
return(N=n())==null?void 0:N.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.t(_.Ya,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var N;return(N=n())==null?void 0:N.projectedScore}})),_.t(_.Ya,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.t(_.Ya,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.t(_.Ya,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.t(_.Ya,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var N;return(N=n())==null?void 0:N.score}}))},"dd");_.Gj(_.GM(function(W){return _.t("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.t("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.t(_.Ex,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:sJ6})),_.t(_.Ex,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:G4i}),_.t(_.Ex,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:G4i}))},"ed"),"fantasy-league-summary-view-model",{props:{data:_.Ik}});var yK1=_.GM(function(W){var k=_.vp(W,{shape:{},useCustomTabRenderable:!1}),C=k.shape;k=k.useCustomTabRenderable;var n=W.customTabRenderable,N=function(){return C().disabled},B=function(){return C().selected},A=function(){return C().title},w=_.yE();
W=_.Pj(function(a){var X;if(!N()&&((X=C().aTagConfig)==null?0:X.onclick))C().aTagConfig.onclick(a);return!1});
var x=_.Pj(function(a){if(a.key==="Enter"||a.key==="ArrowUp"||a.key==="ArrowDown")a.preventDefault(),w.value.click();return!1}),E={};
return _.t("yt-tab-shape",{class:_.Li("yt-tab-shape-wiz",function(){return C().className},(E["yt-tab-shape-wiz__tab--last-tab"]=function(){return C().isLastTab},E["yt-tab-shape-wiz--host-disabled"]=N,E["yt-tab-shape-wiz--host-clickable"]=!n,E)),
role:n?void 0:"tab","aria-selected":B!=null?B:!1,"aria-disabled":N,tabindex:n?void 0:0,"on:click":W,"on:keydown":x,el:w,"tab-identifier":function(){return C().identifier},
"tab-title":A},_.t(_.NI,{cond:k,then:function(){return n()},
else:function(){var a={},X={};return _.t(_.qf,null,_.t("div",{class:_.Li("yt-tab-shape-wiz__tab",(a["yt-tab-shape-wiz__tab--tab-selected"]=B,a))},A),_.t("div",{class:_.Li("yt-tab-shape-wiz__tab-bar",(X["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=B,X))}))}}))},"fd");
yK1.idomCompat={callbacks:{customTabRenderable:!0}};_.ZIY=_.GM(function(W){var k=W.shape;W=_.b(_.kw(48,void 0,"S7XsSd"));var C=W.next().value,n=W.next().value;W=_.b(_.kw(0,void 0,"CzMxb"));var N=W.next().value,B=W.next().value,A=function(){return k().tabs},w=_.yE(),x=function(){var E,a;
return(a=(E=A())==null?void 0:E.findIndex(function(X){return X.selected}))!=null?a:-1};
_.Ee(function(){var E=w.value.querySelectorAll("yt-tab-shape"),a=x()>-1?E[x()]:void 0;requestAnimationFrame(function(){n((a==null?void 0:a.getBoundingClientRect().width)||0)})});
_.XM(function(){var E=x();requestAnimationFrame(function(){var a=w.value.querySelectorAll("yt-tab-shape"),X;n(((X=E>-1?a[E]:void 0)==null?void 0:X.getBoundingClientRect().width)||0);for(var d=X=0;d<E;d++)X+=a[d].offsetWidth+24;_.DE("HTML_DIR")==="rtl"&&(X=-X);B(X)})});
W={};return _.t("yt-tab-group-shape",{class:_.Li("yt-tab-group-shape-wiz",(W["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return k().isOverflowHidden},W)),
el:w},_.t(_.NI,{cond:A,then:function(E){return _.t(_.qf,null,_.t("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.t(_.bI,{each:E},function(a,X){return _.t(yK1,{shape:function(){return Object.assign({},a,{isLastTab:X()===E().length-1})},
customTabRenderable:a.customTabRenderable,useCustomTabRenderable:!!a.customTabRenderable})})),_.t($XA,{width:C,
sliderOffset:N}))}}))},"gd");
_.ZIY.idomCompat=!0;var $XA=_.GM(function(W){var k=_.pq(W.sliderOffset,0),C=W.width;return _.t("div",{class:"yt-tab-group-shape-wiz__slider",style:_.WJ({width:function(){return C()+"px"},
transform:function(){return"translateX("+k()+"px)"}})})},"hd");var Rct=_.GM(function(W){var k=function(){var B,A,w;return(w=(B=W.data().playerLogoAccessibility)==null?void 0:(A=B.accessibilityData)==null?void 0:A.label)!=null?w:""},C=_.kj(Qmc,function(){return W.data().playerEntityKey}),n={};
n=_.Li("ytwFantasyPlayerViewModelHost",(n.ytwFantasyPlayerViewModelPlaying=function(){var B;return!((B=C())==null||!B.isPlayerPlaying)},n.ytwFantasyPlayerViewModelOnField=function(){var B;
return((B=C())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},n.ytwFantasyPlayerViewModelRedZone=function(){var B;
return((B=C())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},n));
var N=function(){var B,A,w,x=((B=_.f().resolve(_.qI(_.cj)))==null?0:B())?(A=W.data().playerLogoBackgroundColor)==null?void 0:A.darkTheme:(w=W.data().playerLogoBackgroundColor)==null?void 0:w.lightTheme;return x===void 0?"":_.Xi(x)};
return _.t("ytw-fantasy-player-view-model",{class:n},_.t(_.NI,{cond:function(){return W.data().playerLogo},
then:function(B){return _.t("div",{class:"ytwFantasyPlayerViewModelLogo"},_.t("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.t(_.pi,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.WJ({"background-color":N}),data:B,alt:k})),_.t("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.t(_.ka,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.t("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.t("div",{class:"ytwFantasyPlayerViewModelHeader"},_.t(_.Ya,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var B;return(B=W.data())==null?void 0:B.playerNameText}}),_.t(_.Ya,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var B;return(B=W.data())==null?void 0:B.playerDescriptionText}})),_.t("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.t(_.Ya,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=C())==null?void 0:B.gamePeriodText}}),_.t(_.Ya,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=W.data())==null?void 0:B.opponentTeamText}}),_.t(_.Ya,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=C())==null?void 0:B.gameStatusText}}),_.t(_.Ya,{className:_.Li("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var B;return(B=C())==null?void 0:B.playerStatusText}})),_.t("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.t(_.Ya,{text:function(){var B;
return(B=C())==null?void 0:B.playerStatsText}}))),_.t(_.Ya,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var B;return(B=C())==null?void 0:B.fantasyScore}}))},"id");var oz$=_.GM(function(W){return _.t("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.t(_.NI,{cond:function(){return W.data().players},
then:function(k){return _.t(_.Ex,{data:k},{fantasyPlayerViewModel:Rct})}}))},"jd");var iI7=_.GM(function(W){var k=_.b(_.h7(function(){var N;return(N=W.data().selectedTabIdentifierKey)!=null?N:""})),C=k.next().value,n=k.next().value;
_.lI(function(){var N;(N=W.setSelectedTabSignal)==null||N.call(W,C)});
return _.t("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.t("div",{class:"ytTabbedViewModelTabGroup"},_.t(_.ZIY,{shape:function(){var N=W.data(),B=[],A={tabs:B};if(!N.tabs)return A;N=_.b(N.tabs);for(var w=N.next(),x={};!w.done;x={tabViewModel:void 0},w=N.next())if(x.tabViewModel=_.z(w.value,P8A),x.tabViewModel){var E=w=void 0;B.push({aTagConfig:{onclick:function(a){return function(){var X;n((X=a.tabViewModel.tabIdentifier)!=null?X:"")}}(x)},
identifier:x.tabViewModel.tabIdentifier,selected:C()===x.tabViewModel.tabIdentifier,title:(E=(w=x.tabViewModel.title)==null?void 0:w.content)!=null?E:""})}return A}})),_.t(_.Ex,{data:function(){var N,B=_.b((N=W.data().tabs)!=null?N:[]);
for(N=B.next();!N.done;N=B.next())if((N=_.z(N.value,P8A))&&N.tabIdentifier===C())return N.content}},{fantasyRosterViewModel:oz$}))},"kd");_.Gj(_.GM(function(W){var k=_.b(aSc()),C=k.next().value,n=k.next().value;return _.t("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.t(_.Ya,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.t(_.NI,{cond:function(){return W.data().tabbedViewModel},
then:function(N){return _.t(_.Ex,{data:N},{tabbedViewModel:function(B){return _.t(iI7,{data:B.data,setSelectedTabSignal:n})}})}}),_.t(_.NI,{cond:function(){var N,B=(N=_.z(W.data().tabbedViewModel,KSZ))==null?void 0:N.tabs;
N=_.z(B==null?void 0:B[0],P8A);B=_.z(B==null?void 0:B[1],P8A);var A=N==null?void 0:N.tabIdentifier;if(C()===A){var w,x;if(!((w=_.z(N==null?void 0:N.content,lm8))==null?0:(x=w.players)==null?0:x.length))return W.data().noUserTeamPlayersText}else{var E,a;if(!((E=_.z(B==null?void 0:B.content,lm8))==null?0:(a=E.players)==null?0:a.length))return W.data().noOpponentTeamPlayersText}},
then:function(N){return _.t(_.Ya,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:N})}}))},"ld"),"ytw-fantasy-matchup-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){return _.t("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.t(_.Ya,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.t(_.NI,{cond:function(){return W.data().matchupTeamPairs},
then:function(k){return _.t(_.bI,{each:k,keyBy:"INDEX"},function(C){return _.t("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.t(_.Ex,{data:function(){return[C().firstTeam,C().secondTeam]}},{fantasyTeamViewModel:function(n){return _.t(G4i,{data:n.data,
compact:!0})}}))})}}))},"md"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=function(){var N,B,A;return(A=(N=W.data().userLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?A:""},C=function(){var N,B,A;
return(A=(N=W.data().opponentLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?A:""},n=_.kj(SfP,function(){return W.data().entityKey});
return _.t("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.t("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.t(_.NI,{cond:function(){return W.data().userLogo},
then:function(N){return _.t(_.pi,{className:"ytwFantasyWinProbabilityViewModelLogo",data:N,alt:k})}}),_.t("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.t(_.Ya,{text:function(){return W.data().title}})),_.t(_.NI,{cond:function(){return W.data().opponentLogo},
then:function(N){return _.t(_.pi,{className:"ytwFantasyWinProbabilityViewModelLogo",data:N,alt:C})}})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.t("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.t(_.Ya,{text:function(){var N;
return(N=n())==null?void 0:N.userWinNumberLabel}})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.t("div",{class:_.Li("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.WJ({flex:function(){var N,B;return(B=(N=n())==null?void 0:N.userWinNumber)!=null?B:50}})}),_.t("div",{class:_.Li("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.WJ({flex:function(){var N,B;return(B=(N=n())==null?void 0:N.opponentWinNumber)!=null?B:50}})})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.t(_.Ya,{text:function(){var N;
return(N=n())==null?void 0:N.opponentWinNumberLabel}}))))},"nd"),"fantasy-win-probability-view-model",{props:{data:_.Ik}});_.EJ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var T36=function(){var W=_.R.apply(this,arguments)||this;W.darkerPanels=_.m("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.m("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.m("desktop_shorts_v2_anchored_panel");W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.D(T36,_.R);_.Y=T36.prototype;_.Y.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var k;(k=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||k.forEach(function(C){C.containerType=W})}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.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:_.m("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.m("kevlar_low_priority_continuation")}}};
_.Y.created=function(){this.JSC$14357_cachedViewportHeight=_.DE("initialInnerHeight")||window.innerHeight};
_.Y.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.S(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.Y.onRetrieveLocation=function(W,k){this.containsComments()&&(this.firstCommentsLoaded=k.hasComments=!0)};
_.Y.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.Y.onLoadReloadContinuation=function(W,k){var C=this;W.stopPropagation();this.isReloading=!0;_.Pe(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(n){var N=_.f().resolve(_.Ah);n=k(n);N.postData(n).then(function(B){C.onReloadContinuationData(B)})}})};
_.Y.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.Y.computeContentsClass=function(W){return W?"reloading":""};
_.Y.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.Y.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.Y.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.Y.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.m("kevlar_disable_comments_auto_load")};
_.Y.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.Y.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Y.computeHasDestinationShelfRenderer=function(W){var k,C;return!!(W==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:C.destinationShelfRenderer)};
_.Y.computeHasSectionGroupViewModel=function(W){var k,C;return!!(W==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:C.sectionGroupViewModel)};
_.Y.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.Y.computeEpRestyle=function(W){return _.m("web_ep_restyling")&&W&&this.containsComments()};
_.Y.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"};
_.Y.computeSuppressPaddingDisclaimer=function(){var W,k,C,n;return!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:(n=C.productListHeaderRenderer)==null?0:n.suppressPaddingDisclaimer)};
_.Y.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.Y.dataChanged=function(){this.firstCommentsLoaded=!1};
_.Y.observeDataContentsLength=function(){var W,k;((W=this.data)==null?0:(k=W.contents)==null?0:k.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.Y.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.Y.triggerContinuations=function(){for(var W=_.S(this.hostElement).querySelector("#continuations").children,k=0;k<W.length;k++)W[k].trigger()};
_.Y.triggerInitialContinuations=function(){for(var W=_.S(this.hostElement).querySelector("#continuations").children,k=0;k<W.length;k++)W[k].triggerIfNotPreviouslyTriggered()};
_.Y.handleYtItemSectionContinuation=function(W,k){var C;k&&((C=this.data)==null?void 0:C.sectionIdentifier)!==k||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.Y.handleYtItemSectionReplace=function(W,k){var C;k&&((C=this.data)==null?void 0:C.sectionIdentifier)!==k||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.Y.computeUseHeightHack=function(W){return W&&!_.m("kevlar_disable_height_hack")};
_.Y.computeTopSpacingZero=function(W){return W};
_.Y.continuationShowButtonChanged=function(){var W=_.S(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("data-changed",this.data))};
_.oq.Object.defineProperties(T36.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.m("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 W,k,C;return!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:C.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n,N,B,A;return!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:(n=C.shelfRenderer)==null?0:(N=n.content)==null?0:(B=N.gridRenderer)==null?0:(A=B.targetId)==null?0:A.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:C.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k[0])==null?0:C.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.LS("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.m("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.m("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14357_cachedViewportHeight-130)/150)},
set:function(){}}});
var lQ=T36;lQ.prototype.dataChangedForBinding=lQ.prototype.dataChangedForBinding;lQ.prototype.continuationShowButtonChanged=lQ.prototype.continuationShowButtonChanged;lQ.prototype.onYtDismissibleItemDismissedChange=lQ.prototype.onYtDismissibleItemDismissedChange;lQ.prototype.observeDataContentsLength=lQ.prototype.observeDataContentsLength;lQ.prototype.dataChanged=lQ.prototype.dataChanged;lQ.prototype.onServiceRequestCompleted=lQ.prototype.onServiceRequestCompleted;
lQ.prototype.onLoadReloadContinuation=lQ.prototype.onLoadReloadContinuation;lQ.prototype.onRetrieveLocation=lQ.prototype.onRetrieveLocation;lQ.prototype.commentsHidePanelButtonChanged=lQ.prototype.commentsHidePanelButtonChanged;lQ.prototype.updateLockupContainerTypes=lQ.prototype.updateLockupContainerTypes;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],lQ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],lQ.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],lQ.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.v(_.ui),_.O("design:type",Object)],lQ.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],lQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],lQ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"darkerPanels",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],lQ.prototype,"engagementPanel",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"commentsHidePanelButton",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"isWatchGrid",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"continuationShowButton",void 0);_.U([_.Z({computed:"computeIsContinuationCommentSection(data)"}),_.O("design:type",Boolean)],lQ.prototype,"continuationIsCommentsSection",void 0);
_.U([_.Z({value:!0}),_.O("design:type",Boolean)],lQ.prototype,"autoFill",void 0);_.U([_.Z(),_.O("design:type",Boolean)],lQ.prototype,"continuationDisablePrescanVisibility",void 0);_.U([_.Z(),_.O("design:type",Boolean)],lQ.prototype,"isReloading",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"isSearch",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"isConstrainedList",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"isWatch",void 0);
_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"eligibleToSwitchToGrid",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],lQ.prototype,"isGridViewEnabled",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.O("design:type",Object)],lQ.prototype,"epRestyle",void 0);_.U([_.G("isWatch"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"hideShortsShelfHeader",null);
_.U([_.G("isSearch","isWatch"),_.O("design:type",String),_.O("design:paramtypes",[])],lQ.prototype,"thumbnailWidth",null);_.U([_.G("isSearch","isWatch"),_.O("design:type",String),_.O("design:paramtypes",[])],lQ.prototype,"sizing",null);_.U([_.G("isWatch","isGridViewEnabled","data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],lQ.prototype,"lockupContainerType",null);
_.U([_.Hl("lockupContainerType","data"),_.O("design:type",Function),_.O("design:paramtypes",[Number]),_.O("design:returntype")],lQ.prototype,"updateLockupContainerTypes",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],lQ.prototype,"pageSubtype",void 0);_.U([_.Z({computed:"computeContainerWidth()"}),_.O("design:type",Number)],lQ.prototype,"containerWidth",void 0);_.U([_.Z(),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"isPlaylist",null);
_.U([_.Z(),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"isClipList",null);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"isCarouselInFeed",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"isPlaylistVideoContainer",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"isSearchFrictionPage",null);
_.U([_.Z({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.O("design:type",Boolean)],lQ.prototype,"useHeightHack",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.O("design:type",Object)],lQ.prototype,"topSpacingZero",void 0);_.U([_.Z({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.O("design:type",Boolean)],lQ.prototype,"showButton",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],lQ.prototype,"firstCommentsLoaded",void 0);_.U([_.Z(),_.O("design:type",Object)],lQ.prototype,"continuationIsInitialLoad",void 0);_.U([_.Z(),_.O("design:type",Boolean)],lQ.prototype,"isSearchDova",void 0);_.U([_.Z({reflectToAttribute:!0,readOnly:!0}),_.O("design:type",Boolean)],lQ.prototype,"itemDismissed",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.O("design:type",String)],lQ.prototype,"sectionIdentifier",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.O("design:type",String)],lQ.prototype,"fitContainer",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.O("design:type",Boolean)],lQ.prototype,"hasDestinationShelfRenderer",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.O("design:type",Boolean)],lQ.prototype,"staticCommentsHeader",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"enableSqueezebackPanels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lQ.prototype,"enableAnchoredPanel",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.O("design:type",Boolean)],lQ.prototype,"hasSectionGroupViewModel",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.O("design:type",Boolean)],lQ.prototype,"suppressDisclaimerSeparator",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.O("design:type",String)],lQ.prototype,"headerStyle",void 0);_.U([_.G("isSearch"),_.O("design:type",Object),_.O("design:paramtypes",[])],lQ.prototype,"lockupExperiments",null);
_.U([_.G("isSearch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],lQ.prototype,"typographyBump",null);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],lQ.prototype,"header",void 0);_.U([_.Hl("commentsHidePanelButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"commentsHidePanelButtonChanged",null);
_.U([_.jI("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],lQ.prototype,"onRetrieveLocation",null);_.U([_.jI("yt-load-reload-continuation"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Function]),_.O("design:returntype")],lQ.prototype,"onLoadReloadContinuation",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"onServiceRequestCompleted",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"dataChanged",null);_.U([_.Cq("data.contents.length"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"observeDataContentsLength",null);
_.U([_.jI("yt-dismissible-item-dismissed"),_.jI("yt-dismissible-item-undismissed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],lQ.prototype,"onYtDismissibleItemDismissedChange",null);_.U([_.Hl("continuationShowButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"continuationShowButtonChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lQ.prototype,"dataChangedForBinding",null);lQ=_.U([_.T({is:"ytd-item-section-renderer",disableElementRegistration:!0})],lQ);
_.q(lQ,"ytd-item-section-renderer",function(){if(nRA!==void 0)return nRA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nRA=W},{mode:1});var q21;var zgz=_.Go(_.w8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Xcc={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var um7={},m0c=(um7[0]={title:_.Ur(_.w8("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:ql("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},um7[1]={title:_.Ur(_.w8("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:ql("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},um7);_.EJ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var tG=function(){var W=_.R.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.D(tG,_.R);tG.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
tG.prototype.attached=function(){this.downloadsToRenderChanged()};
tG.prototype.detached=function(){this.set("renderableData",{})};
tG.prototype.downloadsToRenderChanged=function(){var W=_.ZF().getState().entities,k=_.aY(W),C=_.m("kevlar_playlist_dl_page_killswitch")?IYK(W):_.XD(W),n=_.zjX(W),N=_.wn(k);W=_.f5(W);this.set("renderableData",VJX(C,k,n,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,N,W))};
var Et=tG;Et.prototype.downloadsToRenderChanged=Et.prototype.downloadsToRenderChanged;_.U([_.v(_.fk),_.O("design:type",Object)],Et.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Et.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Et.prototype,"renderableData",void 0);_.U([_.Z({selector:_.o7m}),_.O("design:type",Object)],Et.prototype,"allVideosCount",void 0);_.U([_.Z({selector:qEw}),_.O("design:type",Object)],Et.prototype,"allPlaylistCount",void 0);_.U([_.Z({selector:_.LSX}),_.O("design:type",Object)],Et.prototype,"shouldRenderDownloadsBanner",void 0);_.U([_.Z({selector:_.jrz}),_.O("design:type",Object)],Et.prototype,"hasOptedIntoSmartDownloads",void 0);
_.U([_.Z({selector:_.HEP}),_.O("design:type",Object)],Et.prototype,"areAllSmartDownloadsDeleted",void 0);_.U([_.Z({selector:r4z}),_.O("design:type",Object)],Et.prototype,"smartDownloadsCompleted",void 0);_.U([_.Cq("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Et.prototype,"downloadsToRenderChanged",null);
Et=_.U([_.T({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Et);
_.q(Et,"ytd-offline-item-section-renderer",function(){if(q21!==void 0)return q21;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return q21=W},
{mode:1});var UXY;var OIT;var Lm$=function(){return _.R.apply(this,arguments)||this};
_.D(Lm$,_.R);
Lm$.prototype.onDataChanged=function(){if(this.JSC$14383_lastData){var W=this.getFilterClass(this.JSC$14383_lastData.status);W&&this.hostElement.classList.remove(W)}var k;(W=this.getFilterClass((k=this.data)==null?void 0:k.status))&&this.hostElement.classList.add(W);W==="selected"?_.S(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.S(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.S(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.S(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14383_lastData=this.data};
Lm$.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var aP=Lm$;aP.prototype.onDataChanged=aP.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],aP.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],aP.prototype,"onDataChanged",null);aP=_.U([_.T({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],aP);
_.q(aP,"ytd-search-filter-renderer",function(){if(OIT!==void 0)return OIT;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return OIT=W},{mode:_.UC("kevlar_poly_si_batch_j075")?1:2});var jJY=function(){return _.R.apply(this,arguments)||this};
_.D(jJY,_.R);var XW=jJY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XW.prototype,"data",void 0);XW=_.U([_.T({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],XW);
_.q(XW,"ytd-search-filter-group-renderer",function(){if(UXY!==void 0)return UXY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return UXY=W},{mode:_.UC("kevlar_poly_si_batch_j075")?1:2});var HIi;var fj=function(){return _.R.apply(this,arguments)||this};
_.D(fj,_.R);fj.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.kM());this.isCollapsed=!this.isCollapsed};
fj.prototype.navigateToAboutTheseResultsPage=function(){var W=SN("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.Ti(window,W,"_blank"):_.I4(Error("Rh"))};
fj.prototype.dataChanged=function(){this.isCollapsed=!0};
fj.prototype.computeShowBottomBorder=function(){var W,k,C;return!!((W=this.data)==null?0:(k=W.button)==null?0:k.toggleButtonRenderer)||!((C=this.data)==null||!C.aboutTheseResultsButton)};
var dW=fj;dW.prototype.dataChanged=dW.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dW.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.O("design:type",Boolean)],dW.prototype,"showBottomBorder",void 0);_.U([_.Z(),_.O("design:type",Boolean)],dW.prototype,"renderCollapsibleMenu",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],dW.prototype,"isCollapsed",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dW.prototype,"dataChanged",null);dW=_.U([_.T({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],dW);
_.q(dW,"ytd-search-sub-menu-renderer",function(){if(HIi!==void 0)return HIi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return HIi=W},{mode:1});var rKZ;var gz$=new _.Tc("SECTION_LIST_RENDERER_TOKEN");var PwE;var KmA=function(){return _.R.apply(this,arguments)||this};
_.D(KmA,_.R);KmA.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
var my=KmA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],my.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],my.prototype,"headerStyle",void 0);my=_.U([_.T({is:"ytd-text-header-renderer",disableElementRegistration:!0})],my);
_.q(my,"ytd-text-header-renderer",function(){if(PwE!==void 0)return PwE;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return PwE=W},{mode:1});var hcC;var Wsi=function(){return _.R.apply(this,arguments)||this};
_.D(Wsi,_.R);var zS=Wsi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zS.prototype,"data",void 0);zS=_.U([_.T({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],zS);
_.q(zS,"ytd-minor-moment-header-renderer",function(){if(hcC!==void 0)return hcC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return hcC=W},{mode:1});var kzt;var Cb7=function(){return _.R.apply(this,arguments)||this};
_.D(Cb7,_.R);var D9=Cb7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],D9.prototype,"data",void 0);D9=_.U([_.T({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],D9);
_.q(D9,"ytd-minor-moment-setting-alert-renderer",function(){if(kzt!==void 0)return kzt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return kzt=W},{mode:1});var n2S;var NxE;var YAA=function(){var W=_.R.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.F8(128287);W.smartDownloadsDisabledVE=_.F8(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.D(YAA,_.R);_.Y=YAA.prototype;_.Y.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Hn(_.kf(),this.smartDownloadsEnabledVE),_.Hn(_.kf(),this.smartDownloadsDisabledVE))};
_.Y.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Pe(this.hostElement,"yt-settings-switch-ready")};
_.Y.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.Y.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.eI(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.m("kevlar_settings_switch_resolve_command_killswitch")?_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.Y.handleUpdateSettingsSwitch=function(W){(W=_.z(W,sR8))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.Y.onToggleSettingsSwitch=function(W,k){this.data&&this.data.id===W&&this.set("data.enabled",k!=null?k:!this.data.enabled)};
_.Y.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Zn.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.Y.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.VM(),k;W&&((k=this.data)==null?void 0:k.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.yb(W,[this.smartDownloadsEnabledVE]),_.$Q(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.yb(W,[this.smartDownloadsDisabledVE]),_.$Q(W,[this.smartDownloadsEnabledVE])))};
_.Y.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.gc(_.kf(),this.activeVeForLogging)};
_.Y.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.oq.Object.defineProperties(YAA.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
var VX=YAA;VX.prototype.dataChanged=VX.prototype.dataChanged;_.U([_.v(_.fk),_.O("design:type",Object)],VX.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],VX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],VX.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],VX.prototype,"data",void 0);_.U([_.Z({selector:function(W,k){if(Object.keys(W==null?void 0:W.entities).length)switch(k){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return SVX(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.O("design:type",Object)],VX.prototype,"booleanSettingById",void 0);_.U([_.Z(),_.O("design:type",_.z7)],VX.prototype,"activeVeForLogging",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],VX.prototype,"toggleAriaLabel",null);_.U([_.Cq("data"),_.Cq("booleanSettingById"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VX.prototype,"dataChanged",null);
VX=_.U([_.T({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],VX);
_.q(VX,"ytd-settings-switch-renderer",function(){if(NxE!==void 0)return NxE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return NxE=W},{mode:1});var Bx7=function(){return _.R.apply(this,arguments)||this};
_.D(Bx7,_.R);Bx7.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}}}}};
_.oq.Object.defineProperties(Bx7.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
var JG=Bx7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JG.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],JG.prototype,"contentsClassName",null);JG=_.U([_.T({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],JG);
_.q(JG,"ytd-minor-moment-setting-section-renderer",function(){if(n2S!==void 0)return n2S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return n2S=W},{mode:1});var bA1;var ASE=function(){return _.R.apply(this,arguments)||this};
_.D(ASE,_.R);var cd=ASE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],cd.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cd.prototype,"data",void 0);cd=_.U([_.T({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],cd);
_.q(cd,"ytd-empty-product-details-renderer",function(){if(bA1!==void 0)return bA1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return bA1=W},{mode:1});var Fs6;var w81;var xS7=function(){var W=_.R.apply(this,arguments)||this;W.expanded=!0;return W};
_.D(xS7,_.R);xS7.prototype.getBadgeRowClass=function(W,k,C){for(var n=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),N=n.next();!N.done;N=n.next())N.value.onShow();W=W.selected;return C?W!==-1?W===k?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===k?"badge-line":"badge-hidden"};
var IP=xS7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],IP.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],IP.prototype,"expanded",void 0);IP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],IP);
_.q(IP,"ytd-sponsorships-loyalty-badges-renderer",function(){if(w81!==void 0)return w81;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return w81=W},{mode:1});var lZt;var t86=function(){var W=_.R.apply(this,arguments)||this;W.expanded=!0;return W};
_.D(t86,_.R);t86.prototype.getContainerClasses=function(W,k){W=W?"expanded":"collapsed";k&&(W+=" item");return W};
var SP=t86;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],SP.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],SP.prototype,"expanded",void 0);SP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],SP);
_.q(SP,"ytd-sponsorships-perk-renderer",function(){if(lZt!==void 0)return lZt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lZt=W},{mode:1});var E27;var aZE=function(){var W=_.R.apply(this,arguments)||this;W.expanded=!0;return W};
_.D(aZE,_.R);var MU=aZE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MU.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],MU.prototype,"expanded",void 0);MU=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],MU);
_.q(MU,"ytd-sponsorships-perks-renderer",function(){if(E27!==void 0)return E27;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return E27=W},{mode:1});var QX=function(){var W=_.R.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.D(QX,_.R);QX.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
QX.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
QX.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.z((W=this.data)==null?void 0:W.expandButton,_.Vq)}else{var k;this.expandCollapseButton=_.z((k=this.data)==null?void 0:k.collapseButton,_.Vq)}};
var pj=QX;pj.prototype.updateExpandCollapseButton=pj.prototype.updateExpandCollapseButton;pj.prototype.onDataChanged=pj.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pj.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pj.prototype,"isCollapsed",void 0);_.U([_.Z(),_.O("design:type",Object)],pj.prototype,"expandCollapseButton",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pj.prototype,"onDataChanged",null);_.U([_.Cq("data","isCollapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pj.prototype,"updateExpandCollapseButton",null);pj=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],pj);
_.q(pj,"ytd-sponsorships-expandable-perks-renderer",function(){if(Fs6!==void 0)return Fs6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Fs6=W},{mode:1});var X8B;var fZC=function(){return _.R.apply(this,arguments)||this};
_.D(fZC,_.R);fZC.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var vd=fZC;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],vd.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vd.prototype,"data",void 0);vd=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],vd);
_.q(vd,"ytd-sponsorships-actionable-message-renderer",function(){if(X8B!==void 0)return X8B;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return X8B=W},{mode:1});var dS7;var mSu=function(){return _.R.apply(this,arguments)||this};
_.D(mSu,_.R);_.Y=mSu.prototype;_.Y.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.Y.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.Y.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.computeMessageContainerStyle=function(W){var k=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+k:"style-unspecified"+k};
_.Y.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.Y.onExpandedChanged=function(){var W=this;if(this.expanded)for(var k=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),C=k.next();!C.done;C=k.next())C.value.onShow();_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var eP=mSu;eP.prototype.onDataChanged=eP.prototype.onDataChanged;eP.prototype.onExpandedChanged=eP.prototype.onExpandedChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eP.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],eP.prototype,"expanded",void 0);
_.U([_.Hl("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eP.prototype,"onExpandedChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eP.prototype,"onDataChanged",null);eP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],eP);
_.q(eP,"ytd-sponsorships-expandable-message-renderer",function(){if(dS7!==void 0)return dS7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return dS7=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var zCS;var DSu=function(){return _.R.apply(this,arguments)||this};
_.D(DSu,_.R);DSu.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"}}}}};
DSu.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.z(this.data.endButton,_.Vq).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var st=DSu;st.prototype.onDataChanged=st.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],st.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],st.prototype,"onDataChanged",null);
st=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],st);
_.q(st,"ytd-sponsorships-heading-renderer",function(){if(zCS!==void 0)return zCS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zCS=W},{mode:1});var V8i;var JSZ=function(){return _.R.apply(this,arguments)||this};
_.D(JSZ,_.R);var GS=JSZ;_.U([_.Z(),_.O("design:type",Object)],GS.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);GS=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],GS);
_.q(GS,"ytd-sponsorships-links-renderer",function(){if(V8i!==void 0)return V8i;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return V8i=W},{mode:1});var cSB;var IZC=function(){return _.R.apply(this,arguments)||this};
_.D(IZC,_.R);_.Y=IZC.prototype;_.Y.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.S(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var k;(k=_.S(this.hostElement).querySelector("tp-yt-paper-button"))==null||k.removeAttribute("role")}};
_.Y.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.Y.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.Y.getButtonDisabled=function(W){return W?void 0:""};
var yX=IZC;yX.prototype.onDataChanged=yX.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yX.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],yX.prototype,"expanded",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yX.prototype,"onDataChanged",null);
yX=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],yX);
_.q(yX,"ytd-sponsorships-list-tile-renderer",function(){if(cSB!==void 0)return cSB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return cSB=W},{mode:1});var SAA;var M8S;var QIi=function(){return _.R.apply(this,arguments)||this};
_.D(QIi,_.R);QIi.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var $u=QIi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$u.prototype,"data",void 0);$u=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],$u);
_.q($u,"ytd-sponsorships-promotion-renderer",function(){if(M8S!==void 0)return M8S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return M8S=W},{mode:1});var p8S;var v21=function(){return _.R.apply(this,arguments)||this};
_.D(v21,_.R);v21.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var Z9=v21;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Z9.prototype,"data",void 0);Z9=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Z9);
_.q(Z9,"ytd-sponsorships-purchase-option-renderer",function(){if(p8S!==void 0)return p8S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return p8S=W},{mode:1});var eC7;var sI$;var Gz6=function(){return _.R.apply(this,arguments)||this};
_.D(Gz6,_.R);var yS6=Gz6;_.U([_.Z(),_.O("design:type",Object)],yS6.prototype,"data",void 0);yS6=_.U([_.T({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],yS6);
_.q(yS6,"ytd-ypc-offer-promo-renderer",function(){if(sI$!==void 0)return sI$;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sI$=W},{mode:1});var $S1=function(){return _.R.apply(this,arguments)||this};
_.D($S1,_.R);_.Y=$S1.prototype;
_.Y.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"}}}}};
_.Y.expansionCTA=function(W,k){return W&&(k?W.collapseCallToAction:W.expansionCallToAction)};
_.Y.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
_.Y.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,k=(W=this.data)==null?void 0:W.onVisible;k&&this.ytComponentBehavior.resolveCommand(k)};
_.Y.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.Y.computeDisplaySeparator=function(){return!1};
_.Y.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var RP=$S1;RP.prototype.onDataChanged=RP.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],RP.prototype,"data",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],RP.prototype,"expanded",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],RP.prototype,"purchaseButtonClicked",void 0);_.U([_.Z({reflectToAttribute:!0,value:"show"}),_.O("design:type",String)],RP.prototype,"titledisplaystatus",void 0);_.U([_.Z({computed:"computeDisplayTitle(data.title)"}),_.O("design:type",Boolean)],RP.prototype,"displayTitle",void 0);
_.U([_.Z({computed:"computeDisplaySeparator(data)"}),_.O("design:type",Boolean)],RP.prototype,"displaySeparator",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RP.prototype,"onDataChanged",null);RP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],RP);
_.q(RP,"ytd-sponsorships-tier-renderer",function(){if(eC7!==void 0)return eC7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return eC7=W},{mode:2});var ZA6=function(){return _.R.apply(this,arguments)||this};
_.D(ZA6,_.R);
ZA6.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
var oP=ZA6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],oP.prototype,"data",void 0);oP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],oP);
_.q(oP,"ytd-sponsorships-management-renderer",function(){if(SAA!==void 0)return SAA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return SAA=W},{mode:1});var RC7;var o2T=function(){return _.R.apply(this,arguments)||this};
_.D(o2T,_.R);var iQ=o2T;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iQ.prototype,"data",void 0);iQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],iQ);
_.q(iQ,"ytd-open-in-native-app-view-model",function(){if(RC7!==void 0)return RC7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RC7=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var iAS;var Tx7;var qA7=_.iH(["top-"]),usi=_.iH(["bottom-"]),US6=_.iH(["left-"]),OAT=_.iH(["right-"]),Ls6={},jIT=function(W,k,C){W.removeAttribute("top-"+C);W.removeAttribute("bottom-"+C);W.removeAttribute("left-"+C);W.removeAttribute("right-"+C);k&&(k.top&&_.H6([_.h8(qA7)],W,"top-"+C,k.top),k.bottom&&_.H6([_.h8(usi)],W,"bottom-"+C,k.bottom),k.left&&_.H6([_.h8(US6)],W,"left-"+C,k.left),k.right&&_.H6([_.h8(OAT)],W,"right-"+C,k.right))};
Ls6.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var k,C=_.S((k=this.hostElement)!=null?k:this),n;k=this.cardItemBoxBehaviorMarginTargetId&&C?C.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(n=this.hostElement)!=null?n:this;jIT(k,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var k,C=_.S((k=this.hostElement)!=null?k:this),n;k=this.cardItemBoxBehaviorPaddingTargetId&&C?C.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(n=this.hostElement)!=null?n:this;jIT(k,W,"padding")}}];var TS={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 HA7;var rS6;var g2T=function(){return _.R.apply(this,arguments)||this};
_.D(g2T,_.R);g2T.prototype.textColorChanged_=function(){this.hostElement.style.color=TS[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var qU=g2T;qU.prototype.textColorChanged_=qU.prototype.textColorChanged_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.U([_.v(Ls6.YtCardItemBoxBehavior),_.O("design:type",Object)],qU.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qU.prototype,"data",void 0);_.U([_.Hl("data.textColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qU.prototype,"textColorChanged_",null);
qU=_.U([_.l0({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],qU);
_.q(qU,"yt-card-item-text-renderer",function(){if(rS6===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;HA7===void 0&&(HA7=document.createElement("template"));var n=HA7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);rS6=W}W=rS6;return W},{mode:2});var Pb7;var KsC;var hCE=function(){return _.R.apply(this,arguments)||this};
_.D(hCE,_.R);var uQ=hCE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uQ.prototype,"data",void 0);uQ=_.U([_.l0({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],uQ);
_.q(uQ,"yt-card-item-badge-renderer",function(){if(KsC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Pb7===void 0&&(Pb7=document.createElement("template"));var n=Pb7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);KsC=W}W=KsC;return W},{mode:2});var WiY;var kCE;var CE$=function(){return _.R.apply(this,arguments)||this};
_.D(CE$,_.R);CE$.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var Ut=CE$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ut.prototype,"data",void 0);Ut=_.U([_.l0({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ut);
_.q(Ut,"yt-card-item-text-collection-renderer",function(){if(kCE===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;WiY===void 0&&(WiY=document.createElement("template"));var n=WiY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);kCE=W}W=kCE;return W},{mode:2});var nB1;var NZt;var YSC=function(){return _.R.apply(this,arguments)||this};
_.D(YSC,_.R);YSC.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
var Ot=YSC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ot.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Number)],Ot.prototype,"iconSize",void 0);Ot=_.U([_.l0({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Ot);
_.q(Ot,"yt-card-item-text-with-button-renderer",function(){if(NZt===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;nB1===void 0&&(nB1=document.createElement("template"));var n=nB1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);NZt=W}W=NZt;return W},{mode:2});var BZ6=function(){return _.R.apply(this,arguments)||this};
_.D(BZ6,_.R);BZ6.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
var Lj=BZ6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Lj.prototype,"data",void 0);Lj=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Lj);
_.q(Lj,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Tx7!==void 0)return Tx7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Tx7=W},{mode:1});_.EJ("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var b7u=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;return W};
_.D(b7u,_.R);_.Y=b7u.prototype;_.Y.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"}}}}};
_.Y.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.Y.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,k;if(((k=this.data)==null?0:k.cartButton)&&W.checkoutSummaryText){var C,n=ey((C=this.data)==null?void 0:C.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+n+".cardItemTextRenderer.text",sR(W.checkoutSummaryText));if(W.checkoutDetailText){var N;C=ey((N=this.data)==null?void 0:N.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",sR(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var B;
N=ey((B=this.data)==null?void 0:B.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",sR(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(B=ey((n=this.data)==null?void 0:n.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",sR(W.estimatedTotalPrice)))};
_.Y.updateIsHidden=function(){var W,k=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;k!==void 0&&(this.hidden=k)};
_.Y.updateCheckoutButton=function(){var W,k=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;k!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",k);var C;W=(C=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:C.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var n;C=(n=this.commerceCartCheckoutButtonEntity)==null?void 0:n.checkoutButtonText;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:C})};
var jP=b7u;jP.prototype.entityChanged=jP.prototype.entityChanged;_.U([_.v(_.fk),_.O("design:type",Object)],jP.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],jP.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],jP.prototype,"fullWidth",void 0);_.U([_.Z(),_.O("design:type",Object)],jP.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],jP.prototype,"compact",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jP.prototype,"hidden",void 0);
_.U([_.Z({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:SGX}),_.O("design:type",Object)],jP.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.Hl("commerceCartCheckoutButtonEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jP.prototype,"entityChanged",null);jP=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],jP);
_.q(jP,"ytd-commerce-cart-checkout-button-renderer",function(){if(iAS!==void 0)return iAS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return iAS=W},{mode:2});var At$;_.FiT={};
_.FiT.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",_.LO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.LO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.kQ(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.kQ(this.hostElement,[W]):_.CB(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var wYY;var xuu;var lA7=function(){return _.R.apply(this,arguments)||this};
_.D(lA7,_.R);lA7.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ah("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ah("sharingToggleButtonAndDefaultButton")}}};
var Hd=lA7;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hd.prototype,"data",void 0);Hd=_.U([_.l0({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Hd);
_.q(Hd,"yt-card-item-actions-renderer",function(){if(xuu===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;wYY===void 0&&(wYY=document.createElement("template"));var n=wYY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);xuu=W}W=xuu;return W},{mode:2});var t7i;var EB1;var aAS;var XY6;var fA7;var duE;var rW=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.D(rW,_.R);rW.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
rW.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
rW.prototype.computeThemeImage_=function(W,k){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.Xi(W.borderColor));return k&&W.imageDark?W.imageDark:W.imageLight};
rW.prototype.computeThemeIcon_=function(W){var k,C;if(!(W==null?0:(k=W.themedIcon)==null?0:(C=k.icon)==null?0:C.iconType))return!1;this.icon.style.color=TS[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.Hp(W.themedIcon.icon.iconType)};
var gW=rW;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(Ls6.YtCardItemBoxBehavior),_.O("design:type",Object)],gW.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],gW.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],gW.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],gW.prototype,"fit",void 0);_.U([_.Z(),_.O("design:type",Boolean)],gW.prototype,"isDarkTheme_",void 0);_.U([_.Z({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.O("design:type",Object)],gW.prototype,"themeImage_",void 0);_.U([_.Z({computed:"computeThemeIcon_(data)"}),_.O("design:type",Object)],gW.prototype,"themeIcon_",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Object)],gW.prototype,"isCircular_",void 0);_.U([_.gi("#image"),_.O("design:type",Object)],gW.prototype,"image",void 0);_.U([_.gi("#icon"),_.O("design:type",Object)],gW.prototype,"icon",void 0);gW=_.U([_.l0({is:"yt-themed-image-renderer",disableElementRegistration:!0})],gW);
_.q(gW,"yt-themed-image-renderer",function(){if(duE===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;fA7===void 0&&(fA7=document.createElement("template"));var n=fA7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);duE=W}W=duE;return W},{mode:2});var mu1=function(){return _.R.apply(this,arguments)||this};
_.D(mu1,_.R);mu1.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"}}}}};
mu1.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var Pd=mu1;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Pd.prototype,"data",void 0);_.U([_.Z({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.O("design:type",String)],Pd.prototype,"imagePlacement",void 0);
Pd=_.U([_.l0({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Pd);
_.q(Pd,"yt-card-item-text-with-image-renderer",function(){if(XY6===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;aAS===void 0&&(aAS=document.createElement("template"));var n=aAS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);XY6=W}W=XY6;return W},{mode:2});var z$i=function(){return _.R.apply(this,arguments)||this};
_.D(z$i,_.R);z$i.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
var Kj=z$i;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Kj.prototype,"data",void 0);Kj=_.U([_.l0({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Kj);
_.q(Kj,"yt-card-item-error-renderer",function(){if(EB1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;t7i===void 0&&(t7i=document.createElement("template"));var n=t7i;C.call(k,n.content.cloneNode(!0),W.content.firstChild);EB1=W}W=EB1;return W},{mode:2});var Du6;var V7i;_.EJ("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var JtT=function(){return _.R.apply(this,arguments)||this};
_.D(JtT,_.R);_.Y=JtT.prototype;
_.Y.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"}}}}};
_.Y.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.Y.backgroundColorChanged_=function(){var W,k=(W=this.data)==null?void 0:W.backgroundColor;W=TS[k||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.S(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.Y.headerPromoBackgroundColorChanged_=function(){var W,k=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=TS[k||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.S(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.Y.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,k;this.isErrorRendererVisible_=!((k=this.data)==null||!k.errorRenderer)&&!W};
_.Y.onYtToggleButton_=function(W,k){this.isExpanded_=k.toggled};
var hG=JtT;hG.prototype.onYtToggleButton_=hG.prototype.onYtToggleButton_;hG.prototype.errorRendererVisibilityChanged_=hG.prototype.errorRendererVisibilityChanged_;hG.prototype.headerPromoBackgroundColorChanged_=hG.prototype.headerPromoBackgroundColorChanged_;hG.prototype.backgroundColorChanged_=hG.prototype.backgroundColorChanged_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(Ls6.YtCardItemBoxBehavior),_.O("design:type",Object)],hG.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.v(_.FiT.YtTappableItemBehavior),_.O("design:type",Object)],hG.prototype,"ytTappableItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hG.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],hG.prototype,"isExpanded_",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],hG.prototype,"isErrorRendererVisible_",void 0);_.U([_.Hl("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hG.prototype,"backgroundColorChanged_",null);_.U([_.Hl("data.headerPromoBackgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hG.prototype,"headerPromoBackgroundColorChanged_",null);
_.U([_.Hl("data.errorRenderer","isExpanded_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hG.prototype,"errorRendererVisibilityChanged_",null);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],hG.prototype,"onYtToggleButton_",null);hG=_.U([_.l0({is:"yt-card-item-renderer",disableElementRegistration:!0})],hG);
_.q(hG,"yt-card-item-renderer",function(){if(V7i===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Du6===void 0&&(Du6=document.createElement("template"));var n=Du6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);V7i=W}W=V7i;return W},{mode:2});_.EJ("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ctY=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;return W};
_.D(ctY,_.R);_.Y=ctY.prototype;_.Y.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.Y.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,k=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;k!==void 0&&(this.hidden=k)}};
_.Y.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,k,C,n=(C=_.z((k=this.data)==null?void 0:k.item,cw8))==null?void 0:C.headingRenderer;n&&(k=ey(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+k+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.Y.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var k,C,n=(C=_.z((k=this.data)==null?void 0:k.item,cw8))==null?void 0:C.headingRenderer;n&&(k=ey(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+k+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?sR(W.shortHeaderSummaryText):W.headerSummaryText?sR(W.headerSummaryText):""))}else{var N;if(k=(N=_.z((n=this.data)==null?void 0:n.item,cw8))==null?void 0:N.additionalInfoRenderer)k=ey(k,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+k+".text",W.headerSummaryText?sR(W.headerSummaryText):"")}};
_.Y.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,k,C,n=(C=_.z((k=this.data)==null?void 0:k.item,cw8))==null?void 0:C.additionalInfoRenderer;k=ey(n,"buttonRenderer");var N;C=(N=this.commerceCartHeaderEntity)==null?void 0:N.isButtonDisabled;var B;N=(B=this.commerceCartHeaderEntity)==null?void 0:B.isButtonHidden;C!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+k+".buttonRenderer.isDisabled",C);N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
N);var A;W=(A=W.checkoutButtonCommand)==null?void 0:A.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+k+".buttonRenderer.command",W)};
var WW=ctY;WW.prototype.entityChanged=WW.prototype.entityChanged;_.U([_.v(_.fk),_.O("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WW.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],WW.prototype,"compact",void 0);_.U([_.Z({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,k){return _.hQ(W.entities,"commerceCartHeaderEntity",k)}}),
_.O("design:type",Object)],WW.prototype,"commerceCartHeaderEntity",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WW.prototype,"hidden",void 0);_.U([_.Hl("commerceCartHeaderEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],WW.prototype,"entityChanged",null);WW=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],WW);
_.q(WW,"ytd-commerce-cart-header-renderer",function(){if(At$!==void 0)return At$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return At$=W},{mode:1});var IA6;var SS6=_.w2(function(W,k){var C;return(C=W.onChangeCallback)==null?void 0:C.call(W,k)},1E3),M77=_.GM(function(W){var k=W.data;
var C=W.iconMinus;W=W.iconPlus;var n=function(){return!!k().disabled},N=_.b(_.kw(0,void 0,"r56zNb")),B=N.next().value,A=N.next().value;
N={};N=_.Li("yt-spec-quantity-incrementer-shape__icon",(N["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return n()||B()===(k().onRemoveCommand?0:1)},N));
var w={};w=_.Li("yt-spec-quantity-incrementer-shape__icon",(w["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return B()>=k().maxValue||n()},w));
var x={};x=_.Li("yt-spec-quantity-incrementer-shape__text",(x["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return B()>k().maxValue},x["yt-spec-quantity-incrementer-shape__text--text-disabled"]=n,x));
var E=_.Pj(function(){if(B()===1){var X,d;(d=(X=k()).onRemoveCommand)==null||d.call(X)}X=B()>k().maxValue?k().maxValue:B()-1;A(X);SS6(k(),X);return!1}),a=_.Pj(function(){if(B()===k().maxValue)return!1;
var X=B()+1;A(X);SS6(k(),X);return!1});
_.lI(function(){A(k().value)});
return _.t("quantity-incrementer-shape",null,_.t("div",{class:"yt-spec-quantity-incrementer-shape"},_.t("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()===(k().onRemoveCommand?0:1)||n()},
"aria-label":function(){return B()!==1?k().minusLabel:k().minimumReachedLabel},
"on:click":E},_.t(_.BJ,{model:{circular:!0}}),_.t("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.t("div",{class:N},C()))),_.t("div",{class:x},B),_.t("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()>=k().maxValue||n()},
"aria-label":function(){return B()!==k().maxValue?k().plusLabel:k().maximumReachedLabel},
"on:click":a},_.t(_.BJ,{model:{circular:!0}}),_.t("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.t("div",{class:w},W())))))},"od");_.Gj(_.GM(function(W){function k(){C().onRemoveCommand&&_.zj(C().onRemoveCommand)}
var C=W.data;var n=_.kj(KOw,function(){return C().quantityIncrementerEntityKey});
return _.t("yt-quantity-incrementer-view-model",null,_.t(M77,{data:function(){var N=C(),B;var A=n()?!((B=n())==null||!B.disabled):!1;var w;B=n()?(w=n())==null?void 0:w.quantity:C().quantity;return ISz(N,A,k,B)},
iconMinus:function(){return _.t(_.ka,{icon:"BAR_HORIZONTAL",className:_.Hj("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.t(_.ka,{icon:"ADD",className:_.Hj("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"pd"),"yt-quantity-incrementer-view-model",{props:{data:_.Ik}});var kJ=function(){var W=_.R.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.D(kJ,_.R);kJ.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"}}}};
kJ.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.z((W=this.data)==null?void 0:W.picker,Qkz)};
kJ.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
var CJ=kJ;_.U([_.gi("ytd-dropdown-renderer"),_.O("design:type",Object)],CJ.prototype,"dropdownEl",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CJ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],CJ.prototype,"quantityColor",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],CJ.prototype,"compact",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.O("design:type",Object)],CJ.prototype,"hasQuantityIncrementer",void 0);CJ=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],CJ);
_.q(CJ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(IA6!==void 0)return IA6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return IA6=W},{mode:1});var Q1S;var pYY;var nJ=function(){return _.R.apply(this,arguments)||this};
_.D(nJ,_.R);nJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nJ.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
nJ.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",sR(W.disableActionName))};
nJ.prototype.updateButton=function(){var W,k=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;k!==void 0&&(this.set("data.actionButton.buttonRenderer.command",k),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var Np=nJ;Np.prototype.entityChanged=Np.prototype.entityChanged;_.U([_.v(_.fk),_.O("design:type",Object)],Np.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,k){return _.hQ(W.entities,"disabledCartItemEntity",k)}}),
_.O("design:type",Object)],Np.prototype,"disabledCartItemEntity",void 0);_.U([_.Z(),_.O("design:type",Object)],Np.prototype,"data",void 0);_.U([_.Hl("disabledCartItemEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Np.prototype,"entityChanged",null);Np=_.U([_.T({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Np);
_.q(Np,"ytd-disabled-cart-item-renderer",function(){if(pYY!==void 0)return pYY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return pYY=W},{mode:1});_.EJ("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var vBB=function(){var W=_.R.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.D(vBB,_.R);_.Y=vBB.prototype;
_.Y.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"}}}};
_.Y.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.Y.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.Y.computeNoOnTap=function(W){return!W};
_.Y.updateQuantityColor=function(){if(this.pickerElement){var W,k=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=k}};
_.Y.updateTotalPriceColor=function(){var W,k=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(k){var C;W=_.z((C=this.data)==null?void 0:C.quantityPicker,SQC);if(C=_.z(W==null?void 0:W.price,I1S))C.textColor=k}};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,k=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;k!==void 0&&(this.hidden=k)}};
_.Y.updateHideErrorMessage=function(){var W,k=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;k!==void 0&&(this.errorHidden=k)};
_.Y.updateQuantity=function(){var W=this,k,C=(k=this.commerceCartItemEntity)==null?void 0:k.quantity,n;k=(n=this.commerceCartItemEntity)==null?void 0:n.totalPrice;if(C){this.updateTotalPriceColor();this.updateQuantityColor();var N;n=_.z((N=this.data)==null?void 0:N.quantityPicker,SQC);if(N=_.z(n==null?void 0:n.price,I1S))N.text=k?{simpleText:k.content}:void 0;if(k=_.z(n==null?void 0:n.picker,Qkz))k.quantity=C;var B;if(N=(B=_.z(n==null?void 0:n.picker,jus))==null?void 0:B.entries){B=!1;k=void 0;N=
_.b(N);for(n=N.next();!n.done;n=N.next())n=n.value,n.dropdownItemRenderer&&(k||(k=n.dropdownItemRenderer),n.dropdownItemRenderer.isSelected=!1,C===n.dropdownItemRenderer.int32Value&&(B=!0,n.dropdownItemRenderer.isSelected=!0));!B&&k&&(k.isSelected=!0)}_.ZR(this,function(){var A;W.set("data.quantityPicker",_.JU.unsafeClone((A=W.data)==null?void 0:A.quantityPicker))})}};
var YJ=vBB;YJ.prototype.onYtRendererstamperFinished=YJ.prototype.onYtRendererstamperFinished;YJ.prototype.entityChanged=YJ.prototype.entityChanged;_.U([_.Z(),_.O("design:type",Object)],YJ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YJ.prototype,"compact",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],YJ.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,k){return _.hQ(W.entities,"commerceCartItemEntity",k)}}),
_.O("design:type",Object)],YJ.prototype,"commerceCartItemEntity",void 0);_.U([_.Z(),_.O("design:type",Object)],YJ.prototype,"quantityPicker",void 0);_.U([_.Z(),_.O("design:type",Object)],YJ.prototype,"compactQuantityPicker",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YJ.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YJ.prototype,"errorHidden",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.O("design:type",Object)],YJ.prototype,"noOnTap",void 0);_.U([_.gi("ytd-commerce-cart-item-quantity-picker-renderer"),_.O("design:type",Object)],YJ.prototype,"pickerElement",void 0);_.U([_.gi("yt-button-renderer"),_.O("design:type",Element)],YJ.prototype,"firstButtonElement",void 0);
_.U([_.Hl("commerceCartItemEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YJ.prototype,"entityChanged",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YJ.prototype,"onYtRendererstamperFinished",null);YJ=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],YJ);
_.q(YJ,"ytd-commerce-cart-item-renderer",function(){if(Q1S!==void 0)return Q1S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Q1S=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var e$E;var s1Z;var BW=function(){return _.R.apply(this,arguments)||this};
_.D(BW,_.R);BW.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}}}}}};
BW.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
BW.prototype.updateCheckoutLineItems=function(){var W,k=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;k&&(W=k.map(function(C){a:{var n=C.price;var N=C.description;switch(C.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":C={cardItemTextRenderer:{text:sR(N),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"}}};
n={cardItemTextRenderer:{text:sR(n),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}};n={commerceCartSummaryLineItemRenderer:{summaryText:C,price:n}};break a;default:C={cardItemTextRenderer:{text:sR(N),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"}}},n={cardItemTextRenderer:{text:sR(n),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}},n={commerceCartSummaryLineItemRenderer:{summaryText:C,price:n}}}}return n}),this.set("data.summaryLineItems",W))};
BW.prototype.updateIsHidden=function(){var W,k=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;k!==void 0&&(this.hostElement.hidden=k)};
var bG=BW;bG.prototype.entityChanged=bG.prototype.entityChanged;_.U([_.v(_.fk),_.O("design:type",Object)],bG.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bG.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],bG.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:SGX}),_.O("design:type",Object)],bG.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.Hl("commerceCartCheckoutButtonEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bG.prototype,"entityChanged",null);bG=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],bG);
_.q(bG,"ytd-commerce-cart-summary-renderer",function(){if(s1Z!==void 0)return s1Z;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return s1Z=W},{mode:1});var GCB={};GCB.InjectBehavior=[Dkw.InjectBehavior];var yt6;var $u6;var AI=function(){return _.R.apply(this,arguments)||this};
_.D(AI,_.R);
AI.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:_.ah("menuRenderer")}}};
AI.prototype.onMenuTap=function(W){W.stopPropagation()};
_.oq.Object.defineProperties(AI.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 W,k;return!(((W=this.data)==null||!W.sectionHeading)&&((k=this.data)==null?void 0:k.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,k;return!(((W=this.data)==null||!W.image)&&((k=this.data)==null?void 0:k.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,k;return!(((W=this.data)==null||!W.menu)&&((k=this.data)==null?void 0:k.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var FG=AI;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.FiT.YtTappableItemBehavior),_.O("design:type",Object)],FG.prototype,"ytTappableItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FG.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.accessibilityData"),_.O("design:type",String),_.O("design:paramtypes",[])],FG.prototype,"ariaLabel",null);_.U([_.G("data.sectionHeading","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FG.prototype,"sectionHeadingVisible",null);_.U([_.G("data.image","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FG.prototype,"imageVisible",null);
_.U([_.G("data.menu","data.layout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],FG.prototype,"menuVisible",null);FG=_.U([_.l0({is:"yt-activity-item-renderer",disableElementRegistration:!0})],FG);
_.q(FG,"yt-activity-item-renderer",function(){if($u6===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;yt6===void 0&&(yt6=document.createElement("template"));var n=yt6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);$u6=W}W=$u6;return W},{mode:2});var Z77;var R$1;var oBZ;var i71;var TZT=function(){return _.R.apply(this,arguments)||this};
_.D(TZT,_.R);
TZT.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"}}}}};
TZT.prototype.backgroundColorChanged_=function(){var W,k=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=TS[k||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var wC=TZT;wC.prototype.backgroundColorChanged_=wC.prototype.backgroundColorChanged_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wC.prototype,"data",void 0);
_.U([_.Hl("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wC.prototype,"backgroundColorChanged_",null);wC=_.U([_.l0({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],wC);
_.q(wC,"yt-offer-item-upsell-renderer",function(){if(i71===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;oBZ===void 0&&(oBZ=document.createElement("template"));var n=oBZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);i71=W}W=i71;return W},{mode:2});_.EJ("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var qSS=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.D(qSS,_.R);_.Y=qSS.prototype;
_.Y.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:_.ah("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.Y.computeContainerStyle_=function(W){return W};
_.Y.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.Y.computeShowSpinner_=function(W,k){return W&&k==="in-progress"};
_.Y.computeShowMoreContentsButton_=function(W,k,C,n,N){return!(!(n&&n.length||N&&N.length&&C)||!W||k)};
_.Y.onToggleButton_=function(W){var k=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var C,n;this.isExpanded_&&!this.data.continuationSection.length&&((C=this.data)==null?0:(n=C.continuation)==null?0:n.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Pe(this.hostElement,"yt-load-next-continuation",function(N){return k.getContinuationUrl_(k.data.continuation.onClickContinuationData,N)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.kQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.Y.onShowMoreContentsButtonClicked_=function(W){var k=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Pe(this.hostElement,"yt-load-next-continuation",function(C){return k.getContinuationUrl_(k.data.continuations[0].nextContinuationData,C)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.kQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.Y.getContinuationUrl_=function(W,k){var C=W.continuation;W=W.clickTrackingParams;var n=_.VM();W&&n&&_.Zr(n,_.Yf(W));return _.$n(k,{continuation:C})};
_.Y.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.S(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(k){return k.classList.add("memberships-and-purchases")})};
_.Y.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.Y.updateCardOnClickCommand_=function(W){W=_.z(W,XRs);var k,C;this.data&&((k=this.data)==null?0:k.targetId)&&W&&W.targetId===((C=this.data)==null?void 0:C.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.Y.backgroundColorChanged_=function(){var W,k=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=TS[k||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var xJ=qSS;xJ.prototype.backgroundColorChanged_=xJ.prototype.backgroundColorChanged_;xJ.prototype.dataChanged_=xJ.prototype.dataChanged_;xJ.prototype.nextContinuationDataUpdated_=xJ.prototype.nextContinuationDataUpdated_;xJ.prototype.onToggleButton_=xJ.prototype.onToggleButton_;_.U([_.v(_.ui),_.O("design:type",Object)],xJ.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],xJ.prototype,"ytNextContinuationBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(GCB.InjectBehavior),_.O("design:type",Object)],xJ.prototype,"injectBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xJ.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xJ.prototype,"compact",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],xJ.prototype,"isExpanded_",void 0);_.U([_.Z({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.O("design:type",String)],xJ.prototype,"containerStyle_",void 0);_.U([_.Z({value:"not-started"}),_.O("design:type",String)],xJ.prototype,"continuationStatus_",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.O("design:type",Boolean)],xJ.prototype,"showSpinner_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],xJ.prototype,"isOnClickCommand_",void 0);_.U([_.Z({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.O("design:type",Boolean)],xJ.prototype,"showMoreContentsButton_",void 0);
_.U([_.Z({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,k){return!k||W.entities?null:_.hQ(W.entities,"cardItemContainerEntity",k)}}),
_.O("design:type",Object)],xJ.prototype,"cardItemContainerEntity_",void 0);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xJ.prototype,"onToggleButton_",null);_.U([_.jI("yt-next-continuation-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xJ.prototype,"nextContinuationDataUpdated_",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xJ.prototype,"dataChanged_",null);_.U([_.Hl("data.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xJ.prototype,"backgroundColorChanged_",null);xJ=_.U([_.l0({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],xJ);
_.q(xJ,"yt-card-item-container-renderer",function(){if(R$1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Z77===void 0&&(Z77=document.createElement("template"));var n=Z77;C.call(k,n.content.cloneNode(!0),W.content.firstChild);R$1=W}W=R$1;return W},{mode:2});var lG=function(){return _.R.apply(this,arguments)||this};
_.D(lG,_.R);lG.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"}}}};
lG.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
lG.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
lG.prototype.updateNotification=function(){var W,k=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;k&&this.set("data.cartNotification",sR(k))};
var tI=lG;tI.prototype.notificationEntityChanged=tI.prototype.notificationEntityChanged;_.U([_.v(_.fk),_.O("design:type",Object)],tI.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],tI.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,k){return _.hQ(W.entities,"commerceCartExpandableNotificationEntity",k)}}),
_.O("design:type",Object)],tI.prototype,"commerceCartExpandableNotificationEntity",void 0);_.U([_.Z({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,k){return _.hQ(W.entities,"commerceCartPageStateEntity",k)}}),
_.O("design:type",Object)],tI.prototype,"commerceCartPageStateEntity",void 0);_.U([_.gi("#spinner"),_.O("design:type",HTMLElement)],tI.prototype,"spinner",void 0);_.U([_.Hl("commerceCartExpandableNotificationEntity","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tI.prototype,"notificationEntityChanged",null);tI=_.U([_.T({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],tI);
_.q(tI,"ytd-commerce-cart-renderer",function(){if(e$E!==void 0)return e$E;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return e$E=W},{mode:1});var u6i;var Uu6=function(){var W=_.R.apply(this,arguments)||this;W.bigImage=!1;return W};
_.D(Uu6,_.R);_.oq.Object.defineProperties(Uu6.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
var E0=Uu6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],E0.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],E0.prototype,"bigImage",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],E0.prototype,"placeholderImageUrl",null);E0=_.U([_.T({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],E0);
_.q(E0,"ytd-empty-product-shelf-renderer",function(){if(u6i!==void 0)return u6i;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return u6i=W},{mode:1});var O7A;var Li7=function(){var W=_.R.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.D(Li7,_.R);_.Y=Li7.prototype;_.Y.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.Y.attachVEs=function(W){W.trackingParams&&_.kf().graftServerVe(W.trackingParams)};
_.Y.handleUpdateMerchShelfAction=function(W){var k=this,C=_.z(W.updateMerchandiseShelfAction.merchandiseShelf,_.tBx);C&&(C.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){k.attachVEs(C);k.data=C},Number(C.renderDelayMs))):(this.attachVEs(C),this.data=C))};
_.Y.updateOnResize=function(){if(this.JSC$14551_scrollContainer!==void 0&&this.JSC$14551_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$14551_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var k;switch((k=this.data)==null?void 0:k.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var C,
n;((C=this.data)==null?void 0:(n=C.items)==null?void 0:n.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.Y.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.gD(this.updateOnResizeDebouncer,_.$v.after(100),this.updateOnResize)};
var aB=Li7;aB.prototype.debouncedUpdateOnResize=aB.prototype.debouncedUpdateOnResize;aB.prototype.dataChanged=aB.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],aB.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],aB.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],aB.prototype,"itemStyle",void 0);_.U([_.Z({value:6}),_.O("design:type",Number)],aB.prototype,"initialCount",void 0);
_.U([_.Z({value:"data.items"}),_.O("design:type",String)],aB.prototype,"itemsPath",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],aB.prototype,"watchMetadataRefresh",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],aB.prototype,"skinnyMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],aB.prototype,"metaPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],aB.prototype,"inStructuredDescription",void 0);
_.U([_.gi("#items"),_.O("design:type",HTMLDivElement)],aB.prototype,"items",void 0);_.U([_.gi("#scroll-container"),_.O("design:type",HTMLDivElement)],aB.prototype,"JSC$14551_scrollContainer",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],aB.prototype,"dataChanged",null);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],aB.prototype,"debouncedUpdateOnResize",null);
aB=_.U([_.T({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],aB);
_.q(aB,"ytd-merch-shelf-renderer",function(){if(O7A!==void 0)return O7A;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return O7A=W},{mode:2});var j1t;var H7T=function(){var W=_.R.apply(this,arguments)||this;W.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 W};
_.D(H7T,_.R);_.Y=H7T.prototype;
_.Y.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.Y.addBackstageCommentAction=function(W){var k=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(k&&W){k=this.postIdToIndices(k);for(var C=0;C<k.length;C++){var n=k[C];if(n<0)break;n="data.contents."+n+".backstagePostThreadRenderer.comments";this.get(n)&&(this.get(n+".backstageCommentsRenderer.contents")&&this.push(n+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(n+".backstageCommentsRenderer.teaserContents")?
this.push(n+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(n+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.Y.addBackstageReplyAction=function(W){var k=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);k&&W&&this.setCreatorReply(k,W)};
_.Y.banAuthorAction=function(W){var k=this.get("banAuthorAction.commentId",W);k&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(k),this.removeFromStream(k,W))};
_.Y.hideReportedCommentAction=function(W){var k=this.get("hideReportedCommentAction.commentId",W);k&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(k)),this.removeFromStream(k,W))};
_.Y.replaceBackstageCommentAction=function(W){var k=this.get("replaceBackstageCommentAction.commentId",W),C=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(k&&C&&W){C=this.postIdToIndices(C);for(var n=0;n<C.length;n++){var N=C[n];if(N<0)break;var B=this.commentIdToIndex(k,N,!1);if(B>=0){var A=this.get("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B+".commentThreadRenderer.replies.commentRepliesRenderer");
A&&(W.replies={commentRepliesRenderer:A});this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",B,1,{commentThreadRenderer:W})}B=this.commentIdToIndex(k,N,!0);if(B>=0){if(A=this.get("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(B+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:A};this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
B,1,{commentThreadRenderer:W})}}}};
_.Y.replaceBackstagePostAction=function(W){var k=this.get("replaceBackstagePostAction.itemId",W);if(k){k=this.postIdToIndices(k);for(var C=0;C<k.length;C++){var n=k[C];if(n<0)break;var N=this.getPostRendererType(n),B=this.get("replaceBackstagePostAction.renderer."+N,W);if(!B&&N!=="sharedPostRenderer")break;var A=!1;B||(A=!0,B=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!B)break;var w={};A?(_.l6(w,SYA,B),this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
w)):(_.l6(w,new _.r(N),B),this.set("data.contents."+n+".backstagePostThreadRenderer.post",w))}}};
_.Y.replaceBackstageReplyAction=function(W){var k=this.get("replaceBackstageReplyAction.replyId",W),C=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);k&&W&&C&&this.setCreatorReply(C,W)};
_.Y.removeCommentAction=function(W){var k=this.get("removeCommentAction.commentId",W);if(k){var C=this.get("removeCommentAction.parentCommentId",W);C&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(C,void 0):(C||(C=this.getParentPostId(k)),this.removeFromStream(k,C))}};
_.Y.setCreatorReply=function(W,k){var C=this.getParentPostId(W);if(C){C=this.postIdToIndices(C);for(var n=0;n<C.length;n++){var N=C[n];if(N<0)break;var B=this.commentIdToIndex(W,N,!1);if(B>=0){var A="data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B;B=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";A+=".commentThreadRenderer.replies";k==void 0?(this.set(A,{}),this.set(B,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:k}]}}),
this.set(A+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(B,!0))}B=this.commentIdToIndex(W,N,!0);B>=0&&(B="data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+B,N=B+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",B+=".commentThreadRenderer.replies",k==void 0?(this.set(B,{}),this.set(N,!1)):(this.set(B,{commentRepliesRenderer:{teaserContents:[{commentRenderer:k}]}}),this.set(N,!0)))}}};
_.Y.removeFromStream=function(W,k){if(k){k=this.postIdToIndices(k);for(var C=0;C<k.length;C++){var n=k[C];if(n<0)break;var N=this.commentIdToIndex(W,n,!1);N>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",N,1);N=this.commentIdToIndex(W,n,!0);N>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",N,1);n="data.contents."+n+".backstagePostThreadRenderer.post.backstagePostRenderer";
N=n+".backstageAttachment.pollRenderer.votedCommentId";this.get(N)===W&&(this.set(N,null),this.set(n+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(k=this.postIdToIndices(W).reverse(),C=0;C<k.length;C++){n=k[C];if(n<0)break;N=this.getPostRendererType(n);var B=this.get("backstagePostThreadRenderer.post."+N,this.data.contents[n]);B.postId===W?this.splice("data.contents",n,1):N==="sharedPostRenderer"&&this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);B.scheduledPublishTimeSec&&_.KY(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.Y.postIdToIndices=function(W){for(var k=[],C=0;C<this.data.contents.length;C++){var n=this.getPostRendererType(C);this.get("backstagePostThreadRenderer.post."+n+".postId",this.data.contents[C])===W&&k.push(C);if(n==="sharedPostRenderer"){var N=this.get("backstagePostThreadRenderer.post."+n+".originalPost.backstagePostRenderer.postId",this.data.contents[C]);n=this.get("backstagePostThreadRenderer.post."+n+".originalPost.postRenderer.postId",this.data.contents[C]);N!==W&&n!==W||k.push(C)}}return k};
_.Y.commentIdToIndex=function(W,k,C){if(k<0)return-1;var n,N,B,A,w=_.z((n=this.data)==null?void 0:(N=n.contents)==null?void 0:(B=N[k])==null?void 0:(A=B.backstagePostThreadRenderer)==null?void 0:A.comments,cb8);return(k=C?w==null?void 0:w.teaserContents:w==null?void 0:w.contents)&&k.length?k.findIndex(function(x){return _.z(x,hOA).comment.commentRenderer.commentId===W}):-1};
_.Y.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.Y.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
var JI=H7T;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],JI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JI.prototype,"data",void 0);JI=_.U([_.T({disableElementRegistration:!0,is:"ytd-backstage-items"})],JI);
_.q(JI,"ytd-backstage-items",function(){if(j1t!==void 0)return j1t;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return j1t=
W},{mode:1});var rt7;_.Av({is:"ytd-comments",_template:function(){if(rt7!==void 0)return rt7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return rt7=W},
behaviors:[_.IU2.YtHostElementBehavior,_.pk.YtPlayerListenerBehavior,_.K.YtRendererBehavior,_.$D.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 W=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$14564_PLAYER_EVENTS_=new Map;this.JSC$14564_PLAYER_EVENTS_.set("onVideoProgress",function(){W.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var W=this,k=_.Zf(this);k&&k.getPlayerPromise().then(function(C){W.playerApiReady_(C)})},
playerApiReady_:function(W){this.setPlayer_(W)},
setPlayer_:function(W){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14564_PLAYER_EVENTS_);(this.player_=W)&&this.listenToPlayerEvents(W,this.JSC$14564_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var W=this,k=_.Oe("prefetch_comments_ms_after_video");k>0&&setTimeout(function(){return W.loadComments()},k);
_.m("prefetch_comments_idle_job")&&_.wI(_.aM,function(){return W.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(W){W&&W.value&&W.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(W){W&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.JQ("wn_comments");var W=_.VM();W&&_.Vb({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(W){W=SWm(W);var k,C,n;if(W=(k=W)==null?void 0:(C=k.createCommentAction)==null?void 0:(n=C.contents)==null?void 0:n.commentThreadRenderer){var N,B,A,w,x,E;!this.isBackstage&&((N=this.data)==null?0:(B=N.header)==null?0:(A=B.commentsHeaderRenderer)==null?0:(w=A.createRenderer)==null?0:(x=w.commentSimpleboxRenderer)==null?0:(E=x.zeroStep)==null?0:E.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var a,X,d,V;this.isBackstage&&((a=this.data)==null?0:(X=a.header)==null?0:(d=X.commentsHeaderRenderer)==null?0:(V=d.zeroStateMessage)==null?0:V.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}},
doReplyInsert_:function(W,k,C,n){n?this.splice(W,n,0,k):this.push(W,k)},
getRepliesPath_:function(W){return"data.contents."+W+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(W,k){W=this.getRepliesPath_(W);return k?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(W){W=SWm(W);var k,C,n=(k=W)==null?void 0:(C=k.createCommentReplyAction)==null?void 0:C.parentCommentId,N,B;if(k=(N=W)==null?void 0:(B=N.createCommentReplyAction)==null?void 0:B.contents)if(n=this.commentIdToIndex_(n),!(n<0))if(N=this.getRepliesPath_(n),this.get(N)){var A,w;W=(A=W)==null?void 0:(w=A.createCommentReplyAction)==null?void 0:w.replyToCommentId;A=this.getRepliesContentsPath_(n,!1);this.get(A)&&(w=this.get(A).length,N=A+"."+(w-1)+".continuationItemRenderer",
this.get(N+".button")?(N=this.replyIdToIndex_(W,n,!1),this.doReplyInsert_(A,k,N,w-1)):this.get(N)||(w=this.replyIdToIndex_(W,n,!1),this.doReplyInsert_(A,k,w,null)));A=this.getRepliesContentsPath_(n,!0);this.get(A)?(n=this.replyIdToIndex_(W,n,!0),(!W||n>=0)&&this.doReplyInsert_(A,k,n,null)):this.set(A,[k])}else this.set(N,{commentRepliesRenderer:{teaserContents:[k]}})},
hideReportedCommentAction_:function(W){var k,C=W==null?void 0:(k=W.hideReportedCommentAction)==null?void 0:k.commentId;if(C){var n;W=W==null?void 0:(n=W.hideReportedCommentAction)==null?void 0:n.parentCommentId;C=C.replace("#",".");W||(W=this.getParentCommentId_(C));this.remove_(C,W)}},
getParentCommentId_:function(W){W=W.split(".");if(W[1])return W[0]},
removeCommentAction_:function(W){var k,C=W==null?void 0:(k=W.removeCommentAction)==null?void 0:k.commentId;if(C){var n;W=W==null?void 0:(n=W.removeCommentAction)==null?void 0:n.parentCommentId;C=C.replace("#",".");W||(W=this.getParentCommentId_(C));this.remove_(C,W)}},
pinCommentAction_:function(W){W=SWm(W);var k,C,n=(k=W)==null?void 0:(C=k.pinCommentAction)==null?void 0:C.commentId;n&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(n),this.insert_(W,!0))},
unpinCommentAction_:function(W){W=SWm(W);var k,C,n=(k=W)==null?void 0:(C=k.unpinCommentAction)==null?void 0:C.commentId;if(n){var N,B,A;if(W=(N=W.unpinCommentAction)==null?void 0:(B=N.actionResult)==null?void 0:(A=B.update)==null?void 0:A.commentThreadRenderer)this.remove_(n),this.insert_(W)}},
banAuthorAction_:function(W){var k,C=W==null?void 0:(k=W.banAuthorAction)==null?void 0:k.commentId;if(C){var n;W=W==null?void 0:(n=W.banAuthorAction)==null?void 0:n.parentCommentId;C=C.replace("#",".");W||(W=this.getParentCommentId_(C));this.remove_(C,W)}},
commentIdToIndex_:function(W){var k;return W&&(k=this.data)!=null&&k.contents?this.data.contents.findIndex(function(C){var n,N;return W===((C==null?void 0:(n=C.commentThreadRenderer)==null?void 0:n.commentViewModel)&&((N=_.z(C.commentThreadRenderer.commentViewModel,nXI))==null?void 0:N.commentId))}):-1},
insert_:function(W,k){var C,n;if((C=this.data)==null?0:(n=C.contents)==null?0:n.some(function(B){return!(B==null||!B.commentThreadRenderer)}))for(C=0,n=this.data.contents.length;C<n;C++){var N=this.data.contents[C].commentThreadRenderer;
if(this.RenderingPriority[W.renderingPriority]>=this.RenderingPriority[N.renderingPriority]){k&&this.RenderingPriority[W.renderingPriority]==this.RenderingPriority[N.renderingPriority]?this.splice("data.contents",C,1,{commentThreadRenderer:W}):this.splice("data.contents",C,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])},
doReplyRemove_:function(W,k,C){W=this.replyIdToIndex_(W,k,C);W<0||(k=this.getRepliesContentsPath_(k,C),this.splice(k,W,1))},
remove_:function(W,k){k=this.commentIdToIndex_(k);k<0?(k=this.commentIdToIndex_(W),k<0||this.splice("data.contents",k,1)):(this.doReplyRemove_(W,k,!1),this.doReplyRemove_(W,k,!0))},
replyIdToIndex_:function(W,k,C){if(k<0)return-1;k=this.getRepliesContentsPath_(k,C);k=this.get(k);if(!k||!k.length)return-1;C=0;for(var n=k.length;C<n;C++){var N=void 0,B=void 0;if(((N=k[C])==null?void 0:(B=N.commentViewModel)==null?void 0:B.commentId)===W)return C}return-1},
computeIsBackstage_:function(W){return!!W},
computeCanShowDefaultSpinner_:function(W,k){return k?(k=_.f().resolve(_.qI(_.yF)))&&k.isOnWatch&&k.isOnWatch()?!(W&&(W.contents||W.header||W.continuations)):!1:!1},
onRetrieveLocation_:function(W,k){k&&k.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(W){_.Iz(W,void 0,"wn_comments")},
reloadComments_:function(W){W&&W.reloadCommentsCommand&&W.reloadCommentsCommand.command&&W.reloadCommentsCommand.command.continuationCommand&&_.kQ(this,[W.reloadCommentsCommand.command])},
loadComments:function(){_.Oe("prefetch_comments_ms_after_video")||_.m("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var gBZ=function(){return _.Wp.apply(this,arguments)||this};
_.D(gBZ,_.Wp);_.Y=gBZ.prototype;_.Y.bindIf=function(W,k,C){return W?k:C};
_.Y.bindIfDefined=function(W,k){return W!==void 0?W:k};
_.Y.booleanString=function(W){return(!!W).toString()};
_.Y.equals=function(){for(var W=_.v6.apply(0,arguments),k=W[0],C=1;C<W.length;C++)if(k!=W[C])return!1;return!0};
_.Y.isGreaterThan=function(W,k){return W>k};
_.Y.isLessThan=function(W,k){return W<k};
_.Y.logicalAND=function(){for(var W=_.v6.apply(0,arguments),k=!!W[0],C=1;C<W.length;C++)k=k&&!!W[C];return k};
_.Y.logicalOR=function(){for(var W=_.v6.apply(0,arguments),k=!!W[0],C=1;C<W.length;C++)k=k||!!W[C];return k};
_.Y.toBool=function(W){return!!W};
var cW=gBZ;cW.prototype.toBool=cW.prototype.toBool;cW.prototype.logicalOR=cW.prototype.logicalOR;cW.prototype.logicalAND=cW.prototype.logicalAND;cW.prototype.isLessThan=cW.prototype.isLessThan;cW.prototype.isGreaterThan=cW.prototype.isGreaterThan;cW.prototype.equals=cW.prototype.equals;cW.prototype.booleanString=cW.prototype.booleanString;cW.prototype.bindIfDefined=cW.prototype.bindIfDefined;cW.prototype.bindIf=cW.prototype.bindIf;cW=_.U([_.kr()],cW);_.PE7=[cW.prototype];var KiT;var h$i;var W_1=function(){return _.R.apply(this,arguments)||this};
_.D(W_1,_.R);W_1.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
W_1.prototype.onBackIconTap_=function(){window.history.back()};
var IB=W_1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],IB.prototype,"data",void 0);IB=_.U([_.l0({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],IB);
_.q(IB,"yt-header-with-back-renderer",function(){if(h$i===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;KiT===void 0&&(KiT=document.createElement("template"));var n=KiT;C.call(k,n.content.cloneNode(!0),W.content.firstChild);h$i=W}W=h$i;return W},{mode:2});var kiS;var C5Z;var n3B=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(n3B,_.R);_.Y=n3B.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.Y.dataChanged=function(){var W=this;if(this.data){var k=this.setUrl();k&&_.UM({destination:window,iframe:this.iframe,origin:_.dub(k.toString()),channelName:"yt-iframe",onMessage:function(C){(C=W.getCommunicationCommand(C.data))&&W.ytComponentBehavior.resolveCommand(C)},
onEstablished:function(){}})}};
_.Y.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.XE(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.i5(this.iframe,W),W}};
_.Y.getCommunicationCommand=function(W){var k;if((k=this.data)!=null&&k.onCommunicationCommandsMap){k=this.data.onCommunicationCommandsMap.find(function(N){return N.key===W});
if(k==null?0:k.value)return k==null?void 0:k.value;try{var C=Aw8(_.Pw(W)),n=this.data.onCommunicationCommandsMap.find(function(N){return N.key===(C==null?void 0:_.Vo(C,1))});
if(n==null?0:n.value)return n==null?void 0:n.value}catch(N){}}};
var Sl=n3B;Sl.prototype.dataChanged=Sl.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Sl.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Sl.prototype,"data",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Sl.prototype,"isDarkTheme",void 0);_.U([_.gi("#iframe"),_.O("design:type",HTMLIFrameElement)],Sl.prototype,"iframe",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sl.prototype,"dataChanged",null);Sl=_.U([_.l0({is:"yt-iframe-renderer",disableElementRegistration:!0})],Sl);
_.q(Sl,"yt-iframe-renderer",function(){if(C5Z===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;kiS===void 0&&(kiS=document.createElement("template"));var n=kiS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);C5Z=W}W=C5Z;return W},{mode:2});_.Mp=function(W){_.XK.call(this);this.callback=W;this.bezier=new YJz(0,0,.4,0,.2,1,1,1);this.delay=new _.uD(this.next,window,this);this.JSC$14582_animating=!1;_.Bf(this,this.delay)};
_.D(_.Mp,_.XK);_.Mp.prototype.isAnimating=function(){return this.JSC$14582_animating};
_.Mp.prototype.start=function(W,k,C){this.config={from:W,to:k,duration:C,startTime:(0,_.oX)()};this.JSC$14582_animating=!0;this.next()};
_.Mp.prototype.stop=function(){this.delay.stop();this.JSC$14582_animating=!1;this.config=void 0};
_.Mp.prototype.next=function(){if(this.config){var W=this.config,k=W.from,C=W.to,n=W.duration;W=W.startTime;var N=(0,_.oX)()-W;W=this.bezier;n=bn2(W,N/n);if(n==0)W=W.y0;else if(n==1)W=W.y3;else{N=XH(W.y0,W.y1,n);var B=XH(W.y1,W.y2,n);W=XH(W.y2,W.y3,n);N=XH(N,B,n);B=XH(B,W,n);W=XH(N,B,n)}W=_.Sq(W,0,1);this.callback(k+(C-k)*W);W<1?this.delay.start():this.JSC$14582_animating=!1}};_.Qp=new _.Tc("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Nj7={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Bj7=function(W,k,C,n){_.XK.call(this);this.JSC$14590_miniAppId=W;this.localReleaseId=k;this.derivedDeviceInterface=C;this.isForeground=n;this.JSC$14590_playNonceResolver=new _.gn;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Oe("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Oe("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.m("enable_displaying_ppn");this.JSC$14590_miniAppClientDataProvider=_.f().resolve(_.Qp);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Yzu(this);var N=setTimeout(function(){_.zJ(new _.AM("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14590_playNonceResolver.promise.then(function(){clearTimeout(N)})};
_.D(Bj7,_.XK);var Ao7=function(W,k){W.JSC$14590_playNonceResolver.resolve(k!=null?k:mQ(8));W.enableDisplayingPpn&&bLi(W).then(function(C){W.JSC$14590_miniAppClientDataProvider.clientData.set("post_play_nonce",C)})},bLi=function(W){return _.F(function(k){return k.nextAddress==1?_.l(k,W.JSC$14590_playNonceResolver.promise,2):k.return(k.yieldResult)})},Yzu=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$14590_playNonceResolver.promise,2);k=n.yieldResult;C={miniAppInfo:{externalPostId:W.JSC$14590_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:k,derivedDeviceInterface:W.derivedDeviceInterface}};_.Vb(C);_.ab(n)})},w67=function(W){W.state!==0?_.zJ(new _.AM("[MiniAppPlayLogger] recordPlayStart failed with state "+Nj7[W.state])):(W.state=1,pJ(W,"ma_cl"),vW(W,"PLAY_EVENT_TYPE_PLAY_START"),F_7(W))},xat=function(W){W.isForeground=!1;
vW(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},llZ=function(W){W.state!==1&&W.state!==2?_.zJ(new _.AM("[MiniAppPlayLogger] recordPlayEnd failed with state "+Nj7[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,kuw(),vW(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},tNT=function(W,k){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),vW(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):k&&(pJ(W,"ma_fua"),vW(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
Bj7.prototype.logError=function(W){var k=this,C;_.F(function(n){if(n.nextAddress==1)return W.metadata.externalPostId=k.JSC$14590_miniAppId,C=W.metadata,_.l(n,Promise.race([k.JSC$14590_playNonceResolver.promise,new Promise(function(N){setTimeout(function(){N("")},3E4)})]),2);
C.postPlayNonce=n.yieldResult;W.metadata.localReleaseId=k.localReleaseId;W.loggingError.level="WARNING";_.dI(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.ab(n)})};
var E37=function(W,k,C,n){var N,B,A,w,x,E;_.F(function(a){if(a.nextAddress==1)return _.l(a,W.JSC$14590_playNonceResolver.promise,2);N=a.yieldResult;B={externalPostId:W.JSC$14590_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:N,sdkVersion:C,api:k};n!==void 0&&(B.networkRequestsMeasurement={networkRequests:_.gP(n,1),cachedRequests:_.gP(n,2),transferredBytes:_.gP(n,3)},(A=n)==null?0:_.x4(A,iF,6))&&(B.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((w=_.q7(n,
iF,6))==null?void 0:c9(w,1))||"0",cacheHits:((x=_.q7(n,iF,6))==null?void 0:c9(x,2))||"0",cachedBytes:((E=_.q7(n,iF,6))==null?void 0:c9(E,3))||"0"});_.a9("miniAppSdkUsage",B);_.ab(a)})},X6$=function(W,k,C){var n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u;
_.F(function(h){if(h.nextAddress==1)return _.l(h,W.JSC$14590_playNonceResolver.promise,2);n=h.yieldResult;N={externalPostId:W.JSC$14590_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:n,sdkVersion:C,measurementWindow:{startTimestampMs:String(zv(k,1)),endTimestampMs:String(zv(k,2))},frameRate:{averageFrameTimeDeltaMs:DB(k,3),averageFrameIdleTimeMs:DB(k,4)}};_.x4(k,Tu,5)&&(N.networkRequests={networkRequests:(B=HO(k))==null?void 0:_.gP(B,1),cachedRequests:(A=HO(k))==null?void 0:_.gP(A,2),transferredBytes:(w=
HO(k))==null?void 0:_.gP(w,3),sameOriginStatusCodeToCounts:alE((x=HO(k))==null?void 0:duw(x,4)),crossOriginStatusCodeToCounts:alE((E=HO(k))==null?void 0:duw(E,5))},(a=HO(k))==null?0:_.x4(a,iF,6))&&(N.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((X=HO(k))==null?void 0:(d=_.q7(X,iF,6))==null?void 0:c9(d,1))||"0",cacheHits:((V=HO(k))==null?void 0:(c=_.q7(V,iF,6))==null?void 0:c9(c,2))||"0",cachedBytes:((M=HO(k))==null?void 0:(p=_.q7(M,iF,6))==null?void 0:c9(p,3))||"0"});_.x4(k,
zk8,7)&&(N.gameCapture={averageFrameTimeDeltaMs:(e=_.q7(k,zk8,7))==null?void 0:DB(e,1),averageFrameIdleTimeMs:(u=_.q7(k,zk8,7))==null?void 0:DB(u,2)});_.a9("miniAppPerformanceMetrics",N);_.ab(h)})},flT=function(W,k,C){var n,N;
return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.JSC$14590_playNonceResolver.promise,2);n=B.yieldResult;N={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$14590_miniAppId,postPlayNonce:n,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:k};N.rejectedReason=C||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.a9("miniAppAdEvent",N);_.ab(B)})};
Bj7.prototype.disposeInternal=function(){_.XK.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var vW=function(W,k,C,n){C=C===void 0?{}:C;n=n===void 0?!1:n;var N,B,A,w;_.F(function(x){if(x.nextAddress==1)return N=W.isForeground,B=W.beforeReady,_.l(x,W.JSC$14590_playNonceResolver.promise,2);A=x.yieldResult;w={externalPostId:W.JSC$14590_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:A,type:k};C.sequenceGroup=A;w.playState=B?"PLAY_STATE_NOT_READY":N?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.a9("miniAppPlayEvent",w,C);
n&&_.fM();_.ab(x)})},pJ=function(W,k){var C;
_.F(function(n){if(n.nextAddress==1)return C=(0,_.oX)(),_.l(n,W.JSC$14590_playNonceResolver.promise,2);_.cN(k,C);_.ab(n)})},F_7=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.gA(function(){W.state!==1&&W.state!==2?_.zJ(new _.AM("[MiniAppPlayLogger] reportPlayPing failed with state "+Nj7[W.state])):vW(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},alE=function(W){return Array.from(W.entries()).map(function(k){var C=_.b(k);
k=C.next().value;C=C.next().value;return{key:k,value:C}})};var da7=_.Oe("show_mini_app_ad_frequency_cap_ms",0),ma7=function(){this.showAdIntervalMs=da7;this.isRateLimited=!0},zr6=function(W,k){setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
W.showMiniAppAdCommand=k.showMiniAppAdCommand;W.isEmbeddedInWebview=k.isEmbeddedInWebview;W.playLogger=k.playLogger},VNY=function(W,k){var C;
return _.F(function(n){if(n.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return n.return(DaZ(W,k,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(W.isRateLimited)return n.return(DaZ(W,k,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));W.adResolver=new _.gn;C=Z_I(new $F2,k);yr(W.showMiniAppAdCommand,RXx(C));W.isRateLimited=!0;setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
return _.l(n,W.adResolver.promise,2)}return n.return(n.yieldResult)})};
ma7.prototype.onAdFinished=function(W){W=hms(W);var k;(k=this.adResolver)==null||k.resolve(W)};
var DaZ=function(W,k,C){var n;return _.F(function(N){if(N.nextAddress==1)N=_.l(N,(n=W.playLogger)==null?void 0:flT(n,s03(k),C),2);else{var B=N.return;var A=new KlS;A=_.up(A,1,2);N=B.call(N,A)}return N})};var JoA=new _.Tc("INNERTUBE_MANAGER_TOKEN");var coY=function(){this.callbacks={}};
coY.prototype.initialize=function(W){var k=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(C){IlT(k,C)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(C){IlT(k,C)})};
var IlT=function(W,k){if(k.data)try{var C=Aw8(k.data);if(_.lE(_.wv(C,1))!=null){var n=vvS(_.Vo(C,2));switch(_.Vo(C,1)){case "yt-mini-app-load-audio-state":var N,B;(B=(N=W.callbacks).onAudioStateLoaded)==null||B.call(N,_.ml(n,Bx(n,f8,1)));break;case "yt-mute-mini-app":var A,w;(w=(A=W.callbacks).onMuteMiniApp)==null||w.call(A);break;case "yt-unmute-mini-app":var x,E;(E=(x=W.callbacks).onUnmuteMiniApp)==null||E.call(x);break;case "yt-playable-exit":var a,X;(X=(a=W.callbacks).onExit)==null||X.call(a);
break;case "yt-post-play-nonce":var d,V;(V=(d=W.callbacks).onPostPlayNonceReceived)==null||V.call(d,IU(n,2,f8));break;case "yt-confirm-exit-mini-app":var c,M;(M=(c=W.callbacks).confirmExitMiniApp)==null||M.call(c);break;case "yt-confirm-exit-mini-app-edu":var p,e;(e=(p=W.callbacks).confirmExitMiniAppEdu)==null||e.call(p);break;case "yt-benchmarking-response":var u,h;(h=(u=W.callbacks).onNativeBenchmarkingMessageReceived)==null||h.call(u,IU(n,2,f8));break;case "yt-mini-app-load-3p-consent-state":var L,
Bw;(Bw=(L=W.callbacks).multiplayer3pAckStateLoaded)==null||Bw.call(L,_.ml(n,Bx(n,f8,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var P,xz;(xz=(P=W.callbacks).exitMiniAppSeenStateLoaded)==null||xz.call(P,_.ml(n,Bx(n,f8,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Sp,vw;(vw=(Sp=W.callbacks).onNavigateToNewMiniApp)==null||vw.call(Sp);break;case "yt-game-data-available":var lw,G4;(G4=(lw=W.callbacks).onGameDataAvailable)==null||G4.call(lw,IU(n,2,f8));break;case "yt-pause-mini-app":var nA,
Xs;(Xs=(nA=W.callbacks).onPauseMiniApp)==null||Xs.call(nA);break;case "yt-resume-mini-app":var aI,LA;(LA=(aI=W.callbacks).onResumeMiniApp)==null||LA.call(aI);break;case "yt-playable-ad-finished":var dj,hK;(hK=(dj=W.callbacks).onAdFinished)==null||hK.call(dj,IU(n,2,f8))}}else _.zJ(Error("Sh"))}catch(Tz){_.dI(Error("Th"))}else _.zJ(Error("Uh"))};var ymX=function(W){this.rpcErrorCode=W};var el=function(W,k,C){this.intervalMs=W;this.apiFunc=k;this.type=C;this.schedulerReady=!0};
el.prototype.call=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1){if(k.type!==1&&W===k.cachedValue)return n.return();k.pendingApiRequestResolver||(k.pendingApiRequestResolver=new _.gn);C=k.pendingApiRequestResolver.promise;k.cachedValue=W;return _.l(n,Sz$(k),2)}return n.return(C)})};
el.prototype.flush=function(W){W=W===void 0?!1:W;var k=this;return _.F(function(C){return k.cachedValue===void 0?C.return():_.l(C,k.apiFunc(k.cachedValue,W),0)})};
var Sz$=function(W){var k,C,n;return _.F(function(N){switch(N.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return N.return();W.schedulerReady=!1;k=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.F0(N,2);if(W.cachedValue===void 0){N.jumpTo(4);break}return _.l(N,W.apiFunc(W.cachedValue),5);case 5:C=N.yieldResult,k.resolve(C);case 4:_.M7(N,3);break;case 2:n=_.EF(N),k.reject(n);case 3:setTimeout(function(){return _.F(function(B){W.schedulerReady=!0;return _.l(B,
Sz$(W),0)})},W.intervalMs),_.ab(N)}})};var Rgp=window.location.origin+"/miniapp_cloudsaves",$04=[400,401],MNu=_.Oe("cloud_save_game_data_rate_limit_ms",3E3),v3t=function(W){var k=this;this.JSC$14634_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=MNu;this.initialDownloadDataSucceeded=!1;this.JSC$14634_playNonceResolver=new _.gn;this.scottyUploadRateLimiter=new el(this.cloudSaveIntervalMs,function(C,n){return Qeu(k,C,n)},2);
this.downloadDataPromise=p6$(this);this.downloadDataPromise.then(function(){k.initialDownloadDataSucceeded=!0}).catch(function(){})},erA=function(W,k){k.then(function(C){return W.JSC$14634_playNonceResolver.resolve(C)})},seA=function(W){return _.F(function(k){return W.cachedData===void 0?k.return(W.downloadDataPromise):k.return(W.cachedData)})},Gi$=function(W,k){return _.F(function(C){W.cachedData=k;
if(!W.initialDownloadDataSucceeded)throw Error("Vh");return _.l(C,W.scottyUploadRateLimiter.call(k),0)})},yo7=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},$aZ=function(W,k){var C,n;
return _.F(function(N){if(N.nextAddress==1)return C=W.JSC$14634_miniAppId,_.l(N,Promise.race([W.JSC$14634_playNonceResolver.promise,yo7()]),2);n={"X-YouTube-MiniAppId":C,"X-YouTube-PostPlayNonce":N.yieldResult};"DELEGATED_SESSION_ID"in _.mh&&szm(k,n);return N.return(n)})},Qeu=function(W,k,C){C=C===void 0?!1:C;
return _.F(function(n){return GHI()?_.m("enable_cloud_save_error_popup_after_retry")?n.return(new Promise(function(N,B){var A,w,x,E,a;return _.F(function(X){switch(X.nextAddress){case 1:A=0,w=!0,E=x=null;case 2:if(!(w&&A++<2)){X.jumpTo(4);break}_.F0(X,5);return _.l(X,ZLZ(W,k,C),7);case 7:x=X.yieldResult;w=x.ok?!1:!$04.includes(x.status);_.M7(X,2);break;case 5:E=a=_.EF(X);w=ZDc(E);X.jumpTo(2);break;case 4:x?x.ok?(s0(W,MNu),N()):(s0(W,W.cloudSaveIntervalMs*2),B(Error("Wh`"+String(x.status),{cause:{rpcErrorCode:x.status}}))):
(s0(W,W.cloudSaveIntervalMs*2),B(E||Error("Xh"))),_.ab(X)}})})):n.return(new Promise(function(N,B){var A,w;
return _.F(function(x){if(x.nextAddress==1){if(W.JSC$14634_miniAppId==="")return B(Error("Yh")),x.return();_.F0(x,2);return _.l(x,ZLZ(W,k,C),4)}if(x.nextAddress!=2)return A=x.yieldResult,A.ok?(s0(W,MNu),N()):(s0(W,W.cloudSaveIntervalMs*2),B(Error("Wh`"+String(A.status),{cause:{rpcErrorCode:A.status}}))),_.M7(x,0);w=_.EF(x);s0(W,W.cloudSaveIntervalMs*2);B(w);_.ab(x)})})):n.return()})},ZLZ=function(W,k,C){C=C===void 0?!1:C;
var n,N,B;return _.F(function(A){if(A.nextAddress==1)return n=_.zC((new TextEncoder).encode(k)),N=oh4(),_.l(A,$aZ(W,N),2);B=A.yieldResult;return A.return(fetch(N,{method:"POST",body:new Blob([n]),headers:B,keepalive:C}))})},p6$=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1){if(!GHI())return n.return("");if(W.JSC$14634_miniAppId==="")throw Error("Yh");if(W.loadAttempts>2)return n.return(W.downloadDataPromise);_.F0(n,2);return _.l(n,Rrt(W),4)}if(n.nextAddress!=2)return k=n.yieldResult,n.return(k);C=_.EF(n);if(ZDc(C)&&++W.loadAttempts<2)return n.return(p6$(W));throw C;})},Rrt=function(W){var k,C,n,N,B;
return _.F(function(A){switch(A.nextAddress){case 1:return _.F0(A,2),k=oh4(),_.l(A,$aZ(W,k),4);case 4:return C=A.yieldResult,_.l(A,fetch(k,{method:"GET",headers:C}),5);case 5:return n=A.yieldResult,n.ok?_.l(A,n.text(),6):A.return(Promise.reject(Error("Zh`"+String(n.status),{cause:new ymX(n.status)})));case 6:return N=A.yieldResult,A.return((new TextDecoder).decode(_.Pw(N)));case 2:return B=_.EF(A),A.return(Promise.reject(B))}})},s0=function(W,k){W.cloudSaveIntervalMs=k;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
v3t.prototype.flush=function(){var W=this;return _.F(function(k){return W.initialDownloadDataSucceeded?_.l(k,W.scottyUploadRateLimiter.flush(!0),0):k.return()})};var o3C=LT(O7(1),uF(1)),iLE=LT(O7(1),uF(3)),GN=function(W){this.callbacks=W};
_.Y=GN.prototype;_.Y.onAudioToggled=function(W,k){(k===void 0||k)&&_.KE("yt-mini-app-is-audio-enabled",W,2592E3)};
_.Y.onPause=function(){this.onAudioToggled(!1,!1)};
_.Y.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.Y.returnNativeBenchmarkingMessage=function(){};
_.Y.sendGameData=function(){};
_.Y.sendStartGameFrameCapture=function(){};
var iDm=function(W,k,C){this.callbacks=W;var n=this;this.sdkVersion=new _.gn;this.channel=new UX8(_.UM({destination:window,iframe:k,origin:(new URL(C.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var N=yp;var B=O7(5);var A=new Aus;A=_.Mb(A,1,1E4);B=_.b5(B,4,XT2,A);N(n,B);n.onAudioToggled(n.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){n.sdkVersion.resolve("")},1E4)};
_.D(iDm,GN);_.Y=iDm.prototype;_.Y.onAudioToggled=function(W,k){GN.prototype.onAudioToggled.call(this,W,k===void 0?!0:k);k=yp;var C=O7(2),n=new B2Y;W=_.CN(n,1,W);W=_.b5(C,3,XT2,W);k(this,W)};
_.Y.onPause=function(){GN.prototype.onPause.call(this);yp(this,O7(3))};
_.Y.onResume=function(){GN.prototype.onResume.call(this);yp(this,O7(4))};
_.Y.returnNativeBenchmarkingMessage=function(W){var k=yp,C=O7(6);var n=uF(_.x4(W,Z8,1)?1:2);W=_.x4(W,Z8,1)?W:null;n=_.b5(n,5,U7,W);k(this,LT(C,n))};
_.Y.sendGameData=function(W){var k=yp,C=O7(7);W=_.b5(C,5,XT2,W);k(this,W)};
_.Y.sendStartGameFrameCapture=function(){yp(this,O7(9))};
var $J=function(W,k,C){var n,N,B;return _.F(function(A){if(A.nextAddress==1)return n=W.callbacks,N=n.onSdkCalled,B=k,_.l(A,W.sdkVersion.promise,2);N.call(n,B,A.yieldResult,C);_.ab(A)})};
iDm.prototype.onMessage=function(){var W=this;return jJ8(rS,function(k){var C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp,vw,lw,G4,nA,Xs,aI,LA,dj,hK,Tz,S8,ms,pA,k3,oe,bw,C7,j8,CL,EA,Nu;return _.F(function(AS){switch(AS.nextAddress){case 1:if(!cub(k.data))return _.zJ(Error("$h")),AS.return();C=_.Jp(k.data,1);_.m("enable_iframe_message_get_type_via_fields")&&(n=k.data,C=N=_.Jp(n,1));switch(C){case 8:if(k.data.hasMetadata()){var RJ=W.sdkVersion,Y2=RJ.resolve;var VY=k.data.getMetadata();VY=_.Vo(VY,
1);Y2.call(RJ,VY);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return AS.jumpTo(2);case 16:if(!_.lA(k.data,dJ8,14,gS))return AS.return();B=_.St(k.data,dJ8,14,gS);(w=(A=W.callbacks).onGameFrameReceived)==null||w.call(A,B);return AS.return();case 1:if(RJ=_.St(k.data,xJz,2,gS))switch(_.Jp(RJ,1)){case 1:W.callbacks.onFirstFrameReady();if(_.m("enable_network_request_logging_on_game_events")&&_.x4(RJ,Tu,4)){$J(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.q7(RJ,Tu,4));break}$J(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(VY=(Y2=W.callbacks).onGameReady)==null||VY.call(Y2);if(_.m("enable_network_request_logging_on_game_events")&&_.x4(RJ,Tu,4)){$J(W,"MINI_APP_SDK_API_GAME_READY",_.q7(RJ,Tu,4));break}$J(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.lA(RJ,qn,3,l8A))W.callbacks.onResourceLoaded(_.St(RJ,qn,3,l8A))}return AS.return();case 3:return AS.jumpTo(3);case 4:return AS.jumpTo(4);case 2:return AS.jumpTo(5);case 9:return AS.jumpTo(6);case 10:return W.callbacks.onClick(),AS.return();case 5:return AS.jumpTo(7);
case 11:if(!_.lA(k.data,Rv,9,gS))return AS.return();x=_.St(k.data,Rv,9,gS);(a=(E=W.callbacks).onBenchmarkingMessageReceived)==null||a.call(E,x);RJ=k.reply;Y2=O7(1);VY=uF(1);var cY=new Rv;var e8=new Uint8Array(Xo4(x,Bx(x,kKb,6))|0);cY=kI(cY,5,kKb,_.JS(e8,!1));VY=_.b5(VY,5,U7,cY);RJ.call(k,LT(Y2,VY));return AS.return();case 12:return AS.jumpTo(8);case 13:return AS.jumpTo(9);case 15:if(!_.m("enable_open_yt_content"))return k.reply(iLE),AS.return();if(!_.lA(k.data,f8I,12,gS))return k.reply(LT(O7(1),uF(2))),
AS.return();RJ=_.St(k.data,f8I,12,gS);X=_.Vo(RJ,1);W.callbacks.onOpenYTContent(X);k.reply(o3C);return AS.return();case 14:return AS.jumpTo(10);default:return AS.return()}AS.jumpTo(0);break;case 2:if(!_.lA(k.data,jB,5,gS))return AS.return();Y2=k.data;RJ=Bx(Y2,gS,5);Y2=Y2.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(RJ=JtP(Y2,Y2[_.B8]|0,jB,RJ))||(RJ=jB[sIc])||(RJ=new jB,wx(RJ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),RJ=jB[sIc]=RJ);d=RJ;RJ=_.HD(d,ov,1,_.rP());V=_.b(RJ);c=V.next();
case 12:if(c.done){AS.jumpTo(14);break}M=c.value;p=new _.AM;p.level=_.Jp(M,2)===1?"WARNING":"ERROR";e=qWp(M.getSource());return _.l(AS,W.sdkVersion.promise,15);case 15:u={source:e,sdkVersion:AS.yieldResult};_.rx(_.wv(M,6))!=null?(p.message=M.getMessage(),p.stack=_.Vo(M,5),u.sdkErrorType=uUX(_.Jp(M,6)),_.rx(_.wv(M,7))!=null&&(u.sdkApi=U0w(_.Jp(M,7)))):p.stack=void 0;L=h=void 0;(L=(h=W.callbacks).onError)==null||L.call(h,{loggingError:p,metadata:u});c=V.next();AS.jumpTo(12);break;case 14:return AS.return();
case 3:return _.F0(AS,16),RJ=W.callbacks,Y2=RJ.onSave,VY=_.St(k.data,b0b,4,gS),VY=_.Vo(VY,1),_.l(AS,Y2.call(RJ,VY),18);case 18:k.reply(o3C);_.M7(AS,17);break;case 16:return Bw=_.EF(AS),P=$x,xz=Bw,Sp=W.callbacks,vw="MINI_APP_SDK_API_SAVE_DATA",_.l(AS,W.sdkVersion.promise,19);case 19:P(xz,Sp,vw,AS.yieldResult),k.reply(iLE);case 17:return _.l(AS,$J(W,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return AS.return();case 4:return _.F0(AS,21),_.l(AS,W.callbacks.onLoad(),23);case 23:lw=AS.yieldResult;RJ=k.reply;
Y2=O7(1);VY=uF(1);cY=new b0b;cY=_.fU(cY,1,lw);VY=_.b5(VY,3,U7,cY);RJ.call(k,LT(Y2,VY));_.M7(AS,22);break;case 21:return G4=_.EF(AS),nA=$x,Xs=G4,aI=W.callbacks,LA="MINI_APP_SDK_API_LOAD_DATA",_.l(AS,W.sdkVersion.promise,24);case 24:nA(Xs,aI,LA,AS.yieldResult),k.reply(iLE);case 22:return _.l(AS,$J(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return AS.return();case 5:_.F0(AS,26);W.callbacks.onSendHighScore(IL(_.St(k.data,V5s,3,gS).getValue()));k.reply(LT(O7(1),uF(1)));_.M7(AS,27);break;case 26:return dj=
_.EF(AS),hK=$x,Tz=dj,S8=W.callbacks,ms="MINI_APP_SDK_API_SEND_SCORE",_.l(AS,W.sdkVersion.promise,28);case 28:hK(Tz,S8,ms,AS.yieldResult),k.reply(iLE);case 27:return _.l(AS,$J(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return AS.return();case 6:if(!_.lA(k.data,Jub,8,gS)){AS.jumpTo(30);break}RJ=_.St(k.data,Jub,8,gS);RJ=_.Jp(RJ,1);return _.l(AS,$J(W,U0w(RJ)),30);case 30:return AS.return();case 7:return RJ=k.reply,Y2=O7(1),VY=uF(1),cY=W.callbacks.getLanguage(),VY=kI(VY,4,U7,wZ(cY)),RJ.call(k,LT(Y2,
VY)),_.l(AS,$J(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return AS.return();case 8:if(!_.lA(k.data,DJA,10,gS))return AS.return();pA=_.St(k.data,DJA,10,gS);k3=W.callbacks;oe=k3.onSdkPerformanceUpdate;return _.l(AS,W.sdkVersion.promise,33);case 33:return oe.call(k3,pA,AS.yieldResult),AS.return();case 9:RJ=k.data;Y2=Bx(RJ,gS,11);if(_.lE(_.wv(RJ,Y2))==null)return k.reply(LT(O7(1),uF(2))),AS.return();bw=IU(k.data,11,gS);W.callbacks.onShareInviteCode(bw);k.reply(o3C);return _.l(AS,$J(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return AS.return();case 10:if(_.lA(k.data,YyS,13,gS)){AS.jumpTo(35);break}return _.l(AS,W.callbacks.onShowMiniAppAd(2),36);case 36:return C7=AS.yieldResult,k.reply(LT(O7(1),EoS(C7))),_.l(AS,$J(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return AS.return();case 35:RJ=_.St(k.data,YyS,13,gS);a:switch(_.Jp(RJ,1)){case 1:RJ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:RJ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:RJ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}j8=
RJ;CL=j8.adType;EA=j8.sdkApi;RJ=W.callbacks;Y2=RJ.onShowMiniAppAd;VY=_.St(k.data,YyS,13,gS);VY=_.Vo(VY,2);return _.l(AS,Y2.call(RJ,CL,VY||void 0),38);case 38:return Nu=AS.yieldResult,k.reply(LT(O7(1),EoS(Nu))),_.l(AS,$J(W,EA),39);case 39:return AS.return()}})})};
var yp=function(W,k){_.F(function(C){W.channel.send(k);_.ab(C)})},ZN=function(W,k,C){this.callbacks=W;
var n=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=seX(k,(new URL(C.toString())).origin);this.gameSnacks=new Bx8(W);this.gameSnacks.page.onReady(function(){n.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){n.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var N,B;(B=(N=n.callbacks).onGameReady)==null||B.call(N)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(N,B){try{n.callbacks.onSendHighScore(B)}catch(A){$x(A,n.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(N,B){var A;return _.F(function(w){if(w.nextAddress==1)return _.F0(w,2),_.l(w,n.callbacks.onSave(n.decoder.decode(B)),4);if(w.nextAddress!=2)return _.M7(w,0);A=_.EF(w);$x(A,n.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return w.return()})});
this.gameSnacks.storage.onLoad(function(){var N,B;return _.F(function(A){if(A.nextAddress==1)return _.F0(A,2),_.l(A,n.callbacks.onLoad(),4);if(A.nextAddress!=2)return N=A.yieldResult,A.return(n.encoder.encode(N));B=_.EF(A);$x(B,n.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return A.return(n.encoder.encode(""))})});
this.gameSnacks.init()};
_.D(ZN,GN);ZN.prototype.onAudioToggled=function(W,k){GN.prototype.onAudioToggled.call(this,W,k===void 0?!0:k);var C;(C=this.gameSnacks)==null||C.audio.update(W)};
ZN.prototype.onPause=function(){GN.prototype.onPause.call(this);if(_.m("enable_gamesnacks_pause_resume_bugfix")){var W;(W=this.gameSnacks)==null||W.game.pause()}};
ZN.prototype.onResume=function(){GN.prototype.onResume.call(this);if(_.m("enable_gamesnacks_pause_resume_bugfix")){var W;(W=this.gameSnacks)==null||W.game.resume()}};var Tj1=ODw,qz6=_.GM(function(W){var k=W.data;var C=W.loadingProgress;W=_.b(_.kw("",void 0,"LYYTdd"));var n=W.next().value,N=W.next().value;W=_.b(_.kw(!1,void 0,"K0waae"));var B=W.next().value,A=W.next().value,w=[],x=function(){return"transform: scaleX("+(_.m$(C)||0)+")"},E=null,a=function(){var c;
return(c=k()&&E)!=null?c:E=k().showAnniversaryAnimation?6:Tj1()};
_.XM(function(){var c;if(k().timeOutMessages&&((c=k().timeOutMessages)==null?0:c.length)){E=null;c=_.b(w);for(var M=c.next();!M.done;M=c.next())clearTimeout(M.value);w.length=0;LM2(k().timeOutMessages,w,N,A)}});
var X=function(){return!!k().persistentErrorMessageTitle},d=function(){return C!==void 0},V=function(){return k().title};
return _.t("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.t("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.t("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.t("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var c,M=(c=k().backgroundImage)==null?void 0:c.sources,p;return(M==null?0:M.length)?"background-image: url("+((p=M[0])==null?void 0:p.url)+")":
""}}),_.t("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.t(_.NI,{cond:function(){return!X()},
then:function(){var c={};return _.t("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.t("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.t(_.jc,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+a()},
data:function(){var M="loading_animation_"+a();return{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+M+".json",loop:!0,autoplay:!0}}}})),_.t("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.t(_.NI,{cond:V,
then:function(){return _.t("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},V)}}),_.t("p",{class:_.Li("mini-app-splash-screen-view-model-wiz__timeout-message",(c["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return B()},c)),
"aria-live":"polite"},n),_.t(_.NI,{cond:d,then:function(){return _.t("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.t("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:x}))}})))}}),_.t(_.NI,{cond:X,
then:function(){return _.t("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.t("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return k().persistentErrorMessageTitle}),_.t(_.NI,{cond:function(){return!!k().persistentErrorMessageDescription},
then:function(){return _.t("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return k().persistentErrorMessageDescription})}}))}})))},"qd");var u77=new _.Tc("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Ua6=$w;$w=function(W){function k(C){if(C){var n,N;(n=C.__spec)==null||(N=n.didUnmount)==null||N.call(n);for(n=0;n<C.childNodes.length;n++)k(C.childNodes[n])}}
Ua6==null||Ua6(W);FZ(function(){for(var C=0;C<W.length;C++)k(W[C])})};var OL7=_.GM(function(W){var k=W.data;var C=W.score;var n=W.formattedScore;var N=W.onScoreChanged;var B=W.isEmbeddedInWebview;var A=_.$I(),w=function(){var V;return _.z(k==null?void 0:(V=k())==null?void 0:V.buttonViewModel,_.aS)},x=function(){var V;
return(C==null?void 0:C())||Number(k==null?void 0:(V=k())==null?void 0:V.lastScore)||0},E=function(){var V;
return(n==null?void 0:n())||((V=w())==null?void 0:V.title)||""},a,X=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),X=isNaN(W)?1:W/100;_.XM(function(){N==null||N(x());var V;var c=_.fi((V=w())==null?void 0:V.onTap);if(c){V=_.z(c,$$2);var M,p,e;V=_.z(V==null?void 0:(M=V.panelLoadingStrategy)==null?void 0:(p=M.inlineContent)==null?void 0:(e=p.dialogViewModel)==null?void 0:e.customContent,ovA)}else V=void 0;if(M=V)M.score=E()});
W=_.Pj(function(){var V,c,M=k==null?void 0:(V=k())==null?void 0:(c=V.loggingDirectives)==null?void 0:c.trackingParams;M&&_.Pn(_.f().resolve(_.nR),M);return!1});
_.Ee(function(){if(A.value){var V=A.value.querySelector("button"),c=w();V&&c&&j0w(V,c);TJ("yt-share-playable-with-high-score",function(){var M=x().toString(),p=k==null?void 0:k().onShareHighScoreCommand,e=k==null?void 0:k().highScoreShareClientParamIdentifier,u=B==null?void 0:B();p&&(u?(e=new c48,M=_.fU(e,2,M),yr(p,M.JSC$10125_serializeBinary())):e&&(_.f().resolve(u77).clientParams.set(e,{miniAppClientParams:{highScore:M}}),pc3(p,!1)))})}});
var d=function(){var V=w();V&&(C==null?0:C())&&V.accessibilityText&&(V.accessibilityText=V.accessibilityText.replace(a,E()));a=E();return{numberValue:x(),numberText:E(),heightPx:36,fontSizeMultiplier:X,shouldAnimate:!(C==null||!C())&&!0}};
return _.t("yt-mini-app-score-button-view-model",{class:function(){var V={};return _.Hj("mini-app-score-button-view-model-wiz",(V["mini-app-score-button-view-model-wiz--is-visible"]=x()!==0,V))},
el:A,"on:click":W},_.Tb(!1,function(){return _.t("span",{style:"display:none;"},x)}),_.t(_.Ex,{data:function(){var V;
return k==null?void 0:(V=k())==null?void 0:V.buttonViewModel}},{buttonViewModel:function(V){return _.t(_.zn,{data:V.data,
animatedTextProps:d})}}))},"rd");var g37=_.GM(function(W){var k,C=(k=_.h4("yt-mini-app-is-theater-mode-enabled"))!=null?k:!1,n=_.m("enable_playable_container_save_button"),N=_.m("enable_play_next_destination_page_in_toolbar");k={};return _.t("ytm-mini-app-top-bar-view-model",null,_.t("div",{class:_.Li("yt-mini-app-top-bar-view-model",(k["yt-mini-app-top-bar-view-model--mobile"]=!1,k["yt-mini-app-top-bar-view-model--desktop"]=!0,k))},_.t("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.t(_.NI,{cond:function(){var B;
return!!W.data().backButtonEdu&&!((B=W.isExitMiniAppSeen)==null?0:B.call(W))},
then:function(){return _.t(_.Ex,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.zn})},
else:function(){return _.t(_.Ex,{data:function(){return W.data().backButton}},{buttonViewModel:_.zn})}}),_.t(_.NI,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.t(_.Ex,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.zn})}}),_.t(_.NI,{cond:function(){return W.data().title&&!0},
then:function(){return _.t("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.t("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.t(_.NI,{cond:function(){var B;
return(B=W.isDesktopPlayPage)==null?void 0:B.call(W)},
then:function(){return _.t(_.qf,null,_.t(L_u,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.t(jeE,{enableSaveButton:function(){return _.m$(n)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.t(HLS,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.t(_.NI,{cond:function(){return!1},
then:function(){return _.t(_.Ex,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(B){return _.t(_.zn,{data:B.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.t(L_u,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.t("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.t(_.Ex,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(B){var A=B.data;
return _.t(_.fX,{data:function(){var w,x;return Object.assign({},A(),{isToggled:(x=(w=W.isAudioEnabled)==null?void 0:w.call(W))!=null?x:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.t(_.Ex,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(B){var A=B.data;
return _.t("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.t(_.fX,{data:function(){return Object.assign({},A(),{isToggled:C})},
useOutlinedIcon:!0}))}}),_.t(roZ,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.t(_.NI,{cond:function(){return _.m$(N)&&W.data().viewAllButton&&!1},
then:function(){return _.t(_.Ex,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.zn})}}),_.t(_.NI,{cond:function(){var B;
return!((B=W.isDesktopPlayPage)==null?0:B.call(W))},
then:function(){return _.t(_.qf,null,_.t(jeE,{enableSaveButton:function(){return _.m$(n)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.t(HLS,{menuButton:function(){return W.data().menuButton}}))}}))))},"sd");
g37.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var HLS=_.GM(function(W){return _.t(_.Ex,{data:W.menuButton},{buttonViewModel:_.zn})},"td"),jeE=_.GM(function(W){var k=W.enableSaveButton;
var C=W.saveButton;var n=W.isSaved;var N=W.onSaveToggled;return _.t(_.NI,{cond:function(){return k()&&!(C==null||!C())},
then:function(){return _.t(_.Ex,{data:function(){var B=_.z(C==null?void 0:C(),_.Xo),A;return{toggleButtonViewModel:Object.assign({},B,{isToggled:(A=n==null?void 0:n())!=null?A:!(B==null||!B.isToggled)})}}},{toggleButtonViewModel:function(B){return _.t(_.fX,{data:B.data,
onToggle:N})}})}})},"ud"),L_u=_.GM(function(W){var k=W.highScoreButton;
var C=W.score;var n=W.formattedScore;var N=W.onScoreChanged;var B=W.isEmbeddedInWebview;return _.t(_.Ex,{data:k},{miniAppScoreButtonViewModel:function(A){return _.t(OL7,{data:A.data,score:C,formattedScore:n,onScoreChanged:N,isEmbeddedInWebview:B})}})},"vd"),roZ=_.GM(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.t(_.qf,null):_.t(_.Ex,{data:W},{buttonViewModel:_.zn})},"wd");_.P5E=new _.Tc("DESKTOP_CURRENT_PAGE");var nO$=_.GM(function(W){var k=W.data;var C=_.m("force_active_time_logging_webview"),n=_.m("skip_logs_after_end_event"),N=!1,B=new coY,A=void 0,w=void 0,x=_.f().resolve(JoA),E=new ma7,a=void 0,X=void 0,d=[],V=void 0,c=void 0,M=!1,p=!1,e=!1,u=!1,h=new _.gn,L=_.f().resolve(u77),Bw=_.f().resolve(_.Qp),P=_.f().resolve(_.qI(Wr)),xz,Sp=(xz=_.f().resolve(_.qI(_.P5E)))==null?void 0:xz.getCurrentPage(),vw=!1,lw=0,G4=function(U2){U2.preventDefault();return U2.returnValue=""},nA;
W=_.b(_.kw(!((nA=_.h4("yt-mini-app-is-audio-enabled"))!=null&&!nA),void 0,"HKETIe"));var Xs=W.next().value,aI=W.next().value,LA;nA=_.b(_.kw(!((LA=_.h4("exit-mini-app-seen-state"))==null||!LA),void 0,"YikM9"));var dj=nA.next().value,hK=nA.next().value;LA=_.b(_.kw(!1,void 0,"iTNqCb"));var Tz=LA.next().value,S8=LA.next().value;LA=_.b(_.kw(void 0,void 0,"bU3Vbf"));var ms=LA.next().value,pA=LA.next().value;LA=_.b(_.kw(void 0,void 0,"qd4Zt"));var k3=LA.next().value,oe=LA.next().value;LA=_.b(_.kw(!0,void 0,
"Cqc83e"));var bw=LA.next().value,C7=LA.next().value;LA=_.b(_.kw(!1,void 0,"oHovIe"));var j8=LA.next().value,CL=LA.next().value;LA=_.b(_.kw(void 0,void 0,"aeN11"));var EA=LA.next().value,Nu=LA.next().value;LA=_.b(_.kw(0,void 0,"AEGRyb"));var AS=LA.next().value,RJ=LA.next().value,Y2=_.yE(),VY=function(){return k().isEmbeddedInWebview},cY=function(){return k().hasPlayNextShelf};
TJ("yt-page-type-changed",function(U2){if(_.m("enable_is_mini_app_page_active_bugfix"))U2.detail.newPageSubtype!=="mini_app"&&bw()&&Ie();else if(U2=_.WL3()==="mini_app",U2!==bw())if(C7(U2),U2){var At;U2=(At=k().playableId)==null?void 0:At.toString();U2!==void 0&&window.location.href.includes(U2)&&!p&&(u=!0,e8(),KU(DZ.value))}else U2||Ie()});
TJ("yt-action",function(U2){U2.detail.actionName==="yt-engagement-panel-visible-changed"&&U2.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&U2.detail.args[2]==="PAmini_app_panel"&&Ie();_.m("enable_is_mini_app_page_active_bugfix")?U2.detail.actionName==="yt-history-load"&&!bw()&&(Sp==null?0:Sp.active)?(C7(!0),e8(),KU(DZ.value)):U2.detail.actionName==="yt-history-load"&&bw()&&!k().isEmbeddedInWebview&&Uk():bw()&&U2.detail.actionName==="yt-history-load"&&(u?u=!1:k().isEmbeddedInWebview||Uk())});
_.fy(function(){R1()});
_.XM(function(){e8()});
var e8=function(){var U2=k().playableId,At=k().localReleaseId,ae=k().derivedDeviceInterface;if(p)_.zJ(new _.AM("[MiniAppContainerViewModel] onEnter was called more than once"));else{p=!0;A=new Bj7(U2,At,ae,document.visibilityState==="visible");w67(A);w=new v3t(U2);K_B(x,U2);zr6(E,{showMiniAppAdCommand:k().showMiniAppAdCommand,isEmbeddedInWebview:k().isEmbeddedInWebview,playLogger:A});fFX()&&(c=document.body.style.backgroundColor,_.vT(document.body,"background-color","black"));jW();H8();h=new _.gn;
if(k().isEmbeddedInWebview){if(U2=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Ao7(A,U2),vw=!0;B.initialize({onAudioStateLoaded:function(gZ){e3(gZ)},
onMuteMiniApp:function(){e3(!1)},
onUnmuteMiniApp:function(){e3(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(gZ){vw||(Ao7(A,gZ),vw=!0)},
confirmExitMiniApp:function(){var gZ,Y0,OF;return _.F(function(Jo){if(Jo.nextAddress==1)return k().confirmExitMiniAppCommand?_.l(Jo,Promise.race([h.promise,Promise.resolve(!1)]),2):Jo.return();(gZ=Jo.yieldResult)?!k().confirmExitMiniAppCommandEdu||(OF=(Y0=dj)==null?void 0:Y0())!=null&&OF?N3(k().confirmExitMiniAppCommand):(N3(k().confirmExitMiniAppCommandEdu),_.KE("exit-mini-app-seen-state","true",2592E6)):N3(k().closeMiniAppCommand);_.ab(Jo)})},
onNativeBenchmarkingMessageReceived:function(gZ){gZ=nox(_.SZ2(gZ));if(_.lA(gZ,_.Gr,3,WGS)){var Y0=_.St(gZ,_.Gr,3,WGS),OF=vh4();var Jo=IL(OF.getSeconds())-IL(Y0.getSeconds());Y0=_.gP(OF,2)-_.gP(Y0,2);Jo<0&&Y0>0?(Jo+=1,Y0-=1E9):Jo>0&&Y0<0&&(--Jo,Y0+=1E9);Jo=(new Z8).setSeconds(Jo);Jo=_.ZA(Jo,2,_.gx(Y0),0);_.B6(gZ,1,Jo)}var gq;(gq=X)==null||gq.returnNativeBenchmarkingMessage(gZ)},
multiplayer3pAckStateLoaded:function(gZ){Uk(gZ)},
exitMiniAppSeenStateLoaded:function(gZ){k().confirmExitMiniAppCommandEdu&&hK(gZ)},
onNavigateToNewMiniApp:function(){N3(k().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(gZ){gZ=new URLSearchParams(gZ);var Y0=void 0;gZ.has("invite_code")&&(Y0=new wTb,gZ=gZ.get("invite_code"),Y0=_.fU(Y0,1,gZ));if(gZ=Y0){var OF;(OF=X)==null||OF.sendGameData(gZ)}},
onPauseMiniApp:function(){N=!0;qZ()},
onResumeMiniApp:function(){N=!0;F7()},
onAdFinished:function(gZ){E.onAdFinished(gZ)}});
k().showMultiplayer3pConsentDialogCommand||h.resolve(!0);N3(k().onContainerReadyCommand)}else Ao7(A),h.resolve(!0);erA(w,bLi(A));bLi(A).then(function(gZ){gZ={miniAppPlayData:{postPlayNonce:gZ}};var Y0,OF=(Y0=k().loggingDirectives)==null?void 0:Y0.trackingParams;OF&&_.kf().stateChanged(OF,gZ)});
U2=k().showSignInDialogCommand;!GHI()&&U2&&(_.KE("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),N3(U2));k().confirmExitMiniAppCommand&&P&&(U2=MJX(k().confirmExitMiniAppCommand))&&(P.customConfirmationCommand=U2)}},R1=function(){if(!n||p)c&&_.vT(document.body,"background-color",c),M=!1,V&&V.release(),w.flush().catch(function(U2){_.zJ(U2)}),x.flush().catch(function(U2){_.zJ(U2)}),llZ(A),gj(),X=void 0,n&&(p=!1),hrB(L)},Ie=function(){C7(!1);
R1();S8(!1);Nu(void 0);pA(void 0);oe(void 0);lw=0;RJ(0);n||(p=!1)},qZ=function(){var U2;
(U2=X)==null||U2.onPause();V&&V.release();w.flush().catch(function(At){_.zJ(At)});
x.flush().catch(function(At){_.zJ(At)});
xat(A)},F7=function(){var U2;
(U2=X)==null||U2.onResume();H8();U2=A;U2.isForeground=!0;vW(U2,"PLAY_EVENT_TYPE_PLAY_RESUME")},e3=function(U2){var At;
(At=X)==null||At.onAudioToggled(U2);aI(U2)},Uk=function(U2){k().showMultiplayer3pConsentDialogCommand&&(k().isEmbeddedInWebview&&U2!==void 0&&h.resolve(U2),!U2&&_.WL3()==="mini_app"&&N3(k().showMultiplayer3pConsentDialogCommand))},IO=function(){var U2,At,ae,gZ;
return _.F(function(Y0){if(Y0.nextAddress==1){if(n&&!p)return Y0.return();!k().isLivestream||k().disableVideoCapture||(U2=X)!=null&&U2.sendStartGameFrameCapture();At=(new URL(window.location.href)).searchParams;if(At.has("invite_code")){var OF=new wTb,Jo=At.get("invite_code");ae=_.fU(OF,1,Jo);(gZ=X)==null||gZ.sendGameData(ae)}Tz()||(S8(!0),OF=A,OF.state!==1?_.zJ(new _.AM("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Nj7[OF.state])):(_.jO("mini_app_ids_without_game_ready").includes(OF.JSC$14590_miniAppId)&&
(OF.gameReady=!0),OF.state=2,OF.beforeReady=!1,pJ(OF,"ma_ffr"),vW(OF,"PLAY_EVENT_TYPE_PLAY_READY")));return _.l(Y0,h.promise,2)}N3(k().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();k().isEmbeddedInWebview||Uk();_.ab(Y0)})},IW=function(){var U2=A;
U2.gameReady=!0;pJ(U2,"ma_gr")},VK=function(U2){var At;
return _.F(function(ae){if(ae.nextAddress==1)return _.F0(ae,2),_.l(ae,Gi$(w,U2),4);if(ae.nextAddress!=2)return _.M7(ae,0);At=_.EF(ae);N3(k().showSavingErrorPopupCommand);throw At;})},m_=function(){var U2,At;
return _.F(function(ae){if(ae.nextAddress==1)return _.F0(ae,2),_.l(ae,seA(w),4);if(ae.nextAddress!=2)return U2=ae.yieldResult,ae.return(U2);At=_.EF(ae);N3(k().showLoadingErrorDialogCommand);throw At;})},Pl=function(U2){A.logError(U2)},Y6=function(U2,At,ae){E37(A,U2,At,ae)},Tw=function(U2,At){X6$(A,U2,At)},Jj=function(){!C&&k().isEmbeddedInWebview||_.oM();
tNT(A,!0);M||(window.addEventListener("beforeunload",G4,{capture:!0}),M=!0)},UF=function(U2){var At,ae,gZ,Y0,OF,Jo,gq;
return _.F(function(PG){if(PG.nextAddress==1)return x&&(!a||a<U2)&&U2>0?_.l(PG,WRE(x,U2),3):PG.jumpTo(0);At=PG.yieldResult;ae=_.b(At);gZ=ae.next().value;Y0=ae.next().value;OF=gZ;Jo=Y0;((gq=OF)==null?0:gq.displayString)&&Jo&&(pA(Jo),oe(OF.displayString));_.ab(PG)})},XP=function(U2){var At=k().onBenchmarkingMessageReceivedCommand;
if(At){var ae=vh4();_.b5(U2,3,WGS,ae);yr(At,N2s(U2))}},z4=function(U2){var At=k().onGameFrameReceivedCommand;
if(At){var ae=new $F2;var gZ=new sV8;var Y0=zv(U2,1);gZ=_.AB(gZ,1,Y0);U2=_.Vo(U2,2);U2=_.fU(gZ,2,U2);ae=_.B6(ae,2,U2);yr(At,RXx(ae))}},ep=function(){var U2=new URLSearchParams(window.location.search);
if(k().isEmbeddedInWebview&&U2&&U2.get("override_hl")==="true"&&U2.get("hl"))return U2.get("hl");U2=document.documentElement.lang;return U2!==""?U2:_.SW},oJ=function(U2){var At=k().onShareInviteCodeCommand;
if(At)if(k().isEmbeddedInWebview){var ae=new c48;U2=_.fU(ae,1,U2);yr(At,SVZ(U2))}else ae=k().inviteCodeShareClientParamIdentifier,L.clientParams.set(ae,{miniAppClientParams:{inviteCode:U2}}),N3(At)},lb=function(U2){var At,ae,gZ;
return _.F(function(Y0){if(Y0.nextAddress==1)return At=k().onMiniAppOpenYtContentRequested,x&&_.m("enable_open_yt_content")&&At?_.l(Y0,kt7(x,U2),3):Y0.jumpTo(0);ae=Y0.yieldResult;if(ae==="OK")if(k().isEmbeddedInWebview){var OF=new QVs;gZ=kI(OF,2,f8,wZ(U2));yr(At,eX8(gZ))}else Bw.clientData.set("video_id",U2),N3(At);_.ab(Y0)})},n7=function(U2){lw+=_.gP(U2,3);
U2=Math.min(Math.log(1+lw/15E6*9)/Math.log(10),.99);RJ(U2);CA(U2)},CA=_.w2(function(U2){var At=k().updateLoadingProgressCommand;
if(At){var ae=new QVs;U2=kI(ae,3,f8,_.ib(U2));yr(At,eX8(U2))}},100),Fs=function(U2){return VNY(E,U2)},H8=function(){var U2,At;
((U2=_.CtP())==null?void 0:(At=U2.wakeLock)==null?void 0:At.request)!=null&&_.CtP().wakeLock.request("screen").then(function(ae){V=ae}).catch(function(){})},DZ=_.yE();
_.XM(function(){k().isSupportedCountry&&(GHI()||_.m("enable_sign_in_promo")||!k().showSignInDialogCommand?KU(DZ.value):N3(k().onMiniAppReadyCommand))});
var zi=function(){return _.t("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Tz()?0:-1},
el:DZ})},KU=function(U2,At){At=At===void 0?!1:At;
var ae=MS();ae&&(At||ae.toString()!==U2.getAttribute("src"))&&(X=TMJ(k().source,{isAudioEnabled:Xs,onFirstFrameReady:IO,onGameReady:IW,onSave:VK,onLoad:m_,onError:Pl,onSdkCalled:Y6,onSdkPerformanceUpdate:Tw,onClick:Jj,onSendHighScore:UF,onBenchmarkingMessageReceived:XP,getLanguage:ep,onShareInviteCode:oJ,onResourceLoaded:n7,onOpenYTContent:lb,onShowMiniAppAd:Fs,onGameFrameReceived:z4},U2,ae),ni(U2,"load",function(){pJ(A,"ma_il");ni(U2,"load",function(){KU(U2,!0)})}),_.i5(U2,ae))},MS=function(){var U2=
k().url;
if(U2&&(U2=_.XE(U2),U2!==null)){if(k().source&&k().source==="MINI_APP_SOURCE_GAMESNACKS")U2=_.CU(U2,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.m("enable_origin_query_parameter_bugfix")){var At=_.z_(_.b14(U2.toString()));At=new URLSearchParams(At||"");At.set("origin",window.location.origin);At=At.toString();U2=_.Ez(U2).toString();U2=_.to(u6s.exec(U2)[0]+(At.trim()?"#"+At:""))}return U2}},Bm=function(){var U2={};
U2=_.Li("yt-mini-app-container-view-model__loading-screen",(U2["yt-mini-app-container-view-model__loading-screen--fade-out"]=Tz,U2));var At=function(){return Tz()?1:AS()};
return _.t("div",{class:U2},_.t(_.Ex,{data:function(){return k().splashScreen}},{miniAppSplashScreenViewModel:function(ae){return _.t(qz6,{data:ae.data,
loadingProgress:At})}}))},jW=function(){d=[];
d.push(_.b6(window,"visibilitychange",function(){e||N&&VY()||(document.visibilityState==="visible"?F7():qZ())}));
d.push(_.b6(window,"pagehide",function(){R1()}));
d.push(_.b6(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Y2.value.dispatchEvent(new Event("tap"))},0)}));
d.push(_.b6(Y2.value,"pointerdown",function(){tNT(A,!1)},!0));
d.push(_.b6(Y2.value,"pause",function(){e=!0;qZ()}));
d.push(_.b6(Y2.value,"play",function(){e=!1;F7()}));
d.push(_.b6(Y2.value,"exit",function(){R1()}));
var U2=navigator.keyboard,At=U2&&U2.lock;d.push(_.b6(window,Jv8,function(){CL(IyA());IyA()?(k().hasPlayNextShelf&&KO("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),EL("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),At&&U2.lock(["Escape"])):(k().hasPlayNextShelf&&EL("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),KO("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),At&&U2.unlock())}));
k().showMultiplayer3pConsentDialogCommand&&d.push(_.b6(window,"yt-playables-ack-3p-data-usage",function(){CME(x)}));
k().confirmExitMiniAppCommandEdu&&d.push(_.b6(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.KE("exit-mini-app-seen-state","true",2592E6)}))},gj=function(){d.forEach(function(U2){NN(U2)});
window.removeEventListener("beforeunload",G4,{capture:!0})},N3=function(U2){U2&&pc3(U2,k().isEmbeddedInWebview||!1)},EL=function(U2,At){U2=_.b(Y2.value.getElementsByClassName(U2));
for(var ae=U2.next();!ae.done;ae=U2.next())ae.value.classList.add(At)},KO=function(U2,At){U2=_.b(Y2.value.getElementsByClassName(U2));
for(var ae=U2.next();!ae.done;ae=U2.next())ae.value.classList.remove(At)};
return function(){var U2={};U2=_.Li("yt-mini-app-container-view-model",(U2["yt-mini-app-container-view-model--desktop"]=!0,U2["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return k().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},U2["yt-mini-app-container-view-model--ios-web-view"]=fFX(),U2["yt-mini-app-container-view-model--no-top-bar"]=function(){return!k().topBar},U2["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return k().hasPlayNextShelf},U2["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return k().hasPlayNextShelf},U2["yt-mini-app-container-view-model--show-peek-below"]=function(){return!j8()&&k().hasPlayNextShelf},U2));
var At={};At=_.Li("yt-mini-app-container-view-model__content",(At["yt-mini-app-container-view-model__content--desktop-content"]=!0,At["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return k().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},At["yt-mini-app-container-view-model--desktop-play-page"]=function(){return k().hasPlayNextShelf},At));
return _.t("mini-app-container-view-model",{el:Y2},_.t("div",{class:U2},_.t(_.NI,{cond:function(){return k().topBar&&!j8()},
then:function(){return _.t(_.Ex,{data:function(){return k().topBar}},{miniAppTopBarViewModel:function(ae){return _.t(g37,{data:ae.data,
isAudioEnabled:Xs,onAudioToggled:function(gZ){e3(gZ)},
score:ms,formattedScore:k3,onScoreChanged:function(gZ){a=gZ},
isEmbeddedInWebview:VY,isSaved:EA,onSaveToggled:function(gZ){Nu(gZ)},
isExitMiniAppSeen:dj,isDesktopPlayPage:cY})}})}}),_.t("div",{class:At},_.t(_.NI,{cond:bw,
then:function(){return zi()}}),_.t(_.NI,{cond:function(){return!k().isEmbeddedInWebview},
then:function(){return Bm()}}))))}()},"xd");
nO$.idomCompat=!0;_.Gj(nO$,"mini-app-container-view-model",{props:{data:_.Ik}});var NT7=_.GM(function(W){var k=W.data;return _.t("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.t("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Pj(function(){var C=k().onTap;C&&_.zj(C)})},_.t(_.NI,{cond:function(){return k().icon},
then:function(C){return _.t(_.ka,{icon:function(){return C().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.t("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return k().title})))},"yd");
NT7.idomCompat=!0;var YF7=_.GM(function(W){var k=_.yE(),C=_.b(_.kw(void 0,void 0,"kFCJ0c")),n=C.next().value,N=C.next().value;C=_.b(_.kw(void 0,void 0,"PIPgWd"));var B=C.next().value,A=C.next().value;C=_.b(_.kw(void 0,void 0,"rV66ob"));var w=C.next().value,x=C.next().value,E=function(){var e=n();return e!==void 0?Math.abs(e):void 0},a=function(){var e=E();
return e===void 0||e<=3},X=function(){var e=E();
var u=B(),h=w();e=e!==void 0&&u!==void 0&&h!==void 0?u-h-e:void 0;return e===void 0||e<=3},d=function(e){k.value&&k.value.scrollBy({top:0,
left:(_.DE("HTML_DIR")==="rtl"?-1:1)*e*k.value.clientWidth,behavior:"smooth"})},V=function(){var e;
N((e=k.value)==null?void 0:e.scrollLeft);var u;A((u=k.value)==null?void 0:u.scrollWidth);var h;x((h=k.value)==null?void 0:h.clientWidth)},c=function(){d(-.5)},M=function(){d(.5)};
C=_.Pj(function(){V()});
_.lI(function(){V();if(k.value){var e=new ResizeObserver(V);e.observe(k.value);_.fy(function(){e.disconnect()})}});
var p={};return _.t("yt-sponsorships-scrollable-shelf",{class:_.Li("ytdSponsorshipsScrollableShelfHost",W.className)},_.t("div",{class:_.Li("ytdSponsorshipsScrollableShelfContent",(p.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!a()&&!X()},p.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!a()&&X()},p.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return a()&&!X()},p)),
el:k,"on:scroll":C},W.children),_.t(_.NI,{cond:function(){return!a()},
then:function(){return _.t(_.Ex,{data:function(){return W.data().previousButton}},{buttonViewModel:function(e){return _.t(_.zn,{data:e.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:c})}})}}),_.t(_.NI,{cond:function(){return!X()},
then:function(){return _.t(_.Ex,{data:function(){return W.data().nextButton}},{buttonViewModel:function(e){return _.t(_.zn,{data:e.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:M})}})}}))},"zd");
YF7.idomCompat=!0;var bgu=_.GM(function(W){var k=W.data;return _.t("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.t("div",{class:"ytdSponsorshipsHubHeader"},_.t("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.t("div",{class:"ytdSponsorshipsHubAvatar"},_.t(_.Ex,{data:function(){return k().avatar}},{avatarViewModel:_.D_})),_.t(_.NI,{cond:function(){return k().badgeImage},
then:function(C){return _.t("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.t("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.t("div",{class:"ytdSponsorshipsHubBadge"},_.t(_.pi,{data:C,targetWidth:24,targetHeight:24,alt:""}))))}})),_.t("div",{class:"ytdSponsorshipsHubDetails"},_.t("div",{class:"ytdSponsorshipsHubTierName"},function(){return k().tierName}),_.t("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return k().membershipType}),_.t("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return k().membershipDurationOrExpiry})),_.t("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.t(_.Ex,{data:function(){return k().manageButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.t(_.Ex,{data:function(){return k().actionMenuButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.t("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return k().perksTitle}),_.t(YF7,{data:function(){return{previousButton:k().previousPerkButton,
nextButton:k().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.t("div",{class:"ytdSponsorshipsHubPerkCards"},_.t(_.Ex,{data:function(){return k().perkCards}},{sponsorshipsHubPerkCardViewModel:NT7}),_.t(_.NI,{cond:function(){return k().viewAllPerksButton},
then:function(C){return _.t(BT7,{data:C})}}))))},"Ad");
bgu.idomCompat=!0;var BT7=_.GM(function(W){var k=W.data;return _.t("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.t(_.Ex,{data:function(){return k().button}},{buttonViewModel:_.zn}),_.t("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.t("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return k().title}),_.t("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return k().subtitle})))},"Bd");
BT7.idomCompat=!0;_.Gj(bgu,"yt-sponsorships-hub",{props:{data:_.Ik}});_.A87=_.GM(function(W){var k=W.data;return _.t("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.WJ({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var C;return((C=k().badgeCutoutRadius)!=null?C:14)+"px"}})},_.t("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.t(_.Ex,{data:function(){return k().startAvatar}},{avatarViewModel:_.D_}),_.t(_.Ex,{data:function(){return k().endAvatar}},{avatarViewModel:_.D_})),_.t(_.Ex,{data:function(){return k().badge}},{contentPreviewImageViewModel:function(C){return _.t("div",
{class:"ytDualAvatarViewModelBadge"},_.t(_.W2,{data:C.data}))}}))},"Cd");
_.A87.idomCompat=!0;var wX$=_.GM(function(W){var k=W.data;var C,n=!((C=_.f().resolve(_.qI(_.cj)))==null||!C());W=_.BH(function(){var E,a,X=n?(E=k().header)==null?void 0:E.backgroundColorDarkMode:(a=k().header)==null?void 0:a.backgroundColorLightMode;if(X!==void 0)return _.Xi(X)},void 0,"UX2G6c");
C=_.BH(function(){var E,a;return n?(E=k().header)==null?void 0:E.backgroundImagePart1Dark:(a=k().header)==null?void 0:a.backgroundImagePart1Light},void 0,"GPAi1d");
var N=_.BH(function(){var E,a;return n?(E=k().header)==null?void 0:E.backgroundImagePart2Dark:(a=k().header)==null?void 0:a.backgroundImagePart2Light},void 0,"nboJld"),B=_.BH(function(){return _.DE("HTML_DIR")==="rtl"},void 0,"LGJceb"),A=_.yE(),w=!1,x=function(){var E=A.value;
if(E&&!w){E=E.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk");for(var a=0;a<E.length;++a){var X=E[a];if(X instanceof HTMLElement){X.scrollIntoView({block:"center",inline:"nearest",behavior:"smooth"});w=!0;break}}}};
_.Ee(function(){var E=A.value;if(E){var a=new ResizeObserver(x);a.observe(E);_.fy(function(){a.disconnect()})}});
return _.t("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:A},_.t("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.t("div",{class:"ytdSponsorshipsPerksListHeader",style:_.WJ({"background-color":W})},_.t("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.t(_.NI,{cond:C,then:function(E){var a={};return _.t("div",{class:_.Li((a.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,a.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,a.ytdSponsorshipsPerksListFlipped=
B,a))},_.t(_.pi,{data:E,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.t("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.t(_.NI,{cond:N,
then:function(E){var a={};return _.t("div",{class:_.Li((a.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,a.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,a.ytdSponsorshipsPerksListFlipped=B,a))},_.t(_.pi,{data:E,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.t("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.t(_.Ex,{data:function(){var E;
return(E=k().header)==null?void 0:E.dualAvatar}},{dualAvatarViewModel:_.A87})))),_.t("div",{class:"ytdSponsorshipsPerksListBody"},_.t("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return k().title}),_.t(_.NI,{cond:function(){return k().perks},
then:function(E){return _.t(_.bI,{each:E},function(a,X){var d={};return _.t("div",{class:_.Li("ytdSponsorshipsPerksListPerkContainer",(d.ytdSponsorshipsPerksListSelectedPerk=function(){var V=X(),c=k().selectedPerkIndex;return V===c},d))},_.t(_.NI,{cond:function(){return X()>0},
then:function(){return _.t("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.t("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.t(_.NI,{cond:function(){return a.icon},
then:function(V){return _.t(_.ka,{icon:function(){return V().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.t("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.t("div",{class:"ytdSponsorshipsPerksListPerkTitle"},a.title),_.t("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.t(_.Ya,{text:a.description})),_.t(_.NI,{cond:function(){return a.instructions},
then:function(){var V,c;return _.t("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.t("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(V=a.instructions)==null?void 0:V.title),_.t("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.t(_.Ya,{text:(c=a.instructions)==null?void 0:c.text})))}}))),_.t(_.NI,{cond:function(){return a.emoji},
then:function(V){return _.t("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.t(_.bI,{each:function(){return V()}},function(c){return _.t(_.pi,{data:c,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.t(FRu,{data:a}))})}})))},"Dd");
wX$.idomCompat=!0;var FRu=_.GM(function(W){var k=W.data;var C=function(A,w){return A===w},n=function(){var A=k();
A=_.z(A==null?void 0:A.badgesShelf,v78);return A!==void 0&&A!==null?A:{previousButton:{},nextButton:{}}},N=_.$I(),B=function(){var A=N.value;
if(A){var w=A.parentElement;if(w){A=A.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var x=0;x<A.length;++x){var E=A[x];if(E instanceof HTMLElement){w.scrollTo({left:E.offsetLeft+E.clientWidth/2-w.clientWidth/2,behavior:"instant"});break}}}}};
_.Ee(function(){var A=N.value;if(A){var w=new ResizeObserver(B);w.observe(A);_.fy(function(){w.disconnect()})}});
return _.t("div",null,_.t(_.NI,{cond:function(){return k().badges},
then:function(A){return _.t(YF7,{data:n},_.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:N},_.t(_.bI,{each:function(){return A()}},function(w,x){var E={},a={},X={};
return _.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.t(_.NI,{cond:function(){return x()>0},
then:function(){return _.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.t("div",{class:_.Li("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(E.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return C(x(),k().currentBadgeIndex)},E.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!C(x(),k().currentBadgeIndex)},E))},_.t("div",{class:_.Li("ytdSponsorshipsPerksListLoyaltyBadge",(a.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return C(x(),
k().currentBadgeIndex)},a.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!C(x(),k().currentBadgeIndex)},a))},_.t(_.NI,{cond:function(){return w.image},
then:function(d){var V={};return _.t("div",{class:_.Li((V.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return C(x(),k().currentBadgeIndex)},V.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!C(x(),k().currentBadgeIndex)},V))},_.t(_.pi,{data:d,
alt:""}))}})),_.t("div",{class:_.Li("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(X.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return C(x(),k().currentBadgeIndex)},X))},w.title)))})))}}))},"Ed");
FRu.idomCompat=!0;_.Gj(wX$,"yt-sponsorships-perks-list",{props:{data:_.Ik}});_.Gj(_.GM(function(W){return _.t("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.t(_.NI,{cond:function(){return W.data().image},
then:function(k){return _.t(_.pi,{className:"ytwFantasyEmptyStateViewModelImage",data:k,ariaHidden:!0,alt:""})}}),_.t(_.Ya,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.t(_.Ya,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.t(_.Ex,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(k){return _.t(_.zn,{data:k.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Fd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C;W=_.b(_.kw(!((C=_.h4("yt-mini-app-is-theater-mode-enabled"))==null||!C),void 0,"CUtq5"));var n=W.next().value,N=W.next().value,B;C=(B=_.f().resolve(_.qI(gz$)))!=null?B:function(){return _.t("div",null)};
_.GJ("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){N(!0);_.KE("yt-mini-app-is-theater-mode-enabled",!0)});
_.GJ("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){N(!1);_.KE("yt-mini-app-is-theater-mode-enabled",!1)});
B={};W={};var A={};return _.t("mini-app-play-page-renderer",{class:_.Li("miniAppPlayPageRendererHost",(B.miniAppPlayPageRendererHostDetailsView=function(){return!n()},B))},_.t("div",{class:_.Li("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!n()},W))},_.t(_.Ex,{data:function(){return k().containerViewModel}},{miniAppContainerViewModel:nO$}),_.t(_.NI,{cond:function(){return!n()&&k().description},
then:function(){return _.t("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.t("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return k().description}))}})),_.t("div",{class:_.Li("miniAppPlayPageRendererPlayNextContainer",(A.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!n()},A))},_.t(_.Ex,{data:function(){return k().sectionList}},{sectionListRenderer:C})))},"Gd"),"mini-app-play-page-renderer",{props:{data:_.Ik}});var x9T=function(){var W=_.R.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.D(x9T,_.R);_.Y=x9T.prototype;
_.Y.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(W){switch(W.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:_.m("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.m("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.Y.created=function(){var W=this;this.JSC$14716_scrollAnimation=new _.Mp(function(k){W.hostElement.scrollTop=k})};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.Y.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.Y.computeShouldScrollInPanel=function(W){var k;return!!(W==null?0:(k=W.scrollPaneStyle)==null?0:k.scrollable)};
_.Y.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.qw(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.Y.scrollToTop=function(){this.hostElement.scrollTop=0};
_.Y.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$14716_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.Y.getItemByIdentifier=function(W){var k=this.contents.querySelectorAll("ytd-item-section-renderer");if(k&&k.length!==0){var C=Array.from(k).findIndex(function(n){return n.sectionIdentifier===W});
return k[C===-1?0:C]}};
_.Y.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.pU(W).y+this.hostElement.scrollTop-_.pU(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.oq.Object.defineProperties(x9T.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
var ZK=x9T;ZK.prototype.onScroll=ZK.prototype.onScroll;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],ZK.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],ZK.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.v(_.PE7),_.O("design:type",Object)],ZK.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],ZK.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZK.prototype,"data",void 0);_.U([_.Z({value:2}),_.O("design:type",Number)],ZK.prototype,"initialCount",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],ZK.prototype,"autoFill",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.O("design:type",Boolean)],ZK.prototype,"hasSortFilter",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.O("design:type",Boolean)],ZK.prototype,"hideBottomSeparator",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.O("design:type",Boolean)],ZK.prototype,"shouldScrollInPanel",void 0);
_.U([_.Z(),_.O("design:type",Object)],ZK.prototype,"isSearch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ZK.prototype,"isConstrainedList",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],ZK.prototype,"responsiveSizing",void 0);_.U([_.Z(),_.O("design:type",Object)],ZK.prototype,"hasChipsBar",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],ZK.prototype,"pageSubtype",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZK.prototype,"engagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZK.prototype,"liveChatEngagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ZK.prototype,"inReplyPanel",void 0);_.U([_.gi("#action-button"),_.O("design:type",HTMLElement)],ZK.prototype,"actionButton",void 0);_.U([_.Z(),_.O("design:type",Object)],ZK.prototype,"scrollUpButtonData",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZK.prototype,"engagementPanelDropdown",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ZK.prototype,"engagementPanelDialog",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ZK.prototype,"isClipList",null);_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],ZK.prototype,"monitorScrollElement",void 0);_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],ZK.prototype,"contents",void 0);
_.U([_.jI("scroll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZK.prototype,"onScroll",null);ZK=_.U([_.T({is:"ytd-section-list-renderer",disableElementRegistration:!0})],ZK);
var lei=_.u0()(ZK,"ytd-section-list-renderer",function(){if(rKZ===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);rKZ=W}W=rKZ;return W},{mode:1});var tii;var EO6;var ae6;var XX6;var RB=function(){return _.R.apply(this,arguments)||this};
_.D(RB,_.R);RB.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
RB.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.oq.Object.defineProperties(RB.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
var oB=RB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],oB.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],oB.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oB.prototype,"ytRendererStamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],oB.prototype,"data",void 0);
_.U([_.Z({selectorArgs:["data.likeStatusEntityKey"],selector:fn}),_.O("design:type",Object)],oB.prototype,"likeStatusEntity",void 0);_.U([_.G("data","likeStatusEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],oB.prototype,"likeButtonRenderer",null);oB=_.U([_.T({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],oB);
_.q(oB,"ytd-slim-metadata-toggle-button-renderer",function(){if(XX6!==void 0)return XX6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return XX6=W},{mode:1});var feC=function(){var W=_.R.apply(this,arguments)||this;W.minimizePipBreakages=_.m("web_pip_minimize_breakages");W.showEqualizer=_.m("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.m("kevlar_watch_color_update");W.actionMap={};return W};
_.D(feC,_.R);_.Y=feC.prototype;_.Y.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"}}}};
_.Y.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.Y.computeSelected=function(W){return!(W==null||!W.selected)};
_.Y.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.Y.computeLargerPlaylistThumbs=function(W,k){return _.m("web_enable_playlist_bigger_thumbnails")&&!k};
_.Y.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.Y.onYtServiceRequestSent=function(W,k){k.endpoint&&this.isHideEnclosingAction(k.endpoint)&&!this.selected&&qmY(_.Qd(),this.data.videoId)};
_.Y.isHideEnclosingAction=function(W){var k=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return k||W};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.oq.Object.defineProperties(feC.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
var iG=feC;iG.prototype.onYtServiceRequestSent=iG.prototype.onYtServiceRequestSent;iG.prototype.canReorderChanged=iG.prototype.canReorderChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],iG.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.MC),_.O("design:type",Object)],iG.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iG.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"withinMiniplayer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],iG.prototype,"minimizePipBreakages",void 0);_.U([_.Z({computed:"computeSelected(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"selected",void 0);
_.U([_.Z({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"useColorPalette",void 0);_.U([_.Z({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"largerPlaylistThumbs",void 0);_.U([_.Z(),_.O("design:type",Object)],iG.prototype,"showEqualizer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"canReorder",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"touchPersistentDragHandle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],iG.prototype,"handleIsHovered",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],iG.prototype,"watchColorUpdate",void 0);_.U([_.G("largerPlaylistThumbs"),_.O("design:type",Number),_.O("design:paramtypes",[])],iG.prototype,"thumbnailWidth",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],iG.prototype,"showActionButtons",null);_.U([_.Cq("canReorder"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iG.prototype,"canReorderChanged",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],iG.prototype,"onYtServiceRequestSent",null);
iG=_.U([_.T({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],iG);
_.q(iG,"ytd-playlist-panel-video-renderer",function(){if(ae6!==void 0)return ae6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ae6=W},{mode:2});var d97=function(){return _.R.apply(this,arguments)||this};
_.D(d97,_.R);d97.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var TN=d97;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TN.prototype,"data",void 0);TN=_.U([_.T({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],TN);
_.q(TN,"ytd-playlist-panel-supported-items",function(){if(EO6!==void 0)return EO6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return EO6=
W},{mode:1});c7x=!0;Tq8("\\P{N}");var HDm;var m9E=_.w8("END_OF_PLAYLIST",void 0,"End of playlist"),zat=_.w8("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),D9S=function(){var W=_.R.apply(this,arguments)||this;W.minimizePipBreakages=_.m("web_pip_minimize_breakages");W.updatedCoursePanel=_.m("move_three_dot_menu_to_playlist_panel_header_for_courses");W.reducedPlaylistHeight=_.m("web_playlist_mini_playlist_height");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";
W.isHovered=!1;W.modernPanels=_.m("kevlar_watch_modern_panels");W.expandLabel=_.w8("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.w8("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.D(D9S,_.R);_.Y=D9S.prototype;
_.Y.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"}}}};
_.Y.created=function(){this.scrollThrottle=new _.Ox(this.onThrottledScroll,1E3,this)};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.Y.computeCollapsible=function(W){return!W};
_.Y.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.Y.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.Y.computeHasToolbarButton=function(W,k){return!(!W||!(k||W.saveButton||W.menu))};
_.Y.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.Y.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.Y.attached=function(){var W=this;try{_.f().resolve(_.J4).setPlaylistComponent(this.hostElement)}catch(k){if(_.m("kevlar_park_on_playlist_token_killswitch"))throw k;_.Ir().parkOrScheduleJob(function(){_.f().resolve(_.J4).setPlaylistComponent(W.hostElement)},2,"ci")}_.He(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.Y.detached=function(){_.ra(this.hostElement)};
_.Y.computeTrailingIcon=function(W,k,C){return C?k?"yt-icons:collapse":"yt-icons:close":k?"yt-icons:expand":_.m("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.Y.computeIndexMessage=function(W,k){return PnX(W+1)+" / "+PnX(k)};
_.Y.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.Y.collapseChanged=function(){var W=this;this.collapsed||(_.ty(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.Y.hiddenChanged=function(){var W=this;this.hidden||_.ty(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.Y.setupReordering=function(){var W=_.S(this.hostElement).querySelector("#items");lJ2?_.DQC(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.DQC(this.ytReorderableBehavior,W,W)};
_.Y.scrollToCurrentVideo=function(){var W=this;_.aM.addJob(function(){var k=_.S(W.hostElement).querySelector("#items");if(k){k.style.setProperty("padding-bottom","");var C=_.S(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(C){k=C.parentElement||_.mG(document);var n=k||_.mG(document);var N=_.pU(C),B=_.pU(n),A=_.OLA(n);if(n==_.mG(document)){var w=N.x-n.scrollLeft;N=N.y-n.scrollTop}else w=N.x-B.x-A.left,N=N.y-B.y-A.top;C=TjI(C);B=n.clientHeight-
C.height;A=n.scrollLeft;var x=n.scrollTop;A+=w-(n.clientWidth-C.width)/2;n=new _.S3(A,x+(N-B/2));k.scrollLeft=n.x;k.scrollTop=n.y}}},8)};
_.Y.dataChanged=function(){var W=this;_.ztb(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ZR(this,function(){_.wI(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.Y.updateNowPlayingOverlay=function(){_.m("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.Y.onPlaylistLockupNowPlaying=function(W,k){k&&(this.activeNowPlayingRenderer=k);this.updateNowPlayingOverlay()};
_.Y.onScroll=function(){this.scrollThrottle.fire()};
_.Y.onThrottledScroll=function(){var W=this;_.wI(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.Y.onToggleExpanded=function(W){this.collapsible&&_.eI(W).tagName!=="A"&&!_.er(_.vl(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.Y.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.hA(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.Y.handleCollapsedFromData=function(W){if(W){var k=W.playlistPanelCollapseState;k==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||k==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),k=k==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==k&&this.setCollapsed(k)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(k=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==k&&this.setCollapsed(k),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.Y.handleDrop=function(W){var k=W.currDragItem;W=k.data.playlistSetVideoId;var C=_.$z(k.parentNode.childNodes,k),n=void 0;C>0&&(n=k.parentNode.childNodes[C-1].data.playlistSetVideoId);k=_.Qd();if(k.responsePlaylistData&&k.responsePlaylistData.contents){var N=taJ(W,k.responsePlaylistData);k.responsePlaylistData=(0,_.JU.unsafeClone)(k.responsePlaylistData);pwJ(k.responsePlaylistData.contents,N,C);k.queueProxy?dgA(k.queueProxy,N,C,W,n):k.playlistProxy&&dgA(k.playlistProxy,N,C,W,n);_.pE(k,_.vK(k,k.response?
k.response.autoplayRenderer:void 0))}};
_.Y.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.Y.colorPaletteChanged=function(){var W,k=((W=this.data)==null?void 0:W.contents)||[],C;W=_.b(k);for(k=W.next();!k.done;k=W.next()){k=k.value;var n=void 0;if((n=k.playlistPanelVideoRenderer)==null?0:n.selected){W=k.playlistPanelVideoRenderer;n=k=void 0;(C=this.isDarkTheme?(k=W)==null?void 0:k.darkColorPalette:(n=W)==null?void 0:n.lightColorPalette)&&_.lV(this.hostElement,C);break}}this.useColorPalette=!!C};
_.oq.Object.defineProperties(D9S.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.playlistId)&&!((k=this.data)==null||!k.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.f().resolve(_.qI(_.J4)),k;if(((k=this.data)==null?0:k.contents)&&(W==null?0:W.hasAutoplayData())){var C;if(((C=this.playlistLoopStateEntity)==null?void 0:C.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var n,N;var B=(n=this.data.contents[W])==null?void 0:(N=n.playlistPanelVideoRenderer)==null?void 0:N.title}}else{var A,w=(A=_.z(W.getAutoplayEndpoint(),_.RA))==null?void 0:A.videoId,x,E;B=(x=this.data.contents.find(function(a){var X;
return((X=a.playlistPanelVideoRenderer)==null?void 0:X.videoId)===w}))==null?void 0:(E=x.playlistPanelVideoRenderer)==null?void 0:E.title}return B}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.y4(this.data.nextVideoLabel)+":":m9E:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Go(zat);var k;return(k=this.data)==null?void 0:k.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.playlistButtons)==null?void 0:(C=k.menuRenderer)==null?void 0:C.topLevelButtons;if(n)for(W=_.b(n),k=W.next();!k.done;k=W.next())if(k=k.value,k.playlistLoopButtonRenderer)return k.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}}});
var qp=D9S;qp.prototype.colorPaletteChanged=qp.prototype.colorPaletteChanged;qp.prototype.onPlaylistLockupNowPlaying=qp.prototype.onPlaylistLockupNowPlaying;qp.prototype.updateNowPlayingOverlay=qp.prototype.updateNowPlayingOverlay;qp.prototype.dataChanged=qp.prototype.dataChanged;qp.prototype.hiddenChanged=qp.prototype.hiddenChanged;qp.prototype.collapseChanged=qp.prototype.collapseChanged;qp.prototype.onRenderStamperFinished=qp.prototype.onRenderStamperFinished;qp.prototype.onMouseLeave=qp.prototype.onMouseLeave;
qp.prototype.onMouseEnter=qp.prototype.onMouseEnter;_.U([_.v(_.mV),_.O("design:type",Object)],qp.prototype,"ironResizableBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(dQ8.YtPlaylistPanelBehavior),_.O("design:type",Object)],qp.prototype,"ytPlaylistPanelBehavior",void 0);
_.U([_.v(_.vR.YtTaskEmitterBehavior),_.O("design:type",Object)],qp.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.v(_.JF8),_.O("design:type",Object)],qp.prototype,"ytReorderableBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qp.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],qp.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],qp.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"autoplayData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],qp.prototype,"withinMiniplayer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"minimizePipBreakages",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"updatedCoursePanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"reducedPlaylistHeight",void 0);_.U([_.Z({computed:"setMenuData_(data)"}),_.O("design:type",Object)],qp.prototype,"menuRendererData",void 0);_.U([_.Z({computed:"computeOverflowMenuData(data)"}),_.O("design:type",Object)],qp.prototype,"overflowMenuDataTopRow",void 0);_.U([_.Z({computed:"computeOverflowMenuData(data)"}),_.O("design:type",Object)],qp.prototype,"overflowMenuData",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"hideHeaderText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"useColorPalette",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.O("design:type",Boolean)],qp.prototype,"collapsible",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"collapsed",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],qp.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.O("design:type",Boolean)],qp.prototype,"hasPlaylistButtons",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.O("design:type",Boolean)],qp.prototype,"hasSeparateSaveButton",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.O("design:type",Boolean)],qp.prototype,"hasToolbar",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.O("design:type",String)],qp.prototype,"playlistType",void 0);_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"isHovered",void 0);_.U([_.Z({selectorArgs:["playlistLoopStateEntityKey"],selector:_.ME2}),_.O("design:type",Object)],qp.prototype,"playlistLoopStateEntity",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"modernPanels",void 0);_.U([_.Z({value:56}),_.O("design:type",Number)],qp.prototype,"scrollMargin",void 0);_.U([_.Z({computed:"computeCanReorder(data)"}),_.O("design:type",Boolean)],qp.prototype,"canReorder",void 0);_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"expandLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"collapseLabel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"isFloating",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qp.prototype,"metaPanel",void 0);_.U([_.Z({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.O("design:type",String)],qp.prototype,"trailingIcon",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],qp.prototype,"isDarkTheme",void 0);
_.U([_.Z({selector:_.zo}),_.O("design:type",Boolean)],qp.prototype,"miniplayerIsActive",void 0);_.U([_.Z({selector:function(W){return W.watch.playerState}}),
_.O("design:type",Number)],qp.prototype,"playerState",void 0);_.U([_.Z(),_.O("design:type",Object)],qp.prototype,"activeNowPlayingRenderer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qp.prototype,"moveThreeDotMenuToTopRow",null);_.U([_.G("data","autoplayData","playlistLoopStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],qp.prototype,"nextVideoTitle",null);
_.U([_.G("data","nextVideoTitle"),_.O("design:type",String),_.O("design:paramtypes",[])],qp.prototype,"nextVideoLabel",null);_.U([_.G("collapsed"),_.O("design:type",String),_.O("design:paramtypes",[])],qp.prototype,"buttonAriaLabel",null);_.U([_.G("data","playlistId","longBylineText"),_.O("design:type",Object),_.O("design:paramtypes",[])],qp.prototype,"mixLongByLine",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],qp.prototype,"playlistLoopStateEntityKey",null);
_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"onMouseEnter",null);_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"onMouseLeave",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qp.prototype,"showNextVideoHeader",null);
_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"onRenderStamperFinished",null);_.U([_.Hl("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"collapseChanged",null);_.U([_.Hl("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"hiddenChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"dataChanged",null);_.U([_.Hl("playerState","miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"updateNowPlayingOverlay",null);_.U([_.jI("yt-playlist-lockup-now-playing-active"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],qp.prototype,"onPlaylistLockupNowPlaying",null);
_.U([_.Hl("data","isDarkTheme"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qp.prototype,"colorPaletteChanged",null);qp=_.U([_.T({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],qp);
_.ViC=_.u0()(qp,"ytd-playlist-panel-renderer",function(){if(tii===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);tii=W}W=tii;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var J8T;var uG=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework");return W};
_.D(uG,_.R);uG.prototype.computeShouldButtonBeVertical=function(W,k){return W||k};
uG.prototype.onYtServiceRequestSent=function(W,k){(W=_.z(k.endpoint,_.RZ))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Nj("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
uG.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
uG.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$14741_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$14741_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14741_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14741_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.oq.Object.defineProperties(uG.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return k9K(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;return k9K(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}}});
var U0=uG;U0.prototype.onYtServiceRequestSent=U0.prototype.onYtServiceRequestSent;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],U0.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],U0.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],U0.prototype,"vertical",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],U0.prototype,"textTransform",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],U0.prototype,"useShortsIcon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],U0.prototype,"underIconLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],U0.prototype,"modern",void 0);_.U([_.Z({value:"left"}),_.O("design:type",String)],U0.prototype,"buttonTooltipPosition",void 0);
_.U([_.Z(),_.O("design:type",Object)],U0.prototype,"overrides",void 0);_.U([_.gi("#like-button"),_.O("design:type",Object)],U0.prototype,"JSC$14741_ytdLikeToggleButtonRenderer",void 0);_.U([_.gi("#dislike-button"),_.O("design:type",Object)],U0.prototype,"JSC$14741_ytdDislikeToggleButtonRenderer",void 0);_.U([_.G("data","likeStatusEntity.likeStatus"),_.O("design:type",Object),_.O("design:paramtypes",[])],U0.prototype,"likeButton",null);
_.U([_.G("data","likeStatusEntity.likeStatus"),_.O("design:type",Object),_.O("design:paramtypes",[])],U0.prototype,"dislikeButton",null);_.U([_.Z({computed:"computelikeStatusEntityKey(data)"}),_.O("design:type",String)],U0.prototype,"likeStatusEntityKey",void 0);_.U([_.Z({selectorArgs:["likeStatusEntityKey"],selector:fn}),_.O("design:type",Object)],U0.prototype,"likeStatusEntity",void 0);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],U0.prototype,"onYtServiceRequestSent",null);U0=_.U([_.T({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],U0);
var c8i=_.u0()(U0,"ytd-like-button-renderer",function(){if(J8T===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);J8T=W}W=J8T;return W},{mode:1});_.IeS={};
_.IeS.YtConditionalRendererBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,k){var C=this,n,N;return _.F(function(B){switch(B.nextAddress){case 1:if(!k)return C.hidden=!0,C.showSpinner=!1,B.return();if((n=W)==null?0:(N=n.visibilityCondition)==null?0:N.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return B.jumpTo(5);default:return B.jumpTo(6)}C.showSpinner=
!1;C.hidden=!0;return _.l(B,C.shouldShow_(W),4);case 4:C.hidden=!B.yieldResult;B.jumpTo(0);break;case 5:return _.l(B,C.shouldShow_(W),8);case 8:C.showSpinner=B.yieldResult;C.hidden=!1;B.jumpTo(0);break;case 6:return C.showSpinner=!1,_.l(B,C.shouldShow_(W),9);case 9:C.hidden=!B.yieldResult,_.ab(B)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.KY(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.F(function(k){return k.nextAddress==1?navigator.permissions?_.l(k,navigator.permissions.query({name:"geolocation"}),3):k.jumpTo(2):k.nextAddress!=2?(W=k.yieldResult,k.return(Promise.resolve(W.state==="granted"))):k.return(Promise.resolve(!1))})}}];var SFA=function(W,k){k=k===void 0?{}:k;return function(C){var n=document.createElement(W),N;var B=(N=n.polymerController)!=null?N:n;qcp(n,B,C,k);return n}}("yt-icon");var Miu=function(W){var k=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];iiw();_.$g("ytglobal.ytUtilActivityCallback_",function(){_.hA(W,"yt-user-activity")});
new RM(function(){return k.JSC$14753_onMouseMove});
document.addEventListener("scroll",function(){return k.onScroll});
window.addEventListener("resize",function(){return k.onResize})},QbS=function(W,k,C){k in W.eventJobIds||(C=_.D7().addLowPriorityJob(function(){_.oM();
delete W.eventJobIds[k]},C),W.eventJobIds[k]=C)};
Miu.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&QbS(this,"scroll",200)};
Miu.prototype.onResize=function(){QbS(this,"resize",200)};
Miu.prototype.JSC$14753_onMouseMove=function(){QbS(this,"mousemove",100)};
_.f$x=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var pXZ=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
pXZ.prototype.showFeedbackDialog=function(W,k,C,n){var N=vOB();if(!N)return!1;var B=t4c();B.productId=N;k&&(B.flow="submit",B.report={description:k});C&&(vOB()==="59"?B.callback=_.MI(function(){_.a9("userFeedbackEvent",{});C()}):B.callback=_.MI(C));
B.bucket=n||_.DE("GOOGLE_FEEDBACK_BUCKET","Other");ea7(B);W=sbZ(this,"GFEEDBACK",W);try{_.hk2(B,W)}catch(A){return _.I4(A),!1}return!0};
pXZ.prototype.showHelpDialog=function(W,k,C){var n=this,N=vOB();if(!N)return!1;var B={helpCenterPath:"/youtube",productData:sbZ(this,"GUIDED_HELP",C)};ea7(B);var A=t4c();A.context=W||B.productData.context||"default";A.defaultHelpArticleId=k;A.enableSendFeedback=!0;(_.QK("gapi.load")||function(w,x){return x()})("client",function(){try{var w=qo2(N,B);
if(_.m("web_always_load_chat_support")&&!n.chatSupportLoaded)try{w.JSC$7847_loadChatSupport(A),n.chatSupportLoaded=!0}catch(x){}w.startHelp(A)}catch(x){_.I4(x)}})};
var vOB=function(){var W=_.DE("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.I4(Error("di"));return W},ea7=function(W){W&&(W.locale=_.m("kevlar_help_use_locale")?_.DE("INNERTUBE_CONTEXT_HL","en"):_.DE("HTML_LANG","en"))},sbZ=function(W,k,C){var n=W.productData;
delete n.origin;n.device=_.fI();var N;a:{if(N=document.createElement("canvas")){var B=N.getContext("experimental-webgl",{stencil:!0});if(B){var A=B.getExtension("WEBGL_debug_renderer_info");if(A){N=B.getParameter(A.UNMASKED_RENDERER_WEBGL);break a}}if(B=N.getContext("webgl")){N=B.getParameter(B.RENDERER);break a}}N=null}n.gpu=N;n.isSDC=!!_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(N=_.DE("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.JU.extend(n,N);_.x53(k,n);_.lt4(n);(W=_.hA(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(n.autonav_pause_state=W[0]);W=_.tU();n.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";C&&_.JU.extend(n,C);return n};
pXZ.prototype.resetProductData=function(){this.productData={}};var Gtu=function(W){this.feedbackManager=new pXZ(W)};
Gtu.prototype.showFeedbackDialog=function(W,k,C,n){return this.feedbackManager.showFeedbackDialog(W,k,C,n)};
Gtu.prototype.showHelpDialog=function(W,k,C){return this.feedbackManager.showHelpDialog(W,k,C)};var y8S=function(){this.baseUrl="";this.aTag=document.createElement("a")},vJI=function(W,k,C){C=C===void 0?{}:C;
C.pbj||(C.pbj=1);C=_.cyw(k,C);W.baseUrl&&C&&!_.ZE(C)[1]&&!_.R4(C)&&(k=W.baseUrl,w3(k,"/")&&(k=k.slice(0,-1)),_.AK(C,"/")&&(C=C.slice(1)),C=k+"/"+C);Gi(W.aTag,SN(C||""));return W.aTag.href};
y8S.prototype.fetchData=function(W){return _.YZX(W)};
y8S.prototype.postData=function(W,k){var C={method:"POST"};if(k){for(var n=_.b(Object.keys(k)),N=n.next();!N.done;N=n.next()){N=N.value;var B=k[N];_.O2(B)&&(k[N]=JSON.stringify(B))}C.postParams=k}return _.YZX(W,C)};
_.eQY=function(W,k,C,n,N){W=vJI(W,k,C);if(!W)throw n=Error("ei"),Object.assign(n,{params:k}),n;return _.YZX(W,N,n)};
y8S.prototype.requestDataForServiceEndpoint=function(W,k){if(_.z(W,_.dOP))return this.fetchData("/getAccountSwitcherEndpoint");k=k||{};var C=_.z(W,YVs);C?k.se=C.base64EncodedServiceEndpoint:k.sej=JSON.stringify(W);(C=_.VM())&&_.m("enable_service_ajax_csn")&&(k.csn=C);k.theme=_.Vi();_.z(W,Xbm)&&_.DE("DELEGATION_CONTEXT")&&(k.delegation_context=JSON.stringify(_.DE("DELEGATION_CONTEXT")));C=null;for(var n in W)if(w3(n,"Endpoint")||w3(n,"Command")){C=n;break}if(!C){var N=Error("fi");Object.assign(N,{params:W});
_.Djz(N,"WARNING");return new _.Wx(function(A,w){w(N)})}n={name:C};
var B;(C=(B=_.z(W,_.AQ))==null?void 0:B.signal)&&(n.signal=C);(B=_.G3(window.location.href))&&B.internalcountrycode&&(n.internalcountrycode=B.internalcountrycode);B="/service_ajax";_.m("debug_forward_web_query_parameters")&&(B=_.ZBP(B,window.location.search));B=_.$n(B,n);W.clickTrackingParams&&_.qL(B,{itct:W.clickTrackingParams});return this.postData(B,k)};_.$9T=new _.Tc("GFEEDBACK_TOKEN");var Zg$;var Rai;var oOE;var ig7;var O0=function(){var W=_.R.apply(this,arguments)||this;W.compact=!1;return W};
_.D(O0,_.R);O0.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
O0.prototype.computeHasIcon_=function(W){return!!W};
O0.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
var LJ=O0;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.IeS.YtConditionalRendererBehavior),_.O("design:type",Object)],LJ.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LJ.prototype,"data",void 0);
_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],LJ.prototype,"icon_",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.O("design:type",Boolean)],LJ.prototype,"hasIcon_",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.O("design:type",Boolean)],LJ.prototype,"signInIcon_",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],LJ.prototype,"compact",void 0);
LJ=_.U([_.l0({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],LJ);
_.q(LJ,"yt-player-error-message-renderer",function(){if(ig7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;oOE===void 0&&(oOE=document.createElement("template"));var n=oOE;C.call(k,n.content.cloneNode(!0),W.content.firstChild);ig7=W}W=ig7;return W},{mode:2});var TTZ;var qFu;var u07=function(){return _.R.apply(this,arguments)||this};
_.D(u07,_.R);u07.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
u07.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
var jl=u07;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jl.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],jl.prototype,"icon_",void 0);jl=_.U([_.l0({is:"yt-player-kav-renderer",disableElementRegistration:!0})],jl);
_.q(jl,"yt-player-kav-renderer",function(){if(qFu===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;TTZ===void 0&&(TTZ=document.createElement("template"));var n=TTZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);qFu=W}W=qFu;return W},{mode:2});_.Gj(_.GM(function(W){var k=_.yE(),C=_.b(_.kw(0,void 0,"gCmSbf")),n=C.next().value,N=C.next().value;C=_.b(_.kw(null,void 0,"Rj9zMe"));var B=C.next().value,A=C.next().value;_.Ee(function(){XQw(k.value,N,A);k.value.scrollIntoView()});
C=ftw.bind(null,W.data,n);TJ("resize",function(){var w=B();if(n()===1&&w!==null){var x;(x=window.grecaptcha)==null||x.reset(w)}});
return _.t("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.t("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.t("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var w,x;return(w=W.data().accessibility)==null?void 0:(x=w.accessibilityData)==null?void 0:x.label}),_.t(_.Ya,{text:C,
className:_.Li("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.t("div",{el:k,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Hd"),"yt-player-captcha-view-model",{props:{data:_.si}});var d52=!1;_.U9i=_.GM(function(W){var k=W.data;return _.t("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.t(_.NI,{cond:function(){return k().icon},
then:function(C){return _.t("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.t(_.pi,{data:C,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.t(_.NI,{cond:function(){return k().title},
then:function(C){return _.t("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.t(_.Ya,{text:C}))}}),_.t(_.NI,{cond:function(){return k().description},
then:function(C){return _.t("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.t(_.Ya,{text:C}))}}),_.t(_.Ex,{data:function(){return k().primaryButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.t(_.Ex,{data:function(){return k().secondaryButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Id");
_.U9i.idomCompat=!0;var OgB=_.GM(function(W){var k=W.data;_.Tr();return _.t("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.t("div",{class:"player-interstitial-renderer-wiz__scrim"},_.t(_.Ex,{data:function(){return k().content}},{interstitialViewModel:_.U9i})))},"Jd");
OgB.idomCompat=!0;_.Gj(OgB,"yt-player-interstitial-renderer",{props:{data:_.Ik}});var LRB=function(){var W=_.R.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.D(LRB,_.R);LRB.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"}}}};
LRB.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.z(W,mtb)){var k;if(W=(k=_.z(W,mtb))==null?void 0:k.newPlayerErrorMessageRenderer)this.data=W}};
var HW=LRB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],HW.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],HW.prototype,"status",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],HW.prototype,"noBackground",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],HW.prototype,"compact",void 0);HW=_.U([_.l0({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],HW);
var jbB=_.u0()(HW,"yt-playability-error-supported-renderers",function(){if(Rai===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Zg$===void 0&&(Zg$=document.createElement("template"));var n=Zg$;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Rai=W}W=Rai;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var m5P=void 0,D5p=void 0;var c$I=new Sos;var ns=new _.Tc("ENTITY_STATE_TOKEN"),rC=new _.Tc("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var HgY=function(W){this.store=W;this.rD6=new _.pHx},cxc=function(W,k,C){var n,N;
if(!(N=((n=k.playabilityStatus)==null?void 0:n.status)!=="OK")){W=W.store;var B;N=k.offlineState&&((B=k.videoDetails)==null?0:B.videoId)?_.m("enable_pl_r_c_cd")?Utc(W.getState().entities,k.videoDetails.videoId):!!fYm(W.getState().entities,k.videoDetails.videoId):!1}if(N)return!0;N=pQP(k);if(N===1){if(_.m("ab_v_vid_sig")){var A,w=(A=k.videoDetails)==null?void 0:A.videoId;if(!w||!C||w!==C){var x;k=new _.AM("282054944_vid",{bml:C,cti:(x=k.videoDetails)==null?void 0:x.videoId});_.dI(k)}}return!0}g$m=
0;var E,a;x=(w=k.auxiliaryUi)==null?void 0:(E=w.messageRenderers)==null?void 0:(a=E.bkaEnforcementMessageViewModel)==null?void 0:a.displayType;if(N!==3&&(x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;x={reason:_.Ur(_.w8("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.m("ks_something_wrong_learn_more")?MUX("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Ur(_.w8("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:_.Ur("282054944")};r87(k,{playerErrorMessageRenderer:x});return!1},Iww=function(W,k){if(lam(k)){_.Wl(1,!0);
var C=(C=lam(k))&&_.zLw()?C:void 0;C?(r87(k,{enforcementMessageViewModel:C}),W.rD6.increment("IN_PLAYER"),_.Wl(5)):(W.rD6.increment("SKIP_DISPLAY"),_.Wl(2))}},r87=function(W,k){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:k});W.videoDetails=void 0};
HgY.prototype.handleResponse=function(W,k){if(W.playabilityStatus){var C,n,N,B=(k==null?void 0:(C=k.innerTubeRequest)==null?void 0:C.videoId)||(k==null?void 0:(n=k.innerTubeRequest)==null?void 0:(N=n.playerRequest)==null?void 0:N.videoId);cxc(this,W,B)&&Iww(this,W)}};
HgY[ic]=[ns];var V1p=new _.Tc("ADBLOCK_DETECTION_SERVICE_TOKEN");var OR=function(W){this.dLx=W};
OR.prototype.bindInnertubeChallengeFetcher=function(W){this.dLx.bicf(W)};
OR.prototype.registerChallengeFetchedCallback=function(W){this.dLx.bcr(W)};
OR.prototype.getLatestChallengeResponse=function(){return this.dLx.blc()};var haS;_.gC=function(W,k,C){var n=this;this.network=W;this.options=k;this.networkStatusManager=C;this.uO=null;if(k.useBotguardEverywhere){var N=new _.gn;this.uO=N.promise;_.NX.ytAtRC&&_.bX(_.aM,function(){var B,A;return _.F(function(w){if(w.nextAddress==1){if(!_.NX.ytAtRC)return w.return();B=gO1(null);return _.l(w,n.d0(B),2)}A=w.yieldResult;_.NX.ytAtRC&&_.NX.ytAtRC(JSON.stringify(A));_.ab(w)})});
y$P().then(function(B){var A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return B.bindInnertubeChallengeFetcher(function(X){return n.d0(gO1(X))}),_.l(a,zq2(),2);
A=a.yieldResult;w=B.getLatestChallengeResponse();x=w.challenge;if(!x)throw Error("gi");E={challenge:x,oa:UR(x),sS:A,bgChallenge:new q2};N.resolve(E);B.registerChallengeFetchedCallback(function(X){X=X.challenge;if(!X)throw Error("hi");X={challenge:X,oa:UR(X),sS:A,bgChallenge:new q2};n.uO=Promise.resolve(X)});
_.ab(a)})})}else k.preload&&PMT(this,new Promise(function(B){_.wI(_.aM,function(){B(KR1(n))},0)}))};
haS=function(W){var k={preload:!0,useBotguardEverywhere:_.m("attmusi")},C=!1;if(typeof k==="boolean")var n={preload:k};else typeof k==="undefined"?n={preload:!0}:(n=k,C=!!k.gvu);k=C?void 0:new _.Qw;_.gC.instance=new _.gC(W,n,k);return _.gC.instance};
_.gC.prototype.lAX=function(){var W=this;return _.F(function(k){return k.nextAddress==1?_.l(k,Promise.race([W.uO,null]),2):k.return(!!k.yieldResult)})};
_.gC.prototype.vpA=function(W,k,C){var n=this,N,B,A;return _.F(function(w){n.uO===null&&PMT(n,KR1(n));N=!1;B={};A=function(){var x,E,a;return _.F(function(X){switch(X.nextAddress){case 1:return _.l(X,n.uO,2);case 2:x=X.yieldResult;B.challenge=x.challenge;if(!x.sS){"c1a"in x.oa&&(B.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");X.jumpTo(3);break}E=Object.assign({},{c:x.challenge,e:W},k);_.F0(X,4);N=!0;if(_.m("attbs")&&!_.m("attmusi")){a=_.QLS(x.sS,{nb:E});X.jumpTo(6);break}return _.l(X,x.sS.snapshot({nb:E}),
7);case 7:a=X.yieldResult;case 6:a?B.webResponse=a:B.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.M7(X,3);break;case 4:_.EF(X),B.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var d=x.oa,V={};if(d.c6a){var c=Number(_.DE("DCLKSTAT",0));V.reportingStatus=String(Number(d.c)^(isNaN(c)?0:c))}d.c6b&&(V.broadSpectrumDetectionResult=String(Number(d.c)^Number(_.DE("CATSTAT",0))));B.adblockReporting=V}return X.return(B)}})};
return w.return(Promise.race([A(),WD1(C,function(){var x=Object.assign({},B);N&&(x.error="ATTESTATION_ERROR_VM_TIMEOUT");return x})]))})};
var gO1=function(W){var k={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(k.interpreterHash=W);return k},KR1=function(W,k){k=k===void 0?0:k;
var C,n,N,B,A,w,x,E,a,X,d,V;return _.F(function(c){switch(c.nextAddress){case 1:C=gO1(vLs().oxb);if(_.m("att_fet_ks"))return _.F0(c,7),_.l(c,W.d0(C),9);_.F0(c,4);return _.l(c,klC(W,C),6);case 6:A=c.yieldResult;N=A.dgS;B=A.zdT;n=A;_.M7(c,3);break;case 4:return _.EF(c),_.zJ(Error("ii`"+k)),CBi(W,864E5),c.return({challenge:"",oa:{},sS:void 0,bgChallenge:void 0});case 9:n=c.yieldResult;if(!n)throw Error("ji");if(!n.challenge)throw Error("ki");N=n.challenge;B=UR(N);if("c1a"in B&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("li");
_.M7(c,3);break;case 7:w=_.EF(c);_.zJ(w);k++;if(k>=5)return _.zJ(Error("ii`"+k)),CBi(W,864E5),c.return({challenge:"",oa:{},sS:void 0,bgChallenge:void 0});x=1E3*Math.pow(2,k-1)+Math.random()*1E3;return c.return(new Promise(function(M){_.wI(_.aM,function(){M(KR1(W,k))},x)}));
case 3:E=G92(B);CBi(W,E*1E3);a=void 0;if(!("c1a"in B&&n.bgChallenge)){c.jumpTo(10);break}X=snJ(n.bgChallenge);_.F0(c,11);return _.l(c,sLz(vLs(),X),13);case 13:_.M7(c,12);break;case 11:return d=_.EF(c),_.zJ(d),c.return({challenge:N,oa:B,sS:a,bgChallenge:X});case 12:return _.F0(c,14),a=new _.Jb({challenge:X,xQ:{vY:"aGIf"}}),_.l(c,a.ubx,16);case 16:_.M7(c,10);break;case 14:V=_.EF(c),_.zJ(V),a=void 0;case 10:return c.return({challenge:N,oa:B,sS:a,bgChallenge:X})}})};
_.gC.prototype.d0=function(W){var k=this,C;return _.F(function(n){C=k.networkStatusManager;if(!C||C.isNetworkAvailable())return n.return(k.network.d0(W));_.So("att_pna",void 0,"attestation_challenge_fetch");return n.return(new Promise(function(N){C.listenOnce("publicytnetworkstatus-online",function(){k.network.d0(W).then(N)})}))})};
var n0E=function(W){if(!W)throw Error("ji");if(!W.challenge)throw Error("ki");var k=W.challenge,C=UR(k);if("c1a"in C&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("li");return Object.assign({},W,{dgS:k,zdT:C})},klC=function(W,k){var C,n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:C=void 0,n=0,N={};case 2:if(!(n<5)){w.jumpTo(4);break}if(!(n>0)){w.jumpTo(5);break}N.mRk=1E3*Math.pow(2,n-1)+Math.random()*1E3;return _.l(w,new Promise(function(x){return function(E){_.wI(_.aM,function(){E(void 0)},x.mRk)}}(N)),5);
case 5:return _.F0(w,7),_.l(w,W.d0(k),9);case 9:return B=w.yieldResult,w.return(n0E(B));case 7:C=A=_.EF(w),A instanceof Error&&_.zJ(A);case 8:n++;N={mRk:void 0};w.jumpTo(2);break;case 4:throw C;}})},PMT=function(W,k){W.uO=k},NPB=function(W){var k,C,n;
return _.F(function(N){if(N.nextAddress==1)return _.l(N,Promise.race([W.uO,null]),2);k=N.yieldResult;var B=KR1(W);W.uO=B;(C=k)==null||(n=C.sS)==null||n.dispose();_.ab(N)})},CBi=function(W,k){var C=Date.now()+k,n=function(){var N;
return _.F(function(B){N=C-Date.now();return N<1E3?_.l(B,NPB(W),0):(_.wI(_.aM,n,Math.min(N,6E4)),B.jumpTo(0))})};
n()},WD1=function(W,k){return new Promise(function(C){_.wI(_.aM,function(){C(k())},W)})};var YX$=function(){};
YX$.prototype.processContext=function(W){var k=_.gC.instance;if(!k)return _.vn();var C=i2m(W);return C?new p8(k.vpA(C,RLI(W),500).then(function(n){var N;(W==null?0:(N=W.innerTubeRequest)==null?0:N.context)||(W.innerTubeRequest.context={});N=W.innerTubeRequest.context;N.request||(N.request={});N.request.attestationResponseData=n})):_.vn()};var BPi=function(W){this.innertubeTransportService=W};
BPi.prototype.d0=function(W){_.So("att_fsr",void 0,"attestation_challenge_fetch");return _.DY(this.innertubeTransportService,W,_.RY(_.NLA)).then(function(k){_.So("att_frr",void 0,"attestation_challenge_fetch");return k})};_.bU7=function(W){this.innertubeTransportService=W};var AUB=new _.Tc("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var FDC=function(){},x3C=function(W,k,C,n,N){var B=_.DE("YPC_MB_URL");
_.mz4(B).then(function(){wDu(B,W,k,C,n,N)})},wDu=function(W,k,C,n,N,B){try{var A=payments.business.integration,w=payments.business.integration.Style.create().withMaterialDesignStyle(),x=A.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.m("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle("windowConstrained"));B&&(x=x.usingCloseCallback(B));var E=C?C:_.DE("YPC_GB_LANGUAGE"),a=_.DE("SESSION_INDEX");A.bootstrap.fromPaymentsUrl(W);A.bootstrap.asMashupMode(x).usingGaiaIndex(a).usingLocale(E).usingStyle(w).usingDefaultActivityStatusChangeHandler().inStandaloneContext(A.standaloneContextAuthId.forGaia()).purchaseManager(k,function(X){n&&n(X)}).load(void 0,N)}catch(X){throw N&&N(X),_.dI(X),X;
}};var ldC=new _.Tc("PURCHASE_MANAGER_TOKEN");var t31=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(k){W.videos=k},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(k){W.recommendedVideos=k}}};
t31.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(k){return!!_.qZI(k)}).map(function(k){var C=_.qZI(k);
a:{var n;if(k.playlistVideoRenderer&&((n=k.playlistVideoRenderer)==null?0:n.voteSortTiebreaker))var N=k.playlistVideoRenderer.voteSortTiebreaker;else{if(_.z(k,jy)){var B;if(n=(N=_.z(k,jy))==null?void 0:(B=N.playlistItemData)==null?void 0:B.voteSortTiebreaker){N=n;break a}}N=""}}return{itemId:C,videoId:_.O2I(k),voteCount:_.LU3(k),voteSortTiebreaker:N}}),this.continuationsPresent=!!_.z(W[W.length-1],_.K6))};
var E06=function(W,k){return W.videos.findIndex(function(C){return C.itemId===k})},adA=function(W,k){return W.recommendedVideos.findIndex(function(C){return C.itemId===k})},XDu=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.f().resolve(_.uI).resolveCommand(W)};var fdC=function(){t31.apply(this,arguments)};
_.D(fdC,t31);
var bos=function(W,k,C,n){if(!W.parentElem)throw Error("qi");var N=E06(W,k);N===-1&&(N=adA(W,k),N=N!==-1?N+W.videos.length:-1);if(N===-1)throw Error("ri");var B=N>=W.videos.length?W.recommendedVideos[N-W.videos.length]:W.videos[N];B.voteCount=C;B.voteSortTiebreaker=Date.now().toString();N>=W.videos.length?W.recommendedVideos.splice(N-W.videos.length,1):W.videos.splice(N,1);var A=W.videos;for(var w=0,x=A.length-1;w<=x;){var E=Math.floor((w+x)/2);if(A[E].voteCount<B.voteCount)x=E-1;else if(A[E].voteCount>B.voteCount)w=
E+1;else{a:{var a=B.voteSortTiebreaker;var X=A[E].voteSortTiebreaker;if(a.length!==X.length)a=a.length>X.length;else{for(var d=0;d<a.length;d++){var V=a.charCodeAt(d),c=X.charCodeAt(d);if(V>c){a=!0;break a}if(V<c)break}a=!1}}a?x=E-1:w=E+1}}A=w;if(A===-1)throw Error("si");W.videos.splice(A,0,B);N!==A&&d3T(W,N,A,k,C,n)},d3T=function(W,k,C,n,N,B){var A,w=(A=W.parentElem)==null?void 0:A.children,x=Math.min(k,C),E=Math.max(k,C);
if(w)for(A=x;A<=E;A++)w[A].style.viewTransitionName="item-"+String(A);document.startViewTransition(function(){if(W.parentElem){var a=W.parentElem.children;if(!(!a||k<0||k>=a.length||C<0||C>=a.length)){var X=a[k];if(X){X.remove();W.showRefreshPill=C>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){a=a[C]||null;var d;(d=W.parentElem)==null||d.insertBefore(X,a)}_.Pe(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:C,itemId:n,newVoteCount:N,voteStatus:B,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(w)for(var a=
x;a<=E;a++)w[a].style.viewTransitionName="";
if(W.showRefreshPill)XDu(_.w8("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var X;if(X=a=(X=W.parentElem)==null?void 0:X.children[C])X=a.getBoundingClientRect(),a=X.bottom,X=!(X.top>=0&&a<=W.clientHeight);X&&(X=_.xQ(k>C?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(k-C)),XDu(X))}})};var D3A=function(W,k){var C=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):k&&(this.innertubeTransportServicePromise=k(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new el(3E3,function(n){return m3S(C,n)},0);
this.validateMiniAppVideoIdRateLimiter=new el(3E3,function(n){return zsA(C,n)},1)},K_B=function(W,k){W.JSC$14867_miniAppId=k;
W.reportMiniAppValueRateLimiter=new el(3E3,function(C){return m3S(W,C)},0);
W.validateMiniAppVideoIdRateLimiter=new el(3E3,function(C){return zsA(W,C)},1)},WRE=function(W,k){var C;
return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.reportMiniAppValueRateLimiter.call(k),2);C=n.yieldResult;return n.return([C,k])})},m3S=function(W,k){var C,n,N,B,A,w,x;
return _.F(function(E){switch(E.nextAddress){case 1:return _.l(E,W.innertubeTransportServicePromise,2);case 2:return C=E.yieldResult,n=_.RY(xCb),N=Date.now(),B={externalPostId:W.JSC$14867_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(N/1E3),nanos:Math.round(N%1E3*1E6)},intValue:""+k}},_.F0(E,3),_.l(E,_.DY(C,B,n),5);case 5:A=E.yieldResult;_.M7(E,4);break;case 3:throw w=_.EF(E),w;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("ti`"+
A.errorMetadata.status);if(x=A.userStatResult)return E.return(x);throw Error("ui");}throw Error("vi");}})},CME=function(W){var k,C,n,N,B;
_.F(function(A){switch(A.nextAddress){case 1:return _.l(A,W.innertubeTransportServicePromise,2);case 2:return k=A.yieldResult,C=_.RY(xCb),n={externalPostId:W.JSC$14867_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.F0(A,3),_.l(A,_.DY(k,n,C),5);case 5:N=A.yieldResult;_.M7(A,4);break;case 3:throw B=_.EF(A),B;case 4:if(N==null)throw Error("vi");if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("ti`"+N.errorMetadata.status);_.ab(A)}})};
D3A.prototype.flush=function(){var W=this;return _.F(function(k){return k.nextAddress==1?_.l(k,W.reportMiniAppValueRateLimiter.flush(),2):_.l(k,W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var kt7=function(W,k){return _.F(function(C){return C.nextAddress==1?_.l(C,W.validateMiniAppVideoIdRateLimiter.call(k),2):C.return(C.yieldResult)})},zsA=function(W,k){var C,n,N,B,A,w;
return _.F(function(x){switch(x.nextAddress){case 1:return _.l(x,W.innertubeTransportServicePromise,2);case 2:return C=x.yieldResult,n=_.RY(ndC),N={videoId:k},_.F0(x,3),_.l(x,_.DY(C,N,n),5);case 5:B=x.yieldResult;_.M7(x,4);break;case 3:throw A=_.EF(x),A;case 4:if(B){if("error"in B&&B.error)throw B.error;if(B.errorMetadata)throw Error("ti`"+B.errorMetadata.status);if(w=B.playabilityStatus)return x.return(w.status);throw Error("wi");}throw Error("vi");}})};
D3A[ic]=[_.qI(_.xZ),_.qI(scY)];var V3T=function(){this.clientData=new Map};
V3T.prototype.getData=function(W){return this.clientData.get(W)};var JU$=function(W){this.store=W};
JU$.prototype.handleResponse=function(W){(W=_.z(W.frameworkUpdates,pn))&&_.Ny(W,this.store)};
JU$[ic]=[_.ak];var cUC=new _.Tc("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var IdB={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 SXS=new _.Tc("ICON_SET_TOKEN"),M3E=new _.Tc("ICON_URL_PROVIDER_TOKEN"),QOE=new _.Tc("PREFETCH_ICONS_TOKEN"),pDT=new _.Tc("ICON_MAP_FN_TOKEN");var PW={},v0A=(PW.ACCESS_TIME="clock",PW.ACCOUNT_BOX="person_account",PW.ACCOUNT_BOX_CAIRO="person_account_cairo",PW.ACCOUNT_CIRCLE="person_circle",PW.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",PW.ACCOUNT_LINKED="account_link_success",PW.ACCOUNT_UNLINKED="account_link",PW.ADD_FRIEND="people",PW.ADD_TO_LIBRARY=rq("add"),PW.ADD_TO_PLAYLIST="add",PW.ADD_TO_QUEUE_TAIL="list_queue",PW.ADD_TO_REMOTE_QUEUE="list_music",PW.ADD_TO_WATCH_LATER="clock",PW.ADD_VIDEO_LINK="film_strip_add",PW.ALERT_WARN_RED="alert_triangle",
PW.ARROW_BACK="arrow_left",PW.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",PW.ARROW_DROP_DOWN="chevron_down",PW.ARROW_DROP_UP="chevron_up",PW.ARROW_FORWARD="arrow_right",PW.AUDIOTRACK="audio",PW.AUTO_AWESOME="sparkle",PW.AVATAR_ANONYMOUS="person_circle",PW.AVATAR_LOGGED_OUT="person_circle",PW.BACK="arrow_left",PW.BAR_CHART="bar_graph",PW.BLOCK="slash_circle_left",PW.BLOCK_USER="slash_circle_left",PW.BOOKMARK_BORDER="bookmark",PW.BREAKING_NEWS_ALT_1="article_alert",PW.BROADCAST_CAIRO="podcast_cairo",
PW.BUG_REPORT="bug",PW.CAMERA_ALT="camera",PW.CAMPAIGN="megaphone",PW.CANCEL="x_circle",PW.CAPTIONS="closed_caption",PW.CAST_OUTLINE="chromecast",PW.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",PW.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",PW.CHAT="message_bubble_left",PW.CHAT_BUBBLE="message_bubble_empty",PW.CHECK_BOX_OUTLINE_BLANK="box_empty",PW.CHECK_CIRCLE_OUTLINE="check_circle",PW.CHECK_CIRCLE_THICK="check_circle",PW.CLARIFY="article_clarify",PW.CLOSED_CAPTION_SELECTED="closed_caption",PW.CLOSE=
"x_mark",PW.CLOUD_UPLOAD="cloud_arrow_up",PW.COLLAPSE="chevron_up",PW.COLLAPSE_CAIRO="chevron_up_cairo",PW.COLLECTION="layers",PW.COLOR_LENS="palette",PW.COMMENT="message_bubble_right",PW.CONSENT_SHIELD="person_shield",PW.CONTENT_CUT="scissors",PW.CONTENT_CUT_CAIRO="scissors_cairo",PW.COURSE=_.m("web_enable_course_icon_update")?"creator_academy":"lightbulb",PW.COURSE_CAIRO=_.m("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",PW.CREATION_LIVE="radar_live",PW.CREATION_UPLOAD=
"my_videos",PW.CREATION_UPLOAD_RED="upload",PW.CREATOR_STUDIO="youtube_studio",PW.DELETE="trash_can",PW.DELETE_SWEEP="trash_can",PW.DESKTOP="laptop",PW.DISLIKE="thumb_down",PW.DISLIKE_SELECTED="thumb_down",PW.DISMISSAL="x_mark",PW.DISMISS_QUEUE="list_remove",PW.DOWN_ARROW="arrow_down",PW.DO_NOT_DISTURB="slash_circle_left",PW.DRAFT="paper_corner_folded",PW.DRAG_HANDLE="bars_2",PW.EDIT="pencil",PW.EMOJI="face_very_happy",PW.EMOJI_FLAGS="flag",PW.EMOJI_OBJECTS="lightbulb",PW.EMOJI_PEOPLE="face_very_happy",
PW.EMOJI_RECENT="clock",PW.EMPTY_HEART="heart",PW.EMPTY_LIKE="thumb_up",PW.ERROR_BLACK="alert_circle",PW.ERROR_OUTLINE="alert_circle",PW.EXIT_APP="arrow_in",PW.EXIT_TO_APP="arrow_in",PW.EXPAND="chevron_down",PW.EXPAND_ALL="chevron_expand",PW.EXPAND_CAIRO="chevron_down_cairo",PW.EXPAND_LESS="chevron_up",PW.EXPAND_MORE="chevron_down",PW.EXPLORE="compass",PW.EXPLORE_DESTINATION="compass",PW.EXTERNAL_LINK="open_new",PW.FAB_UPLOAD="upload",PW.FACE_HAPPY_OUTLINE="face_happy",PW.FACT_CHECK="article_check",
PW.FASHION_LOGO="fashion",PW.FASHION_LOGO_CAIRO="fashion_cairo",PW.FAVORITE="heart",PW.FEEDBACK="message_bubble_alert",PW.FEEDBACK_CAIRO="message_bubble_alert_cairo",PW.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",PW.FILL_ARROW_SOLID_UP_16="arrow_solid_up",PW.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",PW.FLAG="flag",PW.FULL_HEART="heart",PW.GAME_CONSOLE_DPAD="game_console_dpad",PW.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",PW.GAMING_LOGO="gaming",PW.GAMING_LOGO_CAIRO="gaming_cairo",PW.GO_TO_PAGE=
"arrow_right",PW.GROUPS="people_group",PW.HAPPY="face_happy",PW.HEALTH_AND_SAFETY="shield_plus",PW.HELP="question_circle",PW.HELP_CAIRO="question_circle_cairo",PW.HELP_OUTLINE="question_circle",PW.HIDE="slash_circle_left",PW.IMAGE="image",PW.INFINITY_ICON="infinity",PW.INFO="info_circle",PW.INFO_OUTLINE="info_circle",PW.INSERT_CHART_OUTLINED="bar_graph_box_vertical",PW.INSERT_PHOTO="image",PW.KEEP="pin",PW.KEEP_OFF="pin_off",PW.KEYBOARD="keyboard",PW.KEYBOARD_ARROW_DOWN="chevron_down",PW.KEYBOARD_ARROW_UP=
"chevron_up",PW.KIDS_BLOCK="slash_circle_left",PW.LANGUAGE="globe",PW.LAUNCH="open_new",PW.LEARNING="lightbulb",PW.LEARNING_CAIRO="lightbulb_cairo",PW.LIBRARY_ADD=rq("library_add"),PW.LIBRARY_OUTLINE="library",PW.LIBRARY_REMOVE=rq(),PW.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",PW.LIKES_PLAYLIST="thumb_up",PW.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",PW.LIKE="thumb_up",PW.LIKE_SELECTED="thumb_up",PW.LIVE="radar_live",PW.LIVE_CAIRO="radar_live_cairo",PW.LIVE_UNLISTED="link",PW.LOCATION_ON="location_point",
PW.LOCATION_PIN="location_point",PW.LOOP="arrow_repeat",PW.LOOP_ACTIVE="arrow_repeat",PW.LOOP_ONE="arrow_repeat_1",PW.LOOP_ONE_ACTIVE="arrow_repeat_1",PW.MEH="face_meh",PW.MEMBERS_ONLY_MODE_OFF="message_bubble_left",PW.MESSAGE="message_bubble_left",PW.MICROPHONE_ON="mic",PW.MIX="youtube_mix",PW.MONETIZATION_ON="dollar_sign_circle",PW.MONEY_FILL="dollar_sign_container",PW.MONEY_FILL_JPY="yen_sign_container",PW.MONEY_HEART="dollar_sign_heart",PW.MORE_HORIZ="overflow_horizontal",PW.MORE_VERT="overflow_vertical",
PW.MUSIC="audio",PW.MUSIC_CAIRO="audio_cairo",PW.MUSIC_NOTE_SYMBOL="music",PW.MUSIC_SHUFFLE="arrow_shuffle",PW.MY_CHANNEL="person_circle",PW.MY_LOCATION="location_point",PW.NEWS_STORY="news",PW.NEXT="chevron_right",PW.NOTIFICATIONS="bell",PW.NOTIFICATIONS_ACTIVE="bell_on",PW.NOTIFICATIONS_CAIRO="bell_cairo",PW.NOTIFICATIONS_DONE_CHECKMARK="check",PW.NOTIFICATIONS_INBOX="bell",PW.NOTIFICATIONS_NONE="bell",PW.NOTIFICATIONS_OFF="bell_off",PW.NOT_INTERESTED="slash_circle_left",PW.OFFICIAL_ARTIST_BADGE=
"audio",PW.OFFLINE_CLOUD="cloud_off",PW.OFFLINE_DOWNLOAD="download",PW.OFFLINE_DOWNLOAD_CAIRO="download_cairo",PW.OFFLINE_PAUSE="pause",PW.OPEN_IN_NEW="open_new",PW.OUTLINE_ADJUST="adjust",PW.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",PW.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",PW.OUTLINE_BAG="bag",PW.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",PW.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",PW.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",PW.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
PW.PAID="dollar_sign",PW.PAUSE_OUTLINED="pause",PW.PAYMENT="credit_card",PW.PERSON_RADAR_FILLED="person_radar",PW.PHONE_DOWNLOAD="mobile_download",PW.PLAYABLES_LOGO="tic_tac_toe",PW.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",PW.PLAYLISTS="list_play_arrow",PW.PLAYLISTS_CAIRO="list_play_arrow_cairo",PW.PLAYLIST_ADD=rq("list_add"),PW.PLAYLIST_ADD_CHECK=rq("list_check"),PW.PLAY_ALL="play_arrow",PW.PLAY_CIRCLE="play_arrow_circle",PW.PLAY_OUTLINED="play_arrow_circle",PW.PRIVACY_INFO="shield",PW.PRIVACY_PRIVATE=
"lock",PW.PRIVACY_PUBLIC="earth",PW.PRIVACY_UNLISTED="link",PW.PROMOTE="megaphone",PW.PURCHASES="price_tag",PW.PURCHASE_SUPER_CHAT="super_chat",PW.PURCHASE_SUPER_STICKER="super_sticker",PW.QUESTION_ANSWER="message_bubble_question",PW.QUEUE_PLAY_LAST="list_queue_last",PW.QUEUE_PLAY_NEXT="list_play_arrow",PW.REMIX_FILLED="youtube_shorts_remix",PW.REMOVE="bar_circle",PW.REMOVE_CIRCLE="bar_circle",PW.REMOVE_CIRCLE_OUTLINE="bar_circle",PW.REMOVE_FROM_HISTORY="bar_circle",PW.REMOVE_FROM_PLAYLIST="bar_circle",
PW.REPLAY="arrow_circle",PW.REPORT_PROBLEM="alert_triangle",PW.SAD="face_sad",PW.SAVE_PLAYLIST=rq("library_add"),PW.SCHEDULE="clock",PW.SCHOOL="creator_academy",PW.SCREEN_FULLSCREEN="screen_full",PW.SEARCH_HISTORY="arrow_time",PW.SELL="price_tag",PW.SETTINGS="gear",PW.SETTINGS_CAIRO="gear_cairo",PW.SETTINGS_LIGHT="gear",PW.SETTINGS_MATERIAL="gear",PW.SHARE_ARROW="share",PW.SHIELD_WITH_AVATAR="person_shield",PW.SHOPPING_BAG="bag",PW.SHOPPING_BAG_CAIRO="bag_cairo",PW.SHOPPING_CART="cart",PW.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",PW.SHORTS_DISLIKE="youtube_shorts_thumb_down",PW.SHORTS_LIKE="youtube_shorts_thumb_up",PW.SHORTS_SHARE="youtube_shorts_share",PW.SHUFFLE="arrow_shuffle",PW.SLOW_MODE_OFF="message_bubble_left",PW.SOCIAL="people",PW.SORT="menu_sort",PW.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",PW.SPEED_1X="1x",PW.SPEED_1_POINT_2X="1_point_2x",PW.SPEED_1_POINT_5X="1_point_5x",PW.SPEED_1_POINT_8X="1_point_8x",PW.SPEED_2X="2x",PW.SPEED_POINT_2X="point_2x",PW.SPEED_POINT_8X="point_8x",
PW.SPONSORSHIP_STAR=_.m("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",PW.STAFF_PICK="spotlight",PW.START_DVR="add",PW.STAR_BORDER="star",PW.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",PW.STICKER_EMOTICON="face_happy",PW.STOP_DVR="stop",PW.SUBSCRIBE="youtube_logo_icon",PW.SUBSCRIBE_PLUS="add_cairo",PW.SUBSCRIPTION_MANAGER="gear",PW.SUPERVISOR_ACCOUNT="people",PW.SWAP_HORIZ="arrow_swap_horizontal",PW.SWITCH_ACCOUNTS="person_account",PW.TAB_ACCOUNT="person",PW.TAB_ACTIVITY=
"bell",PW.TAB_EXPLORE="compass",PW.TAB_HOME="home",PW.TAB_HOME_CAIRO="home_cairo",PW.TAB_INBOX="mail",PW.TAB_LIKED="thumb_up",PW.TAB_MUSIC_PREMIUM="youtube_music",PW.TAB_SHORTS="youtube_shorts",PW.TAB_SHORTS_CAIRO="youtube_shorts_cairo",PW.TAB_SUBSCRIPTIONS="subscriptions",PW.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",PW.TAB_TRENDING="fire",PW.TIMER="stopwatch",PW.TRENDING="fire",PW.TRENDING_CAIRO="fire_cairo",PW.TRENDING_UP="rating_up",PW.TROPHY="trophy",PW.TROPHY_CELEBRATIONS="fireworks",PW.TUNE=
"adjust",PW.UNBLOCK_USER="bar_circle",PW.UNLIMITED="youtube_logo_icon",PW.UNPLUGGED_LIVE_GUIDE="radar_live",PW.UNPLUGGED_SPORTS="eye_off",PW.UPLOADS="library",PW.UP_ARROW="arrow_up",PW.VERTICAL_ALIGN_BOTTOM="download",PW.VERY_HAPPY="face_very_happy",PW.VERY_SAD="face_very_sad",PW.VIDEOS="play_arrow_circle",PW.VIDEO_CALL="video_camera_add",PW.VIDEO_LIBRARY_WHITE="library",PW.VIDEO_YOUTUBE="youtube_logo_icon",PW.VIEW_LIST="list_view",PW.VIEW_LIST_CAIRO="list_view_cairo",PW.VISIBILITY="eye",PW.VISIBILITY_OFF=
"eye_off",PW.VOLUME_MUTE="volume_off",PW.VOLUME_UP="volume_on",PW.WALLPAPER="image",PW.WARNING="alert_triangle",PW.WATCH_HISTORY="arrow_time",PW.WATCH_HISTORY_CAIRO="arrow_time_cairo",PW.WATCH_LATER="clock",PW.WATCH_LATER_CAIRO="clock_cairo",PW.WATCH_RELATED_MIX="youtube_mix",PW.WHAT_TO_WATCH="home",PW.YOUTUBE_MUSIC_MONOCHROME="youtube_music",PW.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",PW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",PW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",PW.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",PW.YT_OUTLINE_MUSIC_24="music",PW);var esT={},sO$=(esT.TAB_SHORTS="youtube_shorts",esT.TAB_SHORTS_CAIRO="youtube_shorts",esT.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",esT);var Gl7={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],
[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,
2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,
6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,
2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,
2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,
2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,
14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,
6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],
person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],
[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,
1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,
1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],
share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],
shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,
3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,
4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],
stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,
1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,
1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,
6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,
2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,
2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var yUC={youtube_shorts:[[0,10,24],[1,10,24]]};var KJ=function(W){this.iconUrlProvider=W};
KJ.prototype.resolveIcon=function(W,k){var C=W.iconName;C=C.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(C)||C.toLowerCase()});if(_.m("enable_web_delhi_icons")){var n;return H23(yUC,W,((n=this.iconUrlProvider)==null?void 0:n.getYtStandardUrl)||Pxm,k)}var N;return H23(Gl7,W,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||gPw,k)};
KJ.prototype.mapIconTypeToStandardName=function(W){return _.m("enable_web_delhi_icons")?sO$[W.toUpperCase()]:v0A[W.toUpperCase()]};
KJ[ic]=[_.qI(M3E)];var $3E=function(W){this.urlProvider=this.iconUrlProvider=W};
_.D($3E,KJ);
$3E.prototype.resolveIcon=function(W,k){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var C=Object.assign({},W);W.iconName==="menu"&&(C.iconName="bars_3",C.iconStyle="youtube_outline");W.iconName==="youtube_music"&&(C.iconStyle="youtube_fill");W.iconName==="mail"&&W.iconSetName==="socialNetworksRound"&&(C.iconName="email");W.iconName==="more"&&(C.iconName="overflow_horizontal");W.iconName===
"fullscreen"&&(C.iconName="screen_full");if(W.iconName==="play_all"||W.iconName==="play_arrow")C.iconStyle="youtube_fill";W.iconName==="premium_standalone"&&(C.iconName="premium_standalone_cairo");_.m("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(C.iconName="circles_overlap_check",C.iconStyle="youtube_fill");_.m("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(C.iconName="circles_overlap",C.iconStyle="youtube_outline");W=Object.assign({},C,{iconName:(KJ.prototype.mapIconTypeToStandardName.call(this,
C.iconName)||C.iconName).toLowerCase()});var n;return(W=H23(IdB,W,((n=this.urlProvider)==null?void 0:n.getUrl)||KUJ,k))?W:KJ.prototype.resolveIcon.call(this,C,k)};
$3E[ic]=[_.qI(M3E)];_.ZUZ=1;var hI=function(){};
_.D(hI,o_);hI.prototype.resolveCommand=function(W){var k,C;return _.F(function(n){k=_.z(W,luZ);if(!k)return n.return();C=Number(k.enableDelayedPacfLoggingTvMs);if(isNaN(C)){var N=dp();CnS(N,k,0)}else CnS(dp(),k,C);_.ab(n)})};_.Ws=function(){};
_.D(_.Ws,o_);
_.Ws.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E;return _.F(function(a){n=_.z(W,tZC);B=(N=k.form)==null?void 0:N.element;w=(A=B)==null?void 0:A.closest("ytd-enforcement-message-view-model");if(!n||!w)return a.return();C.allowAdsAction||(x=n.fundingChoiceInstructionPageUrl,C.allowAdsAction=new OSA(window,_.XE(x)));var X=C.allowAdsAction;X.wallElement=w;X.allowAdsPopup.style.setProperty("display","flex","important");var d=X.scrollManager;d.originalBodyOverflow=d.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow;d.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=
"hidden";X.wallElement.style.setProperty("display","none","important");CI8(X.accessibilityManager,X.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((E=C.allowAdsAction.allowAdsPopup)&&E instanceof HTMLElement)for(X=_.b(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),d=X.next();!d.done;d=X.next()){var V=_.b(d.value);d=V.next().value;V=V.next().value;E.style.setProperty(d,V)}_.ab(a)})};
_.Ws.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var km=function(){};
_.D(km,o_);km.prototype.resolveCommand=function(W){var k;return _.F(function(C){k=_.z(W,E7I);if(!k)return C.return();Stc(W);_.ab(C)})};var Cd=function(W){this.JSC$14906_commandHandler=W};
_.D(Cd,o_);
Cd.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1){C=_.z(W,Uns);if((n=C)==null||!n.text||!navigator.clipboard)return a.return();_.F0(a,2);return _.l(a,navigator.clipboard.writeText(C.text),4)}if(a.nextAddress!=2){if(!C.successActions||C.successActions.length===0)return a.return();N=_.b(C.successActions);for(B=N.next();!B.done;B=N.next())A=B.value,k.JSC$14906_commandHandler.resolveCommand(A);return _.M7(a,0)}_.EF(a);if(!C.failureActions||C.failureActions.length===
0)return a.return();w=_.b(C.failureActions);for(x=w.next();!x.done;x=w.next())E=x.value,k.JSC$14906_commandHandler.resolveCommand(E);_.ab(a)})};
Cd[ic]=[_.uI];var nd=function(W){this.JSC$14910_commandHandler=W};
_.D(nd,o_);
nd.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d;return _.F(function(V){switch(V.nextAddress){case 1:n=_.z(W,D$x);if(!n)return V.return();_.F0(V,2);if(!n.imageBytes&&!n.imageUrl)throw Error("xi");if(!n.imageUrl){if(n.imageBytes){B=n.imageBytes;A=B.replace(/-/g,"+").replace(/_/g,"/");var c=Wqw(A);N=_.pL(c)}V.jumpTo(4);break}return _.l(V,fetch(n.imageUrl),5);case 5:return w=V.yieldResult,_.l(V,w.blob(),6);case 6:x=V.yieldResult,N=_.pL(x);case 4:X=(E=k)==null?void 0:(a=E.form)==
null?void 0:a.element;d=document.createElement("a");Gi(d,N);X.appendChild(d);d.download="";d.click();X.removeChild(d);URL.revokeObjectURL(_.VG(N));n.successCommand&&C.JSC$14910_commandHandler.resolveCommand(n.successCommand);_.M7(V,0);break;case 2:_.EF(V),n.errorCommand&&C.JSC$14910_commandHandler.resolveCommand(n.errorCommand),_.ab(V)}})};
nd[ic]=[_.uI];var N1=function(W){this.store=W};
_.D(N1,o_);N1.prototype.resolveCommand=function(W){var k=this,C,n,N;return _.F(function(B){n=(C=_.z(W,_.YOb))==null?void 0:C.entityBatchUpdate;if(!n)return B.jumpTo(0);N=Object.assign({},n,{mutations:[].concat(_.J8(n.mutations||[]))});return _.l(B,_.Ny(N,k.store),0)})};var RsE=function(W){this.JSC$14917_commandHandler=W;this.feedbackDialogMap=new Map};
RsE.prototype.openDialog=function(W,k){(W=this.feedbackDialogMap.get(W))&&this.JSC$14917_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},k)};
RsE[ic]=[_.uI];var Ym=new _.Tc("FEEDBACK_CONTROLLER_TOKEN");var Bs=new _.Tc("APP_STORE_TOKEN");var bv=function(W,k){this.store=W;this.controller=k};
_.D(bv,o_);bv.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h;return _.F(function(L){if(L.nextAddress==1){n=_.z(W,_.I5);if(B=(N=n)==null?void 0:N.contentId)for(w=_.b(((A=n)==null?void 0:A.actions)||[]),x=w.next();!x.done;x=w.next())E=x.value,o0t(C,E,B);d=(a=k)==null?void 0:(X=a.form)==null?void 0:X.element;return _.l(L,_.kQ(d,[W]).catch(function(){}),2)}V=L.yieldResult;
((c=V)==null?0:(M=c.data)==null?0:(p=M.feedbackResponses)==null?0:p.length)&&(u=(e=V.data.feedbackResponses[0])==null?void 0:e.followUpDialog)&&B&&(h=C.controller)!=null&&h.feedbackDialogMap.set(B,u);_.ab(L)})};
var o0t=function(W,k,C){var n=_.z(k,_.Nl);if(n){n=_.b(n.commands||[]);for(var N=n.next();!N.done;N=n.next())o0t(W,N.value,C)}_.z(k,_.F5)&&W.store.dispatch(_.Nj("commandEntity",Mbp(C),{key:C,command:k}));_.z(k,wS8)&&W.store.dispatch(_.Nj("commandEntity",Mbp(C),{key:C,command:k}))};
bv[ic]=[Bs,Ym];var AL=function(W){this.controller=W};
_.D(AL,o_);AL.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A;return _.F(function(w){n=_.z(W,_.MP);B=(N=n)==null?void 0:N.targetId;if(((A=n)==null?void 0:A.signal)!=="TELL_US_WHY"||!B)return w.return();C.controller.openDialog(B,k);_.ab(w)})};
AL[ic]=[Ym];var FX=function(W){this.store=W};
_.D(FX,o_);FX.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E;return _.F(function(a){n=_.z(W,BGc);B=(N=n)==null?void 0:N.contentId;x=(A=k)==null?void 0:(w=A.form)==null?void 0:w.element;E=_.kQ(x,[W]);B&&C.undo(B);return _.l(a,E,0)})};
FX.prototype.undo=function(W){this.store.dispatch(_.Nj("commandEntity",Mbp(W),{key:W,command:void 0}))};
FX[ic]=[Bs];var we=function(W){this.JSC$14932_commandHandler=W};
_.D(we,o_);we.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E;return _.F(function(a){C=_.z(W,DFb);n=C.flowStateKey;N=C.validationFailureCommand;B=C.submitValidFormCommand;A=Ms(_.HG,[n||""]);w=_.z(A,JkI);((x=w)==null?0:x.isValid)&&B&&k.JSC$14932_commandHandler.resolveCommand(B);((E=w)==null?0:E.isValid)||!N||k.JSC$14932_commandHandler.resolveCommand(N);_.ab(a)})};
we[ic]=[_.uI];var xm=function(W){this.innertubeTransportService=W};
_.D(xm,o_);xm.prototype.resolveCommand=function(W,k){var C=this,n;return _.F(function(N){return _.l(N,_.Sr(C.innertubeTransportService,W,(n=k)==null?void 0:n.form).then(function(B){var A,w;k==null||(A=k.commandController)==null||(w=A.onSuccess)==null||w.call(A,W,B)},function(B){var A,w;
k==null||(A=k.commandController)==null||(w=A.onServerError)==null||w.call(A,W,B)}),0)})};
xm[ic]=[_.xZ];var lv=function(){};
_.D(lv,o_);lv.prototype.resolveCommand=function(W){var k,C,n,N;return _.F(function(B){if(k=_.z(W,_.a18)){if(C=k.gtmId)n=_.DE("GL",""),_.YD(C,n);(N=k.gtmData)&&_.BR(N)}_.ab(B)})};var tL=function(W,k){this.innertubeTransportService=W;this.JSC$14943_actionRouter=k};
_.D(tL,o_);tL.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){C=_.z(W,GqC);if(!C)return N.return();n=C.command;if(!n)return N.return();k.JSC$14943_actionRouter.triggerAction("yt-insert-rich-section-action",C);return _.l(N,_.Sr(k.innertubeTransportService,n,{disableCache:!0}),0)})};
tL[ic]=[_.xZ,$k];CCc.bind(null,ii);var iU7=CCc.bind(null,bb8);Nrm.bind(null,ii);var TP7=Nrm.bind(null,bb8);bwJ.bind(null,ii);var qXi=bwJ.bind(null,bb8);var Ef=function(){};
_.D(Ef,o_);
Ef.prototype.resolveCommand=function(W){var k,C,n,N,B,A,w,x,E,a;return _.F(function(X){k=_.z(W,Feb);if(!k)return X.return();n=((C=k.operations)==null?void 0:C.operations)||[];N=_.b(n);for(B=N.next();!B.done;B=N.next())if(A=B.value,A.insertItemSectionContent){var d=A.insertItemSectionContent,V=d.contents||[];d.insertByPositionInSection?iU7(d.insertByPositionInSection.sectionTargetId,V,d.insertByPositionInSection.position):d.insertByRelativePositionInSection&&d.insertByRelativePositionInSection.sectionTargetId&&d.insertByRelativePositionInSection.itemTargetId&&
TP7(d.insertByRelativePositionInSection.sectionTargetId,d.insertByRelativePositionInSection.itemTargetId,V,d.insertByRelativePositionInSection.relativePosition)}else A.replaceSection?(d=A.replaceSection,V={},d.replaceByTargetId?V=d.replaceByTargetId:d.replaceByGroupId&&(V={targetId:d.replaceByGroupId.groupId,newContent:d.replaceByGroupId.newContent,undoKey:""}),V.newContent&&wub(V.targetId,{continuationItems:[V.newContent]})):A.removeItem?(d=A.removeItem,d.removeByTargetId&&d.sectionTargetId&&qXi(d.sectionTargetId,
d.removeByTargetId.targetIds||[])):A.removeSection&&(A.removeSection.removeByTargetId?(w=void 0,uRZ(((w=A.removeSection)==null?void 0:w.removeByTargetId.targetIds)||[])):A.removeSection.removeByGroupId&&(x=void 0,uRZ(((x=A.removeSection)==null?void 0:x.removeByGroupId.groupIds)||[])));a=((E=k.operations)==null?void 0:E.scrollConfig)||{};U37(a);_.ab(X)})};
var uRZ=function(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next())wub(k.value,{continuationItems:[]})},U37=function(W){if(W.scrollToItem){var k=W.scrollToItem.item||{},C=k.itemTargetId;
k=k.sectionTargetId;if(C&&k){var n=document.querySelector("[data-target-id="+k+"]"),N=n==null?void 0:n.querySelector("[data-target-id="+C+"]");n&&N&&setTimeout(function(){var B=N.offsetTop-n.offsetTop,A;if(((A=W.scrollToItem)==null?void 0:A.scrollPosition)==="SCROLL_POSITION_CENTER")B-=n.offsetHeight/2,B+=N.offsetHeight/2;else{var w;((w=W.scrollToItem)==null?void 0:w.scrollPosition)==="SCROLL_POSITION_END"&&(B-=n.offsetHeight,B+=N.offsetHeight)}n.scroll({top:B,behavior:"smooth"})},100)}}};var am=new _.Tc("CLIENT_NAME_TOKEN");var OU6=new _.Tc("DEFAULT_STORE_EXPIRATION_TOKEN");var Jx4=new _.Tc("CLIENT_LOCATION_SERVICE_TOKEN");var XX=function(W,k,C){this.clientName=W||_.DE("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=k||_.I8.getInstance();this.JSC$14971_commandHandler=C||_.gH.instance};
_.D(XX,o_);XX.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){n=(C=_.z(W,EMC))==null?void 0:C.onComplete;k.clientLocationService.clearLocationPlayabilityToken(k.clientName);n&&k.JSC$14971_commandHandler.resolveCommand(n);_.ab(N)})};
XX[ic]=[am,Jx4,_.uI];var fd=function(W){this.innertubeTransportService=W};
_.D(fd,o_);fd.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A;return _.F(function(w){B=(n=k)==null?void 0:(N=n.form)==null?void 0:N.element;return _.l(w,_.Sr(C.innertubeTransportService,W,(A=k)==null?void 0:A.form).then(function(x){yg2(B,new CustomEvent("yt-service-request-completed"),{data:x},_.DE("openPopupConfig"))}),0)})};
fd[ic]=[_.xZ];var de=function(){};
_.D(de,o_);de.prototype.resolveCommand=function(W){var k,C;return _.F(function(n){k=_.z(W,MFb);C=document.querySelector("mini-app-container-view-model");if(!k||!C)return n.return();k.isPlaying?C.dispatchEvent(new Event("play")):C.dispatchEvent(new Event("pause"));_.ab(n)})};var LDY=function(){this.dropdownMap=new Map};_.jOt=new _.Tc("DROPDOWN_CONTROLLER_TOKEN");var mz=function(W){this.controller=W};
_.D(mz,o_);mz.prototype.resolveCommand=function(W){var k=this,C,n,N,B;return _.F(function(A){C=_.z(W,U$8);if(!C)return A.return();n=C;N=n.dropdownId;B=n.selectedOptionIndex;if(N===void 0||B===void 0)return A.return();var w=k.controller.dropdownMap.get(N);w&&w(B);_.ab(A)})};
mz[ic]=[_.jOt];var zL=function(W){this.controller=W};
_.D(zL,o_);zL.prototype.resolveCommand=function(W){var k=this,C;return _.F(function(n){return(C=_.z(W,Vzs))?_.l(n,k.controller.closeDialog(),0):n.return()})};
zL[ic]=[_.E1];var D4=function(W){this.controller=W};
_.D(D4,o_);D4.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){C=_.z(W,CF8);if(!C)return N.return();var B,A=C.panelIdentifier||((B=C.identifier)==null?void 0:B.tag);if(!A)throw Error("yi");return(n=A)?_.l(N,k.controller.hidePanel(n),0):N.jumpTo(0)})};
D4[ic]=[_.lj];var Vx=function(W,k){this.innertubeTransportService=W;this.controller=k};
_.D(Vx,o_);Vx.prototype.resolveCommand=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return C=_.z(W,nqC),(n=C)!=null&&n.panelId?_.l(A,k.controller.getReloadContinuation(C.panelId),2):A.return();if(A.nextAddress!=3)return(N=A.yieldResult)?_.l(A,_.Sr(k.innertubeTransportService,W,{continuation:N}),3):A.return();B=A.yieldResult;return _.l(A,k.controller.updatePanel(C.panelId,B.content,!1),0)})};
Vx[ic]=[_.xZ,_.lj];var JL=function(W,k,C){this.innertubeTransportService=W;this.JSC$15004_screenManager=k;this.JSC$15004_commandHandler=C};
_.D(JL,o_);
JL.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1){C=_.z(W,_.jvC);if(!C)return x.return();if(C.commands)for(n=_.b(C.commands),N=n.next();!N.done;N=n.next())B=N.value,k.JSC$15004_commandHandler.resolveCommand(B,{disableClickTracking:!0});A=_.Yf(W.clickTrackingParams);_.jC(k.JSC$15004_screenManager,21760,A,{layer:7,parentLayer:0});return _.l(x,_.Sr(k.innertubeTransportService,W),2)}w=x.yieldResult;if(!w)return x.return();k.JSC$15004_screenManager.graftServerVe(w.trackingParams,A,
7);_.ab(x)})};
JL[ic]=[_.xZ,_.nR,_.uI];var cs=new _.Tc("PANEL_LOADING_STRATEGY_TOKEN");var Im=function(W,k){this.controller=W;this.panelLoadingStrategy=k};
_.D(Im,o_);
Im.prototype.resolveCommand=function(W,k){var C=this,n,N,B;return _.F(function(A){n=_.z(W,$$2);if((N=n)==null||!N.panelLoadingStrategy)return A.return();B=function(w){var x,E,a,X,d,V,c,M,p;return _.F(function(e){E=_.z((x=w.dialogViewModel)==null?void 0:x.header,OEx);a={viewModel:w.dialogViewModel};X={};if(c=_.m("web_enable_dialog_header_label")?(d=E)==null?void 0:(V=d.headline)==null?void 0:V.content:void 0)X.ariaLabel=c;n.dismissOnBackgroundTap===!1&&(X.isModal=!0);return w.dialogViewModel?_.l(e,
C.controller.openDialog(a,(M=k)==null?void 0:(p=M.form)==null?void 0:p.element,X),0):e.return()})};
return _.l(A,C.panelLoadingStrategy.execute({command:W,data:n.panelLoadingStrategy,renderFn:B,createScreenConfig:{layer:4}}),0)})};
Im[ic]=[_.E1,cs];var SG=function(W,k,C){this.innertubeTransportService=W;this.controller=k;this.JSC$15024_screenManager=C};
_.D(SG,o_);
SG.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c;return _.F(function(M){switch(M.nextAddress){case 1:n=_.z(W,_.cq);if(!n)return M.return();var p,e=n.panelIdentifier||((p=n.identifier)==null?void 0:p.tag);if(!e)throw Error("yi");N=e;return _.l(M,C.controller.isVisible(N,!0),2);case 2:if((B=M.yieldResult)&&n.blockIfPanelOpen)return M.return();x=(w=(A=C.controller).getPanelContent)==null?void 0:w.call(A,N);if(!(p=x))if(n){var u;p=((u=n.globalConfiguration)==null?void 0:u.initialState)||
n.engagementPanel;if(u=!p)u=!!(n==null?0:(e=n.engagementPanelPresentationConfigs)==null?0:e.engagementPanelPopupPresentationConfig);u&&(p=_.A1X(n.panelIdentifier,n.identifier))}else p=void 0;E=p;a=n.engagementPanelPresentationConfigs;X=n.engagementPanelExtras;return _.l(M,C.controller.showPanel(N,E,a,X,(d=k)==null?void 0:(V=d.form)==null?void 0:V.element),3);case 3:if(!n.globalConfiguration){M.jumpTo(0);break}_.jC(C.JSC$15024_screenManager,32633);return _.l(M,_.Sr(C.innertubeTransportService,W),5);
case 5:return c=M.yieldResult,C.JSC$15024_screenManager.graftServerVe(c.trackingParams),_.l(M,C.controller.updatePanel(N,c.content,!0,X,void 0,c.updatePanelContinuationData),0)}})};
SG[ic]=[_.xZ,_.lj,_.nR];var M1=function(W,k){this.controller=W;this.panelLoadingStrategy=k};
_.D(M1,o_);M1.prototype.resolveCommand=function(W,k){var C=this,n,N,B;return _.F(function(A){n=_.z(W,_.Yj);if((N=n)==null||!N.panelLoadingStrategy)return A.return();B=function(w){var x,E;return _.F(function(a){return w.sheetViewModel?_.l(a,C.controller.openSheet({viewModel:w.sheetViewModel},(x=k)==null?void 0:(E=x.form)==null?void 0:E.element),0):a.return()})};
return _.l(A,C.panelLoadingStrategy.execute({command:W,data:n.panelLoadingStrategy,renderFn:B,createScreenConfig:{layer:0}}),0)})};
M1[ic]=[_.tZ,cs];var Qx=function(W,k){this.controller=W;this.JSC$15032_commandHandler=k};
_.D(Qx,o_);Qx.prototype.resolveCommand=function(W,k){var C=this,n,N,B;return _.F(function(A){if(A.nextAddress==1){n=_.z(W,bTA);var w=_.z(n.showCommand,_.cq),x,E,a=(E=w==null?void 0:w.panelIdentifier)!=null?E:w==null?void 0:(x=w.identifier)==null?void 0:x.tag;if(!a)throw Error("zi");N=a;return _.l(A,C.controller.isVisible(N),2)}return(B=A.yieldResult)?_.l(A,C.controller.hidePanel(N),0):_.l(A,C.JSC$15032_commandHandler.resolveCommand(n.showCommand,k),0)})};
Qx[ic]=[_.lj,_.uI];var pd=function(W,k,C){this.innertubeTransportService=W;this.controller=k;this.JSC$15035_screenManager=C};
_.D(pd,o_);
pd.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz;return _.F(function(Sp){switch(Sp.nextAddress){case 1:return n=C=_.z(W,AT8),N=n.targetPanelIdentifier,B=n.contentSourcePanelIdentifier,A=n.globalConfiguration,((w=N)==null?0:w.tag)&&((x=B)==null?0:x.tag)?A?_.l(Sp,k.controller.showPanel(N.tag,_.A1X(N.tag,N),void 0,void 0,void 0),5):_.l(Sp,(d=(X=k.controller).getPanel)==null?void 0:d.call(X,B.tag),4):Sp.return();case 4:V=Sp.yieldResult;E=(c=V)==null?void 0:
(p=(M=c).getPanelContent)==null?void 0:p.call(M);Sp.jumpTo(3);break;case 5:return _.l(Sp,_.Sr(k.innertubeTransportService,W),6);case 6:e=Sp.yieldResult,((u=e)==null?0:u.trackingParams)&&k.JSC$15035_screenManager.graftServerVe(e.trackingParams),E=(h=e)==null?void 0:h.content,a=(L=e)==null?void 0:L.updatePanelContinuationData;case 3:if(P=(Bw=E)==null?void 0:Bw.engagementPanelSectionListRenderer)return _.l(Sp,k.controller.showPanel(N.tag,void 0,void 0,void 0,void 0,{content:P.content,secondaryHeaderContent:(xz=
P.header)!=null?xz:{},targetId:P.targetId},a),0);Sp.jumpTo(0)}})};
pd[ic]=[_.xZ,_.lj,_.nR];var vs=function(W,k){this.JSC$15043_commandHandler=W;this.store=k};
_.D(vs,o_);vs.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return(C=_.z(W,zM2))?_.l(w,_.HJ(),2):w.return();n=w.yieldResult;if(!n)return w.return();xz3(n,k.store,(N=C)==null?void 0:N.languageCode);B=n.isSubtitlesOn()?_.w8("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.w8("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");A=_.iO(B);k.JSC$15043_commandHandler.resolveCommand(A);_.ab(w)})};
vs[ic]=[_.uI,ns];var eG=function(W,k){this.shortsPlayerPromise=W;this.JSC$15047_commandHandler=k};
_.D(eG,o_);
eG.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return(C=_.z(W,ylS))?_.l(a,k.shortsPlayerPromise,2):a.return();n=a.yieldResult;var X=lG2(n);X!=null&&X.length||(n.loadModule("captions"),X=lG2(n));N=X;if((B=N)==null||!B.length)return A=_.w8("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.iO(A),k.JSC$15047_commandHandler.resolveCommand(w),a.return();n.toggleSubtitles();x=n.isSubtitlesOn()?_.w8("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.w8("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");E=_.iO(x);k.JSC$15047_commandHandler.resolveCommand(E);_.ab(a)})};
eG[ic]=[_.Nls,_.uI];var sf=function(W){this.JSC$15050_playerPromise=W};
_.D(sf,o_);sf.prototype.resolveCommand=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return(C=_.z(W,Y7S))?_.l(A,k.JSC$15050_playerPromise,2):A.return();n=A.yieldResult;N=n.getVideoData().video_id;C.videoId===N&&(B=Number(C.offsetFromVideoStartMilliseconds),B>=0&&n.seekTo(B/1E3));_.ab(A)})};
sf[ic]=[_.qE];var HUt=_.KB("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),GL=function(W){this.store=W};
_.D(GL,o_);
var rUE=function(W){var k,C,n,N;return _.F(function(B){if(B.nextAddress==1)return k=_.DE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,C=_.DE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,n=k||C,W.mainAppPlayer=new ee(n),_.l(B,W.mainAppPlayer.api,2);N=B.yieldResult;N.addEventListener("onStateChange",W.JSC$15054_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.pauseOnNavigation.bind(W));_.ab(B)})};
GL.prototype.JSC$15054_playerStateChangeListener=function(W){switch(W){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"}g06(this)};
var g06=function(W){W.store.dispatch(_.Nj("sfvAudioItemCurrentlyPlayingEntity",HUt,{key:HUt,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
GL.prototype.pauseOnNavigation=function(){var W=this,k,C,n,N;return _.F(function(B){if(B.nextAddress==1){if(!W.mainAppPlayer){var A=new _.AM("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.dI(A);return B.return()}return _.l(B,W.mainAppPlayer.api,2)}k=B.yieldResult;n=(C=k)==null?void 0:C.getPlayerState();n!==1||(N=k)!=null&&N.pauseVideo();_.ab(B)})};
GL.prototype.playVideo=function(W,k,C){var n=this,N,B;return _.F(function(A){if(A.nextAddress==1)return _.l(A,(N=n.mainAppPlayer)==null?void 0:N.api,2);B=A.yieldResult;if(!n.mainAppPlayer||!B){var w=new _.AM("Error: mainAppPlayer is unavailable",n.mainAppPlayer);_.dI(w);return A.return()}return _.l(A,n.mainAppPlayer.loadVideoWithPlayerVars({videoId:n.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+k,player_params:C}),0)})};
GL.prototype.pauseVideo=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1){if(!W.mainAppPlayer){var N=new _.AM("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.dI(N);return n.return()}return _.l(n,W.mainAppPlayer.api,2)}k=n.yieldResult;(C=k)==null||C.pauseVideo();_.ab(n)})};
GL.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L;return _.F(function(Bw){if(Bw.nextAddress==1)return C=_.z(W,vkA),N=(n=C)==null?void 0:n.nowPlayingEntityValue,A=(B=C)==null?void 0:B.externalVideoId,X=Number((a=(w=C)==null?void 0:(x=w.defaultStartPoints)==null?void 0:(E=x[0])==null?void 0:E.offsetMs)!=null?a:"0"),e=Number((p=(d=C)==null?void 0:(V=d.defaultStartPoints)==null?void 0:(c=V[0])==null?void 0:(M=c.duration)==null?void 0:M.seconds)!=null?p:"15"),L=(h=
(u=C)==null?void 0:u.playerParams)!=null?h:"",N&&A?k.mainAppPlayer?Bw.jumpTo(2):_.l(Bw,rUE(k),2):Bw.return();if(Bw.nextAddress!=6){if(k.nowPlayingEntityValue&&N===k.nowPlayingEntityValue)return k.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.l(Bw,k.pauseVideo(),0):_.l(Bw,k.playVideo(X,e,L),0);k.externalVideoId=A;k.nowPlayingEntityValue=N;k.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.l(Bw,k.playVideo(X,e,L),6)}g06(k);return Bw.jumpTo(0)})};
GL[ic]=[ns];var yx=function(W){this.JSC$15071_commandHandler=W};
_.D(yx,o_);yx.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1)return(n=_.z(W,DVS))?_.l(x,_.HJ(),2):x.return();N=x.yieldResult;if(!N)return x.return();(B=Xtp(N))?C.JSC$15071_commandHandler.resolveCommand(B,k):(A=_.w8("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.iO(A),C.JSC$15071_commandHandler.resolveCommand(w));_.ab(x)})};
yx[ic]=[_.uI];var $m=function(W){this.JSC$15074_playerPromise=W};
_.D($m,o_);$m.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1){C=_.z(W,BSZ);if(!C)return w.return();n=C.overlayRenderer;return n?(N=_.z(n,YQY))?_.l(w,k.JSC$15074_playerPromise,3):w.jumpTo(0):w.return()}B=w.yieldResult;B.renderChapterSeekingAnimation(1,_.y4(N.text),(A=N.icon)==null?void 0:A.iconType);_.ab(w)})};
$m[ic]=[_.qE];var Z4=function(W){this.store=W};
_.D(Z4,o_);Z4.prototype.resolveCommand=function(W){var k=this,C,n,N;return _.F(function(B){if(B.nextAddress==1){C=_.z(W,JCs);if(!C)return B.return();n="";(N=k.store.getState().collabInviteLink)&&C.id===N.playlistId?n=N.inviteLinkURL:C.shortUrl&&(n=C.shortUrl);return n?_.l(B,navigator.clipboard.writeText(n),3):B.jumpTo(0)}var A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.w8("COPY_LINK_SUCCESS_TOAST")}}}}};_.f().resolve(_.uI).resolveCommand(A);_.ab(B)})};
Z4[ic]=[Bs];var Rm=function(W,k){this.innertubeTransportService=W;this.JSC$15084_commandHandler=k};
_.D(Rm,o_);Rm.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d;return _.F(function(V){if(V.nextAddress==1)return(n=_.z(W,_.cn))?_.l(V,_.Sr(C.innertubeTransportService,W,(N=k)==null?void 0:N.form),2):V.return();(B=V.yieldResult)&&B.errorMetadata&&(A=B,w=_.iO(A.error.message),C.JSC$15084_commandHandler.resolveCommand(w));x=B;if((E=x)==null?0:E.actions)for(a=_.b(x.actions),X=a.next();!X.done;X=a.next())d=X.value,C.JSC$15084_commandHandler.resolveCommand(d);_.ab(V)})};
Rm[ic]=[_.xZ,_.uI];var om=function(){};
_.D(om,o_);om.prototype.resolveCommand=function(W){var k;return _.F(function(C){k=_.z(W,fTA);if(!k)return C.return();(new gCS(k)).show();_.ab(C)})};_.iv=new _.Tc("PLAYLIST_EDIT_CONTROLLER_TOKEN");var TL=function(W,k,C,n){this.store=W;this.innertubeTransportService=k;this.controller=C;this.JSC$15092_commandHandler=n};
_.D(TL,o_);
TL.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp,vw,lw,G4,nA;return _.F(function(Xs){if(Xs.nextAddress==1){n=_.z(W,_.mB);if(!n)return Xs.return();if(n.clientActions){N=_.b(n.clientActions);for(B=N.next();!B.done;B=N.next())A=B.value,C.JSC$15092_commandHandler.resolveCommand(A);var aI,LA=k==null?void 0:(aI=k.form)==null?void 0:aI.element;LA&&_.Pe(LA,"yt-dismissible-item-action",n.clientActions)}return _.l(Xs,_.Sr(C.innertubeTransportService,W,(w=k)==
null?void 0:w.form),2)}if(x=Xs.yieldResult)x.errorMetadata?(E=x,a=_.iO(E.error.message),C.JSC$15092_commandHandler.resolveCommand(a),"error"in x&&((X=k)==null?0:(d=X.commandController)==null?0:d.onServerError)&&((V=k)==null||(c=V.commandController)==null||c.onServerError(W,x))):(M=k)==null||(p=M.commandController)==null||(u=(e=p).onSuccess)==null||u.call(e,W,x);h=x;((L=h)==null?0:L.collaborationInviteLink)&&n.playlistId&&(_.m("web_enable_invite_collaborators_link")||_.m("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
C.store.dispatch(_.jo({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:n.playlistId,inviteLinkUrl:h.collaborationInviteLink}}));((Bw=h)==null?0:Bw.redirectEndpoint)&&C.JSC$15092_commandHandler.resolveCommand(h.redirectEndpoint);((P=h)==null?0:(xz=P.newHeader)==null?0:xz.playlistHeaderRenderer)?PBi(C.controller,h.newHeader.playlistHeaderRenderer):((Sp=h)==null?0:(vw=Sp.newHeader)==null?0:vw.musicEditablePlaylistDetailHeaderRenderer)&&PBi(C.controller,h.newHeader.musicEditablePlaylistDetailHeaderRenderer);
C.controller.playlistVideoListElement&&((lw=h)==null?0:(G4=lw.playlistEditResults)==null?0:(nA=G4[0])==null?0:nA.playlistEditVideoAddedResultData)&&((LA=C.controller.playlistVideoListElement)==null||LA.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:h.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ab(Xs)})};
TL[ic]=[Bs,_.xZ,_.iv,_.uI];var q1=function(W,k){this.controller=W;this.JSC$15102_commandHandler=k};
_.D(q1,o_);q1.prototype.resolveCommand=function(W,k){var C=this,n,N,B;return _.F(function(A){n=_.z(W,cCs);C.controller.showRefreshPill&&((N=n)==null?0:N.command)&&(C.JSC$15102_commandHandler.resolveCommand((B=n)==null?void 0:B.command,k),C.controller.showRefreshPill=!1);_.ab(A)})};
q1[ic]=[_.eg,_.uI];var uv=function(W,k){this.store=W;this.JSC$15106_commandHandler=k||_.gH.instance};
_.D(uv,o_);uv.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d;return _.F(function(V){n=_.z(W,Res);N=C.store.getState().radioButtonGroup;if((B=n)==null?0:B.command)C.JSC$15106_commandHandler.resolveCommand((A=n)==null?void 0:A.command,k);else if(((w=n)==null?void 0:w.formId)===N.currentFormId)for(x=Object.values(N.commandsMap),E=_.b(x),a=E.next();!a.done;a=E.next()){X=a.value;d=_.fi(X);if(!d)return V.return();C.JSC$15106_commandHandler.resolveCommand(d,k)}_.ab(V)})};
uv[ic]=[Bs];var KDA=new _.Tc("USER_PREFS");var Uf=function(W){this.JSC$15110_prefCookie=W};
_.D(Uf,o_);Uf.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){C=_.z(W,S3Z);if(!C)return N.return();n=!1;C.flagNum&&typeof C.value==="boolean"?(_.Er(0,C.flagNum,C.value),n=!0):C.key&&typeof C.stringValue==="string"&&(k.JSC$15110_prefCookie.set(C.key,C.stringValue),n=!0);n&&k.JSC$15110_prefCookie.save();_.ab(N)})};
Uf[ic]=[KDA];var Of=new _.Tc("PREF_STORAGE_PROMISE_TOKEN");var Ld=function(W){this.JSC$15114_prefStoragePromise=W};
_.D(Ld,o_);Ld.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return(C=_.z(W,QRC))?_.l(N,k.JSC$15114_prefStoragePromise,2):N.return();n=N.yieldResult;return n===void 0||C.key===void 0||C.value===void 0?N.return():_.l(N,n.set(C.key,C.value),0)})};
Ld[ic]=[Of];var hsS=function(W){this.innertubeTransportService=W};
_.D(hsS,o_);hsS.prototype.resolveCommand=function(W,k){var C=this,n,N;return _.F(function(B){(n=_.z(W,_.WSI))&&n&&n.isFirstRequest&&(_.JQ("search_overview_answer"),_.cN("so_rq",void 0,"search_overview_answer"));return _.l(B,_.Sr(C.innertubeTransportService,W,(N=k)==null?void 0:N.form),0)})};
hsS[ic]=[_.xZ];var WJi=function(){};
_.D(WJi,o_);
WJi.prototype.resolveCommand=function(W){var k,C,n,N,B,A,w,x,E;return _.F(function(a){k=_.z(W,NSC);if((C=k)==null?0:C.sectionIdentifier){if(k.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(N=(n=document.getElementsByTagName(k.sectionIdentifier))==null?void 0:n.item(0))N.scrollIntoView({behavior:"smooth"}),(B=e82(N))&&B.focus({preventScroll:!0});return a.return()}A=document.querySelector("[section-identifier="+k.sectionIdentifier+"]");w=document.querySelector("[section-identifier="+k.referenceSectionIdentifier+
"]");if(!A)return a.return();x=k.verticalScrollOffsetDp?k.verticalScrollOffsetDp:0;w&&(x-=w.offsetTop);window.scrollTo({top:A.offsetTop+x,behavior:"smooth"});(E=e82(A))&&E.focus({preventScroll:!0})}_.ab(a)})};var jG=function(){};
_.D(jG,o_);
jG.prototype.resolveCommand=function(W){var k,C,n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1){k=_.z(W,VDC);if(!k||!k.imageBytes||!navigator.clipboard)return x.return();if(k.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.dI(Error("Ai")),x.return();_.F0(x,2);n=(C=k)==null?void 0:C.imageBytes;N=n.replace(/-/g,"+").replace(/_/g,"/");B=Wqw(N);A={};w=[new ClipboardItem((A[B.type]=B,A))];return _.l(x,navigator.clipboard.write(w),4)}if(x.nextAddress!=2)return _.M7(x,0);
_.EF(x);_.ab(x)})};var Hs=function(W,k){this.innertubeTransportService=W;this.JSC$15129_commandHandler=k};
_.D(Hs,o_);Hs.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1)return(n=_.z(W,J4x))?_.l(x,_.Sr(C.innertubeTransportService,W,(N=k)==null?void 0:N.form),2):x.return();(B=x.yieldResult)&&B.errorMetadata&&n.onFailureCommand&&C.JSC$15129_commandHandler.resolveCommand(n.onFailureCommand);A=B;((w=A)==null?0:w.shareCommand)&&C.JSC$15129_commandHandler.resolveCommand(A.shareCommand,k);_.ab(x)})};
Hs[ic]=[_.xZ,_.uI];var re=function(){};
_.D(re,o_);re.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ab(W)})};var ge=function(W){this.JSC$15136_navigationConfirmationService=W};
_.D(ge,o_);ge.prototype.resolveCommand=function(){var W=this;return _.F(function(k){W.JSC$15136_navigationConfirmationService.cancelPendingNavigation();_.ab(k)})};
ge[ic]=[Wr];var Ps=function(W){this.JSC$15139_screenManager=W};
_.D(Ps,o_);Ps.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E;return _.F(function(a){N=(n=k.form)==null?void 0:n.event;A=(B=k.form)==null?void 0:B.element;if(!N)throw new _.AM("Event not passed in when resolving command");w=_.b(N.composedPath());for(x=w.next();!x.done;x=w.next())if(E=x.value,E.tagName==="YT-COPY-LINK-RENDERER")return E.copyUrlToClipboard(),A&&_.JW(C.JSC$15139_screenManager,A),a.return();_.ab(a)})};
Ps[ic]=[_.nR];var Kd=function(){this.JSC$15143_miniAppClientDataProvider=_.f().resolve(_.Qp)};
_.D(Kd,o_);Kd.prototype.resolveCommand=function(){var W=this,k,C;return _.F(function(n){if(W.JSC$15143_miniAppClientDataProvider.clientData.has("video_id")){var N=W.JSC$15143_miniAppClientDataProvider,B=N.clientData.get("video_id");B&&N.clientData.delete("video_id");k="https://youtube.com/watch?v="+B;C=SN(k);if(C===void 0)throw Error("Bi`"+k);_.Ti(window,C)}_.ab(n)})};var hL=function(){};
_.D(hL,o_);hL.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ab(W)})};var Wa=function(){};
_.D(Wa,o_);Wa.prototype.resolveCommand=function(){var W;return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.B4p(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.ab(k)})};var kU=function(W){this.JSC$15150_navigationConfirmationService=W};
_.D(kU,o_);
kU.prototype.resolveCommand=function(){var W=this;return _.F(function(k){var C=W.JSC$15150_navigationConfirmationService,n=_.f().resolve(_.rF),N;if(((N=C.navigateParams)==null?void 0:N.data)!==void 0){var B;_.Xzs(n,C.navigateParams.endpoint,C.navigateParams.data,(B=C.navigateParams.navigationType)!=null?B:1,C.navigateParams.tempData,C.navigateParams.isMiniplayer,void 0,!0);C.navigateParams=void 0;C.customConfirmationCommand=void 0}else C.navigateParams&&(n.navigate(C.navigateParams.endpoint,C.navigateParams.reload,
C.navigateParams.params,C.navigateParams.tempData,C.navigateParams.requestType,C.navigateParams.createScreenConfig,!0),C.navigateParams=void 0,C.customConfirmationCommand=void 0);_.ab(k)})};
kU[ic]=[Wr];var CC=function(){};
_.D(CC,o_);CC.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ab(W)})};var nC=function(W){this.JSC$15155_prefStorage=W};
_.D(nC,o_);nC.prototype.resolveCommand=function(){var W=this,k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,W.JSC$15155_prefStorage,2);case 2:return(k=n.yieldResult)?_.l(n,k.set("sfvle",!1),3):n.return();case 3:return _.l(n,k.set("sfvles",!0),4);case 4:C=_.tQ(),_.Er(0,203,!1),_.Er(0,204,!0),C.save(),_.ab(n)}})};
nC[ic]=[Of];var Nx=function(W){this.JSC$15158_prefStorage=W};
_.D(Nx,o_);Nx.prototype.resolveCommand=function(){var W=this,k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,W.JSC$15158_prefStorage,2);case 2:return(k=n.yieldResult)?_.l(n,k.set("sfvle",!0),3):n.return();case 3:return _.l(n,k.set("sfvles",!0),4);case 4:C=_.tQ(),_.Er(0,203,!0),_.Er(0,204,!0),C.save(),_.ab(n)}})};
Nx[ic]=[Of];var YU=function(){};
_.D(YU,o_);YU.prototype.resolveCommand=function(W){var k;return _.F(function(C){k=_.z(W,MTb);if(!k||typeof k.key!=="string"||typeof k.value!=="string")return C.return();window.localStorage.setItem(k.key,k.value);_.ab(C)})};var Ba=function(W){this.store=W};
_.D(Ba,o_);Ba.prototype.resolveCommand=function(W){var k=this,C;return _.F(function(n){C=_.z(W,YwX);if(!C||!C.stepId||!C.token)return n.return();k.store.dispatch(BlZ({stepId:C.stepId,token:C.token,isSelected:!1}));_.ab(n)})};
Ba[ic]=[Bs];var bN=function(W,k,C){this.innertubeTransportService=W;this.store=k;this.JSC$15169_screenManager=C};
_.D(bN,o_);
bN.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw,P,xz,Sp;return _.F(function(vw){C=_.z(W,ybA);if(!C||(n=C.stepIds)==null||!n.length)return vw.return();N=k.store.getState().talkToRecs;B=[];A=[];w=_.b(C.stepIds);for(x=w.next();!x.done;x=w.next())for(E=x.value,a=void 0,(X=(a=N.stepStates[E])==null?void 0:a.userQuery)&&A.push({userQuery:X.userQuery,userQueryToken:X.token}),d=void 0,V=(d=N.stepStates[E])==null?void 0:d.selectionStates,c=_.b(Object.entries(V)),M=
c.next();!M.done;M=c.next())p=M.value,e=_.b(p),u=e.next().value,h=e.next().value,L=u,Bw=h,Bw.isSelected&&B.push(L);P={selectedChipTokens:B,userQueries:A,submittedStepIds:C.stepIds};xz={browseTalk2recsFormData:P};C.browseEndpoint?(Sp=W,_.l6(Sp,_.kZ,C.browseEndpoint)):C.command&&(Sp=C.command);return Sp?_.l(vw,_.Sr(k.innertubeTransportService,Sp,{formData:xz,disableCache:!0}).then(function(lw){(lw==null?0:lw.trackingParams)&&k.JSC$15169_screenManager.graftServerVe(lw==null?void 0:lw.trackingParams)}),
0):vw.return()})};
bN[ic]=[_.xZ,Bs,_.nR];var Ag=function(W){this.store=W};
_.D(Ag,o_);Ag.prototype.resolveCommand=function(W){var k=this,C;return _.F(function(n){C=_.z(W,NG2);if(!C||!C.stepId||!C.token)return n.return();k.store.dispatch(BlZ({stepId:C.stepId,token:C.token,isSelected:!0}));_.ab(n)})};
Ag[ic]=[Bs];var Fa=function(W){this.store=W};
_.D(Fa,o_);Fa.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w;return _.F(function(x){n=_.z(W,$e8);if(!n||!n.stepId||!n.userQueryToken)return x.return();w=(A=(N=k)==null?void 0:(B=N.form)==null?void 0:B.userQuery)!=null?A:"";C.store.dispatch(_.jo({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:n.stepId,userQueryToken:n.userQueryToken,userQuery:w}}));_.ab(x)})};
Fa[ic]=[Bs];_.kb7=new _.Tc("TIMELY_ACTIONS_CONTROLLER_TOKEN");var w9=function(W){this.controller=W};
_.D(w9,o_);w9.prototype.resolveCommand=function(W){var k=this,C,n,N,B;return _.F(function(A){C=_.z(W,kub);if(!C)return A.return();n=C;N=n.id;B=n.isVisible;if(N===void 0||B===void 0)return A.return();var w;(w=k.controller.timelyActionsMap.get(N))==null||w(N,B);_.ab(A)})};
w9[ic]=[_.kb7];var Cg7=function(){this.timelyActionsMap=new Map};var xU=function(W){this.JSC$15196_commandHandler=W};
_.D(xU,o_);xU.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A;return _.F(function(w){C=_.z(W,_.FP8);if(!C)return w.return();B=(n=C.item)==null?void 0:(N=n.notificationTextRenderer)==null?void 0:N.successResponseText;if(!B)return w.return();A=_.oY(B);k.JSC$15196_commandHandler.resolveCommand(A);_.ab(w)})};
xU[ic]=[_.uI];var lN=function(W,k){this.innertubeTransportService=W;this.JSC$15201_playerApiPromise=k};
_.D(lN,o_);
lN.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a;return _.F(function(X){if(X.nextAddress==1)return _.l(X,k.JSC$15201_playerApiPromise,2);C=X.yieldResult;n=C.getOption("captions","track");N=Object.assign({},_.z(W,_.rCs));(A=(B=C.getVideoData())==null?void 0:B.video_id)?N.externalVideoId=A:_.pS(Error("Ci"));if((w=n)==null?0:w.languageCode)N.languageCode=n.languageCode;if((x=n)==null?0:x.kind)N.kind=n.kind;if((E=n)==null?0:E.name)N.name=n.name;a=Object.assign({},W,{getTranscriptEndpoint:N});return _.l(X,
_.Sr(k.innertubeTransportService,a),0)})};
lN[ic]=[_.xZ,_.qE];var tg=function(){};
_.D(tg,o_);tg.prototype.resolveCommand=function(W){var k,C,n,N,B,A,w,x;return _.F(function(E){k=_.z(W,ZFA);if((C=k)==null||!C.paramKeyValuePairs)return E.return();n=window.location.href;N=_.b(k.paramKeyValuePairs);for(B=N.next();!B.done;B=N.next())A=B.value,A.key&&A.value&&(w={},n=_.yK(n,(w[A.key]=A.value,w)));x=_.f().resolve(_.UQS);x.replaceUrl(n);_.ab(E)})};var Ej=function(W,k){this.JSC$15208_commandHandler=W;this.innertubeTransportService=k};
_.D(Ej,o_);
Ej.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h;return _.F(function(L){switch(L.nextAddress){case 1:return(B=(n=k)==null?void 0:(N=n.form)==null?void 0:N.element)&&_.oZ(B),A=_.tQ().get("hl"),w="",_.F0(L,2),_.l(L,zfK(A),4);case 4:w=L.yieldResult;_.M7(L,3);break;case 2:return _.EF(L),B&&_.i2(B),_.dI(Error("Ei"),"ERROR"),L.return();case 3:x=_.z(W,l12);if(!x)return B&&_.i2(B),L.return();(X=(E=x.commerceActionConfig)==null?void 0:(a=E.commandLifeCycleConfig)==null?
void 0:a.onStartCommand)&&C.JSC$15208_commandHandler.resolveCommand(X);return _.l(L,_.Sr(C.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:w}}}),5);case 5:(d=L.yieldResult)?(B&&_.i2(B),((p=d)==null?0:p.command)&&C.JSC$15208_commandHandler.resolveCommand(d.command),(h=(e=x.commerceActionConfig)==null?void 0:(u=e.commandLifeCycleConfig)==null?void 0:u.onSuccessCommand)&&C.JSC$15208_commandHandler.resolveCommand(h)):(B&&_.i2(B),_.dI(Error("Fi")),(M=(V=x.commerceActionConfig)==null?
void 0:(c=V.commandLifeCycleConfig)==null?void 0:c.onFailureCommand)&&C.JSC$15208_commandHandler.resolveCommand(M)),_.ab(L)}})};
Ej[ic]=[_.uI,_.xZ];var aT=function(W,k,C){this.store=W;this.JSC$15224_commandHandler=k;this.innertubeTransportService=C};
_.D(aT,o_);
aT.prototype.resolveCommand=function(W,k){var C=this,n,N,B,A,w,x,E,a,X;return _.F(function(d){n=_.z(W,tVC);N=n.googlePaymentPayload;n.onStartCommand&&C.JSC$15224_commandHandler.resolveCommand(n.onStartCommand);B=N.encryptedPurchaseParams;A=N.ypcLogWalletAnalyticDataEndpoint;w=n.serializedTransactionFlowLoggingParams;x=N.serializedPaymentsClientParams;E=n.ypcCujContext;X=J1w(C.innertubeTransportService,(a=k)==null?void 0:a.form,B,A,w,x,E);return d.return(X.then(function(V){DzX(k==null?void 0:k.form,
!1);var c=C.store,M=C.JSC$15224_commandHandler,p=V.integratorData;p==null||p===""||V.error!=null?(String(V.error)==="-1"&&n.onDismissCommand?M.resolveCommand(n.onDismissCommand):String(V.error)!=="-1"&&n.onFailureCommand&&M.resolveCommand(n.onFailureCommand),String(V.error)!=="-1"&&String(V.error)!=="132"&&_.dI(Error("Gi"),"ERROR")):(n.googlePaymentEntityKey&&c.dispatch(_.Nj("commerceAcquisitionClientPayloadEntity",n.googlePaymentEntityKey,{key:n.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:p,
fundsGuaranteeCallbackClientData:V.integratorClientCallbackData}}})),n.onSuccessCommand&&M.resolveCommand(n.onSuccessCommand));_.nB()},function(V){DzX(k==null?void 0:k.form,!1);
_.dI(V,"ERROR");n.onFailureCommand&&C.JSC$15224_commandHandler.resolveCommand(n.onFailureCommand)}))})};
aT[ic]=[ns,_.uI,_.xZ];var Xa=function(W,k){this.JSC$15228_commandHandler=W;this.purchaseManager=k};
_.D(Xa,o_);
Xa.prototype.resolveCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a;return _.F(function(X){C=_.z(W,EDY);((n=C)==null?0:(N=n.commandLifeCycleConfig)==null?0:N.onStartCommand)&&k.JSC$15228_commandHandler.resolveCommand(C.commandLifeCycleConfig.onStartCommand);if(!((B=C)==null?0:(A=B.googlePaymentPurchaseManagerPayload)==null?0:A.securePayloadBytes))return _.dI(Error("Hi"),"ERROR"),X.return();w=Kgb(_.Pw(C.googlePaymentPurchaseManagerPayload.securePayloadBytes));x=_.tQ().get("hl");E=_.ME();x3C(w.serialize(),
x,function(d){E.resolve(d)},function(d){E.reject(d)},E.resolve);
a=E.promise;return X.return(a.then(function(d){if(d)if(d==null?0:d.errorCode){_.dI(Error("Ii`"+d.errorCode),"ERROR");var V,c;((V=C)==null?0:(c=V.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&k.JSC$15228_commandHandler.resolveCommand(C.commandLifeCycleConfig.onFailureCommand)}else if(d==null?0:d.isCancelled){var M,p;((M=C)==null?0:(p=M.commandLifeCycleConfig)==null?0:p.onCancelCommand)&&k.JSC$15228_commandHandler.resolveCommand(C.commandLifeCycleConfig.onCancelCommand)}else{var e,u;((e=C)==
null?0:(u=e.commandLifeCycleConfig)==null?0:u.onSuccessCommand)&&k.JSC$15228_commandHandler.resolveCommand(C.commandLifeCycleConfig.onSuccessCommand)}},function(d){_.dI(d,"ERROR");
var V,c;((V=C)==null?0:(c=V.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&k.JSC$15228_commandHandler.resolveCommand(C.commandLifeCycleConfig.onFailureCommand)}))})};
Xa[ic]=[_.uI,ldC];var nLt=function(W,k){this.JSC$15236_commandHandler=W;this.commandAllowlistOverride=k;var C;this.commandAllowlist=(C=this.commandAllowlistOverride)!=null?C:QF};
nLt.prototype.handleResponse=function(W,k,C){var n,N=k==null?void 0:(n=k.config)==null?void 0:n.command;if(!N||this.commandAllowlist.some(function(B){return!!_.z(N,B)})){k=void 0;
C!==void 0&&(k={form:{element:C}});W.onResponseReceivedCommand&&this.JSC$15236_commandHandler.resolveCommand(W.onResponseReceivedCommand,k);W.onResponseReceivedAction&&this.JSC$15236_commandHandler.resolveCommand(W.onResponseReceivedAction,k);W.onResponseReceivedEndpoint&&this.JSC$15236_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,k);W.command&&this.JSC$15236_commandHandler.resolveCommand(W.command,k);if(W.onResponseReceivedCommands)for(C=_.b(W.onResponseReceivedCommands),n=C.next();!n.done;n=
C.next())this.JSC$15236_commandHandler.resolveCommand(n.value,k);if(W.onResponseReceivedActions)for(C=_.b(W.onResponseReceivedActions),n=C.next();!n.done;n=C.next())this.JSC$15236_commandHandler.resolveCommand(n.value,k);if(W.onResponseReceivedEndpoints)for(C=_.b(W.onResponseReceivedEndpoints),n=C.next();!n.done;n=C.next())this.JSC$15236_commandHandler.resolveCommand(n.value,k);if(W.actions)for(W=_.b(W.actions),C=W.next();!C.done;C=W.next())this.JSC$15236_commandHandler.resolveCommand(C.value,k)}};
nLt[ic]=[_.uI,_.qI(VMw)];var Nu1=new _.Tc("INNERTUBE_TOKEN_SERVICE");var YgT=new _.Tc("SCHEDULER_TOKEN");var BuT=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
BuT.prototype.handleResponse=function(W,k){if(!k)throw Error("Ji");var C;if(W=(C=W.responseContext)==null?void 0:C.innertubeTokenJar){if(W.appTokens){var n,N,B;C=(n=k.innerTubeRequest.context)==null?void 0:(N=n.request)==null?void 0:(B=N.innertubeTokenJar)==null?void 0:B.appTokens;bN7(this,W.appTokens,this.tokenMap.app,C)}if(W.userTokens){var A,w,x;k=(A=k.innerTubeRequest.context)==null?void 0:(w=A.request)==null?void 0:(x=w.innertubeTokenJar)==null?void 0:x.userTokens;bN7(this,W.userTokens,this.tokenMap.user,
k)}}};
BuT.prototype.processContext=function(W){W.request||(W.request={});var k=Object.keys(this.tokenMap.app).length,C=Object.keys(this.tokenMap.user).length;if(k||C)W.request.innertubeTokenJar={},k&&(W.request.innertubeTokenJar.appTokens=[].concat(_.J8(Object.values(this.tokenMap.app).flat()))),C&&(W.request.innertubeTokenJar.userTokens=[].concat(_.J8(Object.values(this.tokenMap.user).flat())))};
var bN7=function(W,k,C,n){k=_.b(k);for(var N=k.next(),B={};!N.done;B={token$jscomp$137:void 0},N=k.next()){B.token$jscomp$137=N.value;if(B.token$jscomp$137.type===void 0)throw new _.AM("InnerTube token has no type",B.token$jscomp$137);if(B.token$jscomp$137.clearTokens)C[B.token$jscomp$137.type]=[];else if(B.token$jscomp$137.value!==void 0){C[B.token$jscomp$137.type]||(C[B.token$jscomp$137.type]=[]);if(n!==void 0&&n.length){N=_.b(n);for(var A=N.next(),w={};!A.done;w={requestToken:void 0},A=N.next())w.requestToken=
A.value,A=C[B.token$jscomp$137.type].findIndex(function(x){return function(E){return E===x.requestToken||(0,_.JU.equals)(E,x.requestToken)}}(w)),A>-1&&C[B.token$jscomp$137.type].splice(A,1)}C[B.token$jscomp$137.type].push(B.token$jscomp$137);
B.token$jscomp$137.maxAgeSeconds&&Number(B.token$jscomp$137.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(x){return function(){var E=C[x.token$jscomp$137.type].indexOf(x.token$jscomp$137);E>-1&&C[x.token$jscomp$137.type].splice(E,1)}}(B),Number(B.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.AM("InnerTube token has no value",B.token$jscomp$137);
}};
BuT[ic]=[YgT];var Ad7=new _.Tc("LOCAL_INNERTUBE_ROUTER_TOKEN"),FJS=new _.Tc("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var fC=function(W){this.serviceMap=W};
fC.prototype.shouldPreferLocalResponse=function(W,k){return(W=wfB(this,W))?W.shouldPreferLocalResponse(k):!1};
fC.prototype.localInnertubeResponse=function(W,k){var C=this,n;return _.F(function(N){return(n=wfB(C,W))?N.return(n.localInnertubeResponse(k)):N.return(Promise.reject(Error("Ki")))})};
fC.prototype.canProvideFallbackResponse=function(W,k){return(W=wfB(this,W))?W.canProvideFallbackResponse(k):!1};
fC.prototype.localFallbackInnertubeResponse=function(W,k){var C=this,n;return _.F(function(N){return(n=wfB(C,W))?N.return(n.localFallbackInnertubeResponse(k)):N.return(Promise.reject(Error("Ki")))})};
var wfB=function(W,k){k=_.KS(k);return k?(W=W.serviceMap[k])?W:null:null};
fC[ic]=[FJS];var a5=function(){};
a5.prototype.shouldPreferLocalResponse=function(){return!1};
a5.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Li")))})};
a5.prototype.canProvideFallbackResponse=function(){return!0};
a5.prototype.localFallbackInnertubeResponse=function(){var W,k,C;return _.F(function(n){W=f6("CLOSE_POPUP");k={openPopupAction:IG2()};C={actions:[W,k]};return n.return(C)})};var rs2=function(W,k){this.JSC$15286_upliftPromise=W;this.store=k};
_.Y=rs2.prototype;_.Y.shouldPreferLocalResponse=function(W){var k=W.videoId,C;if(C=k)C=Utc(this.store.getState().entities,W.videoId);return C&&O8c(this.store.getState().entities,k)?MKP(this.store.getState().entities,W.playlistId):!1};
_.Y.localInnertubeResponse=function(W){var k=this,C;return _.F(function(n){return(C=k.getPlayerResponse(W))?n.return(Promise.resolve(C)):n.return(Promise.reject(Error("Mi")))})};
_.Y.canProvideFallbackResponse=function(W){return!!W.videoId};
_.Y.localFallbackInnertubeResponse=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.JSC$15286_upliftPromise,2);C=k.getPlayerResponse(W);var N;C?N=n.return(Promise.resolve(C)):N=lO(k.store.getState().entities,W.videoId)?n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ur(_.w8("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Qsm()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ur(_.w8("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:MUX()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return N})};
_.Y.getPlayerResponse=function(W){return fYm(this.store.getState().entities,W.videoId)};var Ev=function(W,k){this.localPlayerService=W;this.localWatchNextService=k};
Ev.prototype.shouldPreferLocalResponse=function(W){var k=W.playerRequest;W=W.watchNextRequest;return!!(k&&this.localPlayerService.shouldPreferLocalResponse(k)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
Ev.prototype.localInnertubeResponse=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1){C=W.playerRequest;n=W.watchNextRequest;if(!C||!n)throw new _.AM("Missing streaming request",W);return _.l(A,k.localPlayerService.localInnertubeResponse(C),2)}if(A.nextAddress!=3)return N=A.yieldResult,_.l(A,k.localWatchNextService.localInnertubeResponse(n),3);B=A.yieldResult;return A.return({playerResponse:N,watchNextResponse:B})})};
Ev.prototype.canProvideFallbackResponse=function(W){var k=W.playerRequest;W=W.watchNextRequest;return!!(k&&this.localPlayerService.canProvideFallbackResponse(k)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
Ev.prototype.localFallbackInnertubeResponse=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return C=W.playerRequest,n=W.watchNextRequest,C&&n?_.l(A,k.localPlayerService.localFallbackInnertubeResponse(C),2):A.return(Promise.reject(new _.AM("Missing streaming request",W)));if(A.nextAddress!=3)return N=A.yieldResult,_.l(A,k.localWatchNextService.localFallbackInnertubeResponse(n),3);B=A.yieldResult;return A.return({playerResponse:N,watchNextResponse:B})})};var xN=function(W){this.JSC$15296_persistentStorePromiseAccessor=W};
xN.prototype.shouldPreferLocalResponse=function(){return!1};
xN.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Ni")))})};
xN.prototype.canProvideFallbackResponse=function(){return!0};
xN.prototype.localFallbackInnertubeResponse=function(){var W=this,k,C;return _.F(function(n){return n.nextAddress==1?_.l(n,W.JSC$15296_persistentStorePromiseAccessor(),2):n.nextAddress!=3?(k=n.yieldResult)?_.l(n,k.get("service:guide:fallback"),3):n.return(Promise.reject(Error("Oi"))):(C=n.yieldResult)&&_.kN(C)?n.return(Ql2(_.kN(C))):n.return(Promise.reject(Error("Pi")))})};var fs=function(){};
fs.prototype.shouldPreferLocalResponse=function(){return!1};
fs.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Qi")))})};
fs.prototype.canProvideFallbackResponse=function(){return!0};
fs.prototype.localFallbackInnertubeResponse=function(){var W,k,C;return _.F(function(n){W=f6("CLOSE_POPUP");k={openPopupAction:IG2()};C={actions:[W,k]};return n.return(C)})};var wk=function(){this.urlMap=xDY;this.fallbackCommand=_.CE};
wk.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!l06(this,W):!1};
wk.prototype.localInnertubeResponse=function(W){var k=this,C;return _.F(function(n){return(C=W.url)?n.return(t_6(W,l06(k,C))):n.return(Promise.reject(Error("Ri")))})};
wk.prototype.canProvideFallbackResponse=function(){return!0};
wk.prototype.localFallbackInnertubeResponse=function(W){var k=this,C,n,N,B,A,w,x;return _.F(function(E){C=W.url;if(!C)return E.return(t_6(W,k.fallbackCommand));if(n=l06(k,C))return E.return(t_6(W,n));N=void 0;B=_.KS(C);B==="/watch"&&(A=_.e_(C,"v"))&&(x=(w=_.e_(C,"list"))!=null?w:void 0,N=_.uW(A,x));N||(N=k.fallbackCommand);return E.return(t_6(W,N))})};
var l06=function(W,k){if(k)return W.urlMap[_.sk(k)]},t_6=function(W,k){k&&W.parentTrackingParams&&(k.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},k.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:k})};var lH=function(W,k,C){this.JSC$15306_upliftPromise=W;this.store=k;this.JSC$15306_persistentStorePromiseAccessor=C};
lH.prototype.shouldPreferLocalResponse=function(){return!1};
lH.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Si")))})};
lH.prototype.canProvideFallbackResponse=function(){return!0};
lH.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.F(function(k){return k.return(EL6(W))})};
var EL6=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,Wq(W.JSC$15306_upliftPromise,W.store),2);k=n.yieldResult;C={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[SBz(k)]}}}};return n.return(a0S(W,C))})},a0S=function(W,k){var C,n;
return _.F(function(N){if(N.nextAddress==1)return _.l(N,W.JSC$15306_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return C=N.yieldResult,_.l(N,Cs(C),3);n=N.yieldResult;return N.return({responseContext:{},contents:k,topbar:n})})};var A3=function(W,k,C){this.JSC$15313_upliftPromise=W;this.store=k;this.JSC$15313_persistentStorePromiseAccessor=C};
A3.prototype.shouldPreferLocalResponse=function(W){var k=W.videoId;return k&&Utc(this.store.getState().entities,k)&&O8c(this.store.getState().entities,k)?MKP(this.store.getState().entities,W.playlistId):!1};
A3.prototype.localInnertubeResponse=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return(C=W.videoId)?_.l(N,k.JSC$15313_upliftPromise,2):N.return(Promise.reject(Error("Ti")));if(N.nextAddress!=3)return _.l(N,Xfi(k,W,C),3);n=N.yieldResult;return N.return(f0$(k,n,C))})};
A3.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
A3.prototype.localFallbackInnertubeResponse=function(W){var k=this,C,n,N,B;return _.F(function(A){switch(A.nextAddress){case 1:return(C=W.videoId)?_.l(A,k.JSC$15313_upliftPromise,2):A.return(Promise.reject(Error("Ti")));case 2:return _.l(A,Xfi(k,W,C),3);case 3:n=A.yieldResult;if(lO(k.store.getState().entities,C)){A.jumpTo(4);break}return _.l(A,Wq(k.JSC$15313_upliftPromise,k.store),5);case 5:return N=A.yieldResult,A.return(dDC(n,N));case 4:return Utc(k.store.getState().entities,C)&&O8c(k.store.getState().entities,
C)?A.return(f0$(k,n,C)):(B={title:_.Ur(_.w8("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Qsm()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},A.return(dDC(n,B)))}})};
var Xfi=function(W,k,C){var n,N,B,A,w;return _.F(function(x){if(x.nextAddress==1)return n=k.playlistId,N=_.uW(C,n),_.l(x,W.JSC$15313_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return B=x.yieldResult,_.l(x,Cs(B),3);A=x.yieldResult;w={responseContext:{},currentVideoEndpoint:N,topbar:A};return x.return(w)})},f0$=function(W,k,C){if(W=lO(W.store.getState().entities,C)){var n;
C=W.videoEntity;var N,B={title:Or(C.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.LB((n=C.localizedStrings)==null?void 0:n.viewCount),viewCount:_.LB((N=C.localizedStrings)==null?void 0:N.viewCount)}}};C.publishedTimestampMillis&&(B.dateText=_.LB(YQP(new Date(Number(C.publishedTimestampMillis)))));n={videoPrimaryInfoRenderer:B};N=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Or(_.w8("SHOW_MORE",void 0,"Show more")),
showLessText:Or(_.w8("SHOW_LESS",void 0,"Show less")),description:N.formattedDescription,owner:{videoOwnerRenderer:{title:Or(W.title),thumbnail:W.avatar}}}};k.contents={twoColumnWatchNextResults:{results:{results:{contents:[n,W]}}}}}return k},dDC=function(W,k){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[SBz(k)]}}}};
return W};var t3=function(W,k,C){this.JSC$15319_upliftPromise=W;this.store=k;this.JSC$15319_persistentStorePromiseAccessor=C};
t3.prototype.shouldPreferLocalResponse=function(){return!1};
t3.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Ui")))})};
t3.prototype.canProvideFallbackResponse=function(){return!0};
t3.prototype.localFallbackInnertubeResponse=function(){var W=this,k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return _.l(B,W.JSC$15319_persistentStorePromiseAccessor(),2);case 2:return k=B.yieldResult,_.l(B,Cs(k),3);case 3:return C=B.yieldResult,n={responseContext:{},topbar:C},_.l(B,W.JSC$15319_upliftPromise,4);case 4:return _.l(B,Wq(W.JSC$15319_upliftPromise,W.store),5);case 5:return N=B.yieldResult,n.watchStatus={backgroundPromoRenderer:N},B.return(n)}})};var mD6=new _.Tc("ENDPOINT_MAP");var zAB=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},XWY=function(W,k,C){var n,N=(n=k.config)==null?void 0:n.sequenceStrategy;
if(!N)return C();W.sequenceMap.has(N.sequenceKey)||W.sequenceMap.set(N.sequenceKey,[]);W=W.sequenceMap.get(N.sequenceKey);switch(N.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return DDY(W,k,C);case "REQUEST_SEQUENCE_TYPE_REPLACE":return V_B(W,k,C);default:throw new _.AM("Request could not be sequenced",k);}},DDY=function(W,k,C){var n,N,B;
return _.F(function(A){W.length>0?(N=W[W.length-1],n=N.responsePromise.then(function(){return C()})):n=C();
B={request:k,responsePromise:n};W.push(B);JdC(W,B);return A.return(B.responsePromise)})},V_B=function(W,k,C){C=C();
if(W.length>0)for(var n=_.b(W),N=n.next();!N.done;N=n.next())N.value.responsePromise=C;var B={request:k,responsePromise:C};W.push(B);JdC(W,B);return Promise.resolve().then(function(){return W.indexOf(B)>0?B.responsePromise.then(function(A){return Object.assign({},A,{sequenceMetaData:{skipProcessing:!0}})}):B.responsePromise})},JdC=function(W,k){k.responsePromise.then(function(){var C=W.indexOf(k);
C>-1&&W.splice(C,1)})};var cdE=new _.Tc("REQUEST_SEQUENCING");var d9=function(){};
_.D(d9,ap);d9.prototype.getApiPaths=function(){return[]};
d9.prototype.getExtension=function(W){return _.z(W,kqC)};
d9.prototype.JSC$11766_buildRequest=function(W,k){W.recaptchaToken=k.recaptchaToken};
d9.prototype.getApiUrl=function(){return"/das_captcha"};var mt=function(){};
_.D(mt,ap);mt.prototype.getApiPaths=function(){return xM8};
mt.prototype.getExtension=function(W){return _.z(W,pSs)};
mt.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.createBackstagePostParams&&(W.createBackstagePostParams=k.createBackstagePostParams);C.comment_text&&(W.commentText=C.comment_text);if(C.attached_video_id)W.videoAttachment={videoId:C.attached_video_id};else if(C.image_poll_options)W.pollAttachmentData={options:C.image_poll_options};else if(C.poll_options)W.pollAttachment={choices:C.poll_options};else if(C.quiz_options)W.quizAttachmentData={options:C.quiz_options};else if(C.image_blob_id)W.imageAttachment=
{encryptedBlobId:C.image_blob_id},C.source_video_id&&(W.imageAttachment.sourceExternalVideoId=C.source_video_id),C.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(C.image_preview_coordinates));else if(C.images_data)W.imagesAttachment={imagesData:C.images_data};else if(C.clip_external_video_id!==void 0||C.clip_offset_ms!==void 0||C.clip_duration_ms!==void 0){var n,N,B,A,w;W.clipAttachment={externalVideoId:(B=C.clip_external_video_id)!=null?B:"",offsetMs:(A=(n=C.clip_offset_ms)==
null?void 0:n.toString())!=null?A:"",durationMs:(w=(N=C.clip_duration_ms)==null?void 0:N.toString())!=null?w:""}}else C.shared_post_id&&(W.sharedPostAttachment={postId:C.shared_post_id});C.tagged_video_id&&(W.postCreationData={taggedVideoId:C.tagged_video_id});C.access_restrictions&&(typeof C.access_restrictions==="number"&&(k=C.access_restrictions,W.accessRestrictions={restriction:k!==1&&k===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof C.access_restrictions==="string"&&
(W.accessRestrictionsParams=C.access_restrictions));C.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=C.scheduled_publish_time_sec.toString())};var z6=function(){};
_.D(z6,ap);z6.prototype.getApiPaths=function(){return dMA};
z6.prototype.getExtension=function(W){return _.z(W,QuY)};
z6.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.decorateMessageParams&&(W.params=k.decorateMessageParams);C.text&&(W.text=C.text)};var DC=function(){};
_.D(DC,ap);DC.prototype.getApiPaths=function(){return o$8};
DC.prototype.getExtension=function(W){return _.z(W,vT8)};
DC.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;C.video_id&&(W.videoId=C.video_id)};var VW=function(){};
_.D(VW,ap);VW.prototype.getApiPaths=function(){return OR8};
VW.prototype.getExtension=function(W){return _.z(W,_.AQ)};
VW.prototype.JSC$11766_buildRequest=function(W,k,C){C.suggestions_query&&(W.input=C.suggestions_query)};var Jg=function(){};
_.D(Jg,ap);Jg.prototype.getApiPaths=function(){return J5z};
Jg.prototype.getExtension=function(W){return _.z(W,eOx)};
Jg.prototype.JSC$11766_buildRequest=function(W,k,C){C.comment_text!==void 0&&(W.commentText=C.comment_text);C.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=C.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=k.updateBackstagePostParams};var ca=function(){};
_.D(ca,ap);ca.prototype.getApiPaths=function(){return L6};
ca.prototype.getExtension=function(W){return _.z(W,_.dE)};
ca.prototype.JSC$11766_buildRequest=function(W,k,C){C.formData&&(W.formData=C.formData);k.token?W.continuation=k.token:k.continuationTokenKey&&(C=_.ZF().getState(),k=_.hQ(C.entities,"continuationTokenEntity",k.continuationTokenKey))&&(W.continuation=String(k.continuationToken))};
var I07=function(){};
_.D(I07,ap);_.Y=I07.prototype;_.Y.getApiPaths=function(){return L6};
_.Y.getExtension=function(W){return _.z(W,_.kZ)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$11773_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var k={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(k.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(k.params=W.params);W.query&&(k.query=W.query);return _.ZH("browse",k)}};
_.Y.JSC$11766_buildRequest=function(W,k,C){k.browseId&&(W.browseId=k.browseId);k.params&&(W.params=k.params);k.query&&(W.query=k.query);C.formData?W.formData=C.formData:k.formData&&(W.formData=k.formData);k.browseId==="FEsubscriptions"&&_.tQ().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");k.browseId==="SPaccount_playback"&&(C=_.tQ(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:C.getFlag(65),flagAutoCaptionsDefaultOn:C.getFlag(66),
flagDisableInlinePreview:C.getFlag(186),flagAudioDescriptionDefaultOn:C.getFlag(198)});if(k.browseId==="FEwhat_to_watch"){C=_.tQ();var n=C.getFlag(196);C.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:n}}})}k.browseId==="FEwhat_to_watch"&&(k=_.tQ().getFlag(186),W.inlineSettingStatus=k?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.Y.getRequestConfig=function(W,k){k=k===void 0?{}:k;var C={};if(W=this.JSC$11773_getStoreKey(W,k))C.storeStrategy={storeKey:W,disableCache:k.disableCache};_.m("web_log_browse_ticks_ks")||(C.requestTick="br_s",C.responseTick="br_r");return C};var IT=function(){};
_.D(IT,ap);IT.prototype.getApiPaths=function(){return Y9s};
IT.prototype.getExtension=function(W){return _.z(W,Le8)};
IT.prototype.JSC$11766_buildRequest=function(W,k,C){W.legacyYoutubeChannelUsername=C.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=C.legacyYouTubeChannelPassword||""};var SX=function(){};
_.D(SX,ap);SX.prototype.getApiPaths=function(){return te8};
SX.prototype.getExtension=function(W){return _.z(W,ixx)};
SX.prototype.JSC$11766_buildRequest=function(W,k,C){C.recaptcha_response_token&&(W.recaptchaResponseToken=C.recaptcha_response_token);C.channel_id&&(W.channelId=C.channel_id)};var Mx=function(){};
_.D(Mx,ap);Mx.prototype.getApiPaths=function(){return c58};
Mx.prototype.getExtension=function(W){return _.z(W,LP8)};
Mx.prototype.JSC$11766_buildRequest=function(W,k,C){k.externalChannelId&&(W.externalChannelId=k.externalChannelId);C.handle&&(W.handleUpdate={handle:C.handle},k.handleEditSource&&(W.handleUpdate.handleEditSource=k.handleEditSource))};var QW=function(){};
_.D(QW,ap);QW.prototype.getApiPaths=function(){return Q$2};
QW.prototype.getExtension=function(W){return _.z(W,B12)};
QW.prototype.JSC$11766_buildRequest=function(W,k,C){k.request&&(W.channelId=k.request.channelId);var n;if(C==null?0:(n=C.uploadDefaults)==null?0:n.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=C.uploadDefaults.emojiReactionSet};var pC=function(){};
_.D(pC,ap);pC.prototype.getApiPaths=function(){return eHs};
pC.prototype.getExtension=function(W){return _.z(W,Tmx)};
pC.prototype.JSC$11766_buildRequest=function(W,k,C){k.externalChannelId&&(W.externalChannelId=k.externalChannelId);k.channelHandleEntityKey&&(W.channelHandleEntityKey=k.channelHandleEntityKey);k.handleEditSource&&(W.handleEditSource=k.handleEditSource);C.handle?W.handle=C.handle:C.name&&(W.name=C.name)};var va=function(){};
_.D(va,ap);va.prototype.getApiPaths=function(){return AnY};
va.prototype.getExtension=function(W){return _.z(W,A4b)};
va.prototype.JSC$11766_buildRequest=function(W,k){k.actions?W.actions=k.actions:k.action&&(W.actions=[k.action])};var eX=function(){};
_.D(eX,ap);eX.prototype.getApiPaths=function(){return F1A};
eX.prototype.getExtension=function(W){return _.z(W,_.dE)};
eX.prototype.JSC$11766_buildRequest=function(W,k){k.token&&(W.continuation=k.token)};var sj=function(){};
_.D(sj,ap);sj.prototype.getApiPaths=function(){return ZRb};
sj.prototype.getExtension=function(W){return _.z(W,_.dE)};
sj.prototype.JSC$11766_buildRequest=function(W,k){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";k.token&&(W.fetchCommentsParams={continuation:k.token})};var G6=function(){};
_.D(G6,ap);G6.prototype.getApiPaths=function(){return E$C};
G6.prototype.getExtension=function(W){return _.z(W,bEZ)};
G6.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.createReplyParams&&(W.createReplyParams=k.createReplyParams);k.commentText&&(W.commentText=_.y4(k.commentText));C.comment_text&&(W.commentText=C.comment_text);C.image_blob_id&&(W.imageAttachment={encryptedBlobId:C.image_blob_id});C.botguard_response&&(W.botguardResponse=C.botguard_response)};
_.oq.Object.defineProperties(G6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yW=function(){};
_.D(yW,ap);yW.prototype.getApiPaths=function(){return apb};
yW.prototype.getExtension=function(W){return _.z(W,_.BFA)};
yW.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.createCommentParams&&(W.createCommentParams=k.createCommentParams);k.commentText&&(W.commentText=_.y4(k.commentText));k.videoPositionMention&&(W.videoPositionMention=k.videoPositionMention);k.sources&&(W.sources=k.sources);C.comment_text&&(W.commentText=C.comment_text);C.attached_video_id?W.videoAttachment={videoId:C.attached_video_id}:C.poll_options?W.pollAttachment={choices:C.poll_options}:C.image_blob_id?W.imageAttachment=
{encryptedBlobId:C.image_blob_id}:C.shared_post_id&&(W.sharedPostAttachment={postId:C.shared_post_id});C.access_restrictions&&typeof C.access_restrictions==="number"&&(k=C.access_restrictions,W.accessRestrictions={restriction:k!==1&&k===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});C.botguard_response&&(W.botguardResponse=C.botguard_response)};
_.oq.Object.defineProperties(yW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $U=function(){};
_.D($U,ap);$U.prototype.getApiPaths=function(){return Ia2};
$U.prototype.getExtension=function(W){return _.z(W,wKY)};
$U.prototype.JSC$11766_buildRequest=function(W,k,C){k.commentText&&(W.replyText=_.y4(k.commentText));C.comment_text&&(W.replyText=C.comment_text);W.updateReplyParams=k.updateReplyParams};
_.oq.Object.defineProperties($U.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZC=function(){};
_.D(ZC,ap);ZC.prototype.getApiPaths=function(){return S$s};
ZC.prototype.getExtension=function(W){return _.z(W,FS2)};
ZC.prototype.JSC$11766_buildRequest=function(W,k,C){k.commentText&&(W.commentText=_.y4(k.commentText));C.comment_text&&(W.commentText=C.comment_text);W.updateCommentParams=k.updateCommentParams};
_.oq.Object.defineProperties(ZC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RT=function(){};
_.D(RT,ap);RT.prototype.getApiPaths=function(){return Me8};
RT.prototype.getExtension=function(W){return _.z(W,Ccs)};
RT.prototype.JSC$11766_buildRequest=function(W,k){k.settings&&(W.settings=k.settings)};var oT=function(){};
_.D(oT,ap);oT.prototype.getApiPaths=function(){return pLY};
oT.prototype.getExtension=function(W){return _.z(W,qYs)};
oT.prototype.JSC$11766_buildRequest=function(W,k){k.channelCreationToken&&(W.channelCreationToken=k.channelCreationToken);k.source&&(W.source=k.source)};var iN=function(){};
_.D(iN,ap);iN.prototype.getApiPaths=function(){return taI};
iN.prototype.getExtension=function(W){return _.z(W,Oxz)};
iN.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;if(C.name&&(C.given_name||C.family_name))W=new _.AM("channel creation cannot set both GAIA and YouTube names",k),_.dI(W);else{if(k.zeroStepChannelCreationParams){if(!C.comment_text){W=new _.AM("zero_step_create_comment_params but no zero_step_texts",k);_.dI(W);return}W.zeroStepChannelCreationParams=k.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
C.comment_text,C.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=C.botguard_response))}W.channelCreationToken=k.channelCreationToken;C.given_name&&(W.givenName=C.given_name);C.family_name&&(W.familyName=C.family_name);k.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(C.name||C.handle||C.avatar_url||C.encryptedBlobId||C.isNameChanged!==void 0||C.isHandleChanged!==void 0||C.isDefaultProfilePhoto!==
void 0||C.obakeImageSource)W.overrideChannelCreationParams={},C.name&&(W.overrideChannelCreationParams.name=C.name),C.handle&&(W.overrideChannelCreationParams.handle=C.handle),C.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=C.avatar_url),C.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=C.encryptedBlobId),C.enableIdentityForAllChannelCreationDialog&&(C.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
C.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=C.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),C.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=C.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),C.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=C.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),C.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=C.obakeImageSource))}};var T6=function(){};
_.D(T6,ap);T6.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?Vab:W&&W.status==="INDIFFERENT"?A5b:g$s};
T6.prototype.getExtension=function(W){return _.z(W,_.RZ)};
T6.prototype.JSC$11766_buildRequest=function(W,k){k.target&&(W.target=k.target);if(k=this.getParams(k))W.params=k};
T6.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var qx=function(){};
_.D(qx,ap);qx.prototype.getApiPaths=function(){return dCI};
qx.prototype.getExtension=function(W){return _.z(W,XK2)};
qx.prototype.JSC$11766_buildRequest=function(W,k){k.settingItemId&&(W.settingItemId=k.settingItemId);k.stringValue!=null&&k.stringValue!==void 0?W.newValue={stringValue:k.stringValue}:k.intValue?W.newValue={intValue:k.intValue}:k.boolValue!==null&&k.boolValue!==void 0?W.newValue={boolValue:k.boolValue}:(W=new _.AM("Unknown value type for SetSettingEndpoint.",k),_.dI(W))};var uN=function(){};
_.D(uN,ap);uN.prototype.getApiPaths=function(){return zHS};
uN.prototype.getExtension=function(W){return _.z(W,GRI)||void 0};
uN.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.channelIds&&(W.channelIds=k.channelIds);k.siloName&&(W.siloName=k.siloName);k.params&&(W.params=k.params);C.botguardResponse&&(W.botguardResponse=C.botguardResponse);C.feature&&(W.clientFeature=C.feature)};
_.oq.Object.defineProperties(uN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Uj=function(){};
_.D(Uj,ap);Uj.prototype.getApiPaths=function(){return VeA};
Uj.prototype.getExtension=function(W){return _.z(W,fYs)||void 0};
Uj.prototype.JSC$11766_buildRequest=function(W,k){k.channelIds&&(W.channelIds=k.channelIds);k.siloName&&(W.siloName=k.siloName);k.params&&(W.params=k.params)};
_.oq.Object.defineProperties(Uj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Oj=function(W){this.shareClientParamsProvider=W};
_.D(Oj,ap);Oj.prototype.getApiPaths=function(){return TLA};
Oj.prototype.getExtension=function(W){return _.z(W,LVs)||_.z(W,_.jvC)||_.z(W,OTz)};
Oj.prototype.JSC$11766_buildRequest=function(W,k){k.serializedShareEntity&&(W.serializedSharedEntity=k.serializedShareEntity);if(k.clientParamIdentifier){var C;if((C=this.shareClientParamsProvider)==null?0:C.clientParams.has(k.clientParamIdentifier)){C=this.shareClientParamsProvider;k=k.clientParamIdentifier;var n=C.clientParams.get(k);n&&C.clientParams.delete(k);W.clientParams=n}}};
Oj[ic]=[u77];var LC=function(){};
_.D(LC,ap);LC.prototype.getApiPaths=function(){return Cy8};
LC.prototype.getExtension=function(W){return _.z(W,CfZ)};
LC.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var jX=function(){};
_.D(jX,ap);jX.prototype.getApiPaths=function(){return Jns};
jX.prototype.getExtension=function(W){return _.z(W,heI)};
jX.prototype.JSC$11766_buildRequest=function(W,k){k.dismissal&&(W.items=[k.dismissal])};
_.oq.Object.defineProperties(jX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ha=function(){};
_.D(Ha,ap);Ha.prototype.getApiPaths=function(){return HRx};
Ha.prototype.getExtension=function(W){return _.z(W,_.I5)||void 0};
Ha.prototype.JSC$11766_buildRequest=function(W,k,C){W.feedbackTokens=[];k.feedbackToken&&W.feedbackTokens.push(k.feedbackToken);if(k=k.cpn||C.cpn)W.feedbackContext={cpn:k};W.isFeedbackTokenUnencrypted=!!C.is_feedback_token_unencrypted;W.shouldMerge=!1;C.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(C.extra_feedback_tokens))};
_.oq.Object.defineProperties(Ha.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var r9=function(){};
_.D(r9,ap);r9.prototype.getApiPaths=function(){return HRx};
r9.prototype.getExtension=function(W){return _.z(W,_.AQ)};
r9.prototype.JSC$11766_buildRequest=function(W,k,C){C.feedback_tokens&&(W.feedbackTokens=C.feedback_tokens,W.shouldMerge=!0)};
_.oq.Object.defineProperties(r9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var g9=function(){};
_.D(g9,ap);g9.prototype.getApiPaths=function(){return HRx};
g9.prototype.getExtension=function(W){return _.z(W,BGc)};
g9.prototype.JSC$11766_buildRequest=function(W,k){k.undoToken&&(W.feedbackTokens=[k.undoToken]);k.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=k.isUndoTokenUnencrypted)};
_.oq.Object.defineProperties(g9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pa=function(){};
_.D(Pa,ap);Pa.prototype.getApiPaths=function(){return s$2};
Pa.prototype.getExtension=function(W){return _.z(W,gX8)};
Pa.prototype.JSC$11766_buildRequest=function(W,k){k.nextEndpoint&&_.z(k.nextEndpoint,_.pM)?W.nextEndpoint={urlEndpoint:_.z(k.nextEndpoint,_.pM)}:k.nextEndpoint&&_.z(k.nextEndpoint,_.RA)&&(W.nextEndpoint={watchEndpoint:_.z(k.nextEndpoint,_.RA)});k.setRacy&&(W.setRacy=k.setRacy);k.setControvercy&&(W.setControvercy=k.setControvercy)};var KC=function(W){this.JSC$15501_storeWithEntities=W};
_.D(KC,ap);KC.prototype.getApiPaths=function(){return IpI};
KC.prototype.getExtension=function(W){return _.z(W,zXs)};
KC.prototype.JSC$11766_buildRequest=function(W,k){k.flowId&&(W.flowId=k.flowId);k.targetId&&(W.targetId=k.targetId);k.continuation&&(W.continuation=k.continuation);var C=k.flowStateEntityKey;if(k.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&C&&this.JSC$15501_storeWithEntities){var n;if(k=(n=this.JSC$15501_storeWithEntities.getState())==null?void 0:n.entities)if(n=_.r8(C).entityType,n=_.hQ(k,n,C))W.flowState=n,W.flowStateEntityKey=C}};
_.oq.Object.defineProperties(KC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
KC[ic]=[ns];var SgB=function(){};
_.D(SgB,ap);_.Y=SgB.prototype;_.Y.getApiPaths=function(){return jpS};
_.Y.JSC$11773_getStoreKey=function(){return _.ZH("guide")};
_.Y.getRequestConfig=function(){var W=this.JSC$11773_getStoreKey(),k;W&&(k={storeStrategy:{storeKey:W}});return k};
_.Y.isNavigationCommand=function(){return!0};
_.Y.getExtension=function(W){return _.z(W,_.AQ)};
_.Y.JSC$11766_buildRequest=function(W){W.fetchLiveState=!0};var hg=function(){};
_.D(hg,ap);hg.prototype.getApiPaths=function(){return BL8};
hg.prototype.getExtension=function(W){return _.z(W,n7s)};
hg.prototype.JSC$11766_buildRequest=function(){};var Wb=function(){};
_.D(Wb,ap);Wb.prototype.getApiPaths=function(){return bRA};
Wb.prototype.getExtension=function(W){return _.z(W,NF8)};
Wb.prototype.JSC$11766_buildRequest=function(){};var kH=function(){};
_.D(kH,ap);kH.prototype.getApiPaths=function(){return kPx};
kH.prototype.getExtension=function(W){return _.z(W,_.dE)};
kH.prototype.JSC$11766_buildRequest=function(W,k){k.token&&(W.continuation=k.token);var C,n;W==null||(C=W.context)==null||(n=C.user)==null||delete n.onBehalfOfUser};
kH.prototype.getRequestConfig=function(W){var k={},C;if(((C=this.getExtension(W))==null?void 0:C.sessionIndex)!==void 0){var n;k={authStrategy:{sessionIndex:(n=this.getExtension(W))==null?void 0:n.sessionIndex}}}return k};var CP=function(){};
_.D(CP,ap);CP.prototype.JSC$11766_getRequest=function(W){var k=this.getExtension(W),C=W="";if(k==null?0:k.popup)W="true";if(k==null?0:k.disableSignout)C="true";k={};return{input:"/getAccountSwitcherEndpoint",requestShell:$e("/getAccountSwitcherEndpoint","GET",(k["X-YouTube-Delegation-Context"]=_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),k["X-YouTube-Account-Switcher-Popup"]=W,k["X-YouTube-Account-Switcher-Disable-Signout"]=C,k)),innerTubeRequest:{}}};
CP.prototype.getApiPaths=function(){return[]};
CP.prototype.getExtension=function(W){return _.z(W,_.dOP)};
CP.prototype.JSC$11766_buildRequest=function(){};var nP=function(){};
_.D(nP,ap);nP.prototype.JSC$11766_getRequest=function(W){var k="/cross_account_channel_transfer";(W=this.getExtension(W))&&(k=EQc(k,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:k,requestShell:$e(k,"GET"),innerTubeRequest:{}}};
nP.prototype.getApiPaths=function(){return[]};
nP.prototype.getExtension=function(W){return _.z(W,bxs)};
nP.prototype.JSC$11766_buildRequest=function(){};var NO=function(){};
_.D(NO,ap);NO.prototype.getApiPaths=function(){return S9z};
NO.prototype.isNavigationCommand=function(){return!0};
NO.prototype.getExtension=function(W){return _.z(W,_.AQ)};
NO.prototype.JSC$11766_buildRequest=function(W){var k=_.tQ().get("gsml","");k&&(W.safetyModeLockerObfuscatedGaiaId=k);W.userInterfaceTheme=_.Vi(!0);_.Jh()?W.deviceTheme="DEVICE_THEME_SELECTED":_.v8w()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var YH=function(){};
_.D(YH,ap);YH.prototype.getApiPaths=function(){return kPx};
YH.prototype.getExtension=function(W){return _.z(W,Abs)};
YH.prototype.JSC$11766_buildRequest=function(W,k){if(k&&k.requestType&&(W.requestType=k.requestType,k.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||k.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var C=k.nextUrl;C&&(_.XNK(C)||iI(C))&&(W.nextNavendpoint={urlEndpoint:{url:C}})}k&&k.channelSwitcherQuery&&(W.channelSwitcherQuery=k.channelSwitcherQuery);k&&k.triggerChannelCreation&&(W.triggerChannelCreation=k.triggerChannelCreation);var n;if(k==null?0:(n=k.contentOwnerConfig)==
null?0:n.externalContentOwnerId)W.contentOwnerConfig=k.contentOwnerConfig;W.callCircumstance=k&&k.requestType&&k.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var N,B;k=W==null?void 0:(N=W.context)==null?void 0:(B=N.user)==null?void 0:B.onBehalfOfUser;if(k!==void 0){W.obfuscatedSelectedGaiaId=k;var A,w;W==null||(A=W.context)==null||(w=A.user)==null||delete w.onBehalfOfUser}var x,E;if(N=W==null?void 0:(x=W.context)==null?void 0:(E=x.user)==null?
void 0:E.serializedDelegationContext)W.selectedSerializedDelegationContext=N};var Bb=function(){};
_.D(Bb,ap);Bb.prototype.getApiPaths=function(){return iR8};
Bb.prototype.getExtension=function(W){return _.z(W,nTA)};
Bb.prototype.JSC$11766_buildRequest=function(W,k){k.profileOwnerExternalChannelId&&(W.profileOwnerExternalChannelId=k.profileOwnerExternalChannelId);k.profileCardContext&&(W.profileCardContext=k.profileCardContext)};var bo=function(){};
_.D(bo,ap);bo.prototype.getApiPaths=function(){return n$C};
bo.prototype.getExtension=function(W){return _.z(W,HT8)};
bo.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var AN=function(){};
_.D(AN,ap);AN.prototype.getApiPaths=function(){return lp2};
AN.prototype.getExtension=function(W){return _.z(W,_.Al8)};
AN.prototype.JSC$11766_buildRequest=function(W,k){if(k=k.createBroadcastRequest)W.useMasks=k.useMasks,W.broadcastType=k.broadcastType,W.broadcastSource=k.broadcastSource,W.broadcastMetadata=k.broadcastMetadata,W.broadcastMetadataMask=k.broadcastMetadataMask,W.videoMetadata=k.videoMetadata,W.videoMetadataMask=k.videoMetadataMask,W.liveChatSettingsUpdate=k.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=k.liveChatSettingsUpdateMask,W.cloneVideoId=k.cloneVideoId,W.cloneWithOverrides=k.cloneWithOverrides,
W.targetEntity=k.targetEntity,W.scheduledRedirectMetadata=k.scheduledRedirectMetadata};var F3=function(){};
_.D(F3,ap);F3.prototype.getApiPaths=function(){return XLs};
F3.prototype.getExtension=function(W){return _.z(W,FFS)};
F3.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.params&&(W.params=k.params);C.questionText&&(W.questionText=C.questionText);C.optionText&&C.optionText.length>0&&(W.optionText=C.optionText)};var wo=function(){};
_.D(wo,ap);wo.prototype.getApiPaths=function(){return mMS};
wo.prototype.getExtension=function(W){return _.z(W,b3C)};
wo.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var xH=function(){};
_.D(xH,ap);xH.prototype.getApiPaths=function(){return e9A};
xH.prototype.getExtension=function(W){return _.z(W,nMA)};
xH.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var lo=function(){};
_.D(lo,ap);lo.prototype.getApiPaths=function(){return GPC};
lo.prototype.getExtension=function(W){return _.z(W,N4s)};
lo.prototype.JSC$11766_buildRequest=function(W,k,C){k.params&&(W.params=k.params);k.continuation&&(W.continuation=k.continuation);C.currentPlayerState&&C.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:C.currentPlayerState.playerOffsetMs.toString()})};var tN=function(){};
_.D(tN,ap);tN.prototype.getApiPaths=function(){return ynx};
tN.prototype.getExtension=function(W){return _.z(W,CPA)};
tN.prototype.JSC$11766_buildRequest=function(W,k,C){k.params&&(W.params=k.params);C.continuation&&(W.continuation=C.continuation);"hidden"in C&&(W.webClientInfo={isDocumentHidden:C.hidden});C.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=C.isInvalidationTimeoutRequest);C.invalidationPayload&&(k=k0Y(_.Pw(T3(C.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=c9(k,2));C.reloadActionPanel&&(W.reloadActionPanel=C.reloadActionPanel);C.fullReload&&(W.fullReload=C.fullReload);
C.currentPlayerState&&(W.currentPlayerState=C.currentPlayerState)};var El=function(){};
_.D(El,ap);El.prototype.getApiPaths=function(){return PyI};
El.prototype.getExtension=function(W){return _.z(W,A9s)};
El.prototype.JSC$11766_buildRequest=function(W,k){W.params=k.params};var aQ=function(){};
_.D(aQ,ap);aQ.prototype.getApiPaths=function(){return sp8};
aQ.prototype.getExtension=function(W){return _.z(W,wn2)};
aQ.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var X3=function(){};
_.D(X3,ap);X3.prototype.getApiPaths=function(){return $Mz};
X3.prototype.getExtension=function(W){return _.z(W,xtC)};
X3.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var fP=function(){};
_.D(fP,ap);fP.prototype.getApiPaths=function(){return K18};
fP.prototype.getExtension=function(W){return _.z(W,wF8)};
fP.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var mb=function(){};
_.D(mb,ap);mb.prototype.getApiPaths=function(){return WdS};
mb.prototype.getExtension=function(W){return _.z(W,xVS)};
mb.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var zB=function(){};
_.D(zB,ap);zB.prototype.getApiPaths=function(){return Fd8};
zB.prototype.getExtension=function(W){return _.z(W,PFs)};
zB.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var Db=function(){};
_.D(Db,ap);Db.prototype.getApiPaths=function(){return XVZ};
Db.prototype.getExtension=function(W){return _.z(W,_.l2Y)};
Db.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.params&&(W.params=k.params);C.client_message_id&&(W.clientMessageId=C.client_message_id);C.recaptcha_token&&(W.recaptchaToken=C.recaptcha_token);C.rich_message&&C.rich_message.text_segments?(k=C.rich_message.text_segments.map(function(n){var N={};n.text&&(N.text=n.text);n.emoji_id&&(N.emojiId=n.emoji_id);return N}),W.richMessage={textSegments:k}):C.message&&(W.message=C.message);
C.currentPlayerState&&(W.currentPlayerState=C.currentPlayerState)};var Vz=function(){};
_.D(Vz,ap);Vz.prototype.getApiPaths=function(){return faS};
Vz.prototype.getExtension=function(W){return _.z(W,tzA)};
Vz.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var JN=function(){};
_.D(JN,ap);JN.prototype.getApiPaths=function(){return DCs};
JN.prototype.getExtension=function(W){return _.z(W,a22)};
JN.prototype.JSC$11766_buildRequest=function(W,k,C){k.isUserInitiated&&(W.isUserInitiated=k.isUserInitiated);k.initiationSource&&(W.initiationSource=k.initiationSource);C.locationInfo&&(W.context.client.locationInfo=C.locationInfo)};var cb=function(){};
_.D(cb,ap);cb.prototype.getApiPaths=function(){return h92};
cb.prototype.getExtension=function(W){return _.z(W,FV8)};
cb.prototype.JSC$11766_buildRequest=function(W,k,C){k.metadataUpdateRequest&&(k=k.metadataUpdateRequest,W.encryptedVideoId=k.encryptedVideoId,k.liveChat&&(k=k.liveChat,W.liveChat||(W.liveChat={}),k.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=k.performAsExternalChannelId),k.source&&(W.liveChat.source=k.source)));var n;if(C==null?0:(n=C.liveChat)==null?0:n.liveChatSettings)W.liveChat||(W.liveChat={}),C=C.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=C,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),C.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var IQ=function(){};
_.D(IQ,ap);IQ.prototype.getApiPaths=function(){return vdz};
IQ.prototype.getExtension=function(W){return _.z(W,_.d$s)};
IQ.prototype.JSC$11766_buildRequest=function(W,k,C){C.continuation?W.continuation=C.continuation:k.videoId&&(W.videoId=k.videoId);C.clientParams&&(W.clientParams=C.clientParams)};var SM=function(){};
_.D(SM,ap);SM.prototype.getApiPaths=function(){return ZRb};
SM.prototype.getExtension=function(W){return _.z(W,_.dc)};
SM.prototype.JSC$11766_buildRequest=function(W,k){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};k.videoId&&(W.fetchCommentsParams.encryptedVideoId=k.videoId);k.postId&&(W.fetchCommentsParams.postId=k.postId);k.externalChannelId&&(W.fetchCommentsParams.externalChannelId=k.externalChannelId);k.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=k.linkedCommentId);(0,_.JU.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var MO=function(){};
_.D(MO,ap);MO.prototype.getApiPaths=function(){return L6};
MO.prototype.JSC$11766_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
MO.prototype.getExtension=function(W){return _.z(W,_.AQ)};var Qz=function(){};
_.D(Qz,ap);Qz.prototype.getApiPaths=function(){return ZRb};
Qz.prototype.JSC$11766_buildRequest=function(W,k){k.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");k.ctoken&&(W.ctoken=k.ctoken)};
var M_S=function(){};
_.D(M_S,Qz);M_S.prototype.getExtension=function(W){return _.z(W,_.AQ)};
var QLt=function(){};
_.D(QLt,Qz);QLt.prototype.getExtension=function(W){return _.z(W,jR8)};var pP=function(){};
_.D(pP,ap);pP.prototype.getApiPaths=function(){return UMA};
pP.prototype.getExtension=function(W){return _.z(W,_.AQ)};
pP.prototype.JSC$11766_buildRequest=function(){};var vb=function(){};
_.D(vb,ap);vb.prototype.getApiPaths=function(){return kIA};
vb.prototype.getExtension=function(W){return _.z(W,tDC)||void 0};
vb.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params);k.secondaryParams&&(W.secondaryParams=k.secondaryParams)};var eM=function(){};
_.D(eM,ap);eM.prototype.getApiPaths=function(){return C_Z};
eM.prototype.getExtension=function(W){return _.z(W,rl2)};
eM.prototype.JSC$11766_buildRequest=function(W,k){k.undo&&(W.undo=k.undo);k.serializedOptOut&&(W.serializedOptOut=k.serializedOptOut);k.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=k.serializedRecordInteractionsRequest)};var sl=function(){};
_.D(sl,ap);sl.prototype.getApiPaths=function(){return Y$I};
sl.prototype.getExtension=function(W){return _.z(W,gq8)};
sl.prototype.JSC$11766_buildRequest=function(W,k){k.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=k.serializedInteractionsRequest)};var GB=function(){};
_.D(GB,ap);GB.prototype.getApiPaths=function(){return oPP};
GB.prototype.getExtension=function(W){return _.z(W,Slc)};
GB.prototype.JSC$11766_buildRequest=function(W,k,C){k=k===void 0?{}:k;C=C===void 0?{}:C;k.videoId?W.videoId=k.videoId:k.playlistId&&(W.playlistId=k.playlistId);var n,N=(n=k.offlineWebClientEligibility)!=null?n:C.offlineWebClientEligibility;N&&(W.offlineWebClientEligibility=N);var B;if(n=(B=k.preferredFormatType)!=null?B:C.preferredFormatType)W.preferredFormatType=n;var A;if(B=(A=k.lastOfflineQualitySettingsSavedMs)!=null?A:C.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=B;
k.params&&(W.params=k.params)};var yz=function(){};
_.D(yz,ap);yz.prototype.getApiPaths=function(){return yq};
yz.prototype.getExtension=function(W){return _.z(W,_.dE)};
yz.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.token&&(W.continuation=k.token);C.formData&&(W.formData=C.formData)};var $H=function(){};
_.D($H,ap);$H.prototype.getApiPaths=function(){return yq};
$H.prototype.getExtension=function(W){return _.z(W,nqC)};
$H.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;W.continuation=C.continuation};var Zb=function(){};
_.D(Zb,ap);Zb.prototype.getApiPaths=function(){return yq};
Zb.prototype.getExtension=function(W){return _.z(W,_.cq)};
Zb.prototype.JSC$11766_buildRequest=function(W,k){var C,n=k.panelIdentifier||((C=k.identifier)==null?void 0:C.tag);n&&(W.panelId=n);var N;if((N=k.globalConfiguration)==null?0:N.params){var B;W.params=(B=k.globalConfiguration)==null?void 0:B.params}};
_.oq.Object.defineProperties(Zb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RQ=function(){};
_.D(RQ,ap);RQ.prototype.getApiPaths=function(){return yq};
RQ.prototype.getExtension=function(W){return _.z(W,$$2)};
RQ.prototype.JSC$11766_buildRequest=function(W,k){k.panelLoadingStrategy&&slz(W,k.panelLoadingStrategy)};var oQ=function(){};
_.D(oQ,ap);oQ.prototype.getApiPaths=function(){return yq};
oQ.prototype.getExtension=function(W){return _.z(W,b8z)};
oQ.prototype.JSC$11766_buildRequest=function(W,k){k.loadingStrategy&&slz(W,k.loadingStrategy)};var io=function(){};
_.D(io,ap);io.prototype.getApiPaths=function(){return yq};
io.prototype.getExtension=function(W){return _.z(W,_.Yj)};
io.prototype.JSC$11766_buildRequest=function(W,k){k.panelLoadingStrategy&&slz(W,k.panelLoadingStrategy)};var TB=function(){};
_.D(TB,ap);TB.prototype.getApiPaths=function(){return yq};
TB.prototype.getExtension=function(W){return _.z(W,AT8)};
TB.prototype.JSC$11766_buildRequest=function(W,k){var C,n=(C=k.contentSourcePanelIdentifier)==null?void 0:C.tag;n&&(W.panelId=n);var N;if((N=k.globalConfiguration)==null?0:N.params){var B;W.params=(B=k.globalConfiguration)==null?void 0:B.params}};var qO=function(){};
_.D(qO,ap);qO.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
qO.prototype.getExtension=function(W){return _.z(W,FB8)};
qO.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var uo=function(){};
_.D(uo,ap);uo.prototype.getApiPaths=function(){return pVC};
uo.prototype.getExtension=function(W){return _.z(W,lnA)};
uo.prototype.JSC$11766_buildRequest=function(W,k){k.externalChannelId&&(W.externalChannelId=k.externalChannelId);k.superChatAction&&(W.superChatAction=k.superChatAction);k.superStickersAction&&(W.superStickersAction=k.superStickersAction)};var Ul=function(){};
_.D(Ul,ap);Ul.prototype.getApiPaths=function(){return MaA};
Ul.prototype.getExtension=function(W){return _.z(W,C8z)||_.z(W,QQK)};
Ul.prototype.JSC$11766_buildRequest=function(W,k){k.videoIds?W.videoIds=k.videoIds:k.videoId&&(W.videoIds=[k.videoId]);k.playlistId&&(W.playlistId=k.playlistId);k.params&&(W.params=k.params);W.excludeWatchLater=!1};var Ol=function(){};
_.D(Ol,ap);Ol.prototype.getApiPaths=function(){return fpS};
Ol.prototype.getExtension=function(W){return _.z(W,_.cn)};
Ol.prototype.JSC$11766_buildRequest=function(W,k,C){C.create_playlist_title?W.title=C.create_playlist_title:k.title&&(W.title=k.title);if(C.create_playlist_privacy_status&&typeof C.create_playlist_privacy_status==="number"){a:{var n=C.create_playlist_privacy_status;if(n!==0){if(n===1){n="PUBLIC";break a}if(n===2){n="UNLISTED";break a}}n="PRIVATE"}W.privacyStatus=n}else k.privacyStatus&&(W.privacyStatus=k.privacyStatus);C.create_playlist_description&&(W.description=C.create_playlist_description);k.videoIds&&
(W.videoIds=k.videoIds);k.params&&(W.params=k.params);k.sourcePlaylistId&&(W.sourcePlaylistId=k.sourcePlaylistId)};var LP=function(){};
_.D(LP,ap);LP.prototype.getApiPaths=function(){return z9s};
LP.prototype.getExtension=function(W){return _.z(W,x$8)};
LP.prototype.JSC$11766_buildRequest=function(W,k){W.playlistId=k.playlistId};var jM=function(){};
_.D(jM,ap);jM.prototype.getApiPaths=function(){return R9A};
jM.prototype.getExtension=function(W){return _.z(W,uF2)};
jM.prototype.JSC$11766_buildRequest=function(W,k){k.playlistId&&(W.playlistId=k.playlistId);k.params&&(W.params=k.params)};var Hb=function(){};
_.D(Hb,ap);Hb.prototype.getApiPaths=function(){return NBs};
Hb.prototype.getExtension=function(W){return _.z(W,_.mB)||void 0};
Hb.prototype.JSC$11766_buildRequest=function(W,k){k.actions&&(W.actions=k.actions);k.params&&(W.params=k.params);k.playlistId&&(W.playlistId=k.playlistId)};var ro=function(){};
_.D(ro,ap);_.Y=ro.prototype;_.Y.getApiPaths=function(){return BBA};
_.Y.getExtension=function(W){return _.z(W,_.YZ)};
_.Y.JSC$11766_buildRequest=function(W,k){k.videoId&&(W.playerRequest={videoId:k.videoId},k.playerParams&&(W.playerRequest.params=k.playerParams),k.racyCheckOk&&(W.playerRequest.racyCheckOk=!!k.racyCheckOk),k.contentCheckOk&&(W.playerRequest.contentCheckOk=!!k.contentCheckOk));k.params&&(W.params=k.params);k.inputType&&(W.inputType=k.inputType);W.disablePlayerResponse=!0};
_.Y.getRequestConfig=function(W){var k;(W=this.JSC$11773_getStoreKey(W))&&(k={storeStrategy:{storeKey:W}});_.m("web_log_reels_ticks")&&(k=k||{},k.requestTick="r_wrs",k.responseTick="r_wrr");return k};
_.Y.JSC$11773_getStoreKey=function(W){W=this.getExtension(W);if(_.m("shorts_controller_retrieve_seedless_sequence_v2")){if((W==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ZH("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.m("web_prefetch_riw_for_next_video")||_.m("web_shorts_prefetch_service_enabled"))&&W!=null&&W.videoId){var k={videoId:W.videoId};W.params&&(k.params=W.params);return _.ZH("reel_item_watch",k)}};var go=function(){};
_.D(go,ap);_.Y=go.prototype;_.Y.getApiPaths=function(){return bkS};
_.Y.getExtension=function(W){return _.z(W,_.YZ)};
_.Y.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;W.sequenceParams=k.sequenceParams;var n;((n=C)==null?0:n.contentPlaybackContext)&&_.m("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:C.contentPlaybackContext})};
_.Y.JSC$11773_getStoreKey=function(W){if(_.m("shorts_controller_retrieve_seedless_sequence_v2")&&(W=this.getExtension(W),W==null?0:W.sequenceParams))return _.ZH("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.Y.getRequestConfig=function(W){W=this.JSC$11773_getStoreKey(W);var k;W&&(k={storeStrategy:{storeKey:W}});_.m("reel_watch_sequence_request_log_ticks")&&(k=k||{},k.requestTick="r_wsrs",k.responseTick="r_wsrr",k.processorTick="r_wsrp");return k};
var Pb=function(){};
_.D(Pb,ap);Pb.prototype.getApiPaths=function(){return bkS};
Pb.prototype.getExtension=function(W){return _.z(W,_.dE)};
Pb.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.token&&(W.continuation=k.token);var n;((n=C)==null?0:n.contentPlaybackContext)&&_.m("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:C.contentPlaybackContext})};
Pb.prototype.getRequestConfig=function(W){W=this.JSC$11773_getStoreKey(W);var k;W&&(k={storeStrategy:{storeKey:W}});_.m("reel_watch_sequence_request_log_ticks")&&(k=k||{},k.requestTick="r_wsrs",k.responseTick="r_wsrr",k.processorTick="r_wsrp");return k};var KP=function(){};
_.D(KP,ap);KP.prototype.getApiPaths=function(){return cn2};
KP.prototype.getExtension=function(W){return _.z(W,_.mFx)};
KP.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.flagAction&&(W.action=k.flagAction);k.flagRequestType&&(W.flagRequestType=k.flagRequestType);k.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=k.additionalDetailCheckboxChecked);k.legalCheckboxChecked&&(W.legalCheckboxChecked=k.legalCheckboxChecked);k={};C.flag_issue_type!==void 0&&(k.issue=C.flag_issue_type);C.flag_affiliation!==void 0&&(k.affiliation=C.flag_affiliation);C.flag_full_name&&(k.fullName=C.flag_full_name);
Object.keys(k).length&&(W.legalReportDetails=k);if(C.flag_description||C.text)W.userComments=C.flag_description||C.text;k={};C.minutes!==void 0&&C.seconds!==void 0&&(k.minutes=C.minutes,k.seconds=C.seconds);C.vss_id&&(k.vssId=C.vss_id);Object.keys(k).length&&(W.videoReportDetails=k);k={};C.video_ids&&(k.videoIds=C.video_ids);C.impersonated_channel_url&&(k.impersonatedChannelUrl=C.impersonated_channel_url);Object.keys(k).length&&(W.channelAbuseReportDetails=k)};
_.oq.Object.defineProperties(KP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hN=function(){};
_.D(hN,ap);hN.prototype.getApiPaths=function(){return v$s};
hN.prototype.getExtension=function(W){return _.z(W,jVZ)};
hN.prototype.JSC$11766_buildRequest=function(W,k){k.blockedForKidsContent&&(W.blockedForKidsContent=k.blockedForKidsContent)};var WP=function(){};
_.D(WP,ap);WP.prototype.getApiPaths=function(){return wV8};
WP.prototype.getExtension=function(W){return _.z(W,MM3)};
WP.prototype.JSC$11766_buildRequest=function(W,k,C){W.params=k.params;C.impersonated_channel_url&&(W.impersonatedChannelUrl=C.impersonated_channel_url)};var ky=function(){};
_.D(ky,ap);ky.prototype.getApiPaths=function(){return rnA};
ky.prototype.getExtension=function(W){return _.z(W,_.H_8)};
ky.prototype.JSC$11766_buildRequest=function(W,k){k.items&&(W.items=k.items);k.kidGaiaId&&(W.kidGaiaId=k.kidGaiaId)};var C1=function(){};
_.D(C1,ap);C1.prototype.getApiPaths=function(){return Qp8};
C1.prototype.getExtension=function(W){return _.z(W,_.WSI)};
C1.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params);k.targetId&&(W.targetId=k.targetId)};var n1=function(){};
_.D(n1,ap);n1.prototype.getApiPaths=function(){return EdS};
n1.prototype.getExtension=function(W){return _.z(W,HF8)};
n1.prototype.JSC$11766_buildRequest=function(W,k){k.externalVideoId&&(W.externalVideoId=k.externalVideoId);k.query&&(W.query=k.query);k.sourceTimelines&&(W.sourceTimelines=k.sourceTimelines)};var NG=function(){};
_.D(NG,ap);NG.prototype.getApiPaths=function(){return aab};
NG.prototype.getExtension=function(W){return _.z(W,_.dE)||void 0};
NG.prototype.JSC$11766_buildRequest=function(W,k){k.token&&(W.continuation=k.token)};
_.pf1=function(){};
_.D(_.pf1,ap);_.Y=_.pf1.prototype;_.Y.getApiPaths=function(){return aab};
_.Y.getExtension=function(W){return _.z(W,_.CO)||void 0};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$11773_getStoreKey=function(W,k){k=k===void 0?{}:k;if(!k.disableCache&&(W=this.getExtension(W))&&W.query)return k={query:W.query},W.params&&(k.params=W.params),_.ZH("search",k)};
_.Y.JSC$11766_buildRequest=function(W,k,C){k.query&&(W.query=k.query);k.params&&(W.params=k.params);if(!_.m("web_forward_suggest_stats_killswitch")){var n=_.z(k,$nz);n&&(W.suggestStats=n)}var N;!_.m("kevlar_searchbox_stats_killswitch")&&((N=C.tempData)==null?0:N.gs_l)&&!_.z(k,$nz)&&(W.webSearchboxStatsUrl="/search?oq="+(C.tempData.oq||"")+"&gs_l="+C.tempData.gs_l)};
_.Y.getRequestConfig=function(W,k){k=k===void 0?{}:k;W=this.JSC$11773_getStoreKey(W,k);var C;W&&(C={storeStrategy:{storeKey:W}});_.m("web_log_search_ticks_ks")||(C=C||{},C.requestTick="sr_s",C.responseTick="sr_r");return C};var Yy=function(){};
_.D(Yy,ap);Yy.prototype.getApiPaths=function(){return q9Z};
Yy.prototype.getExtension=function(W){return _.z(W,J4x)};
Yy.prototype.JSC$11766_buildRequest=function(W,k){k.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=k.serializedGetSharingProviderDataParams)};var BP=function(){};
_.D(BP,ap);BP.prototype.getApiPaths=function(){return uqA};
BP.prototype.getExtension=function(W){return _.z(W,EvI)};
BP.prototype.JSC$11766_buildRequest=function(W,k){k.endpoint&&(W.endpoint=k.endpoint);k.action&&(W.action=k.action)};var b$=function(){};
_.D(b$,ap);b$.prototype.getApiPaths=function(){return DMx};
b$.prototype.getExtension=function(W){return _.z(W,lYs)};
b$.prototype.JSC$11766_buildRequest=function(W,k){W.videoId=k.videoId;k.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:k.scheduledRedirectMetadataSourceVideoId})};var vLi=XMLHttpRequest.prototype.fetch,eAY=vLi&&vLi.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.GW?!0:!1;var AX=function(W){this.JSC$15768_storeWithEntities=W};
_.D(AX,ap);_.Y=AX.prototype;_.Y.getApiPaths=function(){return ndC};
_.Y.getExtension=function(W){return _.z(W,_.RA)||_.z(W,_.YZ)||_.z(W,dtZ)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$11773_getStoreKey=function(W){if((_.m("kevlar_cache_on_ttl_player")||_.m("mweb_enable_shorts_innertube_player_prefetch")||_.m("mweb_use_new_history_manager")||_.m("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var k={videoId:W.videoId};W.playlistId&&(k.playlistId=W.playlistId);W.playerParams&&(k.params=W.playerParams);return _.ZH("player",k)}};
_.Y.JSC$11766_getClientScreen=function(W){var k;return((k=W.contentPlaybackContext)==null?void 0:k.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$11766_buildRequest=function(W,k,C){if(_.m("enable_interstitial_entity_check")){var n=this.JSC$15768_storeWithEntities;if(k.videoId)for(var N=_.b(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),B=N.next();!B.done;B=N.next()){B=B.value;var A;var w=void 0,x=void 0,E=k.videoId,a=B;(A=n)?(E=_.KB(E+a,"interstitialInteractionStateEntity"),A=(w=(x=_.hQ(A.getState().entities,"interstitialInteractionStateEntity",E))==null?void 0:x.primaryButtonClicked)!=null?w:!1):A=!1;if(A)switch(B){case "CONTENT_CHECK_REQUIRED":k.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":k.racyCheckOk=!0}}}k.videoId&&(W.videoId=k.videoId);k.playlistId&&(W.playlistId=k.playlistId);k.index!==void 0&&(W.playlistIndex=k.index+1);k.playerParams&&(W.params=k.playerParams);"startTimeSeconds"in k&&k.startTimeSeconds&&(_.m("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(k.startTimeSeconds):W.startTimeSecs=k.startTimeSeconds);C.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:C.contentPlaybackContext});C.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:C.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});n=MLz();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!n,supportXhr:eAY};C.overrideMutedAtStart&&(W.overrideMutedAtStart=C.overrideMutedAtStart);W.racyCheckOk=!!k.racyCheckOk;W.contentCheckOk=!!k.contentCheckOk;!_.m("captions_prefs_killswitch")&&(C=(C=_.h4("yt-player-caption-language-preferences"))?
C:[],C==null?0:C.length)&&(W.captionParams={viewerSelectedCaptionLangs:C})};
_.Y.getRequestConfig=function(W){W=this.JSC$11773_getStoreKey(W);var k;W&&(k={storeStrategy:{storeKey:W}});_.m("web_log_player_watch_next_ticks")&&(k=k||{},k.requestTick="ps_s",k.responseTick="ps_r");return k};
AX[ic]=[ns];var F9=function(){};
_.D(F9,ap);F9.prototype.getApiPaths=function(){return mCS};
F9.prototype.getExtension=function(W){return _.z(W,_.r42)};
F9.prototype.JSC$11766_buildRequest=function(W,k){W.params=k.params;W.correctionText=k.correctionText};var wR=function(){};
_.D(wR,ap);wR.prototype.getApiPaths=function(){return Z22};
wR.prototype.getExtension=function(W){return _.z(W,_.rCs)};
wR.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params);W.searchQuery=k.searchQuery;W.languageCode=k.languageCode;W.kind=k.kind;W.name=k.name;W.externalVideoId=k.externalVideoId};var xy=function(){};
_.D(xy,ap);_.Y=xy.prototype;_.Y.getApiPaths=function(){return GII};
_.Y.getExtension=function(W){return _.z(W,_.RA)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$11773_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var k={videoId:W.videoId};W.playlistId&&(k.playlistId=W.playlistId);W.index&&(k.index=W.index);W.params&&(k.params=W.params);return _.ZH("next",k)}};
_.Y.JSC$11766_getClientScreen=function(W){var k;return((k=W.contentPlaybackContext)==null?void 0:k.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$11766_buildRequest=function(W,k,C){k.videoId&&(W.videoId=k.videoId);k.playlistId&&(W.playlistId=k.playlistId);k.params&&(W.params=k.params);k.index!==void 0&&(W.playlistIndex=k.index);W.racyCheckOk=!(!C.racyCheckOk&&!k.racyCheckOk);W.contentCheckOk=!!k.contentCheckOk;C.contentPlaybackContext&&(W.autonavState=C.contentPlaybackContext.autonavState,W.playbackContext={vis:C.contentPlaybackContext.vis,lactMilliseconds:C.contentPlaybackContext.lactMilliseconds});C.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.m("captions_hats_killswitch")||(k=_.tQ().getFlag(65),k=k!=null?!k:!1,C=!!_.h4("yt-player-sticky-caption"),W.captionsRequested=k&&C)};
_.Y.getRequestConfig=function(W){W=this.JSC$11773_getStoreKey(W);var k;W&&(k={storeStrategy:{storeKey:W}});_.m("web_log_player_watch_next_ticks")&&(k=k||{},k.requestTick="wn_s",k.responseTick="wn_r");return k};
var l$=function(){};
_.D(l$,ap);l$.prototype.getApiPaths=function(){return GII};
l$.prototype.getExtension=function(W){return _.z(W,_.dE)};
l$.prototype.JSC$11766_buildRequest=function(W,k){k.token&&(W.continuation=k.token)};var tX=function(W,k){this.playerRequestBuilder=W;this.watchNextRequestBuilder=k};
_.D(tX,BCZ);tX.prototype.getApiPaths=function(){return L1z};
tX.prototype.getExtension=function(W){return _.z(W,_.RA)};
tX.prototype.isNavigationCommand=function(){return!0};
tX.prototype.JSC$11766_buildRequest=function(W,k,C){W.playerRequest={};W.watchNextRequest={};this.playerRequestBuilder.JSC$11766_buildRequest(W.playerRequest,k,C);this.watchNextRequestBuilder.JSC$11766_buildRequest(W.watchNextRequest,k,C)};
tX[ic]=[AX,xy];var EG=function(){};
_.D(EG,ap);EG.prototype.getApiPaths=function(){return y5A};
EG.prototype.getExtension=function(W){return _.z(W,FuC)};
EG.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.params=k.params)};var af=function(W){this.JSC$15795_storeWithEntities=W};
_.D(af,ap);af.prototype.getApiPaths=function(){return wL8};
af.prototype.getExtension=function(W){return _.z(W,wRC)||_.z(W,l12)};
af.prototype.JSC$11766_buildRequest=function(W,k,C){C.client_data&&(W.clientData=C.client_data);if(k.commerceActionConfig){var n=k.commerceActionConfig;k=n.actionId;n=n.commerceActionParams;k&&(W.actionId=k);n&&(W.commerceActionParams=n)}else{var N=k.actionId,B=k.commerceActionParams;C=k.entityKeys;N&&(W.actionId=N);B&&(W.commerceActionParams=B);var A;k=(n=this.JSC$15795_storeWithEntities)==null?void 0:(A=n.getState())==null?void 0:A.entities;if(C&&k){n=[];A=_.b(C);for(C=A.next();!C.done;C=A.next())if(N=
C.value,C=_.r8(N).entityType,N=_.hQ(k,C,N))B={},n.push((B[C]=N,B));W.entityMutationPayloads=n}}};
af.prototype.getRequestConfig=function(W){var k,C=(k=_.z(W,wRC))==null?void 0:k.requestSequenceType;if(C&&W.clickTrackingParams&&C!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:C}}};
af[ic]=[ns];var X9=function(){};
_.D(X9,ap);X9.prototype.getApiPaths=function(){return $CS};
X9.prototype.getExtension=function(W){return _.z(W,_.vDZ)};
X9.prototype.JSC$11766_buildRequest=function(W,k){k.feedbackData&&(W.feedbackData=k.feedbackData);k.params&&(W.itemParams=k.params)};
_.oq.Object.defineProperties(X9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f1=function(){};
_.D(f1,ap);f1.prototype.getApiPaths=function(){return Zkz};
f1.prototype.getExtension=function(W){return _.z(W,eR8)};
f1.prototype.JSC$11766_buildRequest=function(W,k,C){C.payments_payload&&(W.paymentsPayload=C.payments_payload);C.offer_params&&(W.offerParams=C.offer_params);k.transactionParams&&(W.transactionParams=k.transactionParams)};var dR=function(){};
_.D(dR,ap);dR.prototype.getApiPaths=function(){return RHS};
dR.prototype.getExtension=function(W){return _.z(W,_.skA)};
dR.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.buybucketParams&&(W.buybucketData={params:k.buybucketParams},k.stickerParams?W.buybucketData.stickerParams=k.stickerParams:(C.rich_chat_message?W.buybucketData.richChatMessage=C.rich_chat_message:C.chat_message_text&&(W.buybucketData.chatMessageText=C.chat_message_text),C.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=C.purchase_price_micros.toString())));k.donationAmountMicros&&(W.tipAmountMicros=k.donationAmountMicros,
k.tipParams&&(W.tipParams=k.tipParams));k.offerParams&&(W.offerParams=k.offerParams);k.productData&&(W.productData=k.productData);k.transactionParams&&(W.transactionParams=k.transactionParams)};var mv=function(){};
_.D(mv,ap);mv.prototype.getApiPaths=function(){return od8};
mv.prototype.getExtension=function(W){return _.z(W,$ib)};
mv.prototype.JSC$11766_buildRequest=function(W,k){k.updateFopParams&&(W.updateFopParams=k.updateFopParams)};var zU=function(){};
_.D(zU,ap);zU.prototype.getApiPaths=function(){return ik8};
zU.prototype.getExtension=function(W){return _.z(W,_.g7)};
zU.prototype.JSC$11766_buildRequest=function(W,k){k.couponCode&&(W.couponCode=k.couponCode);k.params&&(W.itemParams=k.params)};var DM=function(){};
_.D(DM,ap);DM.prototype.getApiPaths=function(){return TBb};
DM.prototype.getExtension=function(W){return _.z(W,_.xiC)};
DM.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;k.params&&(W.params=k.params);C.ctk&&(W.clientToken=C.ctk)};var VR=function(W){this.JSC$15830_storeWithEntities=W};
_.D(VR,ap);VR.prototype.getApiPaths=function(){return q$2};
VR.prototype.getExtension=function(W){return _.z(W,_.SC)};
VR.prototype.JSC$11766_buildRequest=function(W,k,C){C.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:C.purchase_price_micros.toString()}},C.rich_chat_message&&(W.productData.pdgData.richChatMessage=C.rich_chat_message),C.currency_code&&(W.productData.pdgData.currencyCode=C.currency_code));k.transactionParams&&(W.transactionParams=k.transactionParams);k.clientLocationContext&&(W.clientLocationContext=k.clientLocationContext);C.payments_payload&&(W.paymentsPayload=C.payments_payload);
C.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=C.funds_guarantee_callback_client_data);var n,N;C=(n=this.JSC$15830_storeWithEntities)==null?void 0:(N=n.getState())==null?void 0:N.entities;if(k.entityKeys&&C){n=[];k=_.b(k.entityKeys);for(N=k.next();!N.done;N=k.next()){var B=N.value;N=_.r8(B).entityType;if(B=_.hQ(C,N,B)){var A={};n.push((A[N]=B,A))}}W.entityMutationPayloads=n}};
VR[ic]=[ns];var JX=function(){};
_.D(JX,ap);JX.prototype.getApiPaths=function(){return uO2};
JX.prototype.getExtension=function(W){return _.z(W,GAs)};
JX.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;C.backend_analytics&&(W.serializedBackendAnalyticsEvent=C.backend_analytics);k.offerParams&&(W.offerParams=k.offerParams)};var cP=function(){};
_.D(cP,ap);cP.prototype.getApiPaths=function(){return ik8};
cP.prototype.getExtension=function(W){return _.z(W,hi3)};
cP.prototype.JSC$11766_buildRequest=function(W,k){k.params&&(W.itemParams=k.params)};var If=function(){};
_.D(If,ap);If.prototype.getApiPaths=function(){return UCA};
If.prototype.getExtension=function(W){return _.z(W,_.f1s)};
If.prototype.JSC$11766_buildRequest=function(W,k,C){C.resume_time_ms&&(W.resumeTimeMs=C.resume_time_ms);k.pauseParams&&(W.pauseParams=k.pauseParams)};var SE=function(){};
_.D(SE,ap);SE.prototype.getApiPaths=function(){return Ok8};
SE.prototype.getExtension=function(W){return _.z(W,_.yws)};
SE.prototype.JSC$11766_buildRequest=function(W,k,C){C=C===void 0?{}:C;C.c&&(W.redeemCode=C.c);C.rd&&(W.riskData=C.rd);C.ctk&&(W.clientToken=C.ctk)};var MG=function(){};
_.D(MG,ap);MG.prototype.getApiPaths=function(){return Ldb};
MG.prototype.getExtension=function(W){return _.z(W,_.di8)};
MG.prototype.JSC$11766_buildRequest=function(W,k){k.resumeParams&&(W.resumeParams=k.resumeParams)};var QR=function(W,k){this.clientName=W;this.defaultExpirationDelayMs=k};
QR.prototype.put=function(W,k){var C=this,n;return _.F(function(N){n=Object.assign({},k.data);n.key=W;n.clientName=C.clientName;n.expireTimestampMs===void 0&&(n.expireTimestampMs=(Math.round((0,_.oX)())+C.defaultExpirationDelayMs).toString());return N.return(C.putInternal(W,n))})};
QR[ic]=[am,OU6];var sLC=function(){QR.apply(this,arguments);this.JSC$15860_responseStore=new Map};
_.D(sLC,QR);_.Y=sLC.prototype;_.Y.get=function(W){var k=this;return _.F(function(C){return C.return(gB(k,W))})};
_.Y.putInternal=function(W,k){var C=this,n,N,B;return _.F(function(A){n=C.defaultExpirationDelayMs;k.expireTimestampMs&&(n=Number(k.expireTimestampMs)-Math.round((0,_.oX)()),N=_.Oe("mweb_override_response_store_expiration_ms"),N>0&&N<n&&(n=N));B=setTimeout(function(){C.remove(W)},n);
C.JSC$15860_responseStore.set(W,{entryData:k,timer:B});_.ab(A)})};
_.Y.remove=function(W){var k=this;return _.F(function(C){Gbt(k,W);_.ab(C)})};
_.Y.removeAll=function(){var W=this;return _.F(function(k){W.JSC$15860_responseStore.forEach(function(C){clearTimeout(C.timer)});
W.JSC$15860_responseStore.clear();_.ab(k)})};
_.Y.has=function(W){return!!this.JSC$15860_responseStore.get(W)};
_.Y.getKeys=function(){return this.JSC$15860_responseStore.keys()};
var gB=function(W,k){if(W=W.JSC$15860_responseStore.get(k))return new _.rB(W.entryData)},Gbt=function(W,k){var C=W.JSC$15860_responseStore.get(k);
C&&(clearTimeout(C.timer),W.JSC$15860_responseStore.delete(k))};var GEz;var Zw4=function(W,k,C){QR.call(this,W,k);this.token=C};
_.D(Zw4,QR);_.Y=Zw4.prototype;_.Y.get=function(W){var k=this,C,n;return _.F(function(N){return N.nextAddress==1?_.l(N,$zz(k.token),2):N.nextAddress!=3?(C=N.yieldResult,_.l(N,C.get("ResponseStore",[W,k.clientName]),3)):(n=N.yieldResult)?N.return(new _.rB(n)):N.return(void 0)})};
_.Y.putInternal=function(W,k){var C=this,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,$zz(C.token),2);n=N.yieldResult;return _.l(N,n.put("ResponseStore",k),0)})};
_.Y.remove=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,$zz(k.token),2);C=n.yieldResult;return n.return(C.delete("ResponseStore",[W,k.clientName]))})};
_.Y.removeAll=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,$zz(W.token),2);k=C.yieldResult;return _.l(C,K58(k,IDBKeyRange.only(W.clientName)),0)})};
_.Y.has=function(){throw Error("Vi");};_.p1=new _.Tc("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var ydC=function(W){var k;this.stateTagsData=(k=W.responseContext)==null?void 0:k.stateTags},$DA=function(W){var k;
return((k=W.stateTagsData)==null?void 0:k.stateTagsModified)||[]};var ZN7;ZN7=function(W){this.JSC$15873_responseStore=W};
_.$N=function(W,k,C){if(!_.m("state_tags_killswitch")){var n=new ydC(k);if($DA(n).length>0){var N=W.JSC$15873_responseStore.getKeys();N=_.b(N);for(var B=N.next();!B.done;B=N.next()){B=B.value;var A=gB(W.JSC$15873_responseStore,B);if(A){var w=_.kN(A);a:{var x=void 0;A=$DA(n);w=((x=(new ydC(w)).stateTagsData)==null?void 0:x.relevantStateTags)||[];x=_.b(w);for(w=x.next();!w.done;w=x.next())if(w=w.value,w.stateTag!=null&&A.includes(w.stateTag)&&w.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){A=
!0;break a}A=!1}A&&Gbt(W.JSC$15873_responseStore,B)}}}}var E;n=(E=k.responseContext)==null?void 0:E.maxAgeSeconds;_.m("web_prefetch_riw_for_next_video")&&!n&&k.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(n=3600);C&&n&&Number(n)>0&&(k=UJ(k,n),W.JSC$15873_responseStore.put(C,new _.rB(k)))};
ZN7.prototype.handleResponse=function(W,k){if(!k)throw Error("Wi");var C,n;k=(C=k.config)==null?void 0:(n=C.storeStrategy)==null?void 0:n.storeKey;_.$N(this,W,k)};
ZN7[ic]=[_.HV];_.m_K=new _.Tc("STORE_RESPONSE_PROCESSOR_TOKEN");var RAi=function(W){this.JSC$15876_responseStore=W};
RAi.prototype.handleResponse=function(W,k){if(k.input.match(_.RY(bkS))){var C;if(W==null?0:(C=W.entries)==null?0:C.length)for(W=_.b(W.entries),k=W.next();!k.done;k=W.next()){C=k.value.command;var n=void 0;k=(n=_.z(C,_.YZ))==null?void 0:n.unserializedPrefetchData;if(!C||!k)break;n=(new ro).JSC$11773_getStoreKey(C);var N=_.z(k,RyS),B=void 0,A=void 0,w=void 0,x=_.Oe("web_shorts_prefetch_service_ttl_seconds")>0?_.Oe("web_shorts_prefetch_service_ttl_seconds"):Number((w=(B=N)==null?void 0:(A=B.responseContext)==
null?void 0:A.maxAgeSeconds)!=null?w:3600);n&&x>0&&(N=UJ(N,x),this.JSC$15876_responseStore.put(n,new _.rB(N)));C=(new AX).JSC$11773_getStoreKey(C);k=_.z(k,DtI);B=N=n=void 0;A=_.Oe("web_shorts_prefetch_service_ttl_seconds")>0?_.Oe("web_shorts_prefetch_service_ttl_seconds"):Number((B=(n=k)==null?void 0:(N=n.responseContext)==null?void 0:N.maxAgeSeconds)!=null?B:3600);C&&A>0&&(k=UJ(k,A),this.JSC$15876_responseStore.put(C,new _.rB(k)))}}};
RAi[ic]=[_.HV];var vP=function(){this.scheduler=_.D7()},oL1;
vP.prototype.pause=function(){throw Error("Xi");};
vP.prototype.resume=function(){throw Error("Xi");};
vP.prototype.queue=function(W){var k=this,C=_.ME(),n=_.wI(this.scheduler,function(){try{var N;if(_.gH.instance)var B=_.gH.instance;else{var A=new _.AM("Error: Unexpected uninitialized CommandHandler.");_.dI(A);B=void 0}(N=B)==null||N.resolveCommand(W.command);C.resolve()}catch(w){C.reject(w)}});
C.promise.thenCatch(function(N){N instanceof _.ve&&k.scheduler.cancelJob(n)});
return C.promise};
vP.prototype.queueAll=function(W){var k=new Map;W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,k.set(C.id,this.queue(C));return k};var TuA=function(W,k){var C=this;this.taskModel=W;this.onTaskCancelledCallback=k;this.resolver=_.ME();W=W.proto.prefetchConfig;if(!W)throw Error("Yi");if(!W.prefetchAction)throw Error("Zi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(n){n instanceof _.ve&&(iNE(C,C.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),C.onTaskCancelledCallback(C.taskModel.id,C.jobId),C.tick("pcc"));
throw n;});
this.timerName=this.taskModel.id;_.JQ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},qgS=function(W){switch(W.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},iNE=function(W,k){_.Vb({prefetchInfo:{cancellationReason:k}},W.timerName)};
TuA.prototype.tick=function(W){_.cN(W,void 0,this.timerName)};var sG=function(){var W=this;this.scheduler=_.D7();this.maxInflightTasks=_.Oe("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Oe("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new DEb;this.onTaskCancelled=function(k,C){C&&W.scheduler.cancelJob(C);uKt(W,k);eE(W,3)}},UDB=function(){sG.instance||(sG.instance=new sG);
return sG.instance};
sG.prototype.pause=function(){this.prefetchCoordinatorState=0};
sG.prototype.resume=function(){eE(this,0)};
sG.prototype.queue=function(W){W=ON7(this,W);eE(this,1);return W};
sG.prototype.queueAll=function(W){var k=new Map;W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,k.set(C.id,ON7(this,C));eE(this,1);return k};
var ON7=function(W,k){var C=W.allPrefetchTasks.get(k.id);if(C)return C.cancellablePromise;try{var n=new TuA(k,W.onTaskCancelled)}catch(B){return _.eh(B)}C=n;C.tick("pcq");var N={prefetchInfo:{taskId:C.taskModel.id,isPrefetch:!0,fetchAction:C.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:C.taskModel.command.clickTrackingParams}};C.taskModel.csn&&(N.clientScreenNonce=C.taskModel.csn);_.Vb(N,C.timerName);W.allPrefetchTasks.set(k.id,n);W.drainingHeap.insert(-qgS(n),n);return n.cancellablePromise},
eE=function(W,k){W.prefetchCoordinatorState===k&&(W.prefetchCoordinatorState=2,LJ$(W))},LJ$=function(W){for(var k={};W.prefetchCoordinatorState!==0;k={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}k.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!k.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}k.taskId$jscomp$3=k.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(k.taskId$jscomp$3)){var C=-1;W.coordinatorTimeoutMs>0&&(C=_.wI(W.scheduler,function(n){return function(){GU(W,n.taskId$jscomp$3,Error("$i"))}}(k),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(k.taskId$jscomp$3,C);if(!W.JSC$15892_commandHandler){if(!_.gH.instance){GU(W,k.taskId$jscomp$3,Error("aj"));continue}W.JSC$15892_commandHandler=_.gH.instance}a:switch(k.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":C=1;break a;default:C=0}k.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(n){return function(){n.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$15892_commandHandler.resolveCommand(n.prefetchTask$jscomp$1.taskModel.command)||
GU(W,n.taskId$jscomp$3,Error("bj"))}catch(N){GU(W,n.taskId$jscomp$3,N)}}}(k),C,0)}}},jLT=function(W,k){(k=uKt(W,k))!=null&&(k.resolver.resolve(),k.tick("pce"));
eE(W,3)},GU=function(W,k,C){(k=uKt(W,k,C))!=null&&(k.resolver.reject(C),k.tick("pcc"),iNE(k,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Oe("prefetch_coordinator_error_logging_sampling_rate")&&(C=new _.AM("Prefetch Command failed.",k.taskModel.id,C.message),_.dI(C)));
eE(W,3)},uKt=function(W,k,C){var n=W.allPrefetchTasks.get(k);
n?((C=W.inflightPrefetchTasks.get(k))&&C!==-1&&W.scheduler.cancelJob(C),W.inflightPrefetchTasks.delete(k),W.allPrefetchTasks.delete(k)):_.zJ(new _.AM("Unexpected missing prefetch task when deleting task.",k,C==null?void 0:C.message));return n};var HNY=function(W,k,C,n,N){this.id=W;this.triggerOn=k;this.cancelOn=C;this.command=n;this.proto=N};
_.oq.Object.defineProperties(HNY.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var rdZ=function(){this.JSC$15897_prefetchCoordinator=UDB();oL1||(oL1=new vP);this.defaultCoordinator=oL1},gLY;
rdZ.getInstance=function(){gLY||(gLY=new rdZ);return gLY};
rdZ.prototype.get=function(W){switch(W){case 0:return this.JSC$15897_prefetchCoordinator;default:return this.defaultCoordinator}};var yR=function(){this.coordinatorSupplier=rdZ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},hAu=function(W){var k=_.VM()||void 0,C=Object.keys(PgE)[0];
if(C){var n=W.taskIdByTriggerId.get(C);if(n!=null){W.taskIdByTriggerId.delete(C);C=[];n=_.b(n);for(var N=n.next();!N.done;N=n.next())if(N=W.tasks.get(N.value))k!=="UNDEFINED_CSN"&&(N.csn=k),C.push(N);C=iwm(C);k=[];C=_.b(C);for(n=C.next();!n.done;n=C.next()){N=_.b(n.value);n=N.next().value;N=N.next().value;n=W.coordinatorSupplier.get(n).queueAll(N);n=_.b(n);var B=n.next();for(N={};!B.done;N={taskId$jscomp$9:void 0},B=n.next()){var A=_.b(B.value);B=A.next().value;A=A.next().value;N.taskId$jscomp$9=
B;B=A;k.push(N.taskId$jscomp$9);W.queuedPromisesByTask.set(N.taskId$jscomp$9,_.aa(B,function(w){return function(){KJE(W,w.taskId$jscomp$9)}}(N)))}}}}else _.zJ(new _.AM("Unexpected malformed TriggerEvent."))};
yR.prototype.trigger=function(W,k){var C=this,n=this.tasks.get(W);if(!n||this.queuedPromisesByTask.has(W))return!1;W$T(this,W,n.triggerOn);k!=="UNDEFINED_CSN"&&(n.csn=k);k=this.coordinatorSupplier.get(n.taskType).queue(n);this.queuedPromisesByTask.set(W,_.aa(k,function(){KJE(C,W)}));
return!0};
yR.prototype.cancel=function(W){var k=this.queuedPromisesByTask.get(W);if(k)k.cancel();else return KJE(this,W)};
var KJE=function(W,k){W.queuedPromisesByTask.delete(k);var C=W.tasks.get(k);if(!C)return!1;W.tasks.delete(k);W$T(W,k,C.triggerOn);(C=oEK(C.cancelOn))&&(W=W.taskIdByCancelId.get(C))&&W.delete(k);return!0},W$T=function(W,k,C){(C=Object.keys(C)[0])&&(W=W.taskIdByTriggerId.get(C))&&W.delete(k)};var PgE={taskRegistered:{}},$y=function(){yR.instance||(yR.instance=new yR);this.JSC$15906_taskManager=yR.instance};
_.D($y,o_);
$y.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){C=_.z(W,y42);if((n=C)==null||!n.tasks){var B=new _.AM("RegisterTasksCommand is missing tasks.");_.dI(B);return N.return()}B=k.JSC$15906_taskManager;for(var A=_.b(C.tasks),w=A.next();!w.done;w=A.next())if(w=w.value,w=w.id&&w.triggerOn&&w.cancelOn&&w.command?new HNY(w.id,w.triggerOn,w.cancelOn,w.command,w):void 0,w){var x=Object.keys(w.triggerOn)[0];if(x){var E=oEK(w.cancelOn);E?(B.tasks.set(w.id,w),B.taskIdByTriggerId.has(x)||B.taskIdByTriggerId.set(x,
new Set),B.taskIdByTriggerId.get(x).add(w.id),B.taskIdByCancelId.has(E)||B.taskIdByCancelId.set(E,new Set),B.taskIdByCancelId.get(E).add(w.id)):_.zJ(new _.AM("Unexpected malformed cancelOn field."))}else _.zJ(new _.AM("Unexpected malformed triggerOn field."))}else _.zJ(new _.AM("Unexpected malformed Task proto."));hAu(k.JSC$15906_taskManager);_.ab(N)})};var kmT={},CRt=(kmT.rendered={priority:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var k={};k.ramGb=_.NX.navigator.deviceMemory;var C={staticContext:{}};k.ramGb&&Tr2(k.ramGb)&&(C.staticContext.memoryTotalKbytes=(k.ramGb*1048576).toString());W.numCpu&&Tr2(W.numCpu)&&(C.staticContext.cpuCores=W.numCpu);if(_.m("web_enable_adaptive_appl_signal")){W={};k=_.Ml("rses_dpj");var n=_.Ml("rsef_dpj");k&&k>0&&n&&n>0&&(k=Math.ceil(n-k),k>0&&(W.loadLatency=k));W.loadLatency&&Tr2(W.loadLatency)&&
(C.appL=W.loadLatency.toString())}_.a9("applicationStarted",C)}},kmT);var nwZ=new _.Tc("WINDOW_ON_ERROR"),NwT=new _.Tc("ERROR_WEIGHT_MAPS"),Yo1=new _.Tc("INIT_ERROR");var Bw1={},byY=(Bw1.initialized={priority:10,callback:function(W){W.injector.resolve(Yo1)()}},Bw1);var AYE=function(){},F$E=function(){var W=_.QK("meta_logger_impl");
W||(W=new AYE,_.$g("meta_logger_impl",W));return W},wH1=function(){F$E().csiSubscriptionKey=AvP("meta_logging_csi_event",function(W){var k=W.timerName;
if(W=W.timelineData){_.JQ(k,{startTime:W.startTime},k);W.infos&&_.Vb(W.infos,k);for(var C=_.b(Object.keys(W.ticks)),n=C.next();!n.done;n=C.next())n=n.value,_.cN(n,W.ticks[n],k)}})};
AYE.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&xsm(this.csiSubscriptionKey)};var xfi={},lDE=(xfi.initialized={priority:10,callback:function(){wH1()}},xfi);var tw$=function(W,k){this.innertubeClientName=W;this.JSC$15922_prefCookie=k};
tw$.prototype.record=function(){if(_.m("web_li_record_binary_eval_tick")){var W=_.Ml("rsef_dpj");var k=_.Ml("rses_dpj");W=W!==void 0&&k!==void 0?Math.round(W-k):void 0;if(W!==void 0&&W>0){k=_.h4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var C=this.poolSize;if(!(k.valuesSeen>=1E9)){if(k.valuesSample.length<C)k.valuesSample.push(W);else{var n=Math.floor(Math.random()*(k.valuesSeen+1));n<C&&(k.valuesSample[n]=W)}k.valuesSeen+=1}_.KE(this.storagePrefix+"-"+this.innertubeClientName,
k,2592E3);W=k.valuesSample;k=qBK(W);W=W.length<5?void 0:k<400?1:k<1700?2:3;W!==void 0&&(this.JSC$15922_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$15922_prefCookie.save())}}else _.WR(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15922_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15922_prefCookie.save()};
tw$[ic]=[am,KDA];var EwC=function(){tw$.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.D(EwC,tw$);var ukm=!1;var aD7=new _.Tc("PAGE_LOAD_TIME_TOKEN");var XHS=new _.Tc("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ZM=function(W,k){this.JSC$15945_storeWithEntities=W;this.JSC$15945_commandHandler=k;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ZM.prototype.start=function(){this.JSC$15945_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ZM.prototype.observeDownloadingEntities=function(){var W=_.okz(this.JSC$15945_storeWithEntities.getState().entities).map(function(n){return i8p(n)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var k=_.rK({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:pEJ()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Ur(_.w8("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15945_commandHandler.resolveCommand(k)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var C=RyK(this.JSC$15945_storeWithEntities.getState().entities).map(function(n){return i8p(n)});
this.downloadingEntities.filter(function(n){return C.includes(n)}).length&&(W=_.rK({openPopupAction:c1J()}),this.JSC$15945_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
ZM[ic]=[ns,_.uI];var fDS;_.Rf=function(W,k,C,n,N,B,A,w){this.JSC$15948_playerApiPromise=W;this.JSC$15948_commandHandler=k;this.JSC$15948_screenManager=C;this.offlineWebClientEligibility=n;this.JSC$15948_prefStorage=N;this.JSC$15948_actionRouter=B;this.entityTypeMap=A;this.JSC$15948_persistentStorePromiseAccessor=w;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
fDS=function(){var W=_.f().resolve(_.Rf),k;_.F(function(C){if(C.nextAddress==1)return W.downloadFailureListenerBound?C.return():_.l(C,W.JSC$15948_playerApiPromise,2);k=C.yieldResult;k.addEventListener("onOfflineOperationFailure",function(n){if(n.failureReason&&n.entityKey&&n.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(n.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var N=_.r8(n.entityKey).entityId;N&&W.JSC$15948_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
N)}else if(_.m("kevlar_woffle")){N=W.JSC$15948_commandHandler;var B=N.resolveCommand;n=n.failureReason;var A=_.w8("TRANSFER_FAILED",void 0,"Download failed");n==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(A=_.w8("STORAGE_FULL",void 0,"Storage full"));B.call(N,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ur(A),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.ab(C)})};
_.Rf.prototype.deleteVideo=function(W,k){var C=this,n,N,B;return _.F(function(A){if(A.nextAddress==1)return _.l(A,C.JSC$15948_playerApiPromise,2);n=A.yieldResult;B={offlineLoggingData:{offlineDeleteReason:(N=k)!=null?N:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.l(A,n.queueOfflineAction(W,C.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",B),0)})};
_.Rf.prototype.pauseVideoDownload=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.JSC$15948_playerApiPromise,2);C=n.yieldResult;C.pauseVideoDownload(W);_.ab(n)})};
_.Rf.prototype.resumeVideoDownload=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.JSC$15948_playerApiPromise,2);C=n.yieldResult;return _.l(n,C.resumeVideoDownload(W),0)})};
_.Rf[ic]=[_.qE,_.uI,_.nR,XHS,Of,$k,rZs,rC];var dfB=new _.Tc("DOWNLOAD_STATE_STORE_TOKEN");var mfi=function(W,k){this.JSC$15967_persistentStorePromiseAccessor=W;this.store=k;this.upliftCompletionResolver=new _.gn},Vw$=function(){var W=_.f().resolve(z_7),k;
_.F(function(C){switch(C.nextAddress){case 1:if(W.upliftImplPromise)return C.return(W.upliftImplPromise);_.F0(C,2);W.upliftImplPromise=Dfi(W);return _.l(C,W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.M7(C,3);break;case 2:throw k=_.EF(C),W.upliftCompletionResolver.reject(k),k;case 3:return C.return(W.upliftImplPromise)}})},Dfi=function(W){var k,C,n;
return _.F(function(N){switch(N.nextAddress){case 1:return _.cv("LOGGED_IN")?_.l(N,W.JSC$15967_persistentStorePromiseAccessor(),2):N.return();case 2:k=N.yieldResult;if(!k)return _.cN("vdeur"),N.return();_.cN("vdeus");_.F0(N,3);return _.l(N,JYC(k),5);case 5:C=N.yieldResult;W.store.dispatch(JTw(C));k.observe(function(B){cTz(W.store,B)});
_.M7(N,4);break;case 3:throw n=_.EF(N),_.cN("vdeur"),n;case 4:_.cN("vdeuc"),_.ab(N)}})},JYC=function(W){var k;
return _.F(function(C){if(C.nextAddress==1)return _.l(C,PCz(W),2);k=C.yieldResult;return C.return(k.reduce(function(n,N){if(!N.data||!N.key||!N.entityType)return n;n[N.entityType]||(n[N.entityType]={});n[N.entityType][N.key]=N.data;return n},{}))})};
mfi[ic]=[rC,_.ak];var z_7;z_7=new _.Tc("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.of=new _.Tc("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var i$=function(W,k){this.JSC$15970_persistentStorePromiseAccessor=W;this.transportService=k};
i$.prototype.refresh=function(){var W=this,k,C,n,N;return _.F(function(B){if(B.nextAddress==1)return _.cv("LOGGED_IN")?_.l(B,W.JSC$15970_persistentStorePromiseAccessor(),2):B.return();if(B.nextAddress!=3)return(k=B.yieldResult)?_.l(B,vEm(k),3):B.return();if((C=B.yieldResult)&&!(Number(C.data.refreshTimestampMs||0)<(0,_.oX)()))return B.return();n={browseId:"SPaccount_downloads"};N=_.RY(L6);_.DY(W.transportService,n,N).then(function(A){var w;if(k&&(A==null?void 0:(w=A.responseContext)==null?void 0:
w.maxAgeSeconds)!==0){var x;w=(A==null?void 0:(x=A.responseContext)==null?void 0:x.maxAgeSeconds)||604800;x=String(Math.floor((0,_.oX)())+w*1E3);k.put("service:downloads_settings:fallback",new _.rB({innertubeResponse:A,refreshTimestampMs:x}))}});
_.ab(B)})};
i$[ic]=[_.p1,_.xZ];var TU=function(W,k){this.JSC$15974_playerPromise=W;this.store=k;this.started=!1};
TU.prototype.start=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return W.started?C.return():_.l(C,W.JSC$15974_playerPromise,2);k=C.yieldResult;k.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));k.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(k.isOrchestrationLeader)W.updateIsLeader(k.isOrchestrationLeader());else{var n=new _.AM("Function isOrchestrationLeader is undefined",{"player.isReady":k.isReady(),"player.playVideo":k.playVideo?
"defined":"undefined"});_.dI(n);W.updateIsLeader(!1)}W.started=!0;_.ab(C)})};
TU.prototype.updateIsLeader=function(W){this.store.dispatch(_.jo({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
TU[ic]=[_.qE,_.ak];var cYu=function(W,k){this.networkStatusManager=W;this.JSC$15977_prefStoragePromise=k;this.redirectsToPreload=["https://youtube.com"]},ID6=function(){var W=_.f().resolve(cYu),k,C,n,N,B,A;
_.F(function(w){switch(w.nextAddress){case 1:return _.l(w,W.JSC$15977_prefStoragePromise,2);case 2:k=w.yieldResult;if(!(C=k)){w.jumpTo(3);break}return _.l(w,k.get("yt-redirect-prefetch-id"),4);case 4:C=w.yieldResult;case 3:if(C||!W.networkStatusManager.isNetworkAvailable())return w.return();n={cache:"reload",redirect:"manual"};N=_.b(W.redirectsToPreload);B=N.next();case 5:if(B.done){if(!k){w.jumpTo(0);break}return _.l(w,k.set("yt-redirect-prefetch-id",!0,86400),0)}A=B.value;_.F0(w,8);return _.l(w,
_.NX.fetch(A,n),10);case 10:_.M7(w,6);break;case 8:_.EF(w);case 6:B=N.next(),w.jumpTo(5)}})};var qG=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
qG.prototype.openDialog=function(W,k,C){var n=this,N;return _.F(function(B){(N=n.container)==null||N.openDialog(W,k,C);_.ab(B)})};
qG.prototype.closeDialog=function(){var W=this,k;return _.F(function(C){(k=W.container)==null||k.closeDialog();_.ab(C)})};
qG.prototype.isDialogOpen=function(){var W=this,k,C;return _.F(function(n){return n.return((C=(k=W.container)==null?void 0:k.isDialogOpen())!=null?C:!1)})};
qG[ic]=[_.qI(UdI)];_.Soi=new _.Tc("POPUP_CONTROLLER_TOKEN");var Mw6=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Mw6.prototype.registerPanel=function(W,k){if(W){this.panelMap.set(W,k);var C=this.pendingPanelResolvers.get(W);C&&(C.resolve(k),this.pendingPanelResolvers.delete(W))}};
Mw6.prototype.getPanel=function(W){var k=this,C;return _.F(function(n){return(C=k.panelMap.get(W))?n.return(C):n.return(QW$(k,W))})};
var QW$=function(W,k){var C,n;return _.F(function(N){if(C=W.pendingPanelResolvers.get(k))return N.return(C.promise);n=new _.gn;W.pendingPanelResolvers.set(k,n);return N.return(n.promise)})},pHZ=function(W){Mw6.call(this);
var k=this;this.popupController=W;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return k.panelMap.size}}};
_.D(pHZ,Mw6);_.Y=pHZ.prototype;_.Y.getReloadContinuation=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.getPanel(W),2);C=n.yieldResult;return n.return(C.getReloadContinuation())})};
_.Y.showPanel=function(W,k,C,n,N,B,A){var w=this,x,E,a,X;return _.F(function(d){if(d.nextAddress==1){A&&w.updatePanelContinuationDatas.set(W,A);if((x=C)==null?0:(E=x.engagementPanelPopupPresentationConfig)==null?0:E.popupType){a=C.engagementPanelPopupPresentationConfig.popupType;N===void 0&&(N=document.body);var V=d.return,c=w.popupController,M=c.openPopup;a:switch(a){case "PANEL_POPUP_TYPE_DIALOG":var p="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":p="DROPDOWN";break a;default:throw Error("dj`"+
a);}return V.call(d,M.call(c,W,k,p,N))}return _.l(d,w.getPanel(W),2)}X=d.yieldResult;(k||B)&&X.updatePanel(k,!1,n,B);X.showPanel(n);_.ab(d)})};
_.Y.hidePanel=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,k.getPanel(W),2);C=n.yieldResult;C.hidePanel();k.popupController.closePopup(W);_.ab(n)})};
_.Y.isVisible=function(W,k){var C=this,n;return _.F(function(N){if(N.nextAddress==1)return k&&!C.panelMap.has(W)?N.return(!1):_.l(N,C.getPanel(W),2);n=N.yieldResult;return N.return(n.isVisible())})};
_.Y.updatePanel=function(W,k,C,n,N,B){C=C===void 0?!1:C;var A=this,w;return _.F(function(x){if(x.nextAddress==1){if(!k&&!N)return x.return();B&&A.updatePanelContinuationDatas.set(W,B);return _.l(x,A.getPanel(W),2)}w=x.yieldResult;w.updatePanel(k,C,n,N);_.ab(x)})};
_.Y.registerPanelContent=function(W,k){W&&this.panelContentMap.set(W,k)};
_.Y.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.Y.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
pHZ[ic]=[_.Soi];var u$=function(W,k){this.innertubeTransportService=W;this.JSC$15993_screenManager=k},vw$=function(W){var k;
return!((k=W.panelLoadingStrategy)==null||!k.requestTemplate)};
u$.prototype.makeRequest=function(W){var k=this,C,n;return _.F(function(N){switch(N.nextAddress){case 1:if(!vw$(k)){N.jumpTo(2);break}_.F0(N,3);return _.l(N,_.Sr(k.innertubeTransportService,W),5);case 5:return C=N.yieldResult,C?N.return(C.content):(_.dI(Error("ej")),N.return(void 0));case 3:n=_.EF(N),_.dI(n);case 2:return N.return(void 0)}})};
u$.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
u$.prototype.execute=function(W){var k=this,C,n,N,B,A,w,x,E,a,X;return _.F(function(d){if(d.nextAddress==1){C=W;n=C.data;N=C.fallbackVe;B=C.parentVe;A=C.createScreenConfig;w=C.renderFn;x=C.command;k.panelLoadingStrategy=n;var V,c,M=((V=k.panelLoadingStrategy)==null?0:V.screenVe)?(c=k.panelLoadingStrategy)==null?void 0:c.screenVe:N;M&&_.jC(k.JSC$15993_screenManager,M,B,A);return(E=k.getContent())?_.l(d,w(E),2):d.jumpTo(2)}return d.nextAddress!=4?vw$(k)?_.l(d,k.makeRequest(x),4):d.return():(X=a=d.yieldResult)?
_.l(d,w(X),0):d.return()})};
u$[ic]=[_.xZ,_.nR];var UG=function(){};
UG.prototype.getContainer=function(){return _.LY()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
UG.prototype.openSheet=function(W,k){var C=this,n,N,B,A,w,x;return _.F(function(E){switch(E.nextAddress){case 1:return n={stack:[],error:void 0,hasError:!1},_.F0(E,2,3),N=qD,_.l(E,C.isSheetOpen(),5);case 5:B=E.yieldResult;eY(n,YLP(N));if(B&&!_.m("delay_sheet_open_killswitch")){if(k&&C.currentTarget===k)return(A=C.getContainer())==null||A.closeSheet(),E.return();C.pendingData={data:W,target:k};return E.return()}W.viewModel&&(W={viewModel:W.viewModel});(w=C.getContainer())==null||w.openSheet(W,k);C.currentTarget=
k;case 3:_.xO(E);sC(n);_.t8(E,0);break;case 2:x=_.EF(E),n.error=x,n.hasError=!0,E.jumpTo(3)}})};
UG.prototype.closeSheet=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,(k=W.getContainer())==null?void 0:k.closeSheet(),2);if(C.nextAddress!=4)return W.currentTarget=void 0,!W.pendingData||_.m("delay_sheet_open_killswitch")?C.jumpTo(0):_.l(C,W.openSheet(W.pendingData.data,W.pendingData.target),4);W.pendingData=void 0;_.ab(C)})};
UG.prototype.isSheetOpen=function(){var W=this,k,C;return _.F(function(n){return n.return((C=(k=W.getContainer())==null?void 0:k.isSheetOpen())!=null?C:!1)})};var NK=window.documentPictureInPicture;var e_S=new _.Tc("APP_ROOT");var FXz=_.iH(["dark"]),wym=_.iH(["system-icons"]),xBm=_.iH(["typography"]),lv2=_.iH(["lang"]),tvK=_.iH(["style"]),Yap=_.iH(["dir"]),BU3=_.iH(["rounded-container"]),b4I=_.iH(["style"]),avw=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],OG=function(W){this.JSC$16005_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
OG.prototype.openWindow=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return window.documentPictureInPicture&&_.IJ()&&!k.currentPipWindow?_.l(N,(C=NK?NK:null)==null?void 0:C.requestWindow(W),2):N.return(!1);if(N.nextAddress!=3){n=N.yieldResult;if(!n)return N.return(!1);n.addEventListener("pagehide",function(){sWC(k)});
n.addEventListener("resize",k.handlePipWindowResize);k.pipWindowResizeDelay=new _.uD(function(){k.currentPipWindow&&_.KY(k.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.lB(k.currentPipWindow.innerWidth,k.currentPipWindow.innerHeight)])},n);
EKJ(n);fvK(n);return _.l(N,NUp(n),3)}if(!kpX())return N.return(!1);k.currentPipWindow=n;k.JSC$16005_eventForwarder=Xyp(n,k.JSC$16005_clientRoot);k.pipWindowResizeDelay.start();return N.return(!0)})};
OG.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var sWC=function(W){if(W.currentPipWindow){var k,C;(k=NK?NK:null)==null||(C=k.window)==null||C.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var n;(n=W.pipWindowResizeDelay)==null||n.dispose();W.pipWindowResizeDelay=void 0;var N;(N=W.JSC$16005_eventForwarder)==null||N.stop();W.JSC$16005_eventForwarder=void 0;k=_.b(W.onCloseCallbacks);for(C=k.next();!C.done;C=k.next())C=C.value,C();W.onCloseCallbacks=[];W.currentPipWindow=null}};
OG.prototype.getWindow=function(){return this.currentPipWindow};
var GmT=function(W,k){var C;(C=W.onCloseCallbacks)==null||C.push(k)};
_.oq.Object.defineProperties(OG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
OG[ic]=[e_S];_.yYA=new _.Tc("PICTURE_IN_PICTURE_CONTROLLER");var dBm=function(W,k){this.lengthY=this.lengthX=0;this.lengthX=k.x-W.x;this.lengthY=k.y-W.y};var $ft=function(){},PBi=function(W,k){var C;
(C=W.headerElement)==null||C.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:k}))};var Zyi=function(){};
Zyi.prototype.openPopup=function(W,k,C,n){var N=this,B;return _.F(function(A){if(!N.container)return A.return();B={openPopupAction:{popup:k,popupType:C,uniqueId:W}};return A.return(N.container.handleOpenPopupAction(B,n))})};
Zyi.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var R_$=function(){this.openTunnels=new Map},tEw=function(W,k,C){if(VvI(C)){C={handleEvent:function(A){k&&!k.closed&&typeof k.postMessage==="function"&&A&&A.origin&&A.source===k&&A.data&&A.data.action==="gcl_setup"&&k.postMessage({action:"gcl_transfer",
gadSource:2},A.origin)}};
for(var n=_.b(W.openTunnels),N=n.next();!N.done;N=n.next()){var B=_.b(N.value);N=B.next().value;B=B.next().value;if(N.closed)try{window.removeEventListener("message",B),W.openTunnels.delete(N)}catch(A){_.dI(A)}}k&&W.openTunnels.size<15&&(W.openTunnels.set(k,C),window.addEventListener("message",C))}};var owT=function(){this.clientParams=new Map},hrB=function(W){for(var k=_.b(W.clientParams.keys()),C=k.next();!C.done;C=k.next())C=C.value,C.startsWith("yt-mini-app-share")&&W.clientParams.delete(C)};var iyu=function(W,k){_.XK.call(this);var C=this;this.shortsController=W;this.storeWithShorts=k;W=_.nE(this.storeWithShorts,_.MmJ,function(n){if(n){var N,B=(N=C.shortsController.getRoot())==null?void 0:N.getPlayer(),A;(N=(A=C.shortsController.alternativePlayerContainerElement)==null?void 0:A.getPlayerContainer())&&(B==null||B.appendTo(N))}else{var w;A=(w=C.shortsController.alternativePlayerContainerElement)==null?void 0:w.getPlayerContainer().querySelector("#player");N=C.shortsController.activeIndex;
(w=(B=C.shortsController.getRoot())==null?void 0:B.querySelector('ytd-reel-video-renderer[id="'+N+'"] #player-container'))&&(A==null||A.appendTo(w,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.D(iyu,_.XK);var L1=function(W,k,C,n,N){var B=this;this.storeWithShorts=W;this.ephemeralResponseStore=k;this.store=C;this.innertubeTransportService=n;this.innertubeTransportLoader=N;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.X8(_.BG);this.isShortsPipActive=_.X8(_.b2);this.nextReelVe=_.F8(56921);this.prevReelVe=_.F8(56922);this.backButtonVe=_.F8(22156);this.TEST_ONLY={getActiveModules:function(){return B.activeModules}}},LZz,j_8,Twu;
L1.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push(new iyu(this,this.storeWithShorts)):(_.dIw(this.activeModules),this.activeModules.length=0)};
L1.prototype.getRoot=function(){return this.rootElement};
L1.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.iGY=function(W,k){var C,n,N,B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:return C=new ro,(n=C.JSC$11773_getStoreKey(k))&&W.ephemeralResponseStore.has(n)?_.l(x,W.ephemeralResponseStore.get(n),7):_.l(x,Twu(W,k),4);case 4:N=x.yieldResult;if(!n){x.jumpTo(3);break}B=UJ(N,3600);return _.l(x,W.ephemeralResponseStore.put(n,new _.rB(B)),3);case 7:N=(A=x.yieldResult)==null?void 0:_.kN(A);case 3:return N.replacementEndpoint&&(w=_.z(N.replacementEndpoint,_.YZ))&&N.sequenceContinuation&&(w.sequenceParams=
N.sequenceContinuation),x.return(N)}})};
LZz=function(W,k){k=(new go).JSC$11773_getStoreKey(k);return!!k&&W.ephemeralResponseStore.has(k)};
j_8=function(W,k,C){var n,N,B,A,w;_.F(function(x){if(x.nextAddress==1){n=new go;N=n.JSC$11773_getStoreKey(k);if(!N)return x.return();if(C.reelWatchSequenceResponse)return B=UJ(C.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(N,new _.rB(B)),x.jumpTo(0);if(!W.ephemeralResponseStore.has(N))return x.jumpTo(0);w=C;return _.l(x,W.ephemeralResponseStore.get(N),4)}w.reelWatchSequenceResponse=(A=x.yieldResult)==null?void 0:_.kN(A);_.ab(x)})};
Twu=function(W,k){var C=C===void 0?{}:C;var n,N,B;return _.F(function(A){switch(A.nextAddress){case 1:if(W.innertubeTransportService){n=W.innertubeTransportService;A.jumpTo(2);break}if(!W.innertubeTransportLoader){_.I4(Error("gj"));A.jumpTo(2);break}return _.l(A,W.innertubeTransportLoader(),4);case 4:n=A.yieldResult;case 2:return _.l(A,(N=n)==null?void 0:_.Sr(N,k,C),5);case 5:return B=A.yieldResult,A.return(B)}})};
_.oq.Object.defineProperties(L1.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
L1[ic]=[Q_Z,_.HV,ns,_.qI(_.xZ),_.qI(scY)];_.qoB=new _.Tc("STORAGE_MANAGER_TOKEN");var uMY=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},UfY;
uMY.prototype.enqueue=function(W,k){k===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
uMY.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.OyY=new _.Tc("TOAST_MANAGER_TOKEN");var L$B;_.jWi=_.GM(function(W){return _.t("basic-content-view-model",{class:_.Li("ytBasicContentViewModelHost",_.pq(W.className))},_.t(_.NI,{cond:function(){return W.data().headline},
then:function(k){return _.t("div",{class:"ytBasicContentViewModelHeadline"},_.t(_.Ya,{text:k}))}}),_.t(_.bI,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(k){return _.t("div",{class:"ytBasicContentViewModelParagraph"},_.t(_.NI,{cond:function(){var C=k();return!!(C.header||C.customHeader||C.headline)},
then:function(){return _.t(L$B,{paragraph:k})}}),_.t(_.NI,{cond:function(){return k().asset||k().text},
then:function(){return _.t("div",{class:"ytBasicContentViewModelParagraphContent"},_.t(_.NI,{cond:function(){return k().asset},
then:function(C){return _.t("div",{class:"ytBasicContentViewModelParagraphAsset"},_.t(_.Ex,{data:C},{contentPreviewImageViewModel:_.W2}))}}),_.t(_.NI,{cond:function(){return k().text},
then:function(C){return _.t("div",{class:"ytBasicContentViewModelParagraphText"},_.t(_.Ya,{text:C}))}}))}}))}))},"Kd");
L$B=_.GM(function(W){var k=W.paragraph;return _.t(_.qf,null,_.t(_.NI,{cond:function(){return k().headline},
then:function(C){return _.t(_.Ya,{text:C,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.t(_.Ex,{data:function(){return k().header||k().customHeader}},{sectionHeaderViewModel:function(C){return _.t(_.$V,{data:C.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ld");var rYZ=_.GM(function(W){return _.t("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.t(_.NI,{cond:function(){return W.expanded()},
then:function(){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.t("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.t(_.NI,{cond:function(){return W.data().expandedTitleImage},
then:function(k){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.t(_.pi,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:k}))}}),_.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.t(_.Ya,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.t(_.Ya,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.t(_.Ya,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.t("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.t(_.Ex,{data:function(){return W.data().infoButton}},{buttonViewModel:_.zn}),_.t(_.Ex,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(k){return _.t(_.zn,{data:k.data,
onClick:function(){var C;(C=W.expandedCallback)==null||C.call(W,!1)}})}})))},
else:function(){return _.t(Hy7,Object.assign({},W))}}))},"Md"),gw7=_.GM(function(W){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.t(_.NI,{cond:function(){return W.data().collapsedLabelImage},
then:function(k){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.t(_.pi,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:k,alt:""}))}}),_.t(_.Ya,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Nd"),Hy7=_.GM(function(W){var k=_.Pj(function(){var C;
return void((C=W.expandedCallback)==null?void 0:C.call(W,!0))});
return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":k},_.t("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.t(_.NI,{cond:function(){return W.data().collapsedImage},
then:function(C){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.t(_.pi,{width:16,height:16,data:C,alt:""}))}}),_.t(_.NI,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.t(gw7,Object.assign({},W))}}),_.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.t(_.Ya,{text:function(){return W.data().collapsedTitle}}))),_.t("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.t(_.NI,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.t(gw7,Object.assign({},W))}}),_.t(_.Ex,{data:function(){return W.data().infoButton}},{buttonViewModel:_.zn}),_.t(_.Ex,{data:function(){return W.data().expandButton}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
onClick:function(){var n;(n=W.expandedCallback)==null||n.call(W,!0)}})}})))},"Od");var PRC=_.GM(function(W){var k=_.b(_.h7(function(){return W.data().initiallyExpanded})),C=k.next().value,n=k.next().value,N,B=(N=_.f().resolve(_.qI(_.cj)))==null?void 0:N(),A=function(){var w=W.data().colorData;
if(w)return B?w==null?void 0:w.darkColorPalette:w==null?void 0:w.lightColorPalette};
return _.t("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.WJ({"background-color":function(){var w=A();return(w==null?0:w.section2Color)?_.Xi(w.section2Color):""}})},_.t(_.Ex,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(w){return _.t(rYZ,{data:w.data,
expanded:function(){return!!C()},
expandedCallback:function(x){n(x)}})}}),_.t(_.NI,{cond:function(){return C()},
then:function(){return _.t("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.t(_.Ex,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(w){return _.t(_.AG,{data:w.data,
includeMargin:!0,forceNarrowLayout:!0,palette:A})},
videoSummaryContentViewModel:function(w){return _.t(hzY,{data:w.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(w){return _.t(Nk,{data:w.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(w){return _.t(_.jWi,{data:w.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.t(_.Ex,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(w){return _.t("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.t(_.zn,{data:w.data}))}}))}}))},"Pd");var K$T=_.GM(function(W){var k=W.text;var C=W.marqueeSpacing;var n=W.scrollDelay;var N=W.scrollDuration;var B=W.enableMarqueeScroll;W=W.large;var A=_.b(_.kw(!1,void 0,"kfNqfd")),w=A.next().value,x=A.next().value,E=_.b(_.kw(0,void 0,"bYgZbf"));A=E.next().value;var a=E.next().value,X=_.yE();E=_.yE();var d=_.yE(),V=_.f().resolve(_.Sc);_.XM(function(){if(B()){var p=d.value.getBoundingClientRect().width,e=X.value.getBoundingClientRect().width;if(p>e){var u=(V==="ltr"?-1:1)*(p+(C?C():16));Promise.resolve().then(function(){x(!0);
a(u)})}}});
var c={},M={};return _.t("marquee-scroll",{class:_.Li("ytMarqueeScrollHost",(c.ytMarqueeScrollHostLarge=W,c)),el:X},_.t("div",{id:"marquee-scroll-inner-container",class:_.Li("ytMarqueeScrollInnerContainer",(M.ytMarqueeScrollAnimationEnabled=function(){return w()},M)),
el:E,style:_.WJ({gap:C?(0,_.Yu)(C):"16px","animation-duration":N?swS(N):"16s","animation-delay":n?swS(n):"3s","--marquee-translate":(0,_.Yu)(A)})},_.t("span",{el:d,dir:"auto"},_.t(_.Ya,{text:k,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.t(_.NI,{cond:w,then:function(){return _.t("span",{"aria-hidden":"true",dir:"auto"},_.t(_.Ya,{text:k,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Qd");_.h_E=_.GM(function(W){var k=W.data;var C=W.overlayDensity;W=_.Pj(function(){k().onTapCommand&&_.zj(k().onTapCommand);return!1});
var n=_.cB(),N={};return _.t("reel-sound-metadata-view-model",{class:_.Li("ytReelSoundMetadataViewModelHost",(N.ytReelSoundMetadataViewModelHostLarge=function(){return(C==null?void 0:C())===1},N)),
"on:click":W,tabindex:0,role:"button","on:keydown":n},_.t("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.t(_.NI,{cond:function(){return k().musicIcon},
then:function(B){return _.t(_.pi,{data:B,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.t("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.t(K$T,{text:function(){return k().soundMetadata},
enableMarqueeScroll:function(){return!!k().enableMarqueeScroll},
large:function(){return(C==null?void 0:C())===1}}))))},"Rd");var WhY,k3Z,jE,Yet,bSi,NAB,wv6,Fhu;WhY=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];k3Z=_.Oe("wil_icon_max_concurrent_fetches",Infinity);
jE=function(W,k,C){var n=this;this.iconSet=W;this.appDirection=k;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.NX.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.m("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.m("wil_icon_network_first");this.renderWhenIdle=_.m("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.m("wil_icon_load_immediately");this.isPurging=!1;W=function(){n.cacheStorageAvailable&&(n.cacheStorageAsync=_.NX.caches.open("yt-icons").then(function(B){return n.cacheStorageSync=B}).catch(function(){n.cacheStorageAvailable=!1}))};
C=(C==null?void 0:C())||{};C=_.b(Object.entries(C));for(k=C.next();!k.done;k=C.next()){var N=_.b(k.value);k=N.next().value;N=N.next().value;N=Ky(N);CIY(N);this.iconCache[k]=N.cloneNode(!0)}this.isPurging=nnA(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.U1X=function(W,k){var C=W.resolveIcon(k);return C?W.renderingMode===1?NAB(W,C,W.renderingMode):(k=W.iconCache[C.url])?(k=k.cloneNode(!0),Yet(W,k),NAB(W,C,W.renderingMode,k)):_.BA7(W,C).then(function(n){var N=n?0:1;Yet(W,n);return NAB(W,C,N,n)}):(_.mw(new _.AM("Icon not found",{iconShape:k})),function(){})};
Yet=function(W,k){if(k){W.counter+=1;W="_yt"+W.counter;k=[k].concat(_.J8(k.getElementsByTagName("*")));k=_.b(k);for(var C=k.next();!C.done;C=k.next())if(C=C.value,C.tagName==="style"&&C.textContent)C.textContent=bSi(C.textContent,W,!0);else for(var n=_.b(C.attributes),N=n.next();!N.done;N=n.next()){N=N.value;N.name==="id"&&(N.value+=W);["mask","fill","clip-path"].includes(N.name)&&(N.value=bSi(N.value,W));if(N.name==="style"){var B=C.style;try{B.cssText=bSi(B.cssText,W,!0)}catch(a){var A=void 0,w=
void 0,x=void 0,E=void 0;HP({error:((A=a)==null?void 0:(x=(w=A).toString)==null?void 0:x.call(w))||"",el:C.outerHTML,style:!!B,cssText:(E=B)==null?void 0:E.cssText})}}N.name==="xlink:href"&&(N.value=N.value.replace(/#(.*)/,"#$1"+W))}}};
bSi=function(W,k,C){var n=/url\(["']?#(.*?)["']?\)/;(C===void 0?0:C)&&(n=/url\(["']?#(.*?)["']?\)/g);return W.replace(n,"url(#$1"+k+")")};
NAB=function(W,k,C,n){return function(N,B){var A=Object.assign({},{iconColor:"currentcolor",iconWidth:k.size+"px",iconHeight:k.size+"px",iconDisplay:"block"},B);B=_.wu("DIV");var w=A.iconColor,x=A.iconFilter;A="width: "+A.iconWidth+"; height: "+A.iconHeight+"; display: "+A.iconDisplay+";";x&&(A+=" filter: "+x+";");C===0&&(A+=" fill: "+w+";");C===1&&(x=k.url,A+=" -webkit-mask: url("+x+") no-repeat center / cover; mask: url("+(x+") no-repeat center / cover; background-color: ")+w);k.allowMirroring&&
W.appDirection==="rtl"&&(A+=" transform: scale(-1, 1); transform-origin: center center;");B.setAttribute("style",A);C===0&&n&&B.appendChild(n);N.appendChild(B)}};
_.BA7=function(W,k){var C,n,N;return _.F(function(B){C=function(A){return $3(A)};
n=k.url;if(!Aj$(n))throw Error("hj");N=Fhu(W,n);return B.return(N.then(function(A){return A.clone().text()}).then(function(A){var w=C(A);
A=k.size;var x=_.wu("DIV");_.jN(x,w);w=_.xL(x.firstElementChild!==void 0?x.firstElementChild:_.flY(x.firstChild,!0));A=CIY(w,A);W.iconCache[n]=A.cloneNode(!0);delete W.responsePromises[n];return A}).catch(function(){}))})};
wv6=function(W){var k,C=(k=W.requestAninmationFrameResolver)==null?void 0:k.promise;C||(W.requestAninmationFrameResolver=new _.gn,C=W.requestAninmationFrameResolver.promise,_.NX.requestAnimationFrame(function(){var n;(n=W.requestAninmationFrameResolver)==null||n.resolve();W.requestAninmationFrameResolver=null}));
return C};
Fhu=function(W,k){var C,n;return _.F(function(N){if(N.nextAddress==1)return W.waitForAnimationFrame?_.l(N,wv6(W),2):N.jumpTo(2);C=W.responsePromises[k];C||(n=function(){var B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:if(!W.cacheStorageAvailable){B=void 0;x.jumpTo(2);break}if(A=W.cacheStorageSync){x.jumpTo(3);break}return _.l(x,W.cacheStorageAsync,4);case 4:A=x.yieldResult;case 3:B=A;case 2:return w=B,W.isNetworkFirstStrategy?x.return(W.fetchAndUpdateCache(k,w).catch(W.getCacheStorageResponse.bind(W,
k,w))):x.return(W.getCacheStorageResponse(k,w).catch(W.fetchAndUpdateCache.bind(W,k,w)))}})},C=W.renderWhenIdle?new Promise(function(B,A){_.wI(_.aM,function(){n().then(B).catch(A)},10)}):n(),W.responsePromises[k]=C);
return N.return(C.catch(function(B){delete W.responsePromises[k];HP({error:(B==null?0:B.toString)?B.toString():"",url:k});throw B;}))})};
jE.prototype.fetchAndUpdateCache=function(W,k){var C=this;return _.F(function(n){return n.return(xIY(C,W).then(function(N){lEC(C,W,N,k);return N}))})};
var xIY=function(W,k){var C;return _.F(function(n){if(W.numFetches<k3Z)return W.numFetches+=1,n.return(tOY(W,k).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var N=Object.keys(W.queuedResponseResolvers)[0],B=W.queuedResponseResolvers[N];delete W.queuedResponseResolvers[N];B.resolve(xIY(W,N))}}));
C=new _.gn;W.queuedResponseResolvers[k]=C;return n.return(C.promise)})},tOY=function(W,k,C){C=C===void 0?2:C;
var n;return _.F(function(N){n={credentials:"same-origin",priority:"low"};return N.return(_.NX.fetch(k,n).then(function(B){return B.ok?B:Promise.reject(Error("ij`"+B.status+"`"+B.statusText))}).catch(function(B){if(C>0)return tOY(W,k,C-1);
throw B;}))})},lEC=function(W,k,C,n){_.F(function(N){return n?N.return(new Promise(function(B){_.wI(_.aM,function(){var A,w;
return _.F(function(x){switch(x.nextAddress){case 1:if(!W.isNetworkFirstStrategy){A=void 0;x.jumpTo(2);break}return _.l(x,n.match(k).catch(function(){}),3);
case 3:A=x.yieldResult;case 2:if(w=A){x.jumpTo(4);break}return _.l(x,n.put(k,C.clone()).catch(function(E){HP({error:(E==null?0:E.toString)?E.toString():"",url:k})}),4);
case 4:B(),_.ab(x)}})},50)})):N.return()})};
jE.prototype.getCacheStorageResponse=function(W,k){return _.F(function(C){return k?C.return(k.match(W).then(function(n){return n&&n.ok?n:Promise.reject()})):C.return(Promise.reject())})};
var CIY=function(W,k){k===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+k+" "+k);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(N){var C;HP({error:((C=N)==null?0:C.toString)?N.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(B){var n;HP({error:((n=B)==null?0:n.toString)?B.toString():
""})}}return W},Aj$=function(W){for(var k=_.b(WhY),C=k.next();!C.done;C=k.next())if(W.startsWith(C.value)&&W.endsWith(".svg"))return!0;
return!1};
jE.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var HP=function(W){_.zJ(new _.AM("Error in IconManager",W))},nnA=function(W){if(_.m("wil_icons_cache_purge_killswitch"))return!1;
try{var k=_.NX.localStorage}catch(B){return!1}if(!k||!W.cacheStorageAvailable)return!1;var C=function(B){try{var A;(A=k)==null||A.setItem("yt-icons-last-purged",B.toString())}catch(x){var w;HP({error:((w=x)==null?0:w.toString)?x.toString():""})}},n=Number(k.getItem("yt-icons-last-purged"));
if(!n)return n=new Date,n=n.setDate(n.getDate()-Math.floor(Math.random()*90+1)),C(n),!1;if(function(B,A){B=new Date(B);A=new Date(A);return A.getMonth()-B.getMonth()+12*(A.getFullYear()-B.getFullYear())}(n,Date.now())<3)return!1;
try{return _.NX.caches.delete("yt-icons").then(function(B){B&&C(Date.now());return B}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(B){var N;
HP({error:((N=B)==null?0:N.toString)?B.toString():""});return!1}};
jE[ic]=[SXS,_.Sc,_.qI(pDT)];_.rR=function(W,k){this.iconManager=W;this.iconsToFetch=k};
_.rR[ic]=[_.rH,_.qI(QOE)];var EnB=function(W,k,C){this.requestKey=W;this.vwl=k;this.v86=C;this.w1Z=function(){return new XMLHttpRequest};
this.b66=void 0;this.uOo=[]};
EnB.prototype.getLatestChallengeResponse=function(){return this.v86};
var LJC=function(W,k,C){var n,N,B,A;return _.F(function(w){if(w.nextAddress==1){_.JQ("attestation_challenge_fetch");_.cN("att_fs",void 0,"attestation_challenge_fetch");if(!W.b66)throw new _.fx(9,"Missing fetcher");return _.l(w,W.b66(k,C),2)}n=w.yieldResult;B=(N=n)==null?void 0:N.bgChallenge;if(!B)throw new _.fx(15,"Missing field");W.v86=n;W.uOo.forEach(function(x){x(n)});
A=snJ(B);_.cN("att_fc",void 0,"attestation_challenge_fetch");WV3("attestation_challenge_fetch");return w.return(A)})},aD8=function(W,k){var C,n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:C=new nN(100,3E5,.25,2),n=void 0;case 2:if(!(C.currBackoffCount_<10)){w.jumpTo(4);break}_.F0(w,5);if(!(C.currBackoffCount_>0)){w.jumpTo(7);break}return _.l(w,JsP(C.getValue()),7);case 7:return _.l(w,aES(W,k),9);case 9:return N=w.yieldResult,w.return(N);case 5:B=_.EF(w);B instanceof _.fx?n=B:(A=B instanceof Error?B.message:"Unknown",n=new _.fx(9,A));CBs(C);w.jumpTo(2);break;case 4:if(n)throw n;throw new _.fx(9,"Unknown error");}})},aES=function(W,
k){k=ydz($DZ(new GbS,k),W.requestKey);
var C=new _.gn,n=W.w1Z();n.open("POST",W.vwl);n.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");n.setRequestHeader("Content-Type","application/json+protobuf");n.onload=function(){if(QzX(n)){var N=Uf8(n.responseText);C.resolve(N)}else C.reject(new _.fx(_.TAX(Hv(n)),n.statusText))};
n.onerror=function(){C.reject(new _.fx(_.TAX(Hv(n)),n.statusText))};
n.send(k.serialize());return C.promise};var fEi=function(W){this.networkStatusManager=W;this.isDownloaded=efK===void 0?function(){return!1}:efK;
this.isReady=!1;this.cQZ=Xv$(this)},Xv$=function(W){var k;
return _.F(function(C){if(C.nextAddress==1)return _.l(C,zq2(),2);if(C.nextAddress!=3)return k=C.yieldResult,_.l(C,fez(k),3);W.vN=C.yieldResult;Ivm(W.vN).then(function(){W.isReady=!0});
return C.return(W.vN)})},dIE=function(W,k,C){W.vN?(W=W.vN.q3({nb:C,
r6J:!0,nLN:!0}),k.serviceIntegrityDimensions={poToken:W}):_.dI(Error("jj"))};
fEi.prototype.processContext=function(W){var k=this;if(!W.input.match(_.RY(ndC)))return _.vn();var C=W.innerTubeRequest,n=C.videoId;return!n||this.isDownloaded(C)||this.networkStatusManager&&!this.vN&&!this.networkStatusManager.isNetworkAvailable()?_.vn():this.vN?this.isReady?(dIE(this,C,n),_.vn()):new p8(Ivm(this.vN).then(function(){dIE(k,C,n)})):new p8(this.cQZ.then(function(N){return _.F(function(B){if(B.nextAddress==1)return _.l(B,Ivm(N),2);
dIE(k,C,n);_.ab(B)})}))};var mIC=new _.Tc("WEB_PO_CONTEXT_PROCESSOR");var zqS=function(W,k){var C=this;this.g1a=0;var n;this.hHu=(n=k==null?void 0:k.hHu)!=null?n:window;this.networkStatusManagerPromise=k==null?void 0:k.networkStatusManagerPromise;var N;this.requestKey=(N=k==null?void 0:k.requestKey)!=null?N:_.LS("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var B;this.dzj=(B=k==null?void 0:k.dzj)!=null?B:function(x){return new cS(x)};
var A;n=(A=k==null?void 0:k.oFi)!=null?A:function(x,E,a){return new EnB(x,E,a)};
this.bgChallenge=snJ(W.bgChallenge);this.ttlSeconds=G92(UR(W.challenge||""));this.wx=n(this.requestKey,_.m("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.NX.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",W);cs3(this.wx);var w;this.ywS=(w=k==null?void 0:k.ywS)!=null?w:function(x){_.b6(C.hHu.document,"visibilitychange",function(){C.hHu.document.visibilityState===
"visible"&&x()})}},VOZ=function(W){if(!W.sS){var k={maxAttempts:5,
nQJ:W.ttlSeconds*1E3};Sac(W.hHu);W.sS=W.dzj({wx:W.wx,xQ:{disable:_.m("html5_web_po_disable_remote_logging"),vY:"aGIf",nl3:JQX("html5_web_po_experiment_ids"),lDI:_.m("wpo_dis_lfdms")?0:1E3},b77:k,nwt:W.bgChallenge,x4t:Mvm});W.g1a=Date.now();TuZ(W.sS,function(){W.g1a=Date.now()});
cjw(W.sS,function(){return _.F(function(n){return n.return(DIA(W))})});
var C=W.q6I.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(n){n.listen("publicytnetworkstatus-online",C)});
W.ywS(C)}};
zqS.prototype.q6I=function(){if(Date.now()>this.g1a+this.ttlSeconds*1E3){var W;(W=this.sS)==null||iNb(W)}};
var DIA=function(W){if(W.tmw)return W.tmw;if(!W.sS)throw Error("kj");W.tmw=new QA({sS:W.sS,wx:W.wx,gFa:!0,onError:Mvm});return W.tmw},pyI=function(W,k){W=new zqS(W,k);
VOZ(W);DIA(W)};var gR=function(W,k){this.store=W;this.queue=[];this.supportsFocus=_.m("web_ephemeral_actions_focus");k==null||k.addEventListener("yt-navigate-start",this.reset.bind(this))};
gR.prototype.enqueue=function(W){var k=W.command,C=W.durationMs,n=W.elementToFocus;var N=W.label;var B=W.elementToFocus;W.command?N=_.w8("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:N,shortcut:_.w8("SHIFT_PLUS_ENTER")}):B&&this.supportsFocus&&(W=N+". "+_.w8("SHIFT_PLUS_ENTER")+" to move focus.",N=_.w8("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:N,shortcut:_.w8("SHIFT_PLUS_ENTER")},W));C={announcement:N,durationMs:C!=null?C:this.supportsFocus?8E3:void 0};k?C.command=k:n&&this.supportsFocus&&(n.classList.add("ephemeral-action-focusable-element"),
C.selector=n.tagName+".ephemeral-action-focusable-element");this.queue.push(C);JjB(this)};
gR.prototype.activate=function(W){var k=_.Hw4(this.store.getState());if(k){if(k==null?0:k.command)_.dy(k.command),this.store.dispatch(Pj8(null));(k==null?0:k.selector)&&this.supportsFocus&&(k=document.querySelector(k.selector),_.vg2(k));W.preventDefault()}};
var JjB=function(W){if(!_.Hw4(W.store.getState())&&W.queue.length){var k=W.queue.shift();k&&(W.previousAnnouncement===k.announcement&&(k.announcement+="\u00a0"),W.store.dispatch(Pj8(k)),W.previousAnnouncement=k.announcement,W.timeoutId=setTimeout(function(){if(k.selector&&W.supportsFocus){var C;(C=document.querySelector(k.selector))==null||C.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(Pj8(null));JjB(W)},k.durationMs))}};
gR.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Pj8(null));this.queue.length=0;this.timeoutId=void 0};
gR[ic]=[_.ak,_.rF];_.PP=new _.Tc("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var cjE=new _.Tc("AUTH_SERVICE_TOKEN");var s73=_.iH(["about:blank"]),e2w;var IE$=new _.Tc("API_IFRAME_TOKEN"),SeA=new _.Tc("FETCH_FN_TOKEN"),MOu=new _.Tc("PARSE_FN_TOKEN"),Q4Z=new _.Tc("WINDOW_REQUEST_TOKEN");var L$2;L$2=new _.Tc("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.pvu=new _.Tc("MISC_UI_SHARED_FLAGS_TOKEN");var vn$=function(){};
vn$.prototype.getFlag=function(W){if(W.configType!==2)throw Error("lj");return eqA(W)};
var eqA=function(W){switch(W.flagType){case "bool":return _.m(W.flagName);case "int":return _.sA(_.Oe(W.flagName));case "double":return _.Oe(W.flagName);case "string":return _.LS(W.flagName);case "int32_list":return JQX(W.flagName);case "int64_list":return JQX(W.flagName).map(function(k){return _.sA(k)});
case "string_list":return _.jO(W.flagName);default:throw Error("mj");}};var K1=function(W,k,C){k=k===void 0?{}:k;mf.call(this,C===void 0?"uninitialized":C);this.env=W;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}];k.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=k.shouldWaitOnAsyncImmediate)};
_.D(K1,mf);K1.prototype.init=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return k.processPluginOptions.shouldWaitOnAsyncImmediate?_.l(n,W(k.env),2):(W(k.env),n.jumpTo(2));if(n.nextAddress!=4)return k.jobSet?_.l(n,k.jobSet.completedResolver.promise,4):n.jumpTo(4);C=_.Ir();C.parkOrScheduleJob(function(){k.transition("rendering")},10,"ci");
_.ab(n)})};
K1.prototype.initialRender=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return k.processPluginOptions.shouldWaitOnAsyncImmediate?_.l(n,W(k.env),2):(W(k.env),n.jumpTo(2));if(n.nextAddress!=4)return k.jobSet?_.l(n,k.jobSet.completedResolver.promise,4):n.jumpTo(4);C=_.Ir();C.parkOrScheduleJob(function(){k.transition("rendered")},10,"cr");
_.ab(n)})};
K1.prototype.afterRenderImmediate=function(W){var k=this,C;return _.F(function(n){if(n.nextAddress==1)return k.processPluginOptions.shouldWaitOnAsyncImmediate?_.l(n,W(k.env),2):(W(k.env),n.jumpTo(2));if(n.nextAddress!=4)return k.jobSet?_.l(n,k.jobSet.completedResolver.promise,4):n.jumpTo(4);C=_.Ir();C.parkOrScheduleJob(function(){k.transition("after-render-deferred")},10,"carml");
_.ab(n)})};
K1.prototype.afterRenderDeferred=function(W){var k=this;return _.F(function(C){W(k.env);_.ab(C)})};var s47={},G31=(s47.rendered={priority:0,callback:function(W){dLS(W.injector.resolve(xI))}},s47);var yjT=!1,qap=0,R22=null,TUp=null;var $I$=new _.Tc("NETWORK_SLI_TOKEN");var ZSC=function(W,k,C,n){this.networkSli=W;this.fetchFn=k;this.parseFn=C;this.requestFn=n};
ZSC.prototype.fetch=function(W,k,C){var n=this,N,B,A;return _.F(function(w){N=RqB(n,W,k);A=(B=n.fetchFn)!=null?B:fetch;return w.return(A(N).then(function(x){return n.handleResponse(x,C)}).catch(function(x){_.zJ(x);
if((C==null?0:C.expectJsonStrict)&&x instanceof LE&&x.errorType===1)return Promise.reject(x)}))})};
var aK8=function(W,k,C,n){var N,B,A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:return N=RqB(W,k,C),_.F0(a,2),_.l(a,fetch(N),4);case 4:B=a.yieldResult;_.M7(a,3);break;case 2:throw _.EF(a),new LE(2,"Failed to parse streaming response",N.url);case 3:if(!B.redirected&&!B.ok)throw(A=W.networkSli)==null||A.failure(),new _.AM("Streaming fetch request not ok",N.url);if(!B.body)throw new _.AM("No response body in streaming response",N.url);w=B.body.pipeThrough(new TextDecoderStream).getReader();
x=new _.HF;E={};return a.return(onZ(W,w,x,bPm,E,n))}})},RqB=function(W,k,C){if(W.networkSli){var n=_.KS(_.ud(k,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(n)}n=C;_.m("wug_networking_gzip_request")&&(n=$sJ(C));var N;return new ((N=W.requestFn)!=null?N:window.Request)(k,n)},onZ=function(W,k,C,n,N,B){var A,w,x,E,a,X,d,V,c;
return _.F(function(M){if(M.nextAddress==1)return _.l(M,k.read(),2);A=M.yieldResult;w=A.value;if(x=A.done)return(E=W.networkSli)==null||E.success(),M.return(N);try{a=C.parse(w)}catch(p){throw new LE(1,"Failed to parse streaming response",w);}if(a!=null)for(X=_.b(a),d=X.next();!d.done;d=X.next())V=d.value,n(N,V),c=void 0,(c=B)==null||c(N,V);return M.return(onZ(W,k,C,n,N,B))})};
ZSC.prototype.handleResponse=function(W,k){var C,n=(C=this.parseFn)!=null?C:JSON.parse;C=W.text().then(function(N){if((k==null?0:k.jspbResponseCtor)&&W.ok)return QeX(k.jspbResponseCtor,N);N=N.replace(")]}'","");if((k==null?0:k.expectJsonStrict)&&N)try{var B=n(N)}catch(w){throw new LE(1,"JSON parsing failed after fetch");}var A;return(A=B)!=null?A:n(N)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),C=C.then(function(N){_.zJ(new _.AM("Error: API fetch failed",W.status,W.url,N));return Object.assign({},N,{errorMetadata:{status:W.status}})}));
return C};
ZSC[ic]=[_.qI($I$),_.qI(SeA),_.qI(MOu),_.qI(Q4Z)];var iSt=new _.Tc("NETWORK_MANAGER_TOKEN");var TAA=[1,2,4,8,16,30],uc1=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.b(TAA);for(var k=W.next();!k.done;k=W.next())this.brokenFrameSummarizers.push(new qeu(k.value/60*1E3))},UIY=function(W){var k=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||k},OSS=function(W){for(var k=[],C=_.b(W.brokenFrameSummarizers),n=C.next();!n.done;n=C.next())n=n.value,n=n.brokenFrameCount!==0?{severityMs:Math.round(n.targetFrameTimeMs),
eventCount:n.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(n.averageDurationBetweenEventsMs)}:void 0,n&&k.push(n);return{summaries:k,monitoringDurationMs:Math.round(W.elapsedTimeMs)}};
_.oq.Object.defineProperties(uc1.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 qeu=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.oq.Object.defineProperties(qeu.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var Lh7=function(){};
Lh7.prototype.start=function(W,k){var C=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var n=new uc1({maxTimeMs:W});this.monitor=n;this.lastSummaryInternal=void 0;this.metadataToLog=k;return new Promise(function(N){var B=function(A){if(A===void 0)C.stop(),N(void 0);else if(C.monitor!==n)A=Object.assign({},OSS(n),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),N(A);else{var w=C.monitor;if(!UIY(w)){w.frameCountInternal++;if(w.prevTime===void 0)w.startTime=
A;else for(var x=A-w.prevTime,E=_.b(w.brokenFrameSummarizers),a=E.next();!a.done;a=E.next()){a=a.value;var X=a.currTimeMs;a.currTimeMs+=x;x>a.targetFrameTimeMs+2&&(a.brokenFrameCount++,a.timeOfFirstBrokenFrameMs===void 0&&(a.timeOfFirstBrokenFrameMs=X),a.timeOfLastBrokenFrameMs=X)}w.prevTime=A}UIY(C.monitor)?N(C.stop()):_.aM.addJob(B,5,0)}};
_.aM.addJob(B,5,0)})};
Lh7.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var k=Object.assign({},OSS(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(k.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var C={droppedFramesSummary:k,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(C[W.type]=W.data);_.a9("manualSmoothnessMeasurement",C)}this.monitor=void 0;this.lastSummaryInternal=k;this.metadataToLog=void 0;return k};_.j4Y=new _.Tc("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var HS1;HS1=function(W){this.JSC$16121_expiringStorage=new wd(W)};
_.rjT=function(W){if(_.uSI()&&(W=_.xyJ(_.B4()+"::"+W)))return new HS1(W)};
HS1.prototype.set=function(W,k,C){C=C!==void 0?Date.now()+C:void 0;this.JSC$16121_expiringStorage.set(W,k,C)};
HS1.prototype.get=function(W){return this.JSC$16121_expiringStorage.get(W)};
HS1.prototype.remove=function(W){this.JSC$16121_expiringStorage.remove(W)};var gnY=new _.Tc("SESSION_STORAGE");_.hX=function(){};
_.hX.getInstance=function(){var W=_.QK("ytglobal.storage_");W||(W=new _.hX,_.$g("ytglobal.storage_",W));return W};
_.hX.prototype.estimate=function(){var W,k,C;return _.F(function(n){W=navigator;return((k=W.storage)==null?0:k.estimate)?n.return(W.storage.estimate()):((C=W.webkitTemporaryStorage)==null?0:C.queryUsageAndQuota)?n.return(UB4()):n.return()})};
_.$g("ytglobal.storageClass_",_.hX);var PI1=_.iH(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),KhB=_.iH(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var xDY={"/":_.CE,"/?feature=ytca":_.CE,"/feed/downloads":_.IO2};var Fp=function(W,k,C){this.JSC$16132_upliftPromise=W;this.store=k;this.JSC$16132_persistentStorePromiseAccessor=C};
Fp.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.m("kevlar_modern_downloads_page")?!0:!1};
Fp.prototype.localInnertubeResponse=function(W){var k=this;return _.F(function(C){return W.browseId==="FEdownloads"?_.m("kevlar_modern_downloads_page")?C.return(hq6(k)):C.return(WKS(k)):W.browseId==="FEsmart_downloads"&&_.m("kevlar_modern_downloads_page")?C.return(kWA(k)):C.return(Promise.reject(Error("oj")))})};
Fp.prototype.canProvideFallbackResponse=function(){return!0};
Fp.prototype.localFallbackInnertubeResponse=function(W){var k=this,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return _.l(B,k.JSC$16132_persistentStorePromiseAccessor(),2);case 2:C=B.yieldResult;if(W.browseId!=="SPaccount_downloads"||!C){B.jumpTo(3);break}return _.l(B,vEm(C),4);case 4:if(n=B.yieldResult)return B.return(_.kN(n));case 3:return W.browseId==="FEwhat_to_watch"?B.return(Cp$(k)):(N=_.m("web_offline_continuation_automatic_retry")||_.m("web_offline_continuation_retry_button"))&&
W.continuation?B.return(ng6(k)):B.return(Ndi(k))}})};
var Cp$=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$16132_upliftPromise,2);k=_.XKz(W.store.getState().entities);return k.length?C.return(Yhu(W,k)):C.return(Ndi(W))})},WKS=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$16132_upliftPromise,2);if(n.nextAddress!=3)return k=Bd7([{offlineItemSectionRenderer:{}}]),_.l(n,bHt(W,k),3);C=n.yieldResult;C.onResponseReceivedActions=[f6("REFRESH_DOWNLOADS")];return n.return(C)})},hq6=function(W){var k,C,n,N,B,A,w,x,E,a,X,d,V;
return _.F(function(c){if(c.nextAddress==1)return _.l(c,W.JSC$16132_upliftPromise,2);if(c.nextAddress!=3)return k=W.store.getState(),C=k.entities,n=_.aY(C),N=_.XD(C),B=_.jrz(k),A=_.LSX(k),w=_.HEP(k),x=_.zjX(C),E=_.wn(n),a=_.f5(C),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$AI(n,N,x,B,A,E,a,w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},d=_.w8("DOWNLOADS",void 0,"Downloads"),_.l(c,AME(W,X,d),3);V=c.yieldResult;
V.onResponseReceivedActions=[f6("REFRESH_DOWNLOADS")];return c.return(V)})},kWA=function(W){var k,C,n,N,B,A,w,x,E;
return _.F(function(a){if(a.nextAddress==1)return _.l(a,W.JSC$16132_upliftPromise,2);if(a.nextAddress!=3)return k=W.store.getState(),C=k.entities,n=_.aY(C),N=_.wn(n),B=_.f5(C),A={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.R1w(n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},w=_.w8("SMART_DOWNLOADS",void 0,"Smart downloads"),x=Gap(N,B),_.l(a,AME(W,A,w,x),3);E=a.yieldResult;E.onResponseReceivedActions=[f6("REFRESH_DOWNLOADS")];
return a.return(E)})},Ndi=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1)return _.l(n,Wq(W.JSC$16132_upliftPromise,W.store),2);k=n.yieldResult;C=Bd7([SBz(k)]);return n.return(bHt(W,C))})},ng6=function(W){var k,C,n,N;
return _.F(function(B){if(B.nextAddress==1)return k={},C=W.store.getState().continuation.continuationCommand,_.l6(k,_.dE,C),_.l(B,Wq(W.JSC$16132_upliftPromise,W.store,k,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);n=B.yieldResult;N={};_.l6(N,_.bFY,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:n}}}],targetId:"browse-feedFEwhat_to_watch"});return B.return({responseContext:{},onResponseReceivedActions:[N]})})},Bd7=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},Yhu=function(W,k){var C,n;
return _.F(function(N){var B={contents:dq(k)};C=B&&B.contents?B:{};_.m("kevlar_modern_downloads_page")&&(C=Object.assign({},_.o52(k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:C}}}]}};return N.return(bHt(W,n))})},bHt=function(W,k){var C,n;
return _.F(function(N){if(N.nextAddress==1)return _.l(N,W.JSC$16132_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return C=N.yieldResult,_.l(N,Cs(C),3);n=N.yieldResult;return N.return({responseContext:{},contents:k,topbar:n})})},AME=function(W,k,C,n){var N,B;
return _.F(function(A){if(A.nextAddress==1)return _.l(A,W.JSC$16132_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3)return N=A.yieldResult,_.l(A,Cs(N),3);B=A.yieldResult;var w=A.return,x=n;x=x===void 0?"":x;var E={dynamicTextViewModel:{text:{content:C}}};var a={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.w8("SETTINGS",void 0,"Settings"),accessibilityText:_.w8("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:ql("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return w.call(A,{responseContext:{},contents:k,topbar:B,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:E,actions:a,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:x}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:C}}})})};var FK1=function(){this.moduleRegistry={};this.fetchCount=0};
FK1.prototype.isFetching=function(){return this.fetchCount>0};
var sv=function(W,k){W.moduleRegistry[k.toString()]={asyncId:k,isFetching:!1};return W};
FK1.prototype.JSC$16143_loadModules=function(){for(var W=this,k=new Map,C=[],n=_.b(_.v6.apply(0,arguments)),N=n.next();!N.done;N=n.next()){N=N.value;var B=this.moduleRegistry[N];B?B.resolver?k.set(N,B.resolver):(B.resolver=new _.gn,k.set(N,B.resolver),C.push(B.asyncId),B.isFetching=!0):(B=new _.gn,k.set(N,B),B.resolve(void 0))}C.length&&(this.fetchCount+=1,_.aa(_.E9.getMultipleAsync.apply(_.E9,_.J8(C)).then(function(A){for(var w=0;w<C.length;w++){var x=A[w],E=W.moduleRegistry[C[w].toString()];E.isFetching=
!1;E.resolver.resolve(x)}}).catch(function(A){for(var w=_.b(C),x=w.next();!x.done;x=w.next()){x=x.value;
var E=W.moduleRegistry[x.toString()];E.resolver=void 0;E.isFetching=!1;k.get(x.toString()).reject(A)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.J8(k.values())).map(function(A){return A.promise}))};_.G_=new _.Tc("MODULE_REGISTRY_TOKEN");var w4Z={},x77=(w4Z.rendered={priority:0,callback:function(W){a:{var k=void 0;try{var C;b:{if(_.ljm()){var n=_.w3X(_.B4()+"::pom");if(n){var N=new kD(n);break b}}N=void 0}var B=(C=N)==null?void 0:C.get("role_text");if(!B)break a;k={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:B}]}}}}}}catch(x){}k&&W.injector.resolve(_.uI).resolveCommand(k)}try{var A=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(A){var w=JSON.parse(A);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
w&&W.injector.resolve(_.uI).resolveCommand(w)}}catch(x){}}},w4Z);var l57,tfu={},EgC=(tfu.initialized={priority:10,callback:function(){l57=mE()}},tfu.rendering={callback:function(W){var k;
return _.F(function(C){if(C.nextAddress==1)return _.l(C,l57,2);k=C.yieldResult;if(!k.endpoint)throw Error("qj`"+_.NX.location.href);J3(W,k);_.ab(C)})}},tfu);var a5Z={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(_.J8(_.m("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(W){var k=W.stack;if(k.includes("chrome://")||k.includes("chrome-extension://")||W.message.includes("chrome-extension://")||k.includes("moz-extension://")||k.includes("local.adguard.org")||k.includes("auctioneer3.50million.club")||k.includes("youtubedownloader")||k.includes("youtube_home_page")||k.includes("is_youtube_video_no_longer_available")||
k.includes("switchScreenSizeHack")||k.includes("yt_main_big_banner.js")||k.includes("YouTubeCenter.js")||k.includes("/mytube.js")||k.includes("JSON.parseWrapper")||k.includes("/inj_js/common.js")||k.includes("firebug-lite")||k.includes(".repl.co/")||k.includes("linkfix")||k.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&k.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
k.includes("<anonymous>"))return!0;if(k.includes("https://www.youtube.com"))return!1;W=k.split("\n");if(!W.length)return!1;if(W.length<=3&&k.includes("s.onloadeddata"))return!0;k=0;for(var C=_.b(W),n=C.next();!n.done;n=C.next())n=n.value,(n.includes("https://")||n.includes("http://"))&&k++;return k/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.Cr)return!1;var k=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),C=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return k||C||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var k=W.stack.trim().split("\n");k.length&&k[0].endsWith("Error: "+W.message)&&k.shift();k.length&&k[k.length-1].includes("at window.onerror (")&&k.pop();if(!k.length)return!0;if(W.message==="Script error.")return k[0].includes("www.youtube.com")||k.length>=2&&k[0].startsWith("at new")&&k[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.b(k);for(k=W.next();!k.done;k=W.next())if(k=k.value,!(k.includes("<anonymous>")||
k.startsWith("load@")||k.startsWith("global code@")||k.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1}]};var X4Y={},f5E=(X4Y.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:e_S,useValue:W.root});W.injector.addProvider({provide:nwZ,useValue:bXI});W.injector.addProvider({provide:NwT,useValue:a5Z});var k={};W.injector.addProvider((k.provide=Yo1,k.useFactory=function(C,n){return function(){jlI(C,n)}},k[ic]=[nwZ,
NwT],k));W.injector.addProvider({provide:Kk,useClass:Kk})}},X4Y);var d7E={},m71=(d7E.initialized={priority:3,callback:function(){var W;if(W=nS3()){W=W.replace("/",".");var k=_.tQ();k.set("tz",W);k.save();W=!0}else W=!1;W||(W=_.tQ(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},d7E);var zlZ={},D7u=(zlZ.initialized={priority:10,callback:function(W){W.injector.resolve(Kk).start();W=_.SI();var k=_.cv("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.cv("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.cv("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.cv("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Bq(_.ImX(),{mainAppWeb:Object.assign({},W,{pageType:k})});_.Bq(MFw(),{mainAppWeb:Object.assign({},W,{pageType:k})});
_.Bq(QVm(),{mainAppWeb:W});_.Bq(p04(),{mainAppWeb:W});v6s(function(){_.bH(QVm(),"FAILURE");_.bH(p04(),"FAILURE")});
CUz();nbw();Cjz()}},zlZ);var Vft={},JMB=(Vft.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.cN("dl"),_.Ir().processSignal("pcl");else{var W=function(){_.cN("dl");_.Ir().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},Vft);var cMA={},I5B=(cMA.rendering={priority:0,callback:function(){var W=_.Ir();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},cMA);var Sh7=function(){};
_.D(Sh7,o_);
Sh7.prototype.resolveCommand=function(W,k){var C,n,N,B,A,w,x,E;return _.F(function(a){N=(C=_.z(W,_.oqZ))==null?void 0:(n=C.dialog)==null?void 0:n.commentReplyDialogRenderer;if(!N)throw new _.AM("No dialog in createCommentReplyDialogEndpoint");A=(B=k.form)==null?void 0:B.event;if(!A)throw new _.AM("Event not passed in when resolving command");w=_.b(A.composedPath());for(x=w.next();!x.done;x=w.next())if(E=x.value,E.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||E.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return E.showReplyDialog(N),a.return();
_.ab(a)})};var W7=function(W){this.pageRequestService=W;this.JSC$16158_prefetchCoordinator=UDB()};
_.D(W7,o_);W7.prototype.resolveCommand=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1){C=_.z(W,dtZ);if((n=C)==null||!n.taskId)throw Error("rj");N=C.taskId;_.F0(A,2);return _.l(A,_.Ukx(k.pageRequestService,W,{},"").then(function(w){if(!w)throw Error("sj");},function(w){throw Error("tj`"+w);
}),4)}if(A.nextAddress!=2)return jLT(k.JSC$16158_prefetchCoordinator,N),_.M7(A,0);
B=_.EF(A);GU(k.JSC$16158_prefetchCoordinator,N,B);_.ab(A)})};
W7[ic]=[dk];var k_=function(W){this.innertubeTransportService=W};
_.D(k_,o_);k_.prototype.resolveCommand=function(W){var k=this,C,n;return _.F(function(N){C=_.z(W,XK2);if(C.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||C.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")n=C.boolValue?2:1,_.Zn.getInstance().setState(n,!0,!0);return _.l(N,_.Sr(k.innertubeTransportService,W),0)})};
k_[ic]=[_.xZ];var Cm={},Mfu=(Cm.addToPlaylistEndpoint=TD(fd),Cm.addToToastAction=TD(xU),Cm.adsControlFlowOpportunityReceivedCommand=TD(hI),Cm.captionLanguageSelectActionCommand=TD(vs),Cm.captionPickerEndpoint=TD(eG),Cm.changeMiniAppPlayStateCommand=TD(de),Cm.changeTimelyActionVisibilityCommand=TD(w9),Cm.channelCreationFormEndpoint=TD(xm),Cm.clearLocationCommand=TD(XX),Cm.copyLinkCommand=TD(Z4),Cm.copyTextEndpoint=TD(Cd),Cm.createCommentReplyDialogEndpoint=eW2(Sh7),Cm.createPlaylistServiceEndpoint=TD(Rm),Cm.dismissDialogEndpoint=
TD(zL),Cm.entityUpdateCommand=TD(N1),Cm.feedbackEndpoint=TD(bv),Cm.getAnswerCommand=TD(hsS),Cm.getPaymentsClientTokenCommand=TD(Ej),Cm.getTranscriptEndpoint=TD(lN),Cm.googlePaymentBillingCommand=TD(aT),Cm.googlePaymentPurchaseManagerCommand=TD(Xa),Cm.hideEngagementPanelEndpoint=TD(D4),Cm.insertRichSectionCommand=TD(tL),Cm.listMutationCommand=TD(Ef),Cm.logGtmCommand=TD(lv),Cm.notifyDropdownOptionSelectedCommand=TD(mz),Cm.openAdAllowlistInstructionCommand=TD(_.Ws),Cm.openOnePickAddVideoModalCommand=
TD(om),Cm.pingingEndpoint=TD(km),Cm.playlistEditEndpoint=TD(TL),Cm.playlistVotingRefreshPopupCommand=TD(q1),Cm.refreshPanelEndpoint=TD(Vx),Cm.saveImageToDeviceEndpoint=TD(nd),Cm.scrollToSectionEndpoint=eW2(WJi),Cm.seekToVideoTimestampCommand=TD(sf),Cm.setCookieCommand=TD(Uf),Cm.setLocalStorageCommand=TD(YU),Cm.setPrefStorageEntryCommand=TD(Ld),Cm.setSettingEndpoint=TD(k_),Cm.sfvAudioItemPlaybackCommand=TD(GL),Cm.shareImageCommand=TD(jG),Cm.sharingProviderDataCommand=TD(Hs),Cm.showCaptionLanguageSelectActionCommand=
TD(yx),Cm.showDialogCommand=TD(Im),Cm.showEngagementPanelEndpoint=TD(SG),Cm.showSheetCommand=TD(M1),Cm.showTransientPlayerScrimOverlayCommand=TD($m),Cm.submitFormWithValidationFlowCommand=TD(we),Cm.talkToRecsDeselectCommand=TD(Ba),Cm.talkToRecsNextCommand=TD(bN),Cm.talkToRecsSelectCommand=TD(Ag),Cm.talkToRecsUpdateTextCommand=TD(Fa),Cm.toggleEngagementPanelCommand=TD(Qx),Cm.undoFeedbackEndpoint=TD(FX),Cm.updateEngagementPanelContentCommand=TD(pd),Cm.updateUrlParamCommand=TD(tg),Cm.verifyCommand=TD(xm),
Cm.webSubmitFormCommand=TD(uv),Cm.ACK_PLAYABLES_3P_DATA_CONSENT=TD(re),Cm.CANCEL_NAVIGATION=TD(ge),Cm.COPY_SHARE_URL=TD(Ps),Cm.MINI_APP_EXIT_DIALOG_SEEN=TD(hL),Cm.MINI_APP_OPEN_URL=TD(Kd),Cm.REQUEST_MINI_APP_FULLSCREEN=TD(Wa),Cm.RESUME_NAVIGATION=TD(kU),Cm.SHARE_PLAYABLE_WITH_HIGH_SCORE=TD(CC),Cm.TELL_US_WHY=TD(AL),Cm);_.m("web_enable_prefetching_videos_on_home")&&(Mfu.prefetchWatchCommand=TD(W7),Mfu.registerTasksCommand=TD($y));
_.m("enable_share_panel_navigation_logging_fix_on_web")&&(Mfu.shareEntityServiceEndpoint=TD(JL));var BXA=Object.assign({},Mfu);var QXi={},p4t=(QXi.initialized={priority:10,callback:A23},QXi);var vgS={},elT=(vgS.initialized={callback:function(W){var k={},C={};h4P().install((k.document_disposed={callback:function(){_.m("finalize_all_timelines")?kuw():Dr();oKX("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.wPX();var n=W.injector.resolve(Kk);n.intervalId!==void 0&&(n.intervalId&&_.aM.cancelJob(n.intervalId),n.intervalId=void 0,--n.currentPartitionIndex,n=Hms(n),n>0&&jks({mainAppWeb:_.SI(),survivalSli:{partitionMinute:n,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));RRx(Mt);Qq!=null&&
Qq.flush();Ob&&Ob.snapshotAndFlush()}},k),(C.flush_logs={callback:function(){_.fM()}},C))}},vgS);var sXS={},GWC=(sXS.rendered={priority:0,callback:function(){var W=new cYS;W.increment("STARTED");if(_.DE("LOGGED_IN")&&_.DE("SERVER_VERSION")!=="test"&&_.DE("SERVER_VERSION")!=="dev"&&!lAA()&&!xuS()){W.increment("EXECUTING");var k=document.createElement("iframe");k.style.display="none";_.jew(k,2,_.QG("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.DE("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(k);W.increment("DONE")}}},sXS);var yMi={},$7u=(yMi.rendered={callback:function(){UDB().resume()}},yMi);var ZHC={acknowledgeChannelTouStrikeCommand:m0(LC),addToPlaylistServiceEndpoint:m0(Ul),addToPlaylistEndpoint:m0(Ul),addUpcomingEventReminderEndpoint:m0(bo),browseEndpoint:m0(I07),channelCreationFormEndpoint:m0(oT),channelCreationServiceEndpoint:m0(iN),claimLegacyYoutubeChannelEndpoint:m0(IT),clearSearchHistoryEndpoint:m0(hg),clearWatchHistoryEndpoint:m0(Wb),commerceActionCommand:zf(af),createBackstagePostEndpoint:m0(mt),createBroadcastCommand:m0(AN),createCommentEndpoint:m0(yW),createCommentReplyEndpoint:m0(G6),
createLiveChatPollEndpoint:m0(F3),createPlaylistServiceEndpoint:m0(Ol),crossAccountChannelTransferEndpoint:m0(nP),deleteLiveChatMessageCommand:m0(wo),deletePlaylistEndpoint:m0(LP),deleteVideoEndpoint:m0(b$),dismissalEndpoint:m0(jX),feedbackEndpoint:m0(Ha),flagEndpoint:m0(KP),getAccountSwitcherEndpoint:m0(CP),verifyCommand:m0(d9),getAccountsListInnertubeEndpoint:m0(YH),getCommentsFromInboxCommand:m0(SM),getDownloadActionCommand:m0(GB),getFlowCommand:zf(KC),getKidsBlocklistPickerCommand:m0(hN),getNotificationMenuEndpoint:m0(QLt),
getPaymentInstrumentsParamsCommand:m0(DM),getPaymentsClientTokenCommand:zf(af),getPdgBuyFlowCommand:m0(qO),getReportFormEndpoint:m0(WP),getSearchInVideoCommand:m0(n1),getAnswerCommand:m0(C1),getSurveyCommand:m0(BP),getTranscriptEndpoint:m0(wR),getPostVideoPreviewEndpoint:m0(DC),decorateMessageEndpoint:m0(z6),likeEndpoint:m0(T6),liveChatActionEndpoint:m0(El),liveChatEndpoint:m0(tN),liveChatItemContextMenuEndpoint:m0(xH),liveChatPurchaseMessageEndpoint:m0(aQ),liveChatReplayEndpoint:m0(lo),manageLiveChatUserEndpoint:m0(fP),
metadataUpdateCommand:m0(cb),moderateLiveChatEndpoint:m0(mb),modifyChannelNotificationPreferenceEndpoint:m0(vb),notificationOptOutEndpoint:m0(eM),openSuperStickerBuyFlowCommand:m0(X3),performCommentActionEndpoint:m0(va),playlistEditEndpoint:m0(Hb),playlistEditorEndpoint:m0(jM),profileCardCommand:m0(Bb),recordNotificationInteractionsEndpoint:m0(sl),reelWatchEndpoint:m0(ro),refreshPanelEndpoint:m0($H),removeUpcomingEventReminderEndpoint:m0(zB),resolveLocationCommand:m0(JN),revealBusinessEmailCommand:m0(SX),
searchEndpoint:m0(_.pf1),sendLiveChatMessageEndpoint:m0(Db),sendLiveChatVoteEndpoint:m0(Vz),setSettingEndpoint:m0(qx),shareEntityServiceEndpoint:zf(Oj),sharingProviderDataCommand:m0(Yy),showEngagementPanelEndpoint:m0(Zb),showMoreDrawerCommand:m0(oQ),showSheetCommand:m0(io),showDialogCommand:m0(RQ),subscribeEndpoint:m0(uN),transcriptSubmitCaptionCorrectionCommand:m0(F9),undoFeedbackEndpoint:m0(g9),unsubscribeEndpoint:m0(Uj),updateBackstagePostEndpoint:m0(Jg),updateCommentEndpoint:m0(ZC),updateCommentReplyEndpoint:m0($U),
updateCommentsSettingsEndpoint:m0(RT),updateCreatorChannelInnertubeCommand:m0(QW),updateKidsBlacklistEndpoint:m0(ky),updateEngagementPanelContentCommand:m0(TB),updatePdgFeatureEnablementCommand:m0(uo),updatedMetadataEndpoint:m0(IQ),validateChannelHandleCommand:m0(pC),updateChannelPageSettingsEndpoint:m0(Mx),verifyAgeEndpoint:m0(Pa),watchEndpoint:zf(AX),whitelistEditEndpoint:m0(EG),ypcCancelRecurrenceEndpoint:m0(X9),ypcCompleteTransactionEndpoint:m0(f1),ypcFixInstrumentEndpoint:m0(mv),ypcGetCartEndpoint:m0(dR),
ypcGetOffersEndpoint:m0(zU),ypcHandleTransactionEndpoint:zf(VR),ypcLogWalletAnalyticDataEndpoint:m0(JX),ypcOffersEndpoint:m0(cP),ypcPauseSubscriptionCommand:m0(If),ypcRedeemCodeEndpoint:m0(SE),ypcResumeSubscriptionCommand:m0(MG),ypcUpdateFopEndpoint:m0(mv)},nm={},Rlt=(nm.GET_ACCOUNT_MENU=m0(NO),nm.GET_NOTIFICATIONS_MENU=m0(M_S),nm.GET_NOTIFICATIONS_INBOX=m0(MO),nm.GET_UNSEEN_NOTIFICATION_COUNT=m0(pP),nm.GET_USER_MENTION_SUGGESTIONS=m0(VW),nm.LOAD_GUIDE=m0(SgB),nm.SUBMIT_FEEDBACK=m0(r9),nm),NQ={},
ogB=(NQ.CONTINUATION_REQUEST_TYPE_BROWSE=m0(ca),NQ.CONTINUATION_REQUEST_TYPE_SEARCH=m0(NG),NQ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=m0(l$),NQ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=m0(kH),NQ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=m0(sj),NQ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=m0(eX),NQ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=m0(Pb),NQ.CONTINUATION_REQUEST_TYPE_GET_PANEL=m0(yz),NQ),iHt={player:zf(AX),watchNext:m0(xy)},TdT={player:zf(AX),reelItemWatch:m0(ro),reelWatchSequence:m0(go)},
qhi={watchEndpoint:zf(tX)},uVZ={commandEndpointMap:ZHC,signalEndpointMap:Rlt,continuationEndpointMap:ogB,watchEndpointMap:iHt,reelWatchEndpointMap:TdT,streamingEndpointMap:qhi};var U7i,OHS,LK7,jX1={disableAllTransitions:(OHS=(U7i=window).matchMedia)==null?void 0:(LK7=OHS.call(U7i,"(prefers-reduced-motion: reduce)"))==null?void 0:LK7.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var HHC=new _.Tc("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.rMA=new _.Tc("VIEW_TRANSITION_MANAGER_TOKEN");var ggA=function(W){this.config=W;this.transitionTasksMap=new Map;W=_.b(W.transitionConfigs);for(var k=W.next();!k.done;k=W.next())k=_.b(k.value).next().value,this.transitionTasksMap.set(k,[])};
ggA[ic]=[HHC];var FTI={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 xrI=["videoPrimaryInfoRenderer","title"],lPJ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var PpA;PpA=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.KK7=_.GM(function(W){W=_.vp(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var k=W.data,C=W.playlistData,n=W.expanded,N=W.onExpandClick,B=W.isReadyToResume,A=function(){var a;return!((a=C())==null||!a.contents)},w=function(){var a=C();
return a&&a.totalVideos&&a.currentIndex!==void 0?a.currentIndex+1+" / "+a.totalVideos:""};
W=_.Pj(function(){_.Y_(_.f().resolve(_.eq))});
var x=_.Pj(function(){A()&&N&&N()}),E={};
return _.t("ytd-miniplayer-info-bar",{class:_.Li("ytdMiniplayerInfoBarHost",(E.ytdMiniplayerInfoBarHasPlaylistData=A,E)),"on:click":x},_.t("div",{class:"ytdMiniplayerInfoBarContent"},_.t("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.t(_.Ya,{text:function(){var a=k();var X=C();if(X==null?0:X.contents){var d;a=(d=_.XLm(X))==null?void 0:d.title}else a=a==null?void 0:a.miniplayerTitle;return Ebz(a)},
noEndpoints:!0,ellipsisTruncate:!0})),_.t("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.t("h1",null,_.t(_.Ya,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var a=k();var X=C();a=B()?{simpleText:_.w8("CONTINUE_WATCHING",void 0,"Continue watching")}:(X==null?0:X.contents)?X.titleText:a==null?void 0:a.miniplayerSubtitle;return Ebz(a)},
noEndpoints:!0,ellipsisTruncate:!0})),_.t(_.NI,{cond:function(){return!!w()&&!B()},
then:function(){return _.t("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.t("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.t("span",null,w))}}),_.t(_.NI,{cond:B,
then:function(){return _.t(EW8,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:PpA})}}))),_.t(_.NI,{cond:A,
then:function(){return _.t("div",{class:"ytdMiniplayerInfoBarExpand"},_.t(LX,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(a){N&&(N(),a.stopPropagation())}}},
iconName:function(){return n()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Sd");var hlt;hlt=_.GM(function(W){return _.t("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.t(LX,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"Td");
_.WaS=_.GM(function(W){W=_.vp(W,{playabilityStatus:void 0,isDisabled:!1});var k=W.size,C=W.playabilityStatus,n=W.isDisabled,N=_.yE();W=_.b(_.kw(void 0,void 0,"bJr0Se"));var B=W.next().value,A=W.next().value;W=_.X8(_.b2);var w=!1,x=function(){return k().height<=0};
_.XM(function(){var d=k(),V=x(),c=B();c&&!V&&c.setInternalSize(d.width,d.height)});
_.lI(function(){var d,V,c;return _.F(function(M){if(M.nextAddress==1){d=_.f().resolve(_.eq);V=d.getPlayerElement();if(!d.isMiniplayerActive()||!V||!N.value)return M.return();V.appendTo(N.value);return _.l(M,V.getPlayerPromise(),2)}c=M.yieldResult;c.setSizeStyle(!1,!0);A(c);_.ab(M)})});
_.fy(function(){E()});
_.XM(function(){var d=B();if(d)if(n()){var V=d.getPlayerState();(w=V===-1||V===1||V===3)&&d.pauseVideo()}else E()});
var E=function(){if(w){w=!1;var d;(d=B())==null||d.playVideo()}},a=_.Pj(function(){_.Y_(_.f().resolve(_.eq))}),X={};
return _.t("ytd-miniplayer-player-container",{class:_.Li("ytdMiniplayerPlayerContainerHost",(X.ytdMiniplayerPlayerContainerHidden=x,X.ytdMiniplayerPlayerContainerHostShortsPip=W,X)),style:_.WJ({width:function(){return k().width+"px"},
height:function(){return k().height+"px"}})},_.t("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:N}),_.t(_.NI,{cond:function(){return!!C()&&!_.DBX(C())},
then:function(){return _.t(jbB,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var d;return((d=C())==null?void 0:d.errorScreen)||null},
status:function(){var d;return((d=C())==null?void 0:d.status)||null}})}}),_.t(_.NI,{cond:n,
then:function(){return _.t("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":a},_.t(hlt,{onTap:function(){_.f().resolve(_.eq).close()}}))}}))},"Ud");_.kwS=_.GM(function(W){var k=W.toastData;var C=_.yE();W=_.b(_.h7(function(){return!!k()}));
var n=W.next().value,N=W.next().value;W=_.b(_.kw(!1,void 0,"xkrBze"));var B=W.next().value,A=W.next().value,w=function(){var a;return _.y4((a=k())==null?void 0:a.data.title)};
_.Ee(function(){_.Q8.requestAvailability();k()&&N(!1)});
var x,E;_.XM(function(){n()&&(_.Pe(C.value,"iron-announce",{text:k().label+" "+w()}),x&&_.aM.cancelJob(x),x=_.aM.addLowPriorityJob(function(){A(!0)},2500))});
_.XM(function(){B()&&(E&&_.aM.cancelJob(E),E=_.aM.addLowPriorityJob(function(){N(!1);A(!1)},300))});
W={};return _.t("ytd-miniplayer-toast",{el:C,class:_.Li("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return n()},W.ytdMiniplayerToastClosing=function(){return B()},W))},_.t(_.NI,{cond:function(){var a;
return(a=k())==null?void 0:a.data},
then:function(a){return _.t(ao8,{className:"ytdMiniplayerToastThumbnail",data:a,width:78})}}),_.t("div",{class:"ytdMiniplayerToastInfo"},_.t("div",{class:"ytdMiniplayerToastLabel"},function(){var a;
return(a=k())==null?void 0:a.label}),_.t("div",{class:"ytdMiniplayerToastTitle"},w)))},"Vd");var c2p;var QF2=new Set,MSc=null;var vbK=null;var n1Y=_.GM(function(W){var k=W.progressState;var C=W.multiMarkersPlayerBarRenderer;var n=W.progressBarWidth;var N=function(){return y24(C())},B=function(){return RwX(k())},A=function(){return n()*(k().playedTime/k().videoDuration)};
return _.t("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.t(_.bI,{each:N},function(w,x){return _.t(Ce7,{modifiedProps:B,chapters:N,index:x,playedProgressWidth:A,backgroundGradientPosition:function(){var E=B(),a=N(),X=x(),d=A();return(E.playedTime-ps(_.z(a[X],Qa)))/E.playedTime*d}})}))},"Wd"),Ce7=_.GM(function(W){var k=W.modifiedProps;
var C=W.chapters;var n=W.index;var N=W.playedProgressWidth;var B=W.backgroundGradientPosition;W={};W=_.Li("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return A().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return A().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return A().videoPosition==="seen"},W));
var A=function(){return obw(k(),C(),n())},w=function(){var x=k();
var E=C(),a=n();if(obw(x,E,a).videoPosition!=="active")x=0;else{var X=ps(_.z(E[a],Qa));x=(x.playedTime-X)/((ps(_.z(E[a+1],Qa))||x.videoDuration)-X)}return x};
return _.t("div",{class:W,style:_.WJ({width:function(){var x=k(),E=C(),a=n(),X=_.z(E[a],Qa);E=_.z(E[a+1],Qa);return(E?ps(E)-ps(X):x.videoDuration-ps(X))/x.videoDuration*100+"%"},
"background-color":function(){a:{var x=A();switch(x.videoPosition){case "pending":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:x=""}}return x},
"background-size":function(){return(izm(A())?N():"")+"px"},
"background-position-x":function(){return(izm(A())?B():"")+"px"}})},_.t("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var x=k(),E=C(),a=n();if(obw(x,E,a).videoPosition==="seen")var X=0;else X=ps(_.z(E[a],Qa)),E=ps(_.z(E[a+1],Qa))||x.videoDuration,x=x.videoDuration*x.percentLoaded,X=E<=x?1:X>=x?0:(x-X)/(E-X);return"width: "+X*100+"%"}}),_.t("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.WJ({width:function(){return w()*100+"%"},
"background-size":function(){return(izm(A(),w())?N():"")+"px"},
"background-position-x":function(){return(izm(A(),w())?B():"")+"px"}})}))},"Xd");var NKE=function(W,k){k=k===void 0?iXs:k;var C,n=[],N,B=!1;return function(){var A=_.v6.apply(0,arguments);if(B&&C===this&&k(A,n))return N;N=W.apply(this,A);B=!0;C=this;n=A;return N}}(function(W){var k=W.heatMarkers,C=W.minHeightDp===void 0?0:W.minHeightDp,n=W.maxHeightDp===void 0?60:W.maxHeightDp;
var N=N===void 0?!1:N;var B=1E3/k.length;W=[];W.push({x:0,y:100});for(var A=0;A<k.length;A++){var w=void 0,x=((w=_.z(k[A],NhZ))==null?void 0:w.heatMarkerIntensityScoreNormalized)||0;w=(A+.5)*B;x=100-_.Sq(x*100,C/321*100,n/321*100);A!==0||N||W.push({x:0,y:x});W.push({x:w,y:x});A===k.length-1&&W.push({x:1E3,y:x})}W.push({x:1E3,y:100});k="";for(C=0;C<W.length;C++)N=W[C],C===0?N="M "+N.x.toFixed(1)+","+N.y.toFixed(1):(n=mB4(W[C-1],W[C-2],N),B=mB4(N,W[C-1],W[C+1],!0),N=" C "+(n.x.toFixed(1)+","+n.y.toFixed(1)+
" "+B.x.toFixed(1)+","+B.y.toFixed(1)+" "+N.x.toFixed(1)+","+N.y.toFixed(1))),k+=N;return k});var YLT=_.GM(function(W){var k=W.progressBarProps;var C=W.config;var n={};W=_.Li("ytHeatSeekerHost",(n.ytHeatSeekerHighContrast=W.highContrast,n));var N=function(){return mrP(C().chapterData)};
return _.t("yt-progress-bar-heatseeker",{class:W,style:function(){var B;return"height: 320px; display: "+(k().isDragging&&((B=N())==null?0:B.heatMarkers)?"block":"none")}},_.t(_.NI,{cond:N,
then:function(B){return _.t(_.NI,{cond:function(){return B().heatMarkers},
then:function(){return _.t("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.t("path",{d:function(){return NKE(B())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Yd");var BK1=_.GM(function(W){var k=W.progressBarProps;var C=W.config;W={};W=_.Li("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return C().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return C().position===2},W));
return _.t("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.t("div",{class:W},_.t("div",{class:"ytProgressBarLineProgressBarBackground"}),_.t("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+k().percentLoaded*100+"%"}}),_.t("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var n=k();return"width: "+(n.videoDuration?_.Sq(n.hoveredTime/n.videoDuration,0,1):0)*100+"%"}}),_.t("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+X_m(k())*100+"%"}})))},"Zd");
BK1.idomCompat=!0;var bvT=_.GM(function(W){var k=W.progressBarProps;var C=W.playheadData;var n=W.interpolateDotPosition;var N=W.hidePlayhead;W={};var B=_.Li("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return k().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!k().isDragging&&N()},W));
return _.t("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.WJ({"margin-left":function(){return fPc(k())*100+"%"},
transform:function(){return"translateX(-"+(n()?fPc(k())*12:6)+"px)"}})},_.t(_.NI,{cond:function(){var A;
return(A=_.pq(C)())==null?void 0:A.playheadImage},
then:function(A){var w={};return _.t("div",{class:_.Li("ytProgressBarPlayheadProgressBarPlayheadCustom",(w.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return k().isDragging},w.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!k().isDragging&&N()},w)),
style:_.WJ({"transform-origin":function(){return(n()?fPc(k())*20:10)+"px center"}})},_.t(_.pi,{data:A,
alt:"","aria-hidden":"true"}))},
else:function(){return _.t("div",{class:B,style:_.WJ({"transform-origin":function(){return(n()?fPc(k())*12:6)+"px center"}})})}}))},"$d");
bvT.idomCompat=!0;var B7=function(W,k,C,n,N,B){this.getProgressBarRect=W;this.updateProgressBarRect=k;this.getFilmstripYPosition=C;this.setFineScrubbingDraggedTime=n;this.updateFilmStripDraggedYDistance=N;this.resetFilmStripYOffset=B;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Ox(this.onThrottledSeek,100,this)},AEu=function(W,k,C){return function(n){W.handleClick(n,k(),C())}},xqt=function(W,k){return function(C){Fa$(W,
C,w$C(C),k())}},l3B=function(W,k){return function(C){Fa$(W,C,{x:C.clientX,
y:C.clientY},k())}},E1T=function(W,k,C){return function(n){var N=k(),B=C();
tkA(W,n,w$C(n),N,B,!0);if(B.onTouchMove)B.onTouchMove(N)}},X$B=function(W,k,C){return function(n){a3S(W,n,k(),C())}},f3S=function(W,k){return function(){W.handleMouseLeave(k())}},dq7=function(W,k,C){return function(){var n=k(),N=C();
b3(W,n,N);if(N.onTouchEnd)N.onTouchEnd(n)}},mqB=function(W,k,C){return function(){var n=k(),N=C();
b3(W,n,N);if(N.onTouchEnd)N.onTouchEnd(n)}},zuE=function(W,k,C){return function(){b3(W,k(),C())}},Dq1=function(W,k,C){return function(n){!C().disableScrubbing&&W.startPosition&&a3S(W,n,k(),C())}},VkS=function(W,k,C){return function(){if(!C().disableScrubbing)if(W.startPosition){var n=k(),N=C();
b3(W,k(),C());if(N.onTouchEnd)N.onTouchEnd(n)}else k().setState({isDragging:!1})}},w$C=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},a3S=function(W,k,C,n){if(k.buttons!==1){if(k.movementX||k.movementY)k.preventDefault(),k.stopPropagation(),W=JEC(W,C,k.clientX),C.setState({isHovering:!0,
hoveredTime:W*C.videoDuration})}else cEZ(C),tkA(W,k,{x:k.clientX,y:k.clientY},C,n,!1)};
B7.prototype.handleMouseLeave=function(W){cEZ(W)};
var cEZ=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},Fa$=function(W,k,C,n){W.startPosition||(W.startPosition=C,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=n.controlsVisible,k.stopPropagation(),_.m("medium_progress_bar_modification")||k.preventDefault())},tkA=function(W,k,C,n,N,B){if(W.startPosition)if(B&&N.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(C.y-W.startPosition.y)>Math.abs(C.x-W.startPosition.x))b3(W,n,N);
else if(k.preventDefault(),k.stopPropagation(),n.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(C.x-W.startPosition.x)>=1),N.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(C.y-W.startPosition.y)>=60),!W.startPosition||C.y>=W.startPosition.y||(n.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:TGm(n.draggedTime,n,N.chapterData)}),W.setFineScrubbingDraggedTime(n.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
C.y,n))),W.hasDraggedTheMinimumDistance)){k=JEC(W,n,C.x);if(W.isDraggedForFineScrubbing){var A;(A=n.playerApi)==null||A.pauseVideo();n.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:n.draggedTime,filmStripXDistance:TGm(k*n.videoDuration,n,N.chapterData)})}!(A=!N.enableFineScrubbing)&&(A=N.enableFineScrubbing)&&(A=!(W.getFilmstripYPosition(n)<68));A&&n.setState({draggedTime:k*n.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});
var w;(w=N.cancelAutohideControlsFn)==null||w.call(N)}},b3=function(W,k,C){var n=C.enableFineScrubbing&&k.fineScrubbingActiveState!=="off";
if(k.isDragging||n){n={isDragging:!1,playedTime:k.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};C.enableFineScrubbing&&k.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),n.fineScrubbingActiveState="off");var N=N===void 0?vbK:N;var B=_.VM(0);B&&N&&_.Rz(B,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(k.playedTime*1E3),endMediaTimeMs:Math.round(k.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});k.setState(n);
W.seekThrottle.fire(k.draggedTime,k,7);_.m("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(k);C.unmuteOnSeek&&(C=k.playerApi,k.volumeMuted&&(C==null||C.unMute()))}else k.setState({controlsVisible:!k.controlsVisible}),(B=C.triggerAutohideControlsAfterDelayFn)==null||B.call(C);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
B7.prototype.handleClick=function(W,k,C){this.updateProgressBarRect();W.stopPropagation();W=JEC(this,k,W.clientX)*k.videoDuration;k.setState({playedTime:W});if(k.playerState!==2){var n;(n=C.triggerAutohideControlsAfterDelayFn)==null||n.call(C)}this.seekThrottle.fire(W,k,7)};
var JEC=function(W,k,C){W=W.getProgressBarRect(k);return _.Sq(0,(C-W.left)/W.width,1)};
B7.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var k;(k=W.playerApi)==null||k.playVideo()}};
B7.prototype.onThrottledSeek=function(W,k,C){if(k=k.playerApi){var n;if((n=k.getVideoData())==null?0:n.isLive)n=this.getProgressState(k),W+=(n==null?void 0:n.seekableStart)||0;k.seekTo(W,void 0,void 0,void 0,C)}};
B7.prototype.getProgressState=function(W){var k=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(k)};var Mk$,SLT,QM7,v1i,I3Z,euB,sMB,Gw7,yEB;Mk$=_.GM(function(W){var k=W.progressBarProps;var C=W.config;var n=W.progressBarWidthPx;var N=W.chapterData;var B=LT4(k,function(){return C().isShortsPage}),A=function(){return!k().isHovering&&!C().isShortsPage};
W={};var w=_.Li("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return C().isShortsPage&&!1},W));
return _.t("yt-player-storyboard",null,_.t(_.NI,{cond:function(){return k().isDragging||k().isHovering},
then:function(){return _.t(_.NI,{cond:B,then:function(x){return _.t(_.NI,{cond:A,then:function(){return _.t("div",{class:w,"aria-hidden":"true"},_.t(I3Z,{props:k,config:C,isBigboard:!0,chapterData:N}))},
else:function(){return _.t(SLT,{props:k,frame:x,config:C,progressBarWidthPx:n,chapterData:N})}})}})}}))},"ae");
_.p$7=_.GM(function(W){var k=W.progressBarProps;var C=LT4(k,W.isShortsPage);return _.t("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.t(_.NI,{cond:function(){return k().isDragging||k().isHovering},
then:function(){return _.t(_.NI,{cond:C,then:function(n){return _.t(QM7,{frame:n,props:k,isBigboard:!0})}})}}))},"be");
SLT=_.GM(function(W){var k=W.props;var C=W.frame;var n=W.config;var N=W.progressBarWidthPx;W=W.chapterData;var B={};B=_.Li("ytPlayerStoryboardHost",(B.ytPlayerStoryboardHostMwebShorts=function(){return n().isShortsPage&&!1},B.ytPlayerStoryboardHostInlinePlayer=function(){return n().isInlinePlayer},B.ytPlayerStoryboardHostFadeIn=function(){return n().useFadeInAnimation},B));
return _.t("div",{class:B,"aria-hidden":"true",style:function(){var A=k(),w=qwI(C()),x=N();A=uAI(A)/A.videoDuration;var E=x*A,a=w/2+6;w=x-(w/2+6);return"left: "+(E<=a?a/x*100:E>=w?w/x*100:A*100)+"%"}},_.t(_.NI,{cond:function(){var A=k();
return!(n().isShortsPage&&A.videoDuration<15)},
then:function(){return _.t(QM7,{frame:C,props:k,isBigboard:!1})}}),_.t(I3Z,{props:k,
config:n,isBigboard:!1,chapterData:W}))},"ce");
QM7=_.GM(function(W){var k=W.frame;var C=W.props;var n=W.isBigboard;var N=function(){var w,x;return(x=(w=C().playerApi)==null?void 0:w.getVideoContentRect())!=null?x:{width:0,height:0}},B=function(){return qwI(k())},A=function(){var w=k();
return w?w.height/w.rows:0};
W={};W=_.Li((W.ytPlayerStoryboardBigboardImageWrapper=n,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!n()},W));
return _.t("div",{class:W,style:function(){return"width: "+(n()?N().width:B())+"px; height: "+(n()?N().height:A())+"px;"}},_.t(v1i,{frame:k,
storyboardWidth:B,storyboardHeight:A,storyboardScale:function(){return(n()?N().width:B())/B()}}))},"de");
v1i=_.GM(function(W){var k=W.frame;var C=W.storyboardWidth;var n=W.storyboardHeight;var N=W.storyboardScale;var B=function(){var A=k().row,w=k().column,x=C(),E=n(),a=N();return{left:-w*x*a,top:-A*E*a}};
return _.t("img",{src:function(){return k().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+B().left+"px; top: "+B().top+"px; width: "+k().width*N()+"px; height: "+k().height*N()+"px;"}})},"ee");
I3Z=_.GM(function(W){var k=W.props;var C=W.config;var n=W.isBigboard;var N=W.chapterData;W={};W=_.Li("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=n,W));return _.t("div",{class:W},_.t(_.NI,{cond:n,then:function(){return _.t(_.qf,null,_.t(euB,{props:k,config:C}),_.t(_.NI,{cond:function(){a:{var B=k();var A=C(),w=N(),x;if((A==null?0:A.activeChapter)&&((x=_.z(A==null?void 0:A.activeChapter,Qa))==null?0:x.title))B=!0;else{A=_.b(zwc(w));for(A=A.next();!A.done;A=A.next()){B=(A=_.z(A.value,
Bhs))&&Ur2(B,A);break a}B=!1}}return B},
then:function(){return _.t(sMB,{props:k,config:C,isBigboard:!0,chapterData:N})}}))},
else:function(){return _.t(_.qf,null,_.t(sMB,{props:k,config:C,isBigboard:!0,chapterData:N}),_.t(euB,{props:k,config:C}))}}))},"fe");
euB=_.GM(function(W){var k=W.props;var C=W.config;W={};W=_.Li("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return C().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return k().isHovering||C().isShortsPage&&!0},W));
return _.t("div",{class:W},_.t(_.qf,null,function(){return _.OzK(uAI(k()))}))},"ge");
sMB=_.GM(function(W){var k=W.props;var C=W.config;var n=W.isBigboard;var N=W.chapterData;W={};n=_.Li("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=n,W));return _.t("div",{class:n},_.t(_.NI,{cond:function(){return!C().isShortsPage},
then:function(){return _.t(Gw7,{props:k,activeChapter:function(){return C().activeChapter},
chapterData:N})}}))},"he");
Gw7=_.GM(function(W){var k=W.props;var C=W.activeChapter;var n=W.chapterData;return _.t(_.qf,null,_.t(_.bI,{each:function(){return zwc(n())},
keyBy:"INDEX"},function(N){return _.t(_.qf,null,_.t(_.NI,{cond:function(){return _.z(N(),Bhs)&&Ur2(k(),_.z(N(),Bhs))},
then:function(){return _.t(yEB,{timedMarker:function(){return _.z(N(),Bhs)}})}}))}),_.t(_.NI,{cond:function(){var N;
return C()&&((N=_.z(C(),Qa))==null?void 0:N.title)},
then:function(N){return _.t(_.Ya,{text:N,noPreWrap:!0})}}))},"ie");
yEB=_.GM(function(W){var k=W.timedMarker;return _.t(_.qf,null,_.t("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.t(_.ka,{icon:function(){return k().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.t(_.Ya,{text:function(){return k().label},
noPreWrap:!0}))},"je");_.$q7=_.GM(function(W){var k=W.progressBarProps;var C=W.playheadData;var n=W.config;W=_.yE();var N=_.yE(),B=_.yE(),A=_.b(_.kw({width:0,left:0},void 0,"v323Dc")),w=A.next().value,x=A.next().value,E=function(){B.value&&x(B.value.getBoundingClientRect())},a=function(){w().width<=0&&E();
return w()};
TJ("resize",E);var X=new B7(a,function(){},function(){return 0},function(){},function(){},function(){}),d=function(){return k()};
A=_.b(_.kw(!1,void 0,"tcVkKf"));var V=A.next().value,c=A.next().value;_.Zx(N,"mouseenter",function(){c(!0);n().position===2?setTimeout(function(){E()},100):E()});
_.Zx(N,"mouseleave",function(){c(!1);f3S(X,d)()});
A=_.Pj(function(G4){n().doSeekOnClick&&AEu(X,d,n)(G4);return!1});
var M=_.Pj(function(G4){xqt(X,d)(G4);return!1}),p=_.Pj(function(G4){l3B(X,d)(G4);
return!1}),e=_.Pj(function(G4){E1T(X,d,n)(G4);
return!1}),u=_.Pj(function(G4){X$B(X,d,n)(G4);
return!1}),h=_.Pj(function(){dq7(X,d,n)();
return!1}),L=_.Pj(function(){mqB(X,d,n)();
return!1}),Bw=_.Pj(function(){zuE(X,d,n)();
return!1});
TJ("mousemove",Dq1(X,d,n));TJ("mouseup",VkS(X,d,n));_.Ee(function(){ewI(N.value);c(!1);E();VkS(X,d,n)()});
var P={};P=_.Li("ytPlayerProgressBarHost",function(){return n().className},(P.ytPlayerProgressBarHostReadOnly=function(){return n().disableScrubbing},P.ytPlayerProgressBarHostHidden=function(){return n().hideProgressBar&&!V()},P.ytPlayerProgressBarHostLowerPlayer=function(){return n().position===0},P.ytPlayerProgressBarHostBottomEdge=function(){return n().position===1},P.ytPlayerProgressBarHostBottomInset=function(){return n().position===2},P.ytPlayerProgressBarHostCustom=function(){return n().position===
3},P));
var xz={},Sp=_.Li("ytPlayerProgressBarBackground",(xz.ytPlayerProgressBarBackgroundHide=function(){return n().position===2&&!V()&&!k().isDragging},xz));
xz={};xz=_.Li("ytPlayerProgressBarDragContainer",(xz.ytPlayerProgressBarDragContainerBottomEdge=function(){return n().position===1},xz));
var vw={};vw=_.Li("ytPlayerProgressBarProgressBar",(vw.ytPlayerProgressBarProgressBarInset=function(){return n().position===2},vw.ytPlayerProgressBarProgressBarInsetMinimized=function(){return n().position===2&&!V()&&!k().isDragging},vw));
var lw=function(){return Math.floor(X_m(k())*100)};
return _.t("yt-progress-bar",{el:W,class:P},_.t(_.NI,{cond:function(){return n().position===2},
then:function(){return _.t("div",{class:Sp})}}),_.t("div",{el:N,
"on:click":A,"on:touchstart":M,"on:mousedown":p,"on:touchmove":e,"on:mousemove":u,"on:touchend":h,"on:mouseup":L,"on:touchcancel":Bw,class:xz,role:"slider","aria-valuenow":lw,"aria-valuetext":function(){return lw()+"%"},
tabindex:0,"aria-label":_.w8("SEEK_SLIDER")},_.t("div",{el:B,class:vw},_.t(YLT,{progressBarProps:k,config:n,highContrast:function(){return!!n().isInlinePlayback}}),_.t(_.NI,{cond:function(){return n().chapterData&&Drw(n().chapterData)},
then:function(){return _.t(n1Y,{progressState:k,multiMarkersPlayerBarRenderer:function(){return n().chapterData},
progressBarWidth:function(){return w().width}})},
else:function(){return _.t(BK1,{progressBarProps:k,config:n})}}),_.t(bvT,{progressBarProps:k,
playheadData:C,interpolateDotPosition:function(){return n().position!==2},
hidePlayhead:function(){return n().playheadDotBehavior===1&&!V()}}))),_.t(Mk$,{progressBarProps:k,
config:function(){return{activeChapter:ZzX(k(),n().chapterData),getProgressBarWidthPx:function(){return a().width},
isShortsPage:!!n().isShortsPage,isInlinePlayer:!!n().isInlinePlayback,useFadeInAnimation:!!n().isInlinePlayback}},
progressBarWidthPx:function(){return w().width},
chapterData:function(){return n().chapterData}}))},"ke");
_.$q7.idomCompat=!0;Object.assign({},_.VSm(),{setState:function(){},
domMeasurements:{},appApi:_.aPK(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Zv6;
_.Ru7=_.GM(function(){var W,k=(W=_.vq(jFc().playerApi))!=null?W:void 0;W=_.b(_.kw(!1,void 0,"HLFBmb"));var C=W.next().value,n=W.next().value;W=_.b(_.kw(!1,void 0,"lHH9bc"));var N=W.next().value,B=W.next().value;W=_.b(_.kw(!1,void 0,"zsY7yd"));var A=W.next().value,w=W.next().value;W=_.b(_.kw(!1,void 0,"KeHQgc"));var x=W.next().value,E=W.next().value;W=_.b(_.kw(0,void 0,"gLLCj"));var a=W.next().value,X=W.next().value;W=_.b(_.kw(0,void 0,"s3RYkf"));var d=W.next().value,V=W.next().value;W=_.b(_.kw(!1,void 0,
"Dn608e"));var c=W.next().value,M=W.next().value;W=_.b(_.kw(0,void 0,"AnkH1b"));var p=W.next().value,e=W.next().value;W=_.b(_.kw(0,void 0,"QYNL0b"));var u=W.next().value,h=W.next().value;W=_.b(_.kw("",void 0,"Yzw45d"));var L=W.next().value,Bw=W.next().value;W=_.b(_.kw(-1,void 0,"iiVI0c"));var P=W.next().value,xz=W.next().value,Sp=_.BH(function(){var vw={controlsVisible:C(),isOverlayHidden:N(),shouldWaitToHideControls:A(),isDragging:x(),isHovering:c(),videoDuration:p(),playedTime:u(),videoId:L(),draggedTime:d(),
hoveredTime:a(),playerState:P()};return Object.assign({},_.VSm(),vw,{domMeasurements:{},setState:function(lw){lw.controlsVisible!==void 0&&n(lw.controlsVisible);lw.isOverlayHidden!==void 0&&B(lw.isOverlayHidden);lw.shouldWaitToHideControls!==void 0&&w(lw.shouldWaitToHideControls);lw.isDragging!==void 0&&E(lw.isDragging);lw.isHovering!==void 0&&M(lw.isHovering);lw.draggedTime!==void 0&&V(lw.draggedTime);lw.hoveredTime!==void 0&&X(lw.hoveredTime);lw.videoDuration!==void 0&&e(lw.videoDuration);lw.playedTime!==
void 0&&h(lw.playedTime);lw.videoId!==void 0&&Bw(lw.videoId);lw.playerState!==void 0&&xz(lw.playerState)},
appApi:_.aPK(),playerApi:k})},void 0,"ZW7y9");
_.lI(function(){k==null||k.addEventListener("onVideoProgress",Swm(Sp));k==null||k.addEventListener("onVideoDataChange",IPz(Sp));k==null||k.addEventListener("onStateChange",J22(Sp))});
_.fy(function(){if(k==null?0:k.isReady())k==null||k.removeEventListener("onVideoProgress",Swm(Sp)),k==null||k.removeEventListener("onVideoDataChange",IPz(Sp)),k==null||k.removeEventListener("onStateChange",J22(Sp))});
return _.t("desktop-shorts-player-controls",null,_.t(Zv6,{playerControlsProps:Sp}))},"le");
Zv6=_.GM(function(W){var k=W.playerControlsProps;return _.t("div",{class:"desktopShortsPlayerControlsWizHost"},_.t(_.$q7,{progressBarProps:k,config:function(){return{isShortsPage:!0,hideProgressBar:k().videoDuration<30&&k().playerState!==2&&!k().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"me");_.UK(_.KTX);_.o1T=_.GM(function(W){var k=W.data;return _.t("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.t(_.NE,{command:function(){return k().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.t(_.NI,{cond:function(){return k().iconName},
then:function(C){return _.t(_.ka,{icon:C})}}),_.t("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return k().text}),_.t(_.NI,{cond:function(){return k().showEndChevron},
then:function(){return _.t(_.ka,{icon:"CHEVRON_RIGHT"})}})))},"ne");var ivA=_.GM(function(W){var k=W.data;var C=W.overlayDensity;W={};return _.t("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.t(_.Ex,{data:function(){return k().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(n){var N=n.data;
return _.t(_.VO,{data:function(){if((C==null?void 0:C())===1){var B=Object;var A=B.assign,w=N();var x={avatarViewModel:Object.assign({},_.z(N().avatar,_.Gn),{avatarImageSize:"AVATAR_SIZE_48"})};B=A.call(B,{},w,{avatar:x})}else B=N();return B}})}}),_.t(_.Ya,{className:_.Li("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(C==null?void 0:C())===1},W)),
text:function(){return k().channelName},
linkInheritColor:!0,userInput:!0}),_.t("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.t(_.Ex,{data:function(){return k().subscribeButtonViewModel}},{subscribeButtonViewModel:function(n){var N=n.data;
return _.t(ksS,{data:function(){return(C==null?void 0:C())===1?Object.assign({},N(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},N().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):N()},
isOverlay:!1})},
buttonViewModel:_.zn})),_.t("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.t(_.Ex,{data:function(){var n,N;return(N=_.z((n=k())==null?void 0:n.sponsorButtonViewModel,Z8Z))==null?void 0:N.sponsorButton}},{buttonViewModel:function(n){return _.t(_.zn,{data:n.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"oe");var TKS=_.GM(function(W){var k={};return _.t("yt-reel-multi-format-link-view-model",{class:_.Li("ytReelMultiFormatLinkViewModelHost",(k.ytReelMultiFormatLinkViewModelHostTall=!0,k.ytReelMultiFormatLinkViewModelHostLarge=function(){var C;return((C=W.overlayDensity)==null?void 0:C.call(W))===1},k))},_.t(_.NE,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.fi(W.data().command)},
dangerousStopPropagation:!1},_.t("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.t(_.NI,{cond:function(){return W.data().icon},
then:function(C){return _.t(_.pi,{data:C,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.t(_.Ya,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"pe");
TKS.idomCompat=!0;var qLS=_.GM(function(W){var k=W.data;var C=_.yE();W=_.b(_.kw(!1,void 0,"XwMNzb"));var n=W.next().value,N=W.next().value;W=_.b(_.kw(!1,void 0,"ZysOx"));var B=W.next().value,A=W.next().value,w=function(){return k().isMultiLineSa},x=_.kj(ps3,function(){var e,u;
return(u=(e=k().toggleableContent)==null?void 0:e.entityKey)!=null?u:""}),E=function(){var e,u,h;
return(h=k().toggleableContent)!=null&&h.entityKey?(u=(e=x())==null?void 0:e.value)!=null?u:!1:!1},a=function(){var e,u,h,L,Bw,P,xz,Sp,vw,lw,G4;
return k().toggleableContent?E()?(e=k().toggleableContent)==null?void 0:e.toggledData:(u=k().toggleableContent)==null?void 0:u.untoggledData:{primaryText:(Sp=(h=k().defaultContent)==null?void 0:h.primaryText)!=null?Sp:k().text,secondaryText:(L=k().defaultContent)==null?void 0:L.secondaryText,onTapCommand:(vw=(Bw=k().defaultContent)==null?void 0:Bw.onTapCommand)!=null?vw:k().onTapCommand,icon:(lw=(P=k().defaultContent)==null?void 0:P.icon)!=null?lw:k().icon,image:(G4=(xz=k().defaultContent)==null?
void 0:xz.image)!=null?G4:k().image}},X=function(){return w()?k().trailingTapTarget:void 0};
W=function(e,u){return function(){return n()?u:e}};
var d={leadingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};W={};W=_.Li((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},W.ytShortsSuggestedActionViewModelDynamicHost=w,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&B()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!B()},W));
_.Ee(function(){if(w()){var e=0,u;if((u=k().animationParams)==null?0:u.shouldExpand){var h,L;e=((L=(h=k().animationParams)==null?void 0:h.expansionDelaySecs)!=null?L:0)*1E3}var Bw,P=((Bw=k().animationParams)==null?0:Bw.shouldExpand)?setTimeout(function(){N(!0)},e):void 0,xz,Sp;
e=((xz=k().animationParams)==null?0:xz.visibilityDelaySecs)?((Sp=k().animationParams)==null?NaN:Sp.visibilityDelaySecs)*1E3:0;var vw=setTimeout(function(){A(!0)},e);
_.fy(function(){P&&clearTimeout(P);clearTimeout(vw)})}});
var V=function(e){_.zj(e,Object.assign({},{form:{element:C.value}}))},c=_.Pj(function(){var e,u=(e=a())==null?void 0:e.onTapCommand;
u&&V(u)}),M=_.Pj(function(){var e,u;
if(e=(u=X())==null?void 0:u.onTapCommand)return V(e),!1}),p=_.WJ({"vertical-align":"bottom",
"border-radius":function(){var e;return w()?((e=k().defaultContent)==null?0:e.isCircleImage)?"50%":"4px":"0px"},
width:function(){var e,u,h;return w()&&((e=k().defaultContent)==null?0:e.imageSize)?((h=(u=k().defaultContent)==null?void 0:u.imageSize)!=null?h:24)+"px":null},
height:function(){var e,u,h;return w()&&((e=k().defaultContent)==null?0:e.imageSize)?((h=(u=k().defaultContent)==null?void 0:u.imageSize)!=null?h:24)+"px":null}});
return _.t("yt-shorts-suggested-action-view-model",{class:W,el:C},_.t("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.t("button",{class:_.Li(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var e;
return(e=k().useFullRoundedBorder)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!X()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var e;
return(e=k().disableFixedHeight)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":c},_.t(_.BJ,{model:{color:4}}),_.t("div",{class:_.Li(function(){return w()?d.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.t(_.NI,{cond:function(){var e;
return(e=a())==null?void 0:e.image},
then:function(e){return _.t(_.pi,{data:e,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:p})}}),_.t(_.NI,{cond:function(){var e,u;
return(e=a())==null?void 0:(u=e.icon)==null?void 0:u.iconType},
then:function(e){return _.t(_.ka,{icon:e,active:E,className:function(){return w()?n()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.t("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.t(_.NI,{cond:function(){var e;
return(e=a())==null?void 0:e.primaryText},
then:function(e){return _.t("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.t(_.Ya,{text:e}))}}),_.t(_.NI,{cond:function(){var e;
return(e=a())==null?void 0:e.secondaryText},
then:function(e){return _.t("div",{class:d.secondaryText},_.t(_.Ya,{text:e}))}}))),_.t(_.NI,{cond:X,
then:function(e){return _.t("div",{class:d.trailingSection,"aria-label":function(){var u;return(u=e().a11yLabel)!=null?u:""},
"on:click":M,role:"button",tabindex:0},_.t(_.BJ,{model:{color:4}}),_.t(_.ka,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"qe");var uES=_.GM(function(W){var k=W.data;var C=W.overlayDensity;var n=_.yE();W=_.Pj(function(A){if(_.DW4(_.IS(A),n.value,["A".toString()]))return!1;(A=k().truncatedTextOnTapCommand)&&_.zj(A);return!1});
var N={},B={};return _.t("yt-shorts-video-title-view-model",{el:n,class:_.Li("ytShortsVideoTitleViewModelHost",(N.ytShortsVideoTitleViewModelHostClickable=function(){return!!k().truncatedTextOnTapCommand},N)),
"on:click":W},_.t("h2",{class:_.Li("ytShortsVideoTitleViewModelShortsVideoTitle",(B.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(C==null?void 0:C())===1},B))},_.t(_.Ya,{text:function(){return k().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"re");_.Uqt=_.GM(function(W){var k=W.data;var C=W.overlayDensity;return _.t("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.t(_.Ex,{data:function(){return k().metadataItems}},{badgeViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(_.ha,{data:n.data}))},
playerDisclosureViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(_.o1T,{data:n.data}))},
shortsSuggestedActionViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(qLS,{data:n.data}))},
reelChannelBarViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(ivA,{data:n.data,overlayDensity:C}))},
reelMultiFormatLinkViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(TKS,{data:n.data,overlayDensity:C}))},
shortsVideoTitleViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(uES,{data:n.data,overlayDensity:C}))},
reelSoundMetadataViewModel:function(n){return _.t("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.t(_.h_E,{data:n.data,overlayDensity:C}))}}))},"se");var OvT=_.GM(function(W){var k=_.vp(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),C=k.size,n=k.onTap,N=k.disabled,B=k.tooltipText;return _.t("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.t(LX,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:C(),disabled:N(),tooltipText:B(),onTap:n}},
iconName:W.iconType}))},"te"),LaE=_.GM(function(W){function k(a){a.stopPropagation();
a.code==="ArrowUp"?(a.preventDefault(),ClX(w.value)):a.code==="ArrowDown"?(a.preventDefault(),ns4(w.value)):a.code==="KeyM"?W9w():(a.code==="KeyK"||a.code==="Space")&&kGm(x())}
var C=_.vp(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=C.previousButtonDisabled;var n=C.nextButtonDisabled,N=C.data,B=C.playabilityStatus,A=C.previewThumbnail,w=_.yE(),x=_.X8(_.GRJ),E;_.lI(function(){(E=_.QZ(w.value))&&E.addEventListener("keydown",k)});
_.fy(function(){var a;(a=E)==null||a.removeEventListener("keydown",k)});
C=function(){var a,X,d;return(a=N())==null?void 0:(X=a.reelPlayerOverlayRenderer)==null?void 0:(d=X.likeButton)==null?void 0:d.likeButtonRenderer};
return _.t("ytd-shorts-miniplayer-overlay",{el:w,class:"ytdShortsMiniplayerOverlayHost"},_.t("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.WJ({"background-image":function(){var a=A();return a?'url("'+_.$f(a.thumbnails)+'")':""}})}),_.t("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.t("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.t(OvT,{iconType:function(){var a=x();
return a===2||a===-1||a===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){kGm(x())},
tooltipText:function(){var a=x();return a===1||a===3?_.w8("PLAYER_LABEL_PAUSE"):_.w8("PLAYER_LABEL_PLAY")}}),_.t(_.KTX,null)),_.t("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.t(OvT,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){ClX(w.value)},
tooltipText:_.w8("PREVIOUS_VIDEO_LABEL")}),_.t(OvT,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:n,onTap:function(){ns4(w.value)},
tooltipText:_.w8("NEXT_VIDEO_LABEL")}),_.m("web_shorts_pip_like_button")?_.t("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.t(c8i,{buttonTooltipPosition:"left",data:C,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.t("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.t(_.NI,{cond:function(){var a,X;return _.z((a=N())==null?void 0:(X=a.reelPlayerOverlayRenderer)==null?void 0:X.metapanel,
suI)},
then:function(a){return _.t("div",{class:_.Li("ytdShortsMiniplayerOverlayInteractive")},_.t(_.Uqt,{data:a}))}})),_.t("div",{class:_.Li("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var a;return!((a=N())==null||!a.adsOverlay)||B()&&!z2c(B())}},_.t("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.t(_.Ru7,null)))),_.t(_.NI,{cond:function(){var a=N(),X,d;
a=_.z(a==null?void 0:(X=a.adsOverlay)==null?void 0:(d=X.fulfillmentContent)==null?void 0:d.fulfilledLayout,fu2);return _.z(a==null?void 0:a.renderingContent,VZS)},
then:function(a){return _.t("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.t(d0z,{data:a}))}}))},"ue");var NJK=_.GM(function(){var W=_.b(_.kw(new _.lB(NaN,NaN),void 0,"dCf7yb")),k=W.next().value,C=W.next().value;W=_.b(_.kw(!1,void 0,"smJHAc"));var n=W.next().value,N=W.next().value,B=_.b(_.kw(!1,void 0,"HnqDAc"));W=B.next().value;var A=B.next().value,w=_.f().resolve(_.eq).miniplayerPropSignalMap[0],x=w.data,E=w.shortsData,a=w.nextButtonDisabled,X=w.shortsPreviewThumbnail,d=w.previousButtonDisabled,V=w.externalPlaylistData;B=w.toastData;var c=w.playabilityStatus,M=w.isDisabled;w=_.X8(_.b2);_.GJ("yt-pip-window-resized",
function(h){C(h)});
_.GJ("yt-activate-pip-miniplayer",function(){return _.F(function(h){A(!0);_.ab(h)})});
var p=function(){var h;return!((h=V())==null||!h.contents)&&n()},e=function(){var h=k(),L=!!x(),Bw=p();
h=h.clone();L&&(h.height-=76);Bw&&(h.height-=285);return h},u=function(){N(!n())};
return _.t("ytd-pip-container",{class:"ytdPipContainerHost"},_.t(_.NI,{cond:W,then:function(){return _.t(_.WaS,{isDisabled:M,playabilityStatus:c,size:e})}}),_.t(_.NI,{cond:x,
then:function(){return _.t(_.KK7,{data:x,expanded:n,onExpandClick:u,playlistData:V})}}),_.t(_.NI,{cond:p,
then:function(){return _.t("div",{class:"ytdPipContainerPlaylistPanel"},_.t(_.ViC,{data:V,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.t(_.NI,{cond:w,
then:function(){return _.t(LaE,{data:E,nextButtonDisabled:a,previousButtonDisabled:d,playabilityStatus:c,previewThumbnail:X})}}),_.t("div",{class:"ytdPipContainerToast"},_.t(_.kwS,{toastData:B})))},"ve");var AF=function(W,k){var C=this;this.pipController=W;this.JSC$16302_clientRoot=k;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=w_c();this.watchPipEnabled=_.m("web_watch_pip");this.shortsPipEnabled=_.m("web_shorts_pip");this.JSC$16302_watchWhileEnabled=_.m("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;_.nE(_.ZF(),_.pK3,function(n){C.isSingleOptionSurveyActive=n});
this.JSC$16302_onPlayerPlayVideo=this.JSC$16302_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.e6(_.vx.getInstance(),this.miniplayerServiceActionMap,this.JSC$16302_clientRoot);window.documentPictureInPicture&&_.IJ()&&_.a9("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Aix,CTS,KaB,nI7,NIT,wIZ,YKT,BIT,bMZ,WwA;
AF.prototype.handleMediaSessionPipActivation=function(){var W=this,k;return _.F(function(C){_.k7().mediaSessionPipActivation=!0;k=_.f().resolve(_.yF);return k.isOnWatch()&&W.watchPipEnabled?(_.k7().watchPipActivation=!0,_.jM6(W,k.data),C.jumpTo(0)):k.isOnShorts()&&W.shortsPipEnabled?(_.k7().shortsPipActivation=!0,_.HvA(W),C.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?_.l(C,rEi(W),0):C.jumpTo(0)})};
var rEi=function(W){var k,C,n,N;return _.F(function(B){if(B.nextAddress==1)return k=!W.miniplayerToPipMode,C=W.playerElement,n=W.miniplayerData,N=W.watchResponse,_.l(B,W.deactivate(),2);if(B.nextAddress!=3)return k?(_.k7().mediaSessionPipActivation=!0,_.k7().watchPipActivation=!0):_.k7().miniplayerButtonActivation=!0,_.l(B,W.activate(C,n,N),3);W.miniplayerToPipMode=k;_.ab(B)})};
AF.prototype.onDownloadedVideoDeleted=function(W){var k,C=_.z((k=this.miniplayerData)==null?void 0:k.watchEndpoint,_.RA),n,N;C&&((n=this.watchResponse)==null?void 0:(N=n.playerResponse)==null?void 0:N.offlineState)!==void 0&&(k=C.videoId)&&W&&k===W&&this.close()};
AF.prototype.onShowMiniplayerCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a,X,d,V,c;return _.F(function(M){switch(M.nextAddress){case 1:return C=_.z(W,c9C),N=(n=C)==null?void 0:n.miniplayerCommand,B=_.z(N,_.RA),N&&B&&!k.active?_.l(M,_.wF.getInstance(),2):M.return();case 2:return A=M.yieldResult,_.l(M,(w=A)==null?void 0:w.get("yt-miniplayer-shown-video-id"),3);case 3:x=M.yieldResult;E=B.videoId;if(!E||x===E)return M.return();a=_.f().resolve(_.yF);if(a.isOnWatch())return _.zJ(Error("Cj")),M.return();
X={channelItem:{externalId:btoa(E)}};k.readyToResumeVe=_.F8(121253,void 0,void 0,X);_.k7().showMiniplayerCommandActivation=!0;return _.l(M,_.x4Y(k,N,!0),4);case 4:return k.active?(_.Fd(k,{readyToResumeVe:k.readyToResumeVe,continueWatching:!0,premiumBranding:!((d=C)==null||!d.showPremiumBranding)}),k.isReadyToResume=!0):_.Fd(k,{continueWatching:!0,premiumBranding:!((V=C)==null||!V.showPremiumBranding)}),_.m("ytd_miniplayer_to_wiz")&&_.Fd(k,{isReadyToResume:!0}),_.l(M,(c=A)==null?void 0:c.set("yt-miniplayer-shown-video-id",
B.videoId),5);case 5:k.readyToResumeVe=void 0,_.ab(M)}})};
AF.prototype.init=function(W){this.miniplayerEl?_.zJ(new _.AM("MiniplayerService already initialized.")):this.miniplayerEl=W};
AF.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.zJ(new _.AM("MiniplayerService used before initialized."));return W};
_.jM6=function(W,k){if(W.isInitialized()){var C=_.tSz(k.response,k.playerResponse),n=_.f().resolve(_.yF).getPlayerFromWatch();_.k7().currentEndpoint=C.watchEndpoint||null;W.activate(n,C,k)}};
_.HvA=function(W){if(W.isInitialized()){var k=_.f().resolve(_.yF).getPlayerFromShorts();W.activate(k)}};
Aix=function(W,k){var C;(C=!W.isInitialized())||(C=_.f().resolve(_.yF).isOnWatch()&&W.watchPipMode,C=!(W.isMiniplayerActive()&&(_.k7().userActivation||_.k7().lockupActivation||C)));if(C)return!1;g1A(W,k)?_.Y_(W):wIZ(W,k);return W.watchPipMode?!_.f().resolve(_.yF).isOnWatch():!0};
AF.prototype.isMiniplayerActive=function(){return this.active};
var g1A=function(W,k){var C;k=(C=_.z(k,_.RA))==null?void 0:C.videoId;var n,N;W=(N=_.z((n=W.miniplayerData)==null?void 0:n.watchEndpoint,_.RA))==null?void 0:N.videoId;return k!=null&&k===W};
AF.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Pe(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.KY(this.miniplayerEl,"yt-navigate-home-action"))};
_.x4Y=function(W,k,C,n){C=C===void 0?!1:C;var N,B,A;return _.F(function(w){switch(w.nextAddress){case 1:if(W.active){w.jumpTo(2);break}N=_.f().resolve(_.yF);if(A=(B=W.playerElement)!=null?B:N.getPlayerFromWatch()){w.jumpTo(3);break}return _.l(w,_.f().resolve(_.qE),4);case 4:A=N.getPlayerFromWatch();case 3:if(!A){_.zJ(Error("Ej"));w.jumpTo(2);break}return _.l(w,W.activate(A,n),2);case 2:return W.active?_.l(w,wIZ(W,k,C),0):w.return()}})};
AF.prototype.activate=function(W,k,C){var n=this,N,B,A,w,x,E,a,X;return _.F(function(d){switch(d.nextAddress){case 1:if(!n.isInitialized())return d.return();if(!W)return _.zJ(Error("Ej")),d.return();if(_.ajC()||n.isMiniplayerActive())var V=!0;else V=_.k7().watchPipActivation||_.k7().watchWhileActivation,_.f().resolve(_.yF).isOnWatch()&&!V?(_.zJ(new _.AM("miniplayer activated on watch page")),V=!0):V=_.k7().watchWhileActivation?n.userDeactivatedWatchWhile||!!document.pictureInPictureElement||kpX():
!1;if(V)return E8z(),d.return();N=_.k7().mediaSessionPipActivation;B=_.k7().shortsPipActivation;A=_.k7().watchPipActivation;x=(w=_.k7().watchWhileActivation)||A;E=A||B;if(!n.pictureInPictureEnabled()||!E){d.jumpTo(2);break}return _.l(d,Pe$(n,N),3);case 3:if(!d.yieldResult)return _.zJ(Error("Dj")),E8z(),d.return();case 2:return n.setActive(!0),n.watchResponse=C,n.playerElement=W,n.updateMiniplayerData(k),_.l(d,KaB(n,W),4);case 4:if(!n.active)return _.zJ(new _.AM("miniplayer deactivated during activation")),
n.removePlayerListeners(),d.return();V=_.f().resolve(_.J4);V.addEventListener("yt-navigate",_.LO(n,n.onPlaylistNavigate));V.addEventListener("yt-playlist-data-updated",_.LO(n,n.JSC$16302_onPlaylistDataUpdated));n.JSC$16302_onPlaylistDataUpdated();E8z();n.JSC$16302_watchWhileEnabled&&_.huS(n,w);n.pictureInPictureEnabled()&&n.shortsPipEnabled&&(n.shortsPipMode=B,_.ZF().dispatch(WAz(n.shortsPipMode)));n.pictureInPictureEnabled()&&n.watchPipEnabled&&(n.watchPipMode=A);n.player&&(a=n.player.getPlayerState(),
X=a===1,_.ZF().dispatch(FAA(a)),_.hA(n.miniplayerEl,"yt-miniplayer-play-state-changed",[X]),_.k7().isVideoPlaying=X);n.watchPipEnabled&&_.nKX(n.handleMediaSessionPipActivation);_.hA(n.miniplayerEl,"yt-miniplayer-endpoint-changed");WwA(n);_.kJu(n);return n.shortsPipMode||n.watchPipMode?_.l(d,_.WN(n.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.m("ytd_miniplayer_to_wiz")?_.l(d,_.WN(n.miniplayerEl,"yt-activate-miniplayer",[x]),6):_.l(d,_.WN(n.miniplayerEl,"yt-activate-miniplayer-action",[W,x]),6);
case 6:CTS(n),nI7(n,!0),_.ab(d)}})};
AF.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.Fd(this,{data:W})};
_.kJu=function(W){var k,C,n=((k=W.miniplayerData)==null?void 0:(C=k.miniplayerRenderer)==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";k=W.watchWhileMode||W.watchPipMode?n&&!_.f().resolve(_.yF).isOnWatch():n;_.Fd(W,{isDisabled:k});var N,B;C=_.z((N=W.miniplayerData)==null?void 0:(B=N.miniplayerRenderer)==null?void 0:B.minimizedEndpoint,_.Eq);k&&C&&_.f().resolve(_.tZ).openSheet({openPopupActionCommand:{openPopupAction:C}},W.miniplayerEl)};
CTS=function(W){if(W.watchResponse&&!NIT(W)){var k,C=(k=W.watchResponse.playerResponse)==null?void 0:k.trackingParams;C&&(_.Fd(W,{expandVe:_.F8(35989),closeVe:_.F8(34699),readyToResumeCloseVe:_.F8(131070),repositionVe:_.F8(226204),resizeVe:_.F8(226205)}),_.Fd(W,{playerVe:_.Yf(C)}))}};
KaB=function(W,k){return _.F(function(C){if(C.nextAddress==1)return k.preparePlayer(),_.l(C,k.getPlayerPromise(),2);W.player=C.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$16302_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.ab(C)})};
_.Y=AF.prototype;_.Y.JSC$16302_onPlayerPlayVideo=function(W){var k=W.sessionData&&"autonav"in W.sessionData,C;W.sessionData&&W.sessionData.itct&&(C=W.sessionData.itct);var n=W.watchEndpoint;k=n&&k?_.ZPP(n,C):_.uW(W.videoId,W.listId||void 0,C);W.sessionData&&_.qL(_.z(k.commandMetadata,_.Ok).url,W.sessionData);wIZ(this,k)};
_.Y.onPlayerExpandMiniplayer=function(){_.Y_(this)};
_.Y.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.Y.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),k=W===1;_.ZF().dispatch(FAA(W));_.ZF().dispatch(_.xg8(W));_.hA(this.miniplayerEl,"yt-miniplayer-play-state-changed",[k]);_.k7().isVideoPlaying=k;if(W===0){k=!_.Zn.getInstance().isAutoplaySetExplicitly();var C,n,N,B,A,w,x=(C=this.watchResponse.response)==null?void 0:(n=C.contents)==null?void 0:(N=n.twoColumnWatchNextResults)==null?void 0:(B=N.autoplay)==null?void 0:(A=B.autoplay)==null?void 0:(w=A.autoplayExplicitChoiceDialogRenderer)==
null?void 0:w.confirmDialogRenderer;k&&x&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.Y.onPlaylistNavigate=function(W,k){var C=this,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1){if(!_.z(k.endpoint,_.RA))return a.return();_.k7().currentEndpoint=k.endpoint;_.hA(C.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.f().resolve(_.yF).isOnWatch()&&(C.watchWhileMode||C.watchPipMode))return a.return();W.stopPropagation();(B=(N=_.z((n=k.endpoint)==null?void 0:n.commandMetadata,_.Ok))==null?void 0:N.url)&&k.tempData&&!_.JU.isEmpty(k.tempData)&&_.qL(B,k.tempData);A={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};w=new tLb(function(){return C.getPlayerElement()},A,{layer:3});
x=function(X){w.processChunk({endpoint:k.endpoint,data:X})};
YKT(C);C.miniplayerFetchRequest=BIT(C,k.endpoint,x);_.F0(a,2);return _.l(a,C.miniplayerFetchRequest,4)}if(a.nextAddress!=2)return E=a.yieldResult,bMZ(C,E),_.M7(a,0);_.EF(a);_.ab(a)})};
_.Y.JSC$16302_onPlaylistDataUpdated=function(){var W=_.f().resolve(_.J4).getPlaylistData();this.hasPlaylistData=!!W;_.Fd(this,{externalPlaylistData:W||{}})};
_.Y.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.f().resolve(_.yF).isOnWatch()||this.shortsPipMode)){var k;(k=this.getPlayerElement())==null||k.stop()}this.deactivate()}else _.Qd().closeMiniplayer(this.miniplayerEl)};
_.Y.deactivate=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1){if(!k.isInitialized()||!k.active)return A.return();k.setActive(!1);YKT(k);(C=!!W&&g1A(k,W))&&k.isSingleOptionSurveyActive&&_.KY(k.miniplayerEl,"yt-show-watch-page-survey",[k.isSingleOptionSurveyActive]);return _.l(A,ABC(k),2)}if(A.nextAddress!=3){nI7(k,!1);k.isReadyToResume=!1;k.watchResponse=void 0;k.updateMiniplayerData(void 0);k.shortsPipMode&&(k.shortsPipMode=!1,_.ZF().dispatch(WAz(k.shortsPipMode)),sWC(k.pipController),
(n=k.player)==null||n.setInternalSize(NaN,NaN));k.watchPipMode&&(k.watchPipMode=!1,sWC(k.pipController));(N=k.watchWhileMode)&&_.huS(k,!1);k.removePlayerListeners();var w=_.f().resolve(_.J4);w.removeEventListener("yt-navigate",_.LO(k,k.onPlaylistNavigate));w.removeEventListener("yt-playlist-data-updated",_.LO(k,k.JSC$16302_onPlaylistDataUpdated));_.k7().currentEndpoint=null;_.hA(k.miniplayerEl,"yt-miniplayer-endpoint-changed");k.playerElement=null;E8z();return k.shortsPipMode||k.watchPipMode?A.jumpTo(3):
_.l(A,_.WN(k.miniplayerEl,_.m("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[C,N]),3)}(B=k.player)==null||B.setInternalSize(NaN,NaN);k.player=null;_.ab(A)})};
var ABC=function(W){var k;return _.F(function(C){k=_.f().resolve(_.yF);return W.shortsPipMode?_.l(C,k.movePlayerToShorts(W.playerElement),0):_.l(C,k.movePlayerToWatch(W.playerElement),0)})};
AF.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16302_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
AF.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.KY(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.KY(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.ZF().dispatch(_.jo({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.huS=function(W,k){W.watchWhileMode=k;_.Fd(W,{watchWhile:k})};
nI7=function(W,k){if(!NIT(W))if(W.shortsPipMode||W.watchPipMode){var C;(C=W.player)==null||C.setDocumentPictureInPicture(k)}else{var n;(n=W.player)==null||n.setMinimized(k)}};
NIT=function(W){return W.watchWhileMode&&_.m("kevlar_watch_while_counterfactual")};
_.Y_=function(W){var k;return _.F(function(C){switch(C.nextAddress){case 1:if(!W.isInitialized())return C.return();_.F0(C,2);return _.l(C,W.miniplayerFetchRequest,4);case 4:_.M7(C,3);break;case 2:_.EF(C);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(k={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.Pe(W.miniplayerEl,"yt-navigate-cache",k)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.Pe(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.ab(C)}})};
wIZ=function(W,k,C){var n,N,B,A;return _.F(function(w){if(w.nextAddress==1){if(g1A(W,k))return w.return();_.k7().currentEndpoint=k;_.hA(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.hA(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.k7().isVideoPlaying=!1;n={clientParams:{miniplayer:!0,autoSaveToQueue:!C}};N=new tLb(function(){return W.getPlayerElement()},n,{layer:3,
parentLayer:0},void 0,W.readyToResumeVe);B=function(x){var E,a,X=Object.assign({},(E=x.playerResponse)==null?void 0:(a=E.playerConfig)==null?void 0:a.playbackStartConfig,{startPaused:!0}),d;C&&((d=x.playerResponse)==null?0:d.playerConfig)&&(x.playerResponse.playerConfig.playbackStartConfig=X);N.processChunk({endpoint:k,data:x})};
YKT(W);W.miniplayerFetchRequest=BIT(W,k,B);_.F0(w,2);return _.l(w,W.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return A=w.yieldResult,bMZ(W,A),_.M7(w,0);_.EF(w);_.ab(w)})};
YKT=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)};
BIT=function(W,k,C){var n=_.jD.instance,N,B=(N=_.z(k.commandMetadata,_.Ok))==null?void 0:N.url,A;N=!B||_.m("disable_miniplayer_tempdata")?{}:(A=nM2(B))!=null?A:{};return ya(n,k,N,window.location.href,"watch",function(w,x){C(x)},function(w){return w!==W.miniplayerFetchRequest})};
bMZ=function(W,k){var C;_.F(function(n){if(!k)return n.return();W.watchResponse=k;CTS(W);WwA(W);C=_.tSz(k.response,k.playerResponse);if(W.isMiniplayerActive()){k.response&&(W.playerElement.watchNextData=k.response);var N=_.JU.getValueByKeys.apply(_.JU,[k].concat(_.J8(JaS)));_.JU.getValueByKeys.apply(_.JU,[k].concat(_.J8(Qcz)))&&N&&_.f().resolve(_.J4).setAutoplayRenderer(N);if(N)if(_.m("kevlar_is_pupi_enabled")){var B,A,w,x,E,a=((B=k.response)==null?0:(A=B.playerOverlays)==null?0:(w=A.playerOverlayRenderer)==
null?0:(x=w.autonavToggle)==null?0:(E=x.autoplaySwitchButtonRenderer)==null?0:E.enabled)?2:1;_.Zn.getInstance().setState(a,!1,!1)}else B=XFI()?2:1,(a=W.player)==null||a.setAutonavState(B);W.updateMiniplayerData(C);_.kJu(W)}_.ab(n)})};
WwA=function(W){var k,C,n=(k=W.watchResponse)==null?void 0:(C=k.playerResponse)==null?void 0:C.playabilityStatus,N;k=n==null?void 0:(N=n.miniplayer)==null?void 0:N.miniplayerRenderer;(k==null?void 0:k.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&k.minimizedEndpoint&&_.kQ(W.miniplayerEl,[k.minimizedEndpoint]);_.Fd(W,{miniplayerRenderer:k,playabilityStatus:n})};
AF.prototype.openToast=function(W,k){_.Fd(this,{toastData:{data:W,label:k}})};
_.Fd=function(W,k){var C=W.miniplayerEl,n;for(n in k)C[n]=k[n];(0,W.miniplayerPropSignalMap[1])(k)};
AF.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.S(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
var Pe$=function(W,k){k=k===void 0?!1:k;var C,n,N,B,A,w,x;return _.F(function(E){if(E.nextAddress==1){C=navigator.userActivation.isActive||k;if(!C)return E.return(!1);n=Fw7(W);N=n.width;B=n.height;return _.l(E,W.pipController.openWindow({width:N,height:B}),2)}A=E.yieldResult;w=W.pipController.getWindow();if(!w||!A)return E.return(!1);w.document.body.style.overflow="hidden";x=YNw(w);GmT(W.pipController,function(){wxY(W);x()});
return E.return(!0)})},Fw7=function(W){var k=_.k7().shortsPipActivation,C,n;
W=k?.5625:(n=(C=W.player)==null?void 0:C.getVideoAspectRatio())!=null?n:16/9;C=Math.min(window.innerWidth,window.innerHeight)/2;k=k?0:76;return W>1?new _.lB(C,k+C/W):new _.lB(C*W,k+C)},wxY=function(W){var k;
_.F(function(C){k=_.f().resolve(_.yF);return k.isOnWatch()&&W.watchPipMode||k.isOnShorts()&&W.shortsPipMode?_.l(C,W.deactivate(),0):W.miniplayerToPipMode?_.l(C,rEi(W),0):W.watchPipMode?_.l(C,_.Y_(W),0):C.jumpTo(0)})};
AF.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.IJ()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.oq.Object.defineProperties(AF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
AF[ic]=[_.yYA,e_S];var xPB="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(" "),
lxT="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var t61=null;var EIS={},axT=(EIS.initialized={priority:10,callback:function(W){var k=_.f();k.addProvider({provide:L$2,useClass:vn$});k.addProvider({provide:_.pvu,useFactory:function(){return new jWs}});
k.addProvider({provide:am,useValue:_.DE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});k.addProvider({provide:OU6,useValue:5184E6});k.addProvider({provide:YgT,useValue:_.D7()});k.addProvider({provide:aD7,useClass:NtC});k.addProvider({provide:Tx,useClass:Tx});k.addProvider({provide:_.qE,useFactory:function(){return C4A.promise}});
k.addProvider({provide:_.Nls,useFactory:function(){return _.nAb.promise}});
k.addProvider({provide:_.jr,useValue:function(){var w;return((w=_.Zf())==null?void 0:w.getPlayer())||null}});
var C={};k.addProvider((C.provide=_.p1,C.useFactory=function(w,x){return function(){return RfJ(w,x)}},C[ic]=[am,
OU6],C));C={};k.addProvider((C.provide=_.HV,C.useClass=sLC,C[ic]=[am,OU6],C));C={};k.addProvider((C.provide=_.m_K,C.useClass=ZN7,C[ic]=[_.HV],C));k.addProvider({provide:Bs,useFactory:_.ZF});k.addProvider({provide:ns,useFactory:_.ZF});k.addProvider({provide:dfB,useFactory:_.ZF});k.addProvider({provide:Q_Z,useFactory:_.ZF});k.addProvider({provide:_.ak,useFactory:_.ZF});k.addProvider({provide:rC,useValue:_.C5});k.addProvider({provide:cjE,useClass:a62});k.addProvider({provide:cUC,useClass:JU$});k.addProvider({provide:af,
useClass:af});k.addProvider({provide:AX,useClass:AX});k.addProvider({provide:xy,useClass:xy});k.addProvider({provide:tX,useClass:tX});k.addProvider({provide:VR,useClass:VR});k.addProvider({provide:KC,useClass:KC});k.addProvider({provide:Oj,useClass:Oj});k.addProvider({provide:mD6,useValue:uVZ});k.addProvider({provide:_.nR,useFactory:_.kf});k.addProvider({provide:KDA,useFactory:_.tQ});C={};k.addProvider((C.provide=h2m,C.useFactory=function(w){return function(x){var E=E===void 0?{}:E;var a,X,d=(X=_.z((a=
x.endpoint)==null?void 0:a.commandMetadata,_.Ok))==null?void 0:X.rootVe;if(d){var V,c;if(a=x.previousCsn||((c=_.z((V=x.endpoint)==null?void 0:V.commandMetadata,KBC))==null?void 0:c.parentCsn)){var M=M===void 0?{}:M;if(a!==_.VM(M.layer)||d!==FfJ(M.layer))EvJ(a,M.cttAuthInfo,M.layer||0),b_J(a,M.layer||0),V=M.layer||0,_.z3(Akc(V===void 0?0:V),d);E.parentCsn=a}x.endpoint&&a?W2A(w,x.endpoint,E):_.jC(w,d,void 0,E);var p;((p=x.response)==null?0:p.trackingParams)&&w.graftServerVe(x.response.trackingParams);
var e;((e=x.playerResponse)==null?0:e.trackingParams)&&w.graftServerVe(x.playerResponse.trackingParams);var u;((u=x.reelWatchSequenceResponse)==null?0:u.trackingParams)&&w.graftServerVe(x.reelWatchSequenceResponse.trackingParams)}}},C[ic]=[_.nR],C));
C={};k.addProvider((C.provide=z_7,C.useClass=mfi,C[ic]=[rC,_.ak],C));C={};k.addProvider((C.provide=TU,C.useClass=TU,C[ic]=[_.qE,_.ak],C));C={};k.addProvider((C.provide=ZM,C.useClass=ZM,C[ic]=[ns,_.uI],C));k.addProvider({provide:_.Soi,useClass:Zyi});C={};k.addProvider((C.provide=_.lj,C.useClass=pHZ,C[ic]=[_.Soi],C));k.addProvider({provide:_.tZ,useClass:UG});k.addProvider({provide:_.E1,useClass:qG});C={};k.addProvider((C.provide=_.iv,C.useClass=$ft,C[ic]=[_.iv],C));_.m("web_enable_voting_animation")&&
k.addProvider({provide:_.eg,useClass:fdC});k.addProvider({provide:xm,useClass:xm});k.addProvider({provide:fd,useClass:fd});k.addProvider({provide:cs,useClass:u$});C={};k.addProvider((C.provide=M1,C.useClass=M1,C[ic]=[_.tZ,cs],C));_.m("web_enable_feedback_endpoint_resolver")&&(C={},k.addProvider((C.provide=bv,C.useClass=bv,C[ic]=[Bs,Ym],C)),k.addProvider({provide:Ym,useClass:RsE}));_.m("web_enable_feedback_endpoint_resolver_batch_2")&&(C={},k.addProvider((C.provide=FX,C.useClass=FX,C[ic]=[Bs],C)),
C={},k.addProvider((C.provide=AL,C.useClass=AL,C[ic]=[Ym],C)));C={};k.addProvider((C.provide=Im,C.useClass=Im,C[ic]=[_.E1,cs],C));C={};k.addProvider((C.provide=zL,C.useClass=zL,C[ic]=[_.E1],C));C={};k.addProvider((C.provide=SG,C.useClass=SG,C[ic]=[_.xZ,_.lj],C));C={};k.addProvider((C.provide=JL,C.useClass=JL,C[ic]=[_.xZ,_.nR],C));k.addProvider({provide:jG,useClass:jG});C={};k.addProvider((C.provide=uv,C.useClass=uv,C[ic]=[Bs],C));C={};k.addProvider((C.provide=Ba,C.useClass=Ba,C[ic]=[Bs],C));C={};
k.addProvider((C.provide=bN,C.useClass=bN,C[ic]=[_.xZ,Bs],C));C={};k.addProvider((C.provide=Ag,C.useClass=Ag,C[ic]=[Bs],C));C={};k.addProvider((C.provide=Fa,C.useClass=Fa,C[ic]=[Bs],C));C={};k.addProvider((C.provide=D4,C.useClass=D4,C[ic]=[_.lj],C));C={};k.addProvider((C.provide=Ps,C.useClass=Ps,C[ic]=[_.nR],C));C={};k.addProvider((C.provide=nC,C.useClass=nC,C[ic]=[Of],C));C={};k.addProvider((C.provide=Nx,C.useClass=Nx,C[ic]=[Of],C));k.addProvider({provide:Wa,useClass:Wa});k.addProvider({provide:kU,
useClass:kU});k.addProvider({provide:ge,useClass:ge});C={};k.addProvider((C.provide=Qx,C.useClass=Qx,C[ic]=[_.lj,_.uI],C));k.addProvider({provide:Ef,useClass:Ef});C={};k.addProvider((C.provide=Vx,C.useClass=Vx,C[ic]=[_.xZ,_.lj],C));k.addProvider({provide:de,useClass:de});C={};k.addProvider((C.provide=TL,C.useClass=TL,C[ic]=[Bs,_.xZ,_.iv],C));C={};k.addProvider((C.provide=Rm,C.useClass=Rm,C[ic]=[_.xZ,_.uI],C));k.addProvider({provide:xm2,useValue:hLw});k.addProvider({provide:dTw,useValue:YfK});k.addProvider({provide:om,
useClass:om});C={};k.addProvider((C.provide=Z4,C.useClass=Z4,C[ic]=[Bs],C));C={};k.addProvider((C.provide=q1,C.useClass=q1,C[ic]=[_.eg,_.uI],C));C={};k.addProvider((C.provide=we,C.useClass=we,C[ic]=[_.uI],C));k.addProvider({provide:N1,useFactory:function(){return new N1(_.ZF())}});
k.addProvider({provide:Jx4,useFactory:_.I8.getInstance});C={};k.addProvider((C.provide=XX,C.useClass=XX,C[ic]=[am,Jx4,_.uI],C));k.addProvider({provide:lv,useClass:lv});k.addProvider({provide:hI,useClass:hI});k.addProvider({provide:km,useClass:km});k.addProvider({provide:_.Ws,useClass:_.Ws});k.addProvider({provide:lN,useClass:lN});C={};k.addProvider((C.provide=GL,C.useClass=GL,C[ic]=[ns],C));C={};k.addProvider((C.provide=yx,C.useClass=yx,C[ic]=[_.uI],C));_.m("web_enable_prefetching_videos_on_home")&&
(k.addProvider({provide:$y,useClass:$y}),k.addProvider({provide:W7,useClass:W7}));C={};k.addProvider((C.provide=xU,C.useClass=xU,C[ic]=[_.uI],C));k.addProvider({provide:Cd,useClass:Cd});C={};k.addProvider((C.provide=Hs,C.useClass=Hs,C[ic]=[_.xZ,_.uI],C));C={};k.addProvider((C.provide=nd,C.useClass=nd,C[ic]=[_.uI],C));k.addProvider({provide:k_,useClass:k_});k.addProvider({provide:eG,useClass:eG});C={};k.addProvider((C.provide=vs,C.useClass=vs,C[ic]=[ns,_.uI],C));C={};k.addProvider((C.provide=aT,C.useClass=
aT,C[ic]=[ns,_.uI,_.xZ],C));C={};k.addProvider((C.provide=Xa,C.useClass=Xa,C[ic]=[_.uI],C));C={};k.addProvider((C.provide=Ej,C.useClass=Ej,C[ic]=[_.uI,_.xZ],C));C={};k.addProvider((C.provide=$m,C.useClass=$m,C[ic]=[_.qE],C));C={};k.addProvider((C.provide=sf,C.useClass=sf,C[ic]=[_.qE],C));k.addProvider({provide:Uf,useClass:Uf});k.addProvider({provide:Ld,useClass:Ld});k.addProvider({provide:YU,useClass:YU});_.m("kevlar_enable_mss_lazy_load")&&k.addProvider({provide:_.G_,useClass:FK1});k.addProvider({provide:_.OV,
useClass:L1});k.addProvider({provide:$k,useFactory:function(){return _.vx.getInstance()}});
k.addProvider({provide:XHS,useFactory:WXm});k.addProvider({provide:Of,useFactory:function(){return _.wF.getInstance()}});
k.addProvider({provide:rZs,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});C={};k.addProvider((C.provide=_.Rf,C.useClass=_.Rf,C[ic]=[_.qE,_.uI,_.nR,XHS,Of,$k,rZs,rC],C));k.addProvider({provide:_.UQS,useClass:ud8});k.addProvider({provide:_.jOt,useClass:LDY});C={};k.addProvider((C.provide=mz,C.useClass=mz,C[ic]=[_.jOt],C));C={};k.addProvider((C.provide=_.of,C.useFactory=function(w){return w.upliftCompletionResolver.promise},C[ic]=[z_7],C));
C=_.cv("IS_SHELL_LOAD")?"aa":"eocs";var n=_.cv("IS_SHELL_LOAD")?3:2;_.Ir().parkOrScheduleJob(function(){Vw$()},n,C);
_.Ir().parkOrScheduleJob(function(){_.f().resolve(TU).start()},2,"eocs");
_.Ir().parkOrScheduleJob(function(){fDS()},2,"eocs");
_.Ir().parkOrScheduleJob(function(){_.f().resolve(ZM).start()},2,"eocs");
_.m("kevlar_debug_data_app_registration_ks")||YGz();k.addProvider({provide:_.xa,useValue:new Miu(W.root)});k.addProvider({provide:QE,useValue:new Gn2});k.addProvider({provide:_.$9T,useValue:new Gtu(W.root)});k.addProvider({provide:_.Ah,useValue:new y8S});k.addProvider({provide:_.rF,useValue:new k8(W.root)});k.addProvider({provide:_.yYA,useClass:OG});_.m("kevlar_network_sli_killswitch")||k.addProvider({provide:$I$,useValue:y0s});k.addProvider({provide:IE$,useFactory:Gp4});_.m("web_bind_fetch")&&(C=
{},k.addProvider((C.provide=SeA,C.useFactory=ysw,C[ic]=[_.qI(IE$)],C)));_.m("web_bind_parse")&&(C={},k.addProvider((C.provide=MOu,C.useFactory=$BK,C[ic]=[_.qI(IE$)],C)));_.m("web_bind_window_request")&&(C={},k.addProvider((C.provide=Q4Z,C.useFactory=Z4w,C[ic]=[_.qI(IE$)],C)));C={};k.addProvider((C.provide=FJS,C.useFactory=gKI,C[ic]=[_.of,Bs,_.p1],C));C={};k.addProvider((C.provide=Ad7,C.useClass=fC,C[ic]=[FJS],C));k.addProvider({provide:cdE,useClass:zAB});k.addProvider({provide:Nu1,useClass:BuT});
C=[].concat(_.J8(QF));_.m("web_continuation_response_processing")&&C.push(_.dE);C.push(wRC);_.m("enable_share_panel_navigation_logging_fix_on_web")&&C.push(_.jvC);k.addProvider({provide:VMw,useValue:C});k.addProvider({provide:SNw,useClass:nLt});k.addProvider({provide:iSt,useClass:ZSC});C={};k.addProvider((C.provide=V1p,C.useClass=HgY,C[ic]=[ns],C));_.aM.addLowPriorityJob(function(){J$p()});
C={};k.addProvider((C.provide=GxA,C.useFactory=function(w){return function(x){var E,a=(E=_.z(x.commandMetadata,_.Ok))==null?void 0:E.url;if(!a)throw new _.AM("No URL for PBJ Command",x);a=EQc(a,{pbj:"1"});E=szm(a,{})||{};E=Object.assign({},E,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.DE("STS").toString()});x=_.W4({command:JSON.stringify(x),session_token:_.DE("XSRF_TOKEN")});return w.fetch(a,{method:"POST",headers:E,body:x})}},C[ic]=[iSt],C));
C=[];C.push(k.resolve(Nu1));n={};n=(n.client_location=_.I8.getInstance(),n.consistency=_.yZm(),n.entities=k.resolve(cUC),n.response_received_commands=k.resolve(SNw),n.store=k.resolve(_.m_K),n.tokens=k.resolve(Nu1),n);if(_.m("web_shorts_prefetch_service_enabled")){var N=new RAi(k.resolve(_.HV));n.shorts_prefetch=N}n.adblock_detection=k.resolve(V1p);k.addProvider({provide:_.Qw,useClass:_.Qw});N=k.resolve(mD6);var B=[];if(_.m("PremiumClientSharedConfig__enable_att_context_processor")||_.m("enable_att_for_transcript_request_on_web_client"))k.addProvider({provide:AUB,
useClass:YX$}),B.push(k.resolve(AUB));if(_.m("owl_pl_await")){var A={};k.addProvider((A.provide=mIC,A.useFactory=function(w){return new fEi(w)},A[ic]=[_.Qw],A));
B.push(k.resolve(mIC))}xpA(N,k.resolve(iSt),k.resolve(cjE),n,k.resolve(_.HV),C,B,k.resolve(Ad7),k.resolve(cdE));k.addProvider({provide:_.xZ,useValue:_.cJ.instance});_.m("start_client_gcf")&&k.addProvider({provide:xI,useValue:aH8()});k.addProvider({provide:cYu,useFactory:function(){return new cYu(_.f().resolve(_.Qw),_.wF.getInstance())}});
_.Ir().parkOrScheduleJob(function(){ID6()},1,"eocs");
C={};k.addProvider((C.provide=i$,C.useClass=i$,C[ic]=[_.p1,_.xZ],C));k.addProvider({provide:_.qoB,useFactory:_.hX.getInstance});_.Ir().parkOrScheduleJob(function(){_.f().resolve(i$).refresh()},0,"eocs");
yc2(uVZ.watchEndpointMap||{},N.reelWatchEndpointMap||{},W.injector.resolve(_.xZ));k.addProvider({provide:dk,useValue:_.jD.instance});_.m("web_prs_testing_mode_killswitch")||(C=new _.oA(window.location.href),C.JSC$7905_queryData_.toString()!==""&&C.JSC$7905_queryData_.get("force_ad_encrypted")&&(_.jD.instance.forceWebFEForAdsTesting=!0));_.m("kevlar_signal_collection_killswitch")||(C={},k.addProvider((C.provide=EwC,C.useClass=EwC,C[ic]=[am,KDA],C)),_.Ir().parkOrScheduleJob(function(){_.f().resolve(EwC).record()},
1,"eocs"));
_.m("web_debug_handler_registration_killswitch")||_.Ir().parkOrScheduleJob(function(){ny2("DOWNLOAD_PES",hfJ);_.m("offline_client_state_export_ks")||ny2("OFFLINE_CLIENT_STATE",gE2)},0,"eocs");
_.m("kevlar_prevent_polymer_dynamic_font_load")&&_.Ir().parkOrScheduleJob(function(){var w=[_.k0(PI1),_.k0(KhB)];w=_.b(w);for(var x=w.next();!x.done;x=w.next()){x=x.value;var E=document.createElement("link");_.rj(E,x,"stylesheet");document.head.appendChild(E)}},1,"eocs");
C=W.injector.resolve(_.xZ);_.bU7.instance=new _.bU7(C);$53(haS(new BPi(C)));C={};W.injector.addProvider((C.provide=qP,C.useFactory=function(w){(w=w==null?void 0:w.getCurrentPage())?w=w.visibilityObserver:(t61||(t61=$CK()),w=t61);return w},C[ic]=[_.qI(_.yF)],C.skipCache=!0,C));
k.addProvider({provide:_.eq,useClass:AF});k.addProvider({provide:Wr,useClass:P3Z});k.addProvider({provide:Omz,useValue:Cxc});W.injector.addProvider({provide:uJx,useValue:SFA});k.addProvider({provide:q8I,useValue:KM2});k.addProvider({provide:_.cj,useValue:wQ3});W=k.addProvider;UfY||(UfY=new uMY);W.call(k,{provide:_.OyY,useValue:UfY});k.addProvider({provide:_.Sc,useValue:_.DE("HTML_DIR")==="rtl"?"rtl":"ltr"});k.addProvider({provide:SXS,useClass:$3E});k.addProvider({provide:_.rH,useClass:jE});_.f().addProvider({provide:QOE,
useValue:xPB.concat(lxT)});k.addProvider({provide:_.rR,useClass:_.rR});k.addProvider({provide:_.j4Y,useValue:new Lh7});k.addProvider({provide:JoA,useClass:D3A});k.addProvider({provide:re,useClass:re});k.addProvider({provide:Kd,useClass:Kd});W={};k.addProvider((W.provide=pd,W.useClass=pd,W[ic]=[_.xZ,_.lj],W));k.addProvider({provide:tg,useClass:tg});k.addProvider({provide:u77,useClass:owT});k.addProvider({provide:CC,useClass:CC});k.addProvider({provide:kGs,useValue:p_x});k.addProvider({provide:_.Qp,
useClass:V3T});_.m("enable_payments_purchase_manager")&&k.addProvider({provide:ldC,useClass:FDC});k.addProvider({provide:gnY,useFactory:function(){return function(w){return _.rjT(w)}}});
k.addProvider({provide:_.kb7,useClass:Cg7});W={};k.addProvider((W.provide=w9,W.useClass=w9,W[ic]=[_.kb7],W));k.addProvider({provide:hL,useClass:hL});k.addProvider({provide:gz$,useValue:lei});k.addProvider({provide:c_8,useValue:PRC});k.addProvider({provide:Eyz,useClass:R_$});k.addProvider({provide:HHC,useValue:jX1});W={};k.addProvider((W.provide=_.rMA,W.useClass=ggA,W[ic]=[HHC],W));_.m("web_ephemeral_actions")&&(W={},k.addProvider((W.provide=_.PP,W.useClass=gR,W[ic]=[_.ak,_.rF],W)));if(_.m("web_explore_hub_on_hover")||
_.m("web_client_explore_hub_on_hover"))W={},k.addProvider((W.provide=tL,W.useClass=tL,W[ic]=[_.xZ,$k],W));k.addProvider({provide:qfm,useValue:GLI})}},EIS);var Xx7={},fx6=(Xx7.initialized={priority:10,callback:function(){if(!yjT){iiw();oKX("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.gA(_.lW(oKX,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.m("log_heartbeat_with_lifecycles")){var W={};yv.instance||(yv.instance=new yv);yv.instance.install((W.document_visible={callback:i4p,priority:10},W.document_hidden={callback:i4p,priority:10},W))}else _.Z3(document,"visibilitychange",i4p);yjT=!0}(W=_.VM())&&W!=="UNDEFINED_CSN"&&YOw(W)}},Xx7);var dPE={},mPB=(dPE.initialized={callback:function(W){var k=_.F8(232091),C=W.injector.resolve(_.nR);_.Hn(C,k);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?BJI()&&_.gc(C,k):(W=W.injector.resolve(gnY)("refresh_detector"))&&(W.get("first_tab_load")?_.gc(C,k):W.set("first_tab_load","1"))}},dPE);var z6S={},DPA=(z6S.initialized={priority:10,callback:Esw},z6S);var V6Z={},JB7=(V6Z.rendering={priority:8,callback:awm},V6Z);var cBu={},IxB=(cBu.rendering={priority:10,callback:QDm},cBu.rendered={callback:M14},cBu),SK1={},M67=(SK1.rendering={callback:QDm},SK1.rendered={callback:M14},SK1);var Q9C=!1,pxu={},vIC=(pxu.initialized={priority:10,callback:function(){Q9C||(thc({didPatch:function(W){W.el&&iQz(W.el,W.props)},
didUnmount:function(W){RTm(W.el)}}),Q9C=!0)}},pxu);var e6u=/^\/shorts\/?$/;_.z3("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(_.m("kevlar_enable_mss")){_.GW4(new kox);var s91=!0,GJu,wV;s91=s91===void 0?!1:s91;GJu=GJu===void 0?!1:GJu;wV=wV===void 0?{}:wV;var yBT=wV.cssRowKey||"",$PZ=wV.combinedSignature||"";!yBT&&window&&window._F_cssRowKey&&(yBT=window._F_cssRowKey,!$PZ&&window._F_combinedSignature&&($PZ=window._F_combinedSignature));if(yBT&&typeof window._F_installCss!=="function")throw Error("vd");var ZMT=wV.loaderClass||_.SF,R6E,oIE=dqI("base-js");R6E=_.to(oIE);var x_=new ZMT(R6E,yBT,$PZ,s91,GJu);wV.useCors&&(x_.useCors_=
wV.useCors);wV.corsMode&&(x_.corsMode_=wV.corsMode);wV.urlMaxLength&&(x_.urlMaxLength=wV.urlMaxLength);wV.fetchPriority&&(x_.fetchPriority=wV.fetchPriority);var iME=VQ();iME.JSC$7927_loader_=x_;iME.setBatchModeEnabled(!0)}
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Fj");W=new K1({root:W,injector:_.f()});W.install(fx6);var k={};W.install((k.initialized={priority:10,callback:S1c},k));_.m("wp_lat_b")&&(k={},W.install((k.initialized={priority:10,callback:function(){vK4()}},k)));
k={};W.install((k.rendered={priority:0,callback:JZ3},k));k={};W.install((k.rendered={priority:0,callback:function(){_.aM.addLowPriorityJob(function(){_.ZUZ>1&&(XrJ(),DY3())},4E4)}},k));
W.install(JMB);W.install(mPB);W.install(vIC);Vhp=EQC;xLI=O4J;MhJ=KjX;cAp=ho4;_.m("ytwiz_enable_debug_component_props")&&G7p();W.install(elT);W.install(f5E);W.install(D7u);W.install(byY);W.install(lDE);W.install(p4t);W.install(axT);_.m("kevlar_enable_mss_lazy_load")&&W.install(DPA);W.install(m71);if(!_.cv("IS_SHELL_LOAD")||_.m("kevlar_fetch_initial_data_promise_client")||_.m("sw_nav_preload_pbj")){var C=_.KS(window.location.href);k=C&&C==="/watch";C=C&&C.match(e6u);k?W.install(M67):C?W.install(JB7):
W.install(IxB)}else W.install(EgC);W.install(I5B);_.m("web_enable_prefetching_videos_on_home")&&W.install($7u);_.m("start_client_gcf")&&W.install(G31);W.install(CRt);(new cYS).increment("INSTALLED");W.install(GWC);W.install(x77);W.transition("initialized")})();
_._ModuleManager_initialize=function(W,k){if(!_.zb){if(!_.D0)return;_.GW4(_.D0())}_.zb.setAllModuleInfoString(W,k)};
_._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{
_.Xd=function(W,k,C,n,N){var B={};k&&(B[k]=C);n?B.errorType=n:N&&(B.errorReason=N);_.a9(W,B);_.fM()};
_.fm=function(W,k){_.j2w(W,_.Go(k))};
_.dV=function(W){var k=_.Ir();return _.yaY(k,W,1)};
_.Av({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var KwS;var h6E;var W5A=function(){};
_.Y=W5A.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y._createRipple=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
W5A=_.Av({is:"tp-yt-paper-radio-button",_template:function(){if(h6E!==void 0)return h6E;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;KwS===void 0&&(KwS=document.createElement("template"));var n=KwS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return h6E=W},
behaviors:[_.qvI],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(){_.ZR(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),k=Math.floor(3*W);k%2!==W%2&&k++;this.updateStyles({"--paper-radio-button-ink-size":k+"px"})}})}});var kXY;var CDZ;_.Av({_template:function(){if(CDZ!==void 0)return CDZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;kXY===void 0&&(kXY=document.createElement("template"));var n=kXY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return CDZ=W},
is:"tp-yt-paper-radio-group",behaviors:[_.W48],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(W){var k=this._valueToItem(W);if(!k||!k.hasAttribute("disabled")){if(this.selected){k=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{k&&(k.checked=!0);return}k&&
(k.checked=!1)}_.Jv.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.hbY._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.hbY._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Jv._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.dS._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var n66;_.EJ("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var N0i=function(){return _.R.apply(this,arguments)||this};
_.D(N0i,_.R);_.Y=N0i.prototype;_.Y.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.Y.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.Y.computeHideSecondaryString=function(W){return!_.m("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.Y.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.Y.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.KS(window.location.href)!=="/account_transfer_channel"&&_.KS(window.location.href)!=="/gaia_link"&&_.KS(window.location.href)!=="/channel_switcher"||W!=="/account"?_.KS(window.location.href)===W:!0:!1};
_.Y.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.kQ(this.hostElement,[this.data.serviceEndpoint])};
var mH=N0i;mH.prototype.onTap=mH.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mH.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.O("design:type",Boolean)],mH.prototype,"active",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.O("design:type",String)],mH.prototype,"compactLinkStyle",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",Object)],mH.prototype,"icon",void 0);_.U([_.Z({computed:"computeIcon_(data.secondaryIcon)"}),_.O("design:type",Object)],mH.prototype,"secondaryIcon",void 0);_.U([_.Z({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],mH.prototype,"hasSecondary",void 0);
_.U([_.Z({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],mH.prototype,"hideSecondaryString",void 0);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mH.prototype,"onTap",null);mH=_.U([_.T({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],mH);
_.q(mH,"ytd-compact-link-renderer",function(){if(n66!==void 0)return n66;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return n66=W},{mode:1});var YdS;_.EJ("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var B0T=function(){var W=_.R.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.m("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 W};
_.D(B0T,_.R);_.Y=B0T.prototype;_.Y.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Vi()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.Y.getCurrentTheme=function(){return _.Jh()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Vi()};
_.Y.onThemeSelected=function(W,k){var C=W||k?W:_.D6(),n=(C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ePX(_.KS(window.location.href));_.Er(0,165,W);_.Er(0,174,k);this.prefs.save();n&&_.KY(this.hostElement,"yt-dark-mode-toggled-action",[C]);_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.onTap=function(){this.data.serviceEndpoint&&_.kQ(this.hostElement,[this.data.serviceEndpoint])};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var z5=B0T;z5.prototype.onTap=z5.prototype.onTap;z5.prototype.dataChanged=z5.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],z5.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ZI),_.O("design:type",Object)],z5.prototype,"paperItemBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],z5.prototype,"data",void 0);_.U([_.Z({value:function(){return _.tQ()}}),
_.O("design:type",_.uc)],z5.prototype,"prefs",void 0);_.U([_.Z(),_.O("design:type",Object)],z5.prototype,"label",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z5.prototype,"role",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z5.prototype,"tabindex",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z5.prototype,"dataChanged",null);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z5.prototype,"onTap",null);z5=_.U([_.T({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],z5);
_.q(z5,"ytd-toggle-theme-compact-link-renderer",function(){if(YdS!==void 0)return YdS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return YdS=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Rg=function(W,k,C){_.MI(_.Eqm)(void 0,W,k,C)};
_.og=function(W){return function(k,C){var n=W||C.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(k,C,{get:function(){var N;return this.$?this.$[n]:(N=_.ri(this))==null?void 0:N.querySelector("#"+n)},
enumerable:!0,configurable:!0})}};_.im=function(W){W=W===void 0?!1:W;_.XK.call(this);this.pubSub_=new _.kg(W);_.Bf(this,this.pubSub_)};
_.Pq(_.im,_.XK);_.im.prototype.subscribe=function(W,k,C){return this.isDisposed()?0:this.pubSub_.subscribe(W,k,C)};
_.im.prototype.unsubscribe=function(W,k,C){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,k,C)};
_.im.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.im.prototype.publish=function(W,k){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var FUT=function(){_.Xd("ypcRedeemFlowStarted")},wQZ=function(W){_.Xd("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},x5Z=function(W,k,C){k&&C&&(W.videos.forEach(function(n){n.videoId===k&&(n.itemId=C)}),W.recommendedVideos.forEach(function(n){n.videoId===k&&(n.itemId=C)}))};var ltC;var t4$;/*

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
*/
_.Av({_template:function(){if(t4$!==void 0)return t4$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;ltC===void 0&&(ltC=document.createElement("template"));var n=ltC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return t4$=W},
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(W,k){var C=this._resolveSrc(W);C!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||k?this._setLoading(!1):(this._resolvedSrc=C,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var W=this.$.sizedImgDiv.style,k=this.$.placeholder.style;W.backgroundSize=k.backgroundSize=this.sizing;W.backgroundPosition=k.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=k.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.j6(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var EP1;var at7;_.Av({_template:function(){if(at7!==void 0)return at7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;EP1===void 0&&(EP1=document.createElement("template"));var n=EP1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return at7=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var k=this.getAttribute("heading"),C=this.getAttribute("aria-label");typeof C==="string"&&C!==k||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var XQE=new _.r("addRendererToItemSectionAction");var ftY;var d5S=function(){return _.R.apply(this,arguments)||this};
_.D(d5S,_.R);d5S.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var vt=d5S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vt.prototype,"rendererBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],vt.prototype,"dismissibleItemBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vt.prototype,"rendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vt.prototype,"data",void 0);vt=_.U([_.T({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],vt);
_.q(vt,"ytd-comment-history-entry-renderer",function(){if(ftY!==void 0)return ftY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ftY=W},{mode:1});var m5T;_.EJ("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.EJ("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var zLY=function(){return _.R.apply(this,arguments)||this};
_.D(zLY,_.R);_.Y=zLY.prototype;_.Y.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.Y.onTap=function(){this.data.recordClickEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.z(W,_.dc)&&_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})};
_.Y.readChanged=function(){var W;_.qw(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.Y.dataChanged=function(){this.data&&_.qw(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.Y.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.Y.getEndpointURL=function(W){return W&&!_.z(W,_.dc)?this.componentBehavior.computeHref_(W):null};
_.Y.getEndpointData=function(W){return W&&!_.z(W,_.dc)?W:null};
var eK=zLY;eK.prototype.computeThumbnailSize=eK.prototype.computeThumbnailSize;eK.prototype.dataChanged=eK.prototype.dataChanged;eK.prototype.readChanged=eK.prototype.readChanged;eK.prototype.onKeyUp=eK.prototype.onKeyUp;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],eK.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eK.prototype,"data",void 0);_.U([_.Z({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.O("design:type",Number)],eK.prototype,"thumbnailSize",void 0);_.U([_.jI("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],eK.prototype,"onKeyUp",null);
_.U([_.Hl("data.read"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eK.prototype,"readChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eK.prototype,"dataChanged",null);_.U([_.Hl("data.highPriorityNotification"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],eK.prototype,"computeThumbnailSize",null);
eK=_.U([_.T({is:"ytd-notification-renderer",disableElementRegistration:!0})],eK);
_.q(eK,"ytd-notification-renderer",function(){if(m5T!==void 0)return m5T;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return m5T=W},{mode:1});var D57;var V4u=function(){return _.R.apply(this,arguments)||this};
_.D(V4u,_.R);V4u.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"}}}};
V4u.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
var sB=V4u;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sB.prototype,"data",void 0);sB=_.U([_.T({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],sB);
_.q(sB,"ytd-playlist-show-metadata-renderer",function(){if(D57!==void 0)return D57;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return D57=W},{mode:1});var J$7;_.EJ("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var c$7=function(){return _.R.apply(this,arguments)||this};
_.D(c$7,_.R);var GE=c$7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],GE.prototype,"data",void 0);GE=_.U([_.T({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],GE);
_.q(GE,"ytd-purchase-item-renderer",function(){if(J$7!==void 0)return J$7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return J$7=W},{mode:1});var Itu;var SZS={};SZS.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.EJ("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var M4i=function(){return _.R.apply(this,arguments)||this};
_.D(M4i,_.R);M4i.prototype.onYtNavigate=function(W){var k=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);k&&(W.stopPropagation(),this.openPopupBehavior.openPopup(k))};
var y0=M4i;y0.prototype.onYtNavigate=y0.prototype.onYtNavigate;_.U([_.v(SZS.YtSimpleTextSectionBehavior),_.O("design:type",Object)],y0.prototype,"ytSimpleTextSectionBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],y0.prototype,"openPopupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],y0.prototype,"data",void 0);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],y0.prototype,"onYtNavigate",null);y0=_.U([_.T({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],y0);
_.q(y0,"ytd-simple-text-section-renderer",function(){if(Itu!==void 0)return Itu;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Itu=W},{mode:1});var Qn6;_.EJ("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var pQT=function(){return _.R.apply(this,arguments)||this};
_.D(pQT,_.R);var vPT=pQT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vPT.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vPT.prototype,"data",void 0);vPT=_.U([_.T({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],vPT);
_.q(vPT,"ytd-unlimited-page-feature-info-renderer",function(){if(Qn6!==void 0)return Qn6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Qn6=W},{mode:1});var eL6;var sn1;var G9S=function(){return _.R.apply(this,arguments)||this};
_.D(G9S,_.R);G9S.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.yI(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
var $E=G9S;$E.prototype.dataChanged=$E.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$E.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$E.prototype,"dataChanged",null);$E=_.U([_.T({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],$E);
_.q($E,"ytd-post-redemption-section-renderer",function(){if(sn1!==void 0)return sn1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return sn1=W},{mode:1});var y$T;var $5Z=function(){return _.R.apply(this,arguments)||this};
_.D($5Z,_.R);$5Z.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var ZG=$5Z;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZG.prototype,"data",void 0);ZG=_.U([_.T({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ZG);
_.q(ZG,"ytd-ypc-post-redemption-renderer",function(){if(y$T!==void 0)return y$T;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return y$T=W},{mode:1});_.EJ("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Z2S=function(){var W=_.R.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.D(Z2S,_.R);_.Y=Z2S.prototype;_.Y.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.Y.created=function(){this.riskService=new _.fGm;this.loadPaymentThenable=_.mz4(_.DE("YPC_MB_URL"))};
_.Y.ready=function(){var W=this;this.code.addEventListener("keypress",function(k){W.onCodeInputKeypress(k)})};
_.Y.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(k){k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,C.type==="attributes"&&C.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.Y.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.Y.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.Y.onRedeemButtonTap=function(W){W.stopPropagation();FUT();this.redeemCode()};
_.Y.redeemCode=function(){var W=this;this.isLoading=!0;var k=this.riskService.init();_.EY([k,this.loadPaymentThenable]).then(function(){var C=W.data.redeemButton.buttonRenderer.serviceEndpoint,n=_.dzK(),N=payments.business.integration.ClientTokenFactory.createClientToken(_.z(C,_.yws).countryCode,n);n={c:W.code.value.trim(),rd:window.btoa(n),ctk:N};C&&(_.m("web_ytd_redeem_code_renderer_command_resolver_ks")?_.kQ(W.hostElement,[C,n]):_.f().resolve(_.uI).resolveCommand(C,{form:Object.assign({},n,{element:W.hostElement})}))},
function(){W.showGenericError();
wQZ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.I4(Error("Tl"))})};
_.Y.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var k,C;this.errorMessage=(k=W.detail)==null?void 0:(C=k.data)==null?void 0:C.errorMessage;var n,N;this.postRedemptionRenderer=(n=W.detail)==null?void 0:(N=n.data)==null?void 0:N.renderer;var B,A;if(W=(B=W.detail)==null?void 0:(A=B.data)==null?void 0:A.redirectEndpoint)this.isLoading=!0,_.Pe(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?wQZ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.Xd("ypcRedeemFlowSucceeded")};
_.Y.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.Go(W);wQZ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.Y.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.Y.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();wQZ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();wQZ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Xd("ypcRedeemFlowCancelled")}};
_.Y.onInput=function(){var W=this;_.Dy(this,"onInput",function(){var k=W.code.value.trim();W.redeemButtonDisabled=k.length<W.MIN_CODE_LENGTH||k.length>W.MAX_CODE_LENGTH},200)};
_.Y.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(FUT(),this.redeemCode())};
_.Y.computeImageUrl=function(W){return W?_.yI(W.thumbnails,600):null};
_.Y.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var Rl=Z2S;Rl.prototype.onInvokeInstrumentManagerActionError=Rl.prototype.onInvokeInstrumentManagerActionError;Rl.prototype.onInvokeInstrumentManagerActionCompleted=Rl.prototype.onInvokeInstrumentManagerActionCompleted;Rl.prototype.onYtServiceRequestError=Rl.prototype.onYtServiceRequestError;Rl.prototype.onYtServiceRequestCompleted=Rl.prototype.onYtServiceRequestCompleted;Rl.prototype.dataChanged=Rl.prototype.dataChanged;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rl.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Rl.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Rl.prototype,"redeemButtonDisabled",void 0);
_.U([_.Z(),_.O("design:type",Object)],Rl.prototype,"errorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],Rl.prototype,"postRedemptionRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],Rl.prototype,"observer",void 0);_.U([_.gi("#code"),_.O("design:type",HTMLInputElement)],Rl.prototype,"code",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rl.prototype,"dataChanged",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Rl.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Rl.prototype,"onYtServiceRequestError",null);
_.U([_.jI("yt-invoke-instrument-manager-action-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Rl.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.U([_.jI("yt-invoke-instrument-manager-action-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Rl.prototype,"onInvokeInstrumentManagerActionError",null);Rl=_.U([_.T({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Rl);
_.q(Rl,"ytd-redeem-code-renderer",function(){if(eL6!==void 0)return eL6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return eL6=W},{mode:1});var RL7;_.EJ("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var oPT=function(){var W=_.R.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.D(oPT,_.R);_.Y=oPT.prototype;_.Y.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}}}}}};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ML("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.Y.onYtServiceRequestCompleted=function(W){var k;if((k=W.detail.data)==null?0:k.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var C;if((C=W.detail.data)==null?0:C.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.computeEmailHref=function(W){return"mailto:"+W};
_.Y.computeSafeUrl=function(W){if(W)return _.QG(W)};
_.Y.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$18882_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.f().resolve(_.uI).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.oq.Object.defineProperties(oPT.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 W,k;return!((W=this.data)==null||!W.primaryLinks)&&!((k=this.data)==null?0:k.links)&&this.data.primaryLinks.every(function(C){return C.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.primaryLinks)&&!((k=this.data)==null?0:k.links)&&!this.shouldShowNewLinks}}});
var ol=oPT;ol.prototype.onYtServiceRequestCompleted=ol.prototype.onYtServiceRequestCompleted;ol.prototype.dataChanged=ol.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ol.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gi("#g-recaptcha-response"),_.O("design:type",HTMLTextAreaElement)],ol.prototype,"JSC$18882_captchaTextarea",void 0);_.U([_.Z(),_.O("design:type",Object)],ol.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],ol.prototype,"businessEmailDisplayState",void 0);_.U([_.Z(),_.O("design:type",String)],ol.prototype,"businessEmail",void 0);_.U([_.Z(),_.O("design:type",String)],ol.prototype,"businessEmailErrorMessage",void 0);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ol.prototype,"hideDetailsSection",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ol.prototype,"dataChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ol.prototype,"shouldShowNewLinks",null);_.U([_.G("data","shouldShowLinks"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ol.prototype,"shouldShowLegacyLinks",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ol.prototype,"onYtServiceRequestCompleted",null);ol=_.U([_.T({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],ol);
_.q(ol,"ytd-channel-about-metadata-renderer",function(){if(RL7!==void 0)return RL7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RL7=W},{mode:1});var i26;_.EJ("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Tbu=function(){return _.R.apply(this,arguments)||this};
_.D(Tbu,_.R);Tbu.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var iC=Tbu;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iC.prototype,"data",void 0);iC=_.U([_.T({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],iC);
_.q(iC,"ytd-channel-featured-content-renderer",function(){if(i26!==void 0)return i26;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return i26=W},{mode:1});var qZ7;_.EJ("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var utB=function(){var W=_.R.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.m("enable_desktop_amsterdam_info_panels");return W};
_.D(utB,_.R);_.Y=utB.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.Y.computeSource=function(W){return W.secondarySource?_.y4(W.secondarySource):_.y4(W.source)};
_.Y.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.Y.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.Y.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.Y.computeHasActionButton=function(W){return!!W.actionButton};
_.Y.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.Y.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.Y.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
var TE=utB;TE.prototype.dataChanged=TE.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TE.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],TE.prototype,"imageWidth",void 0);_.U([_.Z(),_.O("design:type",Number)],TE.prototype,"imageHeight",void 0);
_.U([_.Z({computed:"computeSecondaryEndpoint(data)"}),_.O("design:type",Object)],TE.prototype,"secondaryEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.O("design:type",Boolean)],TE.prototype,"hasActionButton",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.O("design:type",Boolean)],TE.prototype,"hasBottomSection",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.O("design:type",Boolean)],TE.prototype,"missingSource",void 0);_.U([_.Z({computed:"computeIcon_(data.icon)"}),_.O("design:type",String)],TE.prototype,"icon",void 0);_.U([_.Z({computed:"computeIcon_(data.secondaryIcon)"}),_.O("design:type",String)],TE.prototype,"secondaryIcon",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.O("design:type",String)],TE.prototype,"clarifyStyle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.O("design:type",String)],TE.prototype,"backgroundStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],TE.prototype,"roundContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],TE.prototype,"amsterdamEnabled",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TE.prototype,"dataChanged",null);
TE=_.U([_.T({is:"ytd-clarification-renderer",disableElementRegistration:!0})],TE);
_.q(TE,"ytd-clarification-renderer",function(){if(qZ7!==void 0)return qZ7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qZ7=W},{mode:1});var U5Y;var O27;var LUZ=function(){var W=_.R.apply(this,arguments)||this;W.amsterdamEnabled=_.m("enable_desktop_amsterdam_info_panels");return W};
_.D(LUZ,_.R);_.Y=LUZ.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Y.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.Y.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.Y.computePhoneContact=function(W){var k,C;return(k=W.contacts)==null?void 0:(C=k.find(function(n){var N;return(n==null?void 0:(N=n.icon)==null?void 0:N.iconType)==="PHONE"}))==null?void 0:C.actionText};
_.Y.computeSmsContact=function(W){var k,C;return(k=W.contacts)==null?void 0:(C=k.find(function(n){var N;return(n==null?void 0:(N=n.icon)==null?void 0:N.iconType)==="SMS"}))==null?void 0:C.actionText};
var qz=LUZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],qz.prototype,"amsterdamEnabled",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.O("design:type",Boolean)],qz.prototype,"useContacts",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.O("design:type",String)],qz.prototype,"phoneContact",void 0);qz=_.U([_.T({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],qz);
_.q(qz,"ytd-single-action-emergency-support-renderer",function(){if(O27!==void 0)return O27;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return O27=W},{mode:1});_.EJ("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var jnZ=function(){var W=_.R.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.m("enable_desktop_amsterdam_info_panels");return W};
_.D(jnZ,_.R);jnZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
var uC=jnZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uC.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],uC.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],uC.prototype,"amsterdamEnabled",void 0);
uC=_.U([_.T({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],uC);
_.q(uC,"ytd-emergency-onebox-renderer",function(){if(U5Y!==void 0)return U5Y;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return U5Y=W},{mode:1});var H2Z;_.EJ("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var r$E=function(){return _.R.apply(this,arguments)||this};
_.D(r$E,_.R);r$E.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var UB=r$E;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],UB.prototype,"data",void 0);UB=_.U([_.T({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],UB);
_.q(UB,"ytd-exploratory-results-renderer",function(){if(H2Z!==void 0)return H2Z;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return H2Z=W},{mode:1});var gPE;_.EJ("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Pxi=function(){var W=_.R.apply(this,arguments)||this;W.messageData=null;return W};
_.D(Pxi,_.R);_.Y=Pxi.prototype;_.Y.onServiceRequestCompleted=function(W,k){W=k.actions||[];k=0;for(var C=W.length;k<C;k++){var n=W[k],N=void 0,B=void 0;if((N=_.z(n,_.F5))==null?0:(B=N.item)==null?0:B.messageRenderer)this.messageData=_.z(n,_.F5).item.messageRenderer}};
_.Y.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.qw(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.Y.computeThumbnailWidth=function(W){return W?126:56};
_.Y.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.Y.onSubmitTap=function(){var W=this.data,k=this.selectedResponseIndex;W!==void 0&&k!==void 0&&(W=W.responses[k],W.responseData&&(_.m("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.kQ(this.hostElement,[W.responseData]):_.f().resolve(_.uI).resolveCommand(W.responseData,{form:{element:this.hostElement}})))};
_.Y.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&(_.m("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.kQ(this.hostElement,[W.dismissalEndpoint]):_.f().resolve(_.uI).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.Y.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
var OB=Pxi;OB.prototype.onSelectedResponseIndexChange=OB.prototype.onSelectedResponseIndexChange;OB.prototype.dataChanged=OB.prototype.dataChanged;OB.prototype.onServiceRequestCompleted=OB.prototype.onServiceRequestCompleted;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OB.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],OB.prototype,"messageData",void 0);
_.U([_.Z(),_.O("design:type",Number)],OB.prototype,"selectedResponseIndex",void 0);_.U([_.gi("#submit-button"),_.O("design:type",HTMLButtonElement)],OB.prototype,"submitButton",void 0);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],OB.prototype,"onServiceRequestCompleted",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OB.prototype,"dataChanged",null);
_.U([_.Hl("selectedResponseIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OB.prototype,"onSelectedResponseIndexChange",null);OB=_.U([_.T({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],OB);
_.q(OB,"ytd-feedback-elicitation-single-question-renderer",function(){if(gPE!==void 0)return gPE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gPE=W},{mode:1});var KU1;var hLY=function(){return _.R.apply(this,arguments)||this};
_.D(hLY,_.R);hLY.prototype.computeThumbnailWidth=function(W){return W?602:428};
hLY.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
var Lw=hLY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Lw.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Lw.prototype,"wide",void 0);Lw=_.U([_.T({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Lw);
_.q(Lw,"ytd-newspaper-hero-video-renderer",function(){if(KU1!==void 0)return KU1;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return KU1=W},{mode:1});var WqE;var kEt=function(){return _.R.apply(this,arguments)||this};
_.D(kEt,_.R);var CC$=kEt;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CC$.prototype,"rendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CC$.prototype,"data",void 0);CC$=_.U([_.T({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],CC$);
_.q(CC$,"ytd-newspaper-mini-video-renderer",function(){if(WqE!==void 0)return WqE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return WqE=W},{mode:1});var nES;_.EJ("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Nr6=function(){return _.R.apply(this,arguments)||this};
_.D(Nr6,_.R);Nr6.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
var jK=Nr6;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jK.prototype,"data",void 0);jK=_.U([_.T({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],jK);
_.q(jK,"ytd-newspaper-renderer",function(){if(nES!==void 0)return nES;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nES=W},{mode:1});var YBu;_.EJ("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Br6=function(){var W=_.R.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.D(Br6,_.R);_.Y=Br6.prototype;_.Y.attached=function(){_.f();var W;(W=_.f().resolve(_.qI(_.iv)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.Y.detached=function(){var W;(W=_.f().resolve(_.qI(_.iv)))!=null&&(W.playlistVideoListElement=void 0);W=_.f().resolve(_.qI(_.eg));_.m("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.Y.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"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.dataChanged=function(){var W=_.f().resolve(_.qI(_.eg));if(_.m("web_enable_voting_animation")&&this.data&&W){var k=_.S(this.hostElement).querySelector("#contents");k&&(W.parentElem=k);W.addVideos(this.data.contents)}_.ztb(this.ytReorderableBehavior)};
_.Y.onRendererstamperFinished=function(){this.canReorder&&_.DQC(this.ytReorderableBehavior,_.S(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.Y.onPlaylistReloading=function(){this.isReloading=!0};
_.Y.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var k=W.detail;W=this.data.contents.findIndex(function(N){var B;return((B=N.playlistVideoRenderer)==null?void 0:B.videoId)===k.videoId});
if(!(W<0)&&k.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",k.setVideoId),_.m("web_enable_voting_animation"))){var C;if(W=_.z((C=this.data.contents[W].playlistVideoRenderer)==null?void 0:C.engagementBar,_.utz)){var n;(n=W.actions)==null||n.forEach(function(N){if(N=_.z(N,_.U5w))N.itemId=k.setVideoId})}(C=_.f().resolve(_.qI(_.eg)))&&x5Z(C,k.videoId,k.setVideoId)}}};
_.Y.computeContentsClass=function(W){return W?"reloading":""};
_.Y.computeIsSortable=function(W,k){return W&&k>0&&!this.isSegment&&!_.m("shorts_in_playlists_web")};
_.Y.computeIsEditable=function(W){return W};
_.Y.computeCanReorder=function(W){return W};
_.Y.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.z(W,_.w1s).setVideoIds;for(var k=this.data.contents.length-1;k>=0;){var C=this.data.contents[k].playlistVideoRenderer;C&&C.setVideoId&&W.includes(C.setVideoId)&&this.splice("data.contents",k,1);k--}_.KY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.Go(String(W+1)))};
_.Y.handleDrop=function(W){W=W.currDragItem;var k=_.$z(W.parentNode.childNodes,W),C=this.data.contents.splice(Number(_.y4(W.data.index))-1,1)[0];this.data.contents.splice(k,0,C);k=k?this.get("contents."+(k-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,k);this.ytComponentBehavior.resolveCommand(W)};
_.Y.buildReorderServiceEndpoint=function(W,k){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",k),this.data.onReorderEndpoint):null};
_.Y.handleUpdatePlaylistAction=function(W){var k;(W=_.z((k=_.z(W,_.xRs))==null?void 0:k.updatedRenderer,_.JTb))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.Y.handleAddRendererToItemSectionAction=function(W){var k,C=(k=_.z(W,XQE))==null?void 0:k.renderer,n;C&&((n=_.z(W,XQE))==null?void 0:n.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,C),W=_.f().resolve(_.qI(_.eg)),_.m("web_enable_voting_animation")&&W&&(C&&(k=_.qZI(C))&&W.recommendedVideos.push({itemId:k,videoId:_.O2I(C),voteCount:_.LU3(C),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.Y.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.b(W);for(W=W.next();!W.done;W=W.next()){var k=void 0;return!!_.z((k=W.value.playlistVideoRenderer)==null?void 0:k.engagementBar,_.utz)}return!1};
_.Y.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.f().resolve(_.qI(_.eg)),_.m("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.Y.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var k=W.detail;W=k.toIdx;var C=k.itemId,n=k.newVoteCount,N=k.voteStatus;k=k.hideItem;var B,A,w=(B=this.data)==null?void 0:(A=B.contents)==null?void 0:A.findIndex(function(X){return _.qZI(X)===C});
if(!(w<0)){B=this.data.contents[w];var x;if((x=B.playlistVideoRenderer)==null?0:x.voteCount)B.playlistVideoRenderer.voteCount=n;var E;if(x=_.z((E=B.playlistVideoRenderer)==null?void 0:E.engagementBar,_.utz)){var a;(a=x.actions)==null||a.forEach(function(X){(X=_.z(X,_.U5w))&&X.initialState&&(X.initialState.votes=n,X.initialState.status=N)})}this.data.contents.splice(w,1);
k||this.data.contents.splice(W,0,B);this.updateIndices()}}};
var Ht=Br6;Ht.prototype.updateVideoData=Ht.prototype.updateVideoData;Ht.prototype.onAppendContinuationItemsActionFinished=Ht.prototype.onAppendContinuationItemsActionFinished;Ht.prototype.onUpdateSetVideoId=Ht.prototype.onUpdateSetVideoId;Ht.prototype.onPlaylistReloading=Ht.prototype.onPlaylistReloading;Ht.prototype.onRendererstamperFinished=Ht.prototype.onRendererstamperFinished;Ht.prototype.dataChanged=Ht.prototype.dataChanged;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],Ht.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.v(_.JF8),_.O("design:type",Object)],Ht.prototype,"ytReorderableBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],Ht.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ht.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Ht.prototype,"isReloading",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ht.prototype,"isSegment",void 0);_.U([_.Z({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.O("design:type",Boolean)],Ht.prototype,"isSortable",void 0);_.U([_.Z({computed:"computeIsEditable(data.isEditable)"}),_.O("design:type",Boolean)],Ht.prototype,"isEditable",void 0);_.U([_.Z({computed:"computeCanReorder(data.canReorder)"}),_.O("design:type",Boolean)],Ht.prototype,"canReorder",void 0);
_.U([_.Z({value:101}),_.O("design:type",Number)],Ht.prototype,"scrollMargin",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ht.prototype,"dataChanged",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ht.prototype,"onRendererstamperFinished",null);
_.U([_.jI("yt-playlist-reloading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ht.prototype,"onPlaylistReloading",null);_.U([_.jI("yt-update-set-video-id"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ht.prototype,"onUpdateSetVideoId",null);
_.U([_.jI("yt-append-continuation-items-action-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ht.prototype,"onAppendContinuationItemsActionFinished",null);_.U([_.jI("yt-update-video-data-voting-animation"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ht.prototype,"updateVideoData",null);Ht=_.U([_.T({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Ht);
_.q(Ht,"ytd-playlist-video-list-renderer",function(){if(YBu!==void 0)return YBu;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return YBu=W},{mode:_.UC("kevlar_poly_si_batch_j047")?1:2});var bw1;var A1A=function(){return _.R.apply(this,arguments)||this};
_.D(A1A,_.R);A1A.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"}}}}};
A1A.prototype.onTextWrapperTap=function(W){var k=this.data&&this.data.navigationEndpoint;k&&!_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:k})};
A1A.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.z(W.commandMetadata,_.au)&&_.z(W.commandMetadata,_.au).fireAutomatically&&_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})};
var rr=A1A;rr.prototype.dataChanged=rr.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.MC),_.O("design:type",Object)],rr.prototype,"ytdLockupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rr.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],rr.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],rr.prototype,"biggerThumbsStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],rr.prototype,"leftAligned",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rr.prototype,"dataChanged",null);rr=_.U([_.T({disableElementRegistration:!0,is:"ytd-movie-renderer"})],rr);
_.q(rr,"ytd-movie-renderer",function(){if(bw1!==void 0)return bw1;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bw1=W},{mode:1});var Fq$;var gr=function(){var W=_.R.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.D(gr,_.R);gr.prototype.attached=function(){this.pageAttachedTo=_.f().resolve(_.yF).getCurrentPage();_.Pe(this.hostElement,"yt-player-attached",this.player)};
gr.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.Pe(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
gr.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.m("miniplayer_stop_channel_video_autoplay_killswitch")&&_.f().resolve(_.eq).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
gr.prototype.handleSignalActionPausePlayer=function(){_.Rh().pause()};
var Pt=gr;Pt.prototype.dataChanged=Pt.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],Pt.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Pt.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Pt.prototype,"rounded",void 0);
_.U([_.gi("#player"),_.O("design:type",Object)],Pt.prototype,"player",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pt.prototype,"dataChanged",null);Pt=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Pt);
_.q(Pt,"ytd-channel-video-player-renderer",function(){if(Fq$!==void 0)return Fq$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Fq$=W},{mode:1});var wtC;var xzZ;var lGS;var tK$=function(){var W=_.R.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Hw(W);W.active=!1;return W};
_.D(tK$,_.R);_.Y=tK$.prototype;_.Y.detached=function(){this.stop()};
_.Y.play=function(){var W=this,k,C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return W.active=!0,k=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),C=k.videoId||W.data.videoId,n=k.startTimeSeconds||0,N=k.playerParams||null,_.m("kevlar_player_update_killswitch")?_.l(A,W.playerEl.update({args:{video_id:C,startSeconds:n,player_params:N}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:C,startSeconds:n,player_params:N,autoplay:!0}),A.jumpTo(2));if(A.nextAddress!=4)return _.l(A,W.playerEl.getPlayerPromise(),
4);B=A.yieldResult;B.unloadModule("annotations_module");B.addEventListener("onStateChange",function(w){W.onPlayerStateChange(w)});
_.ab(A)})};
_.Y.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.Pe(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Pe(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.Y.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.Y.resize=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.playerEl.getPlayerPromise(),2);k=C.yieldResult;k.setSize(NaN,NaN);_.ab(C)})};
var Kw=tK$;_.U([_.Z(),_.O("design:type",Object)],Kw.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Kw.prototype,"playing",void 0);_.U([_.Z(),_.O("design:type",Object)],Kw.prototype,"playerId",void 0);_.U([_.gi("#player"),_.O("design:type",Object)],Kw.prototype,"playerEl",void 0);Kw=_.U([_.T({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Kw);
_.q(Kw,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(lGS!==void 0)return lGS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return lGS=W},{mode:1});var EEY;var aGA;var Xt7=function(){var W=_.R.apply(this,arguments)||this;W.width=0;return W};
_.D(Xt7,_.R);_.Y=Xt7.prototype;_.Y.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.LO(this,this.onEnded));this.mp4El.addEventListener("error",_.LO(this,this.onError))};
_.Y.detached=function(){this.videoEl.removeEventListener("ended",_.LO(this,this.onEnded));this.mp4El.removeEventListener("error",_.LO(this,this.onError))};
_.Y.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var k=this.videoEl.play();k?k.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.Pe(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Pe(this.hostElement,"yt-video-thumbnail-not-playing")};
_.Y.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.Y.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.Y.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.yI(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.Y.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.Y.onEnded=function(){this.stop();_.Pe(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.Y.onError=function(){_.Pe(this.hostElement,"yt-video-thumbnail-error")};
_.Y.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.Y.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
var h1=Xt7;h1.prototype.dataChanged=h1.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],h1.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],h1.prototype,"animatePlaceholderOnEntrance",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],h1.prototype,"autoplay",void 0);_.U([_.Z({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.O("design:type",Object)],h1.prototype,"videoThumbnail",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],h1.prototype,"loop",void 0);_.U([_.Z(),_.O("design:type",Boolean)],h1.prototype,"isVideoPlaying",void 0);_.U([_.Z(),_.O("design:type",Object)],h1.prototype,"width",void 0);_.U([_.gi("#mp4"),_.O("design:type",HTMLElement)],h1.prototype,"mp4El",void 0);_.U([_.gi("#placeholder"),_.O("design:type",HTMLElement)],h1.prototype,"placeholderEl",void 0);_.U([_.gi("#video"),_.O("design:type",HTMLVideoElement)],h1.prototype,"videoEl",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h1.prototype,"dataChanged",null);h1=_.U([_.l0({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],h1);
_.q(h1,"yt-video-as-thumbnail-details",function(){if(aGA===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;EEY===void 0&&(EEY=document.createElement("template"));var n=EEY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);aGA=W}W=aGA;return W},{mode:2});var Wy,fGi=function(){var W=_.R.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.m("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.D(fGi,_.R);_.Y=fGi.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.Y.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.Y.attached=function(){this.onWindowResized()};
_.Y.detached=function(){this.clearTimeouts()};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var k;this.player&&((k=this.data)==null?0:k.inlinePlaybackRenderer)&&this.player.play()};
_.Y.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var k;this.player&&((k=this.data)==null?0:k.inlinePlaybackRenderer)&&this.player.stop()};
_.Y.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(k){var C=function(){_.S(W.hostElement).querySelector("#action-button").removeEventListener("animationend",C);_.aM.cancelJob(n);k();W.transitioningOut=!1};
var n=_.wI(_.aM,C,1E3);_.S(W.hostElement).querySelector("#action-button").addEventListener("animationend",C);W.player&&(W.player.playing=!1)})};
_.Y.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.Y.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.Y.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.Y.onContentClick=function(W){if(!_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var k;if((k=this.data)==null?0:k.navigationEndpoint){var C;this.componentBehavior.resolveCommand((C=this.data)==null?void 0:C.navigationEndpoint)}}};
_.Y.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.Y.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.S(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.Y.setScrimLayer=function(W){var k=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.DE("HTML_DIR")==="rtl"&&(W=-W);k&&(_.S(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+k+")")};
_.Y.isNarrower=function(){return this.hostElement.clientWidth<Wy.NARROW_VERSION_SIZE};
_.Y.getScrimLayerColorStops=function(){var W,k=(W=this.data)==null?void 0:W.scrimColorValues;if(!k)return null;if(k.length===1)return W=_.Xi(k[0]),W+" 0%, "+W+" 100%";if(k.length===3){var C=[0,72,98];return k.map(function(n,N){return _.Xi(n)+" "+C[N]+"%"}).join(",")}return null};
_.Y.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.yI((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.Y.onPlaying=function(){this.startVideoTimeout()};
_.Y.onEnded=function(){this.rotate()};
_.Y.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var k=this.get("data.minPanelDisplayDurationMs");k&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.wI(_.aM,function(){W.rotate()},k))}};
_.Y.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.aM.cancelJob(this.panelTimeoutJobId);var k=Date.now()-this.panelTimeoutJobStartMs;k=Math.max(0,this.get("data.minPanelDisplayDurationMs")-k);k=Math.max(this.get("data.minVideoPlayDurationMs")||0,k);this.videoTimeoutJobId=_.wI(_.aM,function(){W.rotate()},k)}};
_.Y.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.aM.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.aM.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.Y.rotate=function(){this.clearTimeouts();_.Pe(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.oq.Object.defineProperties(fGi.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.S(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.S(this.hostElement).querySelector("#video")}}});
_.oq.Object.defineProperties(fGi,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var kK=Wy=fGi;Wy.prototype.onEnded=Wy.prototype.onEnded;Wy.prototype.onPlaying=Wy.prototype.onPlaying;Wy.prototype.dataChanged=Wy.prototype.dataChanged;_.U([_.v(_.Vv),_.O("design:type",Object)],kK.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],kK.prototype,"componentBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],kK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.v(_.PE7),_.O("design:type",Object)],kK.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],kK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"disableGridStateAware",void 0);_.U([_.Z(),_.O("design:type",Object)],kK.prototype,"data",void 0);_.U([_.Z({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.O("design:type",String)],kK.prototype,"panelLayout",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"animationEnabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"transitioningOut",void 0);
_.U([_.Z({computed:"computeMetadataOrder(data)"}),_.O("design:type",Boolean)],kK.prototype,"metadataOrder",void 0);_.U([_.Z({computed:"computeByline(data)"}),_.O("design:type",Object)],kK.prototype,"byline",void 0);_.U([_.Z({computed:"computeAvatarSize(data)"}),_.O("design:type",Number)],kK.prototype,"avatarSize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"narrow",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"narrower",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"layoutStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kK.prototype,"isCarouselInFeed",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kK.prototype,"dataChanged",null);_.U([_.jI("yt-default-promo-panel-renderer-playing"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kK.prototype,"onPlaying",null);
_.U([_.jI("yt-default-promo-panel-renderer-ended"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kK.prototype,"onEnded",null);kK=Wy=_.U([_.T({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],kK);
_.q(kK,"ytd-default-promo-panel-renderer",function(){if(xzZ!==void 0)return xzZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xzZ=W},{mode:1});_.EJ("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var dzt=function(){var W=_.R.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.D(dzt,_.R);_.Y=dzt.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){this.onWindowResized()};
_.Y.detached=function(){this.jobId&&_.aM.cancelJob(this.jobId);this.updateSizeJobId&&_.aM.cancelJob(this.updateSizeJobId)};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.Y.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.Y.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.aM.cancelJob(this.jobId);var k=this.getCurrentPanelElement();k&&k.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(k||(k=this.getCurrentPanelElement()),k.playVideo()):this.startRotationJob()};
_.Y.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var k=this.getCurrentPaginationElement();if(k){var C=_.S(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?C.style.transform="translateX(0)":(k=k.offsetWidth+8,C.style.transform="translateX(-"+k*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/k)/2)+1)+"px)")}}};
_.Y.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.ty(_.aM,function(){W.getCurrentPanelElement().updateSize();W.updateSize()}))};
_.Y.getCurrentPanelElement=function(){return _.S(_.S(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.Y.getCurrentPaginationElement=function(){return _.S(_.S(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.Y.getNavigationClass=function(W,k){return W===k?"selected":""};
_.Y.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.Y.onNavigationTap=function(W){var k=this,C=W.model.index;C!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){k.setCarouselItem(C)}),this.autorotateActive=!1)};
_.Y.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var k=this.getCurrentPaginationElement();k&&(k.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){k.classList.remove("finished");W.setNextCarouselItem()}))}};
_.Y.onVideoThumbnailError=function(){this.startRotationJob()};
_.Y.onVideoNotPlaying=function(){this.startRotationJob()};
_.Y.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.Y.startRotationJob=function(){var W=this;_.aM.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.aM.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.Y.computeDotMenuVisible=function(W,k){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!k};
_.Y.computePaginationThumbnailsVisible=function(W,k){var C,n;return((n=W==null?void 0:(C=W.paginationThumbnails)==null?void 0:C.length)!=null?n:0)>1&&!k};
_.Y.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.Y.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.Y.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.Y.isNarrower=function(W){return(W!=null?W:0)<kK.NARROW_VERSION_SIZE};
var C4=dzt;C4.prototype.activeChanged=C4.prototype.activeChanged;C4.prototype.onVideoNotPlaying=C4.prototype.onVideoNotPlaying;C4.prototype.onVideoThumbnailError=C4.prototype.onVideoThumbnailError;C4.prototype.onVideoThumbnailEnded=C4.prototype.onVideoThumbnailEnded;C4.prototype.onDataChanged=C4.prototype.onDataChanged;_.U([_.v(_.Vv),_.O("design:type",Object)],C4.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],C4.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],C4.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],C4.prototype,"currentItem",void 0);
_.U([_.Z(),_.O("design:type",Number)],C4.prototype,"currentItemIndex",void 0);_.U([_.Z(),_.O("design:type",Number)],C4.prototype,"rotationTimeout",void 0);_.U([_.Z(),_.O("design:type",Number)],C4.prototype,"loopCount",void 0);_.U([_.Z({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.O("design:type",String)],C4.prototype,"paginatorAlignment",void 0);_.U([_.Z(),_.O("design:type",Number)],C4.prototype,"jobId",void 0);
_.U([_.Z(),_.O("design:type",Number)],C4.prototype,"updateSizeJobId",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],C4.prototype,"isCarouselInFeed",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],C4.prototype,"narrower",void 0);_.U([_.Z({computed:"computeDotMenuVisible(data, narrower)"}),_.O("design:type",Object)],C4.prototype,"dotMenuVisible",void 0);
_.U([_.Z({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.O("design:type",Object)],C4.prototype,"paginationThumbnailsVisible",void 0);_.U([_.Z({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.O("design:type",String)],C4.prototype,"layoutType",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],C4.prototype,"autorotateActive",void 0);_.U([_.Z(),_.O("design:type",Object)],C4.prototype,"active",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],C4.prototype,"disableGridStateAware",void 0);_.U([_.gi("#overlay"),_.O("design:type",HTMLElement)],C4.prototype,"overlay",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C4.prototype,"onDataChanged",null);
_.U([_.jI("yt-video-thumbnail-ended"),_.jI("yt-default-promo-panel-renderer-rotate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C4.prototype,"onVideoThumbnailEnded",null);_.U([_.jI("yt-video-thumbnail-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C4.prototype,"onVideoThumbnailError",null);
_.U([_.jI("yt-video-thumbnail-not-playing"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C4.prototype,"onVideoNotPlaying",null);_.U([_.Cq("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],C4.prototype,"activeChanged",null);C4=_.U([_.T({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],C4);
_.q(C4,"ytd-carousel-item-renderer",function(){if(wtC!==void 0)return wtC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return wtC=W},{mode:2});var mzC;var zft;var DzA;var VKZ;var J1Y=function(){var W=_.R.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.D(J1Y,_.R);J1Y.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,k){return!(!W||k)};
var n4=J1Y;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],n4.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"correctedText",void 0);_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"correctedQuery",void 0);_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"correctedEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"originalText",void 0);_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"originalQuery",void 0);
_.U([_.Z(),_.O("design:type",Object)],n4.prototype,"originalEndpoint",void 0);_.U([_.Z({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.O("design:type",Boolean)],n4.prototype,"showOriginalQueryWithoutEndpoint",void 0);n4=_.U([_.l0({is:"yt-search-query-correction",disableElementRegistration:!0})],n4);
_.q(n4,"yt-search-query-correction",function(){if(VKZ===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;DzA===void 0&&(DzA=document.createElement("template"));var n=DzA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);VKZ=W}W=VKZ;return W},{mode:2});_.EJ("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var c11=function(){return _.R.apply(this,arguments)||this};
_.D(c11,_.R);var IGS=c11;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],IGS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],IGS.prototype,"data",void 0);IGS=_.U([_.l0({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],IGS);
_.q(IGS,"yt-did-you-mean-renderer",function(){if(zft===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;mzC===void 0&&(mzC=document.createElement("template"));var n=mzC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);zft=W}W=zft;return W},{mode:2});var SBB;var MKT;_.EJ("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var QlS=function(){return _.R.apply(this,arguments)||this};
_.D(QlS,_.R);var ptB=QlS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ptB.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ptB.prototype,"data",void 0);ptB=_.U([_.l0({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ptB);
_.q(ptB,"yt-including-results-for-renderer",function(){if(MKT===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;SBB===void 0&&(SBB=document.createElement("template"));var n=SBB;C.call(k,n.content.cloneNode(!0),W.content.firstChild);MKT=W}W=MKT;return W},{mode:2});var vE6;var eft;_.EJ("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var slB=function(){return _.R.apply(this,arguments)||this};
_.D(slB,_.R);slB.prototype.computeExtraClasses_=function(W,k){var C="";W&&(C+=" "+W.toLowerCase().replace(/_/g,"-"));k&&(C+=" "+k.toLowerCase().replace(/_/g,"-"));return C};
slB.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.S(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.yI(W.image.thumbnails,Number.MAX_VALUE)+")")};
var NB=slB;NB.prototype.computeUrlImg_=NB.prototype.computeUrlImg_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],NB.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],NB.prototype,"computeUrlImg_",null);NB=_.U([_.l0({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],NB);
_.q(NB,"yt-music-pass-feature-info-renderer",function(){if(eft===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;vE6===void 0&&(vE6=document.createElement("template"));var n=vE6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);eft=W}W=eft;return W},{mode:2});var GEB;var y16;_.EJ("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var $zB=function(){return _.R.apply(this,arguments)||this};
_.D($zB,_.R);var ZwC=$zB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZwC.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZwC.prototype,"data",void 0);ZwC=_.U([_.l0({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ZwC);
_.q(ZwC,"yt-no-results-found-showing-results-for-renderer",function(){if(y16===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;GEB===void 0&&(GEB=document.createElement("template"));var n=GEB;C.call(k,n.content.cloneNode(!0),W.content.firstChild);y16=W}W=y16;return W},{mode:2});var Rf1;var oEt;_.EJ("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var iwi=function(){return _.R.apply(this,arguments)||this};
_.D(iwi,_.R);var TrS=iwi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TrS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TrS.prototype,"data",void 0);TrS=_.U([_.l0({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],TrS);
_.q(TrS,"yt-results-without-quotes-renderer",function(){if(oEt===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Rf1===void 0&&(Rf1=document.createElement("template"));var n=Rf1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);oEt=W}W=oEt;return W},{mode:2});var qBt;var uk6;_.EJ("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var UzE=function(){return _.R.apply(this,arguments)||this};
_.D(UzE,_.R);var OwZ=UzE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OwZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OwZ.prototype,"data",void 0);OwZ=_.U([_.l0({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],OwZ);
_.q(OwZ,"yt-search-no-results-renderer",function(){if(uk6===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qBt===void 0&&(qBt=document.createElement("template"));var n=qBt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uk6=W}W=uk6;return W},{mode:2});var Lq1;var jl7;_.EJ("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var HwC=function(){return _.R.apply(this,arguments)||this};
_.D(HwC,_.R);var r1Z=HwC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],r1Z.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],r1Z.prototype,"data",void 0);r1Z=_.U([_.l0({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],r1Z);
_.q(r1Z,"yt-showing-results-for-renderer",function(){if(jl7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Lq1===void 0&&(Lq1=document.createElement("template"));var n=Lq1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);jl7=W}W=jl7;return W},{mode:2});var gES;var PCB;var KqZ;var hf1;var WX6=function(){var W=_.R.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.D(WX6,_.R);WX6.prototype.toggleAnswer_=function(W){var k=_.eI(W);k&&k.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var YK=WX6;YK.prototype.toggleAnswer_=YK.prototype.toggleAnswer_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YK.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YK.prototype,"answerExpanded",void 0);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],YK.prototype,"toggleAnswer_",null);
YK=_.U([_.l0({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],YK);
_.q(YK,"yt-generic-faq-question-renderer",function(){if(hf1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;KqZ===void 0&&(KqZ=document.createElement("template"));var n=KqZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);hf1=W}W=hf1;return W},{mode:2});_.EJ("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var kpu=function(){return _.R.apply(this,arguments)||this};
_.D(kpu,_.R);kpu.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var By=kpu;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],By.prototype,"data",void 0);By=_.U([_.l0({is:"yt-faq-section-renderer",disableElementRegistration:!0})],By);
_.q(By,"yt-faq-section-renderer",function(){if(PCB===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;gES===void 0&&(gES=document.createElement("template"));var n=gES;C.call(k,n.content.cloneNode(!0),W.content.firstChild);PCB=W}W=PCB;return W},{mode:2});var CtT;var nKu;_.EJ("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var NU7=function(){return _.R.apply(this,arguments)||this};
_.D(NU7,_.R);
NU7.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
var bt=NU7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bt.prototype,"data",void 0);bt=_.U([_.l0({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],bt);
_.q(bt,"yt-offer-item-expanded-renderer",function(){if(nKu===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;CtT===void 0&&(CtT=document.createElement("template"));var n=CtT;C.call(k,n.content.cloneNode(!0),W.content.firstChild);nKu=W}W=nKu;return W},{mode:2});var Ya7;var BUZ;_.EJ("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var b47=function(){return _.R.apply(this,arguments)||this};
_.D(b47,_.R);
b47.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"}}}}};
b47.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
b47.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
var As=b47;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],As.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.O("design:type",Boolean)],As.prototype,"fullWidthMode",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.O("design:type",Boolean)],As.prototype,"borderlessMode",void 0);As=_.U([_.l0({is:"yt-offer-item-renderer",disableElementRegistration:!0})],As);
_.q(As,"yt-offer-item-renderer",function(){if(BUZ===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Ya7===void 0&&(Ya7=document.createElement("template"));var n=Ya7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);BUZ=W}W=BUZ;return W},{mode:2});var As7;var FXB;_.EJ("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var wy6=function(){return _.R.apply(this,arguments)||this};
_.D(wy6,_.R);wy6.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
wy6.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
var FS=wy6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FS.prototype,"data",void 0);_.U([_.Z({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.O("design:type",String)],FS.prototype,"ariaLevel",void 0);_.U([_.Z({value:"heading",reflectToAttribute:!0}),_.O("design:type",String)],FS.prototype,"role",void 0);
_.U([_.Z({value:-1,reflectToAttribute:!0}),_.O("design:type",Number)],FS.prototype,"tabindex",void 0);FS=_.U([_.l0({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],FS);
_.q(FS,"yt-subscription-product-header-renderer",function(){if(FXB===void 0){var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;As7===void 0&&(As7=document.createElement("template"));var n=As7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);FXB=W}W=FXB;return W},{mode:2});var xB6;var lvS;_.EJ("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var tvt=function(){return _.R.apply(this,arguments)||this};
_.D(tvt,_.R);tvt.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:_.ah("menuRenderer"),events:!0}}};
tvt.prototype.onStampFinished_=function(){_.S(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var wU=tvt;wU.prototype.onStampFinished_=wU.prototype.onStampFinished_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wU.prototype,"data",void 0);
_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wU.prototype,"onStampFinished_",null);wU=_.U([_.l0({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],wU);
_.q(wU,"yt-subscription-product-renderer",function(){if(lvS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;xB6===void 0&&(xB6=document.createElement("template"));var n=xB6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);lvS=W}W=lvS;return W},{mode:2});var EK1;var avY;_.EJ("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Xy7=function(){return _.R.apply(this,arguments)||this};
_.D(Xy7,_.R);Xy7.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Xy7.prototype.imageScrimColorValuesChanged_=function(){var W,k=(W=this.data)==null?void 0:W.imageScrimColorValues;_.S(this.hostElement).querySelector("#scrim").style.backgroundColor=k?_.Xi(k[0]):"transparent"};
var xK=Xy7;xK.prototype.imageScrimColorValuesChanged_=xK.prototype.imageScrimColorValuesChanged_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xK.prototype,"data",void 0);
_.U([_.Hl("data.imageScrimColorValues"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xK.prototype,"imageScrimColorValuesChanged_",null);xK=_.U([_.l0({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],xK);
_.q(xK,"yt-subscription-product-upsell-offer-renderer",function(){if(avY===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;EK1===void 0&&(EK1=document.createElement("template"));var n=EK1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);avY=W}W=avY;return W},{mode:2});var fvt;var dB6;var mBC;var z2$;var DBu;var Vv7;var JsT=function(){return _.R.apply(this,arguments)||this};
_.D(JsT,_.R);JsT.prototype.onYtServiceRequestError_=function(W){_.fm(this.hostElement,W.detail.error.message)};
var lt=JsT;lt.prototype.onYtServiceRequestError_=lt.prototype.onYtServiceRequestError_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lt.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],lt.prototype,"collapsible",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],lt.prototype,"isManageRed",void 0);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],lt.prototype,"onYtServiceRequestError_",null);lt=_.U([_.l0({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],lt);
_.q(lt,"yt-single-ypc-offer-renderer",function(){if(Vv7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;DBu===void 0&&(DBu=document.createElement("template"));var n=DBu;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Vv7=W}W=Vv7;return W},{mode:2});var csZ=function(){return _.R.apply(this,arguments)||this};
_.D(csZ,_.R);csZ.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var ts=csZ;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ts.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],ts.prototype,"isManageRed",void 0);ts=_.U([_.l0({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],ts);
_.q(ts,"yt-single-ypc-offer-list-renderer",function(){if(z2$===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;mBC===void 0&&(mBC=document.createElement("template"));var n=mBC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);z2$=W}W=z2$;return W},{mode:2});var Iv6;var Sa$;_.EJ("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Mvi=function(){return _.R.apply(this,arguments)||this};
_.D(Mvi,_.R);Mvi.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var Ea=Mvi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ea.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Ea.prototype,"isManageRed",void 0);Ea=_.U([_.l0({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Ea);
_.q(Ea,"yt-ypc-offers-list-renderer",function(){if(Sa$===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Iv6===void 0&&(Iv6=document.createElement("template"));var n=Iv6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Sa$=W}W=Sa$;return W},{mode:2});_.EJ("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Q7B=function(){return _.R.apply(this,arguments)||this};
_.D(Q7B,_.R);
Q7B.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
var a7=Q7B;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],a7.prototype,"data",void 0);a7=_.U([_.l0({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],a7);
_.q(a7,"yt-unlimited-manage-subscription-page-renderer",function(){if(dB6===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;fvt===void 0&&(fvt=document.createElement("template"));var n=fvt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);dB6=W}W=dB6;return W},{mode:2});var py7;var vKC;var e2E=function(){return _.R.apply(this,arguments)||this};
_.D(e2E,_.R);_.Y=e2E.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.Y.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.Y.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.Y.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.Y.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var XS=e2E;XS.prototype.dataChanged_=XS.prototype.dataChanged_;_.U([_.v(_.wS),_.O("design:type",Object)],XS.prototype,"ironA11yKeysBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XS.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XS.prototype,"offersVisible_",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XS.prototype,"dataChanged_",null);XS=_.U([_.l0({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],XS);
_.q(XS,"yt-collapsible-ypc-offer-renderer",function(){if(vKC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;py7===void 0&&(py7=document.createElement("template"));var n=py7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);vKC=W}W=vKC;return W},{mode:2});var s7Z;var GpC;_.EJ("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ysE=function(){return _.R.apply(this,arguments)||this};
_.D(ysE,_.R);_.Y=ysE.prototype;_.Y.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.Y.dataChanged_=function(){if(this.data.backgroundImage){var W=_.yI(this.data.backgroundImage.thumbnails,screen.width),k=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=k?"linear-gradient(180deg, "+k+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.YD(this.data.gtmId,_.DE("GL",""))}};
_.Y.onYtServiceRequestError_=function(W){_.fm(this.hostElement,W.detail.error.message)};
_.Y.getScrimLayerColorStops_=function(){var W,k,C=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(k=W.unlimitedHeaderV2Data)==null?void 0:k.scrimLayerColors;if(!C)return null;var n=100/C.length;return C.map(function(N,B){B*=n;return _.Xi(N)+" "+B+"%"}).join(",")};
_.Y.computeLogoWithPadding=function(W){var k,C,n;return(W=(k=W.unlimitedLogoImage)==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?!0:!1};
var f4=ysE;f4.prototype.onYtServiceRequestError_=f4.prototype.onYtServiceRequestError_;f4.prototype.dataChanged_=f4.prototype.dataChanged_;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.U([_.Z({computed:"computeLogoWithPadding(data)"}),_.O("design:type",Boolean)],f4.prototype,"logoWithPadding",void 0);
_.U([_.Z(),_.O("design:type",Object)],f4.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],f4.prototype,"dataChanged_",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],f4.prototype,"onYtServiceRequestError_",null);f4=_.U([_.l0({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],f4);
_.q(f4,"yt-unlimited-page-header-renderer",function(){if(GpC===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;s7Z===void 0&&(s7Z=document.createElement("template"));var n=s7Z;C.call(k,n.content.cloneNode(!0),W.content.firstChild);GpC=W}W=GpC;return W},{mode:2});var $Bt;var Z4E;_.EJ("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var R2S=function(){return _.R.apply(this,arguments)||this};
_.D(R2S,_.R);R2S.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var dU=R2S;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dU.prototype,"data",void 0);dU=_.U([_.l0({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],dU);
_.q(dU,"yt-unlimited-user-notification-renderer",function(){if(Z4E===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;$Bt===void 0&&($Bt=document.createElement("template"));var n=$Bt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Z4E=W}W=Z4E;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.lzC=_.GM(function(W){var k=_.vp(W,{numberOfChips:5}).numberOfChips;return _.t("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.t(_.bI,{each:function(){return Array(k==null?void 0:k())}},function(){return _.t("div",{class:"ytGhostChipShelfChip"})}))},"Jf");
}catch(e){_._DumpException(e)}
try{
var k7Z,CdT,nei,NaC,Yki,Bau,bYZ,u3,UP,FQC,we7,xL7,th$,DLC,OP,zB7,XeT,mLB,dLt,fHC,aH7,Vh7,JAS,cA7,IHt,Lm,Sk7,Mh1,QA7,G77,sAA,eB7,pe7,veu,$L1,ZY1,RBC,oe7,iYY,TaE,OYT,HYE,rAC,ge6,KQB,WI$,CWt,nQS,N8Y,YrZ,bBE,AQt,FIA,wNB,xl$,lrB,toY,arE,mlu,dlY,XNt,zd7,fr1,Dl7,IrC,cQ6,Voi,JQA,rV,Sri,pN7,$lT,ZBT,RdC,oQB,iBi,T86,qrS,ul1,Ul1,OB$,jzY,HBS,rQ7,yAA,AAi,szi;
_.T5=function(W){var k=new _.AM("Error accessing DB");return _.TBw().then(function(C){return new Promise(function(n,N){try{var B=C.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);B.onsuccess=function(){var A=B.result;n(A?A.value:null)};
B.onerror=function(){k.params={key:W,source:"onerror"};N(k)}}catch(A){k.params={key:W,
thrownError:String(A)},N(k)}})},function(){return null})};
_.WQA=function(W,k){var C=_.u7I(k);C!=="javascript:"&&C!=="data:"&&W.setAttribute("href",k)};
k7Z=function(W,k){return _.hQ(W.entities,"flowStateEntity",k)};
CdT=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
nei=function(W,k){k=k.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(k==null||!k.length)return W;var C=k.filter(function(A){return A});
k=W.filter(function(A){return A.languageCode.startsWith("en")});
C=_.b(C);for(var n=C.next();!n.done;n=C.next())if(n=n.value,k.length){var N=k[0],B=Object.assign({},N);N.languageCode!==n.languageCode&&(B.displayName=N.languageName+" >> "+n.languageName,B.translationLanguage=n,W.push(B))}return W};
NaC=function(W){var k,C=(k=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?k:[];_.m("mweb_watch_captions_enable_auto_translate")&&(C=nei(C,W));return C};
Yki=function(W){return _.s2(W,function(k){return k.languageCode==="en"})};
Bau=function(W){var k=qQ;if(CdT(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var C=_.s2(NaC(W),function(n){return n.displayName===k});
W.setOption("captions","track",C)}};
bYZ=function(W){if(!W)return 0;var k=W.getPresentingPlayerType(),C=W.getVideoData();return C&&C.isLive?(W=W.getProgressState(k),W.seekableEnd-W.seekableStart):W.getDuration(k)};
u3=function(W,k){_.MK(k,W,function(){return AAi[k]},function(C){AAi[k]=C;
if(!_.m("mweb_player_ve_show_ks")){var n=_.VM(0);n&&C&&_.GD(n,C)}})};
UP=function(W){(W=AAi[W])&&_.gc(_.kf(),W)};
FQC=function(W,k){for(var C=_.b(Object.keys(W)),n=C.next();!n.done;n=C.next())if(n=n.value,W[n]!==k[n])return!1;return!0};
we7=function(){return document.getElementById("player-control-overlay")};
xL7=function(W){W!==-1&&!_.m("player_controls_log_creation_killswitch")&&we7()&&(_.cN("pcu_cs",W),_.cN("pcu_ce"))};
th$=function(W){return _.t("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(W.subscribeButton?[W.subscribeButton,W.channelAccess]:[W.channelAccess]).map(function(k){return _.t("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.t("div",{class:"yt-profile-identity-info-view-model-wiz--button"},lH6(k)))}))};
_.Eet=function(W){var k=W.data;W=W.hideDivider;var C={};C=(C["yt-profile-identity-info-view-model-wiz__frame"]=!0,C["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!k.channelBanner,C);C={class:_.Hj(C)};var n,N={imageBannerViewModel:{image:(n=k.channelBanner)==null?void 0:n.image,style:"IMAGE_BANNER_STYLE_INSET"}};n=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},k.channelBanner?_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
lH6(N,{imageBannerViewModel:{isPositionRelative:!0}})):null);N=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},lH6(k.avatar));var B;var A=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},k.channelDisplayName),k.verifiedOrOacBadge?_.t("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.t(_.pi,{data:{thumbnails:[{url:(B=k.verifiedOrOacBadge)==null?void 0:B.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);B=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},A,lH6(k.threeDotMenu));A=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.t("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.t("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},k.channelHandle),k.channelPronouns&&k.channelHandle?_.t("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.t("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},k.channelPronouns)),_.t("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.t("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},k.leftOfBulletInfo),k.leftOfBulletInfo&&k.rightOfBulletInfo?_.t("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.t("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},k.rightOfBulletInfo)));B=_.t("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},B,A);return _.t("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.t("div",C,n,_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},N,B),k.channelDescription?_.t("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},k.channelDescription):
null,th$(k),W?null:_.t("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
DLC=function(W,k){var C=_.pq(W,{}),n=aH7("top",k),N=aH7("bottom",k),B=aH7("left",k),A=aH7("right",k);return _.WJ({top:function(){return OP(C().position,n)},
bottom:function(){return OP(C().position,N)},
left:function(){return OP(C().position,B)},
right:function(){return OP(C().position,A)},
position:function(){return OP(C().positionType,XeT)},
height:function(){return OP(C().height,Lm)},
width:function(){return OP(C().width,Lm)},
"min-width":function(){return OP(C().minWidth,Lm)},
"min-height":function(){return OP(C().minHeight,Lm)},
"max-width":function(){return OP(C().maxWidth,Lm)},
"max-height":function(){return OP(C().maxHeight,Lm)},
"aspect-ratio":function(){return OP(C().aspectRatio,String)},
"margin-top":function(){return OP(C().margin,n)},
"margin-bottom":function(){return OP(C().margin,N)},
"margin-left":function(){return OP(C().margin,B)},
"margin-right":function(){return OP(C().margin,A)},
"padding-top":function(){return OP(C().padding,n)},
"padding-bottom":function(){return OP(C().padding,N)},
"padding-left":function(){return OP(C().padding,B)},
"padding-right":function(){return OP(C().padding,A)},
"flex-direction":function(){return OP(C().flexDirection,fHC)},
"justify-content":function(){return OP(C().justifyContent,dLt)},
"align-items":function(){return OP(C().alignItems,mLB)},
"flex-grow":function(){return OP(C().flexGrow,String)},
"flex-shrink":function(){return OP(C().flexShrink,String)},
"flex-basis":function(){return OP(C().flexBasis,Lm)},
"align-self":function(){return OP(C().alignSelf,mLB)},
"flex-wrap":function(){return OP(C().flexWrap,zB7)},
"align-content":function(){return OP(C().alignContent,mLB)}})};
OP=function(W,k){return W!==void 0?k(W):void 0};
zB7=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
XeT=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
mLB=function(W){switch(W){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"}};
dLt=function(W){switch(W){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"}};
fHC=function(W){switch(W){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"}};
aH7=function(W,k){var C=k==="rtl";switch(W){case "top":var n=Vh7;break;case "bottom":n=JAS;break;case "left":n=cA7;break;default:n=IHt}return function(N){return OP(n(N,C),Lm)}};
Vh7=function(W){var k=W.top;var C=W.vertical;W=W.all;var n;return(n=k!=null?k:C)!=null?n:W};
JAS=function(W){var k=W.bottom;var C=W.vertical;W=W.all;var n;return(n=k!=null?k:C)!=null?n:W};
cA7=function(W,k){var C=W.left;var n=W.end;var N=W.start;var B=W.horizontal;W=W.all;var A,w;return(w=(A=C!=null?C:k?n:N)!=null?A:B)!=null?w:W};
IHt=function(W,k){var C=W.right;var n=W.end;var N=W.start;var B=W.horizontal;W=W.all;var A,w;return(w=(A=C!=null?C:k?N:n)!=null?A:B)!=null?w:W};
Lm=function(W){var k=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return k+"px";case "YPC_DIMENSION_UNIT_FRACTION":return k+"%";default:return""+k}};
Sk7=function(W){switch(W){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"}};
Mh1=function(W){var k=W!=null?W:{};W=k.fontRole;var C=k.fontSize;k=k.fontWeight;if(W!==null&&C!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(C){case "YPC_FONT_SIZE_L":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(C){case "YPC_FONT_SIZE_L":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return k===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(C){case "YPC_FONT_SIZE_XL":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return k==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
QA7=function(W,k){return _.hQ(W.entities,"pdpStateEntity",k)};
G77=function(W,k,C){function n(E){return Object.values(E).map(function(a){var X=a.productId;a=a.pricingOptionIndex;return pe7(N(X).pricingOptions,a).pricingOptionId})}
function N(E){return w().get(E)}
function B(E){E=n(E);C(E)}
var A=veu([W,k],function(E,a){var X=E==null?void 0:E.selectedPricingOptions;E={};var d=!0;if(X&&a.length)for(var V=_.b(a),c=V.next();!c.done;c=V.next()){c=c.value;var M=eB7(c.pricingOptions,function(p){a:{p=p.pricingOptionId;for(var e=_.b(X),u=e.next();!u.done;u=e.next())if(u.value===p){p=!0;break a}p=!1}return p});
M>=0&&(d=!1,E[c.groupId]={productId:c.productId,pricingOptionIndex:M})}d&&a.length&&(E[a[0].groupId]={productId:a[0].productId,pricingOptionIndex:0});return E}),w=veu([k],function(E){return new Map(E.map(function(a){return[a.productId,
a]}))}),x=veu([k],function(E){var a=new Map;
E=_.b(E);for(var X=E.next();!X.done;X=E.next()){var d=X.value;X=d.groupId;var V=d.productId;d=_.b(sAA(d.pricingOptions));for(var c=d.next();!c.done;c=d.next()){var M=_.b(c.value);c=M.next().value;M=M.next().value;a.set(M.pricingOptionId,{groupId:X,productId:V,index:c,pricingOption:M})}}return a});
return{getProductById:N,isProductSelected:function(E){var a=N(E);if(!a)return!1;var X;return((X=A()[a.groupId])==null?void 0:X.productId)===E},
getSelectedPricingOptions:function(){return Object.values(A()).map(function(E){var a=E.productId;E=E.pricingOptionIndex;return pe7(N(a).pricingOptions,E)})},
getSelectedProductByGroupId:function(E){var a;return(E=(a=A()[E])==null?void 0:a.productId)?N(E):void 0},
onProductSelected:function(E){var a=N(E);if(a){var X=A(),d;if(((d=X[a.groupId])==null?void 0:d.productId)!==E){var V,c;d=(c=(V=X[a.groupId])==null?void 0:V.pricingOptionIndex)!=null?c:0;V=0;for(c=a.pricingOptions[Symbol.iterator]();!c.next().done;)++V;V<=d&&(d=0);V={};B(Object.assign({},X,(V[a.groupId]={productId:E,pricingOptionIndex:d},V)))}}},
onPricingOptionSelected:function(E){var a=x().get(E);if(a){E=a.groupId;var X=a.productId;a=a.index;var d=A(),V,c;if(((V=d[E])==null?void 0:V.productId)!==X||((c=d[E])==null?void 0:c.pricingOptionIndex)!==a)V={},B(Object.assign({},d,(V[E]={productId:X,pricingOptionIndex:a},V)))}},
onClearGroupSelected:function(E){var a=A();a[E]&&(a=Object.fromEntries(Object.entries(a).filter(function(X){return _.b(X).next().value!==E})),B(a))}}};
sAA=function(W){return function C(){var n,N,B,A;return yAA(C,function(w){switch(w.nextAddress){case 1:_.lM(w,2),n=0,N=_.b(W),B=N.next();case 4:if(B.done){w.jumpTo(2);break}A=B.value;var x=[n++,A];return _.l(w,x,7);case 7:B=N.next();w.jumpTo(4);break;case 2:_.xO(w),_.t8(w,0)}})}()};
eB7=function(W,k){W=_.b(sAA(W));for(var C=W.next();!C.done;C=W.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;if(k(n))return C}return-1};
pe7=function(W,k){W=_.b(sAA(W));for(var C=W.next();!C.done;C=W.next()){var n=_.b(C.value);C=n.next().value;n=n.next().value;if(C===k)return n}};
veu=function(W,k){var C,n;return function(){for(var N=W.map(function(A){return A()}),B=0;B<N.length;B++)if(!C||N[B]!==C[B]){C=N;
n=k.apply(null,_.J8(N));break}return n}};
$L1=function(W){var k;return!!(W.productId&&W.groupId&&((k=W.pricingOptions)==null?0:k.length)&&W.pricingOptions.every(function(C){return C.pricingOptionId}))};
ZY1=function(W,k,C){return G77(W,veu([k],function(n){return n.filter($L1)}),C)};
RBC=function(W){switch(W){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""}};
oe7=function(W,k){return k.length===0?[W]:[W.slice(0,k[0]),W.slice(k[0])].filter(function(C){return C.length>0})};
iYY=function(W){switch(W){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""}};
TaE=function(W,k,C,n){n=Object.assign({},n);_.l6(n,ju,{selectedOptionId:W,primaryButtonOverride:C});_.SY().dispatch(_.Nj("flowStateEntity",k,n))};
_.ULB=function(){if(!qkZ){var W=_.b(_.kw(new Map,void 0,"UJImUe"));qkZ=W.next().value;uv$=W.next().value}return qkZ};
OYT=function(W){if(W)return _.ULB()().get(W)};
_.LQB=function(W,k){if(W&&k){var C=_.ULB();C().set(W,k);W=C();uv$(new Map(W))}};
_.jAi=function(W){return{onSubmit:function(){var k;(k=OYT(W()))==null||k.onSubmit()},
isValid:function(){var k=OYT(W());return k?k.isValid():!0},
isSubmitting:function(){var k,C;return!!((k=OYT(W()))==null?0:(C=k.isSubmitting)==null?0:C.call(k))}}};
HYE=function(W,k){return _.hQ(W.entities,"contextNoteFeedEntityPayload",k)};
rAC=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
ge6=function(W){return[W.syncStep,W.asyncStep].filter(function(k){return k!==void 0})};
KQB=function(W){var k,C,n;if(W=(k=W.structuredContextNoteFormSchema)==null?void 0:(C=k.fieldSchemas)==null?void 0:(n=C.noteBody)==null?void 0:n.validationSchema)for(k=_.b(ge6(W)),C=k.next();!C.done;C=k.next()){C=C.value.rules;if(!C)break;C=_.b(C);for(C=C.next();!C.done;C=C.next())return _.z(C.value,_.PdY)}};
WI$=function(W){if(W){W=_.b(ge6(W));for(var k=W.next();!k.done;k=W.next()){k=k.value.rules;if(!k)break;k=_.b(k);for(k=k.next();!k.done;k=k.next())return _.z(k.value,hBi)}}};
CWt=function(W){if(W){W=_.b(ge6(W));for(var k=W.next();!k.done;k=W.next()){k=k.value.rules;if(!k)break;k=_.b(k);for(k=k.next();!k.done;k=k.next())return _.z(k.value,kDu)}}};
nQS=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var k=_.Gb(W)}catch(C){return!1}if(k.toString()!==W)return!1;W=k.JSC$7905_domain_.split(".");return W.length>1&&W.every(function(C){return!!C})};
N8Y=function(W,k,C,n){var N;n=(N=n.structuredContextNoteData)==null?void 0:N.createCommentEndpoint;if(N=_.z(n,_.BFA))return N.commentText=_.Go(W),N.videoPositionMention=k,N.sources=C,n};
YrZ=function(W){return W==null?void 0:W.stringValue};
bBE=function(W,k,C){W=W.map(function(n,N){return{listItemViewModel:{title:n.title,subtitle:n.subtitle,leadingImage:n.leadingImage,trailingImage:N===k?B8u:void 0,rendererContext:{commandContext:{onTap:n.onTap}}}}});
return Object.assign({},C&&{header:{panelHeaderViewModel:{title:C}}},{content:{listViewModel:{listItems:W}}})};
AQt=function(W,k){if(W&&k)switch(k){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
FIA=function(W){var k;W=(k=W.options)==null?void 0:k.findIndex(function(C){return C.isSelected});
return W===void 0?-1:W};
wNB=function(W,k,C){var n=function(){return W().label},N={},B=_.Li("ytDropdownViewModelLabel",(N.ytDropdownViewModelLabelError=k,N));
return _.t(_.NI,{cond:function(){var A;if(A=W().label)A=!(C()===-1&&W().label&&!W().placeholderText);return A},
then:function(){return _.t("div",{class:B},_.t(_.Ya,{text:n}))}})};
xl$=function(W,k){var C={};C=_.Li("ytDropdownViewModelTitle",(C.ytDropdownViewModelTitlePlaceholder=function(){return k()===-1},C));
return _.t("div",{class:C},_.t(_.Ya,{text:function(){var n=W();var N=k();if(N===-1)n=n.placeholderText?n.placeholderText:n.label;else{var B,A;n=(B=n.options)==null?void 0:(A=B[N])==null?void 0:A.title}return n}}))};
lrB=function(W,k){var C=function(){return W().hint};
return _.t(_.qf,null,_.t(_.NI,{cond:function(){return C()&&!k()},
then:function(){return _.t("div",{class:_.Li("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.t(_.Ya,{text:C,className:"ytDropdownViewModelSupportText"}))}}),_.t(_.NI,{cond:k,
then:function(){return _.t("div",{id:"dropdown-view-model-error",role:"alert",class:_.Li("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.t(_.ka,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.t(_.Ya,{text:k,className:"ytDropdownViewModelSupportText"}))}}))};
toY=function(W,k){var C=_.f().resolve(_.jOt);_.Ee(function(){var n=W().id;n&&C!=null&&C.dropdownMap.set(n,k)})};
arE=function(W){W=_.z(W.scheduleButton,EQ$);W=_.z(W==null?void 0:W.primaryButton,_.aS);W=_.z(W==null?void 0:W.onTap,_.XZ);var k,C,n=((C=_.z(W,_.Nl))==null?void 0:C.commands)||[W];C=_.b(n);for(W=C.next();!W.done&&!(k=_.z(W.value,_.Al8));W=C.next());var N;k=(N=k)==null?void 0:N.createBroadcastRequest;if(!k)throw Error("Hj");return k};
mlu=function(W,k,C){C=C===void 0?{}:C;var n,N;return _.F(function(B){if(n=XNt(k))return B.return(n);(N=fr1(W,k,C))&&dlY(k,N);return B.return(N)})};
dlY=function(W,k){var C=zd7(W);C&&k.then(function(n){_.f().resolve(_.HV).put(C,new _.rB({innertubeResponse:n}))})};
XNt=function(W){if(W=zd7(W)){var k=_.f().resolve(_.HV);if(k.has(W))return k.get(W).then(function(C){return C==null?void 0:_.kN(C)})}return null};
zd7=function(W){var k=_.z(W.endpoint,_.RA);if(k!=null&&k.videoId)return k={videoId:k.videoId},_.m("web_imp_player_mute_params")&&(k.mutedAtStart=W.startPlaybackInMutedState),_.ZH("inline_playback",k)};
fr1=function(W,k,C){W=_.Sr(W,k.endpoint,Dl7(k,C)).then(function(n){return n});
return Promise.resolve(W)};
Dl7=function(W,k){k=_.m("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},k):Object.assign({},{vis:5,autonav:"1"},k);var C;k={contentPlaybackContext:_.Bl(k,(C=_.z(W.endpoint.commandMetadata,_.Ok))==null?void 0:C.url,window.location.href)};_.m("web_imp_player_mute_params")&&(k.overrideMutedAtStart=!W.startPlaybackInMutedState);return k};
IrC=function(W,k){var C=window.MutationObserver;C&&(H7=new C(function(n,N){n=_.b(n);for(var B=n.next();!B.done;B=n.next()){B=B.value;var A;if(A=B.type==="childList"&&B.target)a:{A=W;B=Voi(B.target);A=Voi(A);for(var w=null,x=0;x<B.length;x++)if(A.includes(B[x])){if(x===0){A=!1;break a}w=B[x];break}w?(B=JQA(B,w),A=JQA(A,w),A=B<A):A=!1}if(A){k();N.disconnect();break}}}),(C=cQ6())&&H7.observe(C,{childList:!0,
subtree:!0}))};
cQ6=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
Voi=function(W){for(var k=[];W;)k.push(W),W=W.parentElement;return k};
JQA=function(W,k){var C=Array.from(k.children);k=W.indexOf(k);return k>0?C.indexOf(W[k-1]):-1};
rV=function(W,k,C){C=C===void 0?{}:C;return _.w8(W,C,k)};
Sri=function(W){return W==null?void 0:W.filter(function(k){return k.premiereTrailerBadgeRenderer})};
pN7=function(W,k){var C="",n="";switch(W){case -1:case 0:C=k?"VOLUME_OFF":"VOLUME_OFF_FILLED";n=Mo$;break;case 1:C=k?"VOLUME_UP_OUTLINE":"VOLUME_UP";n=QzA;break;default:_.oI(W)}return{iconName:C,ariaLabel:n}};
$lT=function(W,k){var C=vQ1,n=_.b(_.kw(edi(new szi(function(){},C,k)),void 0,"PAnyd")),N=n.next().value,B=n.next().value,A=new szi(function(w){B(w)},C,k);
_.XM(function(){Promise.resolve().then(function(){var w,x=(w=W())!=null?w:{};A.playerControlsData=x;_.m("player_controls_skip_double_signal_old")&&(A.lastSeenPlayerApi=_.vq(x.playerApi));_.m("player_controls_skip_double_signal_old")||(A.lastSeenPlayerApi=_.vq(x.playerApi));GDC(A)});
_.fy(function(){yQA(A)})});
_.fy(function(){yQA(A)});
return function(){return N()}};
ZBT=function(W){return function(k){var C=W(),n={playerState:k};if(k===1){var N;(N=C.playerApi)==null||N.loadModule("captions")}if(k===0){var B;(B=C.playerApi)==null||B.unloadModule("captions")}(k!==-1||_.m("web_imp_controls_set_player_state_killswitch"))&&C.setState(n)}};
RdC=function(W){return function(k){W().setState({playbackRate:k})}};
oQB=function(W){return function(k){var C=W(),n=C.playerApi,N=n==null?void 0:n.getVideoData(),B=(N==null?void 0:N.isLive)||!1;N=N==null?void 0:N.video_id;B={videoDuration:bYZ(n||void 0),isLive:B,videoId:N};B.videoId!==C.videoId&&(B=Object.assign({},_.VSm(n),B));if(k==null?0:k.playertype)B.playerType=k.playertype;if(n){B.captionsAvailable=!!n.getOptions("captions");k=B;var A;N=(A=n.getStoryboardLevel(n.getNumberOfStoryboardLevels()-1))==null?void 0:A.intervalMs;k.storyboardInterval=N?N/1E3:void 0;B.captionsAvailable&&
(B.captionsEnabled=CdT(n))}B.volumeMuted=!(n==null||!n.isMuted());C.setState(B)}};
iBi=function(W){return function(k){var C=W(),n=C.playerApi;if(n){var N=n.getPresentingPlayerType();k={playedTime:k||0,percentLoaded:n.getVideoLoadedFraction(),playerType:N};C.playerState===0&&(k.playedTime=C.videoDuration);C.isLive&&(N=n.getProgressState(N),k.playedTime-=N.seekableStart,k.videoDuration=bYZ(n));C.playerType!==1&&delete k.playedTime;C.setState(k)}}};
T86=function(W){return function(){var k=W(),C,n,N,B={volume:(N=(C=k.playerApi)==null?void 0:C.getVolume())!=null?N:0,volumeMuted:!((n=k.playerApi)==null||!n.isMuted())};k.setState(B)}};
qrS=function(W){return function(){var k=W(),C=k.playerApi;if(C){var n={captionsAvailable:!!C.getOptions("captions")};n.captionsAvailable&&(n.captionsEnabled=CdT(C));k.setState(n)}}};
ul1=function(W){return function(){var k=W();if(k.playerApi&&!(k.volumeMuted||k.controlsVisible&&k.isProbablyAScreenreaderUser)){k.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var C;(C=document.querySelector(".player-control-play-pause-icon"))==null||C.focus()}}};
Ul1=function(W){return{appApi:Object.assign({},_.aPK(),{showCaptionsToggleToast:function(k){var C,n;(n=(C=W()).showCaptionsToggleToast)==null||n.call(C,k)},
openInMiniplayer:function(){var k,C;(C=(k=W()).openInMiniplayer)==null||C.call(k)}})}};
OB$=function(W,k){var C,n,N;return!!(W==null?0:(C=W.playerResponse)==null?0:(n=C.playerConfig)==null?0:(N=n.inlinePlaybackConfig)==null?0:N.showScrubbingControls)&&!(k==null?0:k.hideScrubbingControls)};
_.LI1=function(W){var k=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||k};
jzY={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};HBS=function(W,k){var C,n,N,B,A;_.F(function(w){if(!k.length)return w.return([]);C=[];n=_.b(k);for(N=n.next();!N.done;N=n.next())B=N.value,(A=W.resolveIcon(B))&&!W.iconCache[A.url]&&C.push(_.BA7(W,A).then(function(){}).catch(function(){}));
return w.return(Promise.all(C))})};
rQ7=function(W,k){var C=[];k=(new Set(k)).values();k=_.b(k);for(var n=k.next();!n.done;n=k.next()){n=n.value;for(var N=_.b(Object.values(jzY)),B=N.next();!B.done;B=N.next())C.push({iconName:n,iconStyle:B.value})}HBS(W.iconManager,C)};
_.gQS=function(W,k,C){var n=C!=null?C:W.iconsToFetch;n!=null&&n.length?k!==void 0&&k>=0?_.wI(_.aM,function(){rQ7(W,n)},k):rQ7(W,n):Promise.resolve()};
yAA=function(W,k){k=new _.Haw(new _.OaI(k));_.o5&&W.prototype&&(0,_.o5)(k,W.prototype);return k};
AAi={};
szi=function(W,k,C){var n=this;this.renderFn=W;this.listeners=k;this.context=C;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var N;this.lastSeenPlayerApi=_.vq((N=this.playerControlsData)==null?void 0:N.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.VSm(),void 0);_.m("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){edi(n).setState({playerState:-1});n.resetRecentlyNavigatedJobId&&_.aM.cancelJob(n.resetRecentlyNavigatedJobId);n.recentlyNavigated=
!0;n.resetRecentlyNavigatedJobId=_.aM.addJob(function(){n.recentlyNavigated=!1},8,1E4)})};
szi.prototype.setState=function(W){if(!_.m("mweb_player_skip_no_op_state_changes")||!FQC(W,this.state))if(this.state=Object.assign({},this.state,W),!_.m("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.m("player_controls_log_creation_killswitch")||we7()||(W=(0,_.oX)()),_.cN("pcu_s"),_.cN("pcu_se"),_.cN("pcu_rs"),this.renderFn(edi(this)),_.cN("pcu_re"),xL7(W),_.aM.addJob(function(){_.cN("pcu_ap")},8)};
var edi=function(W){var k;var C=_.vq((k=W.playerControlsData)==null?void 0:k.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:C,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},GDC=function(W){W.listeners.forEach(function(k){W.eventListenerCleanupFunctions.push(k.register(function(){return edi(W)},function(){return W.getData()}))})},
yQA=function(W){W.eventListenerCleanupFunctions.forEach(function(k){k()});
W.eventListenerCleanupFunctions.length=0};
szi.prototype.getData=function(){return this.playerControlsData};
var gV=new _.r("abuseReportFlowState");var PWA=new _.r("feedbackFormFlowState");var KIA=new _.r("inputBoxViewModel");var hdA=new _.r("flowNextStepCommand");var W77=new _.r("flowPrevStepCommand");var koZ=new _.r("updateFlowCommand");_.COT=new _.r("flowStepRenderer");_.PdY=new _.r("lengthValidationRule");var hBi=new _.r("regexValidationRule");var kDu=new _.r("selectedValidationRule");var nSZ=new _.r("talkToRecsViewModel");var Nnt=new _.r("creatorGoalSetUpFlowDropdownItemViewModel");var YbB=new _.r("creatorGoalSetUpFlowDropdownViewModel");_.BnB=new _.r("radioButtonGroupViewModel");var EQ$=new _.r("panelFooterViewModel");var b57=new _.r("ypcCancelRecurrenceCommand");var Ae7=new _.r("cancellationFlowState");var ju=new _.r("premiumPurchaseFlowState");var F7u=new _.r("surveyAnswerCardRenderer");var w3u=new _.r("showMoreButtonRenderer");var xy1;var lFT,tWS=function(){if(lFT!==void 0)return lFT;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;xy1===void 0&&(xy1=document.createElement("template"));var n=xy1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return lFT=W};var EST=function(){var W=_.R.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.D(EST,_.R);_.Y=EST.prototype;_.Y.getGoalDropdownItems=function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.purchaseTargetDropdown,YbB))==null?void 0:k.dropdownItems};
_.Y.getTimerDropdownItems=function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.timerDropdown,YbB))==null?void 0:k.dropdownItems};
_.Y.getColorDropdownItems=function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.colorDropdown,YbB))==null?void 0:k.dropdownItems};
_.Y.getDropdownItemText=function(W){var k;return(k=_.z(W,Nnt))==null?void 0:k.itemLabel};
_.Y.getDropdownItemValue=function(W){W=_.z(W,Nnt);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.Y.updateFlowState=function(W){_.KY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.Y.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.Y.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.Y.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.Y.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.Y.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.Y.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var k,C=_.z((k=this.data)==null?void 0:k.startGoalButton,_.aS);return Object.assign({},C,{state:W})};
_.oq.Object.defineProperties(EST,{template:{configurable:!0,enumerable:!0,get:function(){return tWS()}}});
var P7=EST;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"goal",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"goalDescription",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"timer",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"tier",void 0);
_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"startButtonId",void 0);_.U([_.Z(),_.O("design:type",Object)],P7.prototype,"exampleButtonId",void 0);P7=_.U([_.l0({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],P7);_.q(P7,"yt-creator-goal-set-up-flow-view-model",function(){return tWS()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var aFC;var X3i;var fFu;var dyu=function(){return _.R.apply(this,arguments)||this};
_.D(dyu,_.R);var my$=dyu;_.U([_.Z(),_.O("design:type",Object)],my$.prototype,"data",void 0);my$=_.U([_.l0({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],my$);
_.q(my$,"yt-survey-answer-card-renderer",function(){if(fFu===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;X3i===void 0&&(X3i=document.createElement("template"));var n=X3i;C.call(k,n.content.cloneNode(!0),W.content.firstChild);fFu=W}W=fFu;return W},{mode:2});var zVu;var Dyt;var VWE=function(){return _.R.apply(this,arguments)||this};
_.D(VWE,_.R);_.Y=VWE.prototype;_.Y.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.Y.selectedItemChanged=function(W){_.KY(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.Y.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.z(W.model.item,F7u)){var k=W.target;W=_.z(W.model.item,F7u);W.onTapCommand?_.CB(k,[W.onTapCommand],k):this.data.onTapCommand&&_.CB(k,[this.data.onTapCommand],k);this.selectedItemChanged(W)}};
_.Y.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.Y.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
var Km=VWE;Km.prototype.onSelectedItemChanged=Km.prototype.onSelectedItemChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Km.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Km.prototype,"selectedItem",void 0);_.U([_.Z({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Km.prototype,"isCancellationStyle",void 0);
_.U([_.Hl("selectedItem"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Km.prototype,"onSelectedItemChanged",null);Km=_.U([_.l0({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Km);
_.q(Km,"yt-survey-flow-step-renderer",function(){if(Dyt===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;zVu===void 0&&(zVu=document.createElement("template"));var n=zVu;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Dyt=W}W=Dyt;return W},{mode:2});var JeA=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.D(JeA,_.R);JeA.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.jo({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.KY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
var hF=JeA;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],hF.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],hF.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hF.prototype,"data",void 0);hF=_.U([_.T({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],hF);
_.q(hF,"ytd-survey-flow-step-renderer",function(){if(aFC!==void 0)return aFC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return aFC=W},{mode:1});var lH6;lH6=_.w7({avatarViewModel:_.m4,buttonViewModel:_.zn,subscribeButtonViewModel:_.W6A,imageBannerViewModel:_.FW});_.ceC=_.ry(_.Eet);_.UK(_.Eet);var IFS;var SbA=function(){return _.R.apply(this,arguments)||this};
_.D(SbA,_.R);var Wz=SbA;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Wz.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wz.prototype,"data",void 0);Wz=_.U([_.T({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Wz);
_.q(Wz,"ytd-channel-history-renderer",function(){if(IFS!==void 0)return IFS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return IFS=W},{mode:1});var MWS;var QY$=function(){return _.R.apply(this,arguments)||this};
_.D(QY$,_.R);var p3$=QY$;_.U([_.Z(),_.O("design:type",Object)],p3$.prototype,"data",void 0);p3$=_.U([_.T({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],p3$);
_.q(p3$,"ytd-feature-enablement-info-renderer",function(){if(MWS!==void 0)return MWS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return MWS=W},{mode:1});var vS7;var eV7;var sY7=function(){var W=_.R.apply(this,arguments)||this;W.textBoxMaxLength=_.m("enable_tvod_campaign_code_integration")?15:12;return W};
_.D(sY7,_.R);_.Y=sY7.prototype;_.Y.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.Y.onSubmit=function(){var W=this.data.serviceEndpoint,k=_.z(W,_.g7);k&&W&&(k.couponCode=this.userInput,_.m("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.kQ(this.hostElement,[W]):_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}}))};
_.Y.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.m("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.Y.computeStyle=function(W){return W};
_.Y.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.Y.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.Y.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.oq.Object.defineProperties(sY7.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var kp=sY7;kp.prototype.dataChanged=kp.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kp.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],kp.prototype,"userInput",void 0);_.U([_.Z(),_.O("design:type",Boolean)],kp.prototype,"disableApplyButton",void 0);_.U([_.Z(),_.O("design:type",Boolean)],kp.prototype,"hideApplyButton",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],kp.prototype,"hideErrorMessage",void 0);_.U([_.Z(),_.O("design:type",Boolean)],kp.prototype,"showTick",void 0);_.U([_.Z(),_.O("design:type",Boolean)],kp.prototype,"showErrorMessage",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],kp.prototype,"couponStyle",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.O("design:type",Boolean)],kp.prototype,"showValidationBelowInput",void 0);_.U([_.Z(),_.O("design:type",Object)],kp.prototype,"textBoxMaxLength",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kp.prototype,"dataChanged",null);
_.U([_.G("showTick","showErrorMessage","userInput"),_.O("design:type",String),_.O("design:paramtypes",[])],kp.prototype,"validationState",null);kp=_.U([_.T({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],kp);
_.q(kp,"ytd-ypc-coupon-renderer",function(){if(eV7!==void 0)return eV7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return eV7=W},{mode:1});var Go$=function(){return _.R.apply(this,arguments)||this};
_.D(Go$,_.R);Go$.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"}}}};
Go$.prototype.computeStyle=function(W){return W};
var CQ=Go$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CQ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],CQ.prototype,"buttonStyle",void 0);
CQ=_.U([_.T({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],CQ);
_.q(CQ,"ytd-flow-bottom-bar-renderer",function(){if(vS7!==void 0)return vS7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vS7=W},{mode:1});var yet;var $yi;var Z51;var RVi=function(){return _.R.apply(this,arguments)||this};
_.D(RVi,_.R);RVi.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RVi.prototype.focus=function(W){this.title&&_.ek(this.title,W)};
var nQ=RVi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nQ.prototype,"data",void 0);_.U([_.gi("#title"),_.O("design:type",HTMLElement)],nQ.prototype,"title",void 0);nQ=_.U([_.T({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],nQ);
_.q(nQ,"ytd-flow-top-bar-renderer",function(){if(Z51!==void 0)return Z51;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Z51=W},{mode:1});var oS6;var i56;var Tnu;var Nd=function(){return _.R.apply(this,arguments)||this};
_.D(Nd,_.R);Nd.prototype.freeTextValueChanged=function(){_.KY(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Nd.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.oq.Object.defineProperties(Nd.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(k=(W=this.data)==null?void 0:W.responseMaxLength)!=null?k:500,n;return((n=this.freeTextValue)!=null?n:"").length>=C?"maxed-out":""}}});
var Yp=Nd;Yp.prototype.freeTextValueChanged=Yp.prototype.freeTextValueChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Yp.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Yp.prototype,"freeTextValue",void 0);_.U([_.gi("#user-input"),_.O("design:type",HTMLTextAreaElement)],Yp.prototype,"input",void 0);
_.U([_.G("freeTextValue"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yp.prototype,"characterLimitClass",null);_.U([_.Hl("freeTextValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Yp.prototype,"freeTextValueChanged",null);Yp=_.U([_.l0({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Yp);
_.q(Yp,"yt-free-text-input-flow-step-renderer",function(){if(Tnu===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;i56===void 0&&(i56=document.createElement("template"));var n=i56;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Tnu=W}W=Tnu;return W},{mode:2});var qb1=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.D(qb1,_.R);qb1.prototype.handleFreeTextFlowStepInputChanged=function(W){_.KY(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
var Bz=qb1;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Bz.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Bz.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bz.prototype,"data",void 0);Bz=_.U([_.T({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Bz);
_.q(Bz,"ytd-free-text-input-flow-step-renderer",function(){if(oS6!==void 0)return oS6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return oS6=W},{mode:1});var uDE;var UyC;var O57=function(){return _.R.apply(this,arguments)||this};
_.D(O57,_.R);var L7t=O57;_.U([_.Z(),_.O("design:type",Object)],L7t.prototype,"data",void 0);L7t=_.U([_.T({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],L7t);
_.q(L7t,"ytd-metadata-line-renderer",function(){if(UyC!==void 0)return UyC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return UyC=W},{mode:1});var jYA=function(){return _.R.apply(this,arguments)||this};
_.D(jYA,_.R);jYA.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var bm=jYA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bm.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],bm.prototype,"isMasthead",void 0);bm=_.U([_.T({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],bm);
_.q(bm,"ytd-media-product-renderer",function(){if(uDE!==void 0)return uDE;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return uDE=W},{mode:1});var H5E;var rei=function(){return _.R.apply(this,arguments)||this};
_.D(rei,_.R);rei.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
rei.prototype.onBillboardImageLoaded=function(){_.Pe(this.hostElement,"yt-refit")};
var Ai=rei;Ai.prototype.onBillboardImageLoaded=Ai.prototype.onBillboardImageLoaded;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ai.prototype,"data",void 0);_.U([_.gi("#billboardImage"),_.O("design:type",Object)],Ai.prototype,"billboardImage",void 0);_.U([_.jI("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ai.prototype,"onBillboardImageLoaded",null);
Ai=_.U([_.T({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Ai);
_.q(Ai,"ytd-billboard-masthead-renderer",function(){if(H5E!==void 0)return H5E;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return H5E=W},{mode:1});var gSS;var PO7=function(){var W=_.R.apply(this,arguments)||this;W.smallSize=!1;return W};
_.D(PO7,_.R);var F4=PO7;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],F4.prototype,"ytComponentBehaviorType",void 0);_.U([_.Z(),_.O("design:type",Object)],F4.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],F4.prototype,"smallSize",void 0);F4=_.U([_.T({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],F4);
_.q(F4,"ytd-bullet-formatted-string",function(){if(gSS!==void 0)return gSS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gSS=W},{mode:1});var K7u;var hV1=function(){return _.R.apply(this,arguments)||this};
_.D(hV1,_.R);hV1.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var wz=hV1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wz.prototype,"data",void 0);wz=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],wz);
_.q(wz,"ytd-offer-detail-renderer",function(){if(K7u!==void 0)return K7u;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return K7u=W},{mode:1});var WgB;var ky7=function(){return _.R.apply(this,arguments)||this};
_.D(ky7,_.R);ky7.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
var xp=ky7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xp.prototype,"data",void 0);xp=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],xp);
_.q(xp,"ytd-offer-detail-step-renderer",function(){if(WgB!==void 0)return WgB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return WgB=W},{mode:1});var CK7;var nZ6=function(){var W=_.R.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.D(nZ6,_.R);_.Y=nZ6.prototype;_.Y.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.Y.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.Y.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.Y.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var k;this.componentBehavior.resolveCommand((k=this.data)==null?void 0:k.onClickCommand)}};
_.Y.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.Y.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
var lm=nZ6;lm.prototype.dataChanged=lm.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],lm.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lm.prototype,"data",void 0);_.U([_.Z({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],lm.prototype,"hasEndpoint",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lm.prototype,"isInOfferModule",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lm.prototype,"dataChanged",null);lm=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],lm);
_.q(lm,"ytd-channel-masthead-renderer",function(){if(CK7!==void 0)return CK7;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return CK7=W},{mode:1});var Nii;var YpS=function(){var W=_.R.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.D(YpS,_.R);_.Y=YpS.prototype;_.Y.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.Y.dataChanged=function(){this.resetStates()};
_.Y.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.Y.onExpandBtnClick=function(){var W,k=_.z((W=this.data)==null?void 0:W.showMoreButtonRenderer,w3u);k&&_.Pn(_.kf(),k.trackingParams);this.isExpanded=!this.isExpanded};
_.Y.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.sJ(_.vl(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.Y.onBottomBarClick=function(){this.executeTapCommand()};
_.Y.executeTapCommand=function(){var W,k=(W=this.data)==null?void 0:W.tapCommand;k&&this.ytComponentBehavior.resolveCommand(k)};
_.Y.resetStates=function(){this.isExpanded=!1};
_.oq.Object.defineProperties(YpS.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),k,C,n;return((k=this.data)==null?void 0:k.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((C=this.data)==null?0:(n=C.benefits)==null?0:n.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((k=_.z((W=this.data)==null?void 0:W.showMoreButtonRenderer,w3u))==null?void 0:k.showMoreButtonTitle)||((C=this.data)==null?void 0:C.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((k=_.z((W=this.data)==null?void 0:W.showMoreButtonRenderer,w3u))==null?void 0:k.showLessButtonTitle)||((C=this.data)==null?void 0:C.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var k;return(k=this.showMoreButtonTitle)!=null?k:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((k=this.data)==null?0:k.footerTitle)||((C=this.data)==null?0:C.footerSubtitle))}}});
var ti=YpS;ti.prototype.dataChanged=ti.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",String)],ti.prototype,"thumbnailObjectFit",void 0);
_.U([_.Z(),_.O("design:type",String)],ti.prototype,"thumbnailObjectPosition",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.O("design:type",Boolean)],ti.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.U([_.Z(),_.O("design:type",Object)],ti.prototype,"isExpanded",void 0);_.U([_.Z(),_.O("design:type",Object)],ti.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.footerIcon)"}),_.O("design:type",String)],ti.prototype,"icon",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ti.prototype,"dataChanged",null);_.U([_.G("data.thumbnail"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ti.prototype,"hasThumbnail",null);_.U([_.G("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ti.prototype,"enableExpandButton",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ti.prototype,"enableOfferContentIcon",null);_.U([_.G("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ti.prototype,"showMoreButtonTitle",null);_.U([_.G("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.O("design:type",Object),_.O("design:paramtypes",[])],ti.prototype,"showLessButtonTitle",null);
_.U([_.G("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.O("design:type",String),_.O("design:paramtypes",[])],ti.prototype,"expandedBtnText",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ti.prototype,"enableBottomBar",null);ti=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],ti);
_.q(ti,"ytd-offer-card-renderer",function(){if(Nii!==void 0)return Nii;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Nii=W},{mode:1});var BiZ;var bO1=function(){return _.R.apply(this,arguments)||this};
_.D(bO1,_.R);bO1.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"}}}};
bO1.prototype.onClick=function(W){if(!_.er(W.composedPath()||[],this.hostElement,["A".toString()])){var k,C;if((W=(C=_.z((k=this.data)==null?void 0:k.actionButton,_.Vq))==null?void 0:C.command)&&!this.ytComponentBehavior.resolveCommand(W)){var n;(n=_.kf())==null||n.clickCommand(W);_.m("web_ytd_offer_content_renderer_command_resolver_ks")?_.kQ(this.hostElement,[W]):_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})}}};
var ET=bO1;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ET.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ET.prototype,"data",void 0);ET=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],ET);
_.q(ET,"ytd-offer-content-renderer",function(){if(BiZ!==void 0)return BiZ;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return BiZ=W},{mode:1});var AhT;var FgC=function(){return _.R.apply(this,arguments)||this};
_.D(FgC,_.R);FgC.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.oq.Object.defineProperties(FgC.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.title)||!((k=this.data)==null||!k.description)}}});
var ag=FgC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ag.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ag.prototype,"hasHeaderData",null);ag=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],ag);
_.q(ag,"ytd-offer-section-renderer",function(){if(AhT!==void 0)return AhT;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return AhT=W},{mode:1});var wl$;var xwB=function(){return _.R.apply(this,arguments)||this};
_.D(xwB,_.R);
xwB.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
var X4=xwB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],X4.prototype,"data",void 0);X4=_.U([_.T({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],X4);
_.q(X4,"ytd-offer-selection-step-renderer",function(){if(wl$!==void 0)return wl$;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return wl$=W},{mode:1});var l61;var tI7=function(){return _.R.apply(this,arguments)||this};
_.D(tI7,_.R);tI7.prototype.computeStyle=function(W){return W};
tI7.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var fQ=tI7;_.U([_.Z({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.O("design:type",String)],fQ.prototype,"containerStyle",void 0);_.U([_.Z({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.O("design:type",String)],fQ.prototype,"imageWidth",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],fQ.prototype,"data",void 0);fQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],fQ);
_.q(fQ,"ytd-confirmation-masthead-renderer",function(){if(l61!==void 0)return l61;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return l61=W},{mode:1});var EZT;var a6S=function(){return _.R.apply(this,arguments)||this};
_.D(a6S,_.R);a6S.prototype.computeStyle=function(W){return W};
var dz=a6S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.O("design:type",String)],dz.prototype,"containerStyle",void 0);dz=_.U([_.T({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],dz);
_.q(dz,"ytd-purchase-complete-detail-renderer",function(){if(EZT!==void 0)return EZT;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return EZT=W},{mode:1});var XlS;var mO=function(){var W=_.R.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.D(mO,_.R);mO.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"}}}};
mO.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.YD(W,_.DE("GL","")),this.setupConversionTracking())};
mO.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
var zO=mO;zO.prototype.onDataChanged=zO.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zO.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],zO.prototype,"scriptsAppended",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zO.prototype,"onDataChanged",null);zO=_.U([_.T({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],zO);
_.q(zO,"ytd-purchase-complete-step-renderer",function(){if(XlS!==void 0)return XlS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return XlS=W},{mode:1});var f66;var dw7=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(dw7,_.R);dw7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var DL=dw7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],DL.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],DL.prototype,"darkerDarkTheme",void 0);DL=_.U([_.T({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],DL);
_.q(DL,"ytd-ypc-transaction-error-message-renderer",function(){if(f66!==void 0)return f66;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return f66=W},{mode:1});var mwZ;var zNC;var Vk=function(){var W=_.R.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(k){if(W.isValidPhoneVerificationCompletionMessageEvent(k)){var C;((C=W.data)==null?0:C.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.D(Vk,_.R);Vk.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.R4(W.origin);return W!==null&&W.includes("youtube.com")};
Vk.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Vk.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var Ji=Vk;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ji.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ji.prototype,"data",void 0);Ji=_.U([_.l0({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ji);
_.q(Ji,"yt-feature-enablement-soft-entry-renderer",function(){if(zNC===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;mwZ===void 0&&(mwZ=document.createElement("template"));var n=mwZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);zNC=W}W=zNC;return W},{mode:1});var Dw7;var VIT;var JhZ;var cht;var I6Y=function(){return _.R.apply(this,arguments)||this};
_.D(I6Y,_.R);var SpT=I6Y;_.U([_.Z(),_.O("design:type",Object)],SpT.prototype,"data",void 0);SpT=_.U([_.l0({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],SpT);
_.q(SpT,"yt-benefits-item-renderer",function(){if(cht===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;JhZ===void 0&&(JhZ=document.createElement("template"));var n=JhZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);cht=W}W=cht;return W},{mode:2});var MIE;var Q8E;var plu=function(){return _.R.apply(this,arguments)||this};
_.D(plu,_.R);plu.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
plu.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var cz=plu;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.O("design:type",Boolean)],cz.prototype,"isWithoutPadding",void 0);cz=_.U([_.l0({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],cz);
_.q(cz,"yt-benefits-section-renderer",function(){if(Q8E===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;MIE===void 0&&(MIE=document.createElement("template"));var n=MIE;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Q8E=W}W=Q8E;return W},{mode:2});var vZ$=function(){return _.R.apply(this,arguments)||this};
_.D(vZ$,_.R);vZ$.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
vZ$.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var Ig=vZ$;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ig.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.O("design:type",Boolean)],Ig.prototype,"isUsingLargeWidth",void 0);Ig=_.U([_.l0({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Ig);
_.q(Ig,"yt-benefits-flow-step-renderer",function(){if(VIT===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Dw7===void 0&&(Dw7=document.createElement("template"));var n=Dw7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);VIT=W}W=VIT;return W},{mode:2});var eN7;var s8Z;var Gy7=function(){return _.R.apply(this,arguments)||this};
_.D(Gy7,_.R);Gy7.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var Sj=Gy7;_.U([_.Z(),_.O("design:type",Object)],Sj.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.O("design:type",Boolean)],Sj.prototype,"isUsingLargeWidth",void 0);Sj=_.U([_.l0({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Sj);
_.q(Sj,"yt-confirmation-flow-step-renderer",function(){if(s8Z===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;eN7===void 0&&(eN7=document.createElement("template"));var n=eN7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);s8Z=W}W=s8Z;return W},{mode:2});var yht;var $wT;var ZOA=function(){return _.R.apply(this,arguments)||this};
_.D(ZOA,_.R);var RNC=ZOA;_.U([_.Z(),_.O("design:type",Object)],RNC.prototype,"data",void 0);RNC=_.U([_.l0({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],RNC);
_.q(RNC,"yt-info-flow-step-renderer",function(){if($wT===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;yht===void 0&&(yht=document.createElement("template"));var n=yht;C.call(k,n.content.cloneNode(!0),W.content.firstChild);$wT=W}W=$wT;return W},{mode:2});var oZ6;var iOA;var TiB=function(){return _.R.apply(this,arguments)||this};
_.D(TiB,_.R);var qp1=TiB;_.U([_.Z(),_.O("design:type",Object)],qp1.prototype,"data",void 0);qp1=_.U([_.l0({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],qp1);
_.q(qp1,"yt-info-list-flow-step-renderer",function(){if(iOA===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;oZ6===void 0&&(oZ6=document.createElement("template"));var n=oZ6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);iOA=W}W=iOA;return W},{mode:2});var uiT=_.GM(function(W){var k=W.data;return _.t("styled-text-view-model",{class:_.Li("ytStyledTextViewModelHost",function(){return Mh1(k().fontAttributes)},function(){return Sk7(k().color)})},_.t(_.Ya,{text:function(){return k().text},
ariaLabel:function(){var C,n,N;return(N=(C=k().accessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)!=null?N:""}}))},"we");
uiT.idomCompat=!0;var UwC=_.GM(function(W){var k=function(){var N,B,A,w;return(w=(A=(N=W.alt)==null?void 0:N.call(W))!=null?A:(B=W.data().accessibilityData)==null?void 0:B.label)!=null?w:""},C=function(){return W.data().imageWidth},n=function(){return W.data().imageHeight};
return _.t("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.t(_.NI,{cond:function(){var N=W.data();if(N){var B,A,w;var x=((B=_.f().resolve(_.qI(_.cj)))==null?0:B())?(A=N.imageDark)!=null?A:N.imageLight:(w=N.imageLight)!=null?w:N.imageDark}else x=void 0;return x},
then:function(N){return _.t(_.pi,Object.assign({},W,{data:N,alt:k,targetWidth:C,targetHeight:n,preserveHeight:!0,preserveWidth:!0}))}}))},"xe");
UwC.idomCompat=!0;var Md=_.GM(function(W){var k=W.data;W=_.pq(function(){return k().slots},[]);
var C=_.pq(function(){return k().layoutProperties},{}),n=_.f().resolve(_.Sc);
return _.t("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:DLC(C,n)},_.t(_.bI,{each:W,keyBy:"INDEX"},function(N){return _.t("div",{class:"ytContainerLayoutViewModelSlot",style:DLC(function(){return N().layoutProperties},n)},_.t(_.Ex,{data:function(){return N().contents}},{containerLayoutViewModel:Md,
badgeViewModel:_.ha,buttonViewModel:_.zn,styledTextViewModel:uiT,contentPreviewImageViewModel:function(B){return _.t(_.W2,{data:B.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(B){return _.t(UwC,{data:B.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ye");
Md.idomCompat=!0;var OO7=_.GM(function(W){var k=W.data;var C=W.stateFns;var n=function(){var E=k(),a=E.productId;return!(!E.clearGroupId&&!a)},N=function(){var E=k(),a=E.clearGroupId;
return(E=E.productId)?C().isProductSelected(E):a?C().getSelectedProductByGroupId(a)==null:!1},B=function(){var E=k(),a=E.clearGroupId;
if(E=E.productId)C().onProductSelected(E);else if(a)C().onClearGroupSelected(a)},A=function(){var E=k(),a=E.clearGroupId;
if(E=E.productId){var X;return"group:"+(((X=C().getProductById(E))==null?void 0:X.groupId)||"")}return a?"group:"+a:""},w=_.pq(function(){return k().header},[]),x=_.pq(function(){return k().body},[]);
return _.t("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.t(_.NI,{cond:function(){return w().length>0||n()},
then:function(){return _.t("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.t("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.t(_.Ex,{data:w},{containerLayoutViewModel:function(E){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(Md,{data:E.data}))},
styledTextViewModel:function(E){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(uiT,{data:E.data}))}})),_.t(_.NI,{cond:n,
then:function(){return _.t("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.t(_.i$s,{checked:N,name:A,onChange:B}))}}))}}),_.t(_.NI,{cond:function(){return x().length>0},
then:function(){return _.t("div",null,_.t(_.Ex,{data:x},{containerLayoutViewModel:function(E){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(Md,{data:E.data}))}}))}}))},"ze");
OO7.idomCompat=!0;var LgS=_.GM(function(W){var k=W.data;var C=W.stateFns;return _.t("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.t(_.NI,{cond:function(){return k().banner},
then:function(n){return _.t("div",{class:"ytPdpCardViewModelBanner"},_.t(_.Ya,{text:n}))}}),_.t(_.Ex,{data:function(){return k().sections}},{pdpCardSectionViewModel:function(n){n=n.data;
var N={};return _.t("div",{class:_.Li("ytPdpCardViewModelSectionContainer",(N.ytPdpCardViewModelShowDividers=function(){return k().showDividers},N))},_.t(OO7,{data:n,
stateFns:C}))}}))},"Ae");
LgS.idomCompat=!0;var j8B=_.GM(function(W){var k=W.data;var C=W.isOverlay;W={};return _.t("pdp-masthead-view-model",{class:_.Li("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=C,W))},_.t(_.Ex,{data:function(){return k().image}},{contentPreviewImageViewModel:_.W2,
themedImageViewModel:function(n){return _.t(UwC,{data:n.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.t(_.NI,{cond:function(){return k().title},
then:function(n){return _.t("h1",{class:"ytPdpMastheadViewModelHeading"},_.t(_.Ya,{text:n,isOverlay:C}))}}),_.t(_.bI,{each:function(){var n;
return(n=k().finePrint)!=null?n:[]}},function(n){return _.t("div",{class:"ytPdpMastheadViewModelFinePrint"},_.t(_.Ya,{text:n,
isOverlay:C}))}))},"Be");
j8B.idomCompat=!0;var HOZ=_.GM(function(W){var k=W.data;var C=W.stateFns;return _.t("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.t(_.bI,{each:function(){var n=C().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),N=C().getSelectedProductByGroupId(_.QY(k().groupId));
return N?N.pricingOptions.map(function(B){return{pricingOption:B,isSelected:n.includes(B.pricingOptionId)}}):(_.mw(Error("Gj`"+_.QY(k().groupId))),[])},
keyBy:"INDEX"},function(n){return _.t("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.t("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.t(_.Ex,{data:function(){return n().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Md})),_.t("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.t(_.i$s,{checked:function(){return n().isSelected},
onClick:function(){C().onPricingOptionSelected(n().pricingOption.pricingOptionId);var N=n().pricingOption.onSelectPricingOption;if(N=_.fi(N)){var B;(B=_.f().resolve(_.uI))==null||B.resolveCommand(N)}}})))}))},"Ce");
HOZ.idomCompat=!0;var rh$=_.GM(function(W){var k=W.data;var C=W.stateFns;return _.t("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.t(_.Ex,{data:function(){var n,N;return(N=(n=C().getSelectedPricingOptions()[0])==null?void 0:n.primaryButton)!=null?N:k().emptyStateButton}},{buttonViewModel:_.zn}))},"De");
rh$.idomCompat=!0;var gZZ=_.GM(function(W){var k=W.stateFns;return _.t("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.t(_.Ex,{data:function(){return k().getSelectedPricingOptions().flatMap(function(C){return C.summaryLines}).filter(function(C){return!!C})}},{containerLayoutViewModel:function(C){return _.t("div",{class:"ytPdpSummaryViewModelLineItem"},_.t(Md,{data:C.data}))}}))},"Ee");
gZZ.idomCompat=!0;var PKB=_.GM(function(W){var k=W.data;W={};return _.t("divider-view-model",{class:_.Li("divider-view-model-wiz",(W["divider-view-model-wiz__inset-thin-padding"]=function(){return k().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.t("div",{class:_.Li("divider-view-model-wiz__base-divider",function(){return RBC(k().dividerStyle)}),
style:_.WJ({"background-color":function(){return k().backgroundColor?_.a8(k().backgroundColor):void 0}})}))},"Fe");
PKB.idomCompat=!0;var KgE=_.GM(function(W){function k(p){var e=A();_.Q3(_.d7("pdpStateEntity",e,{key:e,selectedPricingOptions:p}))}
var C=W.data;var n=W.internalScrolling;var N=W.stateFnsForTesting;var B=_.pq(function(){return C().allProducts},[]),A=_.pq(function(){return C().pdpStateEntityKey},""),w=_.kj(QA7,A),x=_.BH(function(){_.m$(!0);
var p;return(p=N==null?void 0:N())!=null?p:ZY1(w,B,k)},void 0,"POBqwe"),E=_.pq(function(){return C().body},[]),a=_.pq(function(){return C().columnBreakHints},[]),X=function(){return C().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},d=function(){return X()||C().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},V=_.BH(function(){var p=_.uX(C().background),e;
if(p==null?0:(e=p.sources)==null?0:e.length){var u=u===void 0?!0:u;p=_.aKp(void 0,p.sources,void 0,u,u?1E3:void 0,u?void 0:1E3)}else p=null;return p},void 0,"BkCmEd");
W=_.WJ({"--pdp-view-model-background":function(){return V()?"url("+V()+")":void 0}});
var c={};n=_.Li("ytPdpViewModelHost",(c.ytPdpViewModelHasBackground=function(){return d()||!!V()},c.ytPdpViewModelHasDarkBackground=d,c.ytPdpViewModelHasScrim=X,c.ytPdpViewModelInternalScrolling=_.pq(n,!1),c));
var M=function(p){var e={};return _.Li("ytPdpViewModelItem",(e.ytPdpViewModelFullBleed=function(){return _.FOI(p())==="dividerViewModel"||_.FOI(p())==="sectionHeaderViewModel"},e.ytPdpViewModelNoVerticalPadding=function(){return _.FOI(p())==="sectionHeaderViewModel"},e))};
_.Ee(function(){var p=C().onStartCommand;if(p&&(p=_.fi(p))){var e;(e=_.f().resolve(_.uI))==null||e.resolveCommand(p)}});
return _.t("pdp-view-model",{class:n,style:W},_.t("div",{class:"ytPdpViewModelColumnContainer"},_.t(_.bI,{each:function(){return oe7(E(),a())},
keyBy:"INDEX"},function(p){return _.t("div",{class:"ytPdpViewModelColumn"},_.t(_.Ex,{data:p},{containerLayoutViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(Md,{data:e}))},
dividerViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(PKB,{data:e}))},
pdpCardViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(LgS,{data:e,
stateFns:x}))},
pdpMastheadViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(j8B,{data:e,
isOverlay:d}))},
pdpPricingOptionSelectorViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(HOZ,{data:e,
stateFns:x}))},
pdpPrimaryButtonViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(rh$,{data:e,
stateFns:x}))},
pdpSummaryViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(gZZ,{data:e,
stateFns:x}))},
sectionHeaderViewModel:function(e,u){e=e.data;return _.t("div",{class:M(function(){return p()[u()]})},_.t(_.$V,{data:e}))}}))})))},"Ge");
KgE.idomCompat=!0;_.Gj(KgE,"pdp-view-model",{props:{data:_.Ik,stateFnsForTesting:_.si,internalScrolling:_.si}});var hN7=_.GM(function(W){var k=W.data;var C=W.className;var n=_.kj(_.HG,function(){return k().flowStateEntityKey});
return _.t("ytm-premium-purchase-button-renderer",{class:_.Li("yt-premium-purchase-button-renderer",C)},_.t(_.Ex,{data:function(){var N;return(N=_.z(n(),ju))==null?void 0:N.primaryButtonOverride}},{buttonRenderer:function(N){return _.t(_.qg,{data:N.data,
className:C})},
buttonViewModel:function(N){return _.t(_.zn,{data:N.data,className:C})}}))},"He");
hN7.idomCompat=!0;var WWZ=_.GM(function(W){var k=W.data;var C=function(){return iYY(k().style)},n=_.Li("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",C),N=_.Li("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",C);
return _.t("yt-flow-bottom-bar-renderer",{class:_.Li("yt-flow-bottom-bar-renderer",W.className,C)},_.t(_.Ex,{data:function(){return k().secondaryButton}},{buttonRenderer:function(B){return _.t(_.qg,{data:B.data,
className:N})},
buttonViewModel:function(B){return _.t(_.zn,{data:B.data,className:N})},
premiumPurchaseButtonRenderer:function(B){return _.t(hN7,{data:B.data,className:N})}}),_.t(_.Ex,{data:function(){return k().primaryButton}},{buttonRenderer:function(B){return _.t(_.qg,{data:B.data,
className:n})},
buttonViewModel:function(B){return _.t(_.zn,{data:B.data,className:n})},
premiumPurchaseButtonRenderer:function(B){return _.t(hN7,{data:B.data,className:n})}}))},"Ie");
WWZ.idomCompat=!0;_.Gj(WWZ,"yt-flow-bottom-bar-renderer",{props:{data:_.Ik,className:_.Ik}});var kM$=_.GM(function(W){return _.t("yt-offer-summary-renderer",{class:_.Li(W.className,"ytOfferSummaryRendererHost")},_.t("div",{class:"ytOfferSummaryRendererTextContainer"},_.t("div",{class:"ytOfferSummaryRendererEyebrowText"},_.t(_.Ya,{text:function(){return W.data().eyebrowText}})),_.t("div",{class:"ytOfferSummaryRendererTitle"},_.t(_.Ya,{text:function(){return W.data().title}})),_.t("div",{class:"ytOfferSummaryRendererSubtitle"},_.t(_.Ya,{text:function(){return W.data().subtitle}})),_.t("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.t(_.bI,{each:function(){var k;
return(k=W.data().featureListData)!=null?k:[]}},function(k){var C;
return _.t("div",{class:"ytOfferSummaryRendererFeatureList"},_.t(_.ka,{icon:(C=k.icon)==null?void 0:C.iconType,className:k.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.t("div",{class:"ytOfferSummaryRendererFeatureListText"},_.t(_.Ya,{text:k.text})))})),_.t("div",{class:"ytOfferSummaryRendererDescription"},_.t(_.Ya,{text:function(){return W.data().description}}))))},"Je");_.Gj(_.GM(function(W){var k={};k=_.Li("ytOfferSummaryFlowStepRendererHost",(k.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,k));return _.t("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:k},_.t("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.t("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.t(_.Ya,{text:function(){return W.data().header}})),_.t("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.t(_.Ya,{text:function(){return W.data().subtitle}}))),_.t("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.t(_.Ex,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(C){return _.t(kM$,{data:C.data,
className:W.flowClassName})}})))},"Ke"),"yt-offer-summary-flow-step-renderer",{props:{data:_.si,
flowClassName:_.si,flowStateEntityKey:_.si,shouldDisableHeaderTopMargin:_.si}});var C0E=_.GM(function(W){var k=W.data;var C=W.className;var n=W.flowStateEntityKey;var N=W.selectionStepStyle;W=_.Pj(function(x){var E=k(),a=n==null?void 0:n();x.target&&(x.stopPropagation(),x=a||"",a=_.HG(_.SY().getState(),x),E=Object.assign({},a,{premiumPurchaseFlowState:{selectedOptionId:E.optionId,primaryButtonOverride:E.primaryButtonOverride}}),_.SY().dispatch(_.Nj("flowStateEntity",x,E)));return!1});
var B=function(){return(n==null?void 0:n())||""},A=_.kj(_.HG,B);
_.Ee(function(){var x=k(),E=B(),a=A();!_.z(a,ju)&&x.defaultSelected&&E!==""&&x.primaryButtonOverride&&TaE(x.optionId||"",E,x.primaryButtonOverride,a)});
var w={};return _.t("ytm-option-item-renderer",{"on:click":W,class:_.Li(C,"ytm-option-item-renderer",(w["ytm-option-item-renderer--lp2-style"]=function(){return(N==null?void 0:N())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.t("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.t("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var x=k(),E=B(),a=A();a=_.z(a,ju);return(a?(a==null?void 0:a.selectedOptionId)||"":x.defaultSelected&&E!==""?(x==null?void 0:x.optionId)||"":"")===k().optionId},
name:("input"+_.Jf(_.cG)).toString()})),_.t("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.t(_.NI,{cond:function(){return k().eyebrowText},
then:function(){return _.t("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.t(_.Ya,{text:function(){return k().eyebrowText}}))}}),_.t("div",{class:"ytm-option-item-renderer__option-item-title"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.t(_.Ya,{text:function(){return k().subtitle}})),_.t("div",{class:"ytm-option-item-renderer__option-item-description"},_.t(_.Ya,{text:function(){return k().description}}))))},
"Le");var nr1=_.GM(function(W){var k=W.data;var C=W.flowClassName;var n=W.flowStateEntityKey;var N=W.selectionStepStyle;return _.t("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.t("div",{class:"yt-option-section-renderer__option-section-header-section"},_.t("div",{class:"yt-option-section-renderer__option-section-header"},_.t(_.Ya,{text:function(){return k().title}}),_.t(_.Ex,{data:function(){return k().titleBadge}},{badgeViewModel:function(B){return _.t(_.ha,
{data:B.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(){return _.t("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.t(_.Ya,{text:function(){return k().subtitle}}))}}),_.t(_.NI,{cond:function(){return k().featureListData},
then:function(B){return _.t("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.t(_.bI,{each:B},function(A){var w;return _.t("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.t(_.ka,{icon:(w=A.icon)==null?void 0:w.iconType,className:A.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"}),_.t("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.t(_.Ya,{text:A.text})))}))}}),_.t(_.bI,{each:function(){return k().sectionDisclaimers||[]}},function(B){return _.t("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.t(_.Ya,{text:B}))})),_.t(_.Ex,{data:function(){return k().optionItems}},{optionItemRenderer:function(B){return _.t("div",{class:"yt-option-section-renderer__option-item"},_.t(C0E,{data:B.data,
className:C,flowStateEntityKey:n,selectionStepStyle:N}))}}),_.t(_.NI,{cond:function(){return k().offerText},
then:function(){return _.t("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.t(_.Ya,{text:function(){return k().offerText}}))}}))},"Me");
nr1.idomCompat=!0;var NH1=_.GM(function(W){var k=W.data;var C=W.flowClassName;var n=W.flowStateEntityKey;W=W.isDesktop;var N=function(){var E;return(E=k().flowStateEntityKey)!=null?E:n==null?void 0:n()},B=function(){return(N==null?void 0:N())||""},A=function(){return k().style},w=_.kj(_.HG,B);
_.Ee(function(){var E=k(),a=B(),X=w();!_.z(X,ju)&&E.noPreselect&&a!==""&&E.defaultButtonOverride&&TaE("default",a,E.defaultButtonOverride,X)});
var x={};return _.t("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Li("ytm-option-selection-flow-step-renderer",(x["ytm-option-selection-flow-step-renderer--desktop"]=W,x["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return k().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},x))},_.t("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"},
_.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.t(_.Ya,{text:function(){return k().header}})),_.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.t(_.Ya,{text:function(){return k().subtitle}}))),_.t(_.Ex,{data:function(){return k().optionItems||[]}},{optionItemRenderer:function(E){return _.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.t(C0E,{data:E.data,
className:C,flowStateEntityKey:N,selectionStepStyle:A}))},
optionSectionRenderer:function(E){return _.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.t(nr1,{data:E.data,flowClassName:C,flowStateEntityKey:N,selectionStepStyle:A}))}}))},"Ne");
NH1.idomCompat=!0;_.Gj(NH1,"yt-option-selection-flow-step-renderer",{props:{data:_.Ik,flowClassName:_.Ik,flowStateEntityKey:_.Ik,isDesktop:_.Ik}});var qkZ,uv$;_.Qk=_.GM(function(W){var k=_.vp(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),C=k.data,n=k.type;W=k.disablePadding;var N=k.disablePrimaryButton,B=k.onClickPrimaryButton,A=function(){return C().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},w=function(){return{disabled:N(),
state:N()?"disabled":"active"}},x=function(){return C().leadingLabel||C().trailingLabel};
k={};return _.t("yt-panel-footer-view-model",{class:_.Li("yt-panel-footer-view-model-wiz",(k["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return C().shouldHideDivider},k["yt-panel-footer-view-model-wiz--disable-padding"]=W,k))},_.t(_.NI,{cond:x,
then:function(){var E={},a={};return _.t("div",{class:_.Li("yt-panel-footer-view-model-wiz__text-row",(E["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var X=C();return!(!X.leadingLabel&&!X.trailingLabel||!X.primaryButton&&!X.secondaryButton)},E))},_.t(_.Ya,{text:function(){return C().leadingLabel},
className:_.Li((a["yt-panel-footer-view-model-wiz--text-padding"]=x,a))}),_.t(_.Ya,{text:function(){return C().trailingLabel}}))}}),_.t(_.NI,{cond:A,
then:function(){var E={};return _.t("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.t("div",{class:_.Li("yt-panel-footer-view-model-wiz__primary-button",(E["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return C().secondaryButton},E))},_.t(_.Ex,{data:function(){return C().primaryButton}},{buttonViewModel:function(a){return _.t(_.zn,{data:a.data,
buttonOverrides:w,onClick:B})}})),_.t(_.Ex,{data:function(){return C().secondaryButton}},{buttonViewModel:_.zn}))}}),_.t(_.NI,{cond:function(){return!A()},
then:function(){var E={},a={},X={};return _.t("div",{class:_.Li("yt-panel-footer-view-model-wiz__button-row",(E["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===n()},E))},_.t("div",{class:_.Li("yt-panel-footer-view-model-wiz__button-row--left-button",(a["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===n()},a["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!C().secondaryButton||0===n()},a["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===n()},a))},_.t(_.Ex,{data:function(){return C().secondaryButton}},{buttonViewModel:_.zn})),_.t("div",{class:_.Li("yt-panel-footer-view-model-wiz__primary-button",(X["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===n()||1===n()},X["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===n()},X))},_.t(_.Ex,{data:function(){return C().primaryButton}},{buttonViewModel:function(d){return _.t(_.zn,{data:d.data,
buttonOverrides:w,onClick:B})}})))}}))},"Oe");
_.Qk.idomCompat=!0;_.YCS=_.GM(function(W){W=_.vp(W,{disablePadding:!1});var k=W.data,C=W.disablePadding;W=_.jAi(function(){return k().formId});
var n=W.onSubmit,N=W.isValid,B=W.isSubmitting;return _.t("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.t(_.Ex,{data:function(){return k().panelFooter}},{panelFooterViewModel:function(A){return _.t(_.Qk,{data:A.data,
onClickPrimaryButton:function(){n()},
disablePrimaryButton:function(){return!N()||B()},
disablePadding:C})}}))},"Pe");_.Gj(_.YCS,"yt-form-footer-view-model",{props:{data:_.Ik,disablePadding:_.Ik}});_.Gj(_.GM(function(W){return _.t("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.t(_.NI,{cond:function(){var k;return(k=W.data())==null?void 0:k.image},
then:function(k){return _.t(_.pi,{data:k,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.t(_.Ya,{text:function(){var k;
return(k=W.data())==null?void 0:k.title}})),_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.t(_.Ya,{text:function(){var k;
return(k=W.data())==null?void 0:k.subtitle}})),_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.t(_.Ex,{data:function(){var k;
return(k=W.data())==null?void 0:k.viewTipsButton}},{buttonViewModel:_.zn}))))},"Qe"),"yt-contributor-zero-state-view-model",{props:{data:_.Ik}});var BH6=_.GM(function(W){var k=_.kj(HYE,_.pq(function(){var C;return(C=W.data())==null?void 0:C.noteFeedEntityKey},""));
return _.t("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.t(_.NI,{cond:function(){var C,n;return(C=W.data())==null?void 0:(n=C.noteData)==null?void 0:n.isPinned},
then:function(){return _.t(_.ka,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.t(_.Ya,{text:function(){var C,n;
return(C=W.data())==null?void 0:(n=C.noteData)==null?void 0:n.headerText}}),_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.t(_.Ya,{text:function(){var C,n;
return(C=W.data())==null?void 0:(n=C.noteData)==null?void 0:n.delimiter}})),_.t(_.Ya,{text:function(){var C,n;
return(C=k())==null?void 0:(n=C.contributorNote)==null?void 0:n.publishedTimeText}})),_.t(_.Ex,{data:function(){var C,n,N,B=(C=W.data())==null?void 0:C.noteData;
C=(n=k())==null?void 0:(N=n.contributorNote)==null?void 0:N.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:B.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:B.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:B.deleteDialogTitle}]},dialogMessages:[{runs:[{text:B.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.deleteActionText}]},command:{performCommentActionEndpoint:{action:C}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.t("div",{class:"ytNoteViewModelNoteContent"},_.t(_.Ya,{text:function(){var C,n;
return(C=k())==null?void 0:(n=C.contributorNote)==null?void 0:n.text}})))},"Re");
BH6.idomCompat=!0;_.Gj(BH6,"yt-note-view-model",{props:{data:_.Ik}});var pQ=_.GM(function(W){var k=_.vp(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),C=k.label,n=k.text,N=k.placeholder,B=k.hint;W=k.rows;var A=k.overflowStyle,w=k.outline,x=k.disabled,E=k.disableNewLines,a=k.characterLimit,X=k.validation,d=k.onInput,V=_.yE();k=_.b(_.h7(function(){return n()}));
var c=k.next().value,M=k.next().value;k=_.b(_.kw(!1,void 0,"fXvinf"));var p=k.next().value,e=k.next().value,u=function(){e(!0)},h=function(){e(!1)};
_.Ee(function(){var Xs=V.value,aI=A(),LA=c();aI==="expand-vertically"&&LA&&rAC(Xs);V.value.addEventListener("focusin",u);V.value.addEventListener("focusout",h)});
_.fy(function(){V.value.removeEventListener("focusin",u);V.value.removeEventListener("focusout",h)});
var L=function(){var Xs;return(Xs=X())==null?void 0:Xs.validate(c())},Bw=function(){return a()&&!L()&&c().length>a().maxChars},P=function(){return!!L()||Bw()};
k=_.Pj(function(Xs){if(!Xs.currentTarget)return!1;Xs=Xs.currentTarget;M(Xs.value);A()==="expand-vertically"&&rAC(Xs);d==null||d(Xs.value);return!0});
var xz=_.Pj(function(Xs){E()&&Xs.key==="Enter"&&Xs.preventDefault();return!1}),Sp=_.Pj(function(){V.value.focus()}),vw=function(){return N()||C()},lw={},G4={},nA={};
return _.t("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.t("div",{class:_.Li("ytStandardsTextareaShapeTextareaContainer",(lw.ytStandardsTextareaShapeTextareaContainerOutline=w,lw.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=x,lw.ytStandardsTextareaShapeTextareaContainerOutlineError=P,lw)),"on:click":Sp},_.t("label",{class:_.Li("ytStandardsTextareaShapeLabel",(G4.ytStandardsTextareaShapeLabelFocused=p,G4.ytStandardsTextareaShapeLabelDisabled=x,G4.ytStandardsTextareaShapeLabelError=
function(){return P()&&!x()},G4.ytStandardsTextareaShapeLabelHidden=function(){return!p()&&!c()&&!!vw()},G4))},C),_.t("div",{class:_.Li("ytStandardsTextareaShapePlaceholder",(nA.ytStandardsTextareaShapePlaceholderVisible=function(){return!p()&&!c()},nA)),
"aria-hidden":"true"},vw),_.t("textarea",{el:V,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:x,placeholder:vw,"on:input":k,"on:keydown":xz},c)),_.t(_.NI,{cond:function(){return B()&&!P()},
then:function(){var Xs={};return _.t("div",{class:_.Li("ytStandardsTextareaShapeHint",(Xs.ytStandardsTextareaShapeHintDisabled=x,Xs))},_.t("div",{class:"ytStandardsTextareaShapeHintHintMessage"},B))}}),_.t(_.NI,{cond:L,
then:function(){return _.t(bq7,{disabled:x},_.t("div",{class:"ytStandardsTextareaShapeErrorMessage"},L))}}),_.t(_.NI,{cond:a,
then:function(Xs){return _.t(_.NI,{cond:Bw,then:function(){return _.t(bq7,{disabled:x},_.t("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Xs().errorMessage}),_.t("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return c().length+"/"+Xs().maxChars}))}})}}))},"Se");
pQ.idomCompat={callbacks:{onInput:!0}};var bq7=_.GM(function(W){var k={};return _.t("div",{class:_.Li("ytStandardsTextareaShapeError",(k.ytStandardsTextareaShapeErrorDisabled=W.disabled,k)),role:"alert"},_.t(_.ka,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"Te");_.AvT=_.GM(function(W){var k=W.data;return _.t("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.t(pQ,{text:W.text,label:function(){var C;return(C=k().contentProperties)==null?void 0:C.labelText},
placeholder:function(){var C;return(C=k().contentProperties)==null?void 0:C.placeholderText},
hint:function(){var C;return(C=k().contentProperties)==null?void 0:C.hintText},
outline:function(){var C;return!((C=k().displayProperties)==null?0:C.hideBorder)},
overflowStyle:function(){var C;return((C=k().displayProperties)==null?0:C.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var C;return(C=k().displayProperties)==null?void 0:C.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var C;return(C=k().displayProperties)==null?void 0:C.rows}}))},"Ue");_.FWY=_.GM(function(W){var k=W.data;return _.t("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.t(pQ,{text:W.text,label:function(){var C;return(C=k().contentProperties)==null?void 0:C.labelText},
placeholder:function(){var C;return(C=k().contentProperties)==null?void 0:C.placeholderText},
hint:function(){var C;return(C=k().contentProperties)==null?void 0:C.hintText},
outline:function(){var C;return!((C=k().displayProperties)==null?0:C.hideBorder)},
overflowStyle:function(){var C;return((C=k().displayProperties)==null?0:C.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var C;return(C=k().displayProperties)==null?void 0:C.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var C;return(C=k().displayProperties)==null?void 0:C.rows}}))},"Ve");var wpA=_.GM(function(W){var k=_.b(_.h7(function(){var vw,lw;return((vw=W.data().structuredContextNoteFormSchema)==null?0:(lw=vw.initialValues)==null?0:lw.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),C=k.next().value,n=k.next().value;
k=_.b(_.h7(function(){W.data();return!1}));
var N=k.next().value,B=k.next().value;k=_.b(_.h7(function(){W.data();return!1}));
var A=k.next().value,w=k.next().value;k=_.b(_.h7(function(){var vw,lw;return((vw=W.data().structuredContextNoteFormSchema)==null?0:(lw=vw.initialValues)==null?0:lw.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var x=k.next().value,E=k.next().value;k=_.b(_.h7(function(){W.data();return!1}));
var a=k.next().value,X=k.next().value;k=_.b(_.h7(function(){var vw,lw;return((vw=W.data().structuredContextNoteFormSchema)==null?0:(lw=vw.initialValues)==null?0:lw.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var d=k.next().value,V=k.next().value;k=_.b(_.h7(function(){W.data();return!1}));
var c=k.next().value,M=k.next().value;k=_.b(_.h7(function(){return!1}));
var p=k.next().value,e=k.next().value;_.Ee(function(){var vw;_.LQB((vw=W.data().structuredContextNoteFormSchema)==null?void 0:vw.id,{isSubmitting:p,onSubmit:function(){e(!0);var lw=N8Y(C(),x(),d(),W.data()),G4=_.f().resolve(_.uI);lw&&G4&&G4.resolveCommand(lw,{commandController:{onSuccess:function(){e(!1)}}})},
isValid:function(){return N()&&!A()&&!a()&&!c()}})});
var u=function(vw){if(vw!==void 0&&(n(vw),!N()&&vw.length>0&&B(!0),N())){var lw=KQB(W.data());if(lw){var G4=lw.minLength;lw=lw.maxLength;G4&&vw.length<G4?w(!0):lw&&vw.length>lw?w(!0):w(!1)}}},h=function(vw){if(vw!==void 0){E(vw);
if(vw.length>0){var lw,G4,nA,Xs,aI=WI$((lw=W.data())==null?void 0:(G4=lw.structuredContextNoteFormSchema)==null?void 0:(nA=G4.fieldSchemas)==null?void 0:(Xs=nA.timestamp)==null?void 0:Xs.validationSchema);if(aI&&(lw=aI.regex)&&!(new RegExp(lw)).test(vw)){X(!0);return}}X(!1)}},L=function(vw){if(vw!==void 0){var lw=vw.split(/[ \n]/).map(function(G4){return G4.trim()});
V(lw);if(vw.length>0)for(vw=_.b(lw),lw=vw.next();!lw.done;lw=vw.next())if(!nQS(lw.value)){M(!0);return}M(!1)}},Bw=function(){return{validate:function(vw){if(N()){var lw=KQB(W.data());
if(lw){var G4=lw.minLength;lw=lw.translations;if(G4&&vw.length<G4)return lw==null?void 0:lw.minLengthErrorMessage}}}}},P=function(){var vw=KQB(W.data()),lw=vw==null?void 0:vw.maxLength,G4;
vw=vw==null?void 0:(G4=vw.translations)==null?void 0:G4.maxLengthErrorMessage;if(lw&&vw)return{maxChars:lw,errorMessage:vw}},xz=function(){return{validate:function(vw){if(vw){var lw,G4,nA,Xs,aI=WI$((lw=W.data())==null?void 0:(G4=lw.structuredContextNoteFormSchema)==null?void 0:(nA=G4.fieldSchemas)==null?void 0:(Xs=nA.timestamp)==null?void 0:Xs.validationSchema);
if(aI&&(lw=aI.regex,aI=aI.translations,lw&&!(new RegExp(lw)).test(vw)))return aI==null?void 0:aI.regexErrorMessage}}}},Sp=function(){return{validate:function(vw){if(vw){var lw,G4,nA,Xs,aI=CWt((lw=W.data())==null?void 0:(G4=lw.structuredContextNoteFormSchema)==null?void 0:(nA=G4.fieldSchemas)==null?void 0:(Xs=nA.sources)==null?void 0:Xs.validationSchema);
if(aI&&(lw=aI.translations,lw==null?0:lw.selectedErrorMessage))for(vw=vw.split(/[ \n]/).map(function(LA){return LA.trim()}),vw=_.b(vw),G4=vw.next();!G4.done;G4=vw.next())if(!nQS(G4.value))return vw=void 0,(vw=lw)==null?void 0:vw.selectedErrorMessage}}}};
return _.t("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.Ex,{data:function(){var vw;return(vw=W.data())==null?void 0:vw.noteContents}},{textFormFieldViewModel:function(vw){return _.t(_.FWY,{data:vw.data,
onInput:u,validation:Bw,characterLimit:P})},
textFieldViewModel:function(vw){return _.t(_.AvT,{data:vw.data,onInput:u,validation:Bw,characterLimit:P})}})),_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.Ex,{data:function(){var vw;
return(vw=W.data())==null?void 0:vw.noteTimestamp}},{textFormFieldViewModel:function(vw){return _.t(_.FWY,{data:vw.data,
onInput:h,validation:xz})},
textFieldViewModel:function(vw){return _.t(_.AvT,{data:vw.data,onInput:h,validation:xz})}})),_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.Ex,{data:function(){var vw;
return(vw=W.data())==null?void 0:vw.noteSources}},{textFormFieldViewModel:function(vw){return _.t(_.FWY,{data:vw.data,
onInput:L,validation:Sp})},
textFieldViewModel:function(vw){return _.t(_.AvT,{data:vw.data,onInput:L,validation:Sp})}})))},"We");
wpA.idomCompat=!0;_.Gj(wpA,"yt-structured-context-note-view-model",{props:{data:_.Ik}});var xs6=_.GM(function(W){var k=_.b(_.h7(function(){var B;if((B=W.controlled)==null?0:B.call(W))return[];var A;return(((A=W.data())==null?void 0:A.chips)||[]).map(function(w){w=_.z(w,_.Iu);if(w==null?0:w.selected)return YrZ(w.chipValue)}).filter(function(w){return w!==void 0})})),C=k.next().value,n=k.next().value,N=function(B){var A=YrZ(B.chipValue);
if(A!==void 0){var w;if((w=W.controlled)==null?0:w.call(W))return void W.controlled().onTap(A);B=C().includes(A)?[].concat(_.J8(C().filter(function(E){return E!==A}))):[].concat(_.J8(C()),[A]);
n(B);var x;if((x=W.uncontrolled)==null?0:x.call(W))W.uncontrolled().onUpdate(B)}};
return _.t("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.t(_.bI,{each:function(){return W.data().chips||[]}},function(B){return _.t("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.t(_.vlx,{data:function(){return _.z(B,_.Iu)},
selected:function(){var A;if(A=_.z(B,_.Iu)){var w=YrZ(A.chipValue);if(w!==void 0){var x;A=((x=W.controlled)==null?0:x.call(W))?W.controlled().selectedValues.includes(w):C().includes(w)}else A=void 0}else A=!1;return A},
callback:N}))}))},"Xe");var lyB=_.GM(function(W){var k=W.data;var C=function(){var w;return((w=k())==null?void 0:w.flowStateKey)||""},n=_.kj(_.HG,C),N=function(){var w;
return(w=_.z(n(),PWA))==null?void 0:w.chips},B=function(w){if(w!==void 0){var x=N()||[];
x=x.find(function(E){return E===w})?x.filter(function(E){return E!==w}):[].concat(_.J8(x),[w]);
x=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.z(n(),PWA),{chips:x})});_.Q3(_.Nj("flowStateEntity",C(),x))}},A=function(){var w;
return _.z((w=k())==null?void 0:w.inputBox,KIA)};
W=_.w2(function(w){var x=A();x=!(x==null?0:x.maxChars)||w.length<=x.maxChars;w=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.z(n(),PWA),{detail:w}),abuseReportFlowState:Object.assign({},_.z(n(),gV),{navigationEnabled:x})});_.Q3(_.Nj("flowStateEntity",C(),w))},150);
return _.t("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.t("div",{class:"ytFeedbackFormViewModelChips"},_.t(_.Ex,{data:function(){var w;return(w=k())==null?void 0:w.chipSelection}},{chipSelectionFormFieldViewModel:function(w){return _.t(xs6,{data:w.data,
controlled:function(){return{selectedValues:N()||[],onTap:B}}})}})),_.t("div",{class:"ytFeedbackFormViewModelInputBox"},_.t(pQ,{text:function(){var w;
return(w=_.z(n(),PWA))==null?void 0:w.detail},
placeholder:function(){var w;return((w=A())==null?void 0:w.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var w=A();if(w&&w.maxChars)return{maxChars:w.maxChars,errorMessage:w.maxCharsExceededErrorMessage||""}},
onInput:W})),_.t("div",{class:"ytFeedbackFormViewModelFooterText"},_.t(_.Ya,{text:function(){return k().footerText}})))},"Ye");
lyB.idomCompat=!0;_.Gj(lyB,"yt-feedback-form-view-model",{props:{data:_.Ik}});var tYt=_.GM(function(W){var k=W.data;var C=function(){return k().flowStateKey||""},n=_.kj(k7Z,C),N=function(){return _.z(n(),gV)},B=function(){if(_.m("enable_gff_accessibility_fix")){var A=!0,w;
if((w=N())==null?0:w.navigationEnabled){var x;_.zj((x=N())==null?void 0:x.navigationCommand);A=!1}w=Object.assign({},n(),{abuseReportFlowState:Object.assign({},N(),{isReportFormDirty:A})});_.Q3(_.Nj("flowStateEntity",C(),w))}else _.zj((A=N())==null?void 0:A.navigationCommand)};
return _.t("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.t("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.t(_.Ex,{data:function(){return k().cancelButton}},{buttonViewModel:function(A){return _.t(_.zn,{data:A.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}}),_.t(_.Ex,{data:function(){var A;
if(k().navButton){var w=Object;var x=w.assign,E=_.z(k().navButton,_.aS),a=((A=N())==null?0:A.navigationEnabled)||_.m("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",X,d;A=_.z((X=N())==null?void 0:X.navigationCommand,_.XZ);X=(d=_.z(A,_.pM))==null?void 0:d.url;w={buttonViewModel:x.call(w,{},E,{state:a,iconName:X?"OPEN_IN_NEW":""})}}else w=void 0;return w}},{buttonViewModel:function(A){return _.t(_.zn,{data:A.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}})))},"Ze");
tYt.idomCompat=!0;_.Gj(tYt,"yt-report-form-bottom-bar-view-model",{props:{data:_.Ik}});var Ert=_.GM(function(W){var k=W.nextStep;return _.t("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.t("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.t(_.ka,{icon:function(){return k().iconName||""}})),_.t("div",null,_.t(_.Ya,{text:function(){return k().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"$e"),ayY=_.GM(function(W){var k=W.data;
var C,n=(C=_.f().resolve(_.qI(_.cj)))==null?void 0:C(),N=_.kj(_.HG,function(){return k().flowStateKey||""});
return _.t("yt-report-form-confirmation-page-view-model",{class:function(){var B;return((B=_.z(N(),gV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.t("div",{class:function(){var B;
return((B=_.z(N(),gV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.t(_.pi,{data:function(){return n&&k().imageDark?k().imageDark:k().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.t("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return k().confirmationHeader}),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.t(_.Ya,{text:function(){return k().confirmationText}})),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.t(_.Ya,{text:function(){return k().lawEnforcementText}})),
_.t("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return k().whatToExpectHeader}),_.t(_.NI,{cond:function(){return k().nextSteps},
then:function(B){return _.t("div",null,_.t(_.bI,{each:B},function(A){return _.t(Ert,{nextStep:A})}))}}),_.t(_.NI,{cond:function(){return k().legalReportText},
then:function(B){return _.t("div",null,_.t(_.Ya,{text:B,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"af");
ayY.idomCompat=!0;_.Gj(ayY,"yt-report-form-confirmation-page-view-model",{props:{data:_.Ik}});var Xp6=_.GM(function(W){var k=W.data;var C=function(){var B;return((B=_.z(k().inputBox,KIA))==null?void 0:B.maxChars)||500},n=function(){return k().flowStateKey||""},N=_.kj(_.HG,n);
W=_.w2(function(B){B=Object.assign({},N(),{flowFormState:{isValid:B.length<=C()},abuseReportFlowState:{userComments:B,navigationEnabled:!(B.length>C()),isReportFormDirty:!0}});_.SY().dispatch(_.d7("flowStateEntity",n(),B))},150);
_.Ee(function(){var B=Object.assign({},N(),{flowFormState:{isValid:!0}});_.SY().dispatch(_.d7("flowStateEntity",n(),B))});
return _.t("yt-report-form-details-page-view-model",{class:function(){var B;return((B=_.z(N(),gV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.t("h1",{class:function(){var B;
return((B=_.z(N(),gV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return k().detailsPageHeader}),_.t("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.t(_.Ya,{text:function(){return k().bodyText}})),_.t("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.t(pQ,{label:function(){var B;
return((B=_.z(k().inputBox,KIA))==null?void 0:B.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var B;return{errorMessage:((B=_.z(k().inputBox,KIA))==null?void 0:B.maxCharsExceededErrorMessage)||"",maxChars:C()}},
onInput:W})))},"bf");
Xp6.idomCompat=!0;_.Gj(Xp6,"yt-report-form-details-page-view-model",{props:{data:_.Ik}});var fy7=_.GM(function(W){var k=W.data;var C=W.selectedKey;var n=W.onSelected;var N=W.groupName;var B=_.t("div",{class:"ytRadioButtonItemViewModelLabel"},_.t("div",null,function(){return k().text}),_.t("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return k().subtext}));
W={};return _.t("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.t(_.i$s,{name:N,checked:function(){return!(C==null||!C()||k().key!==(C==null?void 0:C()))},
onChange:function(A){n==null||n(A.target,k(),N==null?void 0:N())},
labelRenderable:function(){return B},
ariaLabel:function(){return k().subtext?k().text+", "+k().subtext:k().text},
className:_.Li((W.ytRadioButtonItemViewModelSubTitle=function(){return!!k().subtext},W))}))},"cf");_.dsT=_.GM(function(W){var k=W.data;var C=W.onSelected;var n=W.selectedKey;var N=W.groupName;return _.t("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.t("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.t(_.Ex,{data:function(){return k().radioButtons}},{radioButtonItemViewModel:function(B){var A=B.data;
return _.t(fy7,{data:A,onSelected:C,selectedKey:n,groupName:function(){return N!=null?N:A().key}})}})))},"df");var msY=_.GM(function(W){var k=W.data;var C=_.$I(),n=function(){return k().flowStateKey||""},N=_.kj(_.HG,n),B=function(){return _.z(N(),gV)};
_.XM(function(){var A,w;if(((A=B())==null?0:A.isReportFormDirty)&&((w=B())==null||!w.navigationEnabled)&&_.m("enable_gff_accessibility_fix")){var x;if(((x=B())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var E;(E=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||E.scrollIntoView()}else{var a;(a=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||a.scrollIntoView()}}});
return _.t("yt-report-form-reason-select-page-view-model",{class:function(){var A;return((A=B())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.t("h1",{class:function(){var A;
return((A=B())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return k().pageHeader}),_.t("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.t(_.Ya,{text:function(){return k().bodyText}})),_.t("div",{class:function(){var A;
return((A=B())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.t(_.NI,{cond:function(){var A,w;
return((A=B())==null?void 0:A.isReportFormDirty)&&!((w=B())==null?0:w.navigationEnabled)&&_.m("enable_gff_accessibility_fix")},
then:function(){return _.t("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:C},_.t(_.ka,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.t("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return k().emptyReasonSelectErrorMessage}))}}),_.t(_.dsT,{data:function(){return _.z(k().radioButtonGroup,_.BnB)},
onSelected:function(A,w){A=Object.assign({},N(),{abuseReportFlowState:Object.assign({},B(),{reasonKey:w.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:w.command})});_.Q3(_.Nj("flowStateEntity",n(),A))},
selectedKey:function(){var A;return(A=B())==null?void 0:A.reasonKey},
groupName:"report-form-reason-select-page"})))},"ef");
msY.idomCompat=!0;_.Gj(msY,"yt-report-form-reason-select-page-view-model",{props:{data:_.Ik}});var zU6=_.GM(function(W){var k=W.data;var C,n=(C=_.f().resolve(_.qI(_.cj)))==null?void 0:C();return _.t("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.t("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.t(_.pi,{data:function(){return n&&k().imageDark?k().imageDark:k().image},
alt:""})),_.t("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.t("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return k().header}),_.t(_.Ya,{text:function(){return k().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ff");
zU6.idomCompat=!0;_.Gj(zU6,"yt-report-form-sign-in-page-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=function(){var E;return(E=k().textInputPlaceholder)==null?void 0:E.content},n=function(E){E=E.target.value.trim();
var a=k().onUpdateText;a&&_.zj(a,{form:{userQuery:E}});k().userQuery=E},N=_.w2(function(E){n(E)},150),B=_.Pj(function(E){N(E);
return!1}),A=_.Pj(function(E){E.key==="Enter"&&(n(E),(E=k().onNextStepCommand)&&_.zj(E,{}));
return!1}),w=_.yE(),x=function(){if(_.m("web_hide_explore_hub_until_user_navigates_back_to_home")){var E,a,X;
(X=(a=(E=w.value)==null?void 0:E.closest("ytd-flow-step-renderer"))==null?void 0:a.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||X.click()}};
return _.t("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:w},_.t("div",{class:"ytwTalkToRecsTopCornerButton"},_.t(_.Ex,{data:function(){return k().topCornerButton}},{buttonViewModel:_.zn})),_.t("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.t("div",{class:"ytwTalkToRecsTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytwTalkToRecsSubtitle"},_.t(_.Ya,{text:function(){return k().subtitle}})),_.t("div",{class:"ytwTalkToRecsChipsShelf"},_.t(_.Ex,{data:function(){return k().answersShelf}},
{chipsShelfViewModel:function(E){return _.t(_.Z$S,{data:E.data,
callback:x})}})),_.t(_.NI,{cond:function(){return k().showOpenTextInput&&!_.m("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.t("div",{class:"ytwTalkToRecsUserInputBox"},_.t("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:C,value:function(){return k().userQuery},
"on:input":B,"on:keyup":A}))}})))},"gf"),"yt-talk-to-recs-view-model",{props:{data:_.Ik}});var B8u={sources:[{clientResource:{imageName:"CHECK"}}]};_.DsT=_.GM(function(W){var k=_.yE();W=_.vp(W,{error:void 0});var C=W.data,n=W.error,N=W.onSelected;W=_.b(_.h7(function(){return FIA(C())}));
var B=W.next().value,A=W.next().value;toY(C,function(X){A(X);var d,V,c=AQt((d=C().options)==null?void 0:(V=d[X])==null?void 0:V.value,C().type);N==null||N(c);k.value.focus()});
W=_.Pj(function(){if(!C().disabled){var X=C(),d=B(),V=k.value;X.options&&(X=bBE(X.options,d,X.label),_.f().resolve(_.tZ).openSheet({viewModel:X},V))}});
var w=_.zhK(),x=function(){return!!n()},E=function(){return!!C().disabled},a={};
a=_.Li("ytDropdownViewModelDropdownContainer",(a.ytDropdownViewModelDropdownContainerErrorBorder=x,a.ytDropdownViewModelDropdownContainerDisabled=E,a));return _.t("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.t("div",{class:a,"on:click":W,el:k,role:"combobox",tabindex:0,"on:keydown":w,"aria-invalid":x,"aria-disabled":E,"aria-describedby":function(){return x()?"dropdown-view-model-error":void 0}},_.t("div",{class:"ytDropdownViewModelText"},wNB(C,x,B),xl$(C,B)),_.t("div",{class:"ytDropdownViewModelChevronDown"},
_.t(_.ka,{icon:"CHEVRON_DOWN"}))),lrB(C,n))},"hf");_.Gj(_.GM(function(W){var k=W.data;var C=function(N){var B=arE(k());B.videoMetadata||(B.videoMetadata={});B.videoMetadata.sponsorshipsMetadata||(B.videoMetadata.sponsorshipsMetadata={});B.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(N)},n=function(N){var B=arE(k());
B.scheduledRedirectMetadata||(B.scheduledRedirectMetadata={});B.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(N)};
return _.t("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.t("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.t("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.t(_.Ya,{text:function(){return k().title}}),_.t(_.ka,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.t(_.Ya,{text:function(){return k().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.t(_.Ex,{data:function(){return k().tierChoices}},{dropdownViewModel:function(N){return _.t("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.t(_.DsT,{data:N.data,
onSelected:C}))}}),_.t(_.Ex,{data:function(){return k().startTimeChoices}},{dropdownViewModel:function(N){return _.t("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.t(_.DsT,{data:N.data,
onSelected:n}))}}),_.t(_.Ya,{text:function(){return k().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.t("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.t(_.Ex,{data:function(){return k().scheduleButton}},{panelFooterViewModel:_.Qk})))},"jf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;W=W.className===void 0?"":W.className;var C=_.kj(k7Z,function(){return k().flowStateEntityKey||""}),n={};
n=_.Li("ytFlowBottomBarViewModelFlowBottomBarButtons",(n.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},n));
var N={},B=_.Li("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",n,(N.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},N));
N={};var A=_.Li("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",n,(N.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},N));
n={};n=_.Li("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return k().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
n));
return _.t("yt-flow-bottom-bar-view-model",{class:_.Li("ytFlowBottomBarViewModelHost",W)},_.t(_.NI,{cond:function(){var w;return(w=k())==null?void 0:w.textSection},
then:function(w){return _.t("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.t(_.Ya,{text:w}))}}),_.t("div",{class:n},_.t(_.Ex,{data:function(){return k().secondaryButton}},{buttonViewModel:function(w){return _.t(_.zn,{data:w.data,
className:A})}}),_.t(_.Ex,{data:function(){return k().primaryButton}},{buttonViewModel:function(w){return _.t(_.zn,{data:w.data,
className:B,buttonOverrides:function(){var x;return{disabled:!((x=C())==null||!x.primaryButtonDisabled)}}})}})))},"kf"),"yt-flow-bottom-bar-view-model",{props:{data:_.Ik,
className:_.si}});var VYE="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),JvY=function(){var W=_.R.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.hideBottomBar=!1;W.fitContent=!1;return W};
_.D(JvY,_.R);_.Y=JvY.prototype;_.Y.ready=function(){_.m("enable_pdp_icon_prefetch")&&_.gQS(_.f().resolve(_.rR),0,VYE)};
_.Y.focus=function(W){this.topBar?_.ek(this.topBar,W):this.paperDialog.focus(W)};
_.Y.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16657_scroller&&(this.JSC$16657_scroller.dialogElement=this.paperDialog,this.JSC$16657_scroller.attached&&typeof this.JSC$16657_scroller.attached==="function"&&this.JSC$16657_scroller.attached())};
_.Y.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var k;this.bottomBar=!((k=this.data)==null||!k.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.Y.onProgressChanged=function(){var W,k,C=((k=(W=this.data)==null?void 0:W.progress)!=null?k:0)*100;this.progressElement.style.width=C+"%"};
_.Y.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.Y.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(W){return _.m("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.oq.Object.defineProperties(JvY.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var W;return _.m("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.z((W=this.data)==null?void 0:W.content,nSZ)}}});
var vz=JvY;vz.prototype.onProgressChanged=vz.prototype.onProgressChanged;vz.prototype.onDataChanged=vz.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vz.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vz.prototype,"enableScrollingFix",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vz.prototype,"bottomBar",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vz.prototype,"hideBottomBar",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],vz.prototype,"containsExploreHub",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],vz.prototype,"fitContent",void 0);
_.U([_.gi("#progress"),_.O("design:type",HTMLElement)],vz.prototype,"progressElement",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],vz.prototype,"JSC$16657_scroller",void 0);_.U([_.gi("ytd-flow-top-bar-renderer"),_.O("design:type",HTMLElement)],vz.prototype,"topBar",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vz.prototype,"onDataChanged",null);
_.U([_.Hl("data.progress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vz.prototype,"onProgressChanged",null);vz=_.U([_.T({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],vz);
_.q(vz,"ytd-flow-step-renderer",function(){if($yi!==void 0)return $yi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $yi=W},{mode:1});var cv6=function(W){this.resolveCommand=W;this.steps={}},IyS=function(W,k){k=_.b(k||[]);
for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=Object.values(C)[0],N=void 0;if((N=n)==null?0:N.stepId)W.steps[n.stepId]=C}},QKE=function(W,k){var C,n,N,B,A;
return _.F(function(w){if((C=W.state)==null||!C.currentStepId)return w.return(void 0);n=SC7(W);if(!n)return w.return(MY$(W));if(N=_.z(n,_.COT)){var x;((x=N.screenLoggingData)==null?0:x.screenVeType)&&_.jC(_.kf(),N.screenLoggingData.screenVeType);((B=N)==null?0:B.onStepStartCommand)&&W.resolveCommand((A=N)==null?void 0:A.onStepStartCommand,{})}if(N&&k){x=N;var E,a,X,d;((E=k.flowLoggingData)==null?0:E.eventNamespace)&&((a=x.flowEventData)==null?0:a.eventType)&&((X=x.flowEventData)==null?0:X.eventMetadata)&&
((d=k.flowLoggingData)==null?0:d.flowType)&&(E=_.P3(k.flowLoggingData.eventNamespace,x.flowEventData.eventType,x.flowEventData.eventMetadata),_.K5(_.he(),E,k.flowLoggingData.flowType));k.steps&&!k.steps.includes(n)&&k.steps.push(n)}return w.return(n)})};
cv6.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
cv6.prototype.handleUpdateFlowCommand=function(W){W.steps&&IyS(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(SC7(this)),this.awaitFlowContinuation=void 0)};
cv6.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var MY$=function(W){return _.F(function(k){return W.getFlowContinuationCommand?k.return(new Promise(function(C){W.awaitFlowContinuation=C;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):k.return(Promise.resolve(void 0))})},SC7=function(W){var k;
if((k=W.state)!=null&&k.currentStepId)return W.steps[W.state.currentStepId]};var ppi=function(){var W=_.R.apply(this,arguments)||this;W.flowState=new cv6(function(k,C){C=C===void 0?{}:C;_.gH.instance.resolveCommand(k,{form:{form:C,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.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 W};
_.D(ppi,_.R);_.Y=ppi.prototype;_.Y.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.Y.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"}}}};
_.Y.focus=function(W){var k=this;_.zM(function(){var C=_.S(k.hostElement).querySelector("ytd-flow-step-renderer");C.topBar?C.focus(W):k.topBar&&_.ek(k.topBar,W)},1)};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.Y.computeTopBarHidden=function(W){var k;return!((k=_.z(W,_.COT))==null||!k.topBarOverride)};
_.Y.dataChanged=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1){((k=W.data)==null?0:k.steps)&&IyS(W.flowState,W.data.steps);if((C=W.data)==null?0:C.flowContinuationCommand){var N=W.flowState,B=W.data.flowContinuationCommand;B&&(N.getFlowContinuationCommand=B)}return _.l(n,QKE(W.flowState,W.data),2)}W.currentFlowStep=n.yieldResult;_.ab(n)})};
_.Y.flowChanged=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1){if(!W.flow)return C.return();W.flowState.state=W.flow;W.isLoading=!0;return _.l(C,QKE(W.flowState,W.data),2)}k=C.yieldResult;if(!k||W.flow.isLoading)return C.return();W.currentFlowStep=k;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();_.ab(C)})};
_.Y.autofocusAndRefit=function(){var W=this,k=_.f().resolve(_.qI(_.Ay)),C=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),n=document.querySelector("yt-report-form-confirmation-page-view-model"),N=document.querySelector("yt-report-form-details-page-view-model"),B=document.querySelector("yt-report-form-reason-select-page-view-model"),A=document.querySelector("yt-contributor-zero-state-view-model"),
w=document.querySelector("yt-structured-context-note-view-model"),x=document.querySelector("yt-note-view-model");(!C&&k&&k.isKeyBoardInUse()||n||!C&&N||!C&&B||A||w||x)&&_.sL(this.hostElement);_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit")})};
_.Y.handleUpdateFlowCommand=function(W){this.data&&(W=_.z(W,koZ),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.Y.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.z(W,hdA),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.d7("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.Y.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.z(W,W77),W.targetId===this.data.targetId)){var k=[].concat(_.J8(this.flow.stepIdStack||[]));k.length>1?(k.pop(),this.ytdReduxBehavior.dispatch(_.d7("flowStateEntity",this.flow.key,{currentStepId:k[k.length-1],stepIdStack:k}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.Y.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.z(W,b57),W.targetId===this.data.targetId&&W.endpointCommand)){var k=_.z(this.flow,Ae7);k&&_.z(W.endpointCommand,_.vDZ)&&(_.z(W.endpointCommand,_.vDZ).feedbackData=k.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.Y.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.d7("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var ej=ppi;ej.prototype.flowChanged=ej.prototype.flowChanged;ej.prototype.dataChanged=ej.prototype.dataChanged;ej.prototype.onPopupClosed=ej.prototype.onPopupClosed;_.U([_.v(_.fk),_.O("design:type",Object)],ej.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ej.prototype,"initialState",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ej.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Object)],ej.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],ej.prototype,"currentFlowStep",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ej.prototype,"onPopupClosed",null);_.U([_.Z({selectorArgs:["data.flowStateEntityKey"],selector:k7Z}),_.O("design:type",Object)],ej.prototype,"flow",void 0);_.U([_.gi("ytd-flow-top-bar-renderer"),_.O("design:type",HTMLElement)],ej.prototype,"topBar",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],ej.prototype,"dataChanged",null);_.U([_.Cq("flow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],ej.prototype,"flowChanged",null);ej=_.U([_.T({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ej);
_.vri=_.u0()(ej,"ytd-flow-root-renderer",function(){if(yet!==void 0)return yet;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return yet=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var eU7;var H7=null;_.Gj(_.GM(function(W){return _.t("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.t("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.t(_.Ya,{text:function(){return W.data().text}}),_.t("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"lf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Ik}});var sKt=_.GM(function(W){var k=W.playerControlsProps;var C=W.isShortsPage;return _.t("yt-bigboard",null,_.t(_.NI,{cond:function(){return k().isDragging},
then:function(){return _.t("div",{class:"ytBigboardStoryboardHost"},_.t(_.p$7,{progressBarProps:k,isShortsPage:C}))}}))},"mf");
sKt.idomCompat=!0;_.sT={ACCOUNT_LABEL:rV("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:rV("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:rV("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:rV("AD_BADGE_HINT"),AD_BADGE_TEXT:rV("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:rV("ALL_CHANNELS_LABEL"),AMBIENT_MODE:rV("AMBIENT_MODE"),AMBIENT_MODE_OFF:rV("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:rV("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:rV("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:rV("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:rV("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:rV("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:rV("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:rV("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:rV("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:rV("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:rV("AUTOPLAY_UP_NEXT_IN"),BACK:rV("BACK"),CANCEL:rV("CANCEL"),CHANNEL_SWITCHER_LABEL:rV("CHANNEL_SWITCHER_LABEL"),CLOSE:rV("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:rV("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:rV("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:rV("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:rV("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:rV("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:rV("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:rV("COMMENT_MODAL_CONTENT"),CONFIRM_OK:rV("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:rV("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:rV("COPIED_TO_CLIPBOARD"),COPY:rV("COPY"),COPY_DEBUG_INFO:rV("COPY_DEBUG_INFO"),COPY_EMBED_CODE:rV("COPY_EMBED_CODE"),COPY_LINK_LABEL:rV("COPY_LINK_LABEL"),
COPY_VIDEO_URL:rV("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:rV("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:rV("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:rV("DELETE_FROM_DOWNLOADS"),DIALOG:rV("DIALOG"),DONE:rV("DONE"),DOWNLOAD:rV("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:rV("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:rV("FLAG_CONFIRM"),FLAG_CONTENT:rV("FLAG_CONTENT"),FLAG_LABEL:rV("FLAG_LABEL"),FLAG_TITLE:rV("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:rV("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:rV("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:rV("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:rV("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:rV("HIDE_SEARCH_FILTERS_LABEL"),HOME:rV("HOME","Home"),INVALID_RESPONSE_RECEIVED:rV("INVALID_RESPONSE_RECEIVED"),LIBRARY:rV("LIBRARY","Library"),LISTENING:rV("LISTENING"),LOADING:rV("LOADING"),LONG_PRESS_MIC_TO_SPEAK:rV("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:rV("LOOP"),MENU_DESKTOP:rV("MENU_DESKTOP"),MENU_EXIT:rV("MENU_EXIT"),
MENU_FEEDBACK:rV("MENU_FEEDBACK"),MENU_HELP:rV("MENU_HELP"),MENU_IMPRESSUM:rV("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:rV("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:rV("MENU_SETTINGS"),MENU_SIGN_IN:rV("MENU_SIGN_IN"),MENU_TITLE:rV("MENU_TITLE"),MENU_YOUR_DATA:rV("MENU_YOUR_DATA"),MORE_INFO:rV("MORE_INFO"),MORE_OPTIONS:rV("MORE_OPTIONS"),MUTE_VOLUME:rV("MUTE_VOLUME"),NEW_PLAYLIST:rV("NEW_PLAYLIST"),NEXT_VIDEO:rV("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:rV("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:rV("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:rV("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:rV("NOT_FOUND_TITLE"),NO_DOWNLOADS:rV("NO_DOWNLOADS"),NO_MIC_INPUT:rV("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:rV("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:rV("OOPS_MESSAGE"),OPEN_APP:rV("OPEN_APP"),OPEN_YOUTUBE:rV("OPEN_YOUTUBE"),PAUSE:rV("PAUSE"),PLAY:rV("PLAY"),PLAYER_CAPTION:rV("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:rV("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:rV("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:rV("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:rV("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:rV("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:rV("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:rV("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:rV("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:rV("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:rV("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:rV("PLAYER_MINIMIZE"),PLAYER_NEXT:rV("PLAYER_NEXT"),PLAYER_PAUSE:rV("PLAYER_PAUSE"),PLAYER_PLAY:rV("PLAYER_PLAY"),
PLAYER_PREVIOUS:rV("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:rV("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:rV("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:rV("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:rV("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:rV("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:rV("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:rV("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:rV("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:rV("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:rV("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:rV("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:rV("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:rV("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:rV("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:rV("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:rV("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:rV("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:rV("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:rV("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:rV("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:rV("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:rV("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:rV("PLAY_ALL"),PLEASE_FIX_ERRORS:rV("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:rV("PREVIOUS_VIDEO"),PRIVACY_POLICY:rV("PRIVACY_POLICY"),RELOAD:rV("RELOAD"),REQUIRED_LABEL:rV("REQUIRED_LABEL"),SAVE_PLAYLIST:rV("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:rV("SCRUB_SLIDE_USER_EDU"),SEARCH:rV("SEARCH","Search"),SEARCH_APPEND_LABEL:rV("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:rV("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:rV("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:rV("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST"),SEARCH_ENTITY_SUGGESTION_MOVIE:rV("SEARCH_ENTITY_SUGGESTION_MOVIE"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:rV("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:rV("SEARCH_ENTITY_SUGGESTION_TV_SHOW"),SEARCH_FILTERS_LABEL:rV("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:rV("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:rV("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:rV("SEEK_SLIDER"),
SETTINGS_LABEL:rV("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:rV("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:rV("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:rV("SHOW_LESS"),SHOW_MORE:rV("SHOW_MORE"),SHOW_PLAYER_CONTROLS:rV("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:rV("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:rV("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:rV("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:rV("SIGN_IN_ON_WEB"),STABLE_VOLUME:rV("STABLE_VOLUME"),STABLE_VOLUME_OFF:rV("STABLE_VOLUME_OFF"),
STABLE_VOLUME_ON:rV("STABLE_VOLUME_ON"),STATS_FOR_NERDS:rV("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:rV("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:rV("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:rV("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:rV("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:rV("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:rV("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:rV("TIMESTAMP_SECONDS"),TOGGLE_OFF:rV("TOGGLE_OFF"),TOGGLE_ON:rV("TOGGLE_ON"),TRENDING:rV("TRENDING"),
TROUBLESHOOT_PLAYBACK_ISSUE:rV("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:rV("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:rV("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:rV("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:rV("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:rV("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:rV("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:rV("VIDEO_LINK_LABEL")};var GM7=_.GM(function(W){var k=W.playerApi;W=_.yE(function(N){u3(N,36843)});
var C=rV("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),n=_.Pj(function(){UP(36843);k&&k().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.t("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.t("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:C,"aria-label":C,"on:click":n},_.t("span",null,_.t(_.ka,{icon:"FAST_FORWARD"}))))},"nf");var yvi=_.GM(function(W){var k=W.appApi;W=_.yE(function(N){u3(N,62946)});
var C=rV("OPEN_IN_MINIPLAYER"),n=_.Pj(function(){UP(62946);var N,B;(B=(N=k()).openInMiniplayer)==null||B.call(N);return!1});
return _.t("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.t("button",{el:W,class:"ytMiniplayerButtonButton",title:C,"aria-label":C,"on:click":n},_.t(_.ka,{icon:"PICTURE_IN_PICTURE",active:!1})))},"of");var $s1=_.GM(function(W){var k=W.playerApi;W=_.yE(function(A){u3(A,142812)});
var C=_.b(_.kw(!1,void 0,"I3VCyb")),n=C.next().value,N=C.next().value;C=function(){return rV("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(n()?1:2)})};
var B=_.Pj(function(){UP(142812);if(k){var A=k(),w=n();A.setPlaybackRate(w?1:2);N(!n())}return!1});
return _.t("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.t("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:C,"aria-label":C,"on:click":B},_.t("span",null,_.t(_.ka,{icon:function(){return n()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"pf");var Zqi=_.GM(function(W){var k=W.title;var C=W.ariaLabel;var n=W.icon;var N=W.command;var B=W.veType;W=_.yE(function(w){B&&u3(w,B())});
var A=_.Pj(function(){B&&UP(B());N&&_.f().resolve(_.uI).resolveCommand(N())});
return _.t("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.t("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:k,"aria-label":C,"on:click":A},_.t(_.ka,{icon:n})))},"qf");var RUt=["en-CA","en","es-MX","fr-CA"];var orZ=_.GM(function(W){var k=_.vp(W,{isOverlay:!1}),C=k.captionIconType,n=k.onClick;W=k.ariaLabel;var N=k.ariaPressed,B=k.isOverlay;k=_.yE(function(x){u3(x,127299)});
var A=_.Pj(function(x){UP(127299);n==null||n(x);return!1}),w={};
return _.t("ytm-closed-captioning-button",{class:_.Li("ytmClosedCaptioningButtonHost",(w.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return C()===-1&&B()},w.ytmClosedCaptioningButtonIconDisabled=function(){return C()===-1&&!B()},w))},_.t("button",{el:k,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":N,"on:click":A},_.t(_.ka,{icon:function(){var x="";var E=_.tQ().get("hl");E=!E||RUt.includes(E)?"CLOSED_CAPTION":"SUBTITLES";var a=C();switch(a){case -1:case 0:x=E;break;case 1:x=E+"_FILLED";break;default:_.oI(a)}return x}})))},"rf");
orZ.idomCompat={callbacks:{onClick:!0}};var qQ="";var iq7=_.GM(function(W){var k=W.playerControlsProps,C=W.onClickFn;W=_.BH(function(){var B=k(),A=-1;B.captionsAvailable&&(A=B.captionsEnabled?1:0);return A},void 0,"WecR8e");
var n=_.BH(function(){var B=k();return B.captionsAvailable?_.w8(B.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.w8("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),N=_.BH(function(){var B=k();
B=B.captionsAvailable?B.captionsEnabled:void 0;return B},void 0,"Q17ly");
return _.t("yt-closed-captions-toggle-button",null,_.t(orZ,{captionIconType:W,ariaLabel:n,ariaPressed:N,onClick:function(B){var A=k();if(A.captionsAvailable){var w=A.playerApi;if(w){var x=A.playerApi;if(x){var E=qQ;if(E){x=x.getOption("captions","track");var a;qQ=(a=x?x.displayName:null)!=null?a:E}else x.getOptions("captions")?(E=NaC(x),qQ=E.length?(a=Yki(E))?a.displayName:E[0].displayName:""):qQ=""}Bau(w);_.m("mweb_disable_set_state_captions_killswitch")&&A.setState({captionsEnabled:!A.captionsEnabled})}}var X,
d;(d=(X=A.appApi).showCaptionsToggleToast)==null||d.call(X,A);C==null||C(B)},
isOverlay:!0}))},"sf");var THA=_.GM(function(W){var k=W.data;return _.t("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.t(_.qj,{data:function(){return{type:16,text:_.fOz(k().label)}}}))},"tf");var qCZ=_.GM(function(W){var k=_.Li("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.t("animated-seek-arrows",{class:_.Li("ytPlayerControlsAnimatedSeekArrowsHost")},_.t("span",{class:k}),_.t("span",{class:k}),_.t("span",{class:k}))},"uf");
qCZ.idomCompat=!0;var urT=_.GM(function(){var W=_.w8("PLAYER_SECONDS",{seconds_placeholder:"30"}),k=_.b(_.kw(!1,void 0,"Yj8msb")),C=k.next().value,n=k.next().value,N=_.b(_.kw(!1,void 0,"r9Z50e"));k=N.next().value;var B=N.next().value;N={};var A=_.Li("jumpForwardOverlayOverlay",(N.jumpForwardOverlayOverlayHidden=k,N));_.Ee(function(){var w=null,x=null,E=function(){w!==null&&_.D7().cancelJob(w);x!==null&&_.D7().cancelJob(x);B(!0);n(!0);_.oE(_.D7(),function(){B(!1)});
w=_.oE(_.D7(),function(){B(!0);x=_.oE(_.D7(),function(){n(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",E);_.fy(function(){window.removeEventListener("jump-forward-clicked",E)})});
return _.t("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.t(_.NI,{cond:C,then:function(){return _.t("div",{class:A},_.t(qCZ,{direction:1,size:"large"}),_.t("div",null,W))}}))},"vf");var QzA=_.sT.MUTE_VOLUME,Mo$=_.sT.UNMUTE_VOLUME,Usi=_.GM(function(W){var k=W.muteIconType;var C=W.onClick;var n=W.useOutlineIcon;W=_.yE(function(A){u3(A,28662)});
var N=function(){return pN7(k(),n==null?void 0:n()).ariaLabel},B=_.Pj(function(A){UP(28662);
C==null||C(A);return!1});
return _.t("ytm-mute-button",{class:"ytmMuteButtonHost"},_.t("button",{el:W,class:"ytmMuteButtonButton",title:N,"aria-label":N,"on:click":B},_.t("span",null,_.t(_.ka,{icon:function(){return pN7(k(),n==null?void 0:n()).iconName}}))))},"wf");var OqE=_.GM(function(W){var k=W.volumeProps;var C=W.onClickFn;var n=W.useOutlineIcon;return _.t("yt-mute-toggle-button",null,_.t(Usi,{muteIconType:function(){var N=k(),B=!_.m("mweb_treat_zero_volume_as_muted_killswitch")&&N.volume===0;return N.volumeMuted||B?0:1},
onClick:function(N){var B=k().playerApi;B&&(B.isMuted()?B.unMute():B.mute(!1));C==null||C(N)},
useOutlineIcon:function(){return!(n==null||!n())}}))},"xf");
OqE.idomCompat=!0;var LWB=_.GM(function(W){var k=W.data;var C=_.yE();W=_.Pj(function(){C.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.t("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:C,"on:animationend":W},_.t(_.NE,{command:function(){return k().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.t(_.NI,{cond:function(){var n;return(n=k().icon)==null?void 0:n.iconType},
then:function(){return _.t("span",null,_.t(_.ka,{icon:function(){var n;return(n=k().icon)==null?void 0:n.iconType}}))}}),_.t("div",{class:"ytmPaidContentOverlayText"},_.t(_.Ya,{text:function(){return k().text}})),_.t(_.NI,{cond:function(){return k().navigationEndpoint},
then:function(){return _.t(_.ka,{icon:"CHEVRON_RIGHT"})}})))},"yf");
LWB.idomCompat=!0;var vQ1=[].concat(_.J8([{register:function(W){var k=T86(W),C;(C=W().playerApi)==null||C.addEventListener("onVolumeChange",k);return function(){}}},
{register:function(W){var k=qrS(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",k);W==null||W.addEventListener("captionssettingschanged",k);W==null||W.addEventListener("onCaptionsTrackListChanged",k);return function(){}}},
{register:function(W){if(!_.m("mweb_screenreader_accessible_player"))return function(){};
var k=ul1(W),C=document.querySelector("video");C==null||C.addEventListener("touchend",k);return function(){C==null||C.removeEventListener("touchend",k)}}},
{register:function(W){if(!_.m("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var k=ul1(W),C=document.querySelector("video");C==null||C.addEventListener("focus",k);return function(){C==null||C.removeEventListener("focus",k)}}}]),[{register:function(W){var k=ZBT(W),C;
(C=W().playerApi)==null||C.addEventListener("onStateChange",k);return function(){}}},
{register:function(W){var k=RdC(W),C;(C=W().playerApi)==null||C.addEventListener("onPlaybackRateChange",k);return function(){}}},
{register:function(W){var k=oQB(W),C;(C=W().playerApi)==null||C.addEventListener("onVideoDataChange",k);return function(){}}},
{register:function(W){var k=iBi(W),C,n;(C=W())==null||(n=C.playerApi)==null||n.addEventListener("onVideoProgress",k);return function(){}}}]);var jKA=_.GM(function(W){var k=W.data;var C=function(){return _.w8("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+k().playbackRate})};
return _.t(_.NI,{cond:function(){return k().playbackRate&&k().playbackRate!==1},
then:function(){return _.t("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.t("div",{class:"ytPlaybackRateOverlayOverlay"},_.t(qCZ,{direction:1,size:"small"}),_.t("div",{class:"ytPlaybackRateOverlayLabel"},C)))}})},"zf");var Hq6=_.GM(function(W){var k=W.data;return _.t("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.t(_.NI,{cond:function(){var C,n=(C=k())==null?void 0:C.playerResponse,N;return n==null?void 0:(N=n.paidContentOverlay)==null?void 0:N.paidContentOverlayRenderer},
then:function(C){return _.t(LWB,{data:C})}}))},"Bf"),rv6=_.GM(function(W){var k=W.props;
var C=W.data;var n=W.options;var N=function(){var E,a,X,d;return(E=C())==null?void 0:(a=E.playerResponse)==null?void 0:(X=a.playerConfig)==null?void 0:(d=X.inlinePlaybackConfig)==null?void 0:d.showAudioControls},B=function(){var E,a;
if(N()&&((E=n())==null?void 0:(a=E.additionalButton)==null?void 0:a.button)!==void 0){var X,d,V;E=(X=C())==null?void 0:(d=X.playerApi)==null?void 0:(V=d.getSize())==null?void 0:V.height;if(!(E===void 0||E<184)){var c,M;return(c=n())==null?void 0:(M=c.additionalButton)==null?void 0:M.button}}},A=function(){var E,a;
return(E=n())==null?void 0:(a=E.additionalButton)==null?void 0:a.thumbnailOverlayButtonRenderers},w=function(){var E,a;
return(E=n())==null?void 0:(a=E.additionalButton)==null?void 0:a.thumbnailOverlayButtonViewModels},x=function(){var E=[_.t(OqE,{volumeProps:k}),
_.t(iq7,{playerControlsProps:k})];B()===1&&E.push(_.t(GM7,{playerApi:function(){return k().playerApi}}));
B()===2&&E.push(_.t(yvi,{appApi:function(){return k().appApi}}));
B()===3&&E.push(_.t($s1,{playerApi:function(){return k().playerApi}}));
var a=A();if(B()===4&&a){a=_.b(a);for(var X=a.next(),d={};!X.done;d={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$562:void 0},X=a.next()){X=X.value;d.tooltip$jscomp$2=X.tooltip;var V=void 0,c=void 0;d.ariaLabel$jscomp$20=((V=X.accessibility)==null?void 0:(c=V.accessibilityData)==null?void 0:c.label)||d.tooltip$jscomp$2;V=void 0;d.icon$jscomp$53=(V=X.icon)==null?void 0:V.iconType;d.command$jscomp$562=X.command;d.tooltip$jscomp$2&&d.ariaLabel$jscomp$20&&d.icon$jscomp$53&&
E.push(_.t(Zqi,{title:function(M){return function(){return M.tooltip$jscomp$2}}(d),
ariaLabel:function(M){return function(){return M.ariaLabel$jscomp$20}}(d),
icon:function(M){return function(){return M.icon$jscomp$53}}(d),
command:function(M){return function(){return M.command$jscomp$562}}(d)}))}}a=w();
if(B()===4&&a)for(a=_.b(a),X=a.next(),d={};!X.done;d={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$563:void 0},X=a.next())X=X.value,d.tooltip$jscomp$3=X.title,d.ariaLabel$jscomp$21=X.accessibilityText||d.tooltip$jscomp$3,d.icon$jscomp$54=X.iconName,d.command$jscomp$563=_.fi(X.onTap),d.tooltip$jscomp$3&&d.ariaLabel$jscomp$21&&d.icon$jscomp$54&&E.push(_.t(Zqi,{title:function(M){return function(){return M.tooltip$jscomp$3}}(d),
ariaLabel:function(M){return function(){return M.ariaLabel$jscomp$21}}(d),
icon:function(M){return function(){return M.icon$jscomp$54}}(d),
command:function(M){return function(){return M.command$jscomp$563}}(d)}));
return E};
return _.t(_.NI,{cond:N,then:function(){return _.t("div",{class:"ytInlinePlayerControlsTopRightControls"},_.t(_.bI,{each:x},function(E){return _.t("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.t("div",{class:"ytInlinePlayerControlsButtonIcon"},E))}))}})},"Cf"),KW7=_.GM(function(W){var k=W.props;
var C=W.data;var n=W.options;W={};W=_.Li("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var N;return OB$(C(),n())&&((N=n())==null?void 0:N.insetProgressBar)&&(k().isHovering||k().isDragging)},W));
return _.t("div",{class:W},_.t(gr1,{data:C}),_.t(_.NI,{cond:function(){var N;return!((N=n())==null?0:N.hideTimeDisplay)},
then:function(){return _.t(P07,{props:k})}}))},"Df"),gr1=_.GM(function(W){var k=W.data;
return _.t(_.Ex,{data:function(){var C;return Sri((C=k())==null?void 0:C.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:THA})},"Ef"),P07=_.GM(function(W){var k=W.props;
return _.t(_.NI,{cond:function(){return k().isLive},
then:function(){return _.t(hUu,null)},
else:function(){return _.t(W8Z,{props:k})}})},"Ff"),W8Z=_.GM(function(W){var k=W.props;
return _.t("div",{class:_.Li("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.sT.PLAYER_TIME_ELAPSED+" "+_.OzK(k().playedTime)}},_.t(_.qj,{data:function(){return{type:16,
text:_.OzK(k().videoDuration-k().playedTime)}}}))},"Gf"),hUu=_.GM(function(){return _.t("div",{class:_.Li("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.t(_.qj,{data:{type:17,
text:_.sT.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Hf"),kj$=_.GM(function(W){var k=W.props;
var C=W.data;var n=W.options;return _.t(_.$q7,{progressBarProps:k,config:function(){var N,B=_.z((N=C())==null?void 0:N.multiMarkersPlayerBar,_.nDY),A;N=((A=n())==null?0:A.insetProgressBar)?2:1;var w;A=(w=n())==null?void 0:w.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:N,chapterData:B,isInlinePlayback:!0,doSeekOnClick:A,playheadDotBehavior:A?1:0}}})},"If");_.Gj(_.GM(function(W){var k=W.data;var C=W.appApi;var n=W.options;var N=$lT(k,Ul1(C));W={};C={};return _.t("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.t("div",{class:_.Li("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return N().isHovering},W))}),_.t(urT,null),_.t(jKA,{data:N}),_.t(Hq6,{data:k}),_.t(sKt,{playerControlsProps:N,
isShortsPage:!1}),_.t("div",{class:_.Li((C.ytInlinePlayerControlsControlsHidden=function(){return N().isDragging},C))},_.t(rv6,{props:N,
data:k,options:n}),_.t(KW7,{props:N,data:k,options:n})),_.t(_.NI,{cond:function(){return OB$(k(),n())},
then:function(){return _.t(kj$,{props:N,data:k,options:n})}}))},"Af"),"yt-inline-player-controls",{props:{data:_.Ik,
appApi:_.si,options:_.Ik}});var GO,C67=function(){var W=_.R.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$16711_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$16711_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$16711_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.D(C67,_.R);_.Y=C67.prototype;
_.Y.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.m("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"}}}};
_.Y.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16711_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16711_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16711_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16711_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.LO(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.Y.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.Y.onPageTypeChange=function(){this.deactivate()};
_.Y.onWindowResized=function(){this.deactivate()};
_.Y.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.Y.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var k;(k=this.player)==null||k.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.Y.currentPageAllowed=function(){return!this.isWatchPage};
_.Y.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var W=this.positionData,k=W.initialTopPosition,C=W.initialHorizontalPosition;_.Op(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-C+"px","--ytd-video-preview-translate-top":W.finalTopPosition-k+"px","--ytd-video-preview-original-top-position":k+"px","--ytd-video-preview-original-horizontal-position":C+"px",
"--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.Y.handleOpenVideoPreviewAction=function(W){var k=this,C;return _.F(function(n){if(!k.currentPageAllowed())return n.return(0);k.opts=W;return(C=k.alignVideoPreviewForAnimation(W.thumbnail))?n.return(k.activate()):n.return(0)})};
_.Y.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.Y.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.aM.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.Y.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.Y.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",GO.JSC$16710_DEFAULT_CLICK_LOCATION_BEHAVIOR,GO.JSC$16710_CLICK_LOCATION_ID_MAP)};
_.Y.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var k;return(k=this.opts)!=null&&k.mediaRenderer?!_.Ty(this.opts.mediaRenderer).contains(W):!0};
_.Y.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.Y.onPlaybackStart=function(){var W=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16711_preventProgressSaveTimer=
_.oE(_.aM,function(){W.resetPreventProgressSaveTimer()},1E4);
var k;if((k=this.opts)==null?0:k.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.oE(_.aM,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var C;this.player.setGlobalCrop(((C=this.opts)==null?0:C.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.Y.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var k;return(k=this.opts)==null?void 0:k.roundedCornersSize}var C;if((C=this.opts)==null?0:C.enableRounding){var n;if(((n=this.opts)==null?void 0:n.thumbnailSize)==="small")return 1;var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="medium")return 2;var B;if(((B=this.opts)==null?void 0:B.thumbnailSize)==="large")return 3}return _.m("web_imp_inset_progress_bar")?3:0};
_.Y.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.Y.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.Y.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.Y.activate=function(){var W=this,k,C,n,N,B,A,w,x;return _.F(function(E){switch(E.nextAddress){case 1:if(!W.currentPageAllowed())return E.return(0);C=(k=W.videoPreviewData)==null?void 0:k.inlinePlaybackEndpoint;n=_.cJ.instance;if(!C||!n)return E.return(0);W.playbackIntentTriggered=!0;((N=W.opts)==null?0:N.mediaRenderer)&&IrC(W.opts.mediaRenderer,function(){W.deactivate()});
_.ZR(W,function(){W.revealPreviewUi()});
B={};_.m("enable_unknown_lact_fix_on_html5")&&(_.f().resolve(_.xa),B.lact=_.ie());W.videoPreviewFetchRequest=mlu(n,W.getInlinePlaybackRequestData(W.videoPreviewData),B);_.F0(E,2);return _.l(E,W.videoPreviewFetchRequest,4);case 4:A=E.yieldResult;if(((w=A)==null?void 0:(x=w.playabilityStatus)==null?void 0:x.status)==="OK")return E.return(W.handlePlayerResponse(A));throw Error("Ij");case 2:_.EF(E),W.deactivate();case 3:return E.return(1)}})};
_.Y.getInlinePlaybackRequestData=function(W){var k,C=_.m("web_imp_player_mute_params")?((k=this.opts)==null?void 0:k.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:C}};
_.Y.handlePlayerResponse=function(W){var k=this,C,n,N,B,A,w,x,E,a,X;return _.F(function(d){if(d.nextAddress==1){C=k.getInlinePlaybackVideoId();if(!(((n=W)==null?0:(N=n.videoDetails)==null?0:N.videoId)&&k.currentPageAllowed()&&k.playbackIntentTriggered&&k.opts&&C))return k.deactivate(),d.return(0);if(W.videoDetails.videoId!==C)return d.return(0);k.enableAudioControls=!!((B=W.playerConfig)==null?0:(A=B.inlinePlaybackConfig)==null?0:A.showAudioControls);W.trackingParams=k.getInlinePlaybackTrackingParams();
if(!k.inlinePlayer)return d.return(0);w={};if(E=_.z((x=k.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint,_.RA))w.watch_endpoint=E;if(k.videoPreviewData){var V,c=(V=_.z(k.videoPreviewData.inlinePlaybackEndpoint,_.RA))==null?void 0:V.startTimeSeconds;c!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
c,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(c*1E3))}k.inlinePlayer.loadVideoWithPlayerResponse(W,w);if(k.JSC$16711_playerPromise)return d.jumpTo(2);k.JSC$16711_playerPromise=k.inlinePlayer.getPlayerPromise();return _.l(d,k.JSC$16711_playerPromise,3)}d.nextAddress!=2&&(a=d.yieldResult,a.setInlinePreview(!0),a.setSizeStyle(!1,!0),k.ytPlayerListenerBehavior.listenToPlayerEvents(a,k.JSC$16711_playerEvents),k.player=a,_.Pe(k.hostElement,"player-api-ready"));((X=k.opts)==
null?0:X.showPlayerControls)&&k.videoPreviewData&&k.player&&(k.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:k.videoPreviewData.thumbnailOverlays,playerApi:k.player},k.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!k.unroundCornersForPlayback,additionalButton:k.getAdditionalButtonType(k.videoPreviewData.thumbnailOverlays)});return d.return(2)})};
_.Y.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.SMm(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.Y.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,k=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(k==null?void 0:k.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(k==null?void 0:k.initialHorizontalPosition)};
_.Y.getThumbnailPositionData=function(){var W,k;if((k=this.opts)==null||!k.thumbnail)return null;k=this.opts.thumbnail;var C=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var n=k.getBoundingClientRect();W=n.width;k=n.height;var N=n.top+window.scrollY;n=n.left+window.scrollX;var B=C?Math.ceil(W):W;C=C?Math.ceil(k):k;var A=W/B;W={initialScale:A,initialTopPosition:N-12*A,finalTopPosition:N-12-(C-k)/2,initialHorizontalPosition:n-(12+(B-W)/2),finalHorizontalPosition:n-12-(B-W)/
2,videoPreviewWidth:B,videoPreviewHeight:C};return W};
_.Y.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.jo({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.Y.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.aM.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.Y.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;H7&&(H7.disconnect(),H7=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.Y.isValidThumbnailOverlayButton=function(W,k){W=W.thumbnailOverlayButtonRenderer;var C;return!!W&&!!W.tooltip&&!((C=W.icon)==null||!C.iconType)&&k.includes(W.icon.iconType)};
_.Y.isValidThumbnailOverlayButtonViewModel=function(W,k){var C;W=_.z((C=W.thumbnailOverlayButtonViewModel)==null?void 0:C.overlayButton,_.aS);return!!W&&!!W.title&&!!W.iconName&&k.includes(W.iconName)};
_.Y.getAdditionalButtonType=function(W){var k=this;if(_.m("web_imp_fastforward_button"))return{button:1};if(_.m("web_imp_miniplayer_button"))return{button:2};if(_.m("web_imp_playback_speed_button"))return{button:3};var C=["AUTO_AWESOME"],n=(W||[]).filter(function(B){return k.isValidThumbnailOverlayButton(B,C)}).map(function(B){return B.thumbnailOverlayButtonRenderer});
if(n.length)return{button:4,thumbnailOverlayButtonRenderers:n};var N=["AUTO_AWESOME"];W=(W||[]).filter(function(B){return k.isValidThumbnailOverlayButtonViewModel(B,N)}).map(function(B){return _.z(B.thumbnailOverlayButtonViewModel.overlayButton,_.aS)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.Y.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.Y.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.Y.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.gA(function(){W.updateWatchEndpointStartTime()},1E3)};
_.Y.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.Y.resetPreventProgressSaveTimer=function(){this.JSC$16711_preventProgressSaveTimer!==null&&(_.aM.cancelJob(this.JSC$16711_preventProgressSaveTimer),this.JSC$16711_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.Y.updateWatchEndpointStartTime=function(W){var k=this.videoPreviewData;if(this.player&&k!=null&&k.inlinePlaybackEndpoint&&!this.JSC$16711_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var C=_.z(k.navigationEndpoint,_.RA);C&&(C.startTimeSeconds=W);if(k=_.z(k.inlinePlaybackEndpoint,_.RA))k.startTimeSeconds=W}};
_.Y.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.Y.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.Y.openInMiniplayer=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1){C=(k=W.videoPreviewData)==null?void 0:k.navigationEndpoint;if(!C)return n.return();_.k7().lockupActivation=!0;return _.l(n,_.x4Y(_.f().resolve(_.eq),C),2)}_.k7().userActivation=!0;_.ab(n)})};
_.Y.navigateToWatch=function(W){var k,C=(k=this.videoPreviewData)==null?void 0:k.navigationEndpoint;if(C){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(C,W,!0);else{if(_.m("web_thumbnail_to_watch_transition")){var n,N;(n=this.opts)==null||(N=n.onNavigateToWatchCallback)==null||N.call(n)}_.Pe(this.hostElement,"yt-navigate",{endpoint:C})}this.deactivate()}};
_.Y.getInlinePlaybackVideoId=function(){var W,k;return(k=_.z((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.RA))==null?void 0:k.videoId};
_.Y.getInlinePlaybackTrackingParams=function(){var W,k;return(W=this.videoPreviewData)==null?void 0:(k=W.inlinePlaybackEndpoint)==null?void 0:k.clickTrackingParams};
_.Y.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.Y.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.oq.Object.defineProperties(C67.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var k;return(k=this.opts)==null?void 0:k.videoPreviewData[this.videoPreviewDataIndex]}var C;return(C=this.opts)==null?void 0:C.videoPreviewData}}});
var yk=GO=C67;GO.prototype.onIsAdsVideoChange=GO.prototype.onIsAdsVideoChange;GO.prototype.onInlinePreviewIsEnabledChange=GO.prototype.onInlinePreviewIsEnabledChange;GO.prototype.optsChanged=GO.prototype.optsChanged;GO.prototype.onMouseLeave=GO.prototype.onMouseLeave;yk.JSC$16710_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);yk.JSC$16710_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],yk.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],yk.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],yk.prototype,"componentBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],yk.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.R$.YtSparklesClickLocationBehavior),_.O("design:type",Object)],yk.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yk.prototype,"opts",void 0);_.U([_.Z(),_.O("design:type",Object)],yk.prototype,"playerControlsData",void 0);
_.U([_.Z(),_.O("design:type",Object)],yk.prototype,"playerControlsAppApi",void 0);_.U([_.Z(),_.O("design:type",Object)],yk.prototype,"playerControlsOptions",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],yk.prototype,"noAnimation",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],yk.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],yk.prototype,"active",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],yk.prototype,"playing",void 0);_.U([_.Z({selector:_.srz}),_.O("design:type",Boolean)],yk.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.Z(),_.O("design:type",String)],yk.prototype,"pagePath",void 0);_.U([_.Z({selector:_.DF}),_.O("design:type",Boolean)],yk.prototype,"isWatchPage",void 0);_.U([_.G("videoPreviewData"),_.O("design:type",Object),_.O("design:paramtypes",[])],yk.prototype,"thumbnailData",null);
_.U([_.G("opts","active"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"hidePlayerControls",null);_.U([_.G("opts"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"isAdsVideo",null);_.U([_.G("opts"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"roundedCornersSmall",null);
_.U([_.G("opts"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"roundedCornersMedium",null);_.U([_.G("opts"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"roundedCornersLarge",null);_.U([_.G("opts"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yk.prototype,"unroundCornersForPlayback",null);
_.U([_.G("opts","videoPreviewDataIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],yk.prototype,"videoPreviewData",null);_.U([_.Z(),_.O("design:type",Object)],yk.prototype,"videoPreviewDataIndex",void 0);_.U([_.gi("#inline-player"),_.O("design:type",Object)],yk.prototype,"inlinePlayer",void 0);_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[MouseEvent]),_.O("design:returntype")],yk.prototype,"onMouseLeave",null);
_.U([_.Cq("opts"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yk.prototype,"optsChanged",null);_.U([_.Cq("inlinePreviewIsEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yk.prototype,"onInlinePreviewIsEnabledChange",null);_.U([_.Hl("isAdsVideo"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yk.prototype,"onIsAdsVideoChange",null);
yk=GO=_.U([_.T({is:"ytd-video-preview",disableElementRegistration:!0})],yk);
_.q(yk,"ytd-video-preview",function(){if(eU7!==void 0)return eU7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return eU7=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var bti;var AD1;/*

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
*/
_.Av({_template:function(){if(AD1!==void 0)return AD1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;bti===void 0&&(bti=document.createElement("template"));var n=bti;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return AD1=W},
is:"tp-yt-paper-checkbox",behaviors:[_.qvI],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ZR(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),k="px",C=W.match(/[A-Za-z]+$/);C!==null&&(k=C[0]);W=parseFloat(W);C=8/3*W;k==="px"&&(C=Math.floor(C),C%2!==W%2&&C++);this.updateStyles({"--paper-checkbox-ink-size":C+
k})}})},
_computeCheckboxClass:function(W,k){var C="";W&&(C+="checked ");k&&(C+="invalid");return C},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.is8._createRipple.call(this)}});var F5t=new _.r("radioButtonSurveyOptionRenderer"),wmZ=new _.r("checkboxSurveyOptionRenderer");var xZT;var lR1;var t96=0,E6t=function(){var W=_.R.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+t96;t96++;return W};
_.D(E6t,_.R);E6t.prototype.onTap=function(){_.Pe(this.hostElement,"ytd-toggle-option-clicked")};
var D$=E6t;_.U([_.Z(),_.O("design:type",String)],D$.prototype,"label",void 0);_.U([_.Z(),_.O("design:type",String)],D$.prototype,"inputId",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],D$.prototype,"selected",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],D$.prototype,"isOverlay",void 0);D$=_.U([_.T({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.O("design:paramtypes",[])],D$);
_.q(D$,"ytd-toggle-option-renderer",function(){if(lR1!==void 0)return lR1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return lR1=W},{mode:1});var aRi=function(){var W=_.R.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.D(aRi,_.R);aRi.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.Pe(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.oq.Object.defineProperties(aRi.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var Vf=aRi;Vf.prototype.onTap=Vf.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Vf.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Vf.prototype,"isToggleOption",void 0);_.U([_.Z(),_.O("design:type",Object)],Vf.prototype,"isOverlay",void 0);_.U([_.G("data.responseText"),_.O("design:type",String),_.O("design:paramtypes",[])],Vf.prototype,"label",null);
_.U([_.jI("ytd-toggle-option-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Vf.prototype,"onTap",null);Vf=_.U([_.T({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Vf);
_.q(Vf,"ytd-checkbox-survey-option-renderer",function(){if(xZT!==void 0)return xZT;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xZT=W},{mode:1});var Xm7;var fRB;var dZA=function(){var W=_.R.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.D(dZA,_.R);dZA.prototype.onTap=function(){this.data&&(this.checked?_.KY(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.KY(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var JF=dZA;JF.prototype.onTap=JF.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JF.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],JF.prototype,"checked",void 0);_.U([_.Z(),_.O("design:type",Object)],JF.prototype,"isToggleOption",void 0);
_.U([_.jI("ytd-toggle-option-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],JF.prototype,"onTap",null);JF=_.U([_.T({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],JF);
_.q(JF,"ytd-radio-button-survey-option-renderer",function(){if(fRB!==void 0)return fRB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fRB=W},{mode:1});var mZC=function(){var W=_.R.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.m("web_improve_shorts_response_rate");W.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 W};
_.D(mZC,_.R);_.Y=mZC.prototype;
_.Y.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"}}}}};
_.Y.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(C){var n;if((n=C[0])!=null&&n.isIntersecting){_.hv().reportShown(W.hostElement);var N;(N=W.intersectionObserver)==null||N.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var k;(k=this.intersectionObserver)==null||k.observe(this.hostElement)};
_.Y.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.Y.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var k;((k=this.data)==null?void 0:k.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var C,n,N,B;this.darkColorPalette=(C=this.data)==null?void 0:(n=C.inlineContent)==null?void 0:(N=n.compactVideoRenderer)==null?void 0:(B=N.thumbnail)==null?
void 0:B.darkColorPalette;var A,w,x,E;this.lightColorPalette=(A=this.data)==null?void 0:(w=A.inlineContent)==null?void 0:(x=w.compactVideoRenderer)==null?void 0:(E=x.thumbnail)==null?void 0:E.lightColorPalette;var a,X;if(((a=this.data)==null?0:(X=a.inlineContent)==null?0:X.compactVideoRenderer)&&this.isShortsStyle){var d,V,c,M;W=_.$f((d=this.data)==null?void 0:(V=d.inlineContent)==null?void 0:(c=V.compactVideoRenderer)==null?void 0:(M=c.thumbnail)==null?void 0:M.thumbnails);_.Op(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.Y.handleRequestCompletion=function(){this.hostElement.hidden&&_.Pe(this.hostElement,"yt-dismissible-item-dismissed")};
_.Y.onPopupClosed=function(W){var k;((k=W.detail)==null?void 0:k.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.KY(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.Y.handleInlineSurveyRatingSelect=function(W,k){var C=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=k;this.expanded=!!W;this.getOptionRenderers().forEach(function(n,N){C.notifyPath("followUpSurveyCommand.followUpOptions."+N+".checkboxSurveyOptionRenderer.checked");C.set("followUpSurveyCommand.followUpOptions."+N+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.KY(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.Y.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.KY(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,k=(W=this.data)==null?void 0:W.dismissalEndpoint;k&&this.ytComponentBehavior.resolveCommand(k)}};
_.Y.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.KY(this.hostElement,"yt-close-popup-action"))};
_.Y.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(n){return n.checked});
if(W.length===0)return;W=W.map(function(n){return n.responseEndpoint})}var k=[];
W.forEach(function(n,N){N!==0&&(n=_.z(n,_.I5))&&n.feedbackToken&&k.push(n.feedbackToken)});
if(W=W[0]){var C={};k.length>0&&(C.extra_feedback_tokens=k);this.ytComponentBehavior.resolveCommand(W,{form:C})}}};
_.Y.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(k){W.isSingleSelect=!!_.z(k,F5t);return W.isSingleSelect?_.z(k,F5t):_.z(k,wmZ)}):[]};
_.Y.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.Y.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.Y.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.Y.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.a8(W)};
_.oq.Object.defineProperties(mZC.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var c7=mZC;c7.prototype.colorPaletteChanged=c7.prototype.colorPaletteChanged;c7.prototype.onPopupClosed=c7.prototype.onPopupClosed;c7.prototype.handleRequestCompletion=c7.prototype.handleRequestCompletion;c7.prototype.dataChanged=c7.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],c7.prototype,"actionHandlerBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],c7.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],c7.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.gi("#follow-up-survey-options"),_.O("design:type",Object)],c7.prototype,"optionSelector",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"disableAnimation",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"isToggleOption",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"followUpSurveyCommand",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"selectedRatingEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],c7.prototype,"expanded",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c7.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c7.prototype,"isShortsStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c7.prototype,"styleOverrideAttribute",void 0);_.U([_.Z(),_.O("design:type",Boolean)],c7.prototype,"isSingleSelect",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"isDarkMode",void 0);
_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"lightColorPalette",void 0);_.U([_.Z(),_.O("design:type",Object)],c7.prototype,"darkColorPalette",void 0);_.U([_.G("selectedRatingEndpoint","isShortsStyle"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],c7.prototype,"isOptionSelected",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c7.prototype,"roundedContainer",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c7.prototype,"improveShortsResponseRate",void 0);_.U([_.gi("#dismissible"),_.O("design:type",HTMLElement)],c7.prototype,"dismissibleEl",void 0);_.U([_.gi("#dismiss-button yt-icon-button"),_.O("design:type",HTMLElement)],c7.prototype,"dismissButtonEl",void 0);_.U([_.gi("#inline-survey-header yt-icon-button"),_.O("design:type",HTMLElement)],c7.prototype,"inlineHeaderDismissButtonEl",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c7.prototype,"dataChanged",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c7.prototype,"handleRequestCompletion",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],c7.prototype,"onPopupClosed",null);
_.U([_.Hl("darkColorPalette","lightColorPalette","isDarkMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c7.prototype,"colorPaletteChanged",null);c7=_.U([_.T({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],c7);
_.q(c7,"ytd-inline-survey-renderer",function(){if(Xm7!==void 0)return Xm7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Xm7=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var n2z,Nx5,YAl;n2z=function(W){return _.m("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.m("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.m("kevlar_watch_cinematics_invisible_in_theater")};
Nx5=function(){var W=document.createElement("canvas"),k=W.getContext("2d");if(!k)throw Error("Xl");_.vT(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:k}};
YAl=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.m("kevlar_watch_cinematics_css_blur")};
_.BxN=function(W,k,C){return Math.abs(W-k)<=(C||1E-6)};
_.bAe=function(W,k){return W==k?!0:W&&k?W.width==k.width&&W.height==k.height:!1};_.AS5=new _.r("notificationActionRenderer");var Fs7=function(W){var k=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.gn;this.element.addEventListener("load",function(){k.loaded=!0;k.resolver.resolve(k.element)});
this.element.addEventListener("error",function(){k.failed=!0});
this.element.src=W};var w8e=function(W,k){this.image=W;this.frame=k};
w8e.prototype.drawToCanvas=function(W,k){var C=this.frame.width/this.frame.columns,n=this.frame.height/this.frame.rows,N=k.offsetX,B=k.offsetY;n2z(k)?(W.fillStyle=k.fullscreen?"#000":"#0f0f0f",W.fillRect(N,B,(k==null?void 0:k.width)||C,(k==null?void 0:k.height)||n)):W.drawImage(this.image,this.frame.column*C,this.frame.row*n,C,n,N,B,(k==null?void 0:k.width)||C,(k==null?void 0:k.height)||n)};
var xSN=function(W){this.color=W};
xSN.prototype.drawToCanvas=function(W,k){var C=k.offsetX,n=k.offsetY,N=k.width,B=k.height;W.fillStyle=n2z(k)?k.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(C,n,N,B)};var F_=function(W,k){_.im.call(this);this.playerApi=k;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.lB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();lZo(this,W);_.t87(this);this.update()},X83;
_.D(F_,_.im);F_.prototype.addEventListeners=function(){var W=this,k=function(){W.update()},C=function(N){W.paused||(N.type==="newdata"&&(W.mosaics.clear(),E2N(W),wJ(W)),_.t87(W),W.update())},n=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",k);this.playerApi.addEventListener("onVideoDataChange",C);this.playerApi.addEventListener("onStateChange",n);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",k);W.playerApi.removeEventListener("onVideoDataChange",C);W.playerApi.removeEventListener("onStateChange",n)})};
var lZo=function(W,k){W.cinematicContainerRenderer!==k&&(W.cinematicContainerRenderer=k,E2N(W),wJ(W),W.colorStoreUpdateJobId=_.aM.addLowPriorityJob(function(){var C;if((C=W.cinematicContainerRenderer.colorStore)!=null&&C.sampledColors){C=Infinity;for(var n=_.b(W.cinematicContainerRenderer.colorStore.sampledColors),N=n.next();!N.done;N=n.next()){N=N.value;var B=Number(N.key);B!==0&&B<C&&(C=B);B=_.Xi(N.value);W.colorStore.set(N.key,B)}W.colorStoreTimeInterval=C}}))},E2N=function(W){W.colorStoreUpdateJobId&&
(_.aM.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},aZ5=function(W,k){var C;
return(C=W.getStoryboardFrame(k))==null?void 0:C.url};
F_.prototype.onPlayerStateChange=function(){this.update()};
F_.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.t87=function(W){var k=W.getStoryboardFrame(0);k&&(k=new _.lB(k.width/k.columns,k.height/k.rows),_.bAe(W.currentStoryboardSize,k)||(W.currentStoryboardSize=k,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))};
X83=function(W,k){W.currentStoryboardIndex=k;W.pendingStoryboardIndex=NaN;k=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new w8e(W.mosaics.get(k.url).element,k);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.oX)()};
F_.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var wJ=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
F_.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)wJ(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)wJ(this);else if(isNaN(this.lastUpdateTime)||!((0,_.oX)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var k=this.colorStore.get(W);k?k!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=k,this.currentStoryboard=new xSN(k),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.oX)()):(_.zJ(new _.AM("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),wJ(this))}else wJ(this);else fZi(this,W)}};
var fZi=function(W,k){var C=W.getStoryboardFrameIndex(k);if(C!==W.currentStoryboardIndex&&C!==W.pendingStoryboardIndex){k=aZ5(W,C);var n=W.mosaics.get(k);n?n.loaded&&X83(W,C):(W.pendingStoryboardIndex=C,C=new Fs7(k),W.mosaics.set(k,C),C.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var N=aZ5(W,W.pendingStoryboardIndex);if(N){var B;(B=W.mosaics.get(N))!=null&&B.loaded&&X83(W,W.pendingStoryboardIndex)}else wJ(W)}}))}};
F_.prototype.getStoryboardFrameIndex=function(W){var k=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,k)};
F_.prototype.getStoryboardFrame=function(W){var k=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,C,n;return((n=(C=this.playerApi).getStoryboardFrame)==null?void 0:n.call(C,W,k))||null};
F_.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var ll=function(W,k,C,n){n=n===void 0?!1:n;_.XK.call(this);this.cinematicContainerRenderer=k;this.playerApi=C;this.theater=this.fullscreen=!1;var N;this.ambientLightThemeEnabled=!n&&!!(k==null?0:(N=k.config)==null?0:N.enableInLightTheme);this.ambientFullscreenEnabled=n&&_.m("web_cinematic_fullscreen");this.container=document.createElement("div");W.appendChild(this.container);var B;if(_.m("web_cinematic_theater_mode")||_.m("web_cinematic_fullscreen")||(k==null?0:(B=k.config)==null?0:B.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);dSL(this);W=this.ambientV2Container||this.container;this.backCanvas=Nx5();this.frontCanvas=Nx5();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new F_(k,this.playerApi);_.Bf(this,this.storyboardManager);this.addEventListeners();mSa(this)?zCz(this,100+xs(this)*3*2,100+xs(this)*3*2):DSa(this);V8_(this,this.storyboardManager.currentStoryboard)};
_.D(ll,_.XK);var dSL=function(W){W.ambientV2Container?JSj(W):(_.vT(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+cS3(W)+", "+IZi(W)+")"}),YAl()&&_.vT(W.container,"filter","blur("+_.Oe("cinematic_watch_css_filter_blur_strength",40)+"px)"))},JSj=function(W){if(W.ambientV2Container){var k=W.playerApi.getVideoAspectRatio();
_.vT(W.container,{"aspect-ratio":""+k,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.vT(W.ambientV2Container,{"aspect-ratio":""+k,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+cS3(W)+", "+IZi(W)+")"});YAl()&&_.vT(W.ambientV2Container,"filter","blur("+_.Oe("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
ll.prototype.setFullscreen=function(W,k){this.fullscreen=W;this.theater=!!k;dSL(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,SAl(this),W&&M8z(this,W)};
ll.prototype.addEventListeners=function(){var W=this,k=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(N){V8_(W,N)}),C=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){DSa(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(k);W.storyboardManager.unsubscribeByKey(C)});
if(this.ambientV2Container){var n=function(){JSj(W)};
this.playerApi.addEventListener("onVideoDataChange",n);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",n)})}};
var DSa=function(W){if(!mSa(W)){var k=W.storyboardManager.currentStoryboardSize;isNaN(k.width)||isNaN(k.height)||zCz(W,Number(k.width)+xs(W)*3*2,Number(k.height)+xs(W)*3*2)}},zCz=function(W,k,C){W.backCanvas.element.width=k;
W.backCanvas.element.height=C;W.frontCanvas.element.width=k;W.frontCanvas.element.height=C},mSa=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},V8_=function(W,k){var C=W.frontCanvas.element.getAnimations()[0];
C?(C.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",C.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);SAl(W);k&&M8z(W,k);k=k?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Oe("cinematic_watch_fade_out_duration",500);C=_.Oe("cinematic_watch_transition_frame_rate")/1E3;var n=
{};C&&(n={easing:"steps("+Math.round(k*C)+")"});W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:k,iterations:1},n));W.frontCanvas.element.style.opacity="1"},SAl=function(W){var k=W.ambientLightThemeEnabled,C=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled&&!_.m("web_cinematic_fullscreen_v2");
W.frontCanvas.context.fillStyle=W.theater&&k||W.fullscreen&&C?"#000":"#0f0f0f";YAl()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},M8z=function(W,k){YAl()||(W.frontCanvas.context.filter="blur("+xs(W)+"px)");
W.frontCanvas.context.globalAlpha=_.Oe("cinematic_watch_effect_opacity",.4);var C={offsetX:xs(W)*3,offsetY:xs(W)*3,theater:W.theater,fullscreen:W.fullscreen};mSa(W)&&(C.width=100,C.height=100);k.drawToCanvas(W.frontCanvas.context,C);W.frontCanvas.context.globalAlpha=1},xs=function(W){var k;
return(k=W.cinematicContainerRenderer.config.blurStrength)!=null?k:5},cS3=function(W){var k,C;
if((W.fullscreen||W.theater)&&((k=W.cinematicContainerRenderer.config)==null?0:(C=k.watchFullscreenConfig)==null?0:C.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var n;return(n=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?n:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},IZi=function(W){var k,C;
if((W.fullscreen||W.theater)&&((k=W.cinematicContainerRenderer.config)==null?0:(C=k.watchFullscreenConfig)==null?0:C.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var n;return(n=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?n:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
ll.prototype.disposeInternal=function(){_.XK.prototype.disposeInternal.call(this);this.container.remove()};
ll.prototype.clear=function(){V8_(this)};
ll.prototype.pause=function(){this.storyboardManager.pause()};var QI_;QI_=_.FH(function(){var W,k,C=!((k=(W=document.createElement("canvas")).getContext)==null||!k.call(W,"2d")),n;W=!((n=CSS)==null||!n.supports("filter: blur(0)"));n=!!Element.prototype.animate&&!!Element.prototype.getAnimations;k=_.m("web_cinematic_fullscreen")||_.m("web_cinematic_theater_mode")||_.m("web_cinematic_light_theme")||!1;var N;return C&&W&&n&&(!k||!((N=CSS)==null||!N.supports("aspect-ratio: 1 / 1")))});
_.tx=function(W,k){_.im.call(this);this.container=W;this.playerApi=k;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=p8z(this);this.update()};
_.D(_.tx,_.im);_.v2e=function(W){var k=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=k;W.update()};
_.eCN=function(W,k){W.settingEnabled=k;W.update()};
_.tx.prototype.setFullscreen=function(W,k){this.fullscreen=W;this.theater=!!k;this.update()};
_.sIr=function(W,k){W.cinematicContainerRenderer=k;W.cinematicContainerRenderer&&(W.cinematicsVe=_.F8(W.isShorts()?227858:159022),_.Hn(_.kf(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.tx.prototype.isShorts=function(){var W,k;return((W=this.cinematicContainerRenderer)==null?void 0:(k=W.config)==null?void 0:k.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.tx.prototype.isAllowed=function(){var W;if(W=QI_()){var k,C,n;W=((C=this.cinematicContainerRenderer)==null?void 0:C.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((n=this.cinematicContainerRenderer)==null||!n.colorStore)||((k=this.cinematicContainerRenderer)==null?void 0:k.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.m("web_cinematics_pausing")){var N,B;W=this.isDarkModeEnabled||!!((N=this.cinematicContainerRenderer)==
null?0:(B=N.config)==null?0:B.enableInLightTheme)}else{var A,w;N=!!((A=this.cinematicContainerRenderer)==null?0:(w=A.config)==null?0:w.enableInLightTheme)&&(_.DE("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||N}if(A=W){var x,E;A=!((E=(x=this.prefersReducedMotionQuery)==null?void 0:x.matches)!=null&&E)}return A};
_.tx.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var p8z=function(W){if(!_.m("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var k=window.matchMedia("(prefers-reduced-motion: reduce)"),C=function(){W.update()};
k.addListener(C);W.addOnDisposeCallback(function(){k.removeListener(C)});
return k}};
_.tx.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new ll(this.container,W,this.playerApi,this.isDarkModeEnabled),_.Bf(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var k=this.currentCinematicEffect;k.cinematicContainerRenderer!==
W&&(k.cinematicContainerRenderer=W,lZo(k.storyboardManager,W),dSL(k));W=_.tQ();_.Er(0,194,!0);W.save();W=_.VM();this.cinematicsVe&&W&&_.yb(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.VM(),this.cinematicsVe&&W&&_.$Q(W,[this.cinematicsVe],!1,this.loggingClientData),_.LU(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.oq.Object.defineProperties(_.tx.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var AKj;var Fm_;_.Av({_template:function(){if(Fm_!==void 0)return Fm_;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=
W.content,C=k.insertBefore;AKj===void 0&&(AKj=document.createElement("template"));var n=AKj;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return Fm_=W},
is:"tp-yt-iron-pages",behaviors:[_.mV,_.Jv],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Ozt;_.LTC=function(){if(_.m("kevlar_home_skeleton")&&!Ozt){var W=document.querySelector("#home-page-skeleton");W&&(_.cN("hgcr"),_.xL(W),Ozt=!0)}};
Ozt=!1;_.vy=new _.r("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var oKu=function(W){return _.xY4(_.wrm(W&16777215))<.5},i47=function(W,k,C){var n=C.minimumRowsOfVideosBetweenSections===void 0?1:C.minimumRowsOfVideosBetweenSections;
return W<(C.minimumRowsOfVideosAtStart===void 0?2:C.minimumRowsOfVideosAtStart)||k!==null&&W-k<=n?!1:!0},TU7=function(W,k){var C=0,n=0;
W=_.b(W);for(var N=W.next();!N.done;N=W.next()){var B=N.value;if(B.richItemRenderer)B.richItemRenderer.rowIndex=n,B.richItemRenderer.colIndex=C++,C===k&&(C=0,n++);else if(B.richGroupRenderer&&B.richGroupRenderer.numColumns!==void 0)B.richGroupRenderer.rowIndex=n,B.richGroupRenderer.colIndex=C,C+=B.richGroupRenderer.numColumns,C===k&&(C=0,n++);else if(B.richSectionRenderer){var A=N=void 0;if(B=_.z((N=B)==null?void 0:(A=N.richSectionRenderer)==null?void 0:A.content,_.q38))B.rowIndex=n++}}},qa7=function(W,
k){var C=k.contentElement;
k=k.rendererToTagNameMap;if(C&&k&&k.size!==0){for(var n=new Map,N=_.b(C.children),B=N.next();!B.done;B=N.next()){B=B.value;var A=B.tagName.toLowerCase(),w=n.get(A);w||(w=[],n.set(A,w));w.push(B)}if(n.size!==0)for(N=Math.min(W.length,C.children.length),B=new Map,A=0;A<N;A++){w=Object.keys(W[A])[0];w=k.get(w);if(!w)break;var x=B.get(w);x===void 0&&(x=0,B.set(w,x));var E=n.get(w);if(!E||x>=E.length)break;B.set(w,x+1);w=E[x];x=C.children[A];x!==w&&(_.rIX=!0,_.gJX.set(w,!0),C.insertBefore(w,x),_.gJX.delete(w),
_.rIX=!1)}}},uS7=function(W,k,C,n,N,B,A){n=n===void 0?{}:n;
if(!W||!W.length)return[];W=W.slice();var w=[],x=[];N=null;for(var E=0,a=function(e){x.sort(function(L,Bw){return Bw.skippedOnRow-L.skippedOnRow});
for(var u,h=(u=x.shift())==null?void 0:u.content;h;)!h.richSectionRenderer&&e||w.push(h),u=void 0,h=(u=x.shift())==null?void 0:u.content},X=[];W.length>0||x.length>0;){for(var d=[],V=k;V>0;){var c=void 0,M=void 0,p=(M=x[0]&&x[0].skippedOnRow<E?(c=x.shift())==null?void 0:c.content:void 0)!=null?M:W.shift();
if(!p)break;if(p.richItemRenderer)c=p.richItemRenderer.targetId,M=void 0,c&&((M=A)==null?0:M.has(c))&&X.push(A.get(c)),d.push(p),V--;else if(p.richGroupRenderer&&p.richGroupRenderer.numColumns!==void 0)p.richGroupRenderer.numColumns<=V?(d.push(p),V-=p.richGroupRenderer.numColumns):V===k&&p.richGroupRenderer.numColumns>k?(d.push({richGroupRenderer:Object.assign({},p.richGroupRenderer,{numColumns:k})}),V=0):x.push({content:p,skippedOnRow:E});else if(p.richSectionRenderer)if(i47(E,N,n)&&V===k){w.push(p);
N=E;E++;continue}else x.push({content:p,skippedOnRow:E});else if(p.continuationItemRenderer){a(!0);w.push(p);V=0;break}if(V===0)w.push.apply(w,_.J8(d));else if(!C&&W.length===0){a(!1);w.push.apply(w,_.J8(d));V=0;break}}E++;X=_.b(X);for(d=X.next();!d.done;d=X.next())w.push(d.value),E++;X=[]}TU7(w,k);B&&qa7(w,B);return w},O41=function(W){var k=W.data;
var C=W.uniqueId;W=W.overrides;var n,N=((n=k.timedAnimationData)==null?void 0:n.animationTiming)||[];return _.t("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.t(_.sg2,{settings:{uniqueId:C,timings:N,experimentEnabled:N.length>0,enabled:N.length>0}},UBC(k.buttonRenderer,{buttonRenderer:{buttonOverrides:W}})))},LXZ=function(W){return W.talkToRecs},rsS=function(W,k){if(k){var C=_.ZF().getState().entities.flowStateEntity,n=j7T(W),N=[k];
n&&n!==k&&N.push(n);var B=!0,A;if(C&&W.flowStateEntityKey&&((A=C[W.flowStateEntityKey])==null?void 0:A.primaryButtonDisabled)!==void 0){var w;B=!((w=C[W.flowStateEntityKey])==null||!w.primaryButtonDisabled)}H47(W,n!=null?n:k,N,B)}},Pti=function(W){return _.nE(_.ZF(),function(k){return k.entities.flowStateEntity},function(k,C){if(W.flowStateEntityKey){var n,N=k==null?void 0:(n=k[W.flowStateEntityKey])==null?void 0:n.currentStepId,B;
C=C==null?void 0:(B=C[W.flowStateEntityKey])==null?void 0:B.currentStepId;B=_.ZF().getState().talkToRecs;if(N&&N!==C){var A;k=(k==null?void 0:(A=k[W.flowStateEntityKey])==null?void 0:A.stepIdStack)||Object.keys(B.stepStates);A=!gK7(B==null?void 0:B.stepStates[N]);H47(W,N,k,A)}}})},KXY=function(W){return _.nE(_.ZF(),LXZ,function(k){var C=j7T(W);
if(C){var n=Object.keys(k.stepStates);k=!gK7(k==null?void 0:k.stepStates[C]);H47(W,C,n,k)}})},gK7=function(W){var k=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(B,A){return B||(W==null?void 0:W.selectionStates[A].isSelected)},!1),C,n,N=!!(W==null?0:(C=W.userQuery)==null?0:(n=C.userQuery)==null?0:n.trim());
return k||N},j7T=function(W){if(W.flowStateEntityKey){var k,C,n=(k=_.ZF().getState().entities.flowStateEntity)==null?void 0:(C=k[W.flowStateEntityKey])==null?void 0:C.currentStepId;
if(n)return n}},H47=function(W,k,C,n){_.ZF().dispatch(_.Nj("flowStateEntity",W.flowStateEntityKey,{currentStepId:k,
stepIdStack:C,key:W.flowStateEntityKey,primaryButtonDisabled:n}))},h2i;var WT6;_.Av({_template:function(){if(WT6!==void 0)return WT6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
var k=W.content,C=k.insertBefore;h2i===void 0&&(h2i=document.createElement("template"));var n=h2i;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return WT6=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var kd7=new _.r("talkToRecsFlowRenderer");var CUB=new _.r("flowRootRenderer");var nbE=new _.r("chipsShelfViewModel");_.NGS=new _.r("engagementPanelSectionListRenderer");var Ywu=function(){this.horizontal=!1},BG$=function(W,k){W.horizontal=k};
Ywu.prototype.position=function(W,k,C,n){n=n===void 0?1:n;W=this.delta(W)*n+k;n=Math.max(k,C);return W>=Math.min(k,C)&&W<=n?W:C};
Ywu.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var mX=function(W,k,C){k=k===void 0?_.PK():k;this.target=W;this.manager=k;this.touchAction=C;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
mX.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(_.J8(this.events)));for(var W=_.b(this.events),k=W.next();!k.done;k=W.next())this.listen(k.value)}};
mX.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.J8(this.events)));for(var W=_.b(this.events),k=W.next();!k.done;k=W.next())this.unlisten(k.value)}};
mX.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
mX.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var zp=function(){Ywu.apply(this,arguments)};
_.D(zp,Ywu);zp.prototype.direction=function(W){var k=W.detail;W=k.deltaY;k=k.deltaX;return W&&!this.horizontal?W>0?"down":"up":k&&this.horizontal?k>0?"right":"left":"none"};
zp.prototype.distance=function(W){return Math.abs(this.delta(W))};
zp.prototype.delta=function(W){var k=this.direction(W),C=W.detail;W=C.deltaX;C=C.deltaY;return k==="up"||k==="down"?C||0:W||0};
zp.prototype.velocity=function(W){var k=this.direction(W),C=W.detail;W=C.velocityX;C=C.velocityY;return Math.abs(k==="up"||k==="down"?C||0:W||0)};_.Dv=function(W,k,C,n,N,B){N=N===void 0?new zp:N;B=B===void 0?_.PK():B;mX.call(this,k,B,n);var A=this;this.element=W;this.target=k;this.config=C;this.input=N;this.manager=B;this.events=["panstart","panmove","panend"];this.onPanStart=function(){A.config.draggingClass&&A.element.classList.add(A.config.draggingClass);A.config.startAction&&A.config.startAction()};
this.onPanMove=function(w){var x=bz7(A,w);if(x){A.move(w,x);x.fade&&A.fade(w,x);var E=A.input.direction(w);x.moveAction&&x.moveAction(A2Z(A,w,x),E)}};
this.onPanEnd=function(w){var x,E,a,X,d,V;return _.F(function(c){if(c.nextAddress==1){A.animationRequestId&&cancelAnimationFrame(A.animationRequestId);A.animationRequestId=void 0;x=bz7(A,w);if(!x)return c.return();E=x;a=E.triggerAction;X=E.fade;d=E.disableFinish;V=E.translateBack;var M=A.input.velocity(w),p=A.input.distance(w),e=A.threshold(x);return M>.3&&p>10||p>e?d?c.jumpTo(6):X?_.l(c,FT7(A,w),6):_.l(c,w_$(A,w,x),6):V?_.l(c,A.translateBack(w),3):c.jumpTo(3)}c.nextAddress!=3&&a&&a();A.config.draggingClass&&
A.element.classList.remove(A.config.draggingClass);A.reset();_.ab(c)})};
W=Object.keys(C.triggers);this.directions=new Set(W);BG$(this.input,this.directions.has("right")||this.directions.has("left"))};
_.D(_.Dv,mX);_.Dv.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var bz7=function(W,k){k=W.input.direction(k);return W.config.triggers[k]};
_.Dv.prototype.move=function(W,k){var C=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var n=C.input.axis(W),N=C.input.position(W,C.config.startPosition,k.endPosition,k.moveRatio||1);C.element.style.transform="translate"+n+"("+N+"px)";C.animationRequestId=void 0}))};
var A2Z=function(W,k,C){var n=C.moveRatio||1;C=Math.abs(W.config.startPosition-C.endPosition);return Math.min(W.input.distance(k)*n,C)/C};
_.Dv.prototype.fade=function(W,k){var C=k.endOpacity;W=A2Z(this,W,k);W>0&&(this.element.style.opacity=""+(((C||0)-1)*W+1))};
_.Dv.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var w_$=function(W,k,C){var n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return n=W.input.delta(k)+W.config.startPosition,N=W.input.axis(k),B=C,A=B.endPosition,w=B.transitionEndPosition,E=(x=w)!=null?x:A,_.l(a,W.element.animate([{transform:"translate"+N+"("+n+"px)"},{transform:"translate"+N+"("+E+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+N+"("+E+"px)";_.ab(a)})};
_.Dv.prototype.translateBack=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1){if(!k.element.style.transform)return N.return();C=k.input.axis(W);n=k.config.startPosition;return _.l(N,k.element.animate([{transform:k.element.style.transform},{transform:"translate"+C+"("+n+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}k.element.style.transform="translate"+C+"("+n+"px)";_.ab(N)})};
var FT7=function(W,k){var C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return C=W.input.delta(k)+W.config.startPosition,n=W.input.axis(k),N=C+70,B=W.element.style.opacity===""?1:W.element.style.opacity,_.l(A,W.element.animate([{transform:"translate"+n+"("+C+"px)",opacity:B},{transform:"translate"+n+"("+N+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+n+"("+N+"px)";W.element.style.opacity="0";_.ab(A)})};var xr7=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.D(xr7,_.Wp);_.Y=xr7.prototype;_.Y.created=function(){var W=this;this.boundAutoScrollHandler=function(k){W.autoScroll(k)}};
_.Y.detached=function(){this.hostElement.removeEventListener("mouseout",_.LO(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.LO(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.LO(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.Y.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.LO(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.LO(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.LO(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.LO(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.LO(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.LO(this,this.endAutoScroll)),this.endAutoScroll())};
_.Y.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var k;if(k=!this.autoScrollPaused&&this.scrollTarget)k=this.scrollTarget,k=k.scrollHeight-k.scrollTop!==k.clientHeight;k&&(k=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>k&&(this.scrollTarget.scrollTop+=Math.ceil(W/k),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.Y.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.Y.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var VV=xr7;VV.prototype.autoScrollEnabledChanged=VV.prototype.autoScrollEnabledChanged;_.U([_.Z(),_.O("design:type",Object)],VV.prototype,"scrollRate",void 0);_.U([_.Z(),_.O("design:type",Object)],VV.prototype,"scrollTarget",void 0);_.U([_.Z(),_.O("design:type",Boolean)],VV.prototype,"autoScrollEnabled",void 0);_.U([_.Hl("autoScrollEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],VV.prototype,"autoScrollEnabledChanged",null);VV=_.U([_.kr()],VV);_.lP1=[VV.prototype];var tSB;_.Gj(_.Ja,"yt-avatar-stack-view-model",{props:{className:_.Ik,data:_.Ik,isOverlay:_.Ik,useMediumText:_.Ik,decorations:_.Ik,hideAvatar:_.Ik}});var UBC=_.w7({buttonRenderer:_.qg});_.UK(O41);_.qN(O41,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var EbB=function(){var W=_.R.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.m("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.D(EbB,_.R);_.Y=EbB.prototype;
_.Y.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"}}}};
_.Y.updateJoinButtonOverrides=function(){var W,k;(W=_.S(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(k=W.polymerController)==null||k.set("overrides",this.joinButtonOverrides);if(W=_.S(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.Y.handleButtonRefreshAction=function(W){if(W=_.z(W,_.xex))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.Y.onYtServiceRequestError=function(W){_.fm(this.hostElement,W.detail.error.message)};
_.Y.handleUnsubscribeAction=function(){var W,k,C;((W=this.data)==null?void 0:(k=W.membershipButton)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.style)==="STYLE_PRIMARY"&&_.S(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.oq.Object.defineProperties(EbB.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.data)==null?void 0:W.membershipButton,C;W=(k==null?void 0:k.buttonRenderer)||_.z(k==null?void 0:(C=k.timedAnimationButtonRenderer)==null?void 0:C.buttonRenderer,_.Vq);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var Js=EbB;Js.prototype.onYtServiceRequestError=Js.prototype.onYtServiceRequestError;Js.prototype.updateJoinButtonOverrides=Js.prototype.updateJoinButtonOverrides;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Js.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],Js.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Js.prototype,"data",void 0);_.U([_.G("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],Js.prototype,"hideJoin",null);_.U([_.Z(),_.O("design:type",String)],Js.prototype,"subscribeKey",void 0);_.U([_.Z({selectorArgs:["subscribeKey"],selector:_.Ln}),_.O("design:type",Object)],Js.prototype,"subscriptionStateEntity",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Js.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.U([_.G("subscriptionStateEntity"),_.Z({reflectToAttribute:!0}),_.O("design:type",Object),_.O("design:paramtypes",[])],Js.prototype,"subscribed",null);_.U([_.G("subscribed","data.membershipButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],Js.prototype,"joinButtonOverrides",null);
_.U([_.Hl("joinButtonOverrides"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Js.prototype,"updateJoinButtonOverrides",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Js.prototype,"onYtServiceRequestError",null);Js=_.U([_.T({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Js);
_.q(Js,"ytd-video-owner-renderer",function(){if(tSB!==void 0)return tSB;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return tSB=W},{mode:1});var aPt;var X_i=function(){var W=_.R.apply(this,arguments)||this;W.buttonUpdate=_.m("web_button_rework");W.dismissButtonOverrides=_.m("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.D(X_i,_.R);_.Y=X_i.prototype;_.Y.computeUrlImg=function(W){if(W)return _.$f(W.thumbnails)};
_.Y.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.Y.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.Y.logoWithPadding=function(W){var k,C;return(W=(k=W.thumbnails)==null?void 0:(C=k[0])==null?void 0:C.height)&&W%31===0?!0:!1};
_.Y.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.kQ(this.hostElement,W.impressionEndpoints)};
_.Y.observeBasicPalette=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.colorData)==null?void 0:k.basicColorPaletteData;C?_.lV(this.hostElement,C):_.lV(this.hostElement,{})};
_.Y.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var k;this.hasSupplementalText=!((k=this.data)==null||!k.supplementalText);if(_.m("web_button_rework")){var C,n,N,B;W=(C=this.data)==null?void 0:(n=C.actionButton)==null?void 0:(N=n.buttonRenderer)==null?void 0:(B=N.colorData)==null?void 0:B.basicColorPaletteData;var A,w,x;if(!((A=this.data)==null?0:(w=A.actionButton)==null?0:(x=w.buttonRenderer)==null?0:x.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var E,a;this.set("data.actionButton.buttonRenderer",_.JU.unsafeClone((E=this.data)==null?void 0:(a=E.actionButton)==null?void 0:a.buttonRenderer))}}};
_.Y.observeDataForCounterfactual=function(){if(_.m("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.Y.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var k,C,n;if((k=this.data)==null?0:(C=k.colorData)==null?0:(n=C.basicColorPaletteData)==null?0:n.foregroundActivatedColor)return W=_.a8(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.Y.computeForcedDarkTheme=function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.actionButton)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.style,N,B,A;W=oKu(((N=this.data)==null?void 0:(B=N.colorData)==null?void 0:(A=B.basicColorPaletteData)==null?void 0:A.backgroundColor)||0);return n&&W};
_.Y.computeForcedLightTheme=function(){var W,k,C,n=(W=this.data)==null?void 0:(k=W.actionButton)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.style,N,B,A;W=!oKu(((N=this.data)==null?void 0:(B=N.colorData)==null?void 0:(A=B.basicColorPaletteData)==null?void 0:A.backgroundColor)||0);return n&&W};
_.Y.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.Y.computeHasTitle=function(W){return!!W.title};
_.Y.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.Y.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.Y.computeIsInfeedModernization=function(){var W,k,C,n,N=(W=this.data)==null?void 0:(k=W.actionButton)==null?void 0:(C=k.buttonRenderer)==null?void 0:(n=C.colorData)==null?void 0:n.basicColorPaletteData;return(N==null?void 0:N.backgroundColor)===452984831||(N==null?void 0:N.backgroundColor)===218103808};
var cy=X_i;cy.prototype.observeDataForCounterfactual=cy.prototype.observeDataForCounterfactual;cy.prototype.observeDataChanged=cy.prototype.observeDataChanged;cy.prototype.observeBasicPalette=cy.prototype.observeBasicPalette;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],cy.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],cy.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cy.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],cy.prototype,"buttonUpdate",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],cy.prototype,"hasSupplementalText",void 0);_.U([_.Z(),_.O("design:type",Object)],cy.prototype,"dismissButtonOverrides",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.O("design:type",Boolean)],cy.prototype,"hasTitle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.O("design:type",Object)],cy.prototype,"forceDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.O("design:type",Object)],cy.prototype,"forceLightTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],cy.prototype,"dynamicTextHeight",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.O("design:type",Object)],cy.prototype,"hasOverflowButton",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.O("design:type",Object)],cy.prototype,"isInfeedModernization",void 0);_.U([_.Hl("data.colorData.basicColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cy.prototype,"observeBasicPalette",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cy.prototype,"observeDataChanged",null);_.U([_.Hl("data.isVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cy.prototype,"observeDataForCounterfactual",null);cy=_.U([_.T({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],cy);
_.q(cy,"ytd-banner-promo-renderer",function(){if(aPt!==void 0)return aPt;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return aPt=W},{mode:1});var fP$;var dr$;var mrT;var zw$=function(){return _.R.apply(this,arguments)||this};
_.D(zw$,_.R);var DrY=zw$;_.U([_.Z(),_.O("design:type",Object)],DrY.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DrY.prototype,"ytRendererBehavior",void 0);DrY=_.U([_.T({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],DrY);
_.q(DrY,"ytd-hashtag-grid-tile-renderer",function(){if(mrT!==void 0)return mrT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return mrT=W},{mode:1});var VS6=function(){return _.R.apply(this,arguments)||this};
_.D(VS6,_.R);VS6.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
VS6.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,k;if(((W=this.data)==null||!W.isExpanded)&&(k=this.data)!=null&&k.tiles){W=this.data.tiles.length;k=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var C=Math.ceil(W/k);this.fullyVisibleRows=W%k===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}};
VS6.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var I7=VS6;I7.prototype.updateRichGridTrendingHashtagsVisibility=I7.prototype.updateRichGridTrendingHashtagsVisibility;_.U([_.Z(),_.O("design:type",Object)],I7.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Number)],I7.prototype,"fullyVisibleRows",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],I7.prototype,"isShowMoreVisible",void 0);_.U([_.Z({selector:_.m7,value:0}),_.O("design:type",Number)],I7.prototype,"richGridItemsPerRow",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],I7.prototype,"ytdReduxBehavior",void 0);_.U([_.Hl("data","richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],I7.prototype,"updateRichGridTrendingHashtagsVisibility",null);
I7=_.U([_.T({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],I7);
_.q(I7,"ytd-hashtag-grid-shelf-renderer",function(){if(dr$!==void 0)return dr$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return dr$=W},{mode:1});var J2S;var c27;var IPB=function(){var W=_.R.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.m("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(IPB,_.R);_.Y=IPB.prototype;_.Y.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.Y.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"}}}};
_.Y.dataChanged=function(){var W=this;this.requestElementsPerRow();var k,C;this.currentColorPalette=this.isDarkTheme?(k=this.data)==null?void 0:k.darkColorData:(C=this.data)==null?void 0:C.lightColorData;var n;if((n=this.currentColorPalette)==null?0:n.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ZR(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.computeIsFirstFeedItem=function(W){return W};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.Y.getCurrentLogo=function(W,k){if(W)return k?W.darkLogoImage:W.lightLogoImage};
_.Y.computeTitleStyle=function(W){var k;if((k=this.data)!=null&&k.title&&W&&W.textPrimary!==void 0)return"color:"+_.a8(W.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(W){var k;if((k=this.data)!=null&&k.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.a8(W.textSecondary)+";"};
_.Y.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton){var k;if(W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor)return"--yt-button-color:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";";var C,n,N,B;if((C=this.data.dismissButton)==null?0:(n=C.buttonRenderer)==null?0:(N=n.colorData)==null?0:(B=N.basicColorPaletteData)==null?0:B.foregroundTitleColor)return"--yt-button-color:"+_.a8(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.Y.computeOverflowButtonStyle=function(W){var k;if(this.data&&this.data.overflowButton&&(W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.Y.computeBackgroundStyle=function(W){if(W&&this.data){var k="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var C=_.$f((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);C&&(k+='background-image:url("'+C+'");')}W.backgroundColor!==void 0&&(k+="background-color:"+_.Xi(W.backgroundColor)+";");return k}};
_.Y.computeButton=function(){var W,k=Object.assign({},_.z((W=this.data)==null?void 0:W.showMoreButton,_.Vq));if(this.modern&&k){k.style="STYLE_DEFAULT";var C,n;if(W=(C=this.currentColorPalette)==null?void 0:(n=C.dismissButtonColorData)==null?void 0:n.foregroundTitleColor)k.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return k};
_.Y.shouldShowBottomButton=function(W,k){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&k<3};
_.Y.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.Y.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.Y.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.Y.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.Y.computeHasSectionHeader=function(W){return!!W.header};
_.Y.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.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 k;((k=this.data.dismissButton)==null?0:k.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var C,n;((C=this.data)==null?0:(n=C.primaryButton)==null?0:n.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.Y.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var k=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(k,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(k,this.slimItemsPerRow),k)):(this.visibleVideos=this.data.content.slice(0,Math.min(k,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(k,this.elementsPerRow),k)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(k,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(k,this.elementsPerRow),k)):(this.visibleVideos=this.data.content.slice(0,Math.min(k,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(k,this.elementsPerRow-1),k))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.Y.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var k;this.hasMovieRenderer=!!_.z((k=this.data)==null?void 0:k.content[0],_.aI8)}else this.hasMovieRenderer=!1};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.b(this.hiddenMediaRenderers),k=W.next();!k.done;k=W.next())k.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.S(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.Y.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.Y.logoWithPadding=function(W){var k,C,n;return(W=(k=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?!0:!1};
_.Y.onUpdateElementsPerRowAction=function(W,k,C){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);C&&this.slimItemsPerRow!==C&&(this.slimItemsPerRow=C)};
var Sv=IPB;Sv.prototype.slimItemsPerRowChanged=Sv.prototype.slimItemsPerRowChanged;Sv.prototype.elementsPerRowChanged=Sv.prototype.elementsPerRowChanged;Sv.prototype.dataChanged=Sv.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.md),_.O("design:type",Object)],Sv.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Sv.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Sv.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Sv.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Sv.prototype,"currentColorPalette",void 0);_.U([_.Z(),_.O("design:type",Array)],Sv.prototype,"visibleVideos",void 0);
_.U([_.Z(),_.O("design:type",Array)],Sv.prototype,"hiddenVideos",void 0);_.U([_.Z(),_.O("design:type",Object)],Sv.prototype,"primaryButton",void 0);_.U([_.Z({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],Sv.prototype,"elementsPerRow",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Sv.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Sv.prototype,"isExpanded",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Sv.prototype,"largeTitle",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Sv.prototype,"hasMovieRenderer",void 0);_.U([_.Z(),_.O("design:type",Number)],Sv.prototype,"slimItemsPerRow",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Sv.prototype,"showLightVideoMetadata",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Sv.prototype,"showDarkVideoMetadata",void 0);
_.U([_.Z(),_.O("design:type",Number)],Sv.prototype,"videoMetadataColor",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],Sv.prototype,"miniMode",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.O("design:type",Boolean)],Sv.prototype,"isFirstFeedItem",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.O("design:type",Boolean)],Sv.prototype,"hasSectionHeader",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],Sv.prototype,"roundedContainer",void 0);_.U([_.hh("#visible-video-container ytd-rich-grid-media"),_.O("design:type",Array)],Sv.prototype,"visibleMediaRenderers",void 0);_.U([_.hh("#hidden-video-container ytd-rich-grid-media"),_.O("design:type",Array)],Sv.prototype,"hiddenMediaRenderers",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Sv.prototype,"modern",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sv.prototype,"dataChanged",null);_.U([_.Hl("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sv.prototype,"elementsPerRowChanged",null);_.U([_.Hl("slimItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sv.prototype,"slimItemsPerRowChanged",null);
Sv=_.U([_.T({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Sv);
_.q(Sv,"ytd-brand-video-shelf-renderer",function(){if(c27!==void 0)return c27;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return c27=W},{mode:1});var Sw6;var MS$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(MS$,_.R);_.Y=MS$.prototype;_.Y.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.Y.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"}}}};
_.Y.dataChanged=function(){this.requestElementsPerRow();var W,k;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(k=this.data)==null?void 0:k.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.Y.computeIsFirstFeedItem=function(W){return W};
_.Y.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.Y.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.Y.getCurrentLogo=function(W,k){if(W)return k?W.darkLogoImage:W.lightLogoImage};
_.Y.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.Y.computeTitleStyle=function(W){var k;if((k=this.data)!=null&&k.title&&W&&W.textPrimary!==void 0)return"color:"+_.a8(W.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(W){var k;if((k=this.data)!=null&&k.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.a8(W.textSecondary)+";"};
_.Y.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton){var k;if(W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor)return"--yt-button-color:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";";var C,n,N,B;if((C=this.data.dismissButton)==null?0:(n=C.buttonRenderer)==null?0:(N=n.colorData)==null?0:(B=N.basicColorPaletteData)==null?0:B.foregroundTitleColor)return"--yt-button-color:"+_.a8(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.Y.computeOverflowButtonStyle=function(W){var k;if(this.data&&this.data.overflowButton&&(W==null?0:(k=W.dismissButtonColorData)==null?0:k.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.a8(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.Y.computeBackgroundStyle=function(W){if(W&&this.data){var k="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var C=_.$f((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);C&&(k+='background-image:url("'+C+'");')}W.backgroundColor!==void 0&&(k+="background-color:"+_.Xi(W.backgroundColor)+";");return k}};
_.Y.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.Y.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.Y.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.Y.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var k;if((k=this.currentColorPalette)==null?0:k.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var C;if((C=this.currentColorPalette)==null?0:C.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var n;if((n=this.data.dismissButton)==null?0:n.buttonRenderer){var N;if((N=this.currentColorPalette)==null?0:N.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.Y.logoWithPadding=function(W){var k,C,n;return(W=(k=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?!0:!1};
_.Y.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
var MB=MS$;MB.prototype.elementsPerRowChanged=MB.prototype.elementsPerRowChanged;MB.prototype.dataChanged=MB.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],MB.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],MB.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],MB.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MB.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],MB.prototype,"currentColorPalette",void 0);_.U([_.Z(),_.O("design:type",Object)],MB.prototype,"primaryButton",void 0);
_.U([_.Z({reflectToAttribute:!0,value:3}),_.O("design:type",Number)],MB.prototype,"elementsPerRow",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],MB.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],MB.prototype,"titleSize",void 0);_.U([_.Z(),_.O("design:type",Number)],MB.prototype,"videoMetadataColor",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],MB.prototype,"miniMode",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.O("design:type",Boolean)],MB.prototype,"isFirstFeedItem",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],MB.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.O("design:type",Boolean)],MB.prototype,"hasOverflowButton",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MB.prototype,"dataChanged",null);_.U([_.Hl("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MB.prototype,"elementsPerRowChanged",null);MB=_.U([_.T({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],MB);
_.q(MB,"ytd-brand-video-singleton-renderer",function(){if(Sw6!==void 0)return Sw6;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Sw6=W},{mode:_.UC("kevlar_poly_si_batch_j070")?1:2});var QFS;var p_Z=_.GM(function(W){var k=W.data;return _.t(_.pi,{data:function(){return k().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(k().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var C=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":C=88;break a;default:C=88}return C},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return k().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Ch"),ew7=_.GM(function(W){var k=W.metadataRow;
var C=W.delimiter;return _.t(_.bI,{each:function(){return k().textParts||[]},
keyBy:"INDEX"},function(n,N){return _.t(_.qf,null,_.t(_.Ya,{text:n,noWrap:!0,userInput:!0}),_.t(vbt,{delimiter:C,max:function(){return k().textParts.length},
index:N}))})},"Dh"),vbt=_.GM(function(W){var k=W.delimiter;
var C=W.max;var n=W.index;return _.t(_.NI,{cond:function(){return(k==null?void 0:k())&&C()-1>n()},
then:function(){return _.t("span",null,k)}})},"Eh"),sF$=_.GM(function(W){var k=W.data;
W={};return _.t("yt-profile-page-header-information-view-model",{class:_.Li("profile-page-header-information-view-model-wiz",(W["profile-page-header-information-view-model-wiz--mobile"]=!1,W))},_.t(_.NI,{cond:function(){return k().onTap},
then:function(){return _.t(_.NE,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.fi(k().onTap)}},_.t(_.Ex,{data:function(){return k().thumbnail}},{profilePageHeaderThumbnailViewModel:p_Z}))},
else:function(){return _.t("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.t(_.Ex,{data:function(){return k().thumbnail}},{profilePageHeaderThumbnailViewModel:p_Z}))}}),_.t("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.t(_.NI,{cond:function(){return k().onTap},
then:function(){return _.t(_.Ex,{data:function(){return k().title}},{profilePageHeaderTitleViewModel:function(C){var n=C.data;
return _.t(_.NE,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.fi(n().onTap)}},_.t(_.Ya,{text:function(){return n().title}}))}})},
else:function(){return _.t(_.Ex,{data:function(){return k().title}},{profilePageHeaderTitleViewModel:function(C){var n=C.data;
return _.t(_.Ya,{text:function(){return n().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.t(_.Ex,{data:function(){return k().metadata}},{profilePageHeaderMetadataViewModel:function(C){var n=C.data;
return _.t(_.NI,{cond:function(){return n().metadataRows},
then:function(N){return _.t("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.t(_.bI,{each:N,keyBy:"INDEX"},function(B,A){return _.t(_.qf,null,_.t(ew7,{metadataRow:B,delimiter:" \u2022 "}),_.t(vbt,{delimiter:" \u2022 ",max:function(){return N().length},
index:A}))}))}})}})))},"Fh");
sF$.idomCompat=!0;_.Gj(sF$,"yt-profile-page-header-information-view-model",{props:{data:_.Ik}});var GdY=function(){return _.R.apply(this,arguments)||this};
_.D(GdY,_.R);GdY.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var y2C=GdY;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],y2C.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],y2C.prototype,"data",void 0);y2C=_.U([_.T({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],y2C);
_.q(y2C,"ytd-effect-pivot-header-view-model",function(){if(QFS!==void 0)return QFS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return QFS=
W},{mode:1});var $r$;var Zzu=function(){return _.R.apply(this,arguments)||this};
_.D(Zzu,_.R);Zzu.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var Rwu=Zzu;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Rwu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rwu.prototype,"data",void 0);Rwu=_.U([_.T({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Rwu);
_.q(Rwu,"ytd-source-pivot-header-renderer",function(){if($r$!==void 0)return $r$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $r$=W},{mode:1});_.Gj(_.GM(function(W){var k=function(){return _.z(W.data().flowRoot,CUB)};
_.Ee(function(){var C=k(),n=function(){},N=function(){};
if(C){var B,A,w=(A=_.z((B=C.steps)==null?void 0:B[0],_.COT))==null?void 0:A.stepId;rsS(C,w||"");n=Pti(C);N=KXY(C)}_.fy(function(){n();n=function(){};
N();N=function(){}})});
return _.t("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.t(_.Umb,{contentId:function(){return W.data().contentId}},function(){return _.t("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.t(_.NI,{cond:k,
then:function(C){return _.t(_.vri,{data:C})}}))}))},"Gh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Ik}});_.Gj(_.GM(function(){return _.t("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.t("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.t("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.t(_.lzC,null)),_.t(_.WYs,{data:{rows:1},isExploreHub:!0}))},"Hh"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Gj(_.GM(function(W){var k=W.data;var C=W.standardUnitMinWidth;W=_.yE();var n=_.b((0,_.YIZ)(k)),N=n.next().value,B=n.next().value,A=function(){var x,E=(x=N())==null?void 0:x.contents;return E==null||E.length===0},w=function(){B(Object.assign({},N(),{contents:[]}))};
_.uT(W,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var x=_.z(k().chipsShelf,nbE);if(x!=null&&x!=null&&x.autoselectChipOnVisible){var E,a,X=_.z(x==null?void 0:(E=x.contents)==null?void 0:E[(a=x.autoselectedChipIndex)!=null?a:0],_.Iu);X&&X.tapCommand&&_.zj(X.tapCommand)}}});
return _.t("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:W},_.t(_.Umb,{contentId:function(){return k().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.t("div",null,_.t("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.t(_.Ex,{data:function(){return k().header}},{sectionHeaderViewModel:function(x){return _.t(_.$V,{data:x.data,
disableHorizontalPadding:!0})}})),_.t("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.t(_.Ex,{data:function(){return k().chipsShelf}},{chipsShelfViewModel:function(x){return _.t(_.Z$S,{data:x.data,
callback:w,enableSingleChipSelection:!0})}})),_.t("div",null,_.t(_.NI,{cond:A,
then:function(){return _.t("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.t(_.WYs,{data:{rows:1},isExploreHub:!0}))}}),_.t(_.Ex,{data:function(){var x;
return(x=N())==null?void 0:x.contents}},{richShelfRenderer:function(x){return _.t(_.BJA,{data:x.data,
isInnerShelf:!0,standardUnitMinWidth:C})}})))}))},"Ih"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Ik,
standardUnitMinWidth:_.Ik}});var obE=function(){return _.R.apply(this,arguments)||this};
_.D(obE,_.R);
obE.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}}};
obE.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var QV=obE;_.U([_.v(_.fk),_.O("design:type",Object)],QV.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],QV.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QV.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Number)],QV.prototype,"standardUnitMinWidth",void 0);QV=_.U([_.T({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],QV);
_.q(QV,"ytd-rich-section-renderer",function(){if(J2S!==void 0)return J2S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return J2S=W},{mode:_.UC("kevlar_poly_si_batch_j029")?
1:2});_.Gj(_.ceC,"yt-profile-identity-info-view-model",{props:{data:_.Ik,hideDivider:_.Ik}});_.Gj(_.zc$,"yt-page-header-view-model",{props:{data:_.Ik,noPadding:_.Ik,enableBanner:_.Ik,cinematicContainerTopbarOffset:_.Ik,allowCinematicContainerOverflow:_.Ik,displayAsSidebar:_.Ik,displayAsPanel:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=function(){var N;return(N=k().numColumns)!=null?N:2},n=function(){return C()>1?3:2};
W={};return _.t("ytd-rich-grid-group",{class:_.Li("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return k().colIndex===0},W)),
style:_.WJ({"--ytd-rich-grid-group-num-columns":C,"--ytd-rich-grid-items-per-group":n})},_.t("div",{class:"ytdRichGridGroupContents"},_.t(_.Ex,{data:function(){var N;return(N=k().contents)==null?void 0:N.slice(0,n())}},{richItemRenderer:function(N){return _.t(_.nsz,{data:N.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Jh"),"ytd-rich-grid-group",{props:{data:_.Ik}});var izi=function(){var W=_.R.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.m("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=
!1;W.showExploreHubContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.loggingRefactor=_.m("kevlar_rich_grid_logging_fix");W.resizeObserver=null;W.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"};W.rendererToTagNameMap=
new Map(Object.entries(W.contentMapping()).map(function(k){var C=_.b(k);k=C.next().value;C=C.next().value;return[k,C.component]}));
W.insertedContent=new Map;return W};
_.D(izi,_.R);_.Y=izi.prototype;_.Y.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.b(_.S(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),k=W.next();!k.done;k=W.next())k.value.useCompactList=this.useCompactList};
_.Y.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.b(_.S(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),k=W.next();!k.done;k=W.next())k=k.value,k.sizing=this.sizing,k.typographyBump=this.typographyBump};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.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]]"}}}};
_.Y.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}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.LO(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.Ox(this.resizeObserved,_.Oe("rich_grid_resize_delay_ms",50),this)};
_.Y.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.LO(this,this.onPageChange))};
_.Y.insertRichSection=function(W){var k=W.richItemTargetId;W=W.richSectionRendererToInsert;k&&W&&(this.insertedContent.set(k,W),this.reflowContent())};
_.Y.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Y.computeIsInlinePreviewEnabled=function(W,k,C){return _.m("web_disable_inline_preview")?!1:!C&&_.LI1({miniplayerIsActive:W,miniplayerPlaybackState:k})};
_.Y.computeSizing=function(){var W=_.rHK(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":_.m("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.Y.updateItemMinAndMaxWidth=function(){var W=_.Oe("rich_grid_max_item_width",500);W>0&&_.Op(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var k;W=this.getRichItemMinWidth((k=this.hostElement)==null?void 0:k.clientWidth);W>0&&_.Op(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.Y.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.Y.resizeObserved=function(){_.hA(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.Y.navigateBackToHome=function(){_.m("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.m("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var W=_.f().resolve(_.yF).isOnWatch(),k,C=((k=_.mCX(location.pathname))==null?void 0:k.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(C)||W)&&this.gnomeContents&&_.m("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);W&&this.exploreHubContents&&_.m("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.ZF().dispatch(_.jo({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.Y.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.m("disable_chip_select_on_nav")||_.hA(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.aM.addJob(function(){W.pageLoadingFromNavigation=!1;_.m("disable_chip_select_on_nav")&&_.m("h5_reset_cache_and_filter_before_update_masthead")&&W.resetCacheAndIsFilteredFeed();W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.m("web_hide_gnome_until_user_navigates_back_to_home")&&
(W.dataChanged(),_.ZR(W,function(){if(W.showGnomeContents){var k=Array.from(_.S(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(n){n=_.S(n).querySelector("ytd-rich-shelf-renderer");return!!n&&n.isGnomeShelf()});
if(k){k=k.offsetTop-W.contentsElement.offsetTop;var C=_.f().resolve(_.yF).getCurrentPage();C&&C.getPageScrollingElement().scrollTo({top:k,behavior:"smooth"})}}}));
_.m("web_hide_explore_hub_until_user_navigates_back_to_home")&&(W.dataChanged(),_.ZR(W,function(){if(W.showExploreHubContents&&!_.m("web_explore_hub_no_scroll")){var k=Array.from(_.S(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(n){return!!n.querySelector("ytd-talk-to-recs-flow-renderer")});
if(k){k=k.offsetTop-W.contentsElement.offsetTop;var C=_.f().resolve(_.yF).getCurrentPage();C&&C.getPageScrollingElement().scrollTo({top:k,behavior:"smooth"})}}}))},8)):((_.m("web_hide_gnome_until_user_navigates_back_to_home")||_.m("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.Y.dataChanged=function(){var W=this,k=_.Oe("web_rich_grid_row_margin",0);k>0&&_.Op(this.hostElement,{"--ytd-rich-grid-row-margin":k+"px"});_.hA(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.ZR(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.Op(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.Y.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var k;(k=this.resizeObserver)==null||k.disconnect();var C=!1;this.resizeObserver=new ResizeObserver(function(){if(C){var n;(n=W.resizeObserver)==null||n.disconnect();var N;(N=W.throttledOnResize)==null||N.fire();requestAnimationFrame(function(){var A;(A=W.throttledOnResize)==null||A.fire();W.initResizeObserver()})}else if(C=!0,W.resizeOnObserverInit){var B;
(B=W.throttledOnResize)==null||B.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.Y.contentLengthChanged=function(){if(_.m("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.hA(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.updateElementsPerRow=function(){_.hA(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.jo({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.jo({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.Y.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.Y.onRichShelfRendererCollapse=function(W){if(this.shownItems){var k=W.detail;W=this.shownItems.findIndex(function(n){var N,B;return((B=_.z(n==null?void 0:(N=n.richSectionRenderer)==null?void 0:N.content,_.q38))==null?void 0:B.trackingParams)===k});
var C=W+1;W<0||C>=this.contentsElement.children.length||!this.shownItems[C].richItemRenderer||this.contentsElement.children[C].scrollIntoView({behavior:"smooth",block:"start"})}};
_.Y.onSoftReloadPage=function(){this.scrollUpToTop()};
_.Y.handleRerenderDownloadsData=function(){_.m("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.Y.handlePlaylistRemoveVideosAction=function(W){var k;if(((k=_.z(W,_.w1s))==null?0:k.setVideoIds)&&this.data&&this.data.contents){W=_.z(W,_.w1s).setVideoIds;for(k=this.data.contents.length-1;k>=0;){var C=_.z(this.data.contents[k],_.X5);(C=C&&_.z(C.content,_.Dn))&&C.setVideoId&&W.includes(C.setVideoId)&&this.splice("data.contents",k,1);k--}this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.Go(String(W+1)))};
_.Y.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var k;return!((k=W.slice(0,this.getItemsPerRow()))==null||!k.some(function(C){var n;C=_.z(C==null?void 0:(n=C.richItemRenderer)==null?void 0:n.content,_.PuI);var N;return(C==null?void 0:C.inlinePlaybackEndpoint)&&(C==null?void 0:(N=C.thumbnailOverlays)==null?void 0:N.some(function(B){return B.thumbnailOverlayEndorsementRenderer}))}))};
_.Y.refreshGridLayoutNew=function(W,k,C,n){var N=n.postsPerRow;var B=n.slimItemsPerRow;var A=n.gameCardsPerRow;n=n.miniGameCardsPerRow;var w;if((w=this.data)==null||!w.contents||!this.containerWidth)return!1;var x;if((x=this.data.responsiveContainerConfiguration)==null?0:x.responsiveSize){var E=_.uQm(this.data.responsiveContainerConfiguration,this.containerWidth),a;w=_.Tn(Object.assign({},E,{standardUnitMinWidth:(a=this.data)==null?void 0:a.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&E.isCompactList)}else w=_.Tn({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(E=this.data)==null?void 0:E.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=w.typographyBump;a=!1;if(W||this.elementsPerRow!==w.numItems||this.postsPerRow!==N||this.slimItemsPerRow!==B||this.gameCardsPerRow!==
A||this.miniGameCardsPerRow!==n||this.gutter!==w.gutter)a=this.elementsPerRow!==w.numItems,this.elementsPerRow=w.numItems,this.postsPerRow=N,this.slimItemsPerRow=B,this.gameCardsPerRow=A,this.miniGameCardsPerRow=n,this.gutter=w.gutter,this.itemWidth=w.itemWidth,this.reflowContent(k),_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":w.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(C);this.ytdReduxBehavior.dispatch(_.jo({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:w.maxContainerWidth}));return a};
_.Y.refreshGridLayout=function(W,k){var C,n=(C=this.hostElement)==null?void 0:C.clientWidth;this.containerWidth=this.adjustRichGridWidth(n,!0);var N;if((N=this.data)==null||!N.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.m("rg_pending_reflow_ks")&&(W=!0,this.pendingForceReflow=!1);C=this.getRichItemMinWidth(n);var B=this.isShortsPanel?146:194,A=this.getMiniGameCardMinWidth(),w=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
n=C=this.calcElementsPerRow(C,w);(N=C<=3&&this.miniModeAllowed())&&(C=this.calcElementsPerRow(240,4));var x=this.calcMaxSlimElementsPerRow(C,w,this.isDefaultGrid);w=this.calcElementsPerRow(B,x);var E=this.calcElementsPerRow(this.isCompactGrid?B:154,x);B=this.calcElementsPerRow(this.isCompactGrid?B:A,x);A=!1;if(this.sizing)return this.refreshGridLayoutNew(W,k,N,{postsPerRow:n,slimItemsPerRow:w,gameCardsPerRow:E,miniGameCardsPerRow:B});if(W||this.elementsPerRow!==C||this.postsPerRow!==n||this.slimItemsPerRow!==
w||this.gameCardsPerRow!==E||this.miniGameCardsPerRow!==B)A=this.elementsPerRow!==C,this.elementsPerRow=C,this.postsPerRow=n,this.slimItemsPerRow=w,this.gameCardsPerRow=E,this.miniGameCardsPerRow=B,this.reflowContent(k),this.updateElementsPerRow(),_.Op(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)&&_.Op(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(N);_.hA(this.hostElement,"yt-rich-grid-layout-refreshed");return A};
_.Y.getRichItemMinWidth=function(W){var k=_.Oe("rich_grid_min_item_width",310);if(!_.m("kevlar_disable_min_width_override")){var C,n;k=(n=(C=this.data)==null?void 0:C.minItemWidth)!=null?n:k}return k+_.qsp(W)};
_.Y.calcMaxSlimElementsPerRow=function(W,k,C){return(C===void 0?0:C)?W===1?2:W%2===0?_.m("web_shorts_2_by_3_reduce_items_per_row")&&W>=4?W/2*3-1:W/2*3:_.m("web_shorts_2_by_3_reduce_items_per_row")&&W>=3?W+1:W+2:k*2};
_.Y.adjustRichGridWidth=function(W,k){var C=_.m("disable_rich_grid_guide_compensation");if(!this.isWatch&&!C){C=_.f().resolve(_.qI(_.J5));var n=C==null?void 0:C.guideElement;if(!(!C||C.getData()||n!=null&&n.opened||C.getMiniGuideVisible()))if(C.canFitPersistentGuide(W)&&C.getGuideExpandsAutomatically()){var N,B,A=Number((N=window.getComputedStyle(this.hostElement))==null?void 0:(B=N.getPropertyValue("--app-drawer-width"))==null?void 0:B.replace("px",""));W-=A||0}else if(C.canFitMiniGuide(W)){var w;
N=Number((A=window.getComputedStyle(this.hostElement))==null?void 0:(w=A.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:w.replace("px",""));W-=N||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=k?32:48));return W};
_.Y.calcElementsPerRow=function(W,k){var C=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),n=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((C+n)/(W+n))||1,k)};
_.Y.reflowContent=function(W){var k=this;if(!this.isReflowing){this.isReflowing=!0;var C,n,N=!!((C=this.data)==null?0:(n=C.contents)==null?0:n.some(function(V){return _.z(V,_.K6)}));
C=this.getItemsPerRow();var B;n=(B=this.data)==null?void 0:B.reflowOptions;W&&(_.cN("rgr_s"),_.ZR(this,function(){_.cN("rgr_nrf")}));
W={};(B=_.S(this.hostElement).querySelector("#contents"))&&(W={contentElement:B,rendererToTagNameMap:this.rendererToTagNameMap});B=(B=this.data.contents)?B.slice():[];var A=(_.m("web_hide_gnome_behind_feed_filter_chip")||_.m("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,w=_.m("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,x=-1,E=-1;if(this.isHomePage&&w){for(w=0;w<B.length;w++){var a=void 0,X=void 0;_.z((a=B[w])==null?void 0:
(X=a.richSectionRenderer)==null?void 0:X.content,kd7)&&(E=w)}E>-1&&(this.exploreHubContents=B.splice(E,1))}if(this.isHomePage&&A){for(E=0;E<B.length;E++)X=a=void 0,(w=_.z((a=B[E])==null?void 0:(X=a.richSectionRenderer)==null?void 0:X.content,_.q38))&&A&&(X=a=void 0,w=_.z((a=w)==null?void 0:(X=a.contents)==null?void 0:X[0],_.X5),a=void 0,_.z((a=w)==null?void 0:a.content,_.uzb)&&(x=E));x>-1&&(this.gnomeContents=B.splice(x,1))}var d=uS7(B,C,N,n,this.getRichGridStyle(),W,this.insertedContent);N=function(){k.shownItems=
d;k.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(d),_.ZR(this,N)):N()}};
_.Y.getFirstRowItems=function(W){for(var k=[],C=0;C<W.length;C++){var n=void 0,N=void 0,B=void 0,A=void 0,w=void 0,x=void 0;if(((n=W[C])==null?void 0:(N=n.richItemRenderer)==null?void 0:N.rowIndex)===0||((B=W[C])==null?void 0:(A=B.richGroupRenderer)==null?void 0:A.rowIndex)===0||((w=W[C])==null?void 0:(x=w.richSectionRenderer)==null?void 0:x.rowIndex)===0)k.push(W[C]);else break}return k};
_.Y.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.Y.handleChipCloudChipSelectAction=function(W,k){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.m("web_hide_gnome_behind_feed_filter_chip")&&(k?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.Y.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.m("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.Y.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.m("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.Y.terminateVideoPreview=function(){_.hA(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},k;if((k=this.data)==null?0:k.trackingParams)this.loggingRefactor?_.kf().stateChanged(this.data.trackingParams,W):(k=_.VM())&&_.oz(k,_.Yf(this.data.trackingParams),W);_.hA(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.miniModeAllowed=function(){return _.m("disable_channels_mini_mode")?!1:this.isChannelPage};
_.Y.getMiniGameCardMinWidth=function(){return 154};
_.Y.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.jo({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.Y.isCurrentPage=function(){return location.pathname===this.pagePath};
_.Y.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.f().resolve(_.yF).getCurrentPage();W&&W.setScrollTop(0)}};
_.Y.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.Y.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.Y.maybeSetBigYoodle=function(){var W,k=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==k&&(this.bigYoodleData=k)};
_.Y.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:_.m("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.Y.getRichGridStyle=function(){var W,k;return(k=(W=this.data)==null?void 0:W.style)!=null?k:"RICH_GRID_STYLE_UNKNOWN"};
_.Y.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,k=W.dispatch,C=this.getRichGridStyle();k.call(W,_.jo({type:"SET_RICH_GRID_STYLE",payload:C}))};
_.oq.Object.defineProperties(izi.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.f().resolve(_.yF).getCurrentPage(),k,C,n;return(((k=this.data)==null?void 0:k.targetId)==="browse-feedFEsfv_audio_pivot"||_.m("web_enable_channel_pivot_panel")&&((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_channel_pivot"||_.m("web_enable_effect_pivot_panel")&&((n=this.data)==null?void 0:n.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.m("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.f().resolve(_.yF).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.f().resolve(_.yF).getCurrentPage())==null?void 0:W.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 W;return this.hideChipsBar||(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.m("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.m("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((k=this.data)==null?0:(C=k.responsiveContainerConfiguration)==null?0:C.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Oe("web_continuation_handler_margin",0):0}}});
var p4=izi;p4.prototype.onIsShortsGridChange=p4.prototype.onIsShortsGridChange;p4.prototype.onReloadContinuationFinish=p4.prototype.onReloadContinuationFinish;p4.prototype.reflowContent=p4.prototype.reflowContent;p4.prototype.handleRerenderDownloadsData=p4.prototype.handleRerenderDownloadsData;p4.prototype.onRichShelfRendererCollapse=p4.prototype.onRichShelfRendererCollapse;p4.prototype.onRequestElementsPerRow=p4.prototype.onRequestElementsPerRow;p4.prototype.contentLengthChanged=p4.prototype.contentLengthChanged;
p4.prototype.dataChanged=p4.prototype.dataChanged;p4.prototype.onSizingChange=p4.prototype.onSizingChange;p4.prototype.onUseCompactListChange=p4.prototype.onUseCompactListChange;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],p4.prototype,"ironResizableBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],p4.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],p4.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],p4.prototype,"componentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],p4.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],p4.prototype,"miniMode",void 0);_.U([_.Z({value:[]}),_.O("design:type",Array)],p4.prototype,"shownItems",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],p4.prototype,"isReflowing",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],p4.prototype,"isFilteredFeed",void 0);_.U([_.Z({selector:_.Qrm}),_.O("design:type",Boolean)],p4.prototype,"guideIsExpanded",void 0);
_.U([_.Z({selectorArgs:["entitySelectorType"],selector:function(W,k){if(_.m("kevlar_modern_downloads_page")&&k&&k!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(k){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var C=W.entities;k=_.aY(C);var n=_.XD(C),N=_.jrz(W),B=_.LSX(W);W=_.HEP(W);var A=_.zjX(C),w=_.wn(k);C=_.f5(C);return _.$AI(k,n,A,N,B,w,C,W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return k=_.aY(W.entities),_.R1w(k);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return k=
_.XKz(W.entities),_.o52(k);default:_.zJ(new _.AM("Error: entitySelectorType defined but not matched in selector.",W,k))}}}),
_.O("design:type",Object)],p4.prototype,"entityDrivenRichGridData",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"resizeOnObserverInit",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"bigYoodleData",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"mastheadData",void 0);_.U([_.Z(),_.O("design:type",Boolean)],p4.prototype,"isInlinePreviewDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"disableStickyFilterBar",void 0);
_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"transparentBackgroundChipsBar",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p4.prototype,"hideChipsBar",void 0);_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"isWatchDefaultLayout",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p4.prototype,"continuationShowButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p4.prototype,"rowReducedHorizontalMargin",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p4.prototype,"useCompactList",void 0);_.U([_.Z({selector:function(W){return _.XD(W.entities).length>0}}),
_.O("design:type",Object)],p4.prototype,"manualDownloadsPresent",void 0);_.U([_.Z({selector:function(W){return _.aY(W.entities).length>0}}),
_.O("design:type",Object)],p4.prototype,"smartDownloadsPresent",void 0);_.U([_.Z({selector:_.LSX}),_.O("design:type",Object)],p4.prototype,"shouldRenderDownloadsBanner",void 0);_.U([_.Z({selector:_.jrz}),_.O("design:type",Object)],p4.prototype,"hasOptedIntoSmartDownloads",void 0);_.U([_.Hl("useCompactList"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"onUseCompactListChange",null);
_.U([_.Hl("sizing","typographyBump"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"onSizingChange",null);_.U([_.Z({selector:_.GRJ}),_.O("design:type",Number)],p4.prototype,"miniplayerPlaybackState",void 0);_.U([_.Z({selector:_.zo}),_.O("design:type",Boolean)],p4.prototype,"miniplayerIsActive",void 0);
_.U([_.Z({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.O("design:type",Boolean)],p4.prototype,"isInlinePreviewEnabled",void 0);_.U([_.Z({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.O("design:type",String)],p4.prototype,"sizing",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p4.prototype,"elementsPerRow",void 0);
_.U([_.Z(),_.O("design:type",Object)],p4.prototype,"typographyBump",void 0);_.U([_.Z(),_.O("design:type",Number)],p4.prototype,"itemWidth",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],p4.prototype,"headerElement",void 0);_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],p4.prototype,"contentsElement",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"dataChanged",null);
_.U([_.Cq("data.contents.length"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"contentLengthChanged",null);_.U([_.jI("yt-request-elements-per-row"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"onRequestElementsPerRow",null);
_.U([_.jI("yt-rich-shelf-renderer-collapse"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],p4.prototype,"onRichShelfRendererCollapse",null);_.U([_.Cq("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"handleRerenderDownloadsData",null);
_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],p4.prototype,"entitySelectorType",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isSub",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isWatch",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isShortsPanel",null);_.U([_.Z({reflectToAttribute:!0}),_.G("isWatch"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"reducedTopMargin",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data","isWatch","isWatchDefaultLayout"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"noTopMargin",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("isInlinePreviewEnabled","shownItems"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"topRowEndorsement",null);_.U([_.G("data.header"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"hideHeader",null);_.U([_.jI("yt-rich-grid-reflow"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],p4.prototype,"reflowContent",null);
_.U([_.jI("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"onReloadContinuationFinish",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isSlimGrid",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isShortsGrid",null);
_.U([_.G("data","isSlimGrid","isShortsGrid"),_.Z(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"noRichItemGutterMargins",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isShortsGridSlim",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isCompactGrid",null);
_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"isDefaultGrid",null);_.U([_.G("data.targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"hideChipsBarOnHome",null);_.U([_.G("data.targetId"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"hideChipsBarOnWatch",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p4.prototype,"onIsShortsGridChange",null);_.U([_.G("data.enableContentSpecificAspectRatio"),_.Z(),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p4.prototype,"force16By9ThumbnailAspectRatio",null);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],p4.prototype,"continuationTriggerOffset",null);p4=_.U([_.T({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],p4);
_.q(p4,"ytd-rich-grid-renderer",function(){if(fP$!==void 0)return fP$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return fP$=W},{mode:2});var TG6;var qw7;var uA7=function(){return _.R.apply(this,arguments)||this};
_.D(uA7,_.R);var UrS=uA7;_.U([_.Z(),_.O("design:type",Object)],UrS.prototype,"data",void 0);UrS=_.U([_.l0({is:"yt-alert-renderer",disableElementRegistration:!0})],UrS);
_.q(UrS,"yt-alert-renderer",function(){if(qw7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;TG6===void 0&&(TG6=document.createElement("template"));var n=TG6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);qw7=W}W=qw7;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.tct=_.GM(function(W){var k=_.rE(),C=_.f().resolve(_.Sc);_.lI(function(){requestAnimationFrame(function(){var N;(N=k.lottieEl)==null||N.addEventListener("DOMLoaded",function(){var B;(B=W.onLottieLoaded)==null||B.call(W)})})});
var n={};return _.t("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var N;return((N=W.data)==null?void 0:N.call(W).targetId)||""}},_.t(_.jc,{className:_.Li((n.ytChatLoadingViewModelRtl=C==="rtl",n)),
animationName:"YOUCHAT_LOADER",data:function(){var N;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:(N=W.data)==null?void 0:N.call(W).animationUrl}}},
animationRef:k}))},"Kf");
}catch(e){_._DumpException(e)}
try{
_.OMT=function(W,k){var C,n;k=k===void 0?{}:k;var N,B,A,w,x,E,a,X,d,V,c,M;return _.F(function(p){switch(p.nextAddress){case 1:N=k;B=N.shouldWrap===void 0?!0:N.shouldWrap;A=N.skipTransitionTimeoutMs===void 0?300:N.skipTransitionTimeoutMs;w=N.beforeTransition;x=N.afterTransition;if(!B||!document.startViewTransition||document.visibilityState==="hidden")return p.return(W());C=window.innerWidth;n=window.innerHeight;E=!1;(a=w)==null||a();_.F0(p,2);X=document.startViewTransition(W);d=setTimeout(function(){X.skipTransition();
E=!0},A);
return _.l(p,X.ready,4);case 4:return clearTimeout(d),_.l(p,X.finished,5);case 5:clearTimeout(d);(V=x)==null||V();_.M7(p,0);break;case 2:c=_.EF(p),(M=x)==null||M(),c&&!E&&document.visibilityState!=="hidden"&&C===window.innerWidth&&n===window.innerHeight&&_.dI(c),_.ab(p)}})};
_.l3=function(W){return W.watch.isTheaterMode};
_.LwY=function(W){var k=_.wu("DIV");W&&(k.className=W);k.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.wu("DIV");_.RrS(W,"200px","200px");k.appendChild(W);document.body.appendChild(k);W=k.offsetWidth-k.clientWidth;_.xL(k);return W};
_.tF=function(){for(var W=Array(36),k=0,C,n=0;n<36;n++)n==8||n==13||n==18||n==23?W[n]="-":n==14?W[n]="4":(k<=2&&(k=33554432+Math.random()*16777216|0),C=k&15,k>>=4,W[n]=_.Afs[n==19?C&3|8:C]);return W.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 j91=_.iH(['<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>']),
HM7=_.gSA(j91);HM7.setAttribute("style","display: none;");document.head.appendChild(HM7.content);_.EP=_.hlK(_.LwY);var rBZ;var gIB;var PTE=function(){var W=_.R.apply(this,arguments)||this;W.icon=null;return W};
_.D(PTE,_.R);PTE.prototype.dismiss=function(){_.Pe(this.hostElement,"yt-live-chat-error-message-dismiss")};
PTE.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
var aG=PTE;_.U([_.Z(),_.O("design:type",Object)],aG.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon(data.icon)"}),_.O("design:type",Object)],aG.prototype,"icon",void 0);aG=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],aG);
_.q(aG,"yt-live-chat-error-message-renderer",function(){if(gIB===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;rBZ===void 0&&(rBZ=document.createElement("template"));var n=rBZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);gIB=W}W=gIB;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var qSz,u6_,Uu7,O7l,LiN,sN,KiG,h$_,W_e,kiz,C5j,n33,$s,NjL,Yza,BjN,bL_,AoL,F_N,w6L,xao,llj,tNG,E3L,al5,X6r,flG,daL,maN,zr7,Daj,VN6,Jol,co6,IlG,Szr,MNa,Qea,p6r,v3o,erl,yoL,ZLj,o3i,iL5,Tje,qz7,sel,Gir,OLL,L_a,je5,HLz,roj,u7L,K_3;qSz=function(W,k,C){k=k===void 0?5:k;if(k!==0){var n=typeof W==="function"?W():document.querySelector(W);n?(C==null?0:C.enableSmartFocus)?_.vg2(n):n.focus():setTimeout(function(){qSz(W,k-1,C)},500)}};
u6_=function(W,k){return _.hQ(W.entities,"timedMarkersListSyncEntity",k)};
Uu7=function(W,k){return _.hQ(W.entities,"liveReactionsDataEntity",k)};
O7l=function(W,k){W=_.hQ(W.entities,"booleanEntity",k);return!(!W||!W.value)};
LiN=function(W,k){var C=_.VM();C&&W&&_.sr(C,_.Yf(W),k)};
_.j1o=function(){_.m("web_watch_log_theater_mode")&&_.AJK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.H7G=function(W,k,C){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var n=new Date(0),N=new Date(0);n.setUTCMilliseconds(k);N.setUTCMilliseconds(C);return W.replace("START_TIME_PLACEHOLDER",_.p5(n,7)).replace("END_TIME_PLACEHOLDER",_.p5(N,7))};
sN=function(W){return W.watch.isWatchActive};
_.GG=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.rtN=function(W){return W.watch.watchWindowSize};
_.gBj=function(W){return _.l3(W)||_.GG(W)||_.txP(W)};
_.PEL=function(W){return!_.gBj(W)};
_.ys=function(W){return W.watch.watchScrollTop};
KiG=function(W){return W.watch.isLiveChatCollapsed};
h$_=function(W){return W.watch.openEngagementPanels};
W_e=function(W){switch(W){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}};
kiz=function(W,k,C){var n=_.fi(C);W&&k&&n&&W.getPlayerPromise().then(function(N){_.DGm(n)&&_.fM();(new _.Jc(N)).executeCommand(n,k);_.m("continue_playback_on_desktop_companion_click")||N.pauseVideo()})};
C5j=function(W){var k=_.Zf(),C;if(C=_.QK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;C=(n=C())==null?void 0:n.layoutId}else C=null;kiz(k,C,W)};
n33=function(W){var k=_.Zf(),C;if(C=_.QK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;C=(n=C())==null?void 0:n.layoutId}else C=null;kiz(k,C,W)};
$s=function(W,k){var C=W<0?"-":"";W=Math.abs(W);var n=Math.floor(W/3600),N=Math.floor(W)%3600,B=Math.floor(N/60);N=Math.floor(N)%60;var A="";(k===void 0?0:k)&&(A="."+Math.round((W-Math.floor(W))*10));return n>0?C+n+":"+(B<10?"0"+B:""+B)+":"+(N<10?"0"+N:""+N)+A:C+B+":"+(N<10?"0"+N:""+N)+A};
NjL=function(W){var k=W.match(/[^0-9:\.]/g);if(k&&k.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;k=1;for(var C=0;W.length>0;){var n=W.pop();if(n===void 0)break;var N=Number(n);if(n===""||isNaN(N))return null;C+=N*k;k*=60}return C};
Yza=function(W,k,C,n){W=Math.max(C,W);k=Math.min(k,n-C);W+k>n?(C=n,W=C-k):C=W+k;return{start:W,end:C}};
BjN=function(W,k,C,n,N,B){W<C?W=C:W+N>n&&(W=n-N);k>n&&(k=n);k=Math.min(W+B,Math.max(W+N,k));return{start:W,end:k}};
bL_=function(W,k,C,n,N,B){k>n?k=n:k-N<C&&(k=C+N);W<C&&(W=C);W=Math.min(k-N,Math.max(k-B,W));return{start:W,end:k}};
AoL=function(W){return _.m("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
F_N=function(W){return _.m("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
w6L=function(W){var k=_.Zf(),C;if(C=_.QK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;C=(n=C())==null?void 0:n.layoutId}else C=null;kiz(k,C,W)};
xao=function(W,k){return _.hQ(W.entities,"youchatPendingResponseEntity",k)};
llj=function(W){return function(k){_.Q3(_.Nj("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:k}))}};
tNG=function(W,k){return _.hQ(W.entities,"booleanEntity",k)};
E3L=function(){return function(W){_.Q3(_.Nj("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
al5=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};
X6r=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
flG=function(W,k){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:k}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
daL=function(W){var k=_.Zf(),C;C=(C=_.QK("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.layoutId:null;kiz(k,C,W)};
maN=function(W){var k=_.Zf(),C;C=(C=_.QK("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.layoutId:null;kiz(k,C,W)};
zr7=function(W,k){k=k===void 0?!1:k;if(W.simpleText)W=[{text:W.simpleText}];else{var C;W=((C=W.runs)!=null?C:[]).map(function(n){return Object.assign({},n)})}if(k)for(k=_.b(W),C=k.next();!C.done;C=k.next())C.value.bold=!0;
return W};
Daj=function(W){var k=W.startEndTimeTemplate,C=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(k&&C&&W)return _.Go(_.H7G(_.y4(k),Number(C),Number(W)))};
VN6=function(W,k){var C,n,N=W==null?void 0:(C=W.viewCount)==null?void 0:(n=C.videoViewCountRenderer)==null?void 0:n.shortViewCount;if(!k&&N)return N;var B,A;return W==null?void 0:(B=W.viewCount)==null?void 0:(A=B.videoViewCountRenderer)==null?void 0:A.viewCount};
Jol=function(W,k){var C=W==null?void 0:W.relativeDateText;return!k&&C?[C,!0]:[W==null?void 0:W.dateText,!1]};
co6=function(W,k,C,n,N){n=n===void 0?!0:n;N=N===void 0?"":N;var B=VN6(W,k),A=_.b(Jol(W,k)),w=A.next().value;A=A.next().value;k=k?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var x=[];C&&B&&x.push(B);!C&&A||!w||x.push(w);W=[].concat(_.J8(x),[k,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?Daj(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(E){return!!E});
C={runs:[]};for(B=0;B<W.length;B++)C.runs.push.apply(C.runs,_.J8(zr7(W[B],n))),B<W.length-1&&C.runs.push({text:" "+N+" ",bold:n});return C};
IlG=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
Szr=function(W){var k,C,n,N;if(W=W==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.results)==null?void 0:(N=n.results)==null?void 0:N.contents){var B,A;return(A=(B=W.find(function(w){return!!w.videoPrimaryInfoRenderer}))==null?void 0:B.videoPrimaryInfoRenderer)==null?void 0:A.updatedMetadataEndpoint}};
MNa=function(W,k){var C;return(C=W.sourceConfigs)==null?void 0:C.find(function(n){return n.videoId===k})};
Qea=function(W){return W==="End of video"||W==="End of playlist"};
p6r=function(W){var k,C,n,N;return(k=W.getWatchNextResponse())==null?void 0:(C=k.contents)==null?void 0:(n=C.twoColumnWatchNextResults)==null?void 0:(N=n.playlist)==null?void 0:N.playlist};
v3o=function(W){var k,C,n,N,B,A;return(k=p6r(W))==null?void 0:(C=k.playlistButtons)==null?void 0:(n=C.menuRenderer)==null?void 0:(N=n.topLevelButtons)==null?void 0:(B=N[0])==null?void 0:(A=B.playlistLoopButtonRenderer)==null?void 0:A.playlistLoopStateEntityKey};
erl=function(W){var k=_.f().resolve(_.J4),C;return(k=(C=_.z(k.getAutoplayEndpoint(),_.RA))==null?void 0:C.playlistId)&&k===W};
yoL=function(W,k,C,n,N){function B(){_.aM.cancelJob(Zw);var A=sel(k,C/W.getPlaybackRate()),w=A.hours,x=A.minutes;A=(A.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(Gir(w,x));n&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(Gir(w,x,!0));(w>0||x>0)&&!N&&(Zw=_.bX(_.aM,B,A))}
_.aM.cancelJob(Zw);Zw=_.bX(_.aM,B)};
ZLj=function(W,k,C){function n(){_.aM.cancelJob($aj);var N=sel(k,C),B=N.hours;N=N.minutes;var A=6E4/W.getPlaybackRate();if(B>0||N>0)W.setSleepTimerTimeLeft(Gir(B,N,!0)),$aj=_.bX(_.aM,n,A)}
_.aM.cancelJob($aj);$aj=_.bX(_.aM,n)};
o3i=function(W,k){var C=W.getVolume()/(k/500),n=function(N){_.aM.cancelJob(Rro);var B=Math.floor(N-C);W.setVolume(B,!1);B>0&&(Rro=_.bX(_.aM,function(){n(B)},500))};
_.aM.cancelJob(Rro);Rro=_.bX(_.aM,function(){n(W.getVolume())})};
iL5=function(W,k){_.aM.cancelJob(Rro);k&&W.syncVolume()};
Tje=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.w8("SLEEP_TIMER_DISRUPTED")}}}}};_.f().resolve(_.uI).resolveCommand(W)};
qz7=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
sel=function(W,k){W=W+k-(0,_.oX)();if(W<=0)return{hours:0,minutes:0,seconds:0};var C=new u7L(0,0,0,0,0,0,W);W=C.getHours();k=C.getMinutes();C=C.getSeconds();C!==0&&k++;k!==0&&k%60===0&&(W++,k=0);return{hours:W,minutes:k,seconds:C}};
Gir=function(W,k,C){return W>0&&k>0?C?_.w8("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:k.toString()}):_.w8("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:k.toString()}):W>0?C?_.xQ("TIME_LEFT_HOURS",W):_.xQ("TIME_HOURS",W):C?_.w8("TIME_LEFT_MINUTES",{minutes:k.toString()}):_.w8("TIME_MINUTES",{minutes:k.toString()})};
OLL=function(W,k){if(W.timelyActions)return W.timelyActions.find(function(C){var n;return((n=_.z(C,Ua7))==null?void 0:n.cueRangeId)===k})};
L_a=function(W){var k=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Kx(W);W.keyMap_.forEach(function(C,n){_.ZX(k,n)||this.remove(n)},W)};
je5=function(W,k){W.reloadContinuationItemsCommandMatcher=k};
_.RD=function(W,k){W.insertBefore(k,W.childNodes[0]||null)};
HLz=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.Nb&&W==0)return!0;switch(W){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 _.nr;default:return!1}};
roj=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(HLz(W.keyCode))return!0;switch(W.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!_.nr;default:return W.keyCode<166||W.keyCode>183}};
u7L=function(W,k,C,n,N,B,A){this.date=typeof W==="number"?new Date(W,k||0,C||1,n||0,N||0,B||0,A||0):new Date(W&&W.getTime?W.getTime():_.gk())};
_.Pq(u7L,_.lP);_.Y=u7L.prototype;_.Y.getHours=function(){return this.date.getHours()};
_.Y.getMinutes=function(){return this.date.getMinutes()};
_.Y.getSeconds=function(){return this.date.getSeconds()};
_.Y.getMilliseconds=function(){return this.date.getMilliseconds()};
_.Y.getUTCDay=function(){return this.date.getUTCDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.Y.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.Y.setHours=function(W){this.date.setHours(W)};
_.Y.setMinutes=function(W){this.date.setMinutes(W)};
_.Y.setSeconds=function(W){this.date.setSeconds(W)};
_.Y.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.Y.setUTCHours=function(W){this.date.setUTCHours(W)};
_.Y.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.Y.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.Y.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.Y.add=function(W){_.lP.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.Y.JSC$9095_toIsoString=function(W){var k=_.lP.prototype.JSC$9095_toIsoString.call(this,W);return W?k+"T"+_.jt(this.getHours(),2)+":"+_.jt(this.getMinutes(),2)+":"+_.jt(this.getSeconds(),2):k+"T"+_.jt(this.getHours(),2)+_.jt(this.getMinutes(),2)+_.jt(this.getSeconds(),2)};
_.Y.equals=function(W){return this.getTime()==W.getTime()};
_.Y.toString=function(){return this.JSC$9095_toIsoString()};
_.Y.clone=function(){var W=new u7L(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.g3N=function(W){return _.jo({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
_.P55=function(W){return _.jo({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
K_3=new _.r("imageTileRenderer");var hr3=new _.r("adGridCardCollectionViewModel");var WR5=new _.r("carouselTitleViewModel");var ktN=new _.r("ctaCarouselItemViewModel");var CM5=new _.r("textFieldViewModel");_.nOr=new _.r("engagementPanelHeaderShowNavigationButtonCommand");var NTL=new _.r("hideEngagementPanelScrimAction");var YFN=new _.r("setActivePanelItemAction");var BTL=new _.r("showEngagementPanelScrimAction");var bga=new _.r("updateEngagementPanelAction");var A8N=new _.r("updateSearchInVideoResultsAction");var FRa=new _.r("transcriptCueGroupRenderer");var wXr=new _.r("transcriptCueRenderer");var x9G=new _.r("transcriptFooterRenderer");var le_=new _.r("engagementPanelAdSubtitleRenderer");var ti_=new _.r("videoDescriptionFantasySectionViewModel");var EO7=new _.r("deleteClipEngagementPanelCommand");var ae7=new _.r("loopCommand");var XX7=new _.r("changeCreatorEndscreenVisibilityCommand");var fei=new _.r("liveChatCallForQuestionsRenderer");var d9L=new _.r("updateTimedMarkersSyncObserverCommand");var Ua7=new _.r("timelyActionViewModel");var m95=new _.r("timelyActionsOverlayViewModel");var zao=new _.r("repeatChapterCommand");var D9z=new _.r("watchPlayerOverflowMenuCommand");var Vii=new _.r("compositeVideoOverlayRenderer");var J8G=new _.r("sortFilterSubMenuRenderer");var c8_=new _.r("horizontalShelfViewModel");var Iez=new _.r("switchListItemViewModel");var SFl=new _.r("inputComposerViewModel");var Mia=new _.r("transcriptEditSegmentCommand");var Qbz=new _.r("transcriptUpdateSegmentTextCommand");var pXj=new _.r("transcriptSearchBoxRenderer");var vO3=new _.r("transcriptSegmentListRenderer");var eaN=new _.r("transcriptSegmentRenderer");_.sbj=new _.r("updateDateTextAction");var Gta=new _.r("updateTitleAction");var y8z=new _.r("updateViewershipAction");var $9G=new _.r("carouselLockupRenderer");var Zgr=new _.r("expandableVideoDescriptionBodyRenderer");var Ra_=new _.r("videoDescriptionYouchatSectionViewModel");var oO5=new _.r("conversationResourceViewModel");_.oD=_.Oe("kevlar_watch_page_horizontal_margin",24);_.igL=_.Oe("kevlar_watch_page_columns_top_padding",24);_.TTj=_.Oe("web_screen_width_midpoint",1500);_.qFa=_.Oe("web_watch_sidebar_width_offset_per_100",10);_.u0L=426+_.oD*2;_.il=_.Oe("kevlar_watch_two_column_width_threshold",1E3);_.U9_=_.oD*2;_.TG=_.Oe("kevlar_watch_secondary_width",402);_.Og3=_.Oe("kevlar_watch_secondary_max_width",600);_.LR3=_.Oe("kevlar_watch_max_player_width",1280);_.jb3=_.Oe("kevlar_watch_flexy_metadata_height",136);
_.Hg6=_.U9_+310+_.oD;_.r8L=_.U9_+360+_.oD;var gOe={PAUSE_CHAT:18};var PMG;var KRe;var haz=function(){return _.R.apply(this,arguments)||this};
_.D(haz,_.R);haz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
haz.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.z(this.data.button,_.aS);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.oq.Object.defineProperties(haz,{template:{configurable:!0,enumerable:!0,get:function(){if(KRe===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;PMG===void 0&&(PMG=document.createElement("template"));var n=PMG;C.call(k,n.content.cloneNode(!0),W.content.firstChild);KRe=W}W=KRe;return W}}});
var q_=haz;_.U([_.v(_.Xe),_.O("design:type",Object)],q_.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({selectorArgs:["data.enabledEntityKey"],selector:O7l,observer:"onEnabledChange"}),_.O("design:type",Boolean)],q_.prototype,"enabled",void 0);_.U([_.Z(),_.O("design:type",Object)],q_.prototype,"data",void 0);
q_=_.U([_.l0({is:"yt-disableable-button-view-model",noInjection:!0})],q_);var WDe;var kli;var CB_=["transVert01","transVert02","transVert03"],n05="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),NP3=function(){var W=_.R.apply(this,arguments)||this;W.emojiManager=_.Dp;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.D(NP3,_.R);_.Y=NP3.prototype;_.Y.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.Y.desktopFountainEmojiSizePxChanged=function(){_.Op(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.Y.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.Y.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Nj("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.J8(this.emojiContainer.children)).forEach(function(k){k.remove()})};
_.Y.detached=function(){this.cleanupFountain()};
_.Y.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.JU.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.Y.processEmojiBucket=function(W){var k=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var C=this.reactionBuckets[W];this.generateEmojiAnimations(C);if(W<this.reactionBuckets.length-1){var n;if(C==null?0:(n=C.duration)==null?0:n.seconds)this.emojiBucketTimerId=setTimeout(function(){k.processEmojiBucket(W+1)},Number(C.duration.seconds)*1E3)}}};
_.Y.generateEmojiAnimations=function(W){var k=this,C=this.getRandomEmojiIdFromBucketWithOverride(W);if(C&&C!==this.noEmojiIdentifier){var n=0;W.targetEps?(n=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(C,!1,W.emojiAnimationMs,n),n=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(C),n=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){k.generateEmojiAnimations(W)},n)}};
_.Y.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var k=W.totalReactions,C=1,n=_.b(W.reactionsData),N=n.next();!N.done;N=n.next())N=N.value,(N.reactionWeightOverride||N.reactionWeightOverride===0)&&N.reactionCount&&(k-=N.reactionCount,C-=N.reactionWeightOverride);n=!0;C<0&&(n=!1,k=W.totalReactions,C=1);if(n&&C>0&&k===0)if(C===1){N=0;for(var B=_.b(W.reactionsData),A=B.next();!A.done;A=B.next())A=
A.value,A.reactionCount&&A.reactionCount>0&&N++;N=1/N;B=_.b(W.reactionsData);for(A=B.next();!A.done;A=B.next())A.value.reactionWeightOverride=N}else for(N=1/(1-C),B=_.b(W.reactionsData),A=B.next();!A.done;A=B.next())A=A.value,A.reactionWeightOverride&&(A.reactionWeightOverride*=N);N=Math.random();B=0;A=_.b(W.reactionsData);for(var w=A.next();!w.done;w=A.next())if(w=w.value,w.reactionCount&&(B=(w.reactionWeightOverride||w.reactionWeightOverride===0)&&n?B+w.reactionWeightOverride:B+C*w.reactionCount/
k,B>N&&(w.reactionCount--,W.totalReactions--,w=this.reactionItemToEmojiString(w),w!==this.noEmojiIdentifier)))return w;return this.noEmojiIdentifier};
_.Y.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.Y.createEmojiAnimation=function(W,k,C,n){k=k===void 0?!1:k;this.lastEmojiRequestedForTesting=W;var N=W.startsWith("yt-icons:"),B=_.m1(this.emojiManager,W);if(B||N){var A=document.createElement("emoji");A.classList.add("yt-emoji-fountain-view-model");A.classList.add(CB_[Math.floor(Math.random()*CB_.length)]);var w=document.createElement("div");w.classList.add("yt-emoji-fountain-view-model");w.classList.add("horizontal-container");w.classList.add(n05[Math.floor(Math.random()*n05.length)]);k?(C=document.createElement("div"),
C.classList.add("user-reaction-bubble"),C.classList.add("yt-emoji-fountain-view-model"),w.appendChild(C)):(C&&(A.style.animationDuration=C+"ms",w.style.animationDuration=C+"ms"),n&&(A.style.width=n+"px",A.style.height=n+"px"));N?(N=document.createElement("yt-icon"),N.polymerController.icon=W,n&&(N.style.width=n+"px",N.style.height=n+"px"),W=N):W=this.emojiManager.createEmoji(B,!1);W.classList.add("yt-emoji-fountain-view-model");w.appendChild(W);A.appendChild(w);this.emojiContainer.appendChild(A);
A.addEventListener("animationend",function(){A.remove()});
var x,E;if((x=this.data)==null?0:(E=x.loggingDirectives)==null?0:E.trackingParams)k=k?_.F8(183501):_.F8(183500),LiN(this.data.loggingDirectives.trackingParams,k),_.vUX(k);setTimeout(function(){A&&A.remove()},2E3)}};
_.Y.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.Y.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.Y.linearInterpolateBounded=function(W,k,C,n,N){N=Math.min(Math.max(N,W),C);return(k*(C-N)+n*(N-W))/(C-W)};
var ul=NP3;ul.prototype.onEmojiFountainDataEntityUpdate=ul.prototype.onEmojiFountainDataEntityUpdate;ul.prototype.desktopFountainEmojiSizePxChanged=ul.prototype.desktopFountainEmojiSizePxChanged;ul.prototype.isActiveChanged=ul.prototype.isActiveChanged;_.U([_.Z(),_.O("design:type",_.dL)],ul.prototype,"emojiManager",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.Xe),_.O("design:type",Object)],ul.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ul.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,k){return _.hQ(W.entities,"emojiFountainDataEntity",k)}}),
_.O("design:type",Object)],ul.prototype,"emojiFountainData",void 0);_.U([_.Z(),_.O("design:type",Boolean)],ul.prototype,"isActive",void 0);_.U([_.Hl("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ul.prototype,"isActiveChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ul.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",String)],ul.prototype,"lastEmojiRequestedForTesting",void 0);
_.U([_.Z({value:function(){return _.Oe("desktop_fountain_emoji_size_px",20)}}),
_.O("design:type",Number)],ul.prototype,"desktopFountainEmojiSizePx",void 0);_.U([_.Hl("desktopFountainEmojiSizePx"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ul.prototype,"desktopFountainEmojiSizePxChanged",null);_.U([_.gi("#emoji-container"),_.O("design:type",HTMLElement)],ul.prototype,"emojiContainer",void 0);
_.U([_.Hl("emojiFountainData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ul.prototype,"onEmojiFountainDataEntityUpdate",null);ul=_.U([_.l0({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],ul);
_.q(ul,"yt-emoji-fountain-view-model",function(){if(kli===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;WDe===void 0&&(WDe=document.createElement("template"));var n=WDe;C.call(k,n.content.cloneNode(!0),W.content.firstChild);kli=W}W=kli;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var YXr;var BP_;var bUN=function(){return _.R.apply(this,arguments)||this};
_.D(bUN,_.R);bUN.prototype.onChoiceChanged=function(){this.data&&_.Op(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var UN=bUN;UN.prototype.onChoiceChanged=UN.prototype.onChoiceChanged;_.U([_.Z(),_.O("design:type",Object)],UN.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UN.prototype,"onChoiceChanged",null);UN=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],UN);
_.q(UN,"yt-live-chat-banner-poll-choice",function(){if(BP_===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;YXr===void 0&&(YXr=document.createElement("template"));var n=YXr;C.call(k,n.content.cloneNode(!0),W.content.firstChild);BP_=W}W=BP_;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var AU3;var FDi;var wDa=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework_with_live");W.small=!1;return W};
_.D(wDa,_.R);wDa.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
wDa.prototype.computeId=function(){return this.data&&this.data.targetId};
var ON=wDa;_.U([_.v(_.fl.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],ON.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",String)],ON.prototype,"id",void 0);_.U([_.Z(),_.O("design:type",Object)],ON.prototype,"buttonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],ON.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ON.prototype,"modern",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.O("design:type",Object)],ON.prototype,"small",void 0);ON=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-button"})],ON);
_.q(ON,"yt-live-chat-button",function(){if(FDi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;AU3===void 0&&(AU3=document.createElement("template"));var n=AU3;C.call(k,n.content.cloneNode(!0),W.content.firstChild);FDi=W}W=FDi;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var x3i;var ldi;var t3e=function(){var W=_.R.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.D(t3e,_.R);_.Y=t3e.prototype;_.Y.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]]"}}}}}};
_.Y.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.Y.onYtRendererstamperFinished=function(){this.menuButton=_.S(this.hostElement).querySelector("#menu-button")};
_.Y.dataChanged=function(){var W,k;if((k=_.z((W=this.data)==null?void 0:W.overflowMenuButton,_.Vq))==null?0:k.command)this.data.contextMenuEndpoint=_.z(this.data.overflowMenuButton,_.Vq).command};
_.Y.onButtonClick=function(){var W,k=_.z((W=this.data)==null?void 0:W.askQuestionButton,_.Vq);if(k){if(k.trackingParams&&(W=_.Yf(k.trackingParams))){var C=_.VM();C&&_.Zr(C,W)}_.Pe(this.hostElement,"innertube-command",k.command)}};
var La=t3e;La.prototype.onYtRendererstamperFinished=La.prototype.onYtRendererstamperFinished;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],La.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],La.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.Z({observer:"dataChanged"}),_.O("design:type",Object)],La.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],La.prototype,"inCollapsedBanner",void 0);_.U([_.Z(),_.O("design:type",Object)],La.prototype,"buttonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],La.prototype,"questionButtonOverrides",void 0);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],La.prototype,"onYtRendererstamperFinished",null);
La=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],La);
_.q(La,"yt-live-chat-call-for-questions-renderer",function(){if(ldi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;x3i===void 0&&(x3i=document.createElement("template"));var n=x3i;C.call(k,n.content.cloneNode(!0),W.content.firstChild);ldi=W}W=ldi;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var E07={};E07.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var k=_.znA(W.hostElement);k.length&&k[k.length-1].focus()})},
isAttachedChanged_:function(W,k){W?this.focusChild_():k&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.vl(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var adl;var XDa;var fdi=function(){return _.R.apply(this,arguments)||this};
_.D(fdi,_.R);fdi.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fdi.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
var j1=fdi;_.U([_.gi("#confirm_button"),_.O("design:type",Object)],j1.prototype,"confirmButton",void 0);_.U([_.gi("#cancel_button"),_.O("design:type",Object)],j1.prototype,"cancelButton",void 0);_.U([_.Z(),_.O("design:type",d3G)],j1.prototype,"data",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],j1.prototype,"hidden",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(E07.YtLiveChatDialogBehavior),_.O("design:type",Object)],j1.prototype,"ytLiveChatDialogBehavior",void 0);j1=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],j1);
var d3G=_.q(j1,"yt-live-chat-dialog-renderer",function(){if(XDa===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;adl===void 0&&(adl=document.createElement("template"));var n=adl;C.call(k,n.content.cloneNode(!0),W.content.firstChild);XDa=W}W=XDa;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var m3z;var zsl,D3l=function(){if(zsl!==void 0)return zsl;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;m3z===void 0&&(m3z=document.createElement("template"));var n=m3z;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return zsl=W};var V3G;var JUr;var cUi=function(){var W=_.R.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.D(cUi,_.R);_.Y=cUi.prototype;
_.Y.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.Up)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var k;if((k=this.data)==null?0:k.disabled)this.disabled=!0};
_.Y.computeId=function(W){return W};
_.Y.computeIcon=function(W,k){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var C,n;return k&&((C=this.data)==null?0:(n=C.toggledIcon)==null?0:n.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.Y.logPDGEntryPoint=function(){_.aaw(_.P3("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")};
_.Y.immediatelyShowTooltip=function(){var W=_.S(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.Y.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.Y.onClick=function(W){var k;((k=this.data)==null?0:k.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(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Pe(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.Y.computeShowTooltip=function(W,k){return!!(W&&W.tooltip&&k)};
_.Y.maybeUpdateTooltipText=function(){var W=this,k;if((k=this.data)==null?0:k.tooltip){var C=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Up)(W.tooltip).textContent=C},250)}};
_.Y.handleLiveChatActions=function(W){var k=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(C){(C=k.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",C))&&C.durationSec===C.fullDurationSec&&k.startBubble(k.colorFromDecimal(C.startBackgroundColor))}))};
_.Y.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.Y.startBubble=function(W){_.Op(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.Y.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.Y.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
var Hi=cUi;Hi.prototype.onAnimationEnd=Hi.prototype.onAnimationEnd;Hi.prototype.disabledChanged=Hi.prototype.disabledChanged;Hi.prototype.dataChanged=Hi.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.fl.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],Hi.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hi.prototype,"data",void 0);_.U([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",Object)],Hi.prototype,"id",void 0);_.U([_.Z({notify:!0,reflectToAttribute:!0}),_.O("design:type",Object)],Hi.prototype,"active",void 0);
_.U([_.Z({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.O("design:type",Object)],Hi.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hi.prototype,"disabled",void 0);_.U([_.Z({computed:"computeShowTooltip(data, disabled)"}),_.O("design:type",Object)],Hi.prototype,"showTooltip",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hi.prototype,"useToggledActiveState",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hi.prototype,"dataChanged",null);_.U([_.Hl("disabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Hi.prototype,"disabledChanged",null);_.U([_.jI("animationend"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Hi.prototype,"onAnimationEnd",null);
Hi=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Hi);
_.q(Hi,"yt-live-chat-icon-toggle-button-renderer",function(){if(JUr===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;V3G===void 0&&(V3G=document.createElement("template"));var n=V3G;C.call(k,n.content.cloneNode(!0),W.content.firstChild);JUr=W}W=JUr;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Id3;var SXz;var M35=function(){return _.R.apply(this,arguments)||this};
_.D(M35,_.R);M35.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var QO5=M35;_.U([_.Z(),_.O("design:type",Object)],QO5.prototype,"data",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],QO5.prototype,"ytRendererstamperBehavior",void 0);QO5=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],QO5);
_.q(QO5,"yt-live-chat-message-input-prompt-header-renderer",function(){if(SXz===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Id3===void 0&&(Id3=document.createElement("template"));var n=Id3;C.call(k,n.content.cloneNode(!0),W.content.firstChild);SXz=W}W=SXz;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var pDG;var v0l;var esG;var sOr;var GlL;var yUi;var $35=function(){return _.R.apply(this,arguments)||this};
_.D($35,_.R);var ZUj=$35;_.U([_.Z(),_.O("design:type",Object)],ZUj.prototype,"data",void 0);ZUj=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],ZUj);
_.q(ZUj,"yt-live-chat-message-subtext-renderer",function(){if(yUi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;GlL===void 0&&(GlL=document.createElement("template"));var n=GlL;C.call(k,n.content.cloneNode(!0),W.content.firstChild);yUi=W}W=yUi;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Rs5=function(){var W=_.R.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.D(Rs5,_.R);Rs5.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
var rJ=Rs5;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rJ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rJ.prototype,"subtextOnBottom",void 0);_.U([_.Z(),_.O("design:type",Object)],rJ.prototype,"buttonOverrides",void 0);
rJ=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],rJ);
_.q(rJ,"yt-live-chat-message-renderer",function(){if(sOr===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;esG===void 0&&(esG=document.createElement("template"));var n=esG;C.call(k,n.content.cloneNode(!0),W.content.firstChild);sOr=W}W=sOr;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var o0o;var iUL;var TPN=function(){var W=_.R.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.D(TPN,_.R);_.Y=TPN.prototype;_.Y.computeId=function(){return this.data.id};
_.Y.computeInputData=function(){return this.data.inputData};
_.Y.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.Y.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.Y.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.Y.getLiveChatRichMessageInput=function(){return _.S(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.Y.clearInput=function(){_.S(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.Y.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.Y.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.Y.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.Y.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.Y.onInputFocusOut=function(){this.isInputDirty=!0};
_.Y.onClickCloseButton=function(){_.Pe(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var gJ=TPN;gJ.prototype.handleTextInputCharCountChanged=gJ.prototype.handleTextInputCharCountChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gJ.prototype,"data",void 0);_.U([_.Z({computed:"computeId(data.id)"}),_.O("design:type",String)],gJ.prototype,"id",void 0);_.U([_.Z({computed:"computeInputData(data.inputData)"}),_.O("design:type",Object)],gJ.prototype,"inputData",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.O("design:type",Object)],gJ.prototype,"isRemovable",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.O("design:type",Object)],gJ.prototype,"hasPrefilledText",void 0);_.U([_.Z({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.O("design:type",Number)],gJ.prototype,"charactersRemaining",void 0);
_.U([_.Z(),_.O("design:type",Number)],gJ.prototype,"characterCount",void 0);_.U([_.Z(),_.O("design:type",Object)],gJ.prototype,"isInputDirty",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.O("design:type",Object)],gJ.prototype,"overCharacterLimit",void 0);_.U([_.Z({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.O("design:type",Object)],gJ.prototype,"underCharacterLimit",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.O("design:type",Object)],gJ.prototype,"showErrorMessage",void 0);_.U([_.jI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],gJ.prototype,"handleTextInputCharCountChanged",null);
gJ=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],gJ);
_.q(gJ,"yt-live-chat-poll-editor-input",function(){if(iUL===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;o0o===void 0&&(o0o=document.createElement("template"));var n=o0o;C.call(k,n.content.cloneNode(!0),W.content.firstChild);iUL=W}W=iUL;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var qX_;var uRj;var U3L={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},OU7=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.D(OU7,_.R);_.Y=OU7.prototype;
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.z((W=this.data)==null?void 0:W.startButton,_.Vq)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.computeId=function(){return this.data&&this.data.id||""};
_.Y.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.Y.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.Y.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.Y.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.Y.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.Y.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var k=this.pollEditorInfoWithDefaults,C=k.minPollOptionChars,n=k.maxPollOptionChars,N=k.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>k.maxPollQuestionChars)return!1;k=_.S(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(k).every(function(B,A){B=B.characterCount;!B&&N[A]&&(B=W.ytRendererBehavior.getSimpleString(N[A]).length);return B!==void 0&&B>=C&&B<=n})};
_.Y.isValidPollChanged=function(){var W;_.z((W=this.data)==null?void 0:W.startButton,_.Vq)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,k=W.maxPollOptionChars,C=W.optionPlaceholderText,n=W.customOptionPlaceholderText,N=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:n[this.currentNumPollOptions]||C,maxCharacterLimit:k},maxCharacterLimit:k,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!n[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},N.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=N.charCountErrorText),N.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=N.charsRemainingAltLabel),N.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=N.removeOptionAltText),this.push("pollOptionsData",W),N=Array.from(_.S(_.S(this.hostElement).querySelector("#poll-options")).children),N.forEach(function(B,A){B.polymerController.set("data.id",A)}),_.S(N[N.length-1]).querySelector("#input").focus())};
_.Y.getPollOptionInputValues=function(){var W=this,k=[],C=_.S(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),n=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(C).forEach(function(N,B){var A=null;N=N.getLiveChatRichMessageInput();var w;(N==null?0:(w=N.textSegments)==null?0:w.length)?A=_.Df(N):n[B]&&(A=W.formattedStringToLiveChatRichMessageInput(n[B]));k.push(A)});
return k};
_.Y.requestCreateAndStartPoll=function(W){var k=this.getPollOptionInputValues();if(!k.some(function(n){return!n})){k={optionText:k};
var C=_.S(_.S(this.hostElement).querySelector("#poll-question")).firstChild;C&&C.liveChatRichMessageInput&&(k.questionText=_.Df(C.liveChatRichMessageInput));_.kQ(this.hostElement,[W,k])}};
_.Y.selectedChanged=function(){if(this.selected){var W=_.S(_.S(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var k;(k=_.S(W).querySelector("#button")||_.Ty(W).querySelector("button"))==null||k.focus()}}};
_.Y.handleTextInputChanged=function(W){var k;((k=W.target)==null?void 0:k.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.Y.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.Y.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.Pe(this.hostElement,"picker-cancelled"),_.KY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.Y.onCloseClick=function(){_.Pe(this.hostElement,"picker-cancelled");_.KY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.Y.handlePollEditorInputClosed=function(W){var k=this.pollOptionsData.findIndex(function(C){return C.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",k,1);this.isValidPoll=this.getIsValidPoll()};
_.Y.onPickerCancelled=function(){this.reset()};
_.Y.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.S(_.S(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.S(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.b(Array.from(W));for(var k=W.next();!k.done;k=W.next())k.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.Y.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.oq.Object.defineProperties(OU7.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(U3L,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var Pi=OU7;Pi.prototype.onPickerCancelled=Pi.prototype.onPickerCancelled;Pi.prototype.handlePollEditorInputClosed=Pi.prototype.handlePollEditorInputClosed;Pi.prototype.handleServiceRequestCompleted=Pi.prototype.handleServiceRequestCompleted;Pi.prototype.handleServiceRequestSent=Pi.prototype.handleServiceRequestSent;Pi.prototype.handleTextInputChanged=Pi.prototype.handleTextInputChanged;Pi.prototype.selectedChanged=Pi.prototype.selectedChanged;Pi.prototype.isValidPollChanged=Pi.prototype.isValidPollChanged;
Pi.prototype.shouldInitializePollChanged=Pi.prototype.shouldInitializePollChanged;Pi.prototype.dataChanged=Pi.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Pi.prototype,"modern",void 0);
_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"closeButtonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"startButtonOverrides",void 0);_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"addOptionButtonOverrides",void 0);_.U([_.Z({computed:"computeId(data.id)",reflectToAttribute:!0}),_.O("design:type",String)],Pi.prototype,"id",void 0);_.U([_.Z({value:function(){return[]}}),
_.O("design:type",Array)],Pi.prototype,"pollOptionsData",void 0);_.U([_.G("pollEditorInfoWithDefaults"),_.O("design:type",Object),_.O("design:paramtypes",[])],Pi.prototype,"pollQuestionData",null);_.U([_.Z({value:0}),_.O("design:type",Number)],Pi.prototype,"pollQuestionCharacterCount",void 0);_.U([_.G("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],Pi.prototype,"pollQuestionCharactersRemaining",null);
_.U([_.Z({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.O("design:type",Boolean)],Pi.prototype,"overQuestionCharacterLimit",void 0);_.U([_.G("data.pollEditorInfo"),_.O("design:type",Object),_.O("design:paramtypes",[])],Pi.prototype,"pollEditorInfoWithDefaults",null);_.U([_.Z({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.O("design:type",Number)],Pi.prototype,"currentNumPollOptions",void 0);
_.U([_.Z({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Pi.prototype,"hasMaxNumPollOptions",void 0);_.U([_.G("pollEditorInfoWithDefaults","pollOptionsData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Pi.prototype,"shouldInitializePoll",null);_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"isValidPoll",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Pi.prototype,"createPollRequestInFlight",void 0);_.U([_.Z(),_.O("design:type",Object)],Pi.prototype,"selected",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.O("design:type",Boolean)],Pi.prototype,"showQuestionErrorMessage",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"dataChanged",null);_.U([_.Hl("shouldInitializePoll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"shouldInitializePollChanged",null);_.U([_.Hl("isValidPoll"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"isValidPollChanged",null);
_.U([_.Hl("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"selectedChanged",null);_.U([_.jI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Pi.prototype,"handleTextInputChanged",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"handleServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Pi.prototype,"handleServiceRequestCompleted",null);
_.U([_.jI("yt-live-chat-poll-editor-input-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Pi.prototype,"handlePollEditorInputClosed",null);_.U([_.jI("picker-cancelled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Pi.prototype,"onPickerCancelled",null);Pi=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Pi);
_.q(Pi,"yt-live-chat-poll-editor-panel-renderer",function(){if(uRj===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;qX_===void 0&&(qX_=document.createElement("template"));var n=qX_;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uRj=W}W=uRj;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var LD6;var jOo;var HUo=function(){return _.R.apply(this,arguments)||this};
_.D(HUo,_.R);HUo.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
HUo.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.oq.Object.defineProperties(HUo.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,k;return(W=this.data)==null?void 0:(k=W.title)==null?void 0:k.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.fi((W=this.data)==null?void 0:W.onTapCommand)}}});
var Ka=HUo;_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],Ka.prototype,"ytEndpointBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ka.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ka.prototype,"itemId",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ka.prototype,"hasPromotion",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ka.prototype,"innertubeCommand",null);Ka=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ka);
_.q(Ka,"yt-live-chat-product-picker-panel-item-view-model",function(){if(jOo===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;LD6===void 0&&(LD6=document.createElement("template"));var n=LD6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);jOo=W}W=jOo;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var rU5;var g07;var PB_=function(){var W=_.R.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.D(PB_,_.R);_.Y=PB_.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.S(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.Y.onCloseBuyFlow=function(){_.Pe(this.hostElement,"picker-cancelled")};
_.Y.onCloseClick=function(){_.Pe(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.z(this.data.closeButton,_.aS))};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.Pe(this.hostElement,"picker-cancelled")};
var hx=PB_;hx.prototype.observeSelected=hx.prototype.observeSelected;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],hx.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hx.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hx.prototype,"id",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hx.prototype,"selected",void 0);_.U([_.Z(),_.O("design:type",Object)],hx.prototype,"closeButtonId",void 0);_.U([_.Hl("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hx.prototype,"observeSelected",null);
hx=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],hx);
_.q(hx,"yt-live-chat-product-picker-panel-view-model",function(){if(g07===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;rU5===void 0&&(rU5=document.createElement("template"));var n=rU5;C.call(k,n.content.cloneNode(!0),W.content.firstChild);g07=W}W=g07;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var KDl;var hsz;var WJ_=function(){var W=_.R.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.m("kevlar_system_icons");return W};
_.D(WJ_,_.R);_.Y=WJ_.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.Y.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.Y.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.Y.computeDisabled=function(W){return!!W};
_.Y.computeCommand=function(W,k){return k?void 0:W};
_.Y.computeTooltip=function(W,k){return k&&W?W:""};
_.Y.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var WI=WJ_;_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],WI.prototype,"ytEndpointBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WI.prototype,"data",void 0);_.U([_.Z({computed:"computeIconId(data)",reflectToAttribute:!0}),_.O("design:type",Object)],WI.prototype,"iconId",void 0);
_.U([_.Z({computed:"computeIcon(data)",reflectToAttribute:!0}),_.O("design:type",Object)],WI.prototype,"icon",void 0);_.U([_.Z({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.O("design:type",Object)],WI.prototype,"disabled",void 0);_.U([_.Z({computed:"computeCommand(data.command, disabled)"}),_.O("design:type",Object)],WI.prototype,"command",void 0);_.U([_.Z({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.O("design:type",String)],WI.prototype,"tooltip",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],WI.prototype,"systemIcons",void 0);WI=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],WI);
_.q(WI,"yt-live-chat-product-button-renderer",function(){if(hsz===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;KDl===void 0&&(KDl=document.createElement("template"));var n=KDl;C.call(k,n.content.cloneNode(!0),W.content.firstChild);hsz=W}W=hsz;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var kbL;var CgL;var nLo=function(){var W=_.R.apply(this,arguments)||this;W.selected=!1;W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.D(nLo,_.R);_.Y=nLo.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.computeId=function(W){return W.id||""};
_.Y.onCloseClick=function(){_.Pe(this.hostElement,"picker-cancelled")};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.Y.onCloseBuyFlow=function(){_.Pe(this.hostElement,"picker-cancelled")};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.Pe(this.hostElement,"picker-cancelled")};
var kR=nLo;kR.prototype.observeSelected=kR.prototype.observeSelected;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kR.prototype,"data",void 0);
_.U([_.Z({computed:"computeId(data)",reflectToAttribute:!0}),_.O("design:type",String)],kR.prototype,"id",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kR.prototype,"selected",void 0);_.U([_.Hl("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kR.prototype,"observeSelected",null);kR=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],kR);
_.q(kR,"yt-live-chat-product-picker-renderer",function(){if(CgL===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;kbL===void 0&&(kbL=document.createElement("template"));var n=kbL;C.call(k,n.content.cloneNode(!0),W.content.firstChild);CgL=W}W=CgL;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Nue;var YgG;var BuG;var bNN;var AdN=function(){return _.R.apply(this,arguments)||this};
_.D(AdN,_.R);AdN.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()};
AdN.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
AdN.prototype.created=function(){this.ids={background:_.tF(),maskOne:_.tF(),maskTwo:_.tF(),gradient:_.tF(),largeBackground:_.tF(),largeGradientOne:_.tF(),largeGradientTwo:_.tF(),largeGradientPath:_.tF()}};
var Co=AdN;Co.prototype.maybeLoadAnimationBackground=Co.prototype.maybeLoadAnimationBackground;_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Co.prototype,"useLargeBackground",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Co.prototype,"useAnimationBackground",void 0);_.U([_.Z({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.O("design:type",Boolean)],Co.prototype,"useRegularBackground",void 0);
_.U([_.Z(),_.O("design:type",Object)],Co.prototype,"ids",void 0);_.U([_.Z(),_.O("design:type",Object)],Co.prototype,"lottieAnimation",void 0);_.U([_.gi("#animation-background"),_.O("design:type",HTMLDivElement)],Co.prototype,"animationBackground",void 0);_.U([_.Hl("useAnimationBackground"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Co.prototype,"maybeLoadAnimationBackground",null);
Co=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Co);
_.q(Co,"yt-live-interactivity-component-background",function(){if(bNN===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;BuG===void 0&&(BuG=document.createElement("template"));var n=BuG;C.call(k,n.content.cloneNode(!0),W.content.firstChild);bNN=W}W=bNN;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var FJz=function(){var W=_.R.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.m("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.D(FJz,_.R);_.Y=FJz.prototype;
_.Y.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]]"}}}}}};
_.Y.onCharacterCountChanged=function(W){var k,C,n,N,B=(C=_.z(this==null?void 0:(k=this.data)==null?void 0:k.creatorCallForQuestions,fei))==null?void 0:(n=C.inputField)==null?void 0:(N=n.liveChatTextInputFieldRenderer)==null?void 0:N.maxCharacterLimit,A,w;B!=null&&(W==null?void 0:(A=W.detail)==null?void 0:A.characterCount)!=null&&_.z(this==null?void 0:(w=this.data)==null?void 0:w.startButton,_.Vq)&&(k=W.detail.characterCount>B,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||k),this.showInputErrorMessage=k)};
_.Y.onCloseClick=function(){_.Pe(this.hostElement,"picker-cancelled");_.KY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onPickerCancelled=function(){var W=_.S(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.Y.handleOpenQnaStartPanel=function(){var W=_.S(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.Y.handleStartButtonAction=function(W){var k=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var C=_.S(this.hostElement).querySelector("#qna-creator-text-input-field"),n;(C==null?0:(n=C.liveChatRichMessageInput)==null?0:n.textSegments)&&C.liveChatRichMessageInput.textSegments.length!==0&&(n={rich_message:_.Df(C.liveChatRichMessageInput)},_.kQ(this.hostElement,[W,n]).then(function(){_.Pe(k.hostElement,"picker-cancelled")}))}};
_.Y.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(W){var k;W=W==null?void 0:(k=W.detail)==null?void 0:k.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.KY(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var no=FJz;no.prototype.handleServiceRequestError=no.prototype.handleServiceRequestError;no.prototype.handleServiceRequestCompleted=no.prototype.handleServiceRequestCompleted;no.prototype.handleServiceRequestSent=no.prototype.handleServiceRequestSent;no.prototype.onPickerCancelled=no.prototype.onPickerCancelled;no.prototype.onCharacterCountChanged=no.prototype.onCharacterCountChanged;_.U([_.Z(),_.O("design:type",Object)],no.prototype,"characterCount",void 0);
_.U([_.Z(),_.O("design:type",Object)],no.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],no.prototype,"showInputErrorMessage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],no.prototype,"startQnaRequestInFlight",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],no.prototype,"modern",void 0);_.U([_.Z(),_.O("design:type",Object)],no.prototype,"buttonOverrides",void 0);
_.U([_.Z(),_.O("design:type",Object)],no.prototype,"closeButtonOverrides",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],no.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.v(_.V9.YtLiveChatItemBehavior),_.O("design:type",_.Jn)],no.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],no.prototype,"ytActionHandlerBehavior",void 0);_.U([_.jI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],no.prototype,"onCharacterCountChanged",null);_.U([_.jI("picker-cancelled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],no.prototype,"onPickerCancelled",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],no.prototype,"handleServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],no.prototype,"handleServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],no.prototype,"handleServiceRequestError",null);no=_.U([_.T({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],no);
_.q(no,"yt-live-chat-qna-start-panel-renderer",function(){if(YgG===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Nue===void 0&&(Nue=document.createElement("template"));var n=Nue;C.call(k,n.content.cloneNode(!0),W.content.firstChild);YgG=W}W=YgG;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var wf3;var xD6;var l07=function(){return _.R.apply(this,arguments)||this};
_.D(l07,_.R);l07.prototype.dismiss=function(){_.Pe(this.hostElement,"yt-live-chat-error-message-dismiss")};
l07.prototype.edit=function(){_.Pe(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var t_7=l07;_.U([_.Z(),_.O("design:type",Object)],t_7.prototype,"data",void 0);t_7=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],t_7);
_.q(t_7,"yt-live-chat-text-actions-error-message-renderer",function(){if(xD6===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;wf3===void 0&&(wf3=document.createElement("template"));var n=wf3;C.call(k,n.content.cloneNode(!0),W.content.firstChild);xD6=W}W=xD6;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var EL7;var a0z;var Xf_;var f0r;var N4=function(){var W=_.R.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.D(N4,_.R);N4.prototype.sendReaction=function(){var W,k,C=((W=this.data)==null?void 0:W.emojiId)||((k=this.data)==null?void 0:k.emoteId),n;C&&((n=this.data)==null?0:n.shouldTriggerAnimation)&&_.KY(this.hostElement,"yt-create-user-reaction-animation",[C]);var N;(W=_.fi((N=this.data)==null?void 0:N.onTap))&&_.Pp(W,this.hostElement);this.showNewnessDot&&_.KY(this.hostElement,"yt-hide-newness-dot")};
N4.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
N4.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.oq.Object.defineProperties(N4.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!(((W=this.data)==null?0:W.emojiId)||((k=this.data)==null?0:k.emoteId))}}});
var YR=N4;_.U([_.Z(),_.O("design:type",Object)],YR.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YR.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],YR.prototype,"newnessDotEligible",void 0);_.U([_.G("data.maybeShowNewnessDot"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YR.prototype,"showNewnessDot",null);
_.U([_.G("data.emojiId","data.emoteId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],YR.prototype,"useYtImage",null);YR=_.U([_.l0({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],YR);
_.q(YR,"yt-reaction-control-panel-button-view-model",function(){if(f0r===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Xf_===void 0&&(Xf_=document.createElement("template"));var n=Xf_;C.call(k,n.content.cloneNode(!0),W.content.firstChild);f0r=W}W=f0r;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var dDi;var mD7;var zA3=function(){var W=_.R.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.D(zA3,_.R);_.Y=zA3.prototype;_.Y.expandedButtonsChanged=function(){var W,k;_.Op(this.hostElement,{"--expanded-buttons-height":((k=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?k:0)*36+"px"})};
_.Y.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}}};
_.Y.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.Y.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.Y.onFocusIn=function(){this.onMouseEnter()};
_.Y.onFocusOut=function(){this.onMouseLeave()};
_.Y.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var k;(k=W.expandedButtons.querySelector("button"))==null||k.focus()},100)};
_.Y.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.oq.Object.defineProperties(zA3.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,k;return _.JU.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((k=this.data)==null?void 0:k.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
var BI=zA3;BI.prototype.expandedButtonsChanged=BI.prototype.expandedButtonsChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],BI.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],BI.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],BI.prototype,"reactionControlPanelExpanded",void 0);_.U([_.Z({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Uu7}),_.O("design:type",Object)],BI.prototype,"liveReactionsData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],BI.prototype,"isDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],BI.prototype,"newnessDotEligible",void 0);
_.U([_.G("liveReactionsData","data.expandedButtons"),_.O("design:type",Object),_.O("design:paramtypes",[])],BI.prototype,"expandedButtonsData",null);_.U([_.G("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Z({reflectToAttribute:!0}),_.O("design:type",Object),_.O("design:paramtypes",[])],BI.prototype,"showNewnessDot",null);_.U([_.gi("#expanded-buttons"),_.O("design:type",HTMLElement)],BI.prototype,"expandedButtons",void 0);
_.U([_.Hl("expandedButtonsData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BI.prototype,"expandedButtonsChanged",null);BI=_.U([_.l0({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],BI);
_.q(BI,"yt-reaction-control-panel-view-model",function(){if(mD7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;dDi===void 0&&(dDi=document.createElement("template"));var n=dDi;C.call(k,n.content.cloneNode(!0),W.content.firstChild);mD7=W}W=mD7;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var b7=new _.D3("yt-live-chat"),DD6=Date.parse("2024-7-24"),V_3=function(){var W=_.R.apply(this,arguments)||this;W.emojiManager=_.Dp;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.D(V_3,_.R);_.Y=V_3.prototype;_.Y.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=b7.getCreationTime("emoji-customization-count"))&&W<DD6&&b7.set("emoji-customization-count","0"),W=Number(b7.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,b7.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.Y.hideNewnessDot=function(){this.newnessDotEligible=!1;b7.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.Y.handleReactionsMute=function(W){var k=_.VM(),C=_.F8(206221),n={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};k&&_.Zr(k,C,n);this.reactionsMuted=W};
_.Y.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.Y.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}}};
_.oq.Object.defineProperties(V_3.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var Ar=V_3;Ar.prototype.liveReactionsSettingChanged=Ar.prototype.liveReactionsSettingChanged;Ar.prototype.emojiCustomizationEnabledChanged=Ar.prototype.emojiCustomizationEnabledChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Xe),_.O("design:type",Object)],Ar.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ar.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ar.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",_.dL)],Ar.prototype,"emojiManager",void 0);_.U([_.Z(),_.O("design:type",Object)],Ar.prototype,"newnessDotEligible",void 0);_.U([_.Z(),_.O("design:type",Object)],Ar.prototype,"newnessDotImpressionCounted",void 0);
_.U([_.Z({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:O7l}),_.O("design:type",Boolean)],Ar.prototype,"liveReactionsSetting",void 0);_.U([_.Z({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Uu7}),_.O("design:type",Object)],Ar.prototype,"liveReactionsData",void 0);_.U([_.Z({value:function(){var W=_.m("enable_lwe_web_mute"),k=b7.get("allow-reactions");return k===void 0?!1:!k&&W}}),
_.O("design:type",Boolean)],Ar.prototype,"reactionsMuted",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ar.prototype,"liveReactionsEnabled",null);_.U([_.Hl("data.emojiCustomizationEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ar.prototype,"emojiCustomizationEnabledChanged",null);
_.U([_.Hl("liveReactionsEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ar.prototype,"liveReactionsSettingChanged",null);Ar=_.U([_.l0({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Ar);
_.q(Ar,"yt-reaction-control-panel-overlay-view-model",function(){if(a0z===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;EL7===void 0&&(EL7=document.createElement("template"));var n=EL7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);a0z=W}W=a0z;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var Jdi={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var k=this.$.pickers.selected;if(k){_.S(this.hostElement).removeAttribute(k+"-open");var C="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(C="#picker-buttons",k==="emoji"&&_.S(this.hostElement).querySelector("#emoji-picker-button")&&(C="#emoji-picker-button"));if(C=_.S(this.hostElement).querySelector(C).querySelector("#"+k))C.active=!1}C=W;k==W&&(C=null);k!=W&&
_.S(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=C;_.KY(this.hostElement,"yt-live-chat-picker-changed",[C])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var cd5=function(){var W=_.R.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.m("kevlar_system_icons");W.tallerEmojiPicker=_.m("live_chat_taller_emoji_picker");
W.blockSendMessageWithCountdown=!_.m("live_chat_enable_send_button_in_slow_mode");W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.D(cd5,_.R);_.Y=cd5.prototype;
_.Y.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"}}}};
_.Y.attached=function(){window.addEventListener("resize",this.onResize)};
_.Y.detached=function(){window.removeEventListener("resize",this.onResize)};
_.Y.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.Y.sendMessage=function(){var W=this,k,C,n,N;return _.F(function(B){if(W.sendDisabled)return B.return();W.isTooltipVisible&&_.KY(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();k=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!k)return B.return();n=((C=_.z(k,_.l2Y))==null?void 0:C.clientIdPrefix)||"";N={client_message_id:n+String(W.numSentMessages++),rich_message:_.Df(W.input.liveChatRichMessageInput)};
W.pendingMessageId=N.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.kQ(W.hostElement,[k,N]);W.input.setLiveChatRichMessageInput(null)}_.ab(B)})};
_.Y.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.Y.onSendCompleted=function(W,k){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",k.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",k.data);this.pendingMessageId=""};
_.Y.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.KY(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.Y.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var k,C;(k=_.S(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(C=k.querySelector("#qna-creator-text-input-field"))==null||C.focus()}};
_.Y.onComponentReplaced=function(W){var k,C;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((k=W.replacement.liveChatMessageInputRenderer)==null?0:(C=k.headerRenderer)==null?0:C.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.Y.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.Y.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.Y.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.KY(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.KY(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.Y.onOpenPopupAction=function(W,k){var C=this;k===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.KY(C.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.Y.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.Y.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.Y.focusChanged=function(){this.maybeToggleCharacterCount()};
_.Y.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.Y.computeId=function(){return this.data&&this.data.targetId||""};
_.Y.computeSendDisabled=function(W,k,C,n){W=!!(this.blockSendMessageWithCountdown&&C||!W||k&&W>k||n);(k=_.S(this.hostElement).querySelector("#send-button"))&&k.children.length&&(k.children[0].disabled=W);return W};
_.Y.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.Y.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.Y.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.Y.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.Y.errorMessageChanged=function(){var W=this;_.zM(function(){_.KY(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.Y.computeAuthorNameColor=function(W){var k;if(_.m("live_chat_author_name_color_usernames")&&(W==null?0:(k=W.authorName)==null?0:k.simpleText))return _.aVc(_.XMK(W.authorName.simpleText));if(_.m("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.aVc(_.Lq(W.authorSeedColorArgb));if(_.m("live_chat_colored_usernames"))return"#cc0000";var C;return _.m("live_chat_simple_color_usernames")&&(W==null?0:(C=W.authorName)==null?0:C.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Lq(W.authorUsernameColorDark):_.Lq(W.authorUsernameColorLight):""};
_.Y.onIsTooltipVisibleChanged=function(){var W=_.S(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.Y.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.oq.Object.defineProperties(cd5.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.pickers)==null?void 0:k.find(function(C){return C.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var Fu=cd5;Fu.prototype.onIsTooltipVisibleChanged=Fu.prototype.onIsTooltipVisibleChanged;Fu.prototype.errorMessageChanged=Fu.prototype.errorMessageChanged;Fu.prototype.onErrorMessageEdit=Fu.prototype.onErrorMessageEdit;Fu.prototype.onErrorMessageDismiss=Fu.prototype.onErrorMessageDismiss;Fu.prototype.focusChanged=Fu.prototype.focusChanged;Fu.prototype.characterCountChanged=Fu.prototype.characterCountChanged;Fu.prototype.onEmojiSelect=Fu.prototype.onEmojiSelect;
Fu.prototype.handlePickerButtonToggle=Fu.prototype.handlePickerButtonToggle;Fu.prototype.onSendError=Fu.prototype.onSendError;Fu.prototype.onSendCompleted=Fu.prototype.onSendCompleted;Fu.prototype.sendMessage=Fu.prototype.sendMessage;Fu.prototype.dataChanged=Fu.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Fu.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(Jdi.YtPickerBehavior),_.O("design:type",Object)],Fu.prototype,"ytPickerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fl.YtLiveChatTooltipTargetingBehavior),_.O("design:type",Object)],Fu.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"hasFiredInitialFocusActions",void 0);
_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"isBeforeFocusEnabled",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"data",void 0);_.U([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"id",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"characterCount",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"maxCharacterLimit",void 0);
_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"remainingCharacterCount",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"inputExpanded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Fu.prototype,"inputFocused",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Fu.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.U([_.Z(),_.O("design:type",_.Sa)],Fu.prototype,"participantsManager",void 0);
_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"buttonOverrides",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"inReplyPanel",void 0);_.U([_.G("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"sendDisabled",null);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"countdownRatio",void 0);
_.U([_.G("countdownRatio"),_.O("design:type",Number),_.O("design:paramtypes",[])],Fu.prototype,"countdownStrokeDashOffset",null);_.U([_.G("countdownRatio"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"countdownActive",null);_.U([_.G("data.interactionMessage"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"hasInteractionMessage",null);
_.U([_.G("data.emojiPickerButton"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"hasEmojiPickerButton",null);_.U([_.G("data, characterCount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"showAvatar",null);_.U([_.G("data.pickers"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fu.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"errorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"genericErrorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"isTooltipVisible",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"tooltipTimeout",void 0);_.U([_.G("data.onInitialFocusCommand"),_.O("design:type",String),_.O("design:paramtypes",[])],Fu.prototype,"tooltipMessage",null);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"tallerEmojiPicker",void 0);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],Fu.prototype,"authorNameColor",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fu.prototype,"blockSendMessageWithCountdown",void 0);_.U([_.Z(),_.O("design:type",Object)],Fu.prototype,"sendReplyMessageInFlight",void 0);
_.U([_.gi("#input"),_.O("design:type",_.Up8)],Fu.prototype,"input",void 0);_.U([_.gi("#count"),_.O("design:type",HTMLElement)],Fu.prototype,"count",void 0);_.U([_.gi("#input-container"),_.O("design:type",HTMLElement)],Fu.prototype,"inputContainer",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"dataChanged",null);
_.U([_.jI("yt-live-chat-send-message"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Fu.prototype,"sendMessage",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[Event,_.vJ]),_.O("design:returntype")],Fu.prototype,"onSendCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"onSendError",null);
_.U([_.jI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Fu.prototype,"handlePickerButtonToggle",null);_.U([_.jI("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Fu.prototype,"onEmojiSelect",null);
_.U([_.Hl("characterCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"characterCountChanged",null);_.U([_.Hl("inputFocused"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"focusChanged",null);_.U([_.jI("yt-live-chat-error-message-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"onErrorMessageDismiss",null);
_.U([_.jI("yt-live-chat-error-message-edit"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Fu.prototype,"onErrorMessageEdit",null);_.U([_.Hl("errorMessage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"errorMessageChanged",null);_.U([_.Hl("isTooltipVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fu.prototype,"onIsTooltipVisibleChanged",null);
Fu=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Fu);
_.q(Fu,"yt-live-chat-message-input-renderer",function(){if(v0l===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;pDG===void 0&&(pDG=document.createElement("template"));var n=pDG;C.call(k,n.content.cloneNode(!0),W.content.firstChild);v0l=W}W=v0l;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var I0N;var Sg3;var ws=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.D(ws,_.R);
ws.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"}}}};
ws.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
ws.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.KY(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.oq.Object.defineProperties(ws.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.panels)==null?void 0:k.find(function(C){return C.liveChatProductPickerPanelViewModel}))!==void 0}}});
var xR=ws;xR.prototype.onButtonToggle=xR.prototype.onButtonToggle;_.U([_.v(Jdi.YtPickerBehavior),_.O("design:type",Object)],xR.prototype,"ytPickerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xR.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xR.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Object)],xR.prototype,"firedOnClickCommand",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xR.prototype,"inReplyPanel",void 0);_.U([_.G("data.pickers"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xR.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.jI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],xR.prototype,"onButtonToggle",null);xR=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],xR);
_.q(xR,"yt-live-chat-restricted-participation-renderer",function(){if(Sg3===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;I0N===void 0&&(I0N=document.createElement("template"));var n=I0N;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Sg3=W}W=Sg3;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var M_z=function(){var W=_.R.apply(this,arguments)||this;W.genericErrorMessage=_.Go("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.D(M_z,_.R);M_z.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}}}}}};
_.oq.Object.defineProperties(M_z,{template:{configurable:!0,enumerable:!0,get:function(){return D3l()}}});
var l7=M_z;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],l7.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],l7.prototype,"genericErrorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],l7.prototype,"inReplyPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],l7.prototype,"hideBorder",void 0);
l7=_.U([_.l0({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],l7);_.q(l7,"yt-live-chat-engagement-panel-input-renderer",function(){return D3l()},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var QLo,pfe;QLo=_.F8(115994);pfe=_.F8(115993);_.vL_=function(W,k,C){var n=this;var N=C.dragDownAction;this.layer=0;this.JSC$19716_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$19716_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var B=_.kf();_.rc(B,QLo,this.layer);_.rc(B,pfe,this.layer);this.dragDownAction=function(){N();_.JW(B,{visualElement:n.fullscreen?QLo:pfe})};
this.gesture=new _.Dv(W,k,this.JSC$19716_watchConfig,"pandown");this.attach()};
_.vL_.prototype.attach=function(){this.gesture.attach()};
_.vL_.prototype.detach=function(){this.gesture.detach()};
_.vL_.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$19716_watchFullScreenConfig:this.JSC$19716_watchConfig};var eA6={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.JU.unsafeClone(W[0]);var k=this.macros||{},C=this.getAdModuleClient_();if(!C)return _.nB();W.loggingUrls.forEach(function(n){if(n.baseUrl){var N=n.baseUrl;var B=k;B=B===void 0?{}:B;N=C.getOptions().includes("replaceUrlMacros")?_.MUS(C,"replaceUrlMacros",{url:N,additionalMapping:B}):N;n.baseUrl=N}},this);
W=[W]}return _.kQ(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.Zf(this);return W?(W=W.getPlayer())?new _.Jc(W):null:null}}]};var sLi;var Gbo=function(){var W=_.R.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.m("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.D(Gbo,_.R);_.Y=Gbo.prototype;_.Y.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var k=_.VM(),C=this.get("data.donateButton.buttonRenderer.trackingParams");k&&C&&_.Zr(k,_.Yf(C));this.ytOpenPopupBehavior.openPopup(W)}};
_.Y.onShowMore=function(){this.isCollapsed=!1;var W=_.VM(),k=this.get("data.expandButton.buttonRenderer.trackingParams");W&&k&&_.Zr(W,_.Yf(k))};
_.Y.onShowLess=function(){this.isCollapsed=!0};
_.Y.dataChanged=function(){_.Op(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.Y.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.KY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.Y.computeHeaderBackgroundUrl=function(W,k){if(W)return k?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.Y.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.Y.headerBackgroundClass=function(){return _.DE("HTML_DIR")==="rtl"?"flip":""};
var tr=Gbo;tr.prototype.dataChanged=tr.prototype.dataChanged;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],tr.prototype,"ytOpenPopupBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],tr.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],tr.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],tr.prototype,"isCollapsed",void 0);_.U([_.Z({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.O("design:type",String)],tr.prototype,"headerBackgroundUrl",void 0);_.U([_.Z(),_.O("design:type",Boolean)],tr.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tr.prototype,"modernPanels",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tr.prototype,"dataChanged",null);tr=_.U([_.T({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],tr);
_.q(tr,"ytd-donation-shelf-renderer",function(){if(sLi!==void 0)return sLi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sLi=W},{mode:1});var ydi;var $Dl=function(){return _.R.apply(this,arguments)||this};
_.D($Dl,_.R);var ZNN=$Dl;_.U([_.Z(),_.O("design:type",Object)],ZNN.prototype,"data",void 0);ZNN=_.U([_.T({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ZNN);
_.q(ZNN,"ytd-donation-unavailable-renderer",function(){if(ydi!==void 0)return ydi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ydi=W},{mode:1});var RA_;var oLe=function(){return _.R.apply(this,arguments)||this};
_.D(oLe,_.R);oLe.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
var iN5=oLe;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iN5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iN5.prototype,"data",void 0);iN5=_.U([_.T({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],iN5);
_.q(iN5,"ytd-limited-state-message-renderer",function(){if(RA_!==void 0)return RA_;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RA_=W},{mode:1});var Tul;var qgz=function(){return _.R.apply(this,arguments)||this};
_.D(qgz,_.R);qgz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
qgz.prototype.onTap=function(W){var k=this.data&&this.data.endpoint;k&&!_.er(_.vl(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:k})};
var EH=qgz;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],EH.prototype,"data",void 0);EH=_.U([_.T({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],EH);
_.q(EH,"ytd-autotagging-metadata-renderer",function(){if(Tul!==void 0)return Tul;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Tul=W},{mode:1});var uKo;var UD3=function(){return _.R.apply(this,arguments)||this};
_.D(UD3,_.R);UD3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var ao=UD3;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ao.prototype,"data",void 0);ao=_.U([_.T({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ao);
_.q(ao,"ytd-autotagging-metadata-row-renderer",function(){if(uKo!==void 0)return uKo;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return uKo=W},{mode:1});var ONN;var LJr;var jLG=function(){var W=_.R.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.D(jLG,_.R);jLG.prototype.computeHasDividerLine=function(W,k){return W&&!k};
var Xu=jLG;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Xu.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.O("design:type",Boolean)],Xu.prototype,"hasDividerLine",void 0);_.U([_.Z(),_.O("design:type",Object)],Xu.prototype,"engagementPanelContent",void 0);
Xu=_.U([_.T({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Xu);
_.q(Xu,"ytd-metadata-row-header-renderer",function(){if(LJr!==void 0)return LJr;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return LJr=W},{mode:1});var HN6;var rdj=function(){return _.R.apply(this,arguments)||this};
_.D(rdj,_.R);rdj.prototype.computeHasDividerLine=function(W){return W};
var fo=rdj;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fo.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.O("design:type",Boolean)],fo.prototype,"hasDividerLine",void 0);fo=_.U([_.T({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],fo);
_.q(fo,"ytd-metadata-row-renderer",function(){if(HN6!==void 0)return HN6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return HN6=W},{mode:1});var gL6;var Pg5=function(){return _.R.apply(this,arguments)||this};
_.D(Pg5,_.R);var KJ5=Pg5;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KJ5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KJ5.prototype,"data",void 0);KJ5=_.U([_.T({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],KJ5);
_.q(KJ5,"ytd-metadata-with-image-row-renderer",function(){if(gL6!==void 0)return gL6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gL6=W},{mode:1});var hAa;var W$G=function(){var W=_.R.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.D(W$G,_.R);_.Y=W$G.prototype;_.Y.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onDataChanged=function(){var W=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(k){W.onEndpointLinkKeyPress(k)}))};
_.Y.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.Pe(this.hostElement,"click")};
_.Y.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.CB(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.Y.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.Y.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.Y.computeStyle=function(W){return W};
_.Y.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.Y.computeThumbnailWidth=function(W){switch(W){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}};
_.Y.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.oq.Object.defineProperties(W$G.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var ds=W$G;ds.prototype.onYtNavigate=ds.prototype.onYtNavigate;ds.prototype.onClick=ds.prototype.onClick;ds.prototype.onDataChanged=ds.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ds.prototype,"componentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],ds.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],ds.prototype,"componentStyle",void 0);_.U([_.Z({computed:"computeIsThumbnailStyle(data.style)"}),_.O("design:type",Boolean)],ds.prototype,"isThumbnailStyle",void 0);_.U([_.Z({computed:"computeThumbnailObjectFit(data.style)"}),_.O("design:type",String)],ds.prototype,"thumbnailObjectFit",void 0);
_.U([_.Z({computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],ds.prototype,"thumbnailWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ds.prototype,"rounded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ds.prototype,"fixie",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ds.prototype,"fullWidth",void 0);_.U([_.gi("#endpoint-link"),_.O("design:type",HTMLAnchorElement)],ds.prototype,"endpointLink",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ds.prototype,"onDataChanged",null);_.U([_.G("data.endpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],ds.prototype,"endpointHref",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],ds.prototype,"onClick",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ds.prototype,"onYtNavigate",null);ds=_.U([_.T({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],ds);
_.q(ds,"ytd-rich-metadata-renderer",function(){if(hAa!==void 0)return hAa;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return hAa=W},{mode:_.UC("kevlar_poly_si_batch_j075")?1:2});var kmG;var CRo=function(){var W=_.R.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.D(CRo,_.R);CRo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
CRo.prototype.computeHasDividerLine=function(W){return W};
var mr=CRo;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mr.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.O("design:type",Boolean)],mr.prototype,"hasDividerLine",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],mr.prototype,"fixie",void 0);
_.U([_.Z(),_.O("design:type",Object)],mr.prototype,"fullWidth",void 0);mr=_.U([_.T({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],mr);
_.q(mr,"ytd-rich-metadata-row-renderer",function(){if(kmG!==void 0)return kmG;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return kmG=W},{mode:1});var nwj=function(){var W=_.R.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.D(nwj,_.R);
nwj.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"}}}};
nwj.prototype.computeCollapsibleItems=function(W,k,C){return W===void 0||k===void 0||C===void 0||C?[]:W.slice(k)};
nwj.prototype.computeAlwaysShownItems=function(W,k){return W&&W.length?W.slice(0,k):[]};
var zZ=nwj;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zZ.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],zZ.prototype,"collapsed",void 0);
_.U([_.Z({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.O("design:type",Array)],zZ.prototype,"alwaysShownItems",void 0);_.U([_.Z({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.O("design:type",Array)],zZ.prototype,"collapsibleItems",void 0);_.U([_.Z(),_.O("design:type",Object)],zZ.prototype,"engagementPanelContent",void 0);_.U([_.Z(),_.O("design:type",Object)],zZ.prototype,"fixie",void 0);
_.U([_.Z(),_.O("design:type",Object)],zZ.prototype,"fullWidth",void 0);zZ=_.U([_.T({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],zZ);
_.q(zZ,"ytd-metadata-row-container-renderer",function(){if(ONN!==void 0)return ONN;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ONN=W},{mode:1});var NwG;var Yoe=function(){var W=_.R.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.m("kevlar_watch_grid");W.modernButtons=_.m("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.m("live_chat_round_background_killswitch");W.overflowHideChat=_.m("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$19752_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.D(Yoe,_.R);_.Y=Yoe.prototype;_.Y.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.hA(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.Y.created=function(){var W=this;this.handleIframeEventListener=function(k){W.handleIframeEvent(k)};
this.handleKeyboardEventListener=function(k){W.handleKeyboardEvent(k)};
this.JSC$19752_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19752_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19752_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19752_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19752_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.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()};
_.Y.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};
_.Y.computeBaseUrl=function(W){var k="/live_chat";this.isChatReplay()&&(k="/live_chat_replay");return _.jZ(_.Lx(_.OY(_.Gb(W),k),null),"").toString()};
_.Y.dataChanged=function(){_.m("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.Y.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var k=Math.floor(this.player.getProgressState().current*1E3);W=_.$L(_.Gb(W),"playerOffsetMs",k.toString()).toString()}k=this.chatframe;try{var C=W==="about:blank"?_.X82:_.QG(W),n=k.contentDocument.location,N=_.sz(C);N!==void 0&&n.replace(N)}catch(B){k.src=W}}};
_.Y.collapsedChanged=function(){_.Pe(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.Y.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.O2(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var k=_.f().resolve(_.qI(_.$9T));if(k){var C=W.ports,n;C&&C.length&&(n=function(){C[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];k.showFeedbackDialog(W.customProductData,W.feedbackContent,n,W.bucket)}}else if(W.data["yt-show-survey"])_.Pe(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.f().resolve(_.uI).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.oM();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(k={cpn:this.player.getVideoData().cpn},_.a9("liveChatBeingModerated",k))};
_.Y.attachLiveChatResponseVeTrackingParams=function(W){W=_.Yf(W);var k=_.VM(),C=_.QK("liveChatRenderer.trackingParams",this.data);k&&C&&_.sr(k,_.Yf(C),W)};
_.Y.handleBuyflowMessages=function(W){var k=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,C=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,n=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.VK3(_.hf(_.pO),k.replace(/-/g,"+").replace(/_/g,"/"),function(N){W.ports[0].postMessage({success:!0,buyFlowResponse:N})},void 0,function(N){W.ports[0].postMessage({success:!1,
error:N&&N.message||"Buyflow rejected without error."})},_.tQ().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},C,n)};
_.Y.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var k=_.Rh();k!=null&&k.getPlayerPromise&&(k.getPlayerPromise().then(function(C){W.playerApiReady(C)}),this.isListeningForPlayerProgress=!0)}};
_.Y.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.Y.playerApiReady=function(W){this.setPlayer(W)};
_.Y.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.Y.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.Y.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.Y.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.Y.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19752_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19752_playerEvents),_.Pe(this.hostElement,"player-api-ready"))};
_.Y.liveChatPageUrl=function(W,k,C,n){return!C||k?"about:blank":C.liveChatRenderer?(k=_.Gb(this.currentPageUrl).JSC$7905_queryData_,L_a(k),W=_.Gb(W),k.add("continuation",C.liveChatRenderer.continuations[0].reloadContinuationData.continuation),C=_.Vi()==="USER_INTERFACE_THEME_DARK",(n||C)&&k.add("dark_theme","true"),_.Lx(W,k),n=_.Gb(W.toString()),C=n.JSC$7905_queryData_,"SESSION_INDEX"in _.mh&&(C.add("authuser",_.DE("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.mh&&C.add("pageId",_.DE("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.mh&&C.add("sdc",_.DE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),n.toString()):""};
_.Y.isCollapsed=function(W,k){return k!==null?k:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W&&W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.Y.isHidden=function(W,k,C){var n=k&&k.conversationBarRenderer&&k.conversationBarRenderer.availabilityMessage,N=k&&k.liveChatRenderer&&k.liveChatRenderer.showHideButton,B=k&&k.liveChatRenderer&&k.liveChatRenderer.showButton;return C&&W&&!n&&!B||!C&&W&&!n&&!N?!0:k&&k.liveChatRenderer&&k.liveChatRenderer.initialDisplayState?k.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.Y.computeButtonOverride=function(W,k){if(W&&k)return{type:"outline"}};
_.Y.setCollapsedState=function(W){_.z(W,_.KfC)&&(this.isHiddenByUser=!!_.z(W,_.KfC).collapsed,!this.isHiddenByUser&&_.m("enable_teaser_framework_web_client")&&_.KY(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.Y.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.Y.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.Y.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.Y.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.Y.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.Y.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.Y.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.Y.handleKeyboardEvent=function(W){(0,_.JU.containsValue)(gOe,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.Y.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.Y.postToContentWindow=function(W){if(this.isFrameReady)try{var k=window.location.protocol+"//"+window.location.host,C;(C=this.chatframe)!=null&&C.contentWindow?this.chatframe.contentWindow.postMessage(W,k):_.zJ(new _.AM("Tried posting a message to an iframe with no content window",W))}catch(n){_.dI(n)}};
_.Y.shouldHideChatFrame=function(W){return W&&_.m("hide_live_chat_button_when_collapsed")};
_.oq.Object.defineProperties(Yoe.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.m("live_chat_overflow_hide_chat")||_.m("web_watch_chat_hide_button_killswitch"))return _.m("live_chat_overflow_hide_chat");var W,k,C,n;return!!((W=this.data)==null?0:(k=W.liveChatRenderer)==null?0:(C=k.header)==null?0:(n=C.liveChatHeaderRenderer)==null?0:n.collapseButton)}}});
var Dh=Yoe;Dh.prototype.collapsedChanged=Dh.prototype.collapsedChanged;Dh.prototype.urlChanged=Dh.prototype.urlChanged;Dh.prototype.dataChanged=Dh.prototype.dataChanged;Dh.prototype.onShowHideChat=Dh.prototype.onShowHideChat;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Dh.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Dh.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],Dh.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],Dh.prototype,"ytOpenPopupBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Dh.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Dh.prototype,"currentPageUrl",void 0);
_.U([_.Z({computed:"computeBaseUrl(currentPageUrl,data)"}),_.O("design:type",Object)],Dh.prototype,"baseUrl",void 0);_.U([_.Z({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.O("design:type",String)],Dh.prototype,"url",void 0);_.U([_.Z(),_.O("design:type",Object)],Dh.prototype,"isHiddenByUser",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.O("design:type",Object)],Dh.prototype,"hidden",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.O("design:type",Boolean)],Dh.prototype,"collapsed",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.O("design:type",Boolean)],Dh.prototype,"hideChatFrame",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"showAboveScrim",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"watchNextGrid",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Dh.prototype,"modernButtons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"noBorder",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Dh.prototype,"roundBackground",void 0);
_.U([_.Z({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.O("design:type",Object)],Dh.prototype,"toggleButtonOverride",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Dh.prototype,"overflowHideChat",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"forceDarkTheme",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Dh.prototype,"enableShowWithoutHideChatButton",null);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dh.prototype,"theaterWatchWhile",void 0);_.U([_.gi("#chatframe"),_.O("design:type",HTMLIFrameElement)],Dh.prototype,"chatframe",void 0);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dh.prototype,"onShowHideChat",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dh.prototype,"dataChanged",null);
_.U([_.Hl("url"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dh.prototype,"urlChanged",null);_.U([_.Hl("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dh.prototype,"collapsedChanged",null);Dh=_.U([_.T({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Dh);
_.q(Dh,"ytd-live-chat-frame",function(){if(NwG!==void 0)return NwG;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return NwG=W},{mode:1});var Bwe;var VN=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.D(VN,_.R);VN.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=_.a8(this.data.backgroundColor)))};
VN.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
VN.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
VN.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
var Jr=VN;Jr.prototype.dataChanged=Jr.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Jr.prototype,"rendererBehavior",void 0);_.U([_.v(eA6.YtMacroReplacementBehavior),_.O("design:type",Object)],Jr.prototype,"macroReplacementBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Jr.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Jr.prototype,"navigationEndpoint",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Jr.prototype,"enableColors",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Jr.prototype,"modern",void 0);_.U([_.Z(),_.O("design:type",Object)],Jr.prototype,"buttonOverrides",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Jr.prototype,"dataChanged",null);Jr=_.U([_.T({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Jr);
_.q(Jr,"ytd-action-basic-immersive-content-renderer",function(){if(Bwe!==void 0)return Bwe;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Bwe=W},{mode:1});var by6;var AY5;var F$5=function(){return _.R.apply(this,arguments)||this};
_.D(F$5,_.R);F$5.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.Op(this.hostElement,{"--bgu-color":_.a8(this.data.backgroundColor)})};
F$5.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var k;((k=this.data)==null?0:k.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.oq.Object.defineProperties(F$5.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,k,C;if(((W=this.data)==null?void 0:(k=W.detailsLine)==null?void 0:k.texts)!=null&&((C=this.data)==null?void 0:C.detailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.detailsLine.texts.map(function(N){return N.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,k,C;if(((W=this.data)==null?void 0:(k=W.optionalDetailsLine)==null?void 0:k.texts)!=null&&((C=this.data)==null?void 0:C.optionalDetailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.optionalDetailsLine.texts.map(function(N){return N.text}).join("")}return null}}});
var cI=F$5;cI.prototype.dataChanged=cI.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cI.prototype,"rendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],cI.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cI.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.backgroundColor"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],cI.prototype,"hasBackgroundColor",null);
_.U([_.G("data.objectFit"),_.O("design:type",Object),_.O("design:paramtypes",[])],cI.prototype,"getObjectFit",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.tileRenderingStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],cI.prototype,"hasTileMetadata",null);_.U([_.G("data.detailsLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],cI.prototype,"getSecondaryDetails",null);
_.U([_.G("data.optionalDetailsLine"),_.O("design:type",Object),_.O("design:paramtypes",[])],cI.prototype,"getOptionalDetails",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cI.prototype,"dataChanged",null);cI=_.U([_.T({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],cI);
_.q(cI,"ytd-image-tile-renderer",function(){if(AY5!==void 0)return AY5;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return AY5=W},{mode:1});var wHe;var xf_=function(){return _.R.apply(this,arguments)||this};
_.D(xf_,_.R);xf_.prototype.getOpenLinkIcon=function(){return _.m("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
xf_.prototype.onSitelinkTap=function(){_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.m("kevlar_command_handler_migration_killswitch"))_.CB(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.b(this.data.clickCommands),k=W.next();!k.done;k=W.next())this.ytComponentBehavior.resolveCommand(k.value)};
var Io=xf_;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Io.prototype,"rendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Io.prototype,"data",void 0);Io=_.U([_.T({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Io);
_.q(Io,"ytd-sitelink-renderer",function(){if(wHe!==void 0)return wHe;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wHe=W},{mode:1});var Sd=function(){var W=_.R.apply(this,arguments)||this;W.paddingFix=_.m("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.D(Sd,_.R);Sd.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"}}}};
Sd.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(k){k.clickTrackingParams&&delete k.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([k])})};
Sd.prototype.shouldHideFooter=function(W){return!(W&&_.m("use_ads_engagement_panel_desktop_footer_cta"))};
_.oq.Object.defineProperties(Sd.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((k=this.data)==null?void 0:k.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(C){var n;return(n=_.z(C,K_3))==null?void 0:n.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((k=this.data)==null?void 0:k.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(C){var n;return((n=_.z(C,K_3))==null?void 0:n.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var M4=Sd;M4.prototype.dataChanged=M4.prototype.dataChanged;_.U([_.v(eA6.YtMacroReplacementBehavior),_.O("design:type",Object)],M4.prototype,"ytMacroReplacementBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],M4.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],M4.prototype,"paddingFix",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],M4.prototype,"removeBorderFromImageTiles",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],M4.prototype,"useFooteredMetadataRenderingStyle",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M4.prototype,"dataChanged",null);M4=_.U([_.T({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],M4);
_.q(M4,"ytd-action-engagement-panel-content-renderer",function(){if(by6!==void 0)return by6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return by6=W},{mode:1});var lD5;var twr=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});return _.t("ad-grid-card-image-full-metadata-view-model",{class:function(){var n;return((n=k().interaction)==null?0:n.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:W,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(n){return _.t(_.DJ,{data:n.data,
customCommandResolver:C})}})),_.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.t(_.NI,{cond:function(){return k().headline},
then:function(n){return _.t(_.Ya,{text:n,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.t(_.NI,{cond:function(){return k().detailsLine},
then:function(n){return _.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.t(_.Ex,{data:n},{adDetailsLineViewModel:function(N){return _.t(_.nG,{data:N.data,customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.t(_.NI,{cond:function(){return k().secondaryDetailsLine},
then:function(n){return _.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.t(_.Ex,{data:n},{adDetailsLineViewModel:function(N){return _.t(_.nG,{data:N.data,customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Nh");var Ewi=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});return _.t("ad-grid-card-image-view-model",{class:function(){var n;return((n=k().interaction)==null?0:n.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:W,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(n){return _.t(_.DJ,{data:n.data,
customCommandResolver:C})}}),_.t("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.t(_.Ex,{data:function(){return k().adCardBadge}},{adCardBadgeViewModel:_.bDI})))},"Oh");var aDN=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});return _.t("ad-grid-card-text-view-model",{class:function(){var n;return((n=k().interaction)==null?0:n.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:W,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.t(_.NI,{cond:function(){return k().title},
then:function(n){return _.t(_.Ya,{text:n,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.t("div",{class:function(){return _.m("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.t(_.bI,{each:function(){var n;
return((n=k())==null?void 0:n.descriptions)||[]},
keyBy:"INDEX"},function(n){return _.t(_.Ya,{text:n,className:function(){return _.m("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.t("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.t(_.Ex,{data:function(){return k().moreInfoButton}},{adButtonViewModel:function(n){return _.t(_.Kc,{data:n.data,
customCommandResolver:C})}})))},"Ph");var XHz=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;var n=W.adGridCardCollectionStyle;W=_.yE();_.uT(W,{visibilityCallback:function(N){var B,A=(B=k().interaction)==null?void 0:B.onFirstVisible;N&&A&&_.zj(A)},
showOption:_.gl});return _.t("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:W,style:function(){return"grid-template-columns: repeat("+W_e(n?n():k().style)+", minmax(0, 1fr));"}},_.t(_.Ex,{data:function(){var N;
return(N=k())==null?void 0:N.gridCards}},{adGridCardImageViewModel:function(N){return _.t(Ewi,{data:N.data,
customCommandResolver:C})},
adGridCardImageFullMetadataViewModel:function(N){return _.t(twr,{data:N.data,customCommandResolver:C})},
adGridCardTextViewModel:function(N){return _.t(aDN,{data:N.data,customCommandResolver:C})}}))},"Qh");_.Gj(_.GM(function(W){var k=W.data;W=_.yE();_.Zi(W,function(){return k().interaction},C5j);
_.uT(W,{visibilityCallback:function(C){var n,N=(n=k().interaction)==null?void 0:n.onFirstVisible;C&&N&&_.zj(N)},
showOption:_.gl});return _.t("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:W},_.t("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.t(_.NI,{cond:_.hEm("(min-width: "+((0,_.EP)()+_.il)+"px)"),then:function(){return _.t(_.Ex,{data:function(){return k().adGridCardCollection}},{adGridCardCollectionViewModel:function(C){return _.t(XHz,{data:C.data,
customCommandResolver:C5j})}})},
else:function(){return _.t(_.Ex,{data:function(){return k().adGridCardCollection}},{adGridCardCollectionViewModel:function(C){return _.t(XHz,{data:C.data,
customCommandResolver:C5j,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.t("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.t(_.Ex,{data:function(){return k().adButton}},{adButtonViewModel:function(C){return _.t(_.Kc,{data:C.data,
customCommandResolver:C5j})}})))},"Rh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;W=_.yE();_.Zi(W,function(){return k().interaction},n33);
_.uT(W,{visibilityCallback:function(C){var n,N=(n=k().interaction)==null?void 0:n.onFirstVisible;C&&N&&_.zj(N)},
showOption:_.gl});return _.t("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:W},_.t("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.t(_.Ex,{data:function(){if(_.hEm("(min-width: "+((0,_.EP)()+_.il)+"px)")())var C=k().adGridCardCollection;else{C=Object.assign({},_.z(k().adGridCardCollection,hr3));var n;C.gridCards!==void 0&&((n=C.gridCards)==null?void 0:n.length)>1?C.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":C.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";C={adGridCardCollectionViewModel:C}}return C}},{adGridCardCollectionViewModel:function(C){return _.t(XHz,{data:C.data,
customCommandResolver:n33})}})),_.t("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.t(_.Ex,{data:function(){return k().adButton}},{adButtonViewModel:function(C){return _.t(_.Kc,{data:C.data,
customCommandResolver:n33})}})))},"Sh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Ik}});var fDz=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.D(fDz,_.R);_.Y=fDz.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.getDataFromPlayerAndRender()};
_.Y.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.Y.getDataFromPlayerAndRender=function(){var W=this,k=_.Zf(this.hostElement);k&&k.getPlayerPromise().then(function(C){W.getCachedDataAndListen(C)})};
_.Y.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.Y.resolveCachedActions=function(){var W=_.QK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.JU.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.QK("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.JU.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.QK("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.JU.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.Y.sendUpdateEngagementPanelAction=function(W){var k;_.KY(this.hostElement,"yt-update-engagement-panel-action",[(k=_.JU.get(W,"action"))!=null?k:W])};
_.Y.sendChangeEngagementPanelVisibilityAction=function(W){_.KY(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.Y.sendScrollToEngagementPanelCommand=function(W){_.KY(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.Y.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.m("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.zJ(Error("gm"))};
var QN=fDz;QN.prototype.dataChanged=QN.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],QN.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],QN.prototype,"componentBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],QN.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QN.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],QN.prototype,"player",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QN.prototype,"dataChanged",null);QN=_.U([_.T({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],QN);
_.q(QN,"ytd-ads-engagement-panel-content-renderer",function(){if(lD5!==void 0)return lD5;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return lD5=W},{mode:1});var df3;var mf_=function(){var W=_.R.apply(this,arguments)||this;W.player=null;W.JSC$19789_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.D(mf_,_.R);_.Y=mf_.prototype;_.Y.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]]"}}}}}};
_.Y.created=function(){this.player=null;this.JSC$19789_playerEvents=new Map;this.JSC$19789_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19789_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19789_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19789_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.attached=function(){var W=this,k=_.Zf();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));k&&k.getPlayerPromise().then(function(C){W.setPlayer(C);W.set("isPageLoad",!1)})};
_.Y.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19789_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19789_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.Y.onLoopRangeChange=function(W){var k=_.f().resolve(_.qI(_.yF));if((!k||k.isOnWatch())&&this.hostElement.clientHeight){var C;!W&&((C=this.data)==null?0:C.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.Y.onVideoProgress=function(W){var k,C,n=((k=this.player)==null?void 0:(C=k.getPresentingPlayerType)==null?void 0:C.call(k))===2;this.isAdPlaying!==n&&this.set("isAdPlaying",n);var N;if(!n&&(N=this.player)!=null&&N.getLoopRange()){C=this.player.getLoopRange();k=C.startTimeMs;C=C.endTimeMs;n=this.player.getProgressState(1).seekableStart;var B;k<n*1E3&&((B=this.data)==null?0:B.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=C<W*1E3;var A;((A=this.player)==null?0:A.getLoopRange())&&W&&this.player.seekTo(k/1E3)}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onYtDeleteClipEngagementPanelCommand=function(W){_.z(W,EO7).command&&this.ytComponentBehavior.resolveCommand(_.z(W,EO7).command)};
_.oq.Object.defineProperties(mf_.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Go("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var po=mf_;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],po.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],po.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],po.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],po.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],po.prototype,"isAdPlaying",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],po.prototype,"isPageLoad",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],po.prototype,"isDarkTheme",void 0);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],po.prototype,"voteCount",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],po.prototype,"channelEndpoint",null);_.U([_.G("channelEndpoint"),_.O("design:type",Object),_.O("design:paramtypes",[])],po.prototype,"channelHref",null);po=_.U([_.T({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],po);
_.q(po,"ytd-clip-attribution-renderer",function(){if(df3!==void 0)return df3;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return df3=W},{mode:1});var z_L;var Df_=function(){var W=_.R.apply(this,arguments)||this;W.player=null;W.JSC$19794_playerEvents=new Map;return W};
_.D(Df_,_.R);_.Y=Df_.prototype;_.Y.created=function(){this.player=null;this.JSC$19794_playerEvents=new Map;this.JSC$19794_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19794_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19794_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Y.attached=function(){var W=this,k=_.Zf();k&&k.getPlayerPromise().then(function(C){W.setPlayer(C);W.set("isPageLoad",!1)})};
_.Y.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19794_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19794_playerEvents);var k;(W==null?void 0:(k=W.getPresentingPlayerType)==null?void 0:k.call(W))===2&&this.playerAdStartHandler()}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onVideoProgress=function(){var W,k,C=((W=this.player)==null?void 0:(k=W.getPresentingPlayerType)==null?void 0:k.call(W))===2;this.isAdPlaying!==C&&this.set("isAdPlaying",C)};
var vI=Df_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],vI.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vI.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],vI.prototype,"isAdPlaying",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],vI.prototype,"isPageLoad",void 0);vI=_.U([_.T({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],vI);
_.q(vI,"ytd-clip-section-footer-renderer",function(){if(z_L!==void 0)return z_L;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return z_L=W},{mode:1});var Vwr;var JYi;var cYa=function(){return _.R.apply(this,arguments)||this};
_.D(cYa,_.R);var ID7=cYa;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ID7.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ID7.prototype,"data",void 0);ID7=_.U([_.T({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],ID7);
_.q(ID7,"ytd-clip-ad-state-renderer",function(){if(JYi!==void 0)return JYi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JYi=W},{mode:1});var So_;var Mw7=function(){var W=_.R.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.D(Mw7,_.R);_.Y=Mw7.prototype;_.Y.detached=function(){this.userChangedValue=!1};
_.Y.handleKeyDown=function(W){if(_.nr)var k=13;else _.pIz&&_.Nb?k=13:k=13;W.keyCode===k&&W.preventDefault()};
_.Y.handleInput=function(){var W=_.S(this.hostElement).querySelector("#title");if(W){var k=(W.value||"").replace(/\r|\n/g," ");this.set("value",k);W.value=k;this.valid=W.validate();this.userChangedValue=!0}};
_.Y.handleBlur=function(){this.valid=_.S(this.hostElement).querySelector("#title").validate()};
_.Y.onValueChanged=function(){_.Pe(this.hostElement,"title-changed",{title:this.value})};
_.Y.onValidChanged=function(){_.Pe(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.Y.setInput=function(W,k){var C=_.S(this.hostElement).querySelector("#title");C&&(C.value=W,this.handleInput(),k&&(C.invalid=!1,this.valid=!0))};
_.Y.onClipCreationDisable=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable=function(){this.set("disabled",!1)};
_.Y.onClipCreationVisibilityChange=function(W){var k=this;W.visible?requestAnimationFrame(function(){var C;((C=_.S(k.hostElement).querySelector("#title"))==null?void 0:C.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var ed=Mw7;ed.prototype.onValidChanged=ed.prototype.onValidChanged;ed.prototype.onValueChanged=ed.prototype.onValueChanged;ed.prototype.handleBlur=ed.prototype.handleBlur;ed.prototype.handleInput=ed.prototype.handleInput;ed.prototype.handleKeyDown=ed.prototype.handleKeyDown;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ed.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],ed.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],ed.prototype,"value",void 0);_.U([_.Z(),_.O("design:type",Object)],ed.prototype,"valid",void 0);_.U([_.Z(),_.O("design:type",Object)],ed.prototype,"userChangedValue",void 0);_.U([_.Z(),_.O("design:type",Object)],ed.prototype,"disabled",void 0);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],ed.prototype,"handleKeyDown",null);
_.U([_.jI("input"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ed.prototype,"handleInput",null);_.U([_.jI("blur"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ed.prototype,"handleBlur",null);_.U([_.Hl("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ed.prototype,"onValueChanged",null);
_.U([_.Hl("valid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ed.prototype,"onValidChanged",null);ed=_.U([_.T({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],ed);
_.q(ed,"ytd-clip-creation-text-input-renderer",function(){if(So_!==void 0)return So_;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return So_=W},{mode:1});var QWr;var pHj;var vwr;var e_z;var sWi;var GmG=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.D(GmG,_.R);_.Y=GmG.prototype;_.Y.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(k){k=_.b(["screen and (min-resolution: "+k+")","screen and (max-resolution: "+k+")"]);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=window.matchMedia(C);n&&(W.mediaListeners_[C]=W.updatePixelRatio_.bind(W),n.addEventListener?n.addEventListener("change",W.mediaListeners_[C]):n.addListener?n.addListener(W.mediaListeners_[C]):delete W.mediaListeners_[C])}})};
_.Y.detached=function(){this.setPlayer(null);for(var W=_.b(Object.keys(this.mediaListeners_)),k=W.next();!k.done;k=W.next()){var C=k.value;k=this.mediaListeners_[C];(C=window.matchMedia(C))&&(C.removeEventListener?C.removeEventListener("change",k):C.removeListener&&C.removeListener(k))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.Y.onVisibilityChangedAction_=function(W){var k=this;W.visible&&!this.player_&&(W=_.Zf())&&W.getPlayerPromise().then(function(C){k.setPlayer(C)})};
_.Y.setPlayer=function(W){W&&this.set("player_",W)};
_.Y.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.Y.setUpCanvas_=function(){var W=this.rulerWidth,k=this.devicePixelRatio_,C=this.visible;this.set("canvasReady_",!1);if(C&&k!==0){C=this.aboveRulerHeight+this.rulerHeight;var n=_.S(this.hostElement).querySelector("#ticks");n.width=W*k;n.height=C*k;n.style.width=W+"px";n.style.height=C+"px";n.getContext("2d").scale(k,k);this.set("canvasReady_",!0)}};
_.Y.drawRuler_=function(W,k,C,n,N,B,A,w,x,E,a,X){W&&C&&k&&(W=_.S(this.hostElement).querySelector("#ticks"),k=W.getContext("2d"),k.clearRect(0,0,W.width,W.height),k.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),k.lineWidth=2,k.beginPath(),k.moveTo(0,this.aboveRulerHeight),k.lineTo(W.width,this.aboveRulerHeight),k.moveTo(0,W.height),k.lineTo(W.width,W.height),k.stroke(),this.drawRulerTicks_(W,B,N,n),this.drawStoryboardImages_(W,C,B,N,n),k.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
k.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(A-B,n,!1),this.rulerHeight),C=this.timeToPixels_(w-B,n,!1),k.fillRect(C,this.aboveRulerHeight,W.width-C,this.rulerHeight),this.drawSpeedLines_(W,B,X))};
_.Y.drawRulerTicks_=function(W,k,C,n){var N=W.getContext("2d");N.save();N.lineWidth=1;for(var B=Math.floor(Math.max(0,k-this.tickLabelInterval));B<k+C;B++){N.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var A=(B-k)*n;N.beginPath();N.moveTo(A,W.height);var w=this.smallTickHeight;B%this.largeTickInterval===0?w=this.largeTickHeight:B%this.mediumTickInterval===0&&(w=this.mediumTickHeight);N.lineTo(A,W.height-w);N.stroke();B%this.tickLabelInterval===0&&(N.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),N.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),N.fillText($s(B),A+4,12),N.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),N.moveTo(A,0),N.lineTo(A,this.aboveRulerHeight),N.stroke())}N.restore()};
_.Y.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.Y.drawSpeedLines_=function(W,k,C){var n=W.getContext("2d");n.save();var N=Math.min(25,Math.abs(C)-15)/25,B=W.width*.3*N,A=W.width*-.3,w=W.width*1.3,x=this.aboveRulerHeight;W=W.height;var E=Math.round(4*N),a=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");a.length<7&&(a="#"+a.substring(1,4).repeat(2));var X=this.percentToHex_(.5+N/2);X=a+X;a+="00";if(N>0)for(N=0;N<E;N++){var d=A+Math.random()*(w-A),V=x+Math.random()*(W-x),c=B+k%B,M=n.createLinearGradient(d,V,d+c,V);
C<0?(M.addColorStop(0,X),M.addColorStop(.4,X),M.addColorStop(.9,a)):(M.addColorStop(.1,a),M.addColorStop(.6,X),M.addColorStop(1,X));n.strokeStyle=M;n.lineWidth=1;n.beginPath();n.moveTo(d,V);n.lineTo(d+c,V);n.stroke()}n.restore()};
_.Y.getStoryboardForTime_=function(W,k,C){C===void 0&&(C=k.getNumberOfStoryboardLevels()-1);W=k.getStoryboardFrameIndex(W,C);return k.getStoryboardFrame(W,C)};
_.Y.drawStoryboardImages_=function(W,k,C,n,N){if(!this.disabled){W=W.getContext("2d");var B=this.getStoryboardForTime_(0,k);if(B){var A=B.width/B.columns;B=B.height/B.rows;var w=A/B,x=this.rulerHeight*w;x=this.tickLabelInterval*(w<this.tickLabelInterval*N/this.rulerHeight?1/Math.floor(this.tickLabelInterval*N/x):Math.round(x/(this.tickLabelInterval*N)));var E=x*N,a=this.rulerHeight,X=E/this.rulerHeight,d=Math.floor(Math.max(0,C-x));for(d-=d%x;d<C+n;d+=x){var V=this.getStoryboardForTime_(d,k),c=this.getPreloadedStoryboard_(V.url);
if(c){var M=(d-C)*N,p=this.aboveRulerHeight,e=V.column*A,u=V.row*B;if(w<X){var h=a/(E/w);V=A;h*=B;u+=(B-h)/2}else V=E/(a*w)*A,h=B,e+=(A-V)/2;W.drawImage(c,e,u,V,h,M,p,E,a)}else this.fetchStoryboardImage_(V)}}}};
_.Y.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(k){if(k.src==W)return!0;var C=k.src.indexOf(W);return C!=-1&&C==k.src.length-W.length})};
_.Y.fetchStoryboardImage_=function(W){var k=this,C=this.getPreloadedStoryboard_(W.url),n=this.pendingStoryboardImages_[W.url];C||n!==void 0||(C=new Promise(function(N){var B=new Image(W.width,W.height);B.src=W.url;B.onload=function(){N(B)};
B.onerror=function(){N(null)}}),this.pendingStoryboardImages_[W.url]=C,C.then(function(N){N&&k.push("storyboardImages_",N);
return N}).finally(function(){delete k.pendingStoryboardImages_[W.url]}))};
_.Y.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.Y.timeToPixels_=function(W,k,C){W*=k;return C===void 0||C?W+"px":W};
_.Y.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var sH=GmG;sH.prototype.drawRuler_=sH.prototype.drawRuler_;sH.prototype.setUpCanvas_=sH.prototype.setUpCanvas_;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],sH.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sH.prototype,"start",void 0);_.U([_.Z({value:30}),_.O("design:type",Number)],sH.prototype,"end",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],sH.prototype,"visible",void 0);_.U([_.Z(),_.O("design:type",Object)],sH.prototype,"player_",void 0);_.U([_.Z(),_.O("design:type",Number)],sH.prototype,"tickSpacing",void 0);_.U([_.Z(),_.O("design:type",Number)],sH.prototype,"windowSizeSec",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sH.prototype,"rulerWidth",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sH.prototype,"rulerShift",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],sH.prototype,"canvasReady_",void 0);_.U([_.Z({value:function(){return[]}}),
_.O("design:type",Array)],sH.prototype,"storyboardImages_",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],sH.prototype,"disabled",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sH.prototype,"forceRender_",void 0);_.U([_.Z({value:1}),_.O("design:type",Number)],sH.prototype,"devicePixelRatio_",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],sH.prototype,"windowSpeed",void 0);
_.U([_.Hl("visible","devicePixelRatio_","rulerWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sH.prototype,"setUpCanvas_",null);
_.U([_.Hl("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.O("design:returntype")],sH.prototype,"drawRuler_",null);sH=_.U([_.l0({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],sH);
_.q(sH,"yt-clip-creation-scrubber-canvas",function(){if(sWi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);sWi=W}W=sWi;return W},
{mode:2});var yYl;var $fo;var Zy_=function(){var W=_.R.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.D(Zy_,_.R);_.Y=Zy_.prototype;
_.Y.created=function(){var W=this;this.JSC$19807_playerEvents=new Map;this.JSC$19807_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19807_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19807_playerEvents.set("onStateChange",this.onStateChange_);var k={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(k).forEach(function(C){W.boundHandlers_[C]=k[C].bind(W)})};
_.Y.attached=function(){this.activeLoopRange_=!1;_.S(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.S(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.F8(156731)};
_.Y.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.S(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.S(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.Y.onVisibilityChangedAction_=function(W){var k=this;W.visible&&!this.player_&&(W=_.Zf())&&W.getPlayerPromise().then(function(C){k.setPlayer(C)})};
_.Y.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19807_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19807_playerEvents))};
_.Y.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.S(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.S(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.Y.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.Y.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.Y.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.Y.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.Y.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.Y.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var k=W.windowSlideSpeed;if(k=_.BxN(W.start,W.boundedRulerStartLimit_())?k-.1:_.BxN(W.end,W.boundedRulerEndLimit_())?k+.1:0){var C=W.capRulerOffset_(W.rulerShift_+k);C==W.rulerShift_?k=0:(W.set("rulerShift_",C),_.Pe(W.hostElement,"set-fixed-length-range",{start:W.start+k,duration:W.end-W.start}))}W.set("windowSlideSpeed",k)},33)};
_.Y.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.Y.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.Y.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.Y.updateRulerSize_=function(){this.set("rulerWidth_",_.S(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.Y.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.Y.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var k=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.Pe(this.hostElement,"set-fixed-length-range",{start:k,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-k})};
_.Y.handleWindowDrag_=function(W){var k=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(k);_.Pe(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.capRulerOffset_=function(W){var k=this.seekableStart-this.pixelsToTime_(16),C=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(k,W),C)};
_.Y.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.Y.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.Y.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.Y.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.Y.handleWindowHandleDrag_=function(W){var k=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(k);if(this.draggingLeft_){var C=this.start+W;var n=this.end}else this.draggingRight_&&(C=this.start,n=this.end+W);_.Pe(this.hostElement,"set-range",{start:C,end:n,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.S(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.Y.onClipCreationDisable_=function(){this.endDrag_()};
_.Y.timeToPixels_=function(W,k,C){W*=k;return C===void 0||C?W+"px":W};
_.Y.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.Y.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.centerRuler_=function(W,k,C){this.set("rulerShift_",this.capRulerOffset_(W+(k-W)/2-C/2))};
_.Y.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.Y.updateLoopRange_=function(W,k,C,n,N,B,A){W&&(k&&n&&!C?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(N,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(B-.1,!1,void 0,void 0,50)):(A!==void 0?W.seekTo(A,!0,void 0,void 0,50):(k=W.getCurrentTime(),k<N||k>B?W.seekTo(N,!0,void 0,void 0,50):W.seekTo(k,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:N*1E3,endTimeMs:B*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.Y.updateHandles_=function(){_.S(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.S(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.Y.updateRuler_=function(){var W=this.end,k=this.start,C=this.draggableStartLimit_(),n=this.draggableEndLimit_();(k<C-.001||W>n+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.computeDurationLabel_=function(W,k){return W?W.replace("$clip_length",parseFloat(k).toFixed(1)):""};
_.Y.computeDuration_=function(W,k){return this.isValidTime_(W)&&this.isValidTime_(k)&&W<k?k-W:0};
_.Y.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.Y.computeWindowSizeSec_=function(W,k,C){return Math.min((W||12E4)/1E3,C-k)};
_.Y.computeTickSpacing_=function(W,k){return k?k/W:1};
_.Y.onDragStateChanged_=function(){_.Pe(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.Y.centerRangeOnTime_=function(W){var k=this.duration;W=Yza(W-k/2,k,this.seekableStart,this.seekableEnd);_.Pe(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.Y.nearlyLessThan_=function(W,k,C){return W+(C===void 0?1E-6:C)<k};
_.Y.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.Y.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.Y.computeDragState_=function(W,k,C,n){return W?"left":k?"right":C?"ruler":n?"window":"none"};
_.Y.logClick=function(){var W=_.VM(),k=_.DH();W&&k&&this.scrubberVe_&&(_.m("combine_ve_grafts")?_.Hn(_.kf(),this.scrubberVe_,k):_.sr(W,k,this.scrubberVe_),_.Zr(W,this.scrubberVe_))};
var GZ=Zy_;GZ.prototype.onDragStateChanged_=GZ.prototype.onDragStateChanged_;GZ.prototype.updateRuler_=GZ.prototype.updateRuler_;GZ.prototype.updateHandles_=GZ.prototype.updateHandles_;GZ.prototype.onUpdateLoopRange=GZ.prototype.onUpdateLoopRange;GZ.prototype.onInitializedChanged_=GZ.prototype.onInitializedChanged_;GZ.prototype.onVisibleChanged_=GZ.prototype.onVisibleChanged_;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],GZ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",Object)],GZ.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"start",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"end",void 0);_.U([_.Z({computed:"computeDuration_(start, end)"}),_.O("design:type",Number)],GZ.prototype,"duration",void 0);
_.U([_.Z(),_.O("design:type",String)],GZ.prototype,"lengthTemplate",void 0);_.U([_.Z({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.O("design:type",String)],GZ.prototype,"durationLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"visible",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"player_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"draggingLeft_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"draggingRight_",void 0);
_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"draggingRuler_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Object)],GZ.prototype,"draggingWindow_",void 0);_.U([_.Z({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.O("design:type",Number)],GZ.prototype,"tickSpacing_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"seekableStart",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"seekableEnd",void 0);
_.U([_.Z(),_.O("design:type",Number)],GZ.prototype,"windowSizeMs",void 0);_.U([_.Z({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.O("design:type",Number)],GZ.prototype,"windowSizeSec_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"rulerWidth_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"rulerShift_",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"windowSlideSpeed",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],GZ.prototype,"disabled",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"initialized",void 0);_.U([_.Z(),_.O("design:type",Object)],GZ.prototype,"durationAccessibilityLabel",void 0);_.U([_.Z({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.O("design:type",String)],GZ.prototype,"dragState",void 0);
_.U([_.Hl("visible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"onVisibleChanged_",null);_.U([_.Hl("initialized"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"onInitializedChanged_",null);_.U([_.Hl("player_","visible","disabled","initialized","start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"onUpdateLoopRange",null);
_.U([_.Hl("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"updateHandles_",null);_.U([_.Hl("start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"updateRuler_",null);
_.U([_.Hl("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GZ.prototype,"onDragStateChanged_",null);GZ=_.U([_.l0({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],GZ);
_.q(GZ,"yt-clip-creation-scrubber-view",function(){if($fo===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;yYl===void 0&&(yYl=document.createElement("template"));var n=yYl;C.call(k,n.content.cloneNode(!0),W.content.firstChild);$fo=W}W=$fo;return W},{mode:2});var R_r=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.D(R_r,_.R);_.Y=R_r.prototype;_.Y.attached=function(){var W=this;this.startInput.addEventListener("input",function(k){return W.handleStartInput_(k)});
this.endInput.addEventListener("input",function(k){return W.handleEndInput_(k)});
this.startInput.addEventListener("focusout",function(k){return W.handleStartBlur_(k)});
this.endInput.addEventListener("focusout",function(k){return W.handleEndBlur_(k)})};
_.Y.setPlayer=function(W){this.set("player_",W)};
_.Y.onSetFixedLengthRange_=function(W){var k=W.detail;W=k.start;var C=k.duration,n=k.startLimit;k=k.endLimit;n||(n=this.seekableStart_);k||(k=this.seekableEnd_);W=Yza(W,C,n,k);this.start=W.start;this.end=W.end};
_.Y.onSetRange_=function(W){var k=W.detail;W=k.start;var C=k.end,n=k.startLimit;k=k.endLimit;n||(n=this.seekableStart_);k||(k=this.seekableEnd_);if(W=BjN(W,C,n,k,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.Y.updateInputs_=function(){var W=this.end,k=this.start;this.startInput.focused||(this.startInput.value=$s(k,!0));this.endInput.focused||(this.endInput.value=$s(W,!0))};
_.Y.handleStartInput_=function(W){W=NjL(W.target.value);if(W===null)this.set("startValid",!1);else{var k=this.end,C=BjN(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);C?(this.set("endWillUpdate",C.end!==k),this.set("startValid",C.start===W)):this.set("startValid",!1)}};
_.Y.handleEndInput_=function(W){W=NjL(W.target.value);if(W===null)this.set("endValid",!1);else{var k=this.start,C=bL_(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);C?(this.set("startWillUpdate",C.start!==k),this.set("endValid",C.end===W)):this.set("endValid",!1)}};
_.Y.handleStartBlur_=function(W){W=NjL(W.target.value);W===null?this.startInput.value=$s(this.start,!0):this.forceUpdateInputs_(BjN(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.handleEndBlur_=function(W){W=NjL(W.target.value);W===null?this.endInput.value=$s(this.end,!0):this.forceUpdateInputs_(bL_(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=$s(this.start,!0);this.endInput.value=$s(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.Y.initializeClipRange_=function(){var W=this.seekableEnd_,k=this.seekableStart_,C=this.visible_,n=this.player_;if(!n||!C||k===null||!W)this.set("initialized",!1);else if(!this.initialized){var N=n.getCurrentTime(),B=this.getDefaultLengthSec_();C=n.getVideoData();var A=n.getPlayerState()==1,w=C.isLive;B=Math.min(B,W-k);N=Math.max(0,N);W=w?bL_(N-B,N,k,W,this.minLengthSec,this.maxLengthSec):A?Yza(N-B/2,B,k,W):Yza(N,B,k,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);C.isLive&&n.seekTo(W.start);
this.startInput.value=$s(this.start,!0);this.endInput.value=$s(this.end,!0)}};
_.Y.onStartChanged_=function(){var W=this;_.Pe(this.hostElement,"start-changed",{start:this.start});var k;isNaN((k=this.oldStart)!=null?k:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.Y.onEndChanged_=function(){var W=this;_.Pe(this.hostElement,"end-changed",{end:this.end});var k;isNaN((k=this.oldEnd)!=null?k:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.Y.onVisibilityChangedAction_=function(W){var k=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.Zf())&&W.getPlayerPromise().then(function(C){k.setPlayer(C)})};
_.Y.computeMinLengthSec_=function(W){return W/1E3||5};
_.Y.computeMaxLengthSec_=function(W){return W/1E3||60};
_.Y.computeDefaultLengthSec_=function(W){return W/1E3};
_.Y.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.Y.computeSeekableStart_=function(W,k){return W&&k?W.getProgressState(1).seekableStart:0};
_.Y.computeSeekableEnd_=function(W,k){return W&&k?W.getProgressState(1).seekableEnd:0};
_.Y.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.Y.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
var yN=R_r;yN.prototype.onDragState_=yN.prototype.onDragState_;yN.prototype.onEndChanged_=yN.prototype.onEndChanged_;yN.prototype.onStartChanged_=yN.prototype.onStartChanged_;yN.prototype.initializeClipRange_=yN.prototype.initializeClipRange_;yN.prototype.updateInputs_=yN.prototype.updateInputs_;yN.prototype.onSetRange_=yN.prototype.onSetRange_;yN.prototype.onSetFixedLengthRange_=yN.prototype.onSetFixedLengthRange_;
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yN.prototype,"data",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],yN.prototype,"start",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],yN.prototype,"startValid",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],yN.prototype,"startWillUpdate",void 0);_.U([_.Z({value:30}),_.O("design:type",Number)],yN.prototype,"end",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],yN.prototype,"endValid",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],yN.prototype,"endWillUpdate",void 0);_.U([_.Z({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.O("design:type",Number)],yN.prototype,"minLengthSec",void 0);
_.U([_.Z({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.O("design:type",Number)],yN.prototype,"maxLengthSec",void 0);_.U([_.Z({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.O("design:type",Number)],yN.prototype,"defaultLengthSec",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],yN.prototype,"visible_",void 0);_.U([_.Z(),_.O("design:type",Object)],yN.prototype,"player_",void 0);
_.U([_.Z({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.O("design:type",Number)],yN.prototype,"seekableStart_",void 0);_.U([_.Z({computed:"computeSeekableEnd_(player_, visible_)"}),_.O("design:type",Number)],yN.prototype,"seekableEnd_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],yN.prototype,"initialized",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],yN.prototype,"disabled",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],yN.prototype,"highlightStart",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],yN.prototype,"highlightEnd",void 0);_.U([_.gi("#start"),_.O("design:type",HTMLInputElement)],yN.prototype,"startInput",void 0);_.U([_.gi("#end"),_.O("design:type",HTMLInputElement)],yN.prototype,"endInput",void 0);
_.U([_.jI("set-fixed-length-range"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yN.prototype,"onSetFixedLengthRange_",null);_.U([_.jI("set-range"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yN.prototype,"onSetRange_",null);_.U([_.Hl("start","end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yN.prototype,"updateInputs_",null);
_.U([_.Hl("player_","visible_","seekableStart_","seekableEnd_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yN.prototype,"initializeClipRange_",null);_.U([_.Hl("start"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yN.prototype,"onStartChanged_",null);_.U([_.Hl("end"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yN.prototype,"onEndChanged_",null);
_.U([_.jI("clips-drag-state"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yN.prototype,"onDragState_",null);yN=_.U([_.l0({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],yN);
_.q(yN,"yt-clip-creation-scrubber-renderer",function(){if(e_z===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;vwr===void 0&&(vwr=document.createElement("template"));var n=vwr;C.call(k,n.content.cloneNode(!0),W.content.firstChild);e_z=W}W=e_z;return W},{mode:2});var owG=function(){var W=_.R.apply(this,arguments)||this;W.player_=null;W.JSC$19821_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.D(owG,_.R);_.Y=owG.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$19821_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19821_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19821_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19821_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.Y.detached=function(){this.setPlayer(null)};
_.Y.onVisibilityChangedAction_=function(W){var k=this,C;if((C=this.data)==null?0:C.externalVideoId){var n;this.videoId=(n=this.data)==null?void 0:n.externalVideoId}this.getPlayer().then(function(N){if(W.visible)k.returnTime=N.getCurrentTime(),k.isAtLiveHead=N.getProgressState().isAtLiveHead;else{var B=k.returnTime;k.isAtLiveHead&&(B=Number.POSITIVE_INFINITY);N.seekTo(B,void 0,void 0,void 0,51)}})};
_.Y.getPlayer=function(){var W=this;if(!this.player_){var k=_.Zf();if(k)return k.getPlayerPromise().then(function(C){W.setPlayer(C);return C})}return Promise.resolve(this.player_)};
_.Y.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19821_playerEvents);if(W){this.player_=W;var k;((k=this.data)==null?0:k.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var C;(W==null?void 0:(C=W.getPresentingPlayerType)==null?void 0:C.call(W))===2&&(this.set("isAdPlaying",!0),_.KY(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19821_playerEvents)}};
_.Y.ready=function(){_.S(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.Y.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.Y.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.Y.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.Y.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.Y.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.Y.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.Y.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var k;this.set("videoId",((k=this.player_)==null?void 0:k.getVideoData().video_id)||"")}};
_.Y.computeFormValid_=function(W,k,C,n){return!!(W&&k&&C&&n)};
_.Y.computeCancelButton_=function(W,k,C){return W&&_.z(W,_.Vq)?{buttonRenderer:Object.assign({},_.z(W,_.Vq),{isDisabled:k||C})}:null};
_.Y.computeSubmitButton_=function(W,k,C){return W&&_.z(W,_.Vq)?{buttonRenderer:Object.assign({},_.z(W,_.Vq),{command:void 0,isDisabled:!this.formValid||k||C})}:null};
_.Y.computeSubmitCommand_=function(W){return W||null};
_.Y.onSubmit_=function(W){var k=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.kQ(this.hostElement,[this.submitCommand_,W]).then(function(){k.set("isLoading_",!1)},function(){k.set("isLoading_",!1)}))};
_.Y.playerAdStartHandler_=function(){_.KY(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler_=function(){_.KY(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.Y.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(k){var C,n=(k==null?void 0:(C=k.getPresentingPlayerType)==null?void 0:C.call(k))===2;W.isAdPlaying!==n&&(n?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
var $R=owG;$R.prototype.onEndValidChanged_=$R.prototype.onEndValidChanged_;$R.prototype.onStartValidChanged_=$R.prototype.onStartValidChanged_;$R.prototype.onTitleValidChanged_=$R.prototype.onTitleValidChanged_;$R.prototype.onEndChanged_=$R.prototype.onEndChanged_;$R.prototype.onStartChanged_=$R.prototype.onStartChanged_;$R.prototype.onTitleChanged_=$R.prototype.onTitleChanged_;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",Object)],$R.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$R.prototype,"data",void 0);_.U([_.Z({value:""}),_.O("design:type",String)],$R.prototype,"titleValue",void 0);
_.U([_.Z({value:!1}),_.O("design:type",Boolean)],$R.prototype,"titleValid",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],$R.prototype,"start",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],$R.prototype,"startValid",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],$R.prototype,"end",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],$R.prototype,"endValid",void 0);_.U([_.Z({value:""}),_.O("design:type",String)],$R.prototype,"videoId",void 0);
_.U([_.Z({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.O("design:type",Boolean)],$R.prototype,"formValid",void 0);_.U([_.Z({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.O("design:type",Object)],$R.prototype,"submitButton_",void 0);_.U([_.Z({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.O("design:type",Object)],$R.prototype,"submitCommand_",void 0);
_.U([_.Z({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.O("design:type",Object)],$R.prototype,"cancelButton_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],$R.prototype,"isLoading_",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],$R.prototype,"isAdPlaying",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],$R.prototype,"returnTime",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],$R.prototype,"isAtLiveHead",void 0);
_.U([_.jI("title-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onTitleChanged_",null);_.U([_.jI("start-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onStartChanged_",null);_.U([_.jI("end-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onEndChanged_",null);
_.U([_.jI("title-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onTitleValidChanged_",null);_.U([_.jI("start-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onStartValidChanged_",null);_.U([_.jI("end-valid-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$R.prototype,"onEndValidChanged_",null);
$R=_.U([_.l0({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],$R);
_.q($R,"yt-clip-creation-renderer",function(){if(pHj===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;QWr===void 0&&(QWr=document.createElement("template"));var n=QWr;C.call(k,n.content.cloneNode(!0),W.content.firstChild);pHj=W}W=pHj;return W},{mode:2});var iya=function(){return _.R.apply(this,arguments)||this};
_.D(iya,_.R);iya.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"}}}};
iya.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.KY(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var Zh=iya;Zh.prototype.onPanelContentVisibleChanged=Zh.prototype.onPanelContentVisibleChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],Zh.prototype,"ytVisibilityBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Zh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Zh.prototype,"panelContentVisible",void 0);_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zh.prototype,"onPanelContentVisibleChanged",null);Zh=_.U([_.T({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Zh);
_.q(Zh,"ytd-clip-section-renderer",function(){if(Vwr!==void 0)return Vwr;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Vwr=W},{mode:1});var Twa;var qo3=function(){return _.R.apply(this,arguments)||this};
_.D(qo3,_.R);_.Y=qo3.prototype;
_.Y.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Sq(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var k=this.highlightedIndex%W;this.highlightedIndex=k*W<0?k+W:k;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.Y.onKeyUp=function(W){var k=this;roj(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.aM.cancelJob(this.inputTimerId),this.inputTimerId=_.aM.addLowPriorityJob(function(){k.typedValue&&(k.fetchSnippets(k.typedValue),k.logInputGesture(k.data))},1E3))};
_.Y.onClick=function(W){(W=_.v3S(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.Y.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.Y.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.Y.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.Y.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var k=_.b(this.data.searchInVideoSources),C=k.next();!C.done;C=k.next())C=C.value,C==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):C==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.Y.fetchSnippets=function(W){var k=_.KY(this.hostElement,"yt-get-current-video-id-action")[0],C=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:k,query:W!=null?W:"",sourceTimelines:C},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})};
_.Y.filterSnippets=function(W,k){var C=this;if(k){this.filteredSnippets=(0,_.JU.unsafeClone)(W);var n=RegExp(_.Gqc(k),"i");this.filteredSnippets=this.filteredSnippets.filter(function(A){return n.test(C.ytRendererBehavior.getSimpleString(A.snippet))});
W=_.b(this.filteredSnippets);for(var N=W.next();!N.done;N=W.next()){N=N.value;var B=this.ytRendererBehavior.getSimpleString(N.snippet);N.snippet={runs:[{text:B.substring(0,B.toLowerCase().indexOf(k))},{text:B.substring(B.toLowerCase().indexOf(k),B.toLowerCase().indexOf(k)+k.length),bold:!0},{text:B.substring(B.toLowerCase().indexOf(k)+k.length,B.length)}]}}}else this.filteredSnippets=W};
_.Y.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var k,C,n;if((n=(k=_.z(W,A8N))==null?void 0:(C=k.results)==null?void 0:C.length)!=null&&n){var N;this.filteredSnippets=this.snippets=((N=_.z(W,A8N))==null?void 0:N.results).map(function(B){var A,w,x;return{startMs:B==null?void 0:(A=B.searchInVideoResultRenderer)==null?void 0:A.startMs,startTimeText:B==null?void 0:(w=B.searchInVideoResultRenderer)==null?void 0:w.startTimeText,snippet:B==null?void 0:(x=B.searchInVideoResultRenderer)==
null?void 0:x.snippet}})}}};
_.Y.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};
_.Y.highlightSnippet=function(W){W.classList.add("highlighted")};
_.Y.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.Y.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Y.ensureVisible=function(W){var k=this.snippetsWrapper.scrollTop,C=k+this.snippetsWrapper.clientHeight,n=W.offsetTop-this.snippetsWrapper.offsetTop;W=n+W.clientHeight;n<k?this.snippetsWrapper.scrollTop-=k-n:W>C&&(this.snippetsWrapper.scrollTop+=W-C)};
_.Y.seekPlayer=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1){if(!W)return n.jumpTo(0);k=Number(W.dataset.startOffset);return _.l(n,_.Rh().getPlayerPromise(),3)}C=n.yieldResult;C.seekTo(k/1E3,!0);C.wakeUpControls();_.ab(n)})};
_.Y.logInputGesture=function(W){var k=_.VM();k&&(W==null?0:W.trackingParams)&&_.Rz(k,_.Yf(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.Y.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("typed-value-changed",this.typedValue))};
_.Y.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
var Ro=qo3;Ro.prototype.typedValueChangedForBinding=Ro.prototype.typedValueChangedForBinding;Ro.prototype.dataChanged=Ro.prototype.dataChanged;Ro.prototype.panelContentVisibleChanged=Ro.prototype.panelContentVisibleChanged;Ro.prototype.onClick=Ro.prototype.onClick;Ro.prototype.onKeyUp=Ro.prototype.onKeyUp;Ro.prototype.onKeyDown=Ro.prototype.onKeyDown;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ro.prototype,"data",void 0);_.U([_.Z({value:[]}),_.O("design:type",Array)],Ro.prototype,"snippets",void 0);_.U([_.Z({value:[]}),_.O("design:type",Array)],Ro.prototype,"filteredSnippets",void 0);_.U([_.Z({value:[]}),_.O("design:type",Array)],Ro.prototype,"snippetElements",void 0);
_.U([_.gi("#siv-input"),_.O("design:type",HTMLElement)],Ro.prototype,"inputElement",void 0);_.U([_.gi("#siv-snippets-wrapper"),_.O("design:type",HTMLElement)],Ro.prototype,"snippetsWrapper",void 0);_.U([_.Z(),_.O("design:type",String)],Ro.prototype,"typedValue",void 0);_.U([_.Z({value:-1}),_.O("design:type",Number)],Ro.prototype,"highlightedIndex",void 0);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[_.bs]),_.O("design:returntype")],Ro.prototype,"onKeyDown",null);
_.U([_.jI("keyup"),_.O("design:type",Function),_.O("design:paramtypes",[_.bs]),_.O("design:returntype")],Ro.prototype,"onKeyUp",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Ro.prototype,"onClick",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ro.prototype,"panelContentVisible",void 0);
_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ro.prototype,"panelContentVisibleChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ro.prototype,"dataChanged",null);_.U([_.Hl("typedValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ro.prototype,"typedValueChangedForBinding",null);
Ro=_.U([_.T({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Ro);
_.q(Ro,"ytd-search-in-video-renderer",function(){if(Twa!==void 0)return Twa;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Twa=W},{mode:1});var uM6;var oo=function(){return _.R.apply(this,arguments)||this};
_.D(oo,_.R);oo.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
oo.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]]"}}}}}};
oo.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,k,C,n,N=(k=_.z((W=this.data)==null?void 0:W.onClickCommand,_.FP8))==null?void 0:(C=k.item)==null?void 0:(n=C.notificationTextRenderer)==null?void 0:n.successResponseText;N&&_.j2w(this.hostElement,N)}};
_.oq.Object.defineProperties(oo.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(k=W.hiddenProductOptions)==null?void 0:k.showDropCountdown)&&!!((C=this.data)==null?0:(n=C.hiddenProductOptions)==null?0:n.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null?0:W.priceReplacementText)&&!((k=this.data)==null||!k.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var i7=oo;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],i7.prototype,"componentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],i7.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"useCenterLayoutContainer",null);_.U([_.Z({computed:"computeButtonOverride(data)"}),_.O("design:type",Object)],i7.prototype,"buttonOverride",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"isProductPlaceholder",null);
_.U([_.G("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"showDropCountdown",null);_.U([_.G("isProductPlaceholder","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"showBrandName",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"showPriceReplacementText",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"showPrice",null);
_.U([_.G("isProductPlaceholder"),_.O("design:type",Object),_.O("design:paramtypes",[])],i7.prototype,"showMetadata",null);i7=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],i7);
_.q(i7,"ytd-product-list-item-renderer",function(){if(uM6!==void 0)return uM6;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return uM6=W},{mode:1});var Uf6;var Oy6=function(){return _.R.apply(this,arguments)||this};
_.D(Oy6,_.R);Oy6.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Oy6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Oy6.prototype.panelContentVisibleChanged=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return W.playerApi?C.jumpTo(2):_.l(C,_.Rh().getPlayerPromise(),3);C.nextAddress!=2&&(W.playerApi=C.yieldResult);(k=W.playerApi)==null||k.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.ab(C)})};
var TZ=Oy6;TZ.prototype.panelContentVisibleChanged=TZ.prototype.panelContentVisibleChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],TZ.prototype,"panelContentVisible",void 0);_.U([_.Z(),_.O("design:type",Object)],TZ.prototype,"data",void 0);
_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],TZ.prototype,"panelContentVisibleChanged",null);TZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],TZ);
_.q(TZ,"ytd-product-list-renderer",function(){if(Uf6!==void 0)return Uf6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Uf6=W},{mode:1});var L$3;var jW_=function(){var W=_.R.apply(this,arguments)||this;W.hideTimestamps=!!_.h4("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.D(jW_,_.R);_.Y=jW_.prototype;_.Y.hideTimestampsChanged=function(){_.KE("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.b(this.data.cueGroups);for(var k=W.next();!k.done;k=W.next()){k=_.b(_.z(k.value,FRa).cues);for(var C=k.next();!C.done;C=k.next())this.flatCues.push(Number(_.z(C.value,wXr).startOffsetMs))}}};
_.Y.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var k=this.currentCueIndex,C=k;;){var n=C>=0?this.flatCues[C]/1E3:-1;if(W+.5<n)--C;else if(n=C+1<this.flatCues.length?this.flatCues[C+1]/1E3:Infinity,W+.5>n)C+=1;else break}C!==k&&(k>=0&&((W=this.getCueElement(k))&&W.classList.remove("active"),(k=this.getCueGroupElement(k))&&k.classList.remove("active")),(k=this.getCueElement(C))&&k.classList.add("active"),(k=this.getCueGroupElement(C))&&k.classList.add("active"),this.currentCueIndex=C,this.isHovered||
this.scrollElementToTop(C))}};
_.Y.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.getCueElement=function(W){return _.S(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.Y.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.Y.onTap=function(W){var k=_.eI(W);W.target.classList.contains("cue")&&this.seekCueElement(k)};
_.Y.onKeyPress=function(W){W.keyCode==13&&(W=_.v3S(W.target,null,"cue"))&&this.seekCueElement(W)};
_.Y.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.KY(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
var q4=jW_;q4.prototype.onMouseLeave=q4.prototype.onMouseLeave;q4.prototype.onMouseEnter=q4.prototype.onMouseEnter;q4.prototype.onKeyPress=q4.prototype.onKeyPress;q4.prototype.onTap=q4.prototype.onTap;q4.prototype.dataChanged=q4.prototype.dataChanged;q4.prototype.hideTimestampsChanged=q4.prototype.hideTimestampsChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],q4.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],q4.prototype,"hideTimestamps",void 0);_.U([_.Z(),_.O("design:type",Boolean)],q4.prototype,"isHovered",void 0);_.U([_.Hl("hideTimestamps"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"hideTimestampsChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"dataChanged",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],q4.prototype,"onTap",null);_.U([_.jI("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],q4.prototype,"onKeyPress",null);
_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"onMouseEnter",null);_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q4.prototype,"onMouseLeave",null);q4=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],q4);
_.q(q4,"ytd-transcript-body-renderer",function(){if(L$3!==void 0)return L$3;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return L$3=W},{mode:1});var HyN;var rYj=function(){var W=_.R.apply(this,arguments)||this;W.darkerPanels=_.m("web_watch_darker_panels");return W};
_.D(rYj,_.R);rYj.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var u7=rYj;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],u7.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],u7.prototype,"darkerPanels",void 0);u7=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],u7);
_.q(u7,"ytd-transcript-footer-renderer",function(){if(HyN!==void 0)return HyN;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return HyN=W},{mode:1});var gwN;var PRi;var K$G=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.showClearButton=!1;return W};
_.D(K$G,_.R);_.Y=K$G.prototype;_.Y.handleInput=function(W){var k=this;W.target.value.length?_.Dy(this,"ytdTranscriptSearchBoxSearch",function(){k.emitSearchEvent(W)},500):(_.JzJ(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.Y.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.Y.handleClick=function(){var W,k=(W=this.data)==null?void 0:W.trackingParams;k&&_.Pn(_.kf(),k)};
_.Y.handleClear=function(){_.JzJ(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,k,C=(k=_.z((W=this.data)==null?void 0:W.clearButton,_.Vq))==null?void 0:k.trackingParams;C&&_.Pn(_.kf(),C);this.clear()};
_.Y.emitSearchEvent=function(W){_.Pe(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var k,C;(W=(C=_.z((k=this.data)==null?void 0:k.searchButton,_.Vq))==null?void 0:C.trackingParams)&&_.Pn(_.kf(),W)};
_.Y.emitClearEvent=function(){_.Pe(this.hostElement,"yt-transcript-search-box-clear")};
_.oq.Object.defineProperties(K$G.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.S(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var UH=K$G;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],UH.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],UH.prototype,"systemIcons",void 0);UH=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],UH);
_.q(UH,"ytd-transcript-search-box-renderer",function(){if(PRi!==void 0)return PRi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return PRi=W},{mode:1});var h_5;var Wh6;var OH=function(){return _.R.apply(this,arguments)||this};
_.D(OH,_.R);OH.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,k;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(k=W.accessibility)==null?void 0:k.accessibilityData.label}};
OH.prototype.fireSelectedEvent=function(W){_.Pe(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
OH.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
OH.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.oq.Object.defineProperties(OH.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?k:!1}}});
var Lo=OH;Lo.prototype.dataChanged=Lo.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],Lo.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Lo.prototype,"sectionHeaderAriaLabel",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lo.prototype,"enableTappableTranscriptHeader",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lo.prototype,"dataChanged",null);
Lo=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Lo);
_.q(Lo,"ytd-transcript-section-header-renderer",function(){if(Wh6!==void 0)return Wh6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Wh6=W},{mode:1});var k3j;var CI6;var nnl=function(){var W=_.R.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.w8("suggest_correction",void 0,"Edit caption"),suggested_caption:_.w8("suggested_caption",void 0,"Suggested caption"),submit_correction:_.w8("submit_correction",void 0,"Submit for review"),cancel_correction:_.w8("cancel_correction",
void 0,"Cancel"),replay_segment:_.w8("replay_segment",void 0,"Re-play segment"),delete_correction:_.w8("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.D(nnl,_.R);_.Y=nnl.prototype;_.Y.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)};
_.Y.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);k&&this.ytdOpenPopupBehavior.openPopup(k);W.stopPropagation()}};
_.Y.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var k;W=(k=_.z(this.data.submitCaptionCorrectionCommand,_.r42))==null?void 0:k.params;k=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.y4(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(k);this.isEditMode=!1}};
_.Y.handleUpdateSegmentText=function(W){(W=_.z(W,Qbz))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.y4(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.Y.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.Y.handleEditSegmentCommand=function(W){(W=_.z(W,Mia))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.Y.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.Y.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.Y.handleMouseEnter=function(){this.mouseOver=!0};
_.Y.handleMouseLeave=function(){this.mouseOver=!1};
_.Y.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.Y.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()))};
_.Y.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.Y.handleTextboxClick=function(W){W.stopPropagation()};
_.Y.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.Y.handleTextboxKeyup=function(){this.textChanged=_.y4(this.latestText)!==String(this.ironTextAreaElement.value)};
_.Y.fireSelectedEvent=function(W){_.Pe(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.Y.fireReplayEvent=function(W,k){_.Pe(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:k})};
_.Y.fireEditEvent=function(W,k){_.Pe(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:k})};
_.Y.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.Y.isControlEnterPress=function(W){var k=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&k};
_.Y.isCopyPress=function(W){var k=W.ctrlKey;return W.key==="c"&&k};
_.Y.logClick=function(){var W,k=(W=this.data)==null?void 0:W.trackingParams;k&&_.Pn(_.kf(),k)};
_.Y.logClientVe=function(W){_.gc(_.kf(),_.F8(W))};
_.oq.Object.defineProperties(nnl.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
var jd=nnl;jd.prototype.handleMouseLeave=jd.prototype.handleMouseLeave;jd.prototype.handleMouseEnter=jd.prototype.handleMouseEnter;jd.prototype.dataChanged=jd.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],jd.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],jd.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jd.prototype,"isEditMode",void 0);_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"touchCaptionsEnabled",void 0);_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"editedText",void 0);_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.U([_.Z(),_.O("design:type",String)],jd.prototype,"segmentAriaLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jd.prototype,"roundedContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jd.prototype,"mouseOver",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jd.prototype,"textChanged",void 0);_.U([_.Z(),_.O("design:type",Object)],jd.prototype,"messages",void 0);
_.U([_.gi("#suggestion"),_.O("design:type",Object)],jd.prototype,"ironTextAreaElement",void 0);_.U([_.G("data","editedText"),_.O("design:type",Object),_.O("design:paramtypes",[])],jd.prototype,"latestText",null);_.U([_.G("touchCaptionsEnabled","isEditMode"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jd.prototype,"enableEditButton",null);
_.U([_.G("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],jd.prototype,"enableUndoButton",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jd.prototype,"dataChanged",null);_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jd.prototype,"handleMouseEnter",null);
_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jd.prototype,"handleMouseLeave",null);jd=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],jd);
_.q(jd,"ytd-transcript-segment-renderer",function(){if(CI6!==void 0)return CI6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return CI6=W},{mode:1});var NA3=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.m("web_watch_darker_panels");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.D(NA3,_.R);_.Y=NA3.prototype;_.Y.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"}}}}};
_.Y.segmentsChanged=function(){this.updateOffsets()};
_.Y.onYtPlayerTimeChanged=function(W){for(var k=this.segmentIndex,C=k;;){if(C>=0){var n=this.segmentOffsets[C].start;var N=this.segmentOffsets[C].isAutoScrollable}else n=-1,N=!0;var B=W+.5;if(!N){n=C+1<this.segmentOffsets.length?this.segmentOffsets[C+1].start:Infinity;if(B>=n){C+=1;continue}C=-1;break}if(B<n)n=C-1>=0&&this.segmentOffsets[C-1].isAutoScrollable,N=C===0||n?1:2,C-=N;else if(N=C+1<this.segmentOffsets.length&&this.segmentOffsets[C+1].isAutoScrollable?1:2,n=C+N<this.segmentOffsets.length?
this.segmentOffsets[C+N].start:Infinity,B>n)C+=N;else{if(C<0)break;C<this.segmentOffsets.length&&B>this.segmentOffsets[C].end&&(C=-1);break}}if(k!==C){if(k>=0){var A;(A=this.getSegmentElement(k))==null||A.classList.remove("active")}this.segmentIndex=C;if(!(C<0)){var w;(w=this.getSegmentElement(C))==null||w.classList.add("active");this.isHovered||this.scrollElementToTop(C)}}};
_.Y.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.KY(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.Y.handleSegmentSelected=function(W){_.KY(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.Y.handleSegmentReplay=function(W){_.KY(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.Y.handleSectionHeaderSelected=function(W){_.KY(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.onRetryButtonClick=function(){_.Pe(this.hostElement,"transcript-retry-button-click")};
_.Y.getSegmentElement=function(W){return _.S(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.Y.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var k,C=(k=W.transcriptSegmentRenderer)!=null?k:W.transcriptSectionHeaderRenderer;return{start:Number(C.startMs)/1E3,end:Number(C.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.Y.clearHighlightedSegments=function(){var W=_.S(this.hostElement);W=_.b(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var k=W.next();!k.done;k=W.next())k.value.classList.remove("active")};
_.oq.Object.defineProperties(NA3.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.searchResultSegments)||((k=this.data)==null?void 0:k.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var HI=NA3;HI.prototype.onMouseLeave=HI.prototype.onMouseLeave;HI.prototype.onMouseEnter=HI.prototype.onMouseEnter;HI.prototype.handleSectionHeaderSelected=HI.prototype.handleSectionHeaderSelected;HI.prototype.handleSegmentReplay=HI.prototype.handleSegmentReplay;HI.prototype.handleSegmentSelected=HI.prototype.handleSegmentSelected;HI.prototype.handleSegmentEdit=HI.prototype.handleSegmentEdit;HI.prototype.segmentsChanged=HI.prototype.segmentsChanged;
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],HI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],HI.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],HI.prototype,"isError",void 0);
_.U([_.Z(),_.O("design:type",Object)],HI.prototype,"noResultLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],HI.prototype,"darkerPanels",void 0);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],HI.prototype,"segments",null);_.U([_.G("segments","noResultLabel"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],HI.prototype,"displayNoResults",null);
_.U([_.Hl("segments"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HI.prototype,"segmentsChanged",null);_.U([_.jI("yt-transcript-segment-edit"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],HI.prototype,"handleSegmentEdit",null);_.U([_.jI("yt-transcript-segment-selected"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],HI.prototype,"handleSegmentSelected",null);
_.U([_.jI("yt-transcript-segment-replay"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],HI.prototype,"handleSegmentReplay",null);_.U([_.jI("ytd-transcript-section-header"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],HI.prototype,"handleSectionHeaderSelected",null);_.U([_.jI("mouseenter"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HI.prototype,"onMouseEnter",null);
_.U([_.jI("mouseleave"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HI.prototype,"onMouseLeave",null);HI=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],HI);
_.q(HI,"ytd-transcript-segment-list-renderer",function(){if(k3j!==void 0)return k3j;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return k3j=W},{mode:1});var Yeo=function(){var W=_.R.apply(this,arguments)||this;W.hideTimestamps=!!_.h4("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.m("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.D(Yeo,_.R);_.Y=Yeo.prototype;_.Y.headerChanged=function(){var W,k;this.baseGetTranscriptsCommand=(k=_.z((W=this.data)==null?void 0:W.header,pXj))==null?void 0:k.onTextChangeCommand};
_.Y.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.Y.detached=function(){this.clearSearchBoxText()};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.Y.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"}}}};
_.Y.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.Y.fireSearch=function(W){var k=this;if(W){var C=W.detail.query;if(this.baseGetTranscriptsCommand){var n;W=(n=_.z(this.baseGetTranscriptsCommand,_.rCs))==null?void 0:n.params;var N;n=_.z((N=this.data)==null?void 0:N.footer,x9G);var B;if((N=(B=_.z(n==null?void 0:n.languageMenu,J8G))==null?void 0:B.subMenuItems)&&N.length>0&&(B=N.find(function(x){return x.selected}))){var A,w;
W=(A=B.continuation)==null?void 0:(w=A.reloadContinuationData)==null?void 0:w.continuation}A=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:C}});this.ytComponentBehavior.resolveCommand(A,{commandController:{onServerError:function(){k.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});je5(this.ytContinuationHandlerBehavior,function(){return C===k.getCurrentSearchBoxText()})}}};
_.Y.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.Y.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.Y.hideTimestampsChanged=function(){_.KE("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.handleSignalActionCopyTranscript=function(){var W=this,k=this.getBodyRenderer();k&&(k=((k==null?void 0:k.searchResultSegments)||(k==null?void 0:k.initialSegments)||[]).map(function(C){return _.z(C,eaN)}).filter(function(C){return!!C}).map(function(C){return{snippet:C.snippet||{runs:[{text:""}]},
startTimeText:C.startTimeText||{simpleText:""}}}).map(function(C){var n=(C.snippet.runs||[]).reduce(function(N,B){return N+B.text},"");
return W.hideTimestamps?n:C.startTimeText.simpleText+" "+n}).join("\n"),this.copyToClipboard(k))};
_.Y.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.Y.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.Y.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.Y.getBodyRenderer=function(){var W;return _.z((W=this.data)==null?void 0:W.body,vO3)};
_.Y.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.oq.Object.defineProperties(Yeo.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.S(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var rs=Yeo;rs.prototype.hideTimestampsChanged=rs.prototype.hideTimestampsChanged;rs.prototype.searchCleared=rs.prototype.searchCleared;rs.prototype.fireSearch=rs.prototype.fireSearch;rs.prototype.onReloadContinuationFinish=rs.prototype.onReloadContinuationFinish;rs.prototype.bodyChanged=rs.prototype.bodyChanged;rs.prototype.headerChanged=rs.prototype.headerChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],rs.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],rs.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rs.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rs.prototype,"hideTimestamps",void 0);
_.U([_.Z(),_.O("design:type",Object)],rs.prototype,"isLoadingTranscripts",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rs.prototype,"darkerPanels",void 0);_.U([_.Z(),_.O("design:type",Object)],rs.prototype,"isError",void 0);_.U([_.Hl("data.header"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rs.prototype,"headerChanged",null);
_.U([_.Cq("data.body"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rs.prototype,"bodyChanged",null);_.U([_.jI("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rs.prototype,"onReloadContinuationFinish",null);_.U([_.jI("yt-transcript-search-box-search"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],rs.prototype,"fireSearch",null);
_.U([_.jI("yt-transcript-search-box-clear"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rs.prototype,"searchCleared",null);_.U([_.Hl("hideTimestamps"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],rs.prototype,"hideTimestampsChanged",null);rs=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],rs);
_.q(rs,"ytd-transcript-search-panel-renderer",function(){if(h_5!==void 0)return h_5;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return h_5=W},{mode:1});var BAN=function(){var W=_.R.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.D(BAN,_.R);_.Y=BAN.prototype;_.Y.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.Y.onLoadReloadContinuation=function(W){_.m("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}}))};
_.Y.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"}}}};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.Y.attached=function(){this.updatePlayerListening()};
_.Y.detached=function(){this.updatePlayerListening()};
_.Y.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.Y.startPlayerListening=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return(k=_.Zf())?_.l(C,k.getPlayerPromise(),2):C.return();W.player=C.yieldResult;W.playerPollJobId=_.aM.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(n){W.onCueRangeEnter(n)});
W.player.addEventListener("onCueRangeExit",function(n){W.onCueRangeExit(n)});
W.player.addEventListener("onStateChange",function(n){W.onPlayerStateChange(n)});
W.player.addEventListener("SEEK_TO",function(n){W.onPlayerSeek(n)});
_.ab(C)})};
_.Y.getPlayerVideoProgress=function(){var W=this;_.aM.cancelJob(this.playerPollJobId);if(this.player){var k=this.player.getCurrentTime();_.KY(this.hostElement,"yt-player-time-changed",[k])}this.playerPollJobId=_.aM.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.Y.stopPlayerListening=function(){this.player=null;_.aM.cancelJob(this.playerPollJobId)};
_.Y.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.Y.onPlayerSeek=function(W){var k;if(k=this.pendingReplayCueId)k=this.pendingReplayCueId,k=W===(_.m("web_transcript_cue_id_killswitch")?Number(k):Number(k.split("_")[1]));k||this.removePendingCue()};
_.Y.onCueRangeEnter=function(W){F_N(W)&&(this.pendingReplayCueId=W)};
_.Y.onCueRangeExit=function(W){F_N(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.Y.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.Y.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.Y.onYtTranscriptPlayerReplay=function(W,k){this.player&&(this.player.addCueRange(AoL(W),W,k),this.player.seekTo(W,!0),this.player.playVideo())};
_.Y.onYtTranscriptPlayerEdit=function(W,k){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(AoL(W),W,k),this.player.seekTo(W,!0))};
var gs=BAN;gs.prototype.onLoadReloadContinuation=gs.prototype.onLoadReloadContinuation;gs.prototype.panelContentVisibleChanged=gs.prototype.panelContentVisibleChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],gs.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],gs.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gs.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],gs.prototype,"panelContentVisible",void 0);_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gs.prototype,"panelContentVisibleChanged",null);
_.U([_.jI("yt-load-reload-continuation"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],gs.prototype,"onLoadReloadContinuation",null);gs=_.U([_.T({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],gs);
_.q(gs,"ytd-transcript-renderer",function(){if(gwN!==void 0)return gwN;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gwN=W},{mode:1});var bS_;var Ajr;var Fha=function(){return _.R.apply(this,arguments)||this};
_.D(Fha,_.R);Fha.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.CB(this.hostElement,[this.data.clickCommand],this.hostElement))};
Fha.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.EP)()+_.il)+"px)"};
Fha.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
var PI=Fha;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],PI.prototype,"rendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],PI.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],PI.prototype,"shouldHide",void 0);PI=_.U([_.T({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],PI);
_.q(PI,"ytd-ad-engagement-panel-banner-renderer",function(){if(Ajr!==void 0)return Ajr;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ajr=W},{mode:_.UC("kevlar_poly_si_batch_j070")?1:2});var wv7;var xI6=function(){var W=_.R.apply(this,arguments)||this;W.modernPanels=_.m("kevlar_watch_modern_panels");W.buttonUpdate=_.m("web_modern_buttons");W.adsSemanticText=_.m("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.D(xI6,_.R);xI6.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var Ko=xI6;_.U([_.Z(),_.O("design:type",Object)],Ko.prototype,"data",void 0);_.U([_.Z({computed:"computeHideDefaultAdBadge(data)"}),_.O("design:type",Boolean)],Ko.prototype,"hideDefaultAdBadge",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ko.prototype,"modernPanels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ko.prototype,"buttonUpdate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ko.prototype,"adsSemanticText",void 0);
Ko=_.U([_.T({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ko);
_.q(Ko,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(wv7!==void 0)return wv7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wv7=W},{mode:1});var lEi;var tO6=function(){var W=_.R.apply(this,arguments)||this;W.darkerPanels=_.m("web_watch_darker_panels");W.enableSqueezebackPanels=_.m("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.m("desktop_shorts_v2_anchored_panel");W.modernPanels=_.m("kevlar_watch_modern_panels");W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.D(tO6,_.R);_.Y=tO6.prototype;_.Y.computeAdsInfoButton=function(){if(_.m("web_modern_buttons")){var W,k;return(k=_.z((W=this.data)==null?void 0:W.subtitleComplex,le_))==null?void 0:k.adInfoRenderer}};
_.Y.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}}}}}};
_.Y.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.m("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.Y.focus=function(W){this.titleElement&&_.ek(this.titleElement,W)};
_.Y.computeTitleAriaLabel=function(W){var k=[];W.title&&k.push(this.ytRendererBehavior.getSimpleString(W.title));W.contextualInfo&&k.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return k.join(" ")};
_.Y.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.CB(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.Y.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.z(this.data.visibilityButton,_.Vq)||_.z(this.data.visibilityButton,_.JT);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.Y.getVisibilityToggleButton=function(){var W=_.S(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.Y.shouldTriggerHeaderClick=function(W){return!_.er(_.vl(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.Y.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.z(W,_.nOr);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.oq.Object.defineProperties(tO6.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.m("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
var hr=tO6;hr.prototype.collapsedChanged=hr.prototype.collapsedChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],hr.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],hr.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],hr.prototype,"targetId",void 0);_.U([_.Z(),_.O("design:type",Boolean)],hr.prototype,"collapsed",void 0);_.U([_.Z(),_.O("design:type",Boolean)],hr.prototype,"hideActionButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],hr.prototype,"shortsPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],hr.prototype,"liveChatEngagementPanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hr.prototype,"darkerPanels",void 0);_.U([_.gi("#title"),_.O("design:type",HTMLElement)],hr.prototype,"titleElement",void 0);_.U([_.Z({computed:"computeAdsInfoButton(data)"}),_.O("design:type",Object)],hr.prototype,"adsInfoButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hr.prototype,"enableSqueezebackPanels",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hr.prototype,"enableAnchoredPanel",void 0);_.U([_.Z({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,k){return _.hQ(W.entities,"engagementPanelTitleHeaderEntity",k)}}),
_.O("design:type",Object)],hr.prototype,"entity",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hr.prototype,"modernPanels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("targetId"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hr.prototype,"adsSemanticText",null);_.U([_.Cq("collapsed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hr.prototype,"collapsedChanged",null);
_.U([_.G("entity","hideActionButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hr.prototype,"isActionButtonHidden",null);hr=_.U([_.T({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],hr);
_.q(hr,"ytd-engagement-panel-title-header-renderer",function(){if(lEi!==void 0)return lEi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lEi=W},{mode:1});var En3;var aEz=function(){return _.R.apply(this,arguments)||this};
_.D(aEz,_.R);aEz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Wo=aEz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wo.prototype,"data",void 0);Wo=_.U([_.T({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Wo);
_.q(Wo,"ytd-macro-markers-info-item-renderer",function(){if(En3!==void 0)return En3;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return En3=W},{mode:1});var Xvr;var mIi=function(W,k,C,n,N){_.XK.call(this);this.JSC$19922_containerElement=W;this.hostElement=k;this.supportedSyncItems=C;this.syncEntityKey=n;this.options=N;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;fE_(this);dI5(this);this.JSC$19922_scrollAnimation=new _.Mp(function(B){W.scrollTop=B});
_.Bf(this,this.JSC$19922_scrollAnimation)};
_.D(mIi,_.XK);var fE_=function(W){var k=_.nE(_.f().resolve(_.ak),function(C){return C.entities.markersEngagementPanelSyncEntity||{}},function(C,n){var N;
C[W.syncEntityKey]!==n[W.syncEntityKey]&&((N=C[W.syncEntityKey])==null?void 0:N.activeItemIndex)!==void 0&&W.updatePanelActiveItem(C[W.syncEntityKey].activeItemIndex)});
W.addOnDisposeCallback(k)},dI5=function(W){var k=new _.Ox(W.onScroll,50,W);
_.Bf(W,k);var C=function(){k.fire()};
W.JSC$19922_containerElement.addEventListener("scroll",C);W.addOnDisposeCallback(function(){W.JSC$19922_containerElement.removeEventListener("scroll",C)})};
_.Y=mIi.prototype;
_.Y.updatePanelActiveItem=function(W){var k=this.getItemByIndex(W);if(k){if(this.setActiveItem(k),this.contentVisible)if(this.browsingMode){var C;((C=this.options)==null?void 0:C.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=zqz(this),k.offsetTop<this.JSC$19922_containerElement.clientHeight+this.JSC$19922_containerElement.scrollTop&&W&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));DIl(this)}else this.scrollToItem(k)}else _.zJ(new _.AM("Could not find "+this.supportedSyncItems+
" sync child to set active.",W,this.JSC$19922_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.Y.getItemByIndex=function(W){var k;(k=this.renderLazyListItems)==null||k.call(this,W);k=this.JSC$19922_containerElement.querySelectorAll(this.supportedSyncItems);if(k.length>W)return k[W]};
_.Y.setActiveItem=function(W){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));W.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=W};
_.Y.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$19922_containerElement.scrollTop!==W&&this.JSC$19922_scrollAnimation.start(this.JSC$19922_containerElement.scrollTop,W,300)};
_.Y.getScrollPositionForItem=function(W){if(this.JSC$19922_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var k,C=((k=this.options)==null?0:k.percentOffset)?this.JSC$19922_containerElement.clientHeight*this.options.percentOffset:0;W=_.pU(W).y+this.JSC$19922_containerElement.scrollTop-(_.pU(this.JSC$19922_containerElement).y+C);return Math.max(0,Math.min(W,this.JSC$19922_containerElement.scrollHeight-this.JSC$19922_containerElement.offsetHeight))};
_.Y.onScroll=function(){this.activeItemBelowSyncPosition=zqz(this);if(this.activeItem&&!this.JSC$19922_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19922_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!VOj(this));DIl(this);break;default:this.enterBrowsingMode(!0)}}};
_.Y.enterBrowsingMode=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1){if(k.browsingMode)return N.return();k.browsingMode=!0;W&&k.hostElement.classList.add("browsing-mode");k.playerExitBrowsingModeListener=function(){k.exitBrowsingMode(!1)};
return _.l(N,_.HJ(),2)}C=N.yieldResult;(n=C)==null||n.addEventListener("SEEK_TO",k.playerExitBrowsingModeListener);_.ab(N)})};
_.Y.exitBrowsingMode=function(W){W=W===void 0?!0:W;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),W&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.Y.removePlayerSeekListener=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1)return W.playerExitBrowsingModeListener?_.l(n,_.HJ(),3):n.jumpTo(0);k=n.yieldResult;(C=k)==null||C.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.ab(n)})};
var DIl=function(W){var k;((k=W.options)==null?void 0:k.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(VOj(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},zqz=function(W){if(!W.activeItem)return!1;
var k,C=((k=W.options)==null?0:k.percentOffset)?W.JSC$19922_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$19922_containerElement.scrollTop+C},VOj=function(W){if(!W.activeItem)return!1;
var k=W.activeItem.offsetTop+14<=W.JSC$19922_containerElement.scrollTop+W.JSC$19922_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$19922_containerElement.scrollTop&&k};
mIi.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Jj3=function(W,k){W.renderLazyListItems=k};var cj5=function(){var W=_.R.apply(this,arguments)||this;W.browsingMode=!1;W.modern=_.m("web_button_rework");W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.D(cj5,_.R);_.Y=cj5.prototype;_.Y.activeItemChanged=function(){if(!_.m("synced_panel_scrolling_controller")){var W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.Y.created=function(){var W=this;_.m("synced_panel_scrolling_controller")||(this.JSC$19927_scrollAnimation=new _.Mp(function(k){W.contents.scrollTop=k}),this.boundExitBrowsingMode=function(){W.exitBrowsingMode(!1)})};
_.Y.attached=function(){var W=this;if(_.m("synced_panel_scrolling_controller")&&!this.scrollController){var k,C,n,N;this.scrollController=new mIi(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(N=(k=this.data)==null?void 0:k.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key",{percentOffset:(C=this.data)==null?void 0:C.selectedItemAlignmentPercentOffset,floatingPillType:(n=this.data)==null?void 0:n.floatingPillType});
Jj3(this.scrollController,function(B){W.renderLazyListItems(B)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.Y.detached=function(){if(_.m("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.Y.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"}}}};
_.Y.dataChanged=function(){if(_.m("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode();var k,C;if((W=this.scrollController)!=null){var n=(C=(k=this.data)==null?void 0:k.syncModelEntityKey)!=null?C:"default-macro-markers-list-renderer-entity-key";W.syncEntityKey=n}var N,B;(k=this.scrollController)!=null&&(C={percentOffset:(N=this.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(B=this.data)==null?void 0:B.floatingPillType},k.options=
C)}else this.exitBrowsingMode()};
_.Y.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.Y.computeSyncEnabled=function(W){return!(W==null||!W.syncButtonLabel)};
_.Y.renderLazyListItems=function(W){for(var k=this.contents.children,C=0,n=0;n<k.length;n++){var N=void 0;(N=k[n].ytLazyListBehavior)==null||N.fillRemainingListItems();var B=void 0,A=void 0;N=_.z((B=this.data)==null?void 0:(A=B.contents)==null?void 0:A[n],_.YBX);A=B=void 0;if((B=N)==null?0:(A=B.contents)==null?0:A.length)C+=N.contents.length;if(C>=W)break}};
_.Y.getItemByIndex=function(W){this.renderLazyListItems(W);var k=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(k.length>W)return k[W]};
_.Y.setActiveItem=function(W){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);W.active!==void 0&&(W.active=!0);this.currentActiveItem=W};
_.Y.handleSetActivePanelItemAction=function(W){if((W=_.z(W,YFN))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;if(_.m("synced_panel_scrolling_controller")){var k,C;var n=(C=(k=this.data)==null?void 0:k.syncModelEntityKey)!=null?C:"default-macro-markers-list-renderer-entity-key"}else{var N;n=(N=this.data)==null?void 0:N.syncModelEntityKey}var B;n&&((B=this.syncEntity)==null?void 0:B.activeItemIndex)!==W?this.ytdReduxBehavior.dispatch(_.Nj("markersEngagementPanelSyncEntity",n,{key:n,activeItemIndex:W})):
this.updatePanelActiveItem(W)}};
_.Y.updatePanelActiveItem=function(W){var k=this.getItemByIndex(W);k?(this.setActiveItem(k),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(k)):_.zJ(new _.AM("Could not find ytd-macro-markers-list-renderer sync child to set active.",W,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.Y.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.contents.scrollTop!==W&&this.JSC$19927_scrollAnimation.start(this.contents.scrollTop,W,300)};
_.Y.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===W)return 0;W=_.pU(W).y+this.contents.scrollTop-_.pU(this.contents).y-this.getStickyHeaderHeight(W);return Math.min(W,this.contents.scrollHeight-this.contents.offsetHeight)};
_.Y.getStickyHeaderHeight=function(W){if(W.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var k,C,n;return(n=(k=W.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(C=k.header)==null?void 0:C.offsetHeight)!=null?n:0}return 0};
_.Y.onScroll=function(){_.m("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19927_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.Y.enterBrowsingMode=function(){var W=this;return _.F(function(k){if(k.nextAddress==1){if(W.browsingMode)return k.return();W.browsingMode=!0;return _.l(k,_.Rh().getPlayerPromise(),2)}W.player=k.yieldResult;W.player.addEventListener("SEEK_TO",W.boundExitBrowsingMode);_.ab(k)})};
_.Y.exitBrowsingMode=function(W){this.browsingMode&&(this.browsingMode=!1,(W===void 0||W)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.Y.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.Y.onSyncClick=function(){if(_.m("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode()}else this.exitBrowsingMode()};
_.Y.panelContentVisibleChanged=function(){if(_.m("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var kl=cj5;kl.prototype.panelContentVisibleChanged=kl.prototype.panelContentVisibleChanged;kl.prototype.dataChanged=kl.prototype.dataChanged;kl.prototype.activeItemChanged=kl.prototype.activeItemChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],kl.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],kl.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kl.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],kl.prototype,"useCustomColors",void 0);_.U([_.Z({computed:"computeSyncEnabled(data)"}),_.O("design:type",Boolean)],kl.prototype,"syncEnabled",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],kl.prototype,"panelTargetId",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],kl.prototype,"panelContentVisible",void 0);_.U([_.gi("#contents"),_.O("design:type",HTMLElement)],kl.prototype,"contents",void 0);_.U([_.gi("#sync-container"),_.O("design:type",HTMLElement)],kl.prototype,"syncContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kl.prototype,"browsingMode",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],kl.prototype,"modern",void 0);_.U([_.Z({selectorArgs:["data.syncModelEntityKey"],selector:_.I4m}),_.O("design:type",Object)],kl.prototype,"syncEntity",void 0);_.U([_.Hl("syncEntity.activeItemIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kl.prototype,"activeItemChanged",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kl.prototype,"dataChanged",null);_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kl.prototype,"panelContentVisibleChanged",null);kl=_.U([_.T({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],kl);
_.q(kl,"ytd-macro-markers-list-renderer",function(){if(Xvr!==void 0)return Xvr;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Xvr=W},{mode:1});var IEr;var Sel=function(){return _.R.apply(this,arguments)||this};
_.D(Sel,_.R);var C$=Sel;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],C$.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],C$.prototype,"data",void 0);C$=_.U([_.T({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],C$);
_.q(C$,"ytd-error-corrections-section-item-renderer",function(){if(IEr!==void 0)return IEr;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return IEr=W},{mode:1});var MOa;var Q4j=function(){return _.R.apply(this,arguments)||this};
_.D(Q4j,_.R);Q4j.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var n$=Q4j;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],n$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],n$.prototype,"data",void 0);n$=_.U([_.T({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],n$);
_.q(n$,"ytd-error-corrections-section-renderer",function(){if(MOa!==void 0)return MOa;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return MOa=W},{mode:1});var pva;var vnr=function(){return _.R.apply(this,arguments)||this};
_.D(vnr,_.R);var Nc=vnr;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Nc.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.U([_.T({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Nc);
_.q(Nc,"ytd-topic-link-renderer",function(){if(pva!==void 0)return pva;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pva=W},{mode:1});var eql;var s4L=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("kevlar_modern_sd_v2");W.modernLockupV2=_.m("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.m("web_modern_typography");return W};
_.D(s4L,_.R);s4L.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var Yl=s4L;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Yl.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Yl.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Yl.prototype,"modernLockupV2",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Yl.prototype,"modernTypography",void 0);Yl=_.U([_.T({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Yl);
_.q(Yl,"ytd-video-description-course-section-renderer",function(){if(eql!==void 0)return eql;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return eql=W},{mode:1});var G3e;var yjG=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("kevlar_modern_sd_v2");W.modernTypography=_.m("web_modern_typography");return W};
_.D(yjG,_.R);yjG.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Bo=yjG;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bo.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Bo.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Bo.prototype,"modernTypography",void 0);
Bo=_.U([_.T({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Bo);
_.q(Bo,"ytd-video-description-files-section-renderer",function(){if(G3e!==void 0)return G3e;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return G3e=W},{mode:1});var $Ir;var ZSi=function(){return _.R.apply(this,arguments)||this};
_.D(ZSi,_.R);ZSi.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var ba=ZSi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ba.prototype,"data",void 0);ba=_.U([_.T({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ba);
_.q(ba,"ytd-video-description-gaming-section-renderer",function(){if($Ir!==void 0)return $Ir;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $Ir=W},{mode:1});var Rq3;var onj=function(){var W=_.R.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.D(onj,_.R);onj.prototype.computeHasDefaultMetadataEndpoint=function(W){var k;W=W==null?void 0:(k=W.defaultMetadata)==null?void 0:k.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
onj.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.oq.Object.defineProperties(onj.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var AV=onj;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],AV.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],AV.prototype,"isExpanded",void 0);_.U([_.Z({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],AV.prototype,"hasDefaultMetadataEndpoint",void 0);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],AV.prototype,"isExpandable",null);_.U([_.G("data","isExpandable","isExpanded"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],AV.prototype,"showExpandedMetadata",null);AV=_.U([_.T({is:"ytd-info-row-renderer",disableElementRegistration:!0})],AV);
_.q(AV,"ytd-info-row-renderer",function(){if(Rq3!==void 0)return Rq3;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Rq3=W},{mode:1});var iSo;var TAl=function(){var W=_.R.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.m("kevlar_modern_sd_v2");W.JSC$19953_lastScrollContainerWidth=NaN;return W};
_.D(TAl,_.R);_.Y=TAl.prototype;
_.Y.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"}}}};
_.Y.getItemsPath=function(){return"videoLockups"};
_.Y.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.Y.onIronResize=function(){this.updateVideoLockupStyles()};
_.Y.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.Y.updateVideoLockupStyles=function(){var W;this.JSC$19953_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$19953_scrollContainer.clientWidth,W!==this.JSC$19953_lastScrollContainerWidth&&(this.JSC$19953_lastScrollContainerWidth=W,_.Op(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.Pe(this.hostElement,"iron-resize")))};
_.oq.Object.defineProperties(TAl.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],k;if((k=this.data)==null||!k.carouselLockups)return W;k=_.b(this.data.carouselLockups);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;((n=_.z(C,$9G))==null?0:n.videoLockup)&&W.push(_.z(C,$9G).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],k;if((k=this.data)==null||!k.carouselLockups)return W;var C;return(C=_.z(this.data.carouselLockups[this.scrollCount],$9G))==null?void 0:C.infoRows}}});
var Fg=TAl;Fg.prototype.dataChanged=Fg.prototype.dataChanged;Fg.prototype.onIronResize=Fg.prototype.onIronResize;Fg.prototype.hiddenChanged=Fg.prototype.hiddenChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Fg.prototype,"componentBehavior",void 0);_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],Fg.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Fg.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Fg.prototype,"inlineStructuredDescription",void 0);_.U([_.Z({value:2}),_.O("design:type",Number)],Fg.prototype,"initialCount",void 0);_.U([_.Z(),_.O("design:type",Object)],Fg.prototype,"currentIndex",void 0);
_.U([_.Z(),_.O("design:type",Number)],Fg.prototype,"scrollCount",void 0);_.U([_.Z(),_.O("design:type",Object)],Fg.prototype,"supportComponentResize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Fg.prototype,"contentHidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Fg.prototype,"modern",void 0);_.U([_.gi("#scroll-container"),_.O("design:type",HTMLDivElement)],Fg.prototype,"JSC$19953_scrollContainer",void 0);
_.U([_.Hl("contentHidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fg.prototype,"hiddenChanged",null);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],Fg.prototype,"videoLockups",null);_.U([_.G("videoLockups"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Fg.prototype,"hasVideoLockups",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fg.prototype,"onIronResize",null);_.U([_.G("data","scrollCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],Fg.prototype,"infoRows",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fg.prototype,"dataChanged",null);Fg=_.U([_.T({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Fg);
_.q(Fg,"ytd-video-description-music-section-renderer",function(){if(iSo!==void 0)return iSo;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return iSo=W},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var qea;var uce=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("kevlar_modern_sd_v2");W.modernTypography=_.m("web_modern_typography");return W};
_.D(uce,_.R);uce.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var wg=uce;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.U([_.Z({}),_.O("design:type",Object)],wg.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],wg.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],wg.prototype,"modernTypography",void 0);
wg=_.U([_.T({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],wg);
_.q(wg,"ytd-video-description-transcript-section-renderer",function(){if(qea!==void 0)return qea;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qea=W},{mode:1});var UI6;_.Gj(_.GM(function(W){var k=_.kj(_.ri4,function(){return W.data().firstProviderLinkStatusEntityKey}),C=_.kj(_.ri4,function(){return W.data().secondProviderLinkStatusEntityKey}),n=function(){var N,B;
return((N=k())==null?void 0:N.linked)||((B=C())==null?void 0:B.linked)};
return _.t("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.t(_.Ya,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.t(_.Ya,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return n()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.t(_.NI,{cond:n,
then:function(){return _.t(_.Ex,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.t(_.NI,{cond:function(){return!n()},
then:function(){return _.t(_.Ex,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Th"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;return _.t("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.t("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.t(_.Ya,{text:function(){return k().sectionTitle}})),_.t("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.t(_.Ya,{text:function(){return k().bodyHeader}})),_.t("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.t(_.Ya,{text:function(){return k().bodyText}})),_.t(_.NI,
{cond:function(){return k().attributionText},
then:function(){return _.t("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.t(_.Ya,{text:function(){return k().attributionText}}))}}))},"Uh"),"how-this-was-made-section-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){return _.t("yt-video-description-youchat-section-view-model",{class:_.Li("ytVideoDescriptionYouchatSectionViewModelHost")},_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.t(_.Ya,{text:function(){return W.data().sectionTitle}})),_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.t(_.Ya,{text:function(){return W.data().subHeaderText}})),_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.t(_.zn,{data:function(){return _.z(W.data().primaryButton,
_.aS)}})))},"Vh"),"yt-video-description-youchat-section-view-model",{props:{data:_.Ik}});var OSz=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("kevlar_modern_sd_v2");W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.D(OSz,_.R);_.Y=OSz.prototype;
_.Y.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}}}}}};
_.Y.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.Y.dataChanged=function(){var W,k;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(k=W.items)==null?void 0:k.length)!==1||!_.z(this.data.items[0],Zgr))};
_.Y.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.Y.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.Y.autoFocusDescription=function(){var W;((W=_.f().resolve(_.qI(_.Ay)))==null?0:W.isKeyBoardInUse())&&this.description&&_.sL(this.description)};
_.Y.resize=function(){if(_.m("kevlar_disable_sd_resize"))this.JSC$19961_cardList&&_.Pe(this.JSC$19961_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Pe(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Pe(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.Y.scrollToSection=function(W){if(W=this.getSectionElement(W))_.KY(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.Y.getSectionElement=function(W){switch(W){case "infocards-item-section":var k;return(k=this.infocardsSection)!=null?k:null;case "transcript-item-section":var C;return(C=this.transcriptSection)!=null?C:null;case "how-this-was-made-section-item-section":var n;return(n=this.howThisWasMadeSection)!=null?n:null;case "files-item-section":var N;return(N=this.filesSection)!=null?N:null;default:return null}};
_.Y.handleSetActiveItemAction=function(W){var k=_.z(W,YFN),C=k&&(k==null?void 0:k.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19961_cardList;if(k&&C){W=this.currentActiveChapter;var n=this.currentActiveProblem;k=C==null?void 0:C.getItemByIndex(k.itemIndex);var N=C=!0;k&&(k.active=!0,k.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(C=W!==k,N=!1,this.currentActiveChapter=k):(k==null?void 0:k.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(C=!1,N=n!==k,this.currentActiveProblem=k));W&&C&&(W.active=!1);n&&N&&(n.active=!1)}};
_.oq.Object.defineProperties(OSz.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.m("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var xl=OSz;xl.prototype.onYtExpanderMoreTapped=xl.prototype.onYtExpanderMoreTapped;xl.prototype.onHiddenChanged=xl.prototype.onHiddenChanged;xl.prototype.dataChanged=xl.prototype.dataChanged;xl.prototype.panelContentVisibleChanged=xl.prototype.panelContentVisibleChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],xl.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],xl.prototype,"ironResizableBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xl.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],xl.prototype,"panelContentVisible",void 0);_.U([_.Z(),_.O("design:type",Boolean)],xl.prototype,"hasDescriptionOnly",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],xl.prototype,"inlineStructuredDescription",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],xl.prototype,"hidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],xl.prototype,"shortsPanel",void 0);_.U([_.Z(),_.O("design:type",Object)],xl.prototype,"videoSummary",void 0);_.U([_.Z(),_.O("design:type",Object)],xl.prototype,"merchShelf",void 0);
_.U([_.G("videoSummary"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],xl.prototype,"showVideoSummary",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xl.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],xl.prototype,"engagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],xl.prototype,"watchWhileSdp",void 0);
_.U([_.gi("ytd-expandable-video-description-body-renderer"),_.O("design:type",Object)],xl.prototype,"description",void 0);_.U([_.gi("ytd-horizontal-card-list-renderer"),_.O("design:type",Object)],xl.prototype,"JSC$19961_cardList",void 0);_.U([_.gi("ytd-horizontal-card-list-renderer[center-items]"),_.O("design:type",Object)],xl.prototype,"problemWalkthroughCardList",void 0);_.U([_.gi("ytd-shelf-renderer"),_.O("design:type",Object)],xl.prototype,"shelfSection",void 0);
_.U([_.gi("ytd-video-description-music-section-renderer"),_.O("design:type",Object)],xl.prototype,"musicMetadataSection",void 0);_.U([_.gi("ytd-video-description-infocards-section-renderer"),_.O("design:type",Object)],xl.prototype,"infocardsSection",void 0);_.U([_.gi("ytd-video-description-transcript-section-renderer"),_.O("design:type",Object)],xl.prototype,"transcriptSection",void 0);
_.U([_.gi("how-this-was-made-section-view-model"),_.O("design:type",Object)],xl.prototype,"howThisWasMadeSection",void 0);_.U([_.gi("ytd-video-description-files-section-renderer"),_.O("design:type",Object)],xl.prototype,"filesSection",void 0);_.U([_.Hl("panelContentVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xl.prototype,"panelContentVisibleChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xl.prototype,"dataChanged",null);_.U([_.Hl("hidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xl.prototype,"onHiddenChanged",null);_.U([_.jI("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xl.prototype,"onYtExpanderMoreTapped",null);
xl=_.U([_.T({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],xl);
_.q(xl,"ytd-structured-description-content-renderer",function(){if(UI6!==void 0)return UI6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return UI6=W},{mode:2});var LhL;var j46;var HSe=function(){return _.R.apply(this,arguments)||this};
_.D(HSe,_.R);HSe.prototype.computeAriaLabel=function(W){var k,C;return(W==null?void 0:(k=W.accessibility)==null?void 0:(C=k.accessibilityData)==null?void 0:C.label)||_.w8("LOADING",void 0,"Loading")};
var la=HSe;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],la.prototype,"data",void 0);_.U([_.Z({computed:"computeAriaLabel(data)"}),_.O("design:type",String)],la.prototype,"ariaLabel",void 0);la=_.U([_.l0({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],la);
_.q(la,"yt-content-loading-renderer",function(){if(j46===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;LhL===void 0&&(LhL=document.createElement("template"));var n=LhL;C.call(k,n.content.cloneNode(!0),W.content.firstChild);j46=W}W=j46;return W},{mode:_.UC("kevlar_poly_si_batch_j043")?1:2});var rjG=_.GM(function(W){var k=W.data;W=_.yE();_.pX(W,function(){return k().rendererContext});
var C=function(){var n;return _.Mj((n=k())==null?void 0:n.rendererContext)};
return _.t("content-list-item-view-model",{el:W,class:"ytContentListItemViewModelHost",role:function(){return C()?"listitem":void 0},
tabindex:function(){return C()?0:void 0}},_.t("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.t("div",{class:"ytContentListItemViewModelImageContainer"},_.t(_.NI,{cond:function(){return k().image},
then:function(n){return _.t(_.pi,{data:n,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.t(_.Ex,{data:function(){var n;
return(n=k())==null?void 0:n.avatar}},{avatarViewModel:_.D_})),_.t("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.t("div",{class:"ytContentListItemViewModelTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytContentListItemViewModelMetadata"},_.t(_.Ex,{data:function(){return k().metadata}},{contentMetadataViewModel:function(n){return _.t(_.oib,{data:n.data,
layout:1})}})))),_.t("div",{class:"ytContentListItemViewModelActionButton"},_.t(_.Ex,{data:function(){var n;
return(n=k())==null?void 0:n.actionButton}},{buttonViewModel:_.zn,
toggleButtonViewModel:_.fX})))},"Wh");_.Gj(_.GM(function(W){var k=_.b(_.kw(!1,void 0,"WbYeXc")),C=k.next().value,n=k.next().value;k=_.b(_.kw(!1,void 0,"msXkzc"));var N=k.next().value,B=k.next().value;_.Ee(function(){var x=_.z(W.data().collaboratePlaylistCollaborationSetting,Iez);x&&n(x.switchedOnByDefault);var E=_.z(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,Iez);E&&B(E.switchedOnByDefault);if(!x&&!E||!x&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")n(!0),B(!0)});
var A=function(x){n(x);B(x);var E=W.data().playlistCollaborationEntityKey||"";var a=_.SY().getState();(a=_.hQ(a.entities,"playlistCollaborationEntity",E))&&(a==null?void 0:a.isCollaborative)===x||_.SY().dispatch(_.Nj("playlistCollaborationEntity",E,Object.assign({},a,{isCollaborative:x})))},w=function(x){B(x)};
return _.t("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.t("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.t(_.Ex,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.t(_.TgS,{data:x.data,
onSwitch:A})}})),_.t(_.NI,{cond:C,
then:function(){return _.t("div",null,_.t("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.t(_.Ex,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.t(_.TgS,{data:x.data,
onSwitch:w,overrideDisabled:!1})}})),_.t(_.NI,{cond:N,
then:function(){return _.t("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.t(_.Ex,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.zn}))}}),_.t("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.t(_.Ex,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:rjG})))}}))},"Xh"),"playlist-collaboration-view-model",{props:{data:_.Ik}});var gn6=_.GM(function(W){var k=W.data;var C=W.customCommandResolver;return _.t(_.qf,null,_.t("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.t(_.Ex,{data:function(){return k().adAvatar}},{adAvatarViewModel:function(n){return _.t(_.OWA,{data:n.data,
customCommandResolver:C})}})),_.t("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.t(_.NI,{cond:function(){return k().headline},
then:function(n){return _.t(_.Ya,{text:n,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.t("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.t(_.Ex,{data:function(){return k().adBadge}},{adBadgeViewModel:function(n){return _.t(_.CG,{data:n.data,
hasDot:function(){return k().primaryDetailsLine!==void 0},
customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.t(_.Ex,{data:function(){return k().primaryDetailsLine}},{adDetailsLineViewModel:function(n){return _.t(_.nG,{data:n.data,
customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Yh"),PIe=_.GM(function(W){var k=W.data;
var C=W.customCommandResolver;W=_.yE();_.Zi(W,function(){return k().interaction},C);
_.uT(W,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});return _.t("ad-avatar-lockup-view-model",{class:function(){var n;return((n=k().interaction)==null?0:n.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:W,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t(_.Fc,null,_.t(_.Aj,{when:function(){return k().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.t(gn6,{data:k,
customCommandResolver:C})}),_.t(_.qk3,null,function(){return null})))},"Zh");_.Gj(_.GM(function(W){var k=W.data;var C=W.panelContentVisibility;W=_.yE();_.Zi(W,function(){return k().interaction},w6L);
_.uT(W,{visibilityCallback:function(N){var B,A=(B=k().interaction)==null?void 0:B.onFirstVisible;N&&A&&_.zj(A)},
showOption:_.gl});_.aW(function(){var N,B;if(B=_.QK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var A;B=(A=B())==null?void 0:A.onLayoutVisibleCallback}else B=null;(N=B)==null||N()});
var n=function(){return C()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.t("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:W},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.t(_.NI,{cond:_.hEm("(min-width: "+((0,_.EP)()+_.il)+"px) or (max-width: 600px)"),then:function(){return _.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(N){return _.t(_.DJ,{data:N.data,
targetHeight:80,customCommandResolver:w6L})}})}})),_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.t(_.Ex,{data:function(){return k().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.t(PIe,{data:N.data,
customCommandResolver:w6L})}})),_.t(_.NI,{cond:n,
then:function(){return _.t(_.Ex,{data:function(){return k().adButton}},{adButtonViewModel:function(N){return _.t(_.Kc,{data:N.data,
customCommandResolver:w6L})}})},
else:function(){return _.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:_.zn})}}),_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.t(_.Ex,{data:function(){var N=_.z(k().toggleButton,_.Xo);
return{toggleButtonViewModel:Object.assign({},N,{isTogglingDisabled:!0,isToggled:n()})}}},{toggleButtonViewModel:_.fX})))))},"$h"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Ik,
panelContentVisibility:_.Ik}});var Kh3=_.GM(function(W){var k=W.thumbsUp;W=W.thumbsDown;var C=_.b(_.kw(!1,void 0,"OxPsH")),n=C.next().value,N=C.next().value;C=_.b(_.kw(!1,void 0,"V5vWne"));var B=C.next().value,A=C.next().value;return _.t("div",{class:"ytwThumbsUpDownThumbs"},_.t(_.fX,{data:k,onToggle:function(w){N(w);B()&&A(!1)},
buttonShapeOverrides:function(){return{toggled:n()}}}),_.t(_.fX,{data:W,
onToggle:function(w){A(w);n()&&N(!1)},
buttonShapeOverrides:function(){return{toggled:B()}}}))},"ai");
Kh3.idomCompat=!0;var WKz=_.GM(function(W){var k=function(){return W.data().pendingStateEntityKey||""},C=_.kj(xao,k),n=function(){var N;
if(!(N=W.disabled())){var B;N=!((B=C())==null||!B.isPendingResponse)}return N};
return _.t("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.t(_.bI,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(N){return _.t(hq7,{data:N,disabled:n,pendingStateKey:k,onError:W.onError})}))},"bi"),hq7=_.GM(function(W){var k=_.yE(),C=_.b(_.kw(!0,void 0,"HBREAe")),n=C.next().value,N=C.next().value,B=function(){return W.data().text.content},A=_.Pj(function(w){var x,E,a,X,d,V,c,M;
return _.F(function(p){switch(p.nextAddress){case 1:w.stopPropagation();if(W.disabled())return p.return();E=String(Math.floor(((x=_.f().resolve(_.jr)())==null?void 0:x.getCurrentTime())||0)*1E3);a="youchat-"+Date.now();X=function(){_.dy(W.data().onClick||{});var e=_.rK({continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),u={inputComposerFormData:{clientMessageId:a,playerOffsetMs:E}};return new Promise(function(h,L){_.dy(e,{form:{formData:u},commandController:{onSuccess:function(Bw,
P){h(P)},
onServerError:function(Bw,P){L(P.error)}}})})};
d=llj(W.pendingStateKey());d(!0);qSz("#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");N(!1);_.F0(p,2);return _.l(p,X(),4);case 4:_.M7(p,3);break;case 2:V=_.EF(p),(M=(c=W).onError)==null||M.call(c,V);case 3:d(!1),_.ab(p)}})});
return _.t(_.NI,{cond:n,then:function(){return _.t("div",{class:"ytwYouChatChipsDataChipWrapper"},_.t("button",{el:k,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"on:click":A,tabindex:0},B))}})},"ci");var kWl=_.GM(function(W){var k=W.data;return _.t("yt-conversation-resource-view-model",{class:_.Li("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.t(_.NI,{cond:function(){var C;return(C=k().conversationResourceData)==null?void 0:C.learningGuideData},
then:function(C){return _.t(_.bI,{each:function(){return C().sectionData||[]}},function(n){return _.t("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.t(_.Ya,{text:function(){return n.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.t("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.t(_.Ya,{text:function(){return n.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.t(_.Ya,{text:function(){return n.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"di");
kWl.idomCompat=!0;var Cpr=_.GM(function(W){var k=function(){var e;return(e=W.data().text)==null?void 0:e.content},C=function(){var e,u;
return(e=W.data().webData)==null?void 0:(u=e.textResult)==null?void 0:u.content},n=_.f().resolve(_.Sc),N=_.rE(),B=function(){return W.data().chatResponseStyle},A=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl}}},w=function(){var e;
return W.data().webData||((e=W.data().text)==null?void 0:e.content)||W.data().videoResultsData||W.data().conversationResourceViewModel},x=function(){var e;
return(e=W.data().videoResultsData)==null?void 0:e.videoShelf},E=function(){var e;
return _.z(((e=W.data().videoResultsData)==null?void 0:e.videoShelf)||{},c8_)},a=function(){var e;
return(e=W.data().webData)==null?void 0:e.sourcesShelf},X=function(){var e;
return _.z(((e=W.data().webData)==null?void 0:e.sourcesShelf)||{},c8_)},d=function(){return _.z(W.data().conversationResourceViewModel||{},oO5)},V=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},c=function(){return _.z(W.data().thumbsUpViewModel,_.Xo)},M=function(){return _.z(W.data().thumbsDownViewModel,_.Xo)};
_.lI(function(){requestAnimationFrame(function(){var e;(e=W.shouldAnimateIcon)!=null&&e.call(W)&&al5(N.lottieEl)})});
var p={};return _.t("you-chat-item-view-model",{class:_.Li("ytwYouChatItemViewModelYouChatItemViewModel",(p.ytwYouChatItemViewModelHostNoPadding=function(){return!1},p)),
"data-target-id":function(){return W.data().id||""}},_.t(_.NI,{cond:w,
then:function(){var e={};return _.t("div",{"aria-hidden":"true"},_.t(_.jc,{className:_.Li("ytwYouChatItemViewModelIcon",(e.ytwYouChatItemViewModelRtl=n==="rtl",e.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:w())},e)),
animationName:"YOUCHAT_ICON",data:A,animationRef:N}))}}),_.t(_.NI,{cond:w,
then:function(){var e={};return _.t("div",{class:_.Li("ytwYouChatItemViewModelHost",(e.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},e)),
role:"alert"},_.t(_.NI,{cond:k,then:function(u){return _.t(_.wW,{text:u})}}),_.t(_.NI,{cond:C,
then:function(u){return _.t(_.wW,{text:u})}}),_.t(_.NI,{cond:x,
then:function(){return _.t("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.t(_.AG,{data:E,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.t(_.NI,{cond:a,
then:function(){return _.t("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.t(_.AG,{data:X,hasPeek:!0,disableArrows:!1}))}}),_.t(_.NI,{cond:d,
then:function(){return _.t(kWl,{data:d})}}),_.t(_.NI,{cond:V,
then:function(){return _.t(Kh3,{thumbsUp:c,thumbsDown:M})}}))}}),_.t(_.NI,{cond:function(){return W.data().chipsData},
then:function(e){return _.t(WKz,{data:e,disabled:W.pending,onError:W.onError})}}))},"ei");
Cpr.idomCompat={callbacks:{onError:!0,onSend:!0}};var ng7=_.GM(function(W){var k=function(){return W.data().choiceSelectedText};
return _.t("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.t(_.NI,{cond:k,then:function(){return _.t("div",{class:"ytYouChatUserTurnChoiceSelected"},_.t(_.Ya,{text:k}))}}),_.t("div",{class:"ytYouChatUserTurnUserMessage"},function(){return W.data().text}))},"fi");var Nd_=_.GM(function(W){var k=_.b((0,_.ARC)(W.data)).next().value;return _.t("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.t(_.Ex,{data:function(){return k().contents}},{chatLoadingViewModel:_.tct,
youChatItemViewModel:function(C){return _.t(Cpr,{data:C.data,pending:!1})},
chatUserTurnViewModel:function(C){return _.t(ng7,{data:C.data})},
accordionViewModel:function(C){return _.t(_.nzC,{data:C.data})},
learningJourneyLoaderViewModel:function(C){return _.t(_.h08,{data:C.data})}}))},"gi");_.Gj(_.GM(function(W){var k=_.b((0,_.ARC)(W.data)).next().value;return _.t("yt-section-list-renderer",{class:_.Li("ytSectionListRendererHost",W.className),"data-target-id":function(){return W.data().targetId||""}},_.t(_.Ex,{data:function(){return k().contents}},{itemSectionRenderer:Nd_}))},"hi"),"yt-section-list-renderer",{props:{data:_.Ik,
className:_.si}});_.Gj(_.GM(function(W){var k=function(){return _.z(W.data().inputComposerViewModel,SFl)},C=function(){var p;
return((p=k())==null?void 0:p.youchatPendingResponseEntityKey)||""},n=_.kj(xao,C),N=function(){var p;
return!((p=n())==null||!p.isPendingResponse)},B=_.b(_.kw(!0,void 0,"DR0q1d")),A=B.next().value,w=B.next().value,x=function(){return k().sectionTargetId||"youchat_messages_section"};
B=_.$I();var E=_.yE(),a=_.kj(tNG,"chat_input_view_model_state"),X=E3L(),d=function(){var p;return!((p=a())==null||!p.value)};
_.Ee(function(){var p;!d()&&((p=k())==null?0:p.welcomeFeatureContinuation)&&(p=_.rK({continuationCommand:{token:k().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.dy(p),X(!0));var e=x(),u;(u=_.f().resolve(_.qI(_.rF)))==null||u.addEventListener("yt-navigate-start",function(){_.xj.remove(e);X(!1)},{once:!0})});
var V=_.Pj(function(p){var e=N()||!1;X6r(E.value);e||p.key!=="Enter"||p.shiftKey||(p.preventDefault(),M());return!1}),c=_.Pj(function(){w(E.value.value.length===0);
return!1}),M=function(){var p,e,u,h,L,Bw,P,xz,Sp;
return _.F(function(vw){p=E.value.value;E.value.value="";X6r(E.value);e=flG(x(),p);_.dy(e);u=llj(C());_.zj(((h=k())==null?void 0:h.onSubmitCommand)||{});u(!0);Bw=String(Math.floor(((L=_.f().resolve(_.jr)())==null?void 0:L.getCurrentTime())||0)*1E3);xz=_.rK({continuationCommand:{token:(P=k())==null?void 0:P.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});Sp=_.rK({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:p,playerOffsetMs:Bw}});_.dy(xz,{form:{formData:Sp},
commandController:{onSuccess:function(){u(!1)},
onServerError:function(){var lw=x();_.dy({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:lw}}]}}});u(!1)}}});
_.ab(vw)})};
return _.t("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:B},_.t("div",{class:"chatInputViewModelChatInputWrapper"},_.t("form",{class:"chatInputViewModelChatInputForm"},_.t("textarea",{class:"chatInputViewModelChatInput",el:E,"on:keydown":V,"on:keyup":c,placeholder:function(){var p,e;var u=_.z((e=k())==null?void 0:e.inputFormField,CM5);return u==null?void 0:(p=u.contentProperties)==null?void 0:p.placeholderText},
rows:1}),_.t(_.zn,{data:function(){return _.z(W.data().sendButton,_.aS)},
onClick:function(p){p.preventDefault();M();w(E.value.value.length===0)},
buttonOverrides:function(){return{disabled:A()||N()}}})),_.t(_.Ya,{className:"chatInputViewModelChatDisclaimer",
text:function(){var p;return(p=_.z(W.data().disclaimer,_.rTY))==null?void 0:p.text}})))},"ii"),"yt-chat-input-view-model",{props:{data:_.Ik}});var Yha=["engagement-panel-clip-create","engagement-panel-clip-view"],BdL=0,bHo=function(){var W=_.R.apply(this,arguments)||this;var k;W.headerData=(k=W.data)==null?void 0:k.header;W.darkerPanels=_.m("web_watch_darker_panels");W.disableAutoFill=!1;W.isFullscreen=!1;W.modernPanels=_.m("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.m("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=_.m("web_disable_backdrop_filter");W.trackEngagementPanelVisibility=_.m("web_watch_track_engagement_panel_visibility");
W.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 W};
_.D(bHo,_.R);_.Y=bHo.prototype;
_.Y.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(W){W=
W==null?void 0:W.contents;if(!W||W.length<1)return"ytd-section-list-renderer";var k,C;W=(k=W[0])==null?void 0:(C=k.itemSectionRenderer)==null?void 0:C.contents;if(!W||W.length<1)return"ytd-section-list-renderer";var n;return((n=W[0])==null?0:n.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"}}}};
_.Y.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.Y.detached=function(){this.updateTheaterDisablement()};
_.Y.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.aM.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.Y.maybeScrollToItemSection=function(W){var k=this,C,n=W==null?void 0:(C=W.sectionListEngagementPanelExtras)==null?void 0:C.scrollToItemSectionIdentifier;n&&_.aM.addJob(function(){var N;(N=k.sectionListRendererElement)==null||N.scrollToItemSection(n)},8)};
_.Y.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.aM.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.Y.updatePanel=function(W,k,C,n){var N=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||n){if(W){n=W.header;var B=W.content,A=W.footer;(W=W.targetId)&&this.set("data.targetId",W);n&&this.set("data.header",n);B&&this.set("data.content",B);A&&this.set("data.footer",A)}else n&&(W=n.content,B=n.secondaryHeaderContent,(n=n.targetId)&&this.set("data.targetId",n),W&&this.set("data.content",W),B&&(this.secondaryHeaderData=B));this.updateChildVisibilityProperties();if(k){var w;_.m("kevlar_update_panel_focus_scroll_killswitch")||
(w={preventScroll:!0});this.focus(w)}_.ZR(this,function(){_.Pe(N.hostElement,"yt-refit");N.maybeScrollToItemSection(C)})}};
_.Y.computeHeaderData=function(){var W,k=(0,_.JU.unsafeClone)((W=this.data)==null?void 0:W.header);if(k){W=new _.r(Object.keys(k)[0]);var C=_.z(k,W),n=_.z(this.secondaryHeaderData,W);n&&_.l6(k,W,Object.assign({},n,C))}return k};
_.Y.getReloadContinuation=function(){var W,k,C,n=_.b(((W=this.data)==null?void 0:(k=W.content)==null?void 0:(C=k.sectionListRenderer)==null?void 0:C.continuations)||[]);for(W=n.next();!W.done;W=n.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.Y.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.Y.forwardPopupClosedToFlowRootRenderer=function(){var W=_.S(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.Y.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.m("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var W;this.visibility=(W=this.data)==null?void 0:W.visibility;var k;this.trackEngagementPanelVisibility&&((k=this.data)==null?void 0:k.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var C,n,N,B;this.contentEmpty=!!(((C=this.data)==null?0:(n=C.content)==null?0:n.structuredDescriptionContentRenderer)&&Object.keys((N=this.data)==null?void 0:(B=N.content)==null?void 0:B.structuredDescriptionContentRenderer).length===0);(W=_.f().resolve(_.lj))&&W.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.Y.isFullscreenChanged=function(){this.isFullscreen&&_.m("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.Y.focus=function(W){if(this.header)this.header.focus(W);else{var k;(k=_.S(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||k.focus(W)}};
_.Y.visibilityChanged=function(){if(!_.m("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",n=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=n||!this.lastVisibility,B,A,w=(B=this.data)==null?void 0:(A=B.identifier)==null?void 0:A.tag,
x;if(((x=this.data)==null?0:x.onShowCommands)&&W&&N)_.CB(this.hostElement,this.data.onShowCommands,this.hostElement),w&&_.ZF().dispatch(_.jo({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:w}}));else{var E;((E=this.data)==null?0:E.onHideCommands)&&k&&C&&(_.CB(this.hostElement,this.data.onHideCommands,this.hostElement),w&&_.ZF().dispatch(_.jo({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:w}})))}W&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*BdL++));_.m("kevlar_watch_focus_on_engagement_panels")&&
W&&n&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.Y.notifyVisibilityChanged=function(W){var k;_.hA(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(k=this.data)==null?void 0:k.targetId])};
_.Y.updateTheaterDisablement=function(){if(!_.m("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Yha.includes(W)&&!_.m("watch_next_grid_ignore_disallowed_panels")){var k=_.l3(_.ZF().getState()),C=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():C?(this.originalTheaterState===void 0&&(this.originalTheaterState=k,this.theaterDisablementPanelIdentifier=
W),k&&_.KY(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.Y.clearTheaterDisablement=function(){_.KY(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.Y.updateChildVisibilityProperties=function(){this.hostElement||_.m("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var k,C=(k=this.headerElement)==null?void 0:k.firstElementChild;if(C&&!this.adHeaderImageLockupViewModel){k=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";C.collapsed=k;C=_.S(C).querySelector("#visibility-button");if(!C)return;(C=C.firstElementChild)&&
C.polymerController.is==="ytd-toggle-button-renderer"&&C.polymerController.data.isToggled!==k&&C.polymerController.set("data.isToggled",k)}var n;if(k=(n=this.contentElement)==null?void 0:n.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")k.removeAttribute("panel-content-visible");else{k.setAttribute("panel-content-visible","");var N;(N=k.markDirty)==null||N.call(k)}};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(W){var k=this,C,n=(C=this.data)==null?void 0:C.targetId,N,B,A;C=((N=this.data)==null?void 0:(B=N.identifier)==null?void 0:B.tag)||((A=this.data)==null?void 0:A.panelIdentifier);var w=_.z(W,_.AC8),x;W=n&&(w==null?void 0:w.targetId)===n||C&&(w==null?void 0:(x=w.panelIdentifier)==null?void 0:x.tag)===C;this.dialog&&W&&(w==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(n==="engagement-panel-comments-section"?_.KY(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.KY(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",C]));n=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";x=this.isFullscreen&&_.m("kevlar_single_panel_fullscreen");n=!W&&(w==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!n&&x;_.m("kevlar_use_engagement_panel_management_component")||(W?(n=w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!n?_.aM.addJob(function(){k.visibility=w.visibility},2,this.hideDelayMs):this.visibility=w.visibility,w.visibility&&this.notifyVisibilityChanged(w.visibility)):n&&this.hidePanel())};
_.Y.onYtScrollToEngagementPanelCommand=function(W){var k,C=(k=this.data)==null?void 0:k.targetId,n,N,B;k=((n=this.data)==null?void 0:(N=n.identifier)==null?void 0:N.tag)||((B=this.data)==null?void 0:B.panelIdentifier);W=_.z(W,_.dRY);var A;(C&&(W==null?void 0:W.targetId)===C||k&&(W==null?void 0:(A=W.panelIdentifier)==null?void 0:A.tag)===k)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.KY(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.Y.attachVEs=function(W){var k,C;(W==null?0:(k=W.content)==null?0:(C=k.productListRenderer)==null?0:C.trackingParams)&&_.kf().graftServerVe(W.content.productListRenderer.trackingParams);var n,N;(W==null?0:(n=W.content)==null?0:(N=n.transcriptRenderer)==null?0:N.trackingParams)&&_.kf().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.Y.onYtUpdateEngagementPanelAction=function(W){var k,C=(k=this.data)==null?void 0:k.targetId;W=_.z(W,bga);C&&(W==null?void 0:W.targetId)===C&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.Y.onYtShowEngagementPanelScrimAction=function(W){var k,C=(k=this.data)==null?void 0:k.targetId;W=_.z(W,BTL);C&&(W==null?void 0:W.engagementPanelTargetId)===C&&(this.scrimmed=!0)};
_.Y.onYtHideEngagementPanelScrimAction=function(W){var k,C=(k=this.data)==null?void 0:k.targetId;W=_.z(W,NTL);C&&(W==null?void 0:W.engagementPanelTargetId)===C&&(this.scrimmed=!1)};
_.Y.getIdentifier=function(){var W,k,C;return((W=this.data)==null?void 0:W.panelIdentifier)||((k=this.data)==null?void 0:(C=k.identifier)==null?void 0:C.tag)};
_.Y.getSurface=function(){var W,k;return(W=this.data)==null?void 0:(k=W.identifier)==null?void 0:k.surface};
_.oq.Object.defineProperties(bHo.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
var tV=bHo;tV.prototype.visibilityChanged=tV.prototype.visibilityChanged;tV.prototype.isFullscreenChanged=tV.prototype.isFullscreenChanged;tV.prototype.dataChanged=tV.prototype.dataChanged;tV.prototype.forwardPopupClosedToFlowRootRenderer=tV.prototype.forwardPopupClosedToFlowRootRenderer;tV.prototype.onYtRendererstamperFinished=tV.prototype.onYtRendererstamperFinished;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],tV.prototype,"actionHandlerBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],tV.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"data",void 0);
_.U([_.Z({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.O("design:type",Object)],tV.prototype,"headerData",void 0);_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"secondaryHeaderData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"visibility",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"contentEmpty",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"scrimmed",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"dialog",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"dropdown",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"darkerPanels",void 0);_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"disableAutoFill",void 0);
_.U([_.Z({reflectToAttribute:!0,value:_.m("optimal_reading_width_comments_ep")}),_.O("design:type",Boolean)],tV.prototype,"optimalReadingWidthComments",void 0);_.U([_.Z(),_.O("design:type",Number)],tV.prototype,"hideDelayMs",void 0);_.U([_.Z({selector:_.GG,reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"isFullscreen",void 0);_.U([_.Z(),_.O("design:type",Number)],tV.prototype,"showDelayMs",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.targetId"),_.O("design:type",Object),_.O("design:paramtypes",[])],tV.prototype,"targetId",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],tV.prototype,"webSize",null);_.U([_.Z(),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],tV.prototype,"hideFooterBorder",null);_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"isWatch",void 0);
_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"originalTheaterState",void 0);_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"theaterDisablementPanelIdentifier",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"modernPanels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"isWatchWhilePanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"shortsPanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],tV.prototype,"liveChatEngagementPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"liveChatReplyPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"enableAnchoredPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tV.prototype,"disableBackdropFilter",void 0);
_.U([_.Z(),_.O("design:type",Object)],tV.prototype,"trackEngagementPanelVisibility",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],tV.prototype,"headerElement",void 0);_.U([_.gi("#header > *"),_.O("design:type",HTMLElement)],tV.prototype,"header",void 0);_.U([_.gi("ytd-section-list-renderer"),_.O("design:type",Object)],tV.prototype,"sectionListRendererElement",void 0);
_.U([_.gi("panel-ad-header-image-lockup-view-model"),_.O("design:type",HTMLElement)],tV.prototype,"adHeaderImageLockupViewModel",void 0);_.U([_.gi("#content"),_.O("design:type",HTMLElement)],tV.prototype,"contentElement",void 0);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"onYtRendererstamperFinished",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"dataChanged",null);_.U([_.Hl("isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"isFullscreenChanged",null);
_.U([_.Hl("visibility"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tV.prototype,"visibilityChanged",null);tV=_.U([_.T({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],tV);
_.q(tV,"ytd-engagement-panel-section-list-renderer",function(){if(bS_!==void 0)return bS_;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bS_=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var AM5;var FKe=function(){var W=_.R.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.D(FKe,_.R);_.Y=FKe.prototype;_.Y.dataChanged=function(){if(this.data){for(var W=[],k=_.b(this.data),C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0,N=void 0,B=(n=C)==null?void 0:(N=n.engagementPanelSectionListRenderer)==null?void 0:N.visibility;N=n=void 0;((n=C)==null?0:(N=n.engagementPanelSectionListRenderer)==null?0:N.targetId)&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(C)}this.visiblePanels=W}else this.visiblePanels=[]};
_.Y.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}}};
_.Y.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(k){var C;return((C=k.engagementPanelSectionListRenderer)==null?void 0:C.targetId)!==W})};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(W){var k=this,C=_.z(W,_.AC8);if(this.data&&(C==null?0:C.targetId)&&(C==null?0:C.visibility)){var n,N=(n=this.data.find(function(A){var w;return((w=A.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===C.targetId}))==null?void 0:n.engagementPanelSectionListRenderer;
if(N){var B=this.withoutVisiblePanelById(C.targetId);C.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(A){var w;return((w=A.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===C.targetId}))&&(B=[W].concat(_.J8(B)));
this.hideDelayMs&&C.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B.length===0?_.aM.addJob(function(){N.visibility=C.visibility;k.visiblePanels=B},10,this.hideDelayMs):(N.visibility=C.visibility,this.visiblePanels=B);
_.hA(this.hostElement,"yt-engagement-panels-visible-changed",[B])}}};
_.Y.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(k){var C;return(C=k.engagementPanelSectionListRenderer)==null?void 0:C.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.Y.handlePanelVisibilityChange=function(W,k){W=W===void 0?new Set:W;k=k===void 0?new Set:k;if(this.data)for(var C=_.b(this.data),n=C.next();!n.done;n=C.next()){n=n.value;var N=void 0,B=void 0,A=(N=n)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:B.targetId;if(A&&(N=k.has(A),B=W.has(A),A=void 0,!N&&B?(B=N=void 0,A=(N=n)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:B.onShowCommands):N&&!B&&(B=N=void 0,A=(N=n)==null?void 0:(B=N.engagementPanelSectionListRenderer)==
null?void 0:B.onHideCommands),A))for(n=_.b(A),A=n.next();!A.done;A=n.next())this.ytComponentBehavior.resolveCommand(A.value)}};
var Eu=FKe;Eu.prototype.onRendererstamperFinished=Eu.prototype.onRendererstamperFinished;Eu.prototype.dataChanged=Eu.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Eu.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Eu.prototype,"lastRenderedPanelIds",void 0);_.U([_.Z(),_.O("design:type",Number)],Eu.prototype,"hideDelayMs",void 0);_.U([_.Z(),_.O("design:type",Array)],Eu.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],Eu.prototype,"visiblePanels",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Eu.prototype,"isWatchWhilePanel",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Eu.prototype,"dataChanged",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Eu.prototype,"onRendererstamperFinished",null);Eu=_.U([_.T({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Eu);
_.q(Eu,"ytd-watch-engagement-panels",function(){if(AM5!==void 0)return AM5;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return AM5=W},{mode:1});var w4j;var aw=function(){return _.R.apply(this,arguments)||this};
_.D(aw,_.R);aw.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.jN(_.S(this.hostElement).querySelector("#text"),_.Z78(_.i7I,this.data.companionLegalText))};
aw.prototype.computeAutoScrollEnabled=function(W,k){return W&&!k};
aw.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
aw.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var Xg=aw;Xg.prototype.expandedChanged=Xg.prototype.expandedChanged;Xg.prototype.dataChanged=Xg.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.lP1),_.O("design:type",Object)],Xg.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Xg.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],Xg.prototype,"expanded",void 0);
_.U([_.Z({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.O("design:type",Boolean)],Xg.prototype,"autoScrollEnabled",void 0);_.U([_.Z(),_.O("design:type",String)],Xg.prototype,"expanderIcon",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xg.prototype,"dataChanged",null);
_.U([_.Hl("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xg.prototype,"expandedChanged",null);Xg=_.U([_.T({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Xg);
_.q(Xg,"ytd-companion-legal-text-renderer",function(){if(w4j!==void 0)return w4j;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return w4j=W},{mode:1});var x7L;var f$,l5N=function(){var W=_.R.apply(this,arguments)||this;W.buttonUpdate=_.m("web_modern_buttons");W.kevlarWatchGrid=_.m("kevlar_watch_grid");W.centerAlignDescription=_.m("action_companion_center_align_description");W.truncateDomain=_.m("action_companion_truncate_domain");return W};
_.D(l5N,_.R);_.Y=l5N.prototype;_.Y.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.Y.getOnLayoutVisibleCallback=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.Y.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",f$.JSC$20023_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.Y.getButtonRenderer=function(W){return W.actionButton&&_.z(W.actionButton,_.Vq)?(delete _.z(W.actionButton,_.Vq).navigationEndpoint,_.z(W.actionButton,_.Vq)):{}};
_.Y.onClick=function(W){var k=this;if((!_.m("web_modern_buttons")||!_.er(_.vl(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.Zf();var C=this.getLayoutId();W&&C&&_.m("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(n){(new _.Jc(n)).executeCommand(k.data.navigationEndpoint,C)}):_.m("kevlar_companion_resolve_command_killswitch")?_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.KY(this.hostElement,"yt-companion-ad-clicked",["action-companion",C])}};
_.oq.Object.defineProperties(l5N.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?0:(k=W.detailsLine)==null?0:(C=k.adRating)==null?0:C.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return((W=this.data)==null?0:(k=W.detailsLine)==null?0:(C=k.adRating)==null?0:(n=C.ratingIcon)==null?0:n.iconType)?_.Hp(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return((W=this.data)==null?0:(k=W.detailsLine)==null?0:(C=k.texts)==null?0:(n=C[0])==null?0:n.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?0:(k=W.description)==null?0:k.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
var dg=f$=l5N;f$.prototype.onClick=f$.prototype.onClick;f$.prototype.dataChanged=f$.prototype.dataChanged;dg.JSC$20023_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.w8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],dg.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dg.prototype,"rendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],dg.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dg.prototype,"buttonUpdate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dg.prototype,"kevlarWatchGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dg.prototype,"centerAlignDescription",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],dg.prototype,"truncateDomain",void 0);
_.U([_.Z({computed:"computeButtonOverride(buttonUpdate)"}),_.O("design:type",Object)],dg.prototype,"buttonOverride",void 0);_.U([_.G("data.detailsLine.adRating.ratingText"),_.O("design:type",Object),_.O("design:paramtypes",[])],dg.prototype,"getRating",null);_.U([_.G("getRating"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dg.prototype,"computeRatingHidden",null);
_.U([_.G("data.detailsLine.adRating.ratingIcon.iconType"),_.O("design:type",Object),_.O("design:paramtypes",[])],dg.prototype,"iconType",null);_.U([_.G("data.detailsLine.texts.0.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],dg.prototype,"getDetailsLine",null);_.U([_.G("getDetailsLine"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dg.prototype,"computeDetailsLineHidden",null);
_.U([_.G("data.description.text"),_.O("design:type",Object),_.O("design:paramtypes",[])],dg.prototype,"getDescriptionText",null);_.U([_.G("getDescriptionText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dg.prototype,"computeDescriptionTextHidden",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],dg.prototype,"interactionLoggingClientData",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dg.prototype,"hideBanner",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],dg.prototype,"dataChanged",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],dg.prototype,"onClick",null);dg=f$=_.U([_.T({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],dg);
_.q(dg,"ytd-action-companion-ad-renderer",function(){if(x7L!==void 0)return x7L;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return x7L=W},{mode:_.UC("kevlar_poly_si_batch_j067")?1:2});var tfa;var Egi;var a5j=function(){var W=_.R.apply(this,arguments)||this;W.buttonUpdate=_.m("web_modern_buttons");W.hideLegacyBanner=_.m("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.D(a5j,_.R);_.Y=a5j.prototype;_.Y.getOnLayoutVisibleCallback=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.Y.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.QG(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.z(this.data.clickthroughEndpoint,_.pM)&&(W=_.z(this.data.clickthroughEndpoint,_.pM).url,_.m("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.QG(W),this.clickThroughUrl=_.VG(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.Y.onClick=function(W){_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.Y.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(k){W.macroReplacementBehavior.sendServiceRequestAction([k])}),_.KY(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.Y.onLoad=function(){_.hA(this.hostElement,"yt-refit-popups-action")};
_.oq.Object.defineProperties(a5j.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
var m3=a5j;m3.prototype.onLoad=m3.prototype.onLoad;m3.prototype.onClick=m3.prototype.onClick;m3.prototype.dataChanged=m3.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],m3.prototype,"rendererBehavior",void 0);_.U([_.v(eA6.YtMacroReplacementBehavior),_.O("design:type",Object)],m3.prototype,"macroReplacementBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],m3.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],m3.prototype,"buttonUpdate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],m3.prototype,"hideLegacyBanner",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],m3.prototype,"adInfoButtonStyle",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],m3.prototype,"adInfoButtonType",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],m3.prototype,"macros",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],m3.prototype,"interactionLoggingClientData",null);_.U([_.Z(),_.O("design:type",String)],m3.prototype,"clickThroughUrl",void 0);_.U([_.Z(),_.O("design:type",_.X7)],m3.prototype,"imageSrc",void 0);_.U([_.Z(),_.O("design:type",Number)],m3.prototype,"imageWidth",void 0);_.U([_.Z(),_.O("design:type",Number)],m3.prototype,"imageHeight",void 0);_.U([_.Z(),_.O("design:type",Object)],m3.prototype,"noDotAdBadge",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],m3.prototype,"dataChanged",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],m3.prototype,"onClick",null);_.U([_.jI("load"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],m3.prototype,"onLoad",null);m3=_.U([_.T({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],m3);
_.q(m3,"ytd-image-companion-renderer",function(){if(Egi!==void 0)return Egi;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Egi=W},{mode:_.UC("kevlar_poly_si_batch_j067")?1:2});var X46;var z8,f55=function(){return _.R.apply(this,arguments)||this};
_.D(f55,_.R);_.Y=f55.prototype;_.Y.dataChanged=function(){this.set("data.adBadge",z8.JSC$20032_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.Y.getOnLayoutVisibleCallback=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.Y.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.KY(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.Y.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.Zf(),k=this.getLayoutId(),C=this.data.clickToAdvSiteEndpoint;W&&k&&_.m("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(n){(new _.Jc(n)).executeCommand(C,k)}):_.Pe(this.hostElement,"yt-navigate",{endpoint:C})}};
_.Y.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var k=0;k<W.length;k++)_.Sk(W[k])};
_.Y.getBaseUrl=function(W){return W.baseUrl||""};
_.oq.Object.defineProperties(f55.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.QK("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
var Dq=z8=f55;z8.prototype.onCompanionClicked=z8.prototype.onCompanionClicked;z8.prototype.dataChanged=z8.prototype.dataChanged;Dq.JSC$20032_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.w8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Dq.prototype,"data",void 0);
_.U([_.gi("#title"),_.O("design:type",HTMLElement)],Dq.prototype,"shopTitle",void 0);_.U([_.Cq("data.impressionEndpoints"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dq.prototype,"dataChanged",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dq.prototype,"interactionLoggingClientData",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Dq.prototype,"onCompanionClicked",null);Dq=z8=_.U([_.T({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Dq);
_.q(Dq,"ytd-shopping-companion-renderer",function(){if(X46!==void 0)return X46;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return X46=W},{mode:1});_.Gj(_.GM(function(W){var k=W.data;var C=_.yE();_.Zi(C,function(){return k().interaction},daL);
_.uT(C,{visibilityCallback:function(n){var N,B=(N=k().interaction)==null?void 0:N.onFirstVisible;n&&B&&_.zj(B)},
showOption:_.gl});_.aW(function(){var n,N;N=(N=_.QK("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.onLayoutVisibleCallback:null;(n=N)==null||n()});
_.Zx(C,"load",function(){_.hA(C.value,"yt-refit-popups-action")});
return _.t("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:C,"aria-label":function(){var n,N;return(n=k().interaction)==null?void 0:(N=n.accessibility)==null?void 0:N.label}},_.t("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(n){return _.t(_.DJ,{data:n.data,
targetHeight:80,customCommandResolver:daL})}})),_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.t(_.Ex,{data:function(){return k().adBadge}},{adBadgeViewModel:function(n){return _.t(_.CG,{data:n.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:_.zn}))))},"ji"),"banner-image-layout-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;W=_.yE();_.Zi(W,function(){return k().interaction},maN);
_.uT(W,{visibilityCallback:function(C){var n,N=(n=k().interaction)==null?void 0:n.onFirstVisible;C&&N&&_.zj(N)},
showOption:_.gl});_.aW(function(){var C,n;n=(n=_.QK("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.onLayoutVisibleCallback:null;(C=n)==null||C()});
return _.t("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:W},_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.t(_.Ex,{data:function(){return k().adImage}},{adImageViewModel:function(C){return _.t(_.DJ,{data:C.data,
targetHeight:80,customCommandResolver:maN})}})),_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.t(_.Ex,{data:function(){return k().adAvatarLockup}},{adAvatarLockupViewModel:function(C){return _.t(PIe,{data:C.data,
customCommandResolver:maN})}})),_.t(_.Ex,{data:function(){return k().adButton}},{adButtonViewModel:function(C){return _.t(_.Kc,{data:C.data,
customCommandResolver:maN})}}),_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.t(_.Ex,{data:function(){return k().menu}},{buttonViewModel:_.zn}))))},"ki"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Ik}});var d75={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"},m7e=function(){var W=_.R.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.D(m7e,_.R);_.Y=m7e.prototype;_.Y.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:d75}}};
_.Y.attached=function(){var W=this,k=_.Zf();k&&k.getPlayerPromise().then(function(C){W.getCachedDataAndListen(C)})};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.Y.updateRendererStamper=function(){var W={};if(this.data)for(var k in d75)if(this.data[k]){W[k]=this.data[k];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.Y.getCachedDataAndListen=function(W){var k=this.retrieveCachedCompanionData();k&&Object.keys(k).length&&this.receiveCompanionData(k);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.Y.retrieveCachedCompanionData=function(){return _.NX.yt&&_.NX.yt.www&&_.NX.yt.www.ads&&_.NX.yt.www.ads.eventcache&&_.NX.yt.www.ads.eventcache.getLastCompanionData?_.NX.yt.www.ads.eventcache.getLastCompanionData():null};
_.Y.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.Y.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var k in d75)d75.hasOwnProperty(k)&&(this.data[k]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.hA(this.hostElement,
"yt-hide-unlimited-offer-module"),_.hA(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.Y.dataChanged=function(){var W=this,k=_.Zf();k?k.getPlayerPromise().then(function(C){W.contentVideoId&&C.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.pS(Error("hm"))};
_.Y.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.aM.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.Y.handleCompanionAdClicked=function(W,k){this.player.onAdUxClicked(W,k);this.player.pauseVideo()};
var Vc=m7e;Vc.prototype.dataChanged=Vc.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Vc.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],Vc.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Vc.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Vc.prototype,"oneofRenderer",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vc.prototype,"dataChanged",null);Vc=_.U([_.T({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Vc);
_.q(Vc,"ytd-companion-slot-renderer",function(){if(tfa!==void 0)return tfa;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return tfa=W},{mode:_.UC("kevlar_poly_si_batch_j067")?
1:2});var zlj;var D7a=function(){return _.R.apply(this,arguments)||this};
_.D(D7a,_.R);D7a.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var JV=D7a;JV.prototype.dataChanged=JV.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JV.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],JV.prototype,"companionSlotData",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],JV.prototype,"dataChanged",null);
JV=_.U([_.T({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],JV);
_.q(JV,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(zlj!==void 0)return zlj;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zlj=W},{mode:1});var Vfo;var JM3=function(){var W=_.R.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.ZR(W,function(){var k=W.COMPACT_EVENT_COUNT-1,C;(C=_.S(W.hostElement).querySelector("#event-"+k))==null||C.focus()}))};
return W};
_.D(JM3,_.R);_.Y=JM3.prototype;_.Y.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.Y.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.Y.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.LO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.LO(this.infoTooltip,this.infoTooltip.hide))};
_.Y.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.LO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.LO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.LO(this.infoTooltip,this.infoTooltip.hide))};
_.Y.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)};
_.Y.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.Y.showingMoreChanged=function(W){var k=this.get("data.events")||[];this.set("restEvents",k.slice(1,W?k.length:this.COMPACT_EVENT_COUNT).map(function(C){return C.ticketEventRenderer}));
k.slice(0,W?k.length:this.COMPACT_EVENT_COUNT).forEach(function(C){var n=_.VM();C=C.ticketEventRenderer.trackingParams;_.DH()&&n&&C&&(C=_.Yf(C),n&&_.GD(n,C))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.Y.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.Y.logTap=function(W){_.DH()&&this.ytRendererBehavior.logExplicitClick(W)};
_.Y.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.Y.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.Y.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.Y.handleTap=function(W,k,C){if(k.buttonCommand)if(k.hasMultipleOffers)Object.assign(_.z(k.buttonCommand,_.Eq),{properties:{source:C?"keyboard":"tap"}}),this.logTap(k),this.popupPositionTarget=W,_.CB(this.hostElement,[k.buttonCommand],this.hostElement);else{var n;if((n=_.z(k.buttonCommand,_.pM))==null?0:n.url)this.logTap(k),_.Ti(window,_.z(k.buttonCommand,_.pM).url)}};
var co=JM3;co.prototype.onShowingMoreChanged=co.prototype.onShowingMoreChanged;co.prototype.dataChanged=co.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],co.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],co.prototype,"firstEvent",void 0);_.U([_.Z(),_.O("design:type",Object)],co.prototype,"restEvents",void 0);
_.U([_.Z(),_.O("design:type",String)],co.prototype,"imageUrl",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],co.prototype,"showingMore",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],co.prototype,"canShowMore",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],co.prototype,"skinnyMode",void 0);_.U([_.Z(),_.O("design:type",HTMLElement)],co.prototype,"popupPositionTarget",void 0);
_.U([_.gi("#banner-info-tooltip"),_.O("design:type",Object)],co.prototype,"infoTooltip",void 0);_.U([_.gi("#info-container"),_.O("design:type",HTMLElement)],co.prototype,"infoContainer",void 0);_.U([_.gi("#shelf-toggler"),_.O("design:type",HTMLElement)],co.prototype,"shelfToggleButton",void 0);_.U([_.gi("#separator"),_.O("design:type",HTMLDivElement)],co.prototype,"separator",void 0);_.U([_.Z(),_.O("design:type",String)],co.prototype,"shelfTogglerLabelText",void 0);
_.U([_.Z(),_.O("design:type",String)],co.prototype,"shelfTogglerIcon",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],co.prototype,"dataChanged",null);_.U([_.Cq("showingMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],co.prototype,"onShowingMoreChanged",null);co=_.U([_.T({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],co);
_.q(co,"ytd-ticket-shelf-renderer",function(){if(Vfo!==void 0)return Vfo;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Vfo=W},{mode:1});var cMl;var I53;var ShN=function(){return _.R.apply(this,arguments)||this};
_.D(ShN,_.R);var Mfa=ShN;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Mfa.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Mfa.prototype,"data",void 0);Mfa=_.U([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Mfa);
_.q(Mfa,"ytd-comments-entry-point-message-renderer",function(){if(I53!==void 0)return I53;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return I53=W},{mode:1});var QX_;var p4o=function(){return _.R.apply(this,arguments)||this};
_.D(p4o,_.R);_.oq.Object.defineProperties(p4o.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
var Iw=p4o;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Iw.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Iw.prototype,"hasAvatar",null);Iw=_.U([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Iw);
_.q(Iw,"ytd-comments-entry-point-teaser-renderer",function(){if(QX_!==void 0)return QX_;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return QX_=W},{mode:1});var vgz;var elG=function(){return _.R.apply(this,arguments)||this};
_.D(elG,_.R);var sXz=elG;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sXz.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sXz.prototype,"data",void 0);sXz=_.U([_.T({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],sXz);
_.q(sXz,"ytd-comments-simplebox-renderer",function(){if(vgz!==void 0)return vgz;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vgz=W},{mode:1});var S2=function(){var W=_.R.apply(this,arguments)||this;W.fullHeight=!_.m("comment_teaser_full_height_kill_switch")&&_.m("kevlar_watch_grid");return W};
_.D(S2,_.R);S2.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"}}}};
S2.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
S2.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
S2.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.oq.Object.defineProperties(S2.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var k,C;if(((k=this.data)==null?0:k.teaserContent)||((C=this.data)==null?0:C.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var Mc=S2;Mc.prototype.onKeyUp=Mc.prototype.onKeyUp;Mc.prototype.onTap=Mc.prototype.onTap;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Mc.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Mc.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Mc.prototype,"fullHeight",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"tapCommand",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"simpleboxPlaceholder",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mc.prototype,"hasSimpleboxPlaceholder",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"simpleboxAvatar",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"teaserContent",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mc.prototype,"hasTeaserContent",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"teaserAvatar",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mc.prototype,"hasTeaserAvatar",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"messageText",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Mc.prototype,"contentRenderer",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mc.prototype,"hasContents",null);
_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Mc.prototype,"hasContentRenderer",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mc.prototype,"onTap",null);_.U([_.jI("keypress"),_.O("design:type",Function),_.O("design:paramtypes",[_.bs]),_.O("design:returntype")],Mc.prototype,"onKeyUp",null);Mc=_.U([_.T({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Mc);
_.q(Mc,"ytd-comments-entry-point-header-renderer",function(){if(cMl!==void 0)return cMl;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return cMl=W},{mode:1});var GWi;_.qN(_.gy,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var yM_=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),$7a={numberText:"",heightPx:2*yM_,shouldAnimate:!1},ZHi=function(){var W=_.R.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$20068_browserSupportsAnimation=_.m("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=$7a;W.dateTextProps=
$7a;W.metadataBadgesInDescription=_.m("web_metadata_badges_in_description");return W};
_.D(ZHi,_.R);_.Y=ZHi.prototype;_.Y.resetAnimationState=function(){this.shouldAnimate=!1};
_.Y.updateDynamicMetadata=function(){if(this.JSC$20068_browserSupportsAnimation){if(!this.detailed){var W,k,C,n;var N=(W=this.videoPrimaryInfoRenderer)==null?void 0:(k=W.viewCount)==null?void 0:(C=k.videoViewCountRenderer)==null?void 0:(n=C.extraShortViewCount)==null?void 0:n.simpleText;var B,A,w,x;var E=(B=this.videoPrimaryInfoRenderer)==null?void 0:(A=B.viewCount)==null?void 0:(w=A.videoViewCountRenderer)==null?void 0:(x=w.shortViewCount)==null?void 0:x.simpleText}if(!E){var a,X,d,V;N=(a=this.videoPrimaryInfoRenderer)==
null?void 0:(X=a.viewCount)==null?void 0:(d=X.videoViewCountRenderer)==null?void 0:(V=d.unlabeledViewCountValue)==null?void 0:V.simpleText;var c,M,p,e;E=(c=this.videoPrimaryInfoRenderer)==null?void 0:(M=c.viewCount)==null?void 0:(p=M.videoViewCountRenderer)==null?void 0:(e=p.viewCount)==null?void 0:e.simpleText}var u,h,L;W=Number((u=this.videoPrimaryInfoRenderer)==null?void 0:(h=u.viewCount)==null?void 0:(L=h.videoViewCountRenderer)==null?void 0:L.originalViewCount);var Bw,P;u=(Bw=this.videoPrimaryInfoRenderer)==
null?void 0:(P=Bw.relativeDateText)==null?void 0:P.simpleText;var xz;Bw=!((xz=this.videoPrimaryInfoRenderer)==null||!xz.relativeDateText);if(N&&E&&W&&(u||!Bw)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;xz=E.split(new RegExp("("+N+")"));N=IlG(xz[0]);var Sp;E={numberText:(Sp=xz[1])!=null?Sp:"",numberValue:W,heightPx:2*yM_,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var vw;Sp=((vw=xz[2])!=null?vw:"")+"  ";this.setViewCount(E,N,IlG(Sp));
if(!this.detailed&&Bw){N=u.split(/(\d+)/);vw=IlG(N[0]);var lw;Sp={numberText:(lw=N[1])!=null?lw:"",heightPx:2*yM_,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var G4;lw=((G4=N[2])!=null?G4:"")+"  ";this.setDateText(Sp,vw,IlG(lw))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.Y.setViewCount=function(W,k,C){_.y4(k)!==_.y4(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=k);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||$7a);_.y4(C)!==_.y4(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=C)};
_.Y.setDateText=function(W,k,C){_.y4(k)!==_.y4(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=k);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||$7a);_.y4(C)!==_.y4(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=C)};
_.Y.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.z(W,y8z).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.z(W,y8z).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.z(W,y8z).viewCount)))};
_.Y.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.z(W,_.sbj).dateText;this.shouldAnimate=!0;var k;((k=this.videoPrimaryInfoRenderer)==null?0:k.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.oq.Object.defineProperties(ZHi.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return co6(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.y4(co6(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.y4(this.viewCountPreNumberText),this.viewCountProps.numberText,_.y4(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.y4(this.dateTextPreNumberText),this.dateTextProps.numberText,_.y4(this.dateTextPostNumberText)].join("")}}});
var Qc=ZHi;Qc.prototype.updateDynamicMetadata=Qc.prototype.updateDynamicMetadata;Qc.prototype.resetAnimationState=Qc.prototype.resetAnimationState;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Qc.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Qc.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Qc.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"detailed",void 0);_.U([_.Z(),_.O("design:type",Object)],Qc.prototype,"shouldAnimate",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"viewCountPreNumberText",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"viewCountProps",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"viewCountPostNumberText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"dateTextPreNumberText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"dateTextProps",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"dateTextPostNumberText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qc.prototype,"metadataBadgesInDescription",void 0);_.U([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qc.prototype,"infoText",null);
_.U([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.O("design:type",String),_.O("design:paramtypes",[])],Qc.prototype,"descriptionInfoTooltipText",null);_.U([_.G("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.O("design:type",String),_.O("design:paramtypes",[])],Qc.prototype,"animatedViewCountAccessibilityLabel",null);
_.U([_.G("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.O("design:type",String),_.O("design:paramtypes",[])],Qc.prototype,"animatedDateTextAccessibilityLabel",null);_.U([_.Hl("videoPrimaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qc.prototype,"resetAnimationState",null);
_.U([_.Hl("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qc.prototype,"updateDynamicMetadata",null);Qc=_.U([_.T({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Qc);
_.q(Qc,"ytd-watch-info-text",function(){if(GWi!==void 0)return GWi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return GWi=W},{mode:1});var Rlo;var og3=_.GM(function(W){var k=W.data;var C=W.setTapCommand;_.XM(function(){var n=_.fi(k().onTap);C(n)});
return _.t("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.t(_.Ex,{data:function(){return k().avatar}},{avatarViewModel:_.D_}),_.t("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.t("span",null,function(){return k().simpleboxText})))},"li");var iHo=_.GM(function(W){return _.t("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.t(_.NI,{cond:function(){return _.z(W.data().avatar,_.Gn)},
then:function(k){return _.t(_.D_,{data:k,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.t("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.t(_.Ya,{text:function(){return W.data().teaserText}})))},"mi");var TdG=_.GM(function(W){var k=W.data;var C=W.setTapCommand;_.XM(function(){var n=_.fi(k().onTap);C(n)});
return _.t("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.t(_.Ex,{data:function(){return k().teasers}},{commentsEntryPointTeaserViewModel:iHo}))},"ni");var qh_=_.GM(function(W){var k=W.data;var C=W.setTapCommand;_.XM(function(){var n=_.fi(k().onTap);C(n)});
return _.t("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.t(_.Ya,{text:function(){return k().messageText}}))},"oi");var uVj=_.GM(function(W){var k=W.data;var C=W.setTapCommand;var n=W.isDisabled;_.XM(function(){var N=(n==null?0:n())?void 0:_.fi(k().onTap);C(N)});
return _.t("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.t(_.ka,{icon:function(){return k().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.t(_.NI,{cond:function(){return k().image},
then:function(N){return _.t(_.pi,{data:N,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.t(_.Ya,{text:function(){return k().text},
className:function(){return k().image||k().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.t(_.Ex,{data:function(){return k().button}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:n==null?void 0:n()}}})}}))},"pi");var U7_=_.GM(function(W){var k=W.data;var C=W.itemIndex;var n=W.selectedIndex;var N=W.indexUpdatedCallback;var B=W.observer;W=W.title;var A=_.yE(),w=function(X){C()===n()&&N(X)},x=_.X8(KiG),E=_.X8(h$_),a=function(){var X,d,V;
return((X=k())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!x()||((d=k())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&E().includes("PAposts_by_host")||((V=k())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&E().includes("PAyouchat")};
_.Ee(function(){B&&B().observe(A.value)});
return _.t("yt-carousel-item-view-model",{el:A,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.t(_.Ex,{data:function(){var X,d;return(d=(X=_.z(k().carouselItem,ktN))==null?void 0:X.textCarousel)!=null?d:k().carouselItem}},{textCarouselItemViewModel:function(X){return _.t(uVj,{data:X.data,
setTapCommand:w,isDisabled:a})},
commentTeaserCarouselItemViewModel:function(X){return _.t(TdG,{data:X.data,setTapCommand:w})},
commentInputBoxCarouselItemViewModel:function(X){return _.t(og3,{data:X.data,setTapCommand:w})},
commentsEntryPointMessageViewModel:function(X){return _.t(qh_,{data:X.data,setTapCommand:w})}}))},"qi");var OHz=_.GM(function(W){var k=W.numDots;var C=W.activeIndex;return _.t("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.t(_.bI,{each:function(){return Array.from({length:k()})},
keyBy:"INDEX"},function(n,N){return _.t("div",{class:function(){var B={};return _.Hj("ytCarouselDotsShapeDot",(B.ytCarouselDotsShapeDotActive=N===C(),B))}})}))},"ri");var LKN=_.GM(function(W){var k=W.data;var C=W.handleCarouselNavigation;var n=W.numItems;var N=W.selectedIndex;var B=function(){return{disabled:N()===0}},A=function(){return{disabled:N()===n()-1}};
return _.t("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.t("div",null,_.t("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return k().title}),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(w){return _.t("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return k().subtitleAccessibilityText}},w)}})),_.t(_.NI,{cond:function(){return n()>1},
then:function(){return _.t("div",{class:"ytCarouselTitleViewModelNavigation"},_.t(OHz,{numDots:n,activeIndex:N}),_.t(_.NI,{cond:function(){return k().previousButton},
then:function(w){return _.t(_.Ex,{data:w},{buttonViewModel:function(x){return _.t(_.zn,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return C(-1)},
buttonOverrides:B})}})}}),_.t(_.NI,{cond:function(){return k().nextButton},
then:function(w){return _.t(_.Ex,{data:w},{buttonViewModel:function(x){return _.t(_.zn,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return C(1)},
buttonOverrides:A})}})}}))}}))},"si");_.Gj(_.GM(function(W){var k=W.data;var C=_.yE(),n=_.yE(),N=_.DE("HTML_DIR")==="rtl",B=!1,A=0,w=0;W=_.b(_.kw(0,void 0,"m0dtIf"));var x=W.next().value,E=W.next().value;W=_.b(_.kw(0,void 0,"fL6I6"));var a=W.next().value,X=W.next().value;W=_.b(_.kw(!1,void 0,"ZPrwNb"));var d=W.next().value,V=W.next().value,c=function(){var xz,Sp,vw;return(vw=(xz=k())==null?void 0:(Sp=xz.carouselTitles)==null?void 0:Sp.length)!=null?vw:0},M=function(){n.value&&n.value.scrollLeft!==A&&E((N?n.value.scrollLeft<A:n.value.scrollLeft>
A)?Math.min(x()+1,c()-1):Math.max(x()-1,0))},p;
window.IntersectionObserver&&(p=new IntersectionObserver(function(xz){xz=_.b(xz);for(var Sp=xz.next();!Sp.done;Sp=xz.next())if(Sp.value.isIntersecting){if(B){B=!1;break}M()}else E(w)},{threshold:.2}));
_.XM(function(){if(n.value){var xz=(N?-1:1)*(a()/c()+12)*(d()&&p?w:x());typeof n.value.scrollTo==="function"?n.value.scrollTo({left:xz,behavior:"smooth"}):n.value.scrollLeft=xz;A=xz;w=d()&&p?w:x()}});
var e,u=function(xz){e=xz};
_.Ee(function(){var xz=function(){var vw=n.value.offsetWidth*c(),lw=24*(c()-1);X(vw+lw)};
xz();if(window.ResizeObserver){var Sp=new ResizeObserver(xz);Sp.observe(n.value);_.fy(function(){Sp.disconnect();p&&p.disconnect()})}});
W=_.Pj(function(xz){if(_.DW4(_.IS(xz),C.value,["BUTTON".toString()])||!e)return!1;_.f().resolve(_.uI).resolveCommand(e,{forceClickLogging:!0});return!1});
var h=function(xz){xz=x()+xz;xz>=0&&xz<c()&&(B=!0,E(xz))},L=_.Pj(function(){V(!0);
return!1}),Bw=_.Pj(function(){p||M();
V(!1);return!1}),P={};
return _.t("yt-video-metadata-carousel-view-model",{class:_.Li("ytVideoMetadataCarouselViewModelHost",(P.ytVideoMetadataCarouselViewModelShortMode=_.m("mweb_video_metadata_carousel_short_mode"),P)),el:C,"on:click":W,"on:touchstart":L,"on:touchend":Bw,hidden:function(){var xz,Sp;return!((xz=k())==null?0:(Sp=xz.carouselItems)==null?0:Sp.length)}},_.t("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.t(_.NI,{cond:function(){return k().carouselTitles},
then:function(xz){return _.t(_.Ex,{data:function(){return xz()[d()&&p?w:x()]}},{carouselTitleViewModel:function(Sp){return _.t(LKN,{data:Sp.data,
handleCarouselNavigation:h,numItems:c,selectedIndex:x})}})}})),_.t("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:n},_.t("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+a()+"px;"}},_.t(_.NI,{cond:function(){return k().carouselItems},
then:function(xz){return _.t(_.bI,{each:xz},function(Sp,vw){return _.t(_.Ex,{data:function(){return Sp}},{carouselItemViewModel:function(lw){return _.t(U7_,{data:lw.data,
itemIndex:vw,selectedIndex:x,indexUpdatedCallback:u,observer:p,title:function(){a:{var G4=vw();var nA,Xs=(nA=k())==null?void 0:nA.carouselTitles;if(Xs&&(G4=Xs[G4])){var aI;G4=(aI=_.z(G4,WR5))==null?void 0:aI.title;break a}G4=void 0}return G4}})}})})}}))))},"ti"),"yt-video-metadata-carousel-view-model",{props:{data:_.Ik}});var jXe=_.m("web_action_buttons_update_owner_width")?32:12,HHi=function(){var W=_.R.apply(this,arguments)||this;W.metadataBadgesInDescription=_.m("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.m("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.m("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=_.m("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=
0;W.videoId="";W.titleHeadlineXs=_.m("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.m("web_watch_typography_title_headline_s");W.titleHeadlineM=_.m("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.m("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.m("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.m("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return W};
_.D(HHi,_.R);_.Y=HHi.prototype;_.Y.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.Y.updateOwnerAndDescriptionPosition=function(){_.m("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.RD(this.bottomRowElement,this.ownerElement)):(_.RD(this.bottomRowElement,this.descriptionElement),_.RD(this.topRowElement,this.ownerElement)))};
_.Y.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var k;((k=window.getSelection())==null?0:k.toString().length)||this.handleExpandDescriptionCommands()}};
_.Y.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.Y.detached=function(){var W=this,k;return _.F(function(C){(k=W.resizeObserver)==null||k.disconnect();_.ab(C)})};
_.Y.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Ox(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.Y.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,k=Math.max(this.largerItemWrap?400:350,W/2-jXe);if(_.m("web_action_buttons_update_owner_width")){var C;k=(((C=document.getElementById("owner"))==null?void 0:C.clientWidth)||0)+jXe}this.actionsOnSeparateLine=this.primaryMenuWidth>W-k?!0:!1}};
_.Y.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.Y.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.m("web_modern_buttons"),forceIconButton:!_.m("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:_.m("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"}}}};
_.Y.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.Y.videoSecondaryInfoRendererChanged=function(){var W,k;(k=(W=this.descriptionInlineExpander).collapse)==null||k.call(W);this.descriptionExpandClientVe=_.F8(110509);this.descriptionCollapseClientVe=_.F8(110510);W=_.VM();k=_.DH();W&&k&&(_.m("combine_ve_grafts")?(_.Hn(_.kf(),this.descriptionExpandClientVe,k),_.Hn(_.kf(),this.descriptionCollapseClientVe,k)):_.Rg(W,k,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.Y.structuredDescriptionContentRendererChanged=function(){_.m("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.Y.updateTopLevelIconsOnly=function(){var W=this;_.m("top_level_update_killswitch")||this.menu&&_.aM.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.Oe("swathceroo_delay_flexible_menu_update",100))};
_.Y.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.m("web_action_buttons_minimize_subscribe")};
_.Y.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.Y.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.Y.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.Y.onYtTextInlineExpanderExpandedChanged=function(){if(!_.m("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,k;(k=(W=this.structuredDescriptionContentRendererElement).resize)==null||k.call(W)}};
_.Y.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.Y.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.Y.onYtExpanderLessTapped=function(){var W,k=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;k&&this.ytComponentBehavior.resolveCommand(k)};
_.Y.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.Y.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.Y.onDescriptionClick=function(W){if(!_.er(_.vl(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var k;((k=window.getSelection())==null?0:k.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.m("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.Y.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.Y.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.Y.logCollapseClick=function(){var W=_.VM();W&&this.descriptionCollapseClientVe&&_.Zr(W,this.descriptionCollapseClientVe)};
_.Y.logExpandClick=function(){var W=_.VM();W&&this.descriptionExpandClientVe&&_.Zr(W,this.descriptionExpandClientVe)};
_.Y.collapseDescription=function(){this.descriptionCollapsed=!0};
_.Y.scrollToTopOfContainer=function(){_.KY(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.Y.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.Y.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.Y.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.Y.resize=function(){if(this.descriptionInlineExpander){var W,k;(k=(W=this.descriptionInlineExpander).resize)==null||k.call(W)}else _.zJ(new _.AM("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var C;(C=this.menu)==null||C.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.m("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.Y.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,k,C,n,N=_.m("web_action_buttons_update_owner_width")?(C=(W=_.S(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?C:0:(n=(k=_.S(this.menu).querySelector("#button"))==null?void 0:k.clientWidth)!=null?n:0,B,A;W=((A=(B=_.S(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:B.clientWidth)!=null?A:0)+8+N;var w,x;N=(x=(w=_.S(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:w.children.length)!=null?x:2;W<=8*N||(this.primaryMenuWidth=W)}};
_.Y.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.z(W,Gta).title)};
_.Y.onYtUpdateDescriptionAction=function(W){if(W=_.z(W,_.Wu8)){var k,C=!((k=this.videoSecondaryInfoRenderer)==null||!k.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(C?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.t7(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.Y.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.Y.registerPanel=function(){if(!_.m("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.f().resolve(_.lj);W&&W.registerPanel("engagement-panel-structured-description",this)}};
_.Y.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.Y.showPanel=function(W){this.expandDescription();var k=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;k.resize();var C,n=W==null?void 0:(C=W.sectionListEngagementPanelExtras)==null?void 0:C.scrollToItemSectionIdentifier;n?_.aM.addJob(function(){k==null||k.scrollToSection(n)},8):this.scrollToTopOfContainer()};
_.Y.isVisible=function(){return!this.descriptionCollapsed};
_.Y.getReloadContinuation=function(){};
_.Y.hidePanel=function(){};
_.Y.updatePanel=function(){};
_.oq.Object.defineProperties(HHi.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRenderer)!=null&&W.items){var k;W=_.b((k=this.structuredDescriptionContentRenderer)==null?void 0:k.items);for(k=W.next();!k.done;k=W.next())if(k=_.z(k.value,_.tBx))return k}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(k=W.owner)==null?0:(C=k.videoOwnerRenderer)==null?0:C.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.m("swatchie_sd_new_line_strip_ks")){var W,k;if((W=this.videoSecondaryInfoRenderer)==null?0:(k=W.attributedDescription)==null?0:k.content){var C,n;return(n=this.stripAttributedDescription((C=this.videoSecondaryInfoRenderer)==null?void 0:C.attributedDescription))!=null?n:{runs:[]}}}var N,B,A,w;return(w=(A=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.description)!=null?A:(B=this.videoSecondaryInfoRenderer)==null?
void 0:B.attributedDescription)!=null?w:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?k:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Oe("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Oe("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,k,C=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(k=W.metadataRowContainer)==null?void 0:k.metadataRowContainerRenderer);if(C&&C.rows&&C.collapsedItemCount!==void 0&&!(C.rows.length<=C.collapsedItemCount))return C.rows=C.rows.slice(C.collapsedItemCount),C.collapsedItemCount=0,C}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,k,C=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(k=W.metadataRowContainer)==null?void 0:k.metadataRowContainerRenderer);if(C&&C.rows&&C.collapsedItemCount!==void 0)return C.rows=C.rows.slice(0,C.collapsedItemCount),C.collapsedItemCount=C.rows.length,C}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.structuredDescriptionContentRenderer)==null?0:(k=W.items)==null?0:k.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 W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.videoSecondaryInfoRenderer)==null?0:(k=W.owner)==null?0:(C=k.videoOwnerRenderer)==null?0:C.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(k=W.videoActions)==null?0:(C=k.menuRenderer)==null?0:(n=C.flexibleItems)==null?0:n.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.IE(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.IE(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.m("web_title_hashtag_grey_delinkified")){var k,C=_.JU.unsafeClone((k=this.videoPrimaryInfoRenderer)==null?void 0:k.title);(k=C==null?void 0:C.runs)&&k.forEach(function(n){if(n==null?0:n.navigationEndpoint)n.textColor=4284506208,W.isDark&&(n.textColor=4289374890)});
return C}return(C=this.videoPrimaryInfoRenderer)==null?void 0:C.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.m("web_title_hashtag_black_delinkified")||_.m("web_title_hashtag_grey_delinkified")}}});
var p$=HHi;p$.prototype.resetDescriptionState=p$.prototype.resetDescriptionState;p$.prototype.registerPanel=p$.prototype.registerPanel;p$.prototype.onYtExpanderLessTapped=p$.prototype.onYtExpanderLessTapped;p$.prototype.onYtExpanderMoreTapped=p$.prototype.onYtExpanderMoreTapped;p$.prototype.onRenderStamperFinished=p$.prototype.onRenderStamperFinished;p$.prototype.onYtTextInlineExpanderExpandedChanged=p$.prototype.onYtTextInlineExpanderExpandedChanged;
p$.prototype.onYtTextInlineExpanderCollapseClicked=p$.prototype.onYtTextInlineExpanderCollapseClicked;p$.prototype.onYtTextInlineExpanderExpandClicked=p$.prototype.onYtTextInlineExpanderExpandClicked;p$.prototype.moveActionsElement=p$.prototype.moveActionsElement;p$.prototype.updateShouldForceIconOnly=p$.prototype.updateShouldForceIconOnly;p$.prototype.updateTopLevelIconsOnly=p$.prototype.updateTopLevelIconsOnly;p$.prototype.structuredDescriptionContentRendererChanged=p$.prototype.structuredDescriptionContentRendererChanged;
p$.prototype.videoSecondaryInfoRendererChanged=p$.prototype.videoSecondaryInfoRendererChanged;p$.prototype.videoPrimaryInfoRendererChanged=p$.prototype.videoPrimaryInfoRendererChanged;p$.prototype.maybeUpdateActionsOnSeparateLine=p$.prototype.maybeUpdateActionsOnSeparateLine;p$.prototype.updateOwnerAndDescriptionPosition=p$.prototype.updateOwnerAndDescriptionPosition;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],p$.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],p$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#above-the-fold"),_.O("design:type",HTMLElement)],p$.prototype,"aboveTheFoldContainer",void 0);
_.U([_.gi("#menu ytd-menu-renderer"),_.O("design:type",Object)],p$.prototype,"menu",void 0);_.U([_.gi("#description-inline-expander"),_.O("design:type",Object)],p$.prototype,"descriptionInlineExpander",void 0);_.U([_.gi("#faded-structured-description"),_.O("design:type",Object)],p$.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.U([_.gi("#structured-description"),_.O("design:type",Object)],p$.prototype,"structuredDescriptionContentRendererElement",void 0);
_.U([_.gi("#title"),_.O("design:type",HTMLElement)],p$.prototype,"titleElement",void 0);_.U([_.gi("#description"),_.O("design:type",HTMLElement)],p$.prototype,"descriptionElement",void 0);_.U([_.gi("#description-interaction"),_.O("design:type",Object)],p$.prototype,"descriptionInteraction",void 0);_.U([_.gi("#owner"),_.O("design:type",HTMLElement)],p$.prototype,"ownerElement",void 0);_.U([_.gi("#top-row"),_.O("design:type",HTMLElement)],p$.prototype,"topRowElement",void 0);
_.U([_.gi("#bottom-row"),_.O("design:type",HTMLElement)],p$.prototype,"bottomRowElement",void 0);_.U([_.gi("#actions"),_.O("design:type",HTMLElement)],p$.prototype,"actionsElement",void 0);_.U([_.gi("#bottom-actions"),_.O("design:type",HTMLElement)],p$.prototype,"bottomActionsElement",void 0);_.U([_.gi("#ytd-watch-info-text"),_.O("design:type",Object)],p$.prototype,"watchInfoTextElement",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"videoMetadataCarousel",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"structuredDescriptionContentRenderer",void 0);
_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"videoSummary",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"merchShelf",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"infoPanelBelowMetadata",void 0);_.U([_.G("structuredDescriptionContentRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"productShelf",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"metadataBadgesInDescription",void 0);
_.U([_.G("videoPrimaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"shouldHideBadges",null);_.U([_.G("productShelf","descriptionCollapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"shouldShowProductShelf",null);_.U([_.Z(),_.O("design:type",Boolean)],p$.prototype,"isWatchFlexy",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"descriptionCollapsed",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],p$.prototype,"useFadedScrimDescription",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"skinnyMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("videoSecondaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"largerItemWrap",null);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"playlist",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"clarifyBox",void 0);
_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"playerAds",void 0);_.U([_.Z(),_.O("design:type",Boolean)],p$.prototype,"isDark",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],p$.prototype,"actionsOnSeparateLine",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"disableVideoOwnerOnTap",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"swatcherooDelayLoad",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],p$.prototype,"suppressTopLevelMetadataRows",void 0);_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"primaryMenuWidth",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"videoId",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"titleHeadlineXs",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"titleHeadlineS",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"titleHeadlineM",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"titleHashtagBlackLinkified",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"titleHashtagGreyLinkified",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],p$.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.U([_.Z(),_.O("design:type",Object)],p$.prototype,"shouldForceIconOnly",void 0);_.U([_.Cq("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"updateOwnerAndDescriptionPosition",null);_.U([_.Cq("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.U([_.G("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"descriptionText",null);_.U([_.G("videoSecondaryInfoRenderer.headerRuns"),_.O("design:type",Array),_.O("design:paramtypes",[])],p$.prototype,"headerRuns",null);_.U([_.Z({value:!1}),_.G("commentsEntryPointHeaderRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"hasTeaser",null);
_.U([_.Z({value:!1,reflectToAttribute:!0}),_.G("videoMetadataCarousel"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"hasTeaserCarousel",null);_.U([_.Z({value:3}),_.G("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"descriptionMaxLines",null);_.U([_.G("videoSecondaryInfoRenderer.metadataRowContainer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"collapsibleMetadataRows",null);
_.U([_.G("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"alwaysVisibleMetadataRows",null);_.U([_.G("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"hasInlineStructuredDescription",null);
_.U([_.G("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showInlineStructuredDescription",null);_.U([_.G("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"descriptionExpandCommand",null);
_.U([_.G("videoSecondaryInfoRenderer.owner"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"videoOwnerCommand",null);_.U([_.Z({reflectToAttribute:!0}),_.G("videoPrimaryInfoRenderer.videoActions"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"flexMenuEnabled",null);_.U([_.G("descriptionText","useFadedScrimDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showAttributedStringDescription",null);
_.U([_.G("descriptionText","useFadedScrimDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showFormattedStringDescription",null);_.U([_.G("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],p$.prototype,"showFadedStructuredDescription",null);
_.U([_.Cq("videoPrimaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"videoPrimaryInfoRendererChanged",null);_.U([_.G("videoPrimaryInfoRenderer.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"videoTitle",null);_.U([_.G("videoPrimaryInfoRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],p$.prototype,"noEndpoints",null);
_.U([_.Cq("videoSecondaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"videoSecondaryInfoRendererChanged",null);_.U([_.Hl("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"structuredDescriptionContentRendererChanged",null);
_.U([_.Hl("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"updateTopLevelIconsOnly",null);_.U([_.Hl("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"updateShouldForceIconOnly",null);_.U([_.Hl("skinnyMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"moveActionsElement",null);
_.U([_.jI("yt-text-inline-expander-expand-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"onYtTextInlineExpanderExpandClicked",null);_.U([_.jI("yt-text-inline-expander-collapse-clicked"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.U([_.jI("yt-text-inline-expander-expanded-changed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],p$.prototype,"onRenderStamperFinished",null);
_.U([_.jI("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"onYtExpanderMoreTapped",null);_.U([_.jI("yt-expander-less-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"onYtExpanderLessTapped",null);
_.U([_.Hl("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"registerPanel",null);_.U([_.Hl("videoSecondaryInfoRenderer"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],p$.prototype,"resetDescriptionState",null);p$=_.U([_.T({disableElementRegistration:!0,is:"ytd-watch-metadata"})],p$);
_.q(p$,"ytd-watch-metadata",function(){if(Rlo!==void 0)return Rlo;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Rlo=W},{mode:2});var CeN=function(W){_.XK.call(this);this.JSC$20092_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;rMl(this);ggl(this);Ppl(this);KKL(this);hlo(this);Waz(this);kwz(this)};
_.D(CeN,_.XK);var Ppl=function(W){var k=function(){_.m("kevlar_is_pupi_enabled")||vo(W)};
W.JSC$20092_watchApi.getRoot().addEventListener("yt-player-updated",k);W.addOnDisposeCallback(function(){W.JSC$20092_watchApi.getRoot().removeEventListener("yt-player-updated",k)})},hlo=function(W){if(_.m("kevlar_endscreen_auto_theater_mode")){var k=_.nE(_.ZF(),sN,function(){n16(W)});
W.addOnDisposeCallback(k)}},rMl=function(W){var k,C,n,N,B;
_.F(function(A){if(A.nextAddress==1)return _.l(A,W.JSC$20092_watchApi.playerApi,2);k=A.yieldResult;C=function(w){w=!!w;NK5(W)&&(w=w?2:1,_.Zn.getInstance().setState(w,!0,!1))};
n=function(w){w&&_.PEL(_.ZF().getState())&&(_.KY(W.JSC$20092_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
N=function(w){_.m("kevlar_player_update_autonav_on_new_data")&&w.type==="newdata"&&(_.m("kevlar_is_pupi_enabled")||vo(W))};
B=function(w){W.onPlayerStateChange(w)};
_.m("kevlar_endscreen_auto_theater_mode")&&k.addEventListener("onAutonavCancelled",n);k.addEventListener("onAutonavChangeRequest",C);k.addEventListener("onVideoDataChange",N);k.addEventListener("onStateChange",B);W.addOnDisposeCallback(function(){k.removeEventListener("onAutonavChangeRequest",C);k.removeEventListener("onVideoDataChange",N);k.removeEventListener("onStateChange",B);_.m("kevlar_endscreen_auto_theater_mode")&&k.removeEventListener("onAutonavCancelled",n)});
_.ab(A)})},ggl=function(W){W.JSC$20092_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.m("kevlar_is_pupi_enabled")||vo(W)});
W.JSC$20092_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(k,C,n){C&&vo(W,n)});
W.JSC$20092_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){NK5(W)&&_.Zn.getInstance().setState(2,!0,!0)});
W.JSC$20092_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){NK5(W)&&_.Zn.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){e2(W.JSC$20092_watchApi,"yt-signal-action-cancel-autonav");e2(W.JSC$20092_watchApi,"yt-autonav-state-changed-action");e2(W.JSC$20092_watchApi,"yt-enable-autoplay-command");e2(W.JSC$20092_watchApi,"yt-disable-autoplay-command")})},KKL=function(W){var k=W.JSC$20092_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){kwz(W)}),C=W.JSC$20092_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Waz(W)});
W.addOnDisposeCallback(function(){W.JSC$20092_watchApi.unsubscribeByKey(k);W.JSC$20092_watchApi.unsubscribeByKey(C)})},kwz=function(W){W.autonavCancelledBySignal=!1;
_.m("kevlar_is_pupi_enabled")||vo(W)},Waz=function(W){var k=W.JSC$20092_watchApi.getWatchNextResponse(),C,n;
var N=(k=(n=_.z(k==null?void 0:(N=k.playerOverlays)==null?void 0:(C=N.playerOverlayRenderer)==null?void 0:C.autonavToggle,_.Ckb))==null?void 0:n.enabled)?2:1;_.m("kevlar_is_pupi_enabled")?_.Zn.getInstance().setState(N,!1,!1):vo(W);_.m("web_persist_server_autonav_state_on_client")&&typeof k==="boolean"&&_.f2P(N===2)},NK5=function(W){if(W.autonavCancelledBySignal)return!1;
var k,C,n,N;return!!((k=W.JSC$20092_watchApi.getWatchNextResponse())==null?0:(C=k.contents)==null?0:(n=C.twoColumnWatchNextResults)==null?0:(N=n.autoplay)==null?0:N.autoplay)};
CeN.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.Zn.getInstance().isAutoplaySetExplicitly();var k=this.JSC$20092_watchApi.getWatchNextResponse(),C,n,N,B;k=_.z(k==null?void 0:(C=k.contents)==null?void 0:(n=C.twoColumnWatchNextResults)==null?void 0:(N=n.autoplay)==null?void 0:(B=N.autoplay)==null?void 0:B.autoplayExplicitChoiceDialogRenderer,_.i88);NK5(this)&&W&&k&&_.gH.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:k},popupType:"DIALOG"}})}else n16(this)};
var n16=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.KY(W.JSC$20092_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},vo=function(W,k){k=k===void 0?!1:k;
var C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20092_watchApi.playerApi,2);C=n.yieldResult;NK5(W)?C.setAutonavState(_.Zn.getInstance().getState(),k):C.setAutonavState(1,k);_.ab(n)})};var YLG={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 bvG=function(W){_.XK.call(this);var k=this;this.JSC$20097_watchApi=W;var C=this.JSC$20097_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){BKe(k)});
this.addOnDisposeCallback(function(){k.JSC$20097_watchApi.unsubscribeByKey(C)});
BKe(this)};
_.D(bvG,_.XK);var BKe=function(W){var k=W.JSC$20097_watchApi.getPlayerResponse(),C=W.JSC$20097_watchApi.getWatchNextResponse();if(!_.DBX(k==null?void 0:k.playabilityStatus,C==null?void 0:C.playerOverlays)){var n;var N=k==null?void 0:(n=k.playabilityStatus)==null?void 0:n.errorScreen}W.JSC$20097_watchApi.provideRenderingData("ERROR_SCREEN",N)};var AEa=_.GM(function(W){var k=W.data;return _.t("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.t("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.t(_.Ex,{data:function(){return k().channelAvatar}},{avatarViewModel:_.D_}),_.t(_.Ya,{text:function(){return k().subtitle}})))},"ui");var Far=_.GM(function(W){return _.t("yt-player-quick-action-buttons",{class:_.Li("ytPlayerQuickActionButtonsHost")},_.t(_.bI,{each:W.data},function(k){return _.t(_.Ex,{data:function(){return k}},{buttonViewModel:_.zn,
likeButtonViewModel:function(C){return _.t(_.AJS,{data:C.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.bfb})}))},"vi");var xqo=function(W){_.XK.call(this);var k=this;this.JSC$20100_watchApi=W;W=_.b(_.kw({},void 0,"ufFdVc"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.b(_.kw({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var C=this.JSC$20100_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w$i(k)});
this.addOnDisposeCallback(function(){k.JSC$20100_watchApi.unsubscribeByKey(C)})};
_.D(xqo,_.XK);
var w$i=function(W){var k,C,n,N,B,A,w,x,E,a,X,d,V,c;_.F(function(M){if(M.nextAddress==1)return _.l(M,W.JSC$20100_watchApi.playerApi,2);k=M.yieldResult;C=W.JSC$20100_watchApi.getWatchNextResponse();B=(n=C)==null?void 0:(N=n.playerOverlays)==null?void 0:N.playerOverlayRenderer;w=_.z((A=B)==null?void 0:A.fullscreenQuickActionsBar,_.zyZ);(E=(x=W).setQuickActionsViewModel)==null||E.call(x,w||{});w&&l33(W,k);d=(a=B)==null?void 0:(X=a.videoDetails)==null?void 0:X.playerOverlayVideoDetailsRenderer;(c=(V=
W).setPlayerOverlayVideoDetailsRenderer)==null||c.call(V,d||{});d&&tkl(W,k);_.ab(M)})},l33=function(W,k){if(!W.quickActionButtonsContainer){W.quickActionButtonsContainer=document.createElement("div");
k.setFullscreenQuickActions(W.quickActionButtonsContainer);var C=function(){return W.quickActionsViewModel().quickActionButtons||[]},n=_.xn(W.quickActionButtonsContainer,function(){return _.t(Far,{data:C})});
W.addOnDisposeCallback(function(){k.setFullscreenQuickActions(void 0);n()})}},tkl=function(W,k){if(!W.playerOverlayVideoDetailsRendererContainer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
k.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var C=_.xn(W.playerOverlayVideoDetailsRendererContainer,function(){return _.t(AEa,{data:W.playerOverlayVideoDetailsRenderer})});
W.addOnDisposeCallback(function(){k.setPlayerOverlayVideoDetailsRenderer(void 0);C()})}};var su=function(W){_.XK.call(this);var k=this;this.JSC$20105_watchApi=W;this.JSC$20105_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.nE(_.ZF(),_.GG,function(C){E1G(k,C)});
this.addOnDisposeCallback(W);W=_.nE(_.ZF(),_.ys,function(C){k.onWatchScroll(C)});
this.addOnDisposeCallback(W);_.m("kevlar_watch_while_v2")&&(W=_.nE(_.ZF(),_.zo,function(C){a3z(k,C)}),this.addOnDisposeCallback(W));
X$3(this);f3z(this);dqL();this.onWatchScroll(_.ys(_.ZF().getState()));_.cv("START_IN_FULL_WINDOW_MODE")&&this.JSC$20105_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.D(su,_.XK);var X$3=function(W){W.JSC$20105_watchApi.registerActionHandler("yt-fullscreen-change-action",function(k){var C=sN(_.ZF().getState());k&&!C||_.ZF().dispatch(_.jo({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!k}}))});
W.addOnDisposeCallback(function(){e2(W.JSC$20105_watchApi,"yt-fullscreen-change-action")})},f3z=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20105_watchApi.playerApi,2);k=n.yieldResult;C=function(){W.onFullerscreenEduClicked()};
k.addEventListener("onFullerscreenEduClicked",C);W.addOnDisposeCallback(function(){k.removeEventListener("onFullerscreenEduClicked",C)});
_.ab(n)})},E1G=function(W,k){var C;
_.F(function(n){if(n.nextAddress==1)return W.isFullscreen=!!_.LY(),_.l(n,W.JSC$20105_watchApi.playerApi,2);C=n.yieldResult;W.JSC$20105_miniplayerActive||C.setFauxFullscreen(W.isFullscreen);if(k&&(W.JSC$20105_watchApi.focusOnPlayer(),!W.fullerscreenEduButtonShownThisPlayback)){W.fullerscreenEduButtonShownThisPlayback=!0;var N=_.h4("yt-fullerscreen-edu-button-shown-count")||0;_.KE("yt-fullerscreen-edu-button-shown-count",N+1,31536E3);W.updateFullerscreenEduButtonSubtleModeState()}_.ab(n)})},a3z=function(W,
k){var C;
_.F(function(n){if(n.nextAddress==1)return W.JSC$20105_miniplayerActive=k,_.l(n,W.JSC$20105_watchApi.playerApi,2);C=n.yieldResult;C.setFauxFullscreen(!W.JSC$20105_miniplayerActive&&W.isFullscreen);_.ab(n)})};
su.prototype.onWatchScroll=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return _.m("external_fullscreen_with_edu")?_.l(N,k.JSC$20105_watchApi.playerApi,2):N.return();C=N.yieldResult;n=W<=0;k.shouldShowFullerscreenEdu!==n&&(k.shouldShowFullerscreenEdu=n,C.updateFullerscreenEduButtonVisibility(!k.shouldShowFullerscreenEdu));_.ab(N)})};
su.prototype.onFullerscreenEduClicked=function(){this.JSC$20105_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.h4("yt-fullerscreen-edu-button-click-count")||0;_.KE("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
su.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,k,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return k=_.h4("yt-fullerscreen-edu-button-click-count")||0,C=_.h4("yt-fullerscreen-edu-button-shown-count")||0,n=_.Oe("external_fullscreen_button_click_threshold"),N=_.Oe("external_fullscreen_button_shown_threshold"),B=k>=n||C>=N,_.l(w,W.JSC$20105_watchApi.playerApi,2);A=w.yieldResult;A.updateFullerscreenEduButtonSubtleModeState(B);_.ab(w)})};
su.prototype.disposeInternal=function(){_.XK.prototype.disposeInternal.call(this);var W=_.LY();_.m("kevlar_exit_fullscreen_leaving_watch")&&W&&_.jh(W)};
var dqL=function(){if(_.m("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),k=document.head;k&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",k.appendChild(W))}};var zu5=function(W){_.XK.call(this);var k=this;this.JSC$20109_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var C=this.JSC$20109_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mq3(k)});
this.addOnDisposeCallback(function(){k.JSC$20109_watchApi.unsubscribeByKey(C)});
mq3(this)};
_.D(zu5,_.XK);var Dqe=function(W){_.aM.cancelJob(W.jobId);W.pendingRequestId=void 0},mq3=function(W){Dqe(W);
var k=Szr(W.JSC$20109_watchApi.getWatchNextResponse());if(k){var C=250,n,N=(n=_.z(k,_.d$s))==null?void 0:n.initialDelayMs;_.m("web_watch_updated_metadata_server_initial_delay")&&N&&(C=N);W.jobId=_.aM.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(k)},C)}};
zu5.prototype.fetchUpdatedMetadata=function(W,k){var C=this,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e;return _.F(function(u){switch(u.nextAddress){case 1:k&&(n={continuation:k});if(!_.m("web_get_updated_metadata_fantasy_panel_continuation_params")){u.jumpTo(2);break}N=_.f().resolve(_.lj);B="PAsports_fantasy";return _.l(u,N.isVisible(B,!0),3);case 3:u.yieldResult&&(E=(w=(A=N).getUpdatePanelContinuationData)==null?void 0:(x=w.call(A,B))==null?void 0:x.updatePanelContinuationRequest)&&(n||(n={}),n.clientParams=
{panelContinuationParams:{panelContinuation:E}});case 2:a=_.f().resolve(_.xZ);if(!a)return _.dI(Error("im")),u.return();X={};C.pendingRequestId=X;return _.l(u,_.Sr(a,W,n),4);case 4:d=u.yieldResult;if(X!==C.pendingRequestId)return u.return();M=(V=d)==null?void 0:(c=V.continuation)==null?void 0:c.timedContinuationData;((p=M)==null?0:p.continuation)&&((e=M)==null?0:e.timeoutMs)&&(C.jobId=_.aM.addLowPriorityJob(function(){return C.fetchUpdatedMetadata(W,M.continuation)},M.timeoutMs));
_.ab(u)}})};
zu5.prototype.disposeInternal=function(){_.XK.prototype.disposeInternal.call(this);Dqe(this)};var Vkz=_.GM(function(W){var k=_.Pj(function(){var n=W.data().videoId;if(W.active())n=_.uW(n),_.f().resolve(_.uI).resolveCommand(n);else{var N=W.playerApi(),B=N.getAvailableAudioTracks(),A,w,x=(A=W.sourceVideoConfig().audioTracks)==null?void 0:(w=A.find(function(E){return E.isDefaultForSource}))==null?void 0:w.id;
if(B=B.find(function(E){return E.getLanguageInfo().getId()===x}))N.setAudioTrack(B,!0),N.setCompositeParam({activeVideoId:n}),W.setActiveSourceId(n)}}),C={};
return _.t("ytw-composite-source-video-overlay",{class:_.Li("ytwCompositeSourceVideoOverlayHost",(C.ytwCompositeSourceVideoOverlayActive=W.active,C.ytwCompositeSourceVideoOverlayInteracting=W.interacting,C)),style:_.WJ({left:function(){var n;return((n=W.data().topLeftCornerX)!=null?n:0)*100+"%"},
top:function(){var n;return((n=W.data().topLeftCornerY)!=null?n:0)*100+"%"},
width:function(){var n;return((n=W.data().width)!=null?n:0)*100+"%"},
height:function(){var n;return((n=W.data().height)!=null?n:0)*100+"%"}}),
"on:click":k},_.t("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"wi");var JEi=_.GM(function(W){var k=_.b(_.h7(function(){var w,x=(w=W.data().sources)==null?void 0:w.find(function(E){return E.isActive});
if(x)return x.videoId})),C=k.next().value,n=k.next().value;
k=_.b(_.kw(!1,void 0,"WI4BUb"));var N=k.next().value,B=k.next().value;k=_.Pj(function(){B(!0)});
var A=_.Pj(function(){B(!1)});
return _.t("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":k,"on:mouseout":A},_.t(_.NI,{cond:function(){return W.data().sources},
then:function(w){return _.t(_.bI,{each:w},function(x){return _.t(Vkz,{data:x,active:function(){return x.videoId===C()},
setActiveSourceId:n,interacting:N,playerApi:W.playerApi,sourceVideoConfig:function(){return MNa(W.compositeVideoConfig(),x.videoId)}})})}}))},"xi");var SLG=function(W){_.XK.call(this);this.JSC$20125_watchApi=W;W=_.b(_.kw({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.b(_.kw({},void 0,"U5hcq"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;cEj(this);I3j(this)};
_.D(SLG,_.XK);var cEj=function(W){var k=W.JSC$20125_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){I3j(W)});
W.addOnDisposeCallback(function(){W.JSC$20125_watchApi.unsubscribeByKey(k)})},Mkr=function(W){var k;
return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20125_watchApi.playerApi,2);k=C.yieldResult;k.setCompositeVideoOverlayRendererComponent(W.container);_.ab(C)})},QMN=function(W){var k;
return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20125_watchApi.playerApi,2);k=C.yieldResult;k.setCompositeVideoOverlayRendererComponent(void 0);_.ab(C)})},p$N=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20125_watchApi.playerApi,2);k=n.yieldResult;W.container=document.createElement("div");C=_.xn(W.container,function(){return _.t(JEi,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:k})});
W.addOnDisposeCallback(C);_.ab(n)})},I3j=function(W){var k,C,n,N,B,A,w,x;
_.F(function(E){return E.nextAddress==1?(k=W.JSC$20125_watchApi.getPlayerResponse(),B=_.z((C=k)==null?void 0:(n=C.overlay)==null?void 0:(N=n.playerControlsOverlayRenderer)==null?void 0:N.compositeVideoOverlay,Vii),x=(A=k)==null?void 0:(w=A.playerConfig)==null?void 0:w.compositeVideoConfig,B&&W.setCompositeVideoOverlayRenderer(B),x&&W.setCompositeVideoConfig(x),B&&x?W.container?E.jumpTo(6):_.l(E,p$N(W),6):v1_(W)?_.l(E,QMN(W),0):E.jumpTo(0)):v1_(W)?E.jumpTo(0):_.l(E,Mkr(W),0)})},v1_=function(W){var k;
return!((k=W.container)==null||!k.parentElement)};
SLG.prototype.disposeInternal=function(){v1_(this)&&QMN(this);_.XK.prototype.disposeInternal.call(this)};var $qN=function(W){_.XK.call(this);var k=this;this.JSC$20131_watchApi=W;var C=this.JSC$20131_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var n=k.JSC$20131_watchApi.getPlayerResponse();if(n){var N,B;if(n=_.z((N=n.endscreen)==null?void 0:(B=N.endscreenRenderer)==null?void 0:B.hideButton,_.Xo)){var A;(A=k.setEndscreenHideButton)==null||A.call(k,n);eu3(k)}}});
this.addOnDisposeCallback(function(){k.JSC$20131_watchApi.unsubscribeByKey(C)});
W=_.b(_.kw({},void 0,"PPHRb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;sM3(this);GwN(this);yE3(this)};
_.D($qN,_.XK);var eu3=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return W.creatorEndscreenHideButtonContainer?n.return():_.l(n,W.JSC$20131_watchApi.playerApi,2);k=n.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.Z0(W.creatorEndscreenHideButtonContainer,!1);k.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);C=_.xn(W.creatorEndscreenHideButtonContainer,function(){return _.t(_.fX,{data:W.endscreenHideButton,useOutlinedIcon:!0})});
W.addOnDisposeCallback(function(){C();k.setCreatorEndscreenHideButton(void 0)});
_.ab(n)})},sM3=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20131_watchApi.playerApi,2);k=n.yieldResult;C=function(){W.creatorEndscreenHideButtonContainer&&_.Z0(W.creatorEndscreenHideButtonContainer,!0)};
k.addEventListener("endscreenelementshown",C);W.addOnDisposeCallback(function(){k.removeEventListener("endscreenelementshown",C)});
_.ab(n)})},GwN=function(W){var k=function(){W.creatorEndscreenHideButtonContainer&&_.Z0(W.creatorEndscreenHideButtonContainer,!1)},C=W.JSC$20131_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",k),n=W.JSC$20131_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",k);
W.addOnDisposeCallback(function(){W.JSC$20131_watchApi.unsubscribeByKey(C);W.JSC$20131_watchApi.unsubscribeByKey(n)})},yE3=function(W){W.JSC$20131_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(k){var C=_.z(k,XX7);
W.JSC$20131_watchApi.playerApi.then(function(n){n==null||n.setCreatorEndscreenVisibility(!!C.hide)})});
W.addOnDisposeCallback(function(){e2(W.JSC$20131_watchApi,"yt-change-creator-endscreen-visibility-command")})};var RuL=function(W){_.XK.call(this);this.JSC$20137_watchApi=W;Zv7(this)};
_.D(RuL,_.XK);var Zv7=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20137_watchApi.playerApi,2);k=n.yieldResult;C=function(N){_.ZF().dispatch(_.jo({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:N}}))};
k.addEventListener("onRetroModeChanged",C);W.addOnDisposeCallback(function(){k.removeEventListener("onRetroModeChanged",C)});
_.ab(n)})};var $aj=0,Zw=0,Rro=0;var o1G=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),G8=function(W){_.XK.call(this);this.JSC$20150_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ivl(this)};
_.D(G8,_.XK);
var ivl=function(W){var k,C,n;_.F(function(N){if(N.nextAddress==1)return _.l(N,W.JSC$20150_watchApi.playerApi,2);k=N.yieldResult;if(W.isDisposed())return N.return();W.sessionStorage=_.rjT("yt-sleep-timer");W.sessionStorage||_.zJ(new _.AM("SessionStorage for Sleep Timer is undefined."));((C=W.sessionStorage)==null?void 0:C.get("yt-sleep-timer"))==="true"&&(Tje(),(n=W.sessionStorage)==null||n.remove("yt-sleep-timer"),k.syncVolume());TKz(W,k);qLz(W,k);uEz(W,k);_.ab(N)})},TKz=function(W,k){var C=function(E){W.onSleepTimerSettingsChanged(E,
k)},n=function(E){W.onPlayerStateChange(E,k)},N=function(){W.onLoopChange(k)},B=function(){W.onCloseMiniplayer(k)},A=function(){yoL(k,(0,_.oX)(),qz7(k),W.selectedOption==="End of video",k.getPlayerState()!==1)},w=function(){W.onSeekComplete(k)},x=function(){_.aM.cancelJob(Zw);
var E=k.getCurrentTime()>=k.getDuration(),a=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!erl(W.playlistId);E&&a&&Uqo(W,k)};
k.addEventListener("onSleepTimerSettingsChanged",C);k.addEventListener("onLoopChange",N);k.addEventListener("onLoopRangeChange",N);k.addEventListener("onStateChange",n);k.addEventListener("onCloseMiniplayer",B);k.addEventListener("onSleepTimerFeatureAvailable",A);k.addEventListener("SEEK_COMPLETE",w);k.addEventListener("onAdStart",x);W.addOnDisposeCallback(function(){k.removeEventListener("onSleepTimerSettingsChanged",C);k.removeEventListener("onLoopChange",N);k.removeEventListener("onLoopRangeChange",
N);k.removeEventListener("onStateChange",n);k.removeEventListener("onCloseMiniplayer",B);k.removeEventListener("onSleepTimerFeatureAvailable",A);k.removeEventListener("SEEK_COMPLETE",w);k.removeEventListener("onAdStart",x)})},qLz=function(W,k){var C=W.JSC$20150_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var n=k.getVideoData().video_id,N,B=(N=p6r(W.JSC$20150_watchApi))==null?void 0:N.playlistId;
W.pauseAutonavPlayback&&(k.pauseVideo(),k.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&n!==W.videoId)yc(W,k);else{if(W.selectedOption==="End of playlist"){N=erl(W.playlistId);if(B!==W.playlistId){yc(W,k);break a}N?N&&OvG(W,k):La5(W,k)}W.videoId=n;W.playlistId=B}}});
W.addOnDisposeCallback(function(){W.JSC$20150_watchApi.unsubscribeByKey(C)})},uEz=function(W,k){var C=_.f().resolve(_.ak),n=_.nE(C,_.v7p,function(B){B&&W.selectedOption!=="Off"&&yc(W,k)}),N=_.nE(C,sN,function(B){var A,w;
return _.F(function(x){if(x.nextAddress==1)return _.l(x,_.k7().navigationFinishPromise,2);A=!_.ajC();w=_.f().resolve(_.eq).isMiniplayerActive();B||!Qea(W.selectedOption)||w||A||yc(W,k);_.ab(x)})});
C=_.nE(C,function(B){return B.entities.playlistLoopStateEntity||{}},function(B){B=B===void 0?{}:B;
var A=v3o(W.JSC$20150_watchApi);if(A){var w;((w=B[A])==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ALL"&&Qea(W.selectedOption)&&yc(W,k)}});
W.addOnDisposeCallback(n);W.addOnDisposeCallback(C);W.addOnDisposeCallback(N)};
G8.prototype.onSleepTimerSettingsChanged=function(W,k){switch(W){case "Off":this.selectedOption!=="Off"&&yc(this,k);break;case "End of video":case "End of playlist":jM7(this,W,k);break;default:jM7(this,W,k,o1G.get(W))}};
G8.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&Qea(this.selectedOption)&&yc(this,W)};
G8.prototype.onCloseMiniplayer=function(W){Qea(this.selectedOption)&&yc(this,W)};
var jM7=function(W,k,C,n){Hvl(W,C);W.selectedOption=k;W.videoId=C.getVideoData().video_id;W.playlistId="";var N;(N=W.sessionStorage)==null||N.set("yt-sleep-timer","true");W.adjustmentsCount++;yoL(C,(0,_.oX)(),qz7(C),W.selectedOption==="End of video");if(W.selectedOption==="End of video")La5(W,C),rE_(W,C);else if(W.selectedOption==="End of playlist"){rE_(W,C);var B,A;W.playlistId=(A=(B=p6r(W.JSC$20150_watchApi))==null?void 0:B.playlistId)!=null?A:"";erl(W.playlistId)||La5(W,C)}else n&&(W.presetFadeSchedulerId=
_.bX(_.aM,function(){o3i(C,15E3)},n-15E3),W.presetPauseSchedulerId=_.bX(_.aM,function(){Uqo(W,C)},n),ZLj(C,(0,_.oX)(),n))},Uqo=function(W,k){if(sN(_.f().resolve(_.ak).getState())){var C={dismissDialogEndpoint:{}};
var n={commandExecutorCommand:{commands:[C,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};C={buttonViewModel:{title:_.w8("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:C}}};n={buttonViewModel:{title:_.w8("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:n}}};var N={dialogHeaderViewModel:{headline:{content:_.w8("SLEEP_TIMER_ENDED_TITLE")}}};
var B={basicContentViewModel:{paragraphs:[{text:{content:_.w8("SLEEP_TIMER_ENDED_TEXT")}}]}};C={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:N,content:B,footer:{panelFooterViewModel:{primaryButton:C,secondaryButton:n,shouldHideDivider:!0}}}}}}};_.f().resolve(_.uI).resolveCommand(C,{form:{element:W}})}else Tje();g1l(W,!1);Per(W,k);k.pauseVideo();_.Zn.getInstance().getState()===2&&k.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},yc=function(W,k){g1l(W,!0);
Per(W,k);Tje()},Per=function(W,k){Hvl(W,k);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var C;(C=W.sessionStorage)==null||C.remove("yt-sleep-timer");_.aM.cancelJob($aj);k.resetSleepTimerMenuSettings()},g1l=function(W,k){k={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:k};switch(W.selectedOption){case "Off":k.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":k.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":k.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:k.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",k.option_duration_in_minutes=o1G.get(W.selectedOption)/6E4}_.a9("sleepTimerSessionFinishEvent",k)};
G8.prototype.onPlayerStateChange=function(W,k){W===1?yoL(k,(0,_.oX)(),qz7(k),this.selectedOption==="End of video"):W===0?(_.aM.cancelJob(Zw),k.setVideoTimeLeft(Gir(0,0))):W===2&&_.aM.cancelJob(Zw);this.selectedOption==="End of video"?W===0?Uqo(this,k):W===2&&iL5(k):this.selectedOption!=="End of playlist"||erl(this.playlistId)||(W===0?Uqo(this,k):W===2&&iL5(k))};
G8.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&yoL(W,(0,_.oX)(),qz7(W),this.selectedOption==="End of video",!0)};
G8.prototype.onCueRangeEnter=function(W,k){W==="sleep-timer-fade-audio"&&(W=(k.getDuration()-k.getProgressState().current)*1E3,o3i(k,W))};
G8.prototype.onCueRangeExit=function(W,k){W==="sleep-timer-fade-audio"&&k.getPlayerState()!==0&&iL5(k,!0)};
var La5=function(W,k){k.addCueRange("sleep-timer-fade-audio",k.getDuration()-15,k.getDuration());k.addEventListener("onCueRangeEnter",function(C){W.onCueRangeEnter(C,k)});
k.addEventListener("onCueRangeExit",function(C){W.onCueRangeExit(C,k)})},OvG=function(W,k){k.removeCueRange("sleep-timer-fade-audio");
k.removeEventListener("onCueRangeEnter",function(C){W.onCueRangeEnter(C,k)});
k.removeEventListener("onCueRangeExit",function(C){W.onCueRangeExit(C,k)})},Hvl=function(W,k){Qea(W.selectedOption)?OvG(W,k):(_.aM.cancelJob(W.presetPauseSchedulerId),_.aM.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
iL5(k,!0)},rE_=function(W,k){k.setLoop(!1);
k.setLoopVideo(!1);k.setLoopRange(null);(W=v3o(W.JSC$20150_watchApi))&&_.f().resolve(_.ak).dispatch(_.Nj("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};var kJa=function(W){_.XK.call(this);this.JSC$20153_watchApi=W;Ka3(this);huz(this);Wwl(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.j1o();_.m("web_watch_log_theater_mode_cookie_state")&&_.nH.get("wide","0")==="1"&&_.AJK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.D(kJa,_.XK);var Ka3=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20153_watchApi.playerApi,2);k=n.yieldResult;C=function(N){CTz(W,!!N)};
k.addEventListener("SIZE_CLICKED",C);W.addOnDisposeCallback(function(){k.removeEventListener("SIZE_CLICKED",C)});
_.ab(n)})},huz=function(W){W.JSC$20153_watchApi.registerActionHandler("yt-toggle-theater-mode",function(k,C){CTz(W,k,C===void 0?!0:C)});
W.addOnDisposeCallback(function(){e2(W.JSC$20153_watchApi,"yt-toggle-theater-mode")})};
kJa.prototype.getState=function(){return _.l3(_.ZF().getState())};
var CTz=function(W,k,C){C=C===void 0?!0:C;var n,N,B,A=_.m("enable_player_resize_transition")&&!!W.JSC$20153_watchApi.getWatchNextResponse()&&!((n=W.JSC$20153_watchApi.getWatchNextResponse())==null?0:(N=n.contents)==null?0:(B=N.twoColumnWatchNextResults)==null?0:B.conversationBar);_.OMT(function(){_.ZF().dispatch(_.jo({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:k}}));_.m("theater_mode_scroll_to_top_killswitch")||W.JSC$20153_watchApi.scrollWatchTo(0,!1);_.LY()&&_.m("external_fullscreen")&&_.jh(document.documentElement);
Wwl(W);C&&_.N7("wide",k?"1":"0",-1);_.KY(W.JSC$20153_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$20153_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:k});k&&_.j1o()},{shouldWrap:A})},Wwl=function(W){var k;
_.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20153_watchApi.playerApi,2);k=C.yieldResult;k.setSizeStyle(!0,W.getState());_.ab(C)})};var YKG=function(W){_.XK.call(this);var k=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var C;if(W==null?0:(C=W.isReady)==null?0:C.call(W)){C=_.nE(_.f().resolve(_.ak),function(N){return N.entities.timedMarkersListSyncEntity||{}},function(N,B){N=N===void 0?{}:N;
B=B===void 0?{}:B;for(var A=_.b(Object.keys(B)),w=A.next();!w.done;w=A.next())w=w.value,N[w]!==B[w]&&nIN(k,B[w]);B=_.b(Object.keys(N));for(A=B.next();!A.done;A=B.next())A=A.value,w=N[A],k.timeToPanelSyncKeyMap[A]&&NIG(k,w)});
this.addOnDisposeCallback(C);var n=function(N){k.onCueRangeEnter(N)};
W.addEventListener("onCueRangeEnter",n);this.addOnDisposeCallback(function(){var N;(N=W.removeEventListener)==null||N.call(W,"onCueRangeEnter",n)})}};
_.D(YKG,_.XK);
var NIG=function(W,k){var C,n;if((C=W.playerApi)==null?0:(n=C.isReady)==null?0:n.call(C)){var N;if((C=k==null?void 0:(N=k.timedListData)==null?void 0:N.sections)&&k!=null&&k.key)for(N=_.b(C),C=N.next();!C.done;C=N.next())if(C=C.value,C.timedSyncDataList&&C.sectionId)for(n=0;n<C.timedSyncDataList.length;n++){var B=C.timedSyncDataList[n];B.syncItemId&&W.playerApi.addCueRange(C.sectionId+"_"+k.key+"_"+B.syncItemId,Number(B.videoTimeMs)/1E3,n===C.timedSyncDataList.length-1?0x8000000000000:Number(C.timedSyncDataList[n+
1].videoTimeMs)/1E3)}}},nIN=function(W,k){var C,n;
if((C=W.playerApi)==null?0:(n=C.isReady)==null?0:n.call(C)){var N;if((C=k==null?void 0:(N=k.timedListData)==null?void 0:N.sections)&&k!=null&&k.key)for(N=_.b(C),C=N.next();!C.done;C=N.next())if(C=C.value,C.timedSyncDataList&&C.sectionId){n=_.b(C.timedSyncDataList);for(var B=n.next();!B.done;B=n.next())B=B.value,B.syncItemId&&W.playerApi.removeCueRange(C.sectionId+"_"+k.key+"_"+B.syncItemId)}}};
YKG.prototype.onCueRangeEnter=function(W){for(var k=_.b(Object.keys(this.timeToPanelSyncKeyMap)),C=k.next();!C.done;C=k.next()){C=C.value;var n=_.b(W.split("_"+C+"_")),N=n.next().value;n=n.next().value;if(N&&n){W=_.f().resolve(_.ak);k=this.timeToPanelSyncKeyMap[C];var B=_.I4m(W.getState(),k);C=BIG(C,N,n);if(C===-1)break;C={activeSyncId:n,activeItemIndex:C,activeSectionInfo:{sectionIdentifier:N}};B?W.dispatch(_.d7("markersEngagementPanelSyncEntity",k,C)):W.dispatch(_.Nj("markersEngagementPanelSyncEntity",
k,Object.assign({},{key:k},C)));break}}};
var BIG=function(W,k,C){var n=_.f().resolve(_.ak),N,B;W=(N=u6_(n.getState(),W))==null?void 0:(B=N.timedListData)==null?void 0:B.sections;if(!W)return-1;N=0;B=_.b(W);for(W=B.next();!W.done;W=B.next()){W=W.value;n=W.timedSyncDataList||[];if(W.sectionId===k)return k=n.findIndex(function(A){return A.syncItemId===C}),k===-1?k:N+k;
N+=n.length}return-1};var FwN=function(W){_.XK.call(this);var k=this;this.JSC$20165_watchApi=W;this.unresolvedCommands=[];this.JSC$20165_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(C){bMj(k,C)});
this.addOnDisposeCallback(function(){e2(k.JSC$20165_watchApi,"yt-update-timed-markers-sync-observer-command")});
ABi(this)};
_.D(FwN,_.XK);var ABi=function(W){var k;_.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20165_watchApi.playerApi,2);k=C.yieldResult;if(W.isDisposed())return C.return();W.timedSyncObserver=new YKG(k);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(n){return bMj(W,n)}),W.unresolvedCommands=[]);
_.Bf(W,W.timedSyncObserver);_.ab(C)})},bMj=function(W,k){if(W.timedSyncObserver){var C=_.z(k,d9L);
if(C&&C.timedSyncEntityKey&&C.panelSyncEntityKey){W=W.timedSyncObserver;k=C.timedSyncEntityKey;var n=C.panelSyncEntityKey;C=!!C.isEnabled;C=C===void 0?!0:C;var N=_.f().resolve(_.ak);N=u6_(N.getState(),k);C?W.timeToPanelSyncKeyMap[k]||(W.timeToPanelSyncKeyMap[k]=n,NIG(W,N)):(delete W.timeToPanelSyncKeyMap[k],nIN(W,N))}}else W.unresolvedCommands.push(k)};var wx6=_.GM(function(W){var k=W.data,C=W.maybeLogSmartSkipClientData,n=_.yE();_.pX(n,function(){return k().rendererContext},{onTap:function(a,X){X({disableClickTracking:!0})}});
var N=null,B=null,A=_.m("web_enable_auto_focus_for_timely_action_button"),w=function(){N=document.activeElement},x=function(){k().smartSkipMetadata&&(N=document.activeElement,qSz(function(){return B}))},E=function(a){if(k().smartSkipMetadata&&(!a||a.key!=="Enter")){N&&N.isConnected&&(qSz(function(){return N}),N=null);
var X;(X=B)==null||X.blur()}};
W=_.Pj(function(){C==null||C(!0,k());return!1});
_.uT(n,{visibilityCallback:function(a){if(A)a?B&&k().smartSkipMetadata&&(x(),document.addEventListener("focusin",w)):(document.removeEventListener("focusin",w),E());else if(a&&_.m("web_ephemeral_actions")){a=_.SH(k().rendererContext);var X=Number(k().maxVisibleDurationMilliseconds),d,V=(d=_.z(k().rendererContext,_.vB))==null?void 0:d.label;a&&X&&V&&(d={label:V,command:a,durationMs:X},_.f().resolve(_.PP).enqueue(d))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.lI(function(){if(A){var a;if((B=(a=n.value)==null?void 0:a.querySelector("button"))&&k().smartSkipMetadata){var X;(X=n.value)==null||X.addEventListener("keydown",E)}}});
_.fy(function(){A&&(B&&k().smartSkipMetadata&&B.removeEventListener("keydown",E),document.removeEventListener("focusin",w),E())});
return _.t("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:n,"on:click":W},_.t(_.Ex,{data:function(){return k().content}},{buttonViewModel:_.zn}))},"yi");var xP3=_.GM(function(W){var k=W.data,C=W.playerApi,n=_.f().resolve(_.kb7);W=_.b(_.h7(function(){k()}));
var N=W.next().value,B=W.next().value,A=function(){return OLL(k(),N())},w=function(E,a){var X,d,V=(X=_.z(a==null?void 0:a.rendererContext,_.yPP))==null?void 0:(d=X.loggingDirectives)==null?void 0:d.trackingParams;
if((a=a==null?void 0:a.smartSkipMetadata)&&a.loggingData&&(d=a.loggingData,a=d.algorithmId,X=d.startMilliseconds,d=d.endMilliseconds,a&&X!==void 0&&d!==void 0)){var c,M;E={smartSkipData:Object.assign({},{versionName:a,startMediaTimeMs:X,endMediaTimeMs:d},E&&{userInteractionMediaTimeMs:(Math.floor(((c=_.Zf())==null?void 0:(M=c.getPlayer())==null?void 0:M.getCurrentTime())||0)*1E3).toString()})};c=_.VM();var p;V&&(p=_.Yf(V));c&&p&&_.oz(c,p,E)}},x=function(E,a){var X=OLL(k(),E);
if(X){var d=_.z(X,Ua7),V;if(V=a)V=C(),X=_.z(X,Ua7),V=X!=null&&X.smartSkipMetadata?!(V==null?0:V.isSameMarkerTypeVisible((X==null?void 0:X.smartSkipMetadata.markerKey)||"")):!0;if(V){var c,M;(d==null?0:(c=d.smartSkipMetadata)==null?0:(M=c.loggingData)==null?0:M.isCounterfactual)||(w(!1,d),B(E))}else a||N()!==E||B(void 0)}};
_.XM(function(){var E=k().timelyActions;if(E){E=_.b(E);for(var a=E.next();!a.done;a=E.next()){a=_.z(a.value,Ua7);var X=void 0;(X=a)!=null&&X.cueRangeId&&n.timelyActionsMap.set(a.cueRangeId,x)}_.fy(function(){n.timelyActionsMap.clear()})}});
return _.t("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.t(_.Ex,{data:A},{timelyActionViewModel:function(E){return _.t(wx6,{data:E.data,maybeLogSmartSkipClientData:function(){w(!0,_.z(A(),Ua7))}})}}))},"zi");var t6e=function(W){_.XK.call(this);this.JSC$20177_watchApi=W;W=_.b(_.kw({},void 0,"pLDp2"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;lxG(this)};
_.D(t6e,_.XK);var lxG=function(W){var k,C,n,N;_.F(function(B){if(B.nextAddress==1)return EIz(W),axG(W),W.timelyActionsContainer=document.createElement("div"),_.l(B,W.JSC$20177_watchApi.playerApi,2);k=B.yieldResult;(n=(C=k).insertTimelyActionUi)==null||n.call(C,W.timelyActionsContainer);N=_.xn(W.timelyActionsContainer,function(){return _.t(xP3,{data:W.timelyActionsOverlay,playerApi:k})});
W.addOnDisposeCallback(N);_.ab(B)})},axG=function(W){var k=W.JSC$20177_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EIz(W)});
W.addOnDisposeCallback(function(){W.JSC$20177_watchApi.unsubscribeByKey(k)})},EIz=function(W){var k=W.JSC$20177_watchApi.getWatchNextResponse();
if(k){var C,n;if(k=_.z((C=k.playerOverlays)==null?void 0:(n=C.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel,m95)){var N;(N=W.setTimelyActionsOverlay)==null||N.call(W,k)}}};var fx7=function(W){_.XK.call(this);this.JSC$20181_watchApi=W;XxL(this)};
_.D(fx7,_.XK);var XxL=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20181_watchApi.playerApi,2);k=n.yieldResult;C=function(N){_.gH.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.z(N,_.AS5)},popupType:"TOAST"}})};
k.addEventListener("onYtShowToast",C);W.addOnDisposeCallback(function(){k.removeEventListener("onYtShowToast",C)});
_.ab(n)})};var dP5=!1,V6j=function(W){_.XK.call(this);this.JSC$20184_watchApi=W;this.fullscreen=this.theater=!1;mP3(this);z6z(this);DPl(this)};
_.D(V6j,_.XK);var DPl=function(W){var k,C,n;_.F(function(N){if(N.nextAddress==1)return _.l(N,W.JSC$20184_watchApi.playerApi,2);k=N.yieldResult;if(W.isDisposed())return N.return();C=W.JSC$20184_watchApi.getElement("CINEMATICS");if(!C)return N.return();W.JSC$20184_cinematicController=new _.tx(C,k);_.Bf(W,W.JSC$20184_cinematicController);_.v2e(W.JSC$20184_cinematicController);JBL(W,_.pVc());n=W.JSC$20184_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(B){cBa(W,B)});
W.addOnDisposeCallback(function(){W.JSC$20184_watchApi.unsubscribeByKey(n)});
Ix3(W);cBa(W,W.JSC$20184_cinematicController.isAllowed());SKe(W,W.fullscreen,W.theater);M6N(W);_.ab(N)})},mP3=function(W){var k=W.JSC$20184_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ix3(W)});
W.addOnDisposeCallback(function(){W.JSC$20184_watchApi.unsubscribeByKey(k)})},z6z=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20184_watchApi.playerApi,2);k=n.yieldResult;C=function(N){JBL(W,N)};
k.addEventListener("cinematicSettingsToggleChange",C);W.addOnDisposeCallback(function(){k.removeEventListener("cinematicSettingsToggleChange",C)});
_.ab(n)})},Ix3=function(W){var k=W.JSC$20184_watchApi.getWatchNextResponse(),C;
k=_.z(k==null?void 0:(C=k.pageVisualEffects)==null?void 0:C[0],_.vy);var n;(n=W.JSC$20184_cinematicController)==null||_.sIr(n,k)},JBL=function(W,k){var C;
(C=W.JSC$20184_cinematicController)==null||_.eCN(C,k);Q9i(W)},cBa=function(W,k){var C;
_.F(function(n){if(n.nextAddress==1)return _.m("kevlar_watch_cinematics_invisible")&&(k=!1),_.l(n,W.JSC$20184_watchApi.playerApi,2);C=n.yieldResult;C.updateCinematicSettings(k);Q9i(W);_.ab(n)})},M6N=function(W){var k=_.tQ();
if(_.m("kevlar_measure_ambient_mode_idle")&&!k.getFlag(192)&&!dP5){dP5=!0;var C=_.wI(_.aM,function(){_.f().resolve(_.j4Y).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.aM.cancelJob(C);_.f().resolve(_.j4Y).stop()})}},SKe=function(W,k,C){W.fullscreen=k;
W.theater=C;var n;(n=W.JSC$20184_cinematicController)==null||n.setFullscreen(W.fullscreen,W.theater);if(_.m("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var N;(N=W.JSC$20184_cinematicController)!=null&&(N=N.currentCinematicEffect)!=null&&(N=N.storyboardManager,N.paused=!1,_.t87(N),N.update())}else(W=W.JSC$20184_cinematicController)==null||(N=W.currentCinematicEffect)!=null&&N.pause()},Q9i=function(W){if(_.m("web_cinematic_theater_mode")||_.m("web_cinematic_fullscreen")){var k;
W.JSC$20184_watchApi.getRoot().toggleCinematicsActive(!((k=W.JSC$20184_cinematicController)==null||!k.isEnabled()))}};var s9e=function(W){_.XK.call(this);var k=this;this.JSC$20187_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.nE(_.ZF(),_.ys,function(){pxa(k)});
this.addOnDisposeCallback(W);var C=this.JSC$20187_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vIi(k)}),n=this.JSC$20187_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){vIi(k)});
this.addOnDisposeCallback(function(){k.JSC$20187_watchApi.unsubscribeByKey(C);k.JSC$20187_watchApi.unsubscribeByKey(n)});
var N=function(){_.m("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&e6a(k,"false")};
this.JSC$20187_watchApi.getRoot().addEventListener("yt-page-data-will-update",N);this.addOnDisposeCallback(function(){k.JSC$20187_watchApi.getRoot().removeEventListener("yt-page-data-will-update",N)});
vIi(this)};
_.D(s9e,_.XK);var vIi=function(W){W.commentsReady=!1;_.aM.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.wI(_.aM,function(){pxa(W)},1E3)},pxa=function(W){if(!W.commentsReady){_.cN("cmi");
_.aM.cancelJob(W.setCommentsJobId);var k,C,n,N,B=(k=W.JSC$20187_watchApi.getWatchNextResponse())==null?void 0:(C=k.contents)==null?void 0:(n=C.twoColumnWatchNextResults)==null?void 0:(N=n.results)==null?void 0:N.results.contents;k=void 0;if(B&&B.length)for(B=_.b(B),C=B.next();!C.done;C=B.next())if(C=C.value,N=n=void 0,((n=C)==null?void 0:(N=n.itemSectionRenderer)==null?void 0:N.sectionIdentifier)==="comment-item-section"){_.m("web_watch_provide_undefined_comments")?k=C.itemSectionRenderer:W.JSC$20187_watchApi.provideRenderingData("COMMENTS",
C.itemSectionRenderer);e6a(W,"true");break}_.m("web_watch_provide_undefined_comments")&&W.JSC$20187_watchApi.provideRenderingData("COMMENTS",k);W.commentsReady=!0;W.JSC$20187_watchApi.dispatchEvent("yt-watch-comments-ready")}},e6a=function(W,k){var C;
(C=W.JSC$20187_watchApi.getElement("COMMENTS"))==null||C.setAttribute("canScheduleJobs",k)};var oI5;_.GJa=["engagement-panel-ads"];
oI5=function(W){_.XK.call(this);var k=this;this.JSC$20190_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.m("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.m("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.m("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Oe("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)yBG(this);
else{var C=this.JSC$20190_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$Pj(k);$l(k)}),n=this.JSC$20190_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Zq(k);
$l(k)});
this.JSC$20190_watchApi.getRoot().is==="ytd-watch-grid"&&_.m("swatcheroo_pbs_load_grid")&&(ZMG(this),R65(this));this.addOnDisposeCallback(function(){k.JSC$20190_watchApi.unsubscribeByKey(C);k.JSC$20190_watchApi.unsubscribeByKey(n);_.aM.cancelJob(k.provideRichGridJobId)});
$Pj(this);Zq(this)}};
_.D(oI5,_.XK);var yBG=function(W){var k=W.JSC$20190_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.ty(_.aM,function(){$Pj(W);$l(W)},W.provideAllDataDelayMs)}),C=W.JSC$20190_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.ty(_.aM,function(){Zq(W);
$l(W)},W.provideAllDataDelayMs)}),n=W.JSC$20190_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.ty(_.aM,function(){Zq(W);
$l(W)},W.provideAllDataDelayMs)});
W.JSC$20190_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.wI(_.aM,function(){$Pj(W);Zq(W);$l(W)},100)});
iM5(W.JSC$20190_watchApi,function(){_.aM.cancelJob(W.provideWatchNextJobId);_.aM.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){e2(W.JSC$20190_watchApi,"yt-pending-navigation-cancelled");W.JSC$20190_watchApi.unsubscribeByKey(k);W.JSC$20190_watchApi.unsubscribeByKey(C);W.JSC$20190_watchApi.unsubscribeByKey(n);_.aM.cancelJob(W.providePlayerJobId);_.aM.cancelJob(W.provideWatchNextJobId)});
$Pj(W);Zq(W)},$Pj=function(W){var k=W.JSC$20190_watchApi.getPlayerResponse(),C,n,N=(n=k==null?void 0:(C=k.playabilityStatus)==null?void 0:C.messageRenderers)!=null?n:[],B,A;
k=(A=k==null?void 0:(B=k.playabilityStatus)==null?void 0:B.messages)!=null?A:[];B=_.b(k);for(A=B.next();!A.done;A=B.next())N.push({alertRenderer:{text:_.Go(A.value),type:"WARNING"}});W.JSC$20190_watchApi.provideRenderingData("ALERTS",N)},Zq=function(W){var k=[],C,n,N,B=W.JSC$20190_watchApi.getWatchNextResponse(),A,w,x,E,a=B==null?void 0:(A=B.contents)==null?void 0:(w=A.twoColumnWatchNextResults)==null?void 0:(x=w.results)==null?void 0:(E=x.results)==null?void 0:E.contents;
if(a)for(A=_.b(a),w=A.next();!w.done;w=A.next())if(w=w.value,w.videoPrimaryInfoRenderer)var X=w;else if(w.videoSecondaryInfoRenderer){var d=w;E=x=void 0;w=Object.assign({},(x=w.videoSecondaryInfoRenderer)==null?void 0:(E=x.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(w.rows&&w.collapsedItemCount!==void 0){w.rows=w.rows.slice(0,w.collapsedItemCount).filter(function(RJ){return!!RJ.richMetadataRowRenderer});
w.collapsedItemCount=w.rows.length;var V={metadataRowContainerRenderer:w}}}else if(w.merchandiseShelfRenderer)var c=w;else if(w.ticketShelfRenderer)var M=w;else if(w.expandableMetadataRenderer)var p=w;else if(w.itemSectionRenderer)if(x=w.itemSectionRenderer.contents,E=void 0,W.directlyProvideComments&&((E=w.itemSectionRenderer)==null?void 0:E.sectionIdentifier)==="comment-item-section")_.cN("cmi"),W.JSC$20190_watchApi.provideRenderingData("COMMENTS",w.itemSectionRenderer);else if(x)for(w=_.b(x),x=
w.next();!x.done;x=w.next())if(x=x.value,x.commentsEntryPointHeaderRenderer)var e=x;else if(x.clarificationRenderer||x.infoPanelContainerRenderer||x.infoPanelContentRenderer||x.emergencyOneboxRenderer){k.push(x);var u=u||!!d}else x.limitedStateMessageRenderer?n=x:x.videoMetadataCarouselViewModel&&(N=x);if(_.m("web_watch_merch_in_sd_when_ticket_shelf_present")&&c&&M){var h=c;c=void 0}if(W.provideWatchNextSecondaryResults){var L,Bw,P;W.JSC$20190_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
B==null?void 0:(L=B.contents)==null?void 0:(Bw=L.twoColumnWatchNextResults)==null?void 0:(P=Bw.secondaryResults)==null?void 0:P.secondaryResults)}if(W.JSC$20190_watchApi.getRoot().is==="ytd-watch-grid"&&!_.m("swa_prov_panels_ks")&&(B==null?0:B.engagementPanels)){var xz=B.engagementPanels.filter(function(RJ){var Y2,VY;return _.GJa.includes((VY=RJ==null?void 0:(Y2=RJ.engagementPanelSectionListRenderer)==null?void 0:Y2.targetId)!=null?VY:"")});
var Sp=B.engagementPanels.filter(function(RJ){var Y2,VY;return!_.GJa.includes((VY=RJ==null?void 0:(Y2=RJ.engagementPanelSectionListRenderer)==null?void 0:Y2.targetId)!=null?VY:"")})}if(W.JSC$20190_watchApi.getRoot().is==="ytd-watch-grid"){var vw,lw;
W.JSC$20190_watchApi.provideRenderingData("LIVE_CHAT",B==null?void 0:(vw=B.contents)==null?void 0:(lw=vw.twoColumnWatchNextResults)==null?void 0:lw.conversationBar)}var G4,nA,Xs,aI;(L=B==null?void 0:(G4=B.contents)==null?void 0:(nA=G4.twoColumnWatchNextResults)==null?void 0:(Xs=nA.secondaryResults)==null?void 0:(aI=Xs.secondaryResults)==null?void 0:aI.offerModule)&&(L.donationShelfRenderer||L.donationUnavailableRenderer)&&W.JSC$20190_watchApi.getRoot().is!=="ytd-watch-grid"&&(C=L);G4=W.JSC$20190_watchApi.getPlayerResponse();
if(!G4||!_.DBX(G4.playabilityStatus,B==null?void 0:B.playerOverlays)){var LA;if(B==null?0:(LA=B.contents)==null?0:LA.singleColumnWatchNextResults){var dj,hK;var Tz=B==null?void 0:(dj=B.contents.singleColumnWatchNextResults.results)==null?void 0:(hK=dj.results)==null?void 0:hK.contents}else{var S8,ms,pA,k3;LA=!!(a==null?0:(S8=a[0])==null?0:(ms=S8.itemSectionRenderer)==null?0:(pA=ms.contents)==null?0:(k3=pA[0])==null?0:k3.backgroundPromoRenderer);var oe,bw;S8=!!(B==null?0:(oe=B.contents)==null?0:(bw=
oe.twoColumnWatchNextResults)==null?0:bw.secondaryResults);LA&&!S8&&(Tz=a)}}a=k[0];oe=k[1];u&&k.length===1&&(oe=a,a=void 0);W.JSC$20190_watchApi.provideRenderingData("PRIMARY_INFO",X);W.JSC$20190_watchApi.provideRenderingData("SECONDARY_INFO",d);W.JSC$20190_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",e);W.JSC$20190_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",N);W.JSC$20190_watchApi.provideRenderingData("CLARIFICATION",a);W.JSC$20190_watchApi.provideRenderingData("RICH_METADATA",
V);W.JSC$20190_watchApi.getRoot().is!=="ytd-watch-grid"||_.m("swa_prov_panels_ks")||_.m("web_watch_inject_placeholder_panels")||(W.JSC$20190_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Sp),W.JSC$20190_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",xz));W.JSC$20190_watchApi.provideRenderingData("MERCH_SHELF",c);_.m("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$20190_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",h);W.JSC$20190_watchApi.provideRenderingData("TICKET_SHELF",
M);W.JSC$20190_watchApi.provideRenderingData("LIMITED_STATE",n);W.JSC$20190_watchApi.getRoot().is!=="ytd-watch-grid"&&W.JSC$20190_watchApi.provideRenderingData("DONATION_SHELF",C);W.JSC$20190_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Tz);W.JSC$20190_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",oe);W.JSC$20190_watchApi.provideRenderingData("EXPANDABLE_METADATA",p);if(W.swatcherooProvideAllDataOnScheduledJob){var C7,j8,CL,EA,Nu,AS;X=B==null?void 0:(C7=B.contents)==null?void 0:
(j8=C7.twoColumnWatchNextResults)==null?void 0:(CL=j8.secondaryResults)==null?void 0:(EA=CL.secondaryResults)==null?void 0:(Nu=EA.results)==null?void 0:(AS=Nu[0])==null?void 0:AS.richGridRenderer;W.JSC$20190_watchApi.provideRenderingData("RICH_GRID_RENDERER",X)}};
oI5.prototype.hasCompanionAds=function(W){var k,C;return(C=W==null?void 0:(k=W.adPlacements)==null?void 0:k.some(function(n){var N,B,A,w;return(n==null?void 0:(N=n.adPlacementRenderer)==null?void 0:(B=N.renderer)==null?void 0:B.actionCompanionAdRenderer)||(n==null?void 0:(A=n.adPlacementRenderer)==null?void 0:(w=A.renderer)==null?void 0:w.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?C:!1};
var $l=function(W){if(!_.m("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||R65(W,3E3);var k=W.JSC$20190_watchApi.getPlayerResponse(),C,n,N,B,A,w=(C=W.JSC$20190_watchApi.getWatchNextResponse())==null?void 0:(n=C.contents)==null?void 0:(N=n.twoColumnWatchNextResults)==null?void 0:(B=N.secondaryResults)==null?void 0:(A=B.secondaryResults)==null?void 0:A.offerModule;k=W.hasCompanionAds(k);var x,E;C=(w==null?void 0:(x=w.tvfilmOfferModuleRenderer)==null?void 0:x.clientShouldSuppressIfCompanionAdDisplayed)||
(w==null?void 0:(E=w.unlimitedOfferModuleRenderer)==null?void 0:E.suppressIfCompanionAds);x=k&&C;W.JSC$20190_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$20190_watchApi.provideRenderingData("OFFER_MODULE",x?void 0:w)}},R65=function(W,k){_.m("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.aM.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.ty(_.aM,function(){W.provideRichGridJobId=0;
var C,n,N,B,A,w,x,E=(C=W.JSC$20190_watchApi.getWatchNextResponse())==null?void 0:(n=C.contents)==null?void 0:(N=n.twoColumnWatchNextResults)==null?void 0:(B=N.secondaryResults)==null?void 0:(A=B.secondaryResults)==null?void 0:(w=A.results)==null?void 0:(x=w[0])==null?void 0:x.richGridRenderer;E&&W.JSC$20190_watchApi.provideRenderingData("RICH_GRID_RENDERER",E)},k))},ZMG=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20190_watchApi.playerApi,2);k=n.yieldResult;C=function(){W.onPlaybackStart()};
k.addEventListener("onPlaybackStartExternal",C);W.addOnDisposeCallback(function(){k.removeEventListener("onPlaybackStartExternal",C)});
_.ab(n)})};
oI5.prototype.onPlaybackStart=function(){R65(this)};var qKz=function(W){_.XK.call(this);var k=this;this.JSC$20200_watchApi=W;W.playerApi.then(function(C){k.player=C});
this.gestures=new _.vL_(this.JSC$20200_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(sN(_.ZF().getState())&&_.ys(_.ZF().getState())<=0)if(_.GG(_.ZF().getState())){var C;(C=k.player)==null||C.toggleFullscreen()}else _.KY(k.JSC$20200_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
TI7(this)};
_.D(qKz,_.XK);var TI7=function(W){var k=_.nE(_.ZF(),_.GG,function(C){W.gestures&&W.gestures.update(C)});
W.addOnDisposeCallback(k);k=_.nE(_.ZF(),_.ys,function(C){W.gestures&&(C>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(k)};var UP6=function(W){_.XK.call(this);var k=this;this.JSC$20203_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
W=_.nE(_.ZF(),sN,function(C){k.onActiveChanged(C)});
this.addOnDisposeCallback(W);uPj(this);this.onActiveChanged(sN(_.ZF().getState()))};
_.D(UP6,_.XK);var OMG=function(W){if(_.m("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(YLG).filter(function(C){return C!=="PLAYLIST"});
else if(_.m("swatcheroo_page_dispose_rich_grid")){var k;(k=W.pageDisposalDataTypes)==null||k.push("RICH_GRID_RENDERER")}},uPj=function(W){_.m("swatcheroo_enable_ghost_cards")&&(OMG(W),W.JSC$20203_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.aM.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var k=_.f().resolve(_.yF).getDestinationPageType()==="watch";
W.clearDataJobId=_.ty(_.aM,W.runClearDataJob,k?0:_.Oe("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){Lw6(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.aM.cancelJob(W.clearDataJobId),W.clearDataJobId=0,Lw6(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),iM5(W.JSC$20203_watchApi,W.runPageDisposeJob),W.addOnDisposeCallback(function(){var k=W.JSC$20203_watchApi;
k.rootElement.pageDisposeJobs&&_.iw(k.rootElement.pageDisposeJobs,W.runPageDisposeJob);e2(W.JSC$20203_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},Lw6=function(W){W.pageDisposalDataTypes.forEach(function(k){W.JSC$20203_watchApi.provideRenderingData(k,void 0)});
W.clearDataJobId=0};
UP6.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.xL(W),j9e(this),document.body.removeAttribute("no-y-overflow"),_.cv("IS_SHELL_LOAD")&&_.LTC())};
var j9e=function(W){_.F(function(k){if(k.nextAddress==1)return _.l(k,W.JSC$20203_watchApi.playerApi,2);_.Tr();_.ab(k)})};var HML=_.m("kevlar_watch_while_counterfactual")?0:.25,Kwz=function(W){_.XK.call(this);this.JSC$20206_watchApi=W;this.JSC$20206_watchWhileEnabled=_.m("kevlar_watch_while_v2");this.pipEnabled=_.m("web_enable_pip_on_miniplayer");rBj(this);gI3(this);PT5(this)};
_.D(Kwz,_.XK);var rBj=function(W){W.JSC$20206_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){h65(W)});
W.addOnDisposeCallback(function(){e2(W.JSC$20206_watchApi,"yt-activate-miniplayer-from-watch-action")})},gI3=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20206_watchApi.playerApi,2);k=n.yieldResult;C=function(){h65(W)};
k.addEventListener("onCollapseMiniplayer",C);W.addOnDisposeCallback(function(){k.removeEventListener("onCollapseMiniplayer",C)});
_.ab(n)})},PT5=function(W){var k=W.JSC$20206_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&k&&W.JSC$20206_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(C){W.handleIntersect(C)},{threshold:[HML]}),W.playerIntersectionObserver.observe(k),W.addOnDisposeCallback(function(){var C;
(C=W.playerIntersectionObserver)==null||C.disconnect()}))},h65=function(W){var k,C,n;
_.F(function(N){if(N.nextAddress==1){k=_.f().resolve(_.yF);C=k.data;n=_.tSz(C.response,C.playerResponse);_.k7().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.k7().watchPipActivation=!0,N.jumpTo(2);_.f().resolve(_.eq).collapse();return _.l(N,_.k7().navigationFinishPromise,2)}if(N.nextAddress!=4)return _.k7().currentEndpoint=n.watchEndpoint||null,_.l(N,_.f().resolve(_.eq).activate(W.JSC$20206_watchApi.getElement("PLAYER"),n,C),4);_.k7().userActivation=!0;_.ab(N)})};
Kwz.prototype.handleIntersect=function(W){W5l(this,W[W.length-1])};
var W5l=function(W,k){W.watchWhileJobId&&_.aM.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.aM.addLowPriorityJob(function(){var C,n;return _.F(function(N){if(N.nextAddress==1)return W.watchWhileJobId=void 0,C=_.f().resolve(_.eq),k.intersectionRatio>HML?C.isMiniplayerActive()?_.l(N,C.deactivate(),0):N.jumpTo(0):(n=!C.isMiniplayerActive())?_.l(N,kX6(W),5):N.jumpTo(4);N.nextAddress!=4&&(n=N.yieldResult);if(!n)return N.jumpTo(0);_.k7().watchWhileActivation=!0;return _.l(N,CDj(W),0)})},100)},kX6=function(W){return _.F(function(k){return k.nextAddress==
1?_.m("kevlar_watch_while_paused")?k.return(!0):_.l(k,W.isPlayerPlaying(),2):k.return(k.yieldResult)})};
Kwz.prototype.isPlayerPlaying=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20206_watchApi.playerApi,2);k=C.yieldResult;return C.return(k.getPlayerStateObject().isPlaying)})};
var CDj=function(W){var k,C;return _.F(function(n){k=_.f().resolve(_.yF).data;C=_.tSz(k.response,k.playerResponse);_.k7().currentEndpoint=C.watchEndpoint||null;return _.l(n,_.f().resolve(_.eq).activate(W.JSC$20206_watchApi.getElement("PLAYER"),C,k),0)})};var Ydz=function(W){_.XK.call(this);this.JSC$20210_watchApi=W;n67(this);N0_(this)};
_.D(Ydz,_.XK);var N0_=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20210_watchApi.playerApi,2);k=n.yieldResult;C=function(N){var B;N.sessionData&&N.sessionData.itct&&(B=N.sessionData.itct);var A=N.watchEndpoint;if(A&&N.sessionData&&N.sessionData.autonav)A=_.ZPP(A,B);else{var w;A=_.uW(N.videoId,(w=N.listId)!=null?w:void 0,B)}B={endpoint:A};N.sessionData&&(B.tempData=N.sessionData);W.JSC$20210_watchApi.dispatchEvent("yt-navigate",B)};
k.addEventListener("onPlayVideo",C);W.addOnDisposeCallback(function(){k.removeEventListener("onPlayVideo",C)});
_.ab(n)})},n67=function(W){var k=function(C){W.onYtNavigate(C)};
W.JSC$20210_watchApi.getRoot().addEventListener("yt-navigate",k);W.addOnDisposeCallback(function(){W.JSC$20210_watchApi.getRoot().removeEventListener("yt-navigate",k)})};
Ydz.prototype.onYtNavigate=function(W){var k=this,C,n,N,B,A,w,x,E,a;return _.F(function(X){if(X.nextAddress==1){if(!((C=W.detail)==null?0:(n=C.endpoint)==null?0:n.watchEndpoint))return X.return();N=W.detail.endpoint.watchEndpoint;B=k.JSC$20210_watchApi.getWatchNextResponse();w=_.z((A=B)==null?void 0:A.currentVideoEndpoint,_.RA);if(!w)return X.return();if(N.videoId!==w.videoId||N.playlistId&&N.playlistId!==w.playlistId||typeof N.startTimeSeconds!=="number")return X.jumpTo(0);W.stopPropagation();(x=
_.m("kevlar_watch_while_v2")&&!_.m("kevlar_watch_while_counterfactual"))&&_.f().resolve(_.eq).isMiniplayerActive()||k.JSC$20210_watchApi.scrollWatchTo(0,!0);return _.l(X,k.JSC$20210_watchApi.playerApi,3)}E=X.yieldResult;a=N.startTimeSeconds;E.seekTo(a,void 0,void 0,void 0,84);E.wakeUpControls();a<E.getDuration()&&E.playVideo();_.ab(X)})};var wmj=function(W){_.XK.call(this);var k=this;this.JSC$20213_watchApi=W;W=_.nE(_.ZF(),_.txP,function(){B0G(k)});
this.addOnDisposeCallback(W);W=_.nE(_.ZF(),_.rtN,function(){B0G(k)});
this.addOnDisposeCallback(W);bt_(this);ADe(this);F5o()};
_.D(wmj,_.XK);var bt_=function(W){var k=function(n){_.ZF().dispatch(_.P55(n.matches))},C=window.matchMedia("(max-width: "+(999+_.EP())+"px)");
C.addListener(k);W.addOnDisposeCallback(function(){C.removeListener(k)});
k(C)},ADe=function(W){W.JSC$20213_watchApi.registerActionHandler("yt-window-resized",function(){F5o()});
W.addOnDisposeCallback(function(){e2(W.JSC$20213_watchApi,"yt-window-resized")})},F5o=function(){var W=_.Nw();
_.ZF().dispatch(_.jo({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},B0G=function(W){var k;
_.F(function(C){if(C.nextAddress==1)return _.l(C,W.JSC$20213_watchApi.playerApi,2);k=C.yieldResult;k.setSize(NaN,NaN);_.ab(C)})};var lRe=function(W){_.XK.call(this);var k=this;this.JSC$20217_watchApi=W;var C=this.JSC$20217_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xZG(k)});
this.addOnDisposeCallback(function(){k.JSC$20217_watchApi.unsubscribeByKey(C)});
xZG(this)};
_.D(lRe,_.XK);var xZG=function(W){var k=W.JSC$20217_watchApi.getWatchNextResponse();if(k){var C,n=[].concat(_.J8((C=k==null?void 0:k.engagementPanels)!=null?C:[]));n.unshift.apply(n,_.J8(t97(k)));W.JSC$20217_watchApi.provideRenderingData("ENGAGEMENT_PANELS",n)}},E6o=function(W){var k;
if(_.m("enable_yoututor_for_learning_journeys")&&((k=_.e_(window.location.href,"list"))==null?0:k.startsWith("LJ")))return!0;var C,n,N;k=(C=W.engagementPanels)==null?void 0:(n=C.find(function(V){var c;return((c=V.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(N=n.engagementPanelSectionListRenderer.content)==null?void 0:N.structuredDescriptionContentRenderer;
var B;if(_.z(k==null?void 0:(B=k.items)==null?void 0:B.find(function(V){return!!_.z(V,Ra_)}),Ra_))return!0;
var A,w,x,E;if(W=(((A=W.contents)==null?void 0:(w=A.twoColumnWatchNextResults)==null?void 0:(x=w.results)==null?void 0:(E=x.results)==null?void 0:E.contents)||[]).find(function(V){return V.videoPrimaryInfoRenderer})){var a,X,d;
return(((a=W.videoPrimaryInfoRenderer)==null?void 0:(X=a.videoActions)==null?void 0:(d=X.menuRenderer)==null?void 0:d.flexibleItems)||[]).some(function(V){V=_.z(V,_.qq8);if(!V)return!1;var c,M;V=(c=V.topLevelButton)==null?void 0:(M=c.buttonViewModel)==null?void 0:M.onTap;if(!V)return!1;c=_.fi(V);if(!c)return!1;var p;return((p=_.z(c,_.cq))==null?void 0:p.panelIdentifier)==="PAyouchat"})}return!1},t97=function(W){var k=[];
if(!_.m("web_watch_inject_placeholder_fantasy_panel_killswitch")){var C,n,N,B=(C=W.engagementPanels)==null?void 0:(n=C.find(function(w){var x;return((x=w.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(N=n.engagementPanelSectionListRenderer.content)==null?void 0:N.structuredDescriptionContentRenderer,A;
_.z(B==null?void 0:(A=B.items)==null?void 0:A.find(function(w){return!!_.z(w,ti_)}),ti_)&&(C=_.A1X("PAsports_fantasy"),C.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k.push(C))}E6o(W)&&(W=_.A1X("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k.push(W));
return k};var XmL=function(W){_.XK.call(this);this.JSC$20220_watchApi=W;aR_(this)};
_.D(XmL,_.XK);var aR_=function(W){W.JSC$20220_watchApi.registerActionHandler("yt-loop-command",function(k){fR3(W,k)});
W.JSC$20220_watchApi.registerActionHandler("yt-repeat-chapter-command",function(k){dZl(W,k)});
W.addOnDisposeCallback(function(){e2(W.JSC$20220_watchApi,"yt-loop-command");e2(W.JSC$20220_watchApi,"yt-repeat-chapter-command")})},fR3=function(W,k){var C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20220_watchApi.playerApi,2);C=n.yieldResult;_.z(k,ae7).loop?(C.setLoopRange({startTimeMs:Number(_.z(k,ae7).startTimeMs),endTimeMs:Number(_.z(k,ae7).endTimeMs),postId:_.z(k,ae7).postId,type:"clips"}),C.playVideo()):C.setLoopRange(null);_.ab(n)})},dZl=function(W,k){var C,n;
_.F(function(N){if(N.nextAddress==1)return _.l(N,W.JSC$20220_watchApi.playerApi,2);C=N.yieldResult;n=_.z(k,zao).repeat;n==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(C.setLoopRange({startTimeMs:Number(_.z(k,zao).startTimeMs),endTimeMs:Number(_.z(k,zao).endTimeMs),type:"repeatChapter"}),C.playVideo()):n==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&C.setLoopRange(null);_.ab(N)})};var zIa=function(W){_.XK.call(this);this.JSC$20225_watchApi=W;mZi(this)};
_.D(zIa,_.XK);var mZi=function(W){W.JSC$20225_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(k){DZe(W,k)});
W.addOnDisposeCallback(function(){e2(W.JSC$20225_watchApi,"yt-watch-player-overflow-menu-command")})},DZe=function(W,k){var C,n,N,B,A,w,x,E,a,X,d;
_.F(function(V){if(V.nextAddress==1)return _.l(V,W.JSC$20225_watchApi.playerApi,2);C=V.yieldResult;if(B=(N=(n=_.z(k,D9z))==null?void 0:n.highlightedMenuItemKey)!=null?N:"")(w=(A=C).highlightSettingsMenuItem)==null||w.call(A,B);if(a=(E=(x=_.z(k,D9z))==null?void 0:x.openMenuItemKey)!=null?E:"")(d=(X=C).openSettingsMenuItem)==null||d.call(X,a);_.ab(V)})};var V9o=_.KB("/youtube/app/watch/player_state","playerStateEntity");var cDz=function(W){_.XK.call(this);this.JSC$20228_watchApi=W;JDN(this)};
_.D(cDz,_.XK);var IRl=function(W){switch(W){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"}},JDN=function(W){var k,C;
_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20228_watchApi.playerApi,2);k=n.yieldResult;C=function(N){W.onPlayerStateChange(N)};
k.addEventListener("onStateChange",C);W.addOnDisposeCallback(function(){k.removeEventListener("onStateChange",C)});
_.ab(n)})};
cDz.prototype.onPlayerStateChange=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,k.JSC$20228_watchApi.playerApi,2);C=N.yieldResult;n=C.getVideoData().video_id;_.SY().dispatch(_.Nj("playerStateEntity",V9o,{key:V9o,playerState:IRl(W),videoId:n}));_.ab(N)})};var Sdj=function(W){_.XK.call(this);var k=this;this.JSC$20232_watchApi=W;W=_.ZF();var C=_.nE(W,sN,function(n){k.onActiveChanged(n)});
this.addOnDisposeCallback(C);_.f().resolve(_.J4).setPlayer(this.JSC$20232_watchApi.getElement("PLAYER"));this.onActiveChanged(sN(W.getState()))};
_.D(Sdj,_.XK);Sdj.prototype.onActiveChanged=function(W){var k=this,C=_.f().resolve(_.J4),n=function(){M9i(k)};
W?(W=this.JSC$20232_watchApi.getElement("PLAYLIST_PANEL"))?(C.setPlaylistComponent(W),C.addEventListener("yt-playlist-data-updated",n),this.addOnDisposeCallback(function(){C.removeEventListener("yt-playlist-data-updated",n)}),M9i(this)):_.pS(Error("jm")):(C.removeEventListener("yt-playlist-data-updated",n),C.cancelVideoSkip())};
var M9i=function(W){var k=_.f().resolve(_.J4);W.JSC$20232_watchApi.provideRenderingData("PLAYLIST",k.getPlaylistData())};var eIL=function(W){_.XK.call(this);var k=this;this.JSC$20235_watchApi=W;this.onPageScroll=function(){k.scrollThrottle.fire();k.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Ox(this.onThrottledScroll,200,this);_.Bf(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Ox(this.onMastheadThrottledScroll,50,this);_.Bf(this,this.mastheadScrollThrottle);this.animation=new _.Mp(function(C){k.JSC$20235_watchApi.getRoot().setScrollTop(C)});
W=_.nE(_.ZF(),_.GG,function(){Qqr(k)});
this.addOnDisposeCallback(W);pm7(this);v6_(this);this.onThrottledScroll()};
_.D(eIL,_.XK);
var Qqr=function(W){var k=W.JSC$20235_watchApi.getRoot();!W.pageScrollElement&&k.pageScrollElement?(W.pageScrollElement=k.pageScrollElement,k.pageScrollElement.addEventListener("scroll",W.onPageScroll),W.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):W.pageScrollElement&&!k.pageScrollElement&&(W.pageScrollElement.removeEventListener("scroll",W.onPageScroll),W.pageScrollElement=void 0)},pm7=function(W){window.addEventListener("scroll",W.onPageScroll);
W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},v6_=function(W){W.JSC$20235_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(k){a:{var C;
if(C=W.JSC$20235_watchApi.getRoot().contains(k)&&!W.animation.isAnimating()){C=k.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var n,N,B=(k==null?void 0:(n=k.parentElement)==null?void 0:(N=n.parentElement)==null?void 0:N.id)==="fixed-secondary";C=!(C&&B)}if(C){if(_.m("kevlar_watch_scroll_manager_absolute_offset_killswitch"))n=k.offsetTop;else for(n=0,N=k;N!==null;)n+=N.offsetTop,n-=N.scrollTop,N=N.offsetParent;N=n;n=N-24;k=N+k.offsetHeight+24;N=W.JSC$20235_watchApi.getRoot().getPageScrollingElement();
C=W.JSC$20235_watchApi.getRoot().getScrollTop();B=C+N.clientHeight-56;if(n<C+56)k=n-56;else if(k>B)k-=N.clientHeight;else break a;W.scrollWatchTo(Math.max(0,k),!0)}}});
W.addOnDisposeCallback(function(){e2(W.JSC$20235_watchApi,"yt-scroll-to-watch-element")})};
eIL.prototype.onThrottledScroll=function(){var W=_.ZF(),k=W.dispatch,C=this.JSC$20235_watchApi.getRoot().getScrollTop();k.call(W,_.jo({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:C}}))};
eIL.prototype.onMastheadThrottledScroll=function(){this.JSC$20235_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20235_watchApi.getRoot().getScrollTop())};
eIL.prototype.scrollWatchTo=function(W,k){(k===void 0?0:k)?this.animation.start(this.JSC$20235_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$20235_watchApi.getRoot().setScrollTop(W)};var yDL=function(W){_.XK.call(this);var k=this;this.JSC$20238_watchApi=W;var C=this.JSC$20238_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){sqN(k)}),n=this.JSC$20238_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GXN(k)});
this.addOnDisposeCallback(function(){k.JSC$20238_watchApi.unsubscribeByKey(C);k.JSC$20238_watchApi.unsubscribeByKey(n)});
sqN(this);GXN(this)};
_.D(yDL,_.XK);
var sqN=function(W){var k,C,n,N=(n=(k=W.JSC$20238_watchApi.getPlayerResponse())==null?void 0:(C=k.videoDetails)==null?void 0:C.title)!=null?n:"";W.JSC$20238_watchApi.dispatchEvent("yt-update-title",N)},GXN=function(W){var k,C,n,N,B,A,w,x=(w=((A=(k=W.JSC$20238_watchApi.getWatchNextResponse())==null?void 0:(C=k.contents)==null?void 0:(n=C.twoColumnWatchNextResults)==null?void 0:(N=n.results)==null?void 0:(B=N.results)==null?void 0:B.contents)!=null?A:[]).find(function(E){return!!E.videoPrimaryInfoRenderer}))==null?
void 0:w.videoPrimaryInfoRenderer;
(k=_.y4(x==null?void 0:x.title))&&W.JSC$20238_watchApi.dispatchEvent("yt-update-title",k)};var Zt6=function(W){_.XK.call(this);this.JSC$20241_watchApi=W;$Zr(this)};
_.D(Zt6,_.XK);var $Zr=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$20241_watchApi.playerApi,2);k=n.yieldResult;C=function(){W.onYpcContentRequest()};
k.addEventListener("onYpcContentRequest",C);W.addOnDisposeCallback(function(){k.removeEventListener("onYpcContentRequest",C)});
_.ab(n)})};
Zt6.prototype.onYpcContentRequest=function(){var W,k,C,n,N,B=(W=this.JSC$20241_watchApi.getWatchNextResponse())==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.secondaryResults)==null?void 0:(N=n.secondaryResults)==null?void 0:N.offerModule,A,w,x,E;W=(E=(x=(w=(A=B==null?void 0:B.episodeOfferModuleRenderer)!=null?A:B==null?void 0:B.movieOfferModuleRenderer)!=null?w:B==null?void 0:B.unlimitedOfferModuleRenderer)!=null?x:B==null?void 0:B.liveOfferModuleRenderer)!=
null?E:B==null?void 0:B.tvfilmOfferModuleRenderer;var a,X,d;B=(d=B==null?void 0:(a=B.tvfilmOfferModuleRenderer)==null?void 0:(X=a.actionButtons)==null?void 0:X.length)!=null?d:0;X=Math.max(B-1,0);var V,c,M;a=(M=W==null?void 0:(V=W.offerButton)==null?void 0:V.buttonRenderer)!=null?M:W==null?void 0:(c=W.actionButtons)==null?void 0:c[X].buttonRenderer;var p,e;(V=(e=(p=a==null?void 0:a.navigationEndpoint)!=null?p:a==null?void 0:a.serviceEndpoint)!=null?e:a==null?void 0:a.command)&&_.gH.instance.resolveCommand(V)};_.Rw=function(W){_.im.call(this);var k=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return k.activeModules}};
RIr(this);W=_.nE(_.ZF(),sN,function(C){k.initOrDisposeActiveModules(C)});
this.addOnDisposeCallback(W);this.initOrDisposeActiveModules(sN(_.ZF().getState()));this.onAttached()};
_.D(_.Rw,_.im);_.Rw.prototype.getRoot=function(){return this.rootElement};
_.Rw.prototype.getElement=function(W){return this.rootElement.getElement(W)};
_.ow=function(W,k){W.playerResponse=k;W.publish("PLAYER_RESPONSE_UPDATED",k)};
_.Rw.prototype.getPlayerResponse=function(){return this.playerResponse};
_.ia=function(W,k){W.watchNextResponse===k?W.publish("WATCH_NEXT_RESPONSE_RELOADED"):(W.watchNextResponse=k,W.publish("WATCH_NEXT_RESPONSE_UPDATED",k))};
_.Rw.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.Rw.prototype.registerActionHandler=function(W,k){var C=this;if(_.m("web_watch_controller_reg_multiple_handlers_killswitch")){var n={};_.e6(_.vx.getInstance(),(n[W]=k,n),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),n={},_.e6(_.vx.getInstance(),(n[W]=function(){var N=_.v6.apply(0,arguments);return(C.actionHandlers.get(W)||[]).map(function(B){return B.apply(null,_.J8(N))})},n),this.getRoot())),this.actionHandlers.get(W).push(k)};
var e2=function(W,k){if(_.m("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.sK(_.vx.getInstance(),(C[k]=!0,C),W.getRoot())}else(C=W.actionHandlers.get(k))?(C.pop(),C.length===0&&(C={},_.sK(_.vx.getInstance(),(C[k]=!0,C),W.getRoot()),W.actionHandlers.delete(k))):_.zJ(new _.AM("Attempted to unregister an action handler which is not registered.",k))},iM5=function(W,k){W.rootElement.pageDisposeJobs||(W.rootElement.pageDisposeJobs=[]);
_.DXz(W.rootElement.pageDisposeJobs,k)};
_.Rw.prototype.dispatchEvent=function(W,k){_.Pe(this.rootElement,W,k)};
_.Rw.prototype.provideRenderingData=function(W,k){this.rootElement.provideRenderingData(W,k)};
_.Rw.prototype.scrollWatchTo=function(W,k){var C;(C=this.watchScrollManager)==null||C.scrollWatchTo(W,k)};
_.Rw.prototype.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.ZR(W,function(){if(W&&W.firstElementChild){var k=W.querySelector(".html5-video-player");k&&(_.f$x(_.f().resolve(_.xa)),k.focus())}else _.zJ(Error("km"))})};
_.o6z=function(W){var k=!!W.rootElement.theater,C=!!W.rootElement.fullscreen,n;(n=W.watchCinematicManager)==null||SKe(n,C,k)};
_.Rw.prototype.onAttached=function(){var W=_.m("external_fullscreen");_.m("use_unified_flag_accessor")&&(W=_.f().resolve(_.pvu).retriever.getFlag(_.Oy8));(W||_.cv("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var it5=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},T8=function(W){return W.getRoot().is==="ytd-watch-fixie"},RIr=function(W){if(T8(W)||it5(W)&&_.m("kevlar_watch_flexy_theater_manager")){var k=new kJa(W);
_.Bf(W,k)}k=new UP6(W);_.Bf(W,k);k=new su(W);_.Bf(W,k);k=new oI5(W);_.Bf(W,k);k=new cDz(W);_.Bf(W,k);k=new G8(W);_.Bf(W,k);if(T8(W)||it5(W)&&_.m("kevlar_watch_flexy_playlist_manager"))k=new Sdj(W),_.Bf(W,k)};
_.Rw.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new eIL(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new Ydz(this)),this.activeModules.push(new CeN(this)),T8(this)&&this.activeModules.push(new wmj(this)),this.activeModules.push(new yDL(this)),this.activeModules.push(new Kwz(this)),(T8(this)||_.m("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new bvG(this)),this.activeModules.push(new XmL(this)),(T8(this)||
_.m("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new Zt6(this)),(T8(this)||_.m("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new fx7(this)),_.m("kevlar_watch_cinematics")&&(this.watchCinematicManager=new V6j(this),this.activeModules.push(this.watchCinematicManager),_.o6z(this)),_.m("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new zIa(this)),_.m("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new qKz(this)),W=_.m("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.m("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new s9e(this)),_.m("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new zu5(this)),this.activeModules.push(new FwN(this)),_.m("web_watch_inject_placeholder_panels")&&this.activeModules.push(new lRe(this)),_.m("web_enable_timely_actions")&&this.activeModules.push(new t6e(this)),_.m("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new $qN(this)),_.m("web_watch_enable_multiview_manager")&&
this.activeModules.push(new SLG(this)),_.m("web_fullscreen_video_action_bar")&&this.activeModules.push(new xqo(this)),_.m("web_player_rtr_ctrls")&&this.activeModules.push(new RuL(this))):(_.dIw(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Rw.prototype.disposeInternal=function(){_.im.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.oq.Object.defineProperties(_.Rw.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var nfE;nfE=function(W){switch(W){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:_.oI(W,"unknown result type")}};
_.NyA=function(W,k,C){k=_.tew[k];C={detected:W===0,source:k.sxk,detectionResult:nfE(W),contentCpn:C};_.a9("biscottiBasedDetection",C);_.YD8.increment(k.sxk,W);k.snj!==void 0&&_.z3("CATSTAT",_.xCw(W,k))};
_.$p=function(W,k){var C={};C.key=W;C.value=k;return _.TBw().then(function(n){return new Promise(function(N,B){try{var A=n.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(C);A.onsuccess=function(){N()};
A.onerror=function(){B()}}catch(w){B(w)}})})};
_.Byt=function(){var W=_.Oe("user_engagement_experiments_rate_limit_ms"),k=YiT.get("last-user-engagement-exp-trigger-timestamp");return!k||(0,_.oX)()>=k+W?(YiT.set("last-user-engagement-exp-trigger-timestamp",(0,_.oX)()),!0):!1};
_.ZL=function(W,k,C,n,N){k=k===void 0?null:k;C=C===void 0?null:C;n=n===void 0?null:n;N=N===void 0?null:N;W={youThereEventType:W};C&&(W.lactThresholdMs=C.lactThresholdMs,W.mediaPosSec=C.promptDelaySec,W.lactServerRequestMs=C.lactServerRequestMs,W.triggerReason=C.triggerReason);N!=null&&(W.renderingMediaPosSec=Math.round(N));k||(k=_.VM());k&&(W.clientScreenNonce=k);n&&(W.clientPlaybackNonce=n);_.a9("youThere",W)};var YiT=new _.D3("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.hIE=function(W){return _.jo({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var HtN,hI5,WQl,k7j,L5_,Ota,ne_;_.qde=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.se(W)};
_.uwr=function(W){var k;_.F(function(C){k=["b.f_","j.s_","r.s_","e.h_"];_.m("ab_det_sc_inj")&&k.push("s.i_");_.m("ab_deg_unex_thr")||k.push("a.o_");_.m("ks_get_o_pp")||k.push("g.o_");_.m("ks_det_gpbl")||k.push("p.i_");k.push("f.i_");k.push("a.b_");k.push("p.m_");_.m("ab_det_el_h_v2")&&k.push("n.h_");k.push("o.p_");_.m("ab_det_apm")&&k.push("o.a_");k.forEach(function(n){var N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,_.kxs[n](),2);N=B.yieldResult;W(N,n);_.ab(B)})});
_.ab(C)})};
_.UZe=function(W,k){W={videoId:W};k&&(W.playlistId=k);return W};
_.jq6=function(){if(!_.m("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.m("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.rkP()){var W=_.DE("PLAYER_VARS",{});if(_.JU.get(W,"privembed",!1)!="1"&&!_.Kfc(W)){var k=function(){Ota=!0;"google_ad_status"in window?_.z3("DCLKSTAT",1):_.z3("DCLKSTAT",2)};
try{_.ML("//static.doubleclick.net/instream/ad_status.js",k)}catch(C){}L5_.push(_.aM.addLowPriorityJob(function(){if(!(Ota||"google_ad_status"in window)){try{_.RX3("//static.doubleclick.net/instream/ad_status.js",k)}catch(C){}Ota=!0;_.z3("DCLKSTAT",3)}},5E3))}}};
HtN=function(W){return _.m("web_watch_adjust_sidebar_width")?_.TG+((W===void 0?1500:W)-_.TTj)/100*_.qFa:_.TG};
_.rD6=function(W,k){W=W.width-_.LwY();var C=HtN(W);return Math.max(C,Math.min(_.Og3,C+(W-(_.U9_+HtN(W)+_.oD+2*_.oD+k))))};
_.g6N=function(W,k,C){C=C===void 0?!1:C;var n=Math.max(W.width,_.u0L);if(_.m("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.EP()&&W.height>=800)n-=_.r8L;else if(W.width>=_.il){var N=_.U9_+HtN(W.width)+_.oD;_.m("kevlar_watch_feed_big_thumbs")&&(N=_.Hg6);n-=N}else n-=_.U9_;n=Math.min(n,_.LR3);N=240;C&&(N=380);k<.5624||(!_.m("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.il&&W.width<1327)?N=360:!_.m("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(N=480));var B=Math.min(n*k,W.height-(56+_.igL+_.jb3));B=Math.max(B,N);k<1?n=B/k:W.width>=_.il&&(n=_.g6N(W,.5625,C).width);return new _.lB(Math.round(n),Math.round(B))};
_.PDa=function(W){var k=0;W.indexOf("h")!=-1&&(W=W.split("h"),k=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),k=W[0]*60+k,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),k=W[0]*1+k):k=W*1+k;return k};
_.K5N=function(){_.Oe("service_worker_push_logged_out_prompt_watches")!=-1&&_.T5("WatchCount").then(function(W){W>=100||_.$p("WatchCount",W+1)})};
hI5=function(W){var k=W.externalVideoId||"";return k?(_.m("webfe_watch_shorts_canonical_url_fix")||_.DE("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&W.isShortsEligible?"https://www.youtube.com/shorts/"+k:"https://www.youtube.com/watch?v="+k:""};
WQl=function(W){var k=[];W.viewCount&&k.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&k.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return k};
k7j=function(W){var k,C,n={"@context":"https://schema.org","@type":"VideoObject",description:_.y4(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.y4(W.title),thumbnailUrl:((k=W.thumbnail)==null?void 0:(C=k.thumbnails)==null?void 0:C.map(function(a){return a&&a.url||""}))||[],
uploadDate:W.publishDate};_.m("mweb_video_schema_id_killswitch")||(n["@id"]=hI5(W));k=WQl(W);k.length&&(n.interactionStatistic=k);W.category&&(n.genre=W.category);W.ownerChannelName&&(n.author=W.ownerChannelName);W.liveBroadcastDetails&&(n.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;n["@type"]=["VideoObject","LearningResource"];var N;if((N=W.learningResourceType)==
null?0:N.length)n.learningResourceType=W.learningResourceType[0];var B;if((B=W.educationalAlignment)==null?0:B.length)n.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var A;if((A=W.educationalLevel)==null?0:A.length){N=W.educationalLevel[0];var w;if((w=W.educationalLevelCountry)==null?0:w.length)N+=" ("+W.educationalLevelCountry+")";n.educationalLevel=N}var x,E;if(((x=W.learningResourceType)==null?0:x.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((E=W.problemDescriptions)==null?0:E.length))for(n.hasPart=[],w=_.b(W.problemDescriptions),x=w.next();!x.done;x=w.next())N=x.value,x=N.problemDescriptionText,E=N.startOffset,N=N.url,x&&E!==void 0&&N&&n.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:x,text:x,startOffset:E,url:N})}return n};
_.CdG=function(W){return _.jo({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
L5_=[];Ota=!1;ne_=new _.r("updateSentimentBarStateCommand");_.Nai=new _.r("showSurveyCommand");_.ua=new _.r("changeMarkersVisibilityCommand");var Baa,bYj,xLL,weN,FQi,Uu;_.Yk_=function(W,k){this.playerProvider_=W;this.actionSenderElement_=k;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Yk_.prototype.reset=function(){Baa(this);this.isUserPredictedAbsent_=!1};
Baa=function(W,k){!W.youThereData_||W.showWarningJob_||k!==void 0&&k||(_.ZL("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.VM(),W.youThereData_,W.clientPlaybackNonce_),_.fM());_.aM.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.aM.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.aM.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.AA_=function(W,k){var C,n,N;_.F(function(B){if(B.nextAddress==1)return W.reset(),_.l(B,W.playerProvider_().getPlayerPromise(),2);C=B.yieldResult;W.clientPlaybackNonce_=C.getVideoData().cpn;W.youThereData_=k.configData.youThereData;if(!W.youThereData_)return B.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Byt())return _.ZL("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.VM(),W.youThereData_,W.clientPlaybackNonce_),B.return();n=W.youThereData_.promptDelaySec;
N=C.getCurrentTime();W.showWarningJob_=_.aM.addLowPriorityJob(function(){return _.F(function(A){W.showWarningJob_=0;return _.l(A,bYj(W),0)})},Math.max(n-N,0)*1E3);
_.ab(B)})};
bYj=function(W){var k,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return _.l(w,W.playerProvider_().getPlayerPromise(),2);if(w.nextAddress!=3)return k=w.yieldResult,C=k.getCurrentTime(),_.l(w,FQi(W),3);n=w.yieldResult;if(!n||!W.youThereData_)return w.return();if(_.m("check_user_lact_at_prompt_shown_time_on_web")&&(N=parseInt(W.youThereData_.lactThresholdMs,10),_.ie()<N))return _.ZL("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.VM(),W.youThereData_,W.clientPlaybackNonce_),w.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return weN(W),w.return();!_.m("external_fullscreen")&&(B=_.LY())&&(W.ignoreFullscreenExitUserActivity_=!0,_.aM.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.jh(B));
W.youThereData_.showToastWarningPrompt&&(Uu(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.ZL("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.VM(),W.youThereData_,W.clientPlaybackNonce_,C),_.ZL("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.VM(),W.youThereData_,W.clientPlaybackNonce_,C));A=0;W.youThereData_.blockingPromptDelayMs&&(A=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.aM.addLowPriorityJob(function(){return _.F(function(x){W.showBlockingWarningJob_=0;return _.l(x,
xLL(W),0)})},A);
_.ab(w)})};
xLL=function(W){var k,C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,FQi(W),2);k=N.yieldResult;if(!W.youThereData_)return N.return();k&&(W.youThereData_.showBlockingWarningAction&&(_.ZL("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.VM(),W.youThereData_,W.clientPlaybackNonce_),(C=_.z(W.youThereData_.showBlockingWarningAction,_.Nl))?Uu(W,C.commands):Uu(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),n=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.aM.addLowPriorityJob(function(){return _.F(function(B){W.pausePlaybackJob_=0;return _.l(B,weN(W),0)})},n));
_.ab(N)})};
weN=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,FQi(W),2);k=C.yieldResult;if(!W.youThereData_)return C.return();k&&(_.ZL("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.VM(),W.youThereData_,W.clientPlaybackNonce_),Uu(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.ab(C)})};
_.Yk_.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.z(this.youThereData_.userActiveDuringFlowAction,_.Nl);W?Uu(this,W.commands):Uu(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.ZL("YOU_THERE_EVENT_TYPE_LACT_RESET",_.VM(),this.youThereData_,this.clientPlaybackNonce_),_.fM());Baa(this,!0)}_.lH7(this,!1)};
_.thr=function(W){_.ZL("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.VM(),W.youThereData_,W.clientPlaybackNonce_)};
FQi=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.playerProvider_().getPlayerPromise(),2);k=n.yieldResult;C=k.getPlayerState();return n.return(C==-1||C==1||C==3)})};
_.lH7=function(W,k){var C;_.F(function(n){if(n.nextAddress==1){if(W.isUserPredictedAbsent_==k)return n.jumpTo(0);W.isUserPredictedAbsent_=k;return _.l(n,W.playerProvider_().getPlayerPromise(),3)}C=n.yieldResult;C.setUserEngagement(k);k&&_.ZL("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.VM(),W.youThereData_,W.clientPlaybackNonce_);_.ab(n)})};
Uu=function(W,k){if(_.m("handle_service_request_actions")||_.m("kevlar_youthere_service_endpoint_actions_killswitch"))_.CB(W.actionSenderElement_,k,W.actionSenderElement_);else{k=_.b(k);for(var C=k.next();!C.done;C=k.next())C=C.value,C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.sendPost?_.kQ(W.actionSenderElement_,[C]):_.CB(W.actionSenderElement_,[C],W.actionSenderElement_)}};var Eeo;var aHN;var XeG=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.D(XeG,_.R);XeG.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.S(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
XeG.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.z(W,ne_).likeStatus)};
var Ou=XeG;Ou.prototype.observeLikeStatus=Ou.prototype.observeLikeStatus;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ou.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ou.prototype,"activated",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ou.prototype,"systemIcons",void 0);_.U([_.Hl("data.likeStatus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ou.prototype,"observeLikeStatus",null);Ou=_.U([_.T({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ou);
_.q(Ou,"ytd-sentiment-bar-renderer",function(){if(aHN!==void 0)return aHN;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return aHN=W},{mode:1});var fHi;var dLo=function(){var W=_.R.apply(this,arguments)||this;W.small=!0;return W};
_.D(dLo,_.R);var L$=dLo;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],L$.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],L$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],L$.prototype,"small",void 0);L$=_.U([_.T({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],L$);
_.q(L$,"ytd-video-view-count-renderer",function(){if(fHi!==void 0)return fHi;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fHi=W},{mode:_.UC("kevlar_poly_si_batch_j080")?1:2});var j2=function(){var W=_.R.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.m("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.m("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.D(j2,_.R);_.Y=j2.prototype;_.Y.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.m("web_modern_buttons"),forceIconButton:!_.m("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.Y.dataChanged=function(){_.m("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.Y.computeInfoFormattedStrings=function(W){if(!W)return[];var k=[];W.dateText&&k.push(W.dateText);W.stationName&&k.push(W.stationName);W.rating&&k.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&k.push(_.Go(_.H7G(_.y4(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&k.push(W.upNextProgramText);return k};
_.Y.scheduleInitialUpdatedMetadataRequest=function(){var W,k=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(k){var C;W=Number((C=_.z(k,_.d$s))==null?void 0:C.initialDelayMs);C=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),C)}};
_.Y.setSentimentBarWidth=function(){var W=this;_.ZR(this,function(){var k=_.S(W.hostElement).querySelector("ytd-menu-renderer");if(k){k=k.topLevelButtons;for(var C=0,n=0;n<k.length;n++){var N=k[n],B=W.get("toggleButtonSupportedData.toggleButtonIdData.id",N.data);if(B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||B==="TOGGLE_BUTTON_ID_TYPE_LIKE")C+=N.clientWidth+8;else break}C&&(W.sentiment.style.width=C-8+" px")}})};
_.Y.fetchUpdatedMetadata=function(W){var k;W&&(k={continuation:W});var C;(W=(C=this.data)==null?void 0:C.updatedMetadataEndpoint)&&_.f().resolve(_.uI).resolveCommand(W,{form:Object.assign({},k,{element:this.hostElement})})};
_.Y.onYtServiceRequestSent=function(W,k){k.endpoint&&_.z(k.endpoint,_.RZ)&&(this.hasUpdateSentimentBarStateCommands()&&!_.m("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.z(k.endpoint,_.RZ).status),this.setSentimentBarWidth())};
_.Y.hasUpdateSentimentBarStateCommands=function(){var W,k,C,n,N=(n=(W=this.data)==null?void 0:(k=W.videoActions)==null?void 0:(C=k.menuRenderer)==null?void 0:C.topLevelButtons)!=null?n:[];W=_.b(N);for(k=W.next();!k.done;k=W.next()){k=k.value;N=n=C=void 0;var B=(C=k.toggleButtonRenderer)==null?void 0:(n=C.toggleButtonSupportedData)==null?void 0:(N=n.toggleButtonIdData)==null?void 0:N.id;if(B==="TOGGLE_BUTTON_ID_TYPE_LIKE"||B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){n=C=void 0;k=(n=_.z((C=k.toggleButtonRenderer)==
null?void 0:C.defaultServiceEndpoint,_.Nl))==null?void 0:n.commands;if(!k)break;k=_.b(k);for(C=k.next();!C.done;C=k.next())if(_.z(C.value,ne_))return!0}}return!1};
_.Y.onYtServiceRequestCompleted=function(W,k){var C;(W=(C=k.data)==null?void 0:C.loggingDirectives)&&_.LOp(_.kf(),W);this.get("continuation.timedContinuationData",k.data)&&this.data&&this.data.updatedMetadataEndpoint&&(k=k.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,k.continuation),k.timeoutMs))};
_.Y.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.oq.Object.defineProperties(j2.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return!((n=(W=this.data)==null?void 0:(k=W.videoActions)==null?void 0:(C=k.menuRenderer)==null?void 0:C.flexibleItems)==null||!n.length)}}});
j2.prototype.onYtServiceRequestCompleted=j2.prototype.onYtServiceRequestCompleted;j2.prototype.onYtServiceRequestSent=j2.prototype.onYtServiceRequestSent;j2.prototype.dataChanged=j2.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],j2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.vR.YtTaskEmitterBehavior),_.O("design:type",Object)],j2.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],j2.prototype,"data",void 0);_.U([_.Z({computed:"computeInfoFormattedStrings(data)"}),_.O("design:type",Array)],j2.prototype,"infoFormattedStrings",void 0);
_.U([_.Z({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],j2.prototype,"hasDateText",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],j2.prototype,"wrapVideoActions",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],j2.prototype,"hideSentimentBar",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],j2.prototype,"flexMenuEnabled",null);
_.U([_.gi("#sentiment"),_.O("design:type",Object)],j2.prototype,"sentiment",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],j2.prototype,"dataChanged",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],j2.prototype,"onYtServiceRequestSent",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],j2.prototype,"onYtServiceRequestCompleted",null);
_.q(j2,"ytd-video-primary-info-renderer",function(){if(Eeo===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);Eeo=W}W=Eeo;return W},{mode:1});var mL3;var Ho=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.D(Ho,_.R);_.Y=Ho.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var k;this.collapsed=this.descriptionAlwaysCollapsed||!((k=this.data)==null?0:k.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.F8(110509);this.showLessClientVe=_.F8(110510);W=_.VM();k=_.DH();W&&k&&_.Rg(W,k,[this.showMoreClientVe,this.showLessClientVe])};
_.Y.onYtExpanderMoreTapped=function(){var W,k=(W=this.data)==null?void 0:W.showMoreCommand;k&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(k);(W=_.VM())&&this.showMoreClientVe&&_.Zr(W,this.showMoreClientVe)};
_.Y.onYtExpanderLessTapped=function(){var W=_.VM();W&&this.showLessClientVe&&_.Zr(W,this.showLessClientVe);var k;(W=(k=this.data)==null?void 0:k.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.Y.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.z(W,_.sbj).dateText)};
_.Y.handleUpdateDescriptionAction=function(W){if(W=_.z(W,_.Wu8))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.t7(W.description)):this.set("data.description",W.description)};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.m("web_structured_description_show_more")||_.m("web_engagement_panel_open_description")){var k,C=(k=_.z(W,_.AC8))==null?void 0:k.targetId,n;W=((n=_.z(W,_.AC8))==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";C==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.Y.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.Y.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.Y.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.oq.Object.defineProperties(Ho.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.metadataRowContainer)==null?void 0:k.metadataRowContainerRenderer;return!!C&&!!C.rows&&C.rows.length>C.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
Ho.prototype.onYtExpanderLessTapped=Ho.prototype.onYtExpanderLessTapped;Ho.prototype.onYtExpanderMoreTapped=Ho.prototype.onYtExpanderMoreTapped;Ho.prototype.dataChanged=Ho.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ho.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ho.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ho.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Ho.prototype,"collapsed",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Ho.prototype,"descriptionToggled",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],Ho.prototype,"canCollapse",void 0);_.U([_.Z(),_.O("design:type",Object)],Ho.prototype,"subscribeButtonData",void 0);_.U([_.Z(),_.O("design:type",Number)],Ho.prototype,"descriptionCollapsedHeight",void 0);_.U([_.Z(),_.O("design:type",Object)],Ho.prototype,"structuredDescriptionContentRenderer",void 0);_.U([_.Z({value:function(){return _.m("web_watch_description_always_collapsed")}}),
_.O("design:type",Boolean)],Ho.prototype,"descriptionAlwaysCollapsed",void 0);_.U([_.gi("#description"),_.O("design:type",HTMLDivElement)],Ho.prototype,"description",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ho.prototype,"dataChanged",null);_.U([_.jI("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ho.prototype,"onYtExpanderMoreTapped",null);
_.U([_.jI("yt-expander-less-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ho.prototype,"onYtExpanderLessTapped",null);_.U([_.G("data.metadataRowContainer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"metadataCollapsible",null);_.U([_.G("data","structuredDescriptionContentRenderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"hasInlineStructuredDescription",null);
_.U([_.G("data.attributedDescription"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"hasAttributedDescription",null);_.U([_.G("hasInlineStructuredDescription","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"loadStructuredDescription",null);_.U([_.G("data","structuredDescriptionContentRenderer","collapsed"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"showInlineStructuredDescription",null);
_.U([_.G("data","hasInlineStructuredDescription","metadataCollapsible"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Ho.prototype,"descriptionAlwaysCollapsible",null);
_.q(Ho,"ytd-video-secondary-info-renderer",function(){if(mL3===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);mL3=W}W=mL3;return W},{mode:2});var zBL;var rg=function(){return _.R.apply(this,arguments)||this};
_.D(rg,_.R);rg.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:_.m("web_modern_buttons"),forceIconButton:!_.m("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
rg.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(k){k.setMinimized(!0)});
this.active=!0};
rg.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(k){k.setMinimized(!1)});
this.active=!1;return W};
rg.prototype.onScrollUpTap=function(){var W=_.f().resolve(_.yF).getCurrentPage();W&&W.setScrollTop(0)};
var gg=rg;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],gg.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gg.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],gg.prototype,"active",void 0);
_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.O("design:type",Boolean)],gg.prototype,"darkLaunch",void 0);_.U([_.gi("#player"),_.O("design:type",HTMLDivElement)],gg.prototype,"player",void 0);gg=_.U([_.T({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],gg);
_.q(gg,"ytd-miniplayer-bar-renderer",function(){if(zBL!==void 0)return zBL;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zBL=W},{mode:1});_.Gj(_.GM(function(W){var k=_.yE();_.XM(function(){var C;if(C=JSON)C=k7j(W.data()),C=_.Uz(JSON.stringify(C).replace(/</g,"\\u003C"));var n=W.data(),N=_.y4(n.title).trim().length===0,B=!n.publishDate||n.publishDate.trim().length===0,A,w,x,E,a=!((A=n.thumbnail)==null?0:(w=A.thumbnails)==null?0:w.length)||!((x=n.thumbnail)==null?0:x.thumbnails[0].url)||((E=n.thumbnail)==null?void 0:E.thumbnails[0].url.trim().length)===0;k.value&&C&&!(N||B||a)&&_.Oz(k.value,C)});
return _.t("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.t("script",{el:k,type:"application/ld+json"}))},"Ai"),"player-microformat-renderer",{props:{data:_.si}});
}catch(e){_._DumpException(e)}
try{
var r2E,sa,gb7,PUt,hwS,W9Y,KTu,kG6;r2E=function(){var W=_.az();W.info||(W.info={});return W.info};
sa=function(W){return Math.round(_.fB()+W)};
gb7=function(){var W;if(_.m("csi_use_performance_navigation_timing")||_.m("csi_use_performance_navigation_timing_tvhtml5")){var k,C,n,N=_.Xl==null?void 0:(W=_.Xl.getEntriesByType)==null?void 0:(k=W.call(_.Xl,"navigation"))==null?void 0:(C=k[0])==null?void 0:(n=C.toJSON)==null?void 0:n.call(C);N?(N.requestStart=sa(N.requestStart),N.responseEnd=sa(N.responseEnd),N.redirectStart=sa(N.redirectStart),N.redirectEnd=sa(N.redirectEnd),N.domainLookupEnd=sa(N.domainLookupEnd),N.connectStart=sa(N.connectStart),
N.connectEnd=sa(N.connectEnd),N.responseStart=sa(N.responseStart),N.secureConnectionStart=sa(N.secureConnectionStart),N.domainLookupStart=sa(N.domainLookupStart),N.isPerformanceNavigationTiming=!0,W=N):W=_.Xl.timing}else W=_.m("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Xl.timing)):_.Xl.timing;return W};
PUt=function(){if(_.Xl.getEntriesByType){var W=_.Xl.getEntriesByType("paint");if(W=_.s2(W,function(C){return C.name==="first-paint"}))return sa(W.startTime)}var k;
_.m("csi_use_performance_navigation_timing")||_.m("csi_use_performance_navigation_timing_tvhtml5")?k=_.Xl.getEntriesByType("first-paint")[0].startTime:k=_.Xl.timing.msFirstPaint;return k?Math.max(0,k):0};
hwS=function(){var W=window.location.protocol,k=_.Xl.getEntriesByType("resource");k=_.W9(k,function(C){return C.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(k=KTu(k,function(C,n){return n.duration>C.duration?n:C}))&&k.startTime>0&&k.responseEnd>0&&(_.d8("wffs",sa(k.startTime)),_.d8("wffe",sa(k.responseEnd)))};
W9Y=function(W,k){W=document.querySelector(W);if(!W)return!1;var C="",n=W.nodeName;n==="SCRIPT"?(C=W.src,C||(C=W.getAttribute("data-timing-href"))&&(C=window.location.protocol+C)):n==="LINK"&&(C=W.href);_.qa(document)&&W.setAttribute("nonce",_.qa(document));return C?(W=_.Xl.getEntriesByName(C))&&W[0]&&(W=W[0],C=_.fB(),_.d8("rsf_"+k,C+Math.round(W.fetchStart)),_.d8("rse_"+k,C+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.ClA=function(W,k){_.MI(function(){_.Qyp("").info.actionType=W;k&&_.z3("TIMING_AFT_KEYS",k);_.z3("TIMING_ACTION",W);var C=_.O3c(_.DE("TIMING_INFO",{}));Object.keys(C).length>0&&_.mI(C);C={isNavigation:!0,actionType:_.eM3(_.DE("TIMING_ACTION"))};var n=_.DE("PREVIOUS_ACTION");n&&(C.previousAction=_.eM3(n));if(n=_.DE("CLIENT_PROTOCOL"))C.httpProtocol=n;if(n=_.DE("CLIENT_TRANSPORT"))C.transportProtocol=n;(n=_.VM())&&n!=="UNDEFINED_CSN"&&(C.clientScreenNonce=n);n=_.UVJ();if(n===1||n===-1)C.isVisible=
!0;n=_.DVX().loadType==="cold";var N=r2E();n||(n=N.yt_lt==="cold");if(n){C.loadType="cold";n=r2E();N=gb7();var B=_.fB(),A=_.DE("CSI_START_TIMESTAMP_MILLIS",0);A>0&&!_.m("embeds_web_enable_csi_start_override_killswitch")&&(B=A);B&&(_.d8("srt",N.responseStart),n.prerender!==1&&_.Z3K(B));n=PUt();n>0&&_.d8("fpt",n);n=gb7();n.isPerformanceNavigationTiming&&_.mI({performanceNavigationTiming:!0},void 0);_.d8("nreqs",n.requestStart,void 0);_.d8("nress",n.responseStart,void 0);_.d8("nrese",n.responseEnd,void 0);
n.redirectEnd-n.redirectStart>0&&(_.d8("nrs",n.redirectStart,void 0),_.d8("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(_.d8("ndnss",n.domainLookupStart,void 0),_.d8("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(_.d8("ntcps",n.connectStart,void 0),_.d8("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=_.fB()&&n.connectEnd-n.secureConnectionStart>0&&(_.d8("nstcps",n.secureConnectionStart,void 0),_.d8("ntcpe",n.connectEnd,void 0));_.Xl&&"getEntriesByType"in
_.Xl&&hwS();n=[];if(document.querySelector&&_.Xl&&_.Xl.getEntriesByName)for(var w in kG6)kG6.hasOwnProperty(w)&&(N=kG6[w],W9Y(w,N)&&n.push(N));if(n.length>0)for(C.resourceInfo=[],w=_.b(n),n=w.next();!n.done;n=w.next())C.resourceInfo.push({resourceCache:n.value})}_.mI(C);C=_.J94();C.preLoggedGelInfos||(C.preLoggedGelInfos=[]);w=C.preLoggedGelInfos;C=_.c9c();n=void 0;for(N=0;N<w.length;N++)if(B=w[N],B.loadType){n=B.loadType;break}if(_.DVX().loadType==="cold"&&(C.loadType==="cold"||n==="cold")){n=_.Vzm();
N=_.J94();N=N.gelTicks?N.gelTicks:N.gelTicks={};for(var x in n)if(!(x in N))if(typeof n[x]==="number")_.d8(x,_.zD(x));else if(_.m("log_repeated_ytcsi_ticks"))for(B=_.b(n[x]),A=B.next();!A.done;A=B.next())A=A.value,_.d8(x.slice(1),A);x={};n=!1;w=_.b(w);for(N=w.next();!N.done;N=w.next())n=N.value,_.dFP(C,n),_.dFP(x,n),n=!0;n&&_.mI(x)}_.jy4(!0);x=_.DE("TIMING_ACTION");_.QK("ytglobal.timingready_")&&x&&_.nqc()&&_.LFX()&&_.qnK()})()};
KTu=function(W,k){return Array.prototype.reduce.call(W,k,{duration:0})};
kG6={'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 nsC={};nsC.YtVisibilityRootBehavior=[_.kYY.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.LU(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.DE("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.DE("INNERTUBE_CLIENT_NAME")!=="WEB";_.m("kevlar_use_vimio_behavior")&&W&&_.hHs()}}];_.Gp={};_.Gp.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
nsC.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.ME();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var k=this;this.pageCount+=1;_.m("kevlar_use_vimio_behavior")&&(_.DE("INNERTUBE_CLIENT_NAME")==="WEB"?_.aM.addJob(function(){k.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var k=this;_.m("kevlar_use_vimio_behavior")&&(W?_.DE("INNERTUBE_CLIENT_NAME")==="WEB"?_.aM.addJob(function(){k.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var k=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){k.setScrollTopJobId_=0;var C=_.f().resolve(_.qI(_.xa));C&&_.f$x(C);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.mG(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var jF$;var Hzt=function(){var W=_.R.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.D(Hzt,_.R);_.Y=Hzt.prototype;_.Y.dataChanged=function(){var W=this,k=_.Zf();k&&k.getPlayerPromise().then(function(n){W.maybeRemovePlayerListeners(n)});
var C=this.data&&this.data.survey;C&&((C=(C=C.singleOptionSurveyRenderer||C.checkboxSurveyRenderer||C.multiStageSurveyRenderer)&&C.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(k,C):this.openSurvey())};
_.Y.triggerWatchPageSurvey=function(W,k){var C=this,n,N,B,A,w,x,E,a,X;return _.F(function(d){if(d.nextAddress==1)return W?_.l(d,W.getPlayerPromise(),2):d.return();C.player=d.yieldResult;if(!C.player)return d.return();n={};N=_.b(k);for(B=N.next();!B.done;B=N.next())A=B.value,w=_.b(C.createEventListenerPair(A)),x=w.next().value,E=w.next().value,a=x,X=E,a&&X&&(n[a]=X,C.ytPlayerListenerBehavior.listenToPlayerEvent(C.player,a,X));C.playerListenerConfig=n;_.ab(d)})};
_.Y.createEventListenerPair=function(W){var k=W.playbackEventTrigger;return k?this.handlePlaybackTrigger(k):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.Y.handleWatchTimeTrigger=function(W){var k=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var C=W.videoWatchFraction,n=W.watchTimeSec;return n&&C?["onVideoProgress",function(){k.player&&k.isWatchTimeConditionMet(k.player,C,n)&&k.showSurvey()}]:[void 0,
void 0]};
_.Y.isWatchTimeConditionMet=function(W,k,C){var n=W.getProgressState(),N=n.current-this.lastKnownPlaybackPosition;N<5&&(this.accumulatedMediaTime+=N);this.lastKnownPlaybackPosition=n.current;n=Math.round(this.accumulatedMediaTime/n.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>C||n>k)};
_.Y.handlePlaybackTrigger=function(W){var k=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var C="onStateChange";var n=function(N){N===0&&k.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(C="onVideoProgress",n=function(N){k.player&&k.player.getPresentingPlayerType&&k.player.getPresentingPlayerType()===1&&N&&k.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(C="onAdEnd",n=this.showSurvey);
return[C,n]};
_.Y.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.Y.openSurvey=function(){var W=this,k=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.hIE(!!k));_.aM.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:k}})},0,0)};
_.Y.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var k=_.b(Object.keys(this.playerListenerConfig)),C=k.next();!C.done;C=k.next())C=C.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,C,this.playerListenerConfig[C]);this.playerListenerConfig=null}};
var ev=Hzt;ev.prototype.dataChanged=ev.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],ev.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],ev.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ev.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],ev.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ev.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],ev.prototype,"playerListenerConfig",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],ev.prototype,"lastKnownPlaybackPosition",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],ev.prototype,"accumulatedMediaTime",void 0);_.U([_.Z(),_.O("design:type",Object)],ev.prototype,"player",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ev.prototype,"dataChanged",null);ev=_.U([_.T({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ev);
_.q(ev,"ytd-survey-trigger-renderer",function(){if(jF$!==void 0)return jF$;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return jF$=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Du7=new _.r("promotedSparklesWebRenderer");var V7_=new _.r("relatedChipCommand");var JtG;var ct6;var IA7=function(){return _.R.apply(this,arguments)||this};
_.D(IA7,_.R);IA7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var Jx=IA7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Jx.prototype,"data",void 0);Jx=_.U([_.T({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Jx);
_.q(Jx,"ytd-compact-tvfilm-entry-point-renderer",function(){if(ct6!==void 0)return ct6;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ct6=W},{mode:1});var SS7;var M7L;var Q1z;var ci=function(){return _.R.apply(this,arguments)||this};
_.D(ci,_.R);ci.prototype.ready=function(){this.initializeDefs()};
ci.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),k=_.S(W).querySelector("#star"),C=_.S(W).querySelector("#star_half");W=_.S(W).querySelector("#star_border");k&&this.defs.appendChild(k.cloneNode(!0));C&&this.defs.appendChild(C.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
ci.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var k=Math.round(this.percent/10);W=Math.floor(k/2);k%=2;var C=5-W-k;this.appendStars("star",W,0);this.appendStars("star_half",k,W);this.appendStars("star_border",C,W+k)};
ci.prototype.appendStars=function(W,k,C){for(var n=0;n<k;n++){var N=(18+this.spacing)*(n+C),B=document.createElementNS("http://www.w3.org/2000/svg","use");_.WQA(B,"#"+W);B.setAttribute("x",""+N);B.setAttribute("y","0");this.rating.appendChild(B)}};
var ID=ci;ID.prototype.percentChanged=ID.prototype.percentChanged;_.U([_.gi("#defs"),_.O("design:type",HTMLElement)],ID.prototype,"defs",void 0);_.U([_.gi("#rating"),_.O("design:type",HTMLElement)],ID.prototype,"rating",void 0);_.U([_.Z(),_.O("design:type",Number)],ID.prototype,"percent",void 0);_.U([_.Z({value:6}),_.O("design:type",Number)],ID.prototype,"spacing",void 0);_.U([_.Z({value:_.xM.create("iron-meta",{type:"iconset"})}),_.O("design:type",_.av)],ID.prototype,"meta",void 0);
_.U([_.Hl("percent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ID.prototype,"percentChanged",null);ID=_.U([_.T({disableElementRegistration:!0,is:"ytd-ratings"})],ID);
_.q(ID,"ytd-ratings",function(){if(Q1z!==void 0)return Q1z;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Q1z=W},{mode:1});var pY6=function(){return _.R.apply(this,arguments)||this};
_.D(pY6,_.R);var vB3=pY6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vB3.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vB3.prototype,"data",void 0);vB3=_.U([_.T({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],vB3);
_.q(vB3,"ytd-offer-review-renderer",function(){if(M7L!==void 0)return M7L;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return M7L=W},{mode:1});var e$5=function(){var W=_.R.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.Go("CC")}}];return W};
_.D(e$5,_.R);_.Y=e$5.prototype;_.Y.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.Y.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.z(W.commandMetadata,_.au)&&_.z(W.commandMetadata,_.au).fireAutomatically)_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}});else{var k;W&&((k=_.z(W,_.au))==null?0:k.fireAutomatically)&&_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})}};
_.Y.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.Y.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.Y.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.Y.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.Y.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var S1=e$5;S1.prototype.dataChanged=S1.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],S1.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.O("design:type",Boolean)],S1.prototype,"hidden",void 0);
_.U([_.Z(),_.O("design:type",Object)],S1.prototype,"badges",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S1.prototype,"dataChanged",null);S1=_.U([_.T({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],S1);
_.q(S1,"ytd-movie-offer-module-renderer",function(){if(SS7!==void 0)return SS7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SS7=W},{mode:1});var s1j;var GC3=function(){return _.R.apply(this,arguments)||this};
_.D(GC3,_.R);var yt7=GC3;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],yt7.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yt7.prototype,"data",void 0);yt7=_.U([_.T({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],yt7);
_.q(yt7,"ytd-media-masthead-renderer",function(){if(s1j!==void 0)return s1j;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return s1j=W},{mode:1});var $u7;_.Gj(_.Ezt,"course-metadata-view-model",{props:{data:_.si,isOverlay:_.si}});var Z7N=function(){var W=_.R.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.m("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.D(Z7N,_.R);_.Y=Z7N.prototype;
_.Y.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"}}}}};
_.Y.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.Y.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.Y.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.Y.isExpandButtonToggled=function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.expandMetadataButton,_.Xo))==null?void 0:k.isToggled};
_.Y.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.Y.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var M_=Z7N;M_.prototype.expanderChanged=M_.prototype.expanderChanged;M_.prototype.dataChanged=M_.prototype.dataChanged;M_.prototype.descriptionChanged=M_.prototype.descriptionChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],M_.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],M_.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],M_.prototype,"isMetadataVisible",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],M_.prototype,"modernPanels",void 0);_.U([_.gi("#expander"),_.O("design:type",Object)],M_.prototype,"expander",void 0);
_.U([_.Hl("data.description"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M_.prototype,"descriptionChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M_.prototype,"dataChanged",null);_.U([_.Hl("isMetadataVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M_.prototype,"expanderChanged",null);
M_=_.U([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],M_);
_.q(M_,"ytd-tvfilm-offer-module-renderer",function(){if($u7!==void 0)return $u7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $u7=W},{mode:2});var R$e;var Qs=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.D(Qs,_.R);Qs.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Qs.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Qs.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.f().resolve(_.uI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
Qs.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var pa=Qs;pa.prototype.dataChanged=pa.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pa.prototype,"rendererBehaviors",void 0);_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],pa.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pa.prototype,"data",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pa.prototype,"dataChanged",null);pa=_.U([_.T({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],pa);
_.q(pa,"ytd-unlimited-offer-module-renderer",function(){if(R$e!==void 0)return R$e;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return R$e=W},{mode:1});var oBj;var i7e;var TZG=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.D(TZG,_.R);TZG.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
TZG.prototype.handleRelatedChipCommand=function(W){W=_.z(W,V7_);var k=W.contents;k?_.hA(this.hostElement,"yt-item-section-replace-action",[k,W.targetSectionIdentifier]):_.hA(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
var vi=TZG;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],vi.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vi.prototype,"data",void 0);vi=_.U([_.l0({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],vi);
_.q(vi,"yt-related-chip-cloud-renderer",function(){if(i7e===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;oBj===void 0&&(oBj=document.createElement("template"));var n=oBj;C.call(k,n.content.cloneNode(!0),W.content.firstChild);i7e=W}W=i7e;return W},{mode:2});var e1=function(){var W=_.R.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.m("kevlar_watch_feed_big_thumbs");W.watchNextGridHideChips=_.m("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.m("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.m("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.m("kevlar_watch_grid");W.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.D(e1,_.R);_.Y=e1.prototype;
_.Y.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:!_.m("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}}};
_.Y.getItemsPath=function(){return"data.results"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.Y.created=function(){this.ytLazyListBehavior.initialCount=1};
_.Y.ready=function(){_.Op(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%"})};
_.Y.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,k=null,C=null,n=0;n<W.length;n++)W[n].relatedChipCloudRenderer?k=W[n].relatedChipCloudRenderer:W[n].itemSectionRenderer&&(C=W[n].itemSectionRenderer);if(k&&C)for(this.set("data.continuations",[]),W=_.z(k.content,_.O8C).chips,k=0;k<W.length;k++)if(n=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[k]),n.loadCached||!n.contents){n.contents=C.contents;break}}};
_.Y.dataChanged=function(){var W=this,k;if((k=this.data)!=null&&k.results&&this.hasAllowedInstreamAd(this.playerData)){if(k=this.data.results.filter(function(w){return!!w.promotedSparklesWebRenderer})){for(var C=0;C<k.length;C++){var n=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",k[C]);
if(n)for(var N=0;N<n.length;N++)n[N]&&n[N].baseUrl&&_.Sk(n[N].baseUrl)}this.set("data.results",this.data.results.filter(function(w){return!w.promotedSparklesWebRenderer}))}if(k=this.data.results.filter(function(w){return!!W.getSparklesAd(w)})){k=_.b(k);
for(N=k.next();!N.done;N=k.next())if(n=C=void 0,N=(C=this.getSparklesAd(N.value))==null?void 0:(n=C.errorCommand)==null?void 0:n.loggingUrls)for(C=_.b(N),n=C.next();!n.done;n=C.next())(n=n.value)&&n.baseUrl&&_.Sk(n.baseUrl);var B,A;this.set("data.results",(B=this.data)==null?void 0:(A=B.results)==null?void 0:A.filter(function(w){return!w.adSlotRenderer}))}}};
_.Y.getSparklesAd=function(W){var k,C;W=_.z((k=W.adSlotRenderer)==null?void 0:(C=k.fulfillmentContent)==null?void 0:C.fulfilledLayout,_.XSs);return _.z(W==null?void 0:W.renderingContent,Du7)};
_.Y.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var k=0;k<W.length;k++){var C=this.get("adPlacementRenderer.config.adPlacementConfig",W[k]);if(C&&C.suppressDisplayAd)return!0}return!1};
_.Y.computeHideUnlimitedOfferModule=function(W,k){return W&&W.offerModule&&k&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(k)?!0:!1};
_.Y.hideUnlimitedOfferModuleChanged=function(){var W=_.S(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.Y.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var k;(k=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||k.forEach(function(C){C.containerType=W})}};
_.Y.computeHideTvfilmOfferModule=function(W,k){var C,n;return!!((W==null?0:(C=W.offerModule)==null?0:(n=C.tvfilmOfferModuleRenderer)==null?0:n.clientShouldSuppressIfCompanionAdDisplayed)&&k&&this.hasCompanionAds(k))};
_.Y.hideTvfilmOfferModuleChanged=function(){var W=_.S(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.Y.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var k=0;k<W.length;k++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[k]))return!0;var C=void 0,n=void 0,N=void 0;if(!_.m("web_watch_top_banner_companion_check_killswitch")&&((C=W[k])==null?0:(n=C.adPlacementRenderer)==null?0:(N=n.renderer)==null?0:N.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.Y.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(k){return!k.continuationItemRenderer&&!k.compactPromotedVideoRenderer&&!k.promotedSparklesWebRenderer}).length===0};
_.Y.computeShowButton=function(W,k){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(k)};
_.Y.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.S(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.S(this.hostElement).querySelector("yt-next-continuation");var k=_.S(this.hostElement).querySelector("ytd-continuation-item-renderer"),C=_.S(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);k&&(k.showButton=this.showButton);C&&(C.continuationShowButton=
this.showButton)}};
_.Y.continuationTap=function(W){var k;if(((k=this.data)==null?void 0:k.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,k=0;k<W.length;k++)W[k].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[k].nextContinuationData||{})};
_.Y.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("shown-items-changed",this.shownItems))};
_.oq.Object.defineProperties(e1.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 W;return!((W=this.shownItems)==null||!W.some(function(k){return!!k.lockupViewModel}))}}});
e1.prototype.shownItemsChangedForBinding=e1.prototype.shownItemsChangedForBinding;e1.prototype.showButtonChanged=e1.prototype.showButtonChanged;e1.prototype.hideTvfilmOfferModuleChanged=e1.prototype.hideTvfilmOfferModuleChanged;e1.prototype.updateLockupContainerTypes=e1.prototype.updateLockupContainerTypes;e1.prototype.hideUnlimitedOfferModuleChanged=e1.prototype.hideUnlimitedOfferModuleChanged;e1.prototype.dataChanged=e1.prototype.dataChanged;e1.prototype.resultsChanged=e1.prototype.resultsChanged;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],e1.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.UD.YtNextContinuationBehavior),_.O("design:type",Object)],e1.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.v(_.ui),_.O("design:type",Object)],e1.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],e1.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],e1.prototype,"playerData",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],e1.prototype,"autoFill",void 0);_.U([_.Z({value:60}),_.O("design:type",Number)],e1.prototype,"targetFramerate",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e1.prototype,"isTwoColumns",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e1.prototype,"hideOfferModules",void 0);_.U([_.Z(),_.O("design:type",Object)],e1.prototype,"shownItems",void 0);_.U([_.Z({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.O("design:type",Boolean)],e1.prototype,"hideUnlimitedOfferModule",void 0);
_.U([_.Z({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.O("design:type",Boolean)],e1.prototype,"hideTvfilmOfferModule",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e1.prototype,"watchFeedBigThumbs",void 0);_.U([_.Z(),_.O("design:type",Object)],e1.prototype,"watchNextGridHideChips",void 0);_.U([_.Z(),_.O("design:type",Object)],e1.prototype,"eligibleToSwitchToGrid",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e1.prototype,"disableShortsShelfHeightOverride",void 0);_.U([_.Z({selector:_.Vg}),_.O("design:type",Object)],e1.prototype,"isGridViewEnabled",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],e1.prototype,"showMoreButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],e1.prototype,"isWatchNextGrid",void 0);
_.U([_.Z({computed:"computeShowButton(showMoreButton, data.results)"}),_.O("design:type",Boolean)],e1.prototype,"showButton",void 0);_.U([_.Cq("data.results.*"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"resultsChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"dataChanged",null);
_.U([_.Hl("hideUnlimitedOfferModule"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"hideUnlimitedOfferModuleChanged",null);_.U([_.G("isGridViewEnabled","containsLockupViewModel","data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Number),_.O("design:paramtypes",[])],e1.prototype,"lockupContainerType",null);
_.U([_.Hl("lockupContainerType","data"),_.O("design:type",Function),_.O("design:paramtypes",[Number]),_.O("design:returntype")],e1.prototype,"updateLockupContainerTypes",null);_.U([_.Hl("hideTvfilmOfferModule"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"hideTvfilmOfferModuleChanged",null);_.U([_.Hl("showButton"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"showButtonChanged",null);
_.U([_.Hl("shownItems"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e1.prototype,"shownItemsChangedForBinding",null);_.U([_.G("shownItems"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],e1.prototype,"containsLockupViewModel",null);
_.q(e1,"ytd-watch-next-secondary-results-renderer",function(){if(JtG===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);JtG=W}W=JtG;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.DLi={};
_.DLi.YtdWatchBehavior=[_.K.YtRendererBehavior,_.pk.YtPlayerListenerBehavior,_.ym.YtRendererstamperBehavior,_.$D.YtActionHandlerBehavior,_.Gp.YtPageBehavior,_.jV.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 _.cv("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.m("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 _.cv("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 _.m("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.m("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 _.Oe("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Oe("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!_.m("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.m("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 _.m("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.m("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("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 _.m("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.m("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.m("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("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 _.m("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("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 _.m("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 W={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:_.dV(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.dV(["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"||_.m("swa_prov_panels_ks")?_.m("web_watch_inject_placeholder_panels")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.m("kevlar_use_engagement_panel_management_component")||
(W["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.m("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.m("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.m("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Yk_(function(){return _.$a(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.m("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.PF;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;_.m("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.m("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));_.m("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.LO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.m("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.m("kevlar_watch_while_v2")&&!_.m("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.m("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.Pe(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.m("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var k=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var C;(C=this.watchController)==null||_.ia(C,this.data)}else this.data=W;this.playlist&&_.Vb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.cN("nw");this.loading=!1;_.wI(_.aM,function(){k.initDclkstatus_();var n,N=((n=k.player)==null?void 0:n.getVideoData().cpn)||"";_.uwr(function(B,A){_.NyA(B,A,N)})})},
onPageLoadWithSameData_:function(){_.m("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.m("kevlar_watch_frame0_loading_state")){var k,C,n;W=(k=this.loadingData)==null?void 0:(C=k.endpoint)==null?void 0:(n=C.watchEndpoint)==null?void 0:n.videoId;var N;W&&(N="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.S(this.hostElement).querySelector("#player").style.backgroundImage=N?"url("+N+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.S(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var k,C;(C=(k=this.watchMetadata).updateSentimentBarWidth)==
null||C.call(k);var n,N;(N=(n=this.watchMetadata).resize)==null||N.call(n)}_.m("kevlar_watch_frame0_loading_state")&&(_.S(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var k=_.S(this.hostElement).querySelector(W);k?_.He(k,!1):_.zJ(new _.AM("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var k=_.S(this.hostElement).querySelector(W);k?_.ra(k):_.zJ(new _.AM("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var k=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.aM.addLowPriorityJob(function(){k.onWindowResized_(_.Nw(!0))})},
updateTheaterModeState_:function(W){if(!_.m("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.j1o()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.m("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.S(this.hostElement).querySelector("#player-full-bleed-container"):_.S(this.hostElement).querySelector("#player-container-inner");var k=this.getPlayerContainer(),C=_.m("kevlar_watch_while_v2")||_.m("web_watch_pip");k.parentElement!==W&&(C&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$a(this).appendTo(W,k),W.appendChild(_.S(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.f().resolve(_.eq).deactivate(),2);W.updatePlayerLocation();_.ab(k)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var k=this.getCinematicsLocationContainer();W.parentElement!==k&&k.appendChild(W);var C;(C=this.watchController)==null||_.o6z(C)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.S(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.S(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,k){var C=document.documentElement.hasAttribute("dark"),n=C&&_.m("web_cinematic_theater_mode"),N=C&&_.m("web_cinematic_fullscreen");C=!C&&this.cinematicLightTheme;return W&&n||k&&N||(k||W)&&C},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,k;(k=this.watchController)==null||_.ia(k,this.data);_.m("kevlar_watch_flexy_comments_manager")||this.initComments_();_.m("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.f().resolve(_.J4).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,_.m("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.aM.addLowPriorityJob(function(){_.hA(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.m("web_watch_start_chat_in_theater_mode")){var C,n,N;if((C=this.data)==null?0:(n=C.contents)==null?0:(N=n.twoColumnWatchNextResults)==null?0:N.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var B,A;((B=this.data)==null?0:(A=B.contents)==null?0:A.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var k;(k=this.watchController)==null||_.ow(k,this.playerData);W&&W.playabilityStatus&&(k=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),k&&!W||_.ZR(this,function(){_.cN("pbu")}));
this.setPlayerAds_();_.hA(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,k){if((_.m("kevlar_watch_while_v2")||_.m("web_watch_pip"))&&this.playerData&&k)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.ZF().dispatch(_.g3N(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.Rw(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.ow(this.watchController,this.playerData);this.data&&_.ia(this.watchController,this.data);_.m("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var k=_.$a(this);_.m("kevlar_disable_prepare_player")||k.preparePlayer();
_.m("kevlar_watch_flexy_playlist_manager")||_.f().resolve(_.J4).setPlayer(k);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();k={"--ytd-watch-flexy-scrollbar-width":_.EP()+"px"};this.is==="ytd-watch-grid"&&(k["--ytd-watch-flexy-sidebar-width"]=_.TG+"px",k["--ytd-watch-grid-horizontal-page-margins"]=_.oD+"px",k["--ytd-watch-grid-columns-top-margins"]=_.igL+"px",k["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Oe("kv_pl_mx_sz_ks")&&_.Oe("kevlar_watch_max_player_width")&&
(k["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LR3+"px");_.Oe("kevlar_watch_flexy_metadata_height")&&(k["--ytd-watch-flexy-space-below-player"]=_.jb3+"px");this.safeUpdateStyles(k);_.m("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.vL_(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.m("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.S(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.EP(),k=_.il+W,C=k;this.fixedPanels&&(k+=_.TG);var n=657+W;W=1327+W;_.S(this.hostElement).querySelector("#two-column-query").query="(min-width: "+k+"px)";_.S(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(k+"px) and (max-width: ")+(W+"px)");_.S(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.S(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+C+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.S(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.m("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.lB(NaN,NaN):_.g6N(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.g6N(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.LU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.Nw());_.m("browse_skeleton_removal_on_watch_killswitch")||_.cv("IS_SHELL_LOAD")&&_.LTC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var k=_.$a(this);k.addEventListener("yt-player-updated",_.LO(this,this.onPlayerUpdated_));k.getPlayerPromise().then(function(C){W.playerApiReady_(C)});
_.m("kevlar_watch_flexy_playlist_manager")||(k=_.f().resolve(_.J4),_.m("kevlar_watch_observe_playlist_navigations_killswitch")&&k.addEventListener("yt-navigate",_.LO(this,this.onYtNavigate_)),k.setPlaylistComponent(_.S(this.hostElement).querySelector("#playlist")),k.addEventListener("yt-playlist-data-updated",_.LO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.aM.addLowPriorityJob(function(){_.Pe(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$a(this).removeEventListener("yt-player-updated",_.LO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.m("kevlar_watch_flexy_playlist_manager")){var W=_.f().resolve(_.J4);_.m("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.LO(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.LO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Pe(this.hostElement,"yt-autonav-pause-player",!1);W=_.LY();_.m("kevlar_exit_fullscreen_leaving_watch")&&W&&_.jh(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,k){k.hasComments?k.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):k.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,k){this.player&&(k?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ClA("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.S(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.S(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.m("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.m("kevlar_unified_player")||_.m("kevlar_player_new_bootstrap_adoption"))&&_.Tr()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,k){k=k===void 0?!0:k;_.LY()&&_.m("external_fullscreen")&&_.jh(document.documentElement);this.theaterRequested_=W;k&&_.N7("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.KY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Pe(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(W){_.Dx(W,typeof this.player),this.player&&_.Dx(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.KY(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,k){return this.loading?k:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next())k=k.value,k.youThereRenderer&&_.AA_(this.youThereManager_,k.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var k=this.youThereManager_;_.ie()<W.lowEngagementThresholdMs||_.lH7(k,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.KY(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,k,C){return!!W&&!this.isVideoPlayable_(W,C)&&!k},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,k){if(!W)return!1;var C=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var N;k=k==null?void 0:(N=k.playerOverlayRenderer)==null?void 0:N.gatedActionsOverlayRenderer;return!!C||!!n||!!W||!!k},
hasWatchNextResponseErrorRenderer:function(W){var k=this.getPageContents(W),C,n,N,B,A;return!(W==null?0:(C=W.contents)==null?0:(n=C.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((N=k[0])==null?0:(B=N.itemSectionRenderer)==null?0:(A=B.contents[0])==null?0:A.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,k,C){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",k),N=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];N=_.m("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&N.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);B==void 0&&(B=!0);!C||this.isVideoPlayable_(W,this.getPlayerOverlays_(k))||
n||N||!B||_.f().resolve(_.J4).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.K5N()},
onPlayerFeedbackStartRequest_:function(W){_.KY(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.KY(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,k,C,n,N,B,A,w,x=((W=this.data)==null?NaN:(k=W.contents)==null?NaN:(C=k.twoColumnWatchNextResults)==null?NaN:(n=C.secondaryResults)==null?NaN:(N=n.secondaryResults)==null?NaN:(B=N.offerModule)==null?NaN:(A=B.tvfilmOfferModuleRenderer)==null?NaN:(w=A.actionButtons)==null?NaN:w.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];k=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(C=k.next();!C.done;C=k.next())for(C=C.value,n=_.b(W),N=n.next();!N.done;N=n.next())if(N="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+C+N.value,N=this.get(N+"navigationEndpoint",this.data)||this.get(N+"serviceEndpoint",this.data)||this.get(N+"command",this.data)){_.Pp(N,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.Pe(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Pe(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.ZF().dispatch(_.xg8(W))},
onPlayerSubscribe_:function(W){_.KY(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.KY(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.KY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.m("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.m("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.m("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,k,C,n;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.secondaryResults)==null?void 0:n.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.m("swatcheroo_pbs_load_grid")&&!_.m("swatcheroo_provide_all_data_on_scheduled_job")){_.aM.cancelJob(this.setRichGridJobId_);var W,k,C,n,N,B,A;this.setRichGridRendererData((W=this.data)==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.secondaryResults)==null?void 0:(N=n.secondaryResults)==null?void 0:(B=N.results)==null?void 0:(A=B[0])==null?
void 0:A.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,k=(W=this.data)==null?void 0:W.engagementPanels;if(k==null?0:k.length){W=null;k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;if(((n=C.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){W=C;break}}var N,B,A;W=(N=W)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:(A=B.content)==null?void 0:A.structuredDescriptionContentRenderer;if(W==null?0:W.items){N=
[];B=_.b(W.items);for(A=B.next();!A.done;A=B.next()){A=A.value;if(!_.m("sd_horizontal_list_show_nav_killswitch")){var w=n=C=k=W=void 0,x=void 0,E=(W=A.horizontalCardListRenderer)==null?void 0:(k=W.header)==null?void 0:(C=k.richListHeaderRenderer)==null?void 0:(n=C.navigationButton)==null?void 0:(w=n.buttonRenderer)==null?void 0:(x=w.command)==null?void 0:x.commandExecutorCommand;E&&E.commands&&(E.commands=E.commands.filter(function(a){return!_.z(a,_.nOr)}))}A.expandableVideoDescriptionBodyRenderer||
A.videoDescriptionHeaderRenderer||N.push(A)}return{items:N}}}},
constructWarning_:function(W){return{text:_.Go(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.Pe(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var k=this.getScrollTop()>0;this.gestures_&&(k?this.gestures_.detach():this.gestures_.attach());k!==this.showFullerscreenEdu_&&_.m("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=k,_.$a(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Pe(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.aM.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.wI(_.aM,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.m("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.cN("cmi");_.aM.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.b(W);for(var k=W.next();!k.done;k=W.next())if(k=k.value,this.get("itemSectionRenderer.sectionIdentifier",k)==="comment-item-section"){this.comments=k.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Pe(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.m("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.m("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.cN("cmc")},
doRemoveComments_:function(){this.comments={};_.m("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.aM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.aM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,k){var C=_.z(k.endpoint,_.RA);C&&(!(k=this.get("data.currentVideoEndpoint.watchEndpoint"))||C.videoId!==k.videoId||C.playlistId&&C.playlistId!==k.playlistId||_.m("kevlar_watch_timestamp_seek_playlist_index_comparison")&&C.index!==void 0&&C.index!==k.index||typeof C.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.$a(this).getPlayerPromise().then(function(n){var N=C.startTimeSeconds;n.seekTo(N);n.wakeUpControls();N<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.qde();"t"in W&&(W=_.PDa(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var k,C;(W=_.y4(W==null?void 0:(k=W[0])==null?void 0:(C=k.videoPrimaryInfoRenderer)==null?void 0:C.title))&&_.Pe(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.Pe(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,k,C){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===C&&(C=n.list,_.m("polymer_enable_mdx_queue")&&C&&C.startsWith("RQ")&&(C=void 0),n.video_id!==W||C!=k)){var N;_.m("kevlar_player_watch_endpoint_navigation")?N=_.ZPP(_.UZe(W,k)):N=this.buildWatchEndpoint_(W,k);_.Pe(this.hostElement,"yt-navigate",{endpoint:N,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,k,C){return _.uW(W,k,C)},
initDclkstatus_:function(){_.jq6()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var k=W.querySelector("#primary-info"),C=W.querySelector("#secondary-info"),n=W.querySelector("#related");k&&_.S(this.hostElement).querySelector("#info-skeleton").appendChild(k);C&&_.S(this.hostElement).querySelector("#meta-skeleton").appendChild(C);n&&(_.S(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.xL(W)}},
handlePlayerUpdated_:function(){_.$a(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,k){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof k!=="undefined"){var C=this.watchNextSkeletonEl_.children,n=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,C.length);k||(n=0,W=C.length);for(k=n;k<W;k++)C[k].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.m("external_fullscreen")||_.KY(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var k=_.$a(this);k.getPlayerPromise().then(function(C){C.setFauxFullscreen(!!_.LY())});
this.updateFullBleedElementLocations();W&&(k.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,k){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!k},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,k){return k&&!!W},
computeResponseHasComments:function(W){var k,C,n,N,B;return!!(W==null?0:(k=W.contents)==null?0:(C=k.twoColumnWatchNextResults)==null?0:(n=C.results)==null?0:(N=n.results)==null?0:(B=N.contents)==null?0:B.some(function(A){var w;return(A==null?void 0:(w=A.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,k,C,n){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&n?!1:!!W&&!!Object.keys(W).length&&!k},
identity:_.yP,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var k=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.$a(this).getPlayerPromise().then(function(C){var n=C.getPlayerState();n!==5&&n!==0&&(C=1/C.getVideoAspectRatio(),k.videoHeightToWidthRatio_!==C&&(k.videoHeightToWidthRatio_=C))})},
schedulePlayerSizeUpdate_:function(W){var k=this,C=_.m("kevlar_watch_while_v2")||_.m("web_watch_pip"),n=function(){if(k.watchMetadata){var N,B;(B=(N=k.watchMetadata).resize)==null||B.call(N)}_.$a(k).getPlayerPromise().then(function(A){if(_.m("kevlar_set_internal_player_size")){if(!C||!k.isMiniplayerActive()){var w=k.calculateCurrentPlayerSize_();A.setInternalSize(w.width,w.height)}}else A.setSize(NaN,NaN);_.m("kevlar_watch_while")&&k.updateWatchWhileScrollThreshold_()})};
W?n():_.ty(_.aM,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.z(W,_.Nai).survey)},
onDownloadedVideoDeleted:function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1){if(!k.active||(C=k.playerData)==null||!C.offlineState||k.videoId!==W)return N.return();(n=k.player)==null||n.stopVideo();_.k7().navigatingAwayFromWatchDeletedVideo=!0;_.Pp(_.IO2,k.hostElement);return _.l(N,_.k7().navigationFinishPromise,2)}_.k7().navigatingAwayFromWatchDeletedVideo=!1;_.ab(N)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.Sq(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.S(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var k=this.windowSize_.height>=624,C=this.active?this.getScrollTop():0;!W.active&&k&&C>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!k||C<this.watchWhileScrollThreshold_&&!_.LY())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.S(this.hostElement).querySelector("#secondary-inner");if(W){var k=_.S(this.hostElement).querySelector("#below"),C=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#comments");n&&C&&k&&(this.defaultTwoColumnLayout?(W.appendChild(n),C.appendChild(W)):(k.appendChild(n),_.RD(k,W)))}}},
isTwoColumnsChanged_:function(W,k){if(W!==!0||k!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.S(this.hostElement).querySelector("#secondary-inner"))){k=_.S(this.hostElement).querySelector("#below");var C=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#comments");n&&C&&k&&(this.isTwoColumns_?(W.appendChild(n),C.appendChild(W)):(k.appendChild(n),_.RD(k,W)))}}else{W=!_.m("live_chat_over_engagement_panels");k=_.S(this.hostElement).querySelector("#chat-container");
C=_.S(this.hostElement).querySelector("#panels");var N=_.S(this.hostElement).querySelector("#alerts");n=_.S(this.hostElement).querySelector("#playlist");var B=_.S(this.hostElement).querySelector("#related"),A=_.S(this.hostElement).querySelector("#donation-shelf"),w=_.S(this.hostElement).querySelector("#comments");this.isTwoColumns_?(N=_.S(this.hostElement).querySelector("#secondary-inner"),W&&N.appendChild(C),N.appendChild(n),_.m("web_watch_theater_chat")||N.appendChild(k),W||N.appendChild(C),N.appendChild(A),
N.appendChild(B)):(W&&_.cT(C,N),_.cT(n,N),_.m("web_watch_theater_chat")||_.cT(k,N),W||_.cT(C,N),_.cT(A,N),w&&_.cT(B,w));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.m("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.m("web_watch_theater_chat")){var W=_.S(this.hostElement).querySelector("#chat-container"),k=this.theater&&!this.fullscreen||_.m("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&k?_.m("web_watch_theater_chat_beside_player")?(k=_.S(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==k&&k.append(W),this.panelsBesidePlayer=!0):
_.m("web_watch_theater_fixed_chat")&&(k=_.S(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==k&&k.append(W),this.fixedPanels=!0):(_.m("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.m("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),k=_.S(this.hostElement).querySelector("#playlist"),W&&k?_.IH(W,k):_.zJ(new _.AM("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!k})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,k){return _.m("sw_metadata_vis_toggle_ks")?!0:!!W||!!k},
computeForceDarkPanelTheme:function(W){return _.m("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.Op(this.hostElement,W)}catch(k){_.zJ(k)}},
videoHeightToWidthRatioChanged_:function(W,k){k&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$a(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$a(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.thr(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var k=_.h4(W)||0;_.KE(W,k+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.h4("yt-fullerscreen-edu-button-click-count")||0,k=_.h4("yt-fullerscreen-edu-button-shown-count")||0,C=_.Oe("external_fullscreen_button_shown_threshold"),n=W>=_.Oe("external_fullscreen_button_click_threshold")||k>=C;_.$a(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,k){return k},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.f().resolve(_.J4).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.aM.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.aM.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var k=_.S(W.hostElement).querySelector("#secondary"),C=_.S(W.hostElement).querySelector("#fixed-secondary");k=k.getBoundingClientRect();var n=k.width;W.swatcherooSqueezeback&&
(n+=_.oD);if(W.swatcherooSqueezeback){var N=_.S(W.hostElement).querySelector("#squeezeback-constraining-container");N.style.width=n+"px";N.style.flex="0 0 "+n+"px"}C.style.width=n+"px";C.style.left=k.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.aM.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.aM.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var k;!W.isTwoColumns_||W.theater||W.fullscreen?k=460:k=W.calculateNormalPlayerSize_().height;var C=k+"px";_.m("live_chat_taller_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.m("live_chat_medium_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.m("live_chat_scaled_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":k+"px","--ytd-watch-flexy-chat-max-height":C,"--ytd-watch-flexy-structured-description-max-height":k+"px","--ytd-watch-flexy-comments-panel-max-height":k+"px","--ytd-comments-engagement-panel-content-height":k+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var W=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.m("web_watch_flexy_adjust_sidebar_width"))&&!_.m("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.aM.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.aM.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;if(W.isTwoColumns_){var k=_.rD6(W.windowSize_,W.calculateNormalPlayerSize_().width);k!==W.currentSidebarWidth&&(W.currentSidebarWidth=
k,W.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":k+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.CB(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var k=_.S(this.hostElement).querySelector("#engagement-panel-scrim");W?k.addEventListener("tap",_.LO(this,this.onEngagementPanelScrimClick_)):k.removeEventListener("tap",_.LO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var k=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var C=this.getPageScrollingElement(),n=this.getScrollTop(),N=n+C.clientHeight-56;if(k<n+56)k-=56;else if(W>N)k=W-C.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,k),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.m("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.tU().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,k,C){this.active&&this.trackEngagementPanelVisibility&&!_.GJa.includes(C)&&(k==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(C),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.hA(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),k!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&k!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(C),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,k){return W||k},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,k){return!W&&k},
updatePanelsLocation:function(){if(_.m("web_watch_enable_fs_squeezeback_panels")){var W=_.S(this.hostElement).querySelector("#below"),k=_.S(this.hostElement).querySelector("#panels"),C=_.S(this.hostElement).querySelector("#panels-full-bleed-container"),n=_.S(this.hostElement).querySelector("#secondary-inner");this.fullscreen?C.appendChild(k):this.isTwoColumns_?_.RD(n,k):W.appendChild(k)}},
swatcherooUpdatePanelsLocation:function(W,k,C,n,N,B){if(this.is==="ytd-watch-grid"){k=W&&!k;this.swatcherooSplitScroll&&(k?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));C=_.S(this.hostElement).querySelector("#panels");var A=_.S(this.hostElement).querySelector("#playlist"),w=_.S(this.hostElement).querySelector("#fixed-secondary"),x=_.S(this.hostElement).querySelector("#fixed-below"),
E=_.S(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),a=_.S(this.hostElement).querySelector("#chat-container");B&&(W?w.appendChild(C):x.appendChild(C));N?W?w.appendChild(a):x.appendChild(a):_.IH(a,E);n?W?w.appendChild(A):x.appendChild(A):_.IH(A,E);this.swatcherooSplitScroll&&(W=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#columns"),N=_.S(this.hostElement).querySelector("#fixed-columns-secondary"),k?N.appendChild(W):
n.appendChild(W))}},
computeMetadataSkinnyMode:function(W,k,C){return this.is!=="ytd-watch-grid"?!1:W?C:k},
computeWatchWhilePanelsActive:function(W,k){return W||k},
computeNoBorderOnChat:function(W){return _.m("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,k){return W&&!k},
computePanelExpanded:function(W,k,C){return W||k||C},
computeSqueezeback:function(W,k){if(_.m("web_watch_enable_fs_squeezeback_panels"))return W&&k},
computeSwatcherooSqueezeback:function(W,k,C){return this.is!=="ytd-watch-grid"||_.m("ww_squeezeback_killswitch")?!1:W&&k&&C},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.$a(this).getPlayerPromise().then(function(k){var C;(C=k.changeMarkerVisibility)==null||C.call(k,_.z(W,_.ua).isVisible||!1,_.z(W,_.ua).entityKeys||[],_.z(W,_.ua).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.ZF().dispatch(_.CdG(W.detail))},
onSetPlaylistCollapsed:function(W){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,k){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=k;break;case "PRIMARY_INFO":_.m("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=k);this.videoPrimaryInfoRendererValue=k==null?void 0:k.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.m("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=k);this.videoSecondaryInfoRendererValue=k==null?void 0:k.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
k;break;case "CLARIFICATION":this.clarifyBoxValue=k;break;case "LIVE_CHAT":this.conversationBar=k;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=k;break;case "PLAYLIST":this.externalPlaylistData_=k!=null?k:{};break;case "MERCH_SHELF":this.merchShelfValue=k==null?void 0:k.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=k;break;case "TICKET_SHELF":this.ticket=k;break;case "OFFER_MODULE":this.offerModule=k;break;case "LIMITED_STATE":this.limitedStateValue=
k;break;case "DONATION_SHELF":this.donation=k;break;case "ALERTS":this.alertsValue=k;break;case "COMMENTS":this.comments=k;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=k;break;case "ENGAGEMENT_PANELS":this.engagementPanels=k;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=k;break;case "RICH_GRID_RENDERER":this.richGridRendererData=k;break;case "EXPANDABLE_METADATA":this.expandableMetadata=k;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
k}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.f().resolve(_.eq).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var A7E;_.bi7=function(W){return W.shorts.isShortsActive};
_.F87=function(W){return W.findIndex(function(k){return A7E.indexOf(k.tagName)>-1})>-1};
_.wj$=function(W){return _.jo({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
_.xN7=function(){var W=_.f().resolve(_.OV);_.vfI(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.jh(document.documentElement):_.B4p(document.documentElement))};
A7E=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.TO=new Map;_.TO.set(32,59972);_.TO.set(27,50765);_.TO.set(70,60102);_.TO.set(76,60221);_.TO.set(77,60222);_.TO.set(74,60223);_.TO.set(84,60224);_.TO.set(38,61941);_.TO.set(40,61942);_.TO.set(73,62521);_.TO.set(67,62522);_.TO.set(80,63390);_.TO.set(78,63397);_.TO.set(75,59972);_.TO.set(188,63385);_.TO.set(190,63384);_.TO.set(36,63387);
_.TO.set(35,63386);_.TO.set(37,63388);_.TO.set(39,63389);_.TO.set(79,63423);_.TO.set(87,63424);_.TO.set(107,63426);_.TO.set(109,63425);_.TO.set(65,63428);_.TO.set(83,63430);_.TO.set(68,63429);_.TO.set(221,63431);_.TO.set(219,63432);_.TO.set(97,63439);_.TO.set(98,63440);_.TO.set(99,63441);_.TO.set(100,63442);_.TO.set(101,63443);_.TO.set(102,63444);_.TO.set(103,63445);_.TO.set(104,63446);_.TO.set(105,63447);_.qd=new Map;_.qd.set(80,63390);_.qd.set(78,63397);_.qd.set(188,63400);_.qd.set(190,63401);
_.qd.set(191,60765);_.qd.set(13,247917);_.um=new Map;_.UT=new Map;
}catch(e){_._DumpException(e)}
try{
var cDS,M9C,Qq$,pm6;_.zIu=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.DZ1=function(W){return W.ui.tabGesturesIsActive};
_.V9t=function(){var W=_.LS("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(k){return Promise.reject(k)}};
_.JD7=function(W){return!(!W||!W.pushManager)};
cDS=function(){return _.V9t().then(_.JD7).catch(function(){return!1})};
_.IRA=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?cDS():Promise.resolve(!1)};
_.SdZ=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
M9C=function(){var W,k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,_.wF.getInstance(),2);case 2:W=n.yieldResult;if(!W){k=void 0;n.jumpTo(3);break}return _.l(n,W.get("lmqf"),4);case 4:k=n.yieldResult;case 3:switch((C=k)||(C="SD"),C){case "HD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Qq$=function(W){var k,C,n;return _.F(function(N){if(N.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var B=window.localStorage["yt-player-av1-pref"];B=B==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":B==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else B="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(k=W===B)return N.jumpTo(2);n=C=W;return _.l(N,M9C(),3)}N.nextAddress!=2&&(k=n===N.yieldResult);return N.return(k)})};var v6i;var eI7=_.tl.IronButtonState,sq7=(0,_.w4)(HTMLElement);
_.Av({_template:function(){if(v6i!==void 0)return v6i;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;pm6===void 0&&(pm6=document.createElement("template"));var n=pm6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return v6i=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[eI7,_.xq,_.E7,_.fT],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(W){var k=(0,_.bD)(this);k.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});
k.shadowRoot.appendChild(W);return sq7.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.Ek(this.$.content).getDistributedNodes(),k=0,C=W.length;k<C;k++)if(W[k].nodeType===Node.ELEMENT_NODE)return W[k]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var k="";W?k=W.label||W.getAttribute("label")||W.textContent.trim():k="";this.value=k;this._setSelectedItemLabel(k)},
_computeMenuVerticalOffset:function(W,k){return k?k:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",k=this.contentElement;k&&k.setAttribute("aria-expanded",W)}});_.IG=new _.r("navigateAction");var GX7=new _.r("formRenderer");var yD7=function(){var W=_.Wp.apply(this,arguments)||this;W.showInput=!1;return W};
_.D(yD7,_.Wp);_.Y=yD7.prototype;_.Y.detached=function(){this.showInput&&window.removeEventListener("click",_.LO(this,this.closeOnOutsideClick_))};
_.Y.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.Y.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.LO(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.Y.closeOnOutsideClickCondition=function(){return!0};
_.Y.closeOnOutsideClickHandler=function(){};
_.Y.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.LO(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.Y.openOnClickHandler=function(){};
_.Y.showInputChanged=function(){};
_.Y.setShowInput=function(W){this.showInput=W};
var Su=yD7;Su.prototype.setShowInput=Su.prototype.setShowInput;Su.prototype.showInputChanged=Su.prototype.showInputChanged;Su.prototype.openOnClickHandler=Su.prototype.openOnClickHandler;Su.prototype.openOnClick_=Su.prototype.openOnClick_;Su.prototype.closeOnOutsideClickHandler=Su.prototype.closeOnOutsideClickHandler;Su.prototype.closeOnOutsideClickCondition=Su.prototype.closeOnOutsideClickCondition;Su.prototype.closeOnOutsideClick_=Su.prototype.closeOnOutsideClick_;
Su.prototype.stopPropagation_=Su.prototype.stopPropagation_;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Su.prototype,"showInput",void 0);_.U([_.jI("click"),_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],Su.prototype,"stopPropagation_",null);_.U([_.Hl("showInput"),_.O("design:type",Function),_.O("design:paramtypes",[Boolean]),_.O("design:returntype")],Su.prototype,"showInputChanged",null);Su=_.U([_.kr()],Su);_.$Z$=[Su.prototype];var ZtY;var RI$;var o6S=function(){return _.R.apply(this,arguments)||this};
_.D(o6S,_.R);_.Y=o6S.prototype;_.Y.computePreselectedOption=function(W,k){return k===this.itemSelected_?W:void 0};
_.Y.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var k;(k=this.data)!=null&&k.key&&_.ZR(this,function(){var C,n=Number((C=W.data)==null?void 0:C.key);!Number.isNaN(n)&&(W.itemSelected_=n,C=(C=(W.data.items||[])[n])&&C.optionSelectableItemRenderer&&C.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=C)})};
_.Y.isSubReasonHidden_=function(W,k){return W!=k};
_.Y.onTopItemSelected_=function(W,k){for(var C=_.S(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),n=0,N=C.length;n<N;n++)C[n].select(0);_.KY(this.hostElement,"yt-report-form-update",[k.item.value]);W.stopPropagation()};
_.Y.onItemSelected_=function(W,k){_.KY(this.hostElement,"yt-report-form-update",[k.item.value]);W.stopPropagation()};
_.Y.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.Y.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.Y.validate=function(){return this.itemSelected_!==-1};
_.Y.computeAriaLabel_=function(W){var k=_.y4(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(k+=". "+W);return k};
_.Y.computeItemSelected_=function(W){return W};
_.Y.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.Y.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.Y.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.Y.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.kQ(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
var MQ=o6S;MQ.prototype.onPaperRippleTransitionEnd_=MQ.prototype.onPaperRippleTransitionEnd_;MQ.prototype.dataChanged_=MQ.prototype.dataChanged_;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],MQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MQ.prototype,"data",void 0);_.U([_.Z({value:-1}),_.O("design:type",Number)],MQ.prototype,"itemSelected_",void 0);
_.U([_.Z({computed:"computeItemSelected_(itemSelected_)"}),_.O("design:type",Number)],MQ.prototype,"value",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],MQ.prototype,"restoreFocusOnClose",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],MQ.prototype,"tooltipTapped",void 0);_.U([_.Z({value:-1}),_.O("design:type",Number)],MQ.prototype,"preselectedSubreason",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MQ.prototype,"dataChanged_",null);_.U([_.jI("transitionend"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],MQ.prototype,"onPaperRippleTransitionEnd_",null);MQ=_.U([_.l0({is:"yt-options-renderer",disableElementRegistration:!0})],MQ);
_.q(MQ,"yt-options-renderer",function(){if(RI$===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;ZtY===void 0&&(ZtY=document.createElement("template"));var n=ZtY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);RI$=W}W=RI$;return W},{mode:2});var itE;var T07;var qd1;var uw$;var UZ1;var Otu;var Qf=function(){return _.R.apply(this,arguments)||this};
_.D(Qf,_.R);Qf.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Qf.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Qf.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.WN(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.S(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.KY(this.hostElement,"yt-share-panel-select-contact-action",[W])};
var pm=Qf;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.U([_.Z({observer:"onDataChanged"}),_.O("design:type",Object)],pm.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.O("design:type",String)],pm.prototype,"componentTitle",void 0);_.U([_.gi("#thumbnail"),_.O("design:type",Object)],pm.prototype,"thumbnail",void 0);
pm=_.U([_.l0({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],pm);
_.q(pm,"yt-enrolled-contact-renderer",function(){if(Otu===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;UZ1===void 0&&(UZ1=document.createElement("template"));var n=UZ1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Otu=W}W=Otu;return W},{mode:2});var L5i;var jqY;var v7=function(){return _.R.apply(this,arguments)||this};
_.D(v7,_.R);v7.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
v7.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
v7.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.WN(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.S(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.KY(this.hostElement,"yt-share-panel-select-contact-action",[W])};
var eu=v7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.U([_.Z({observer:"onDataChanged"}),_.O("design:type",Object)],eu.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.O("design:type",String)],eu.prototype,"componentTitle",void 0);_.U([_.gi("#thumbnail"),_.O("design:type",Object)],eu.prototype,"thumbnail",void 0);
eu=_.U([_.l0({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],eu);
_.q(eu,"yt-suggested-contact-renderer",function(){if(jqY===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;L5i===void 0&&(L5i=document.createElement("template"));var n=L5i;C.call(k,n.content.cloneNode(!0),W.content.firstChild);jqY=W}W=jqY;return W},{mode:2});var sP=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.D(sP,_.R);sP.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"}}}}}};
sP.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.KY(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
sP.prototype.onReset=function(){for(var W=_.S(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),k=W.length-1;k>=0;k--)W[k].classList.toggle("selected")};
var G5=sP;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],G5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({observer:"onDataChanged"}),_.O("design:type",Object)],G5.prototype,"data",void 0);
G5=_.U([_.l0({is:"yt-contact-section-renderer",disableElementRegistration:!0})],G5);
_.q(G5,"yt-contact-section-renderer",function(){if(uw$===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qd1===void 0&&(qd1=document.createElement("template"));var n=qd1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uw$=W}W=uw$;return W},{mode:2});var Ht7=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.D(Ht7,_.R);_.Y=Ht7.prototype;_.Y.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"}}}};
_.Y.onYtRefreshFormCommand=function(W){var k;(W=_.z((k=_.z(W,_.X1S))==null?void 0:k.formRenderer,GX7))&&this.set("data",W)};
_.Y.reset=function(){var W=_.S(this.hostElement).querySelector("#fields").children;W=_.b(W);for(var k=W.next();!k.done;k=W.next())k=k.value,k.reset&&k.reset()};
_.Y.getForm=function(){var W={},k=_.S(this.hostElement).querySelector("#fields").children;k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;if(!C.validate())return null;W[C.data.key]=C.value}return W};
_.Y.submitFormFields=function(){if(this.fields)for(var W=_.b(this.fields),k=W.next();!k.done;k=W.next())k=k.value,k.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?k.save():k.nodeName==="YT-OPTIONS-RENDERER"&&k.save()};
var yf=Ht7;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],yf.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],yf.prototype,"data",void 0);_.U([_.hh("#fields > *"),_.O("design:type",Array)],yf.prototype,"fields",void 0);
yf=_.U([_.l0({is:"yt-form-renderer",disableElementRegistration:!0})],yf);
_.q(yf,"yt-form-renderer",function(){if(T07===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;itE===void 0&&(itE=document.createElement("template"));var n=itE;C.call(k,n.content.cloneNode(!0),W.content.firstChild);T07=W}W=T07;return W},{mode:2});var rDY;var g67=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.D(g67,_.R);g67.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.eI(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})};
g67.prototype.handleUpdateCheckboxCommand=function(W){(W=_.z(W,_.p1S))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
var $_=g67;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],$_.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$_.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],$_.prototype,"checked",void 0);$_=_.U([_.T({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],$_);
_.q($_,"ytd-settings-checkbox-renderer",function(){if(rDY!==void 0)return rDY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return rDY=W},{mode:1});var PDu;var Z$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.D(Z$,_.R);Z$.prototype.dataChanged=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.SdZ()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(k=W.data&&W.data.id)?_.l(C,Qq$(W.data.id),4):C.jumpTo(3):(W.set("data.hidden",!0),C.jumpTo(0));C.nextAddress!=3&&(k=C.yieldResult);k&&_.KY(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.ab(C)})};
Z$.prototype.onButtonChanged=function(W){_.eI(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.KY(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Z$.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var RG=Z$;RG.prototype.dataChanged=RG.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],RG.prototype,"ytActionHandlerBehavior",void 0);_.U([_.gi("#radio"),_.O("design:type",Object)],RG.prototype,"radio",void 0);_.U([_.Z(),_.O("design:type",Object)],RG.prototype,"data",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],RG.prototype,"dataChanged",null);RG=_.U([_.T({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],RG);
_.q(RG,"ytd-settings-radio-option-renderer",function(){if(PDu!==void 0)return PDu;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return PDu=W},{mode:1});var K57;var oG=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.D(oG,_.R);
oG.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"}}}};
oG.prototype.handleUpdateTextCommand=function(W){(W=_.z(W,_.vXY))&&this.data&&this.data.id===W.id&&this.set("data",W)};
oG.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.z(W,_.GcI)&&this.data){var k,C;if(W=(k=_.z(W,_.GcI))==null?void 0:(C=k.newConnectedAppRenderer)==null?void 0:C.connectedAppRenderer)this.data=W}};
oG.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
var i3=oG;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],i3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],i3.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.O("design:type",String)],i3.prototype,"connectedAppStyle",void 0);i3=_.U([_.T({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],i3);
_.q(i3,"ytd-connected-app-renderer",function(){if(K57!==void 0)return K57;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return K57=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Jd("iuT5Oc");

_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("L3n37");
var eBL=_.F8(115994),sAl=_.F8(115993),G7N=function(W,k,C){var n=this;var N=C.dragDownAction;this.layer=0;this.JSC$20304_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$20304_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var B=_.kf();_.rc(B,eBL,this.layer);_.rc(B,sAl,this.layer);this.dragDownAction=function(){N();_.JW(B,{visualElement:n.fullscreen?eBL:sAl})};
this.gesture=new _.Dv(W,k,this.JSC$20304_watchConfig,"pandown");this.attach()};
G7N.prototype.attach=function(){this.gesture.attach()};
G7N.prototype.detach=function(){this.gesture.detach()};
G7N.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$20304_watchFullScreenConfig:this.JSC$20304_watchConfig};var yAl={},$Le=["learning-journey-engagement-panel","PAyouchat"];
yAl.YtdLearningJourneyWatchBehavior=[_.K.YtRendererBehavior,_.pk.YtPlayerListenerBehavior,_.ym.YtRendererstamperBehavior,_.$D.YtActionHandlerBehavior,_.Gp.YtPageBehavior,_.jV.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 _.cv("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.m("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 _.cv("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 _.m("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.m("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 _.Oe("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Oe("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!_.m("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.m("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 _.m("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.m("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("web_watch_rounded_player_large")||_.m("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 _.m("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.m("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.m("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("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 _.m("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.m("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 _.m("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 W={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:_.dV(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.dV(["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"||_.m("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(W.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},W.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.m("web_watch_inject_placeholder_panels")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.m("kevlar_use_engagement_panel_management_component")||(W["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.m("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.m("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.m("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Yk_(function(){return _.$a(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.m("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.m("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.PF;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;_.m("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.m("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));_.m("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.LO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.m("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.m("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.m("kevlar_watch_while_v2")&&!_.m("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.m("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.Pe(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.m("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var k=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var C;(C=this.watchController)==null||_.ia(C,this.data)}else this.data=W;this.playlist&&_.Vb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.cN("nw");this.loading=!1;_.wI(_.aM,function(){k.initDclkstatus_();var n,N=((n=k.player)==null?void 0:n.getVideoData().cpn)||"";_.uwr(function(B,A){_.NyA(B,A,N)})})},
onPageLoadWithSameData_:function(){_.m("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.m("kevlar_watch_frame0_loading_state")){var k,C,n;W=(k=this.loadingData)==null?void 0:(C=k.endpoint)==null?void 0:(n=C.watchEndpoint)==null?void 0:n.videoId;var N;W&&(N="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.S(this.hostElement).querySelector("#player").style.backgroundImage=N?"url("+N+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.S(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var k,C;(C=(k=this.watchMetadata).updateSentimentBarWidth)==
null||C.call(k);var n,N;(N=(n=this.watchMetadata).resize)==null||N.call(n)}_.m("kevlar_watch_frame0_loading_state")&&(_.S(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var k=_.S(this.hostElement).querySelector(W);k?_.He(k,!1):_.zJ(new _.AM("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var k=_.S(this.hostElement).querySelector(W);k?_.ra(k):_.zJ(new _.AM("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var k=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.aM.addLowPriorityJob(function(){k.onWindowResized_(_.Nw(!0))})},
updateTheaterModeState_:function(W){if(!_.m("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.j1o()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.m("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.S(this.hostElement).querySelector("#player-full-bleed-container"):_.S(this.hostElement).querySelector("#player-container-inner");var k=this.getPlayerContainer(),C=_.m("kevlar_watch_while_v2")||_.m("web_watch_pip");k.parentElement!==W&&(C&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$a(this).appendTo(W,k),W.appendChild(_.S(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.f().resolve(_.eq).deactivate(),2);W.updatePlayerLocation();_.ab(k)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var k=this.getCinematicsLocationContainer();W.parentElement!==k&&k.appendChild(W);var C;(C=this.watchController)==null||_.o6z(C)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.S(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.S(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,k){var C=document.documentElement.hasAttribute("dark"),n=C&&_.m("web_cinematic_theater_mode"),N=C&&_.m("web_cinematic_fullscreen");C=!C&&this.cinematicLightTheme;return W&&n||k&&N||(k||W)&&C},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,k;(k=this.watchController)==null||_.ia(k,this.data);_.m("kevlar_watch_flexy_comments_manager")||this.initComments_();_.m("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.f().resolve(_.J4).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,_.m("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.aM.addLowPriorityJob(function(){_.hA(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.m("web_watch_start_chat_in_theater_mode")){var C,n,N;if((C=this.data)==null?0:(n=C.contents)==null?0:(N=n.twoColumnWatchNextResults)==null?0:N.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var B,A;((B=this.data)==null?0:(A=B.contents)==null?0:A.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var k;(k=this.watchController)==null||_.ow(k,this.playerData);W&&W.playabilityStatus&&(k=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),k&&!W||_.ZR(this,function(){_.cN("pbu")}));
this.setPlayerAds_();_.hA(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.ZF().dispatch(_.g3N(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.Rw(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.ow(this.watchController,this.playerData);this.data&&_.ia(this.watchController,this.data);_.m("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var k=_.$a(this);_.m("kevlar_disable_prepare_player")||k.preparePlayer();
_.m("kevlar_watch_flexy_playlist_manager")||_.f().resolve(_.J4).setPlayer(k);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();k={"--ytd-watch-flexy-scrollbar-width":_.EP()+"px"};this.is==="ytd-watch-grid"&&(k["--ytd-watch-flexy-sidebar-width"]=_.TG+"px",k["--ytd-watch-grid-horizontal-page-margins"]=_.oD+"px",k["--ytd-watch-grid-columns-top-margins"]=_.igL+"px",k["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Oe("kv_pl_mx_sz_ks")&&_.Oe("kevlar_watch_max_player_width")&&
(k["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LR3+"px");_.Oe("kevlar_watch_flexy_metadata_height")&&(k["--ytd-watch-flexy-space-below-player"]=_.jb3+"px");this.safeUpdateStyles(k);_.m("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new G7N(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.m("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.S(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.EP(),k=_.il+W,C=k;this.fixedPanels&&(k+=_.TG);var n=657+W;W=1327+W;_.S(this.hostElement).querySelector("#two-column-query").query="(min-width: "+k+"px)";_.S(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(k+"px) and (max-width: ")+(W+"px)");_.S(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.S(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+C+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.S(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.m("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.lB(NaN,NaN):_.g6N(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.g6N(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.LU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.Nw());_.m("browse_skeleton_removal_on_watch_killswitch")||_.cv("IS_SHELL_LOAD")&&_.LTC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var k=_.$a(this);k.addEventListener("yt-player-updated",_.LO(this,this.onPlayerUpdated_));k.getPlayerPromise().then(function(C){W.playerApiReady_(C)});
_.m("kevlar_watch_flexy_playlist_manager")||(k=_.f().resolve(_.J4),_.m("kevlar_watch_observe_playlist_navigations_killswitch")&&k.addEventListener("yt-navigate",_.LO(this,this.onYtNavigate_)),k.setPlaylistComponent(_.S(this.hostElement).querySelector("#playlist")),k.addEventListener("yt-playlist-data-updated",_.LO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.aM.addLowPriorityJob(function(){_.Pe(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$a(this).removeEventListener("yt-player-updated",_.LO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.m("kevlar_watch_flexy_playlist_manager")){var W=_.f().resolve(_.J4);_.m("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.LO(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.LO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Pe(this.hostElement,"yt-autonav-pause-player",!1);W=_.LY();_.m("kevlar_exit_fullscreen_leaving_watch")&&W&&_.jh(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,k){k.hasComments?k.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):k.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,k){this.player&&(k?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ClA("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.S(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.S(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.m("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.m("kevlar_unified_player")||_.m("kevlar_player_new_bootstrap_adoption"))&&_.Tr()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,k){k=k===void 0?!0:k;_.LY()&&_.m("external_fullscreen")&&_.jh(document.documentElement);this.theaterRequested_=W;k&&_.N7("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.m("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.KY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Pe(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(W){_.Dx(W,typeof this.player),this.player&&_.Dx(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.KY(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,k){return this.loading?k:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.b(W);for(var k=W.next();!k.done;k=W.next())k=k.value,k.youThereRenderer&&_.AA_(this.youThereManager_,k.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var k=this.youThereManager_;_.ie()<W.lowEngagementThresholdMs||_.lH7(k,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.KY(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,k,C){return!!W&&!this.isVideoPlayable_(W,C)&&!k},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,k){if(!W)return!1;var C=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var N;k=k==null?void 0:(N=k.playerOverlayRenderer)==null?void 0:N.gatedActionsOverlayRenderer;return!!C||!!n||!!W||!!k},
hasWatchNextResponseErrorRenderer:function(W){var k=this.getPageContents(W),C,n,N,B,A;return!(W==null?0:(C=W.contents)==null?0:(n=C.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((N=k[0])==null?0:(B=N.itemSectionRenderer)==null?0:(A=B.contents[0])==null?0:A.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,k,C){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",k),N=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];N=_.m("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&N.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);B==void 0&&(B=!0);!C||this.isVideoPlayable_(W,this.getPlayerOverlays_(k))||
n||N||!B||_.f().resolve(_.J4).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.K5N()},
onPlayerFeedbackStartRequest_:function(W){_.KY(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.KY(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,k,C,n,N,B,A,w,x=((W=this.data)==null?NaN:(k=W.contents)==null?NaN:(C=k.twoColumnWatchNextResults)==null?NaN:(n=C.secondaryResults)==null?NaN:(N=n.secondaryResults)==null?NaN:(B=N.offerModule)==null?NaN:(A=B.tvfilmOfferModuleRenderer)==null?NaN:(w=A.actionButtons)==null?NaN:w.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];k=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(C=k.next();!C.done;C=k.next())for(C=C.value,n=_.b(W),N=n.next();!N.done;N=n.next())if(N="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+C+N.value,N=this.get(N+"navigationEndpoint",this.data)||this.get(N+"serviceEndpoint",this.data)||this.get(N+"command",this.data)){_.Pp(N,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.Pe(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Pe(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.ZF().dispatch(_.xg8(W))},
onPlayerSubscribe_:function(W){_.KY(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.KY(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.KY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.m("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.m("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,k,C,n;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.secondaryResults)==null?void 0:n.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.m("swatcheroo_pbs_load_grid")&&!_.m("swatcheroo_provide_all_data_on_scheduled_job")){_.aM.cancelJob(this.setRichGridJobId_);var W,k,C,n,N,B,A;this.setRichGridRendererData((W=this.data)==null?void 0:(k=W.contents)==null?void 0:(C=k.twoColumnWatchNextResults)==null?void 0:(n=C.secondaryResults)==null?void 0:(N=n.secondaryResults)==null?void 0:(B=N.results)==null?void 0:(A=B[0])==null?
void 0:A.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,k=(W=this.data)==null?void 0:W.engagementPanels;if(k==null?0:k.length){W=null;k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;if(((n=C.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){W=C;break}}var N,B,A;W=(N=W)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:(A=B.content)==null?void 0:A.structuredDescriptionContentRenderer;if(W==null?0:W.items){N=
[];B=_.b(W.items);for(A=B.next();!A.done;A=B.next()){A=A.value;if(!_.m("sd_horizontal_list_show_nav_killswitch")){var w=n=C=k=W=void 0,x=void 0,E=(W=A.horizontalCardListRenderer)==null?void 0:(k=W.header)==null?void 0:(C=k.richListHeaderRenderer)==null?void 0:(n=C.navigationButton)==null?void 0:(w=n.buttonRenderer)==null?void 0:(x=w.command)==null?void 0:x.commandExecutorCommand;E&&E.commands&&(E.commands=E.commands.filter(function(a){return!_.z(a,_.nOr)}))}A.expandableVideoDescriptionBodyRenderer||
A.videoDescriptionHeaderRenderer||N.push(A)}return{items:N}}}},
constructWarning_:function(W){return{text:_.Go(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.Pe(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var k=this.getScrollTop()>0;this.gestures_&&(k?this.gestures_.detach():this.gestures_.attach());k!==this.showFullerscreenEdu_&&_.m("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=k,_.$a(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Pe(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.aM.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.wI(_.aM,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.m("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.cN("cmi");_.aM.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.b(W);for(var k=W.next();!k.done;k=W.next())if(k=k.value,this.get("itemSectionRenderer.sectionIdentifier",k)==="comment-item-section"){this.comments=k.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Pe(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.m("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.m("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.cN("cmc")},
doRemoveComments_:function(){this.comments={};_.m("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.aM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.aM.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,k){var C=_.z(k.endpoint,_.RA);C&&(!(k=this.get("data.currentVideoEndpoint.watchEndpoint"))||C.videoId!==k.videoId||C.playlistId&&C.playlistId!==k.playlistId||_.m("kevlar_watch_timestamp_seek_playlist_index_comparison")&&C.index!==void 0&&C.index!==k.index||typeof C.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.$a(this).getPlayerPromise().then(function(n){var N=C.startTimeSeconds;n.seekTo(N);n.wakeUpControls();N<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.qde();"t"in W&&(W=_.PDa(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var k,C;(W=_.y4(W==null?void 0:(k=W[0])==null?void 0:(C=k.videoPrimaryInfoRenderer)==null?void 0:C.title))&&_.Pe(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.Pe(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,k,C){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===C&&(C=n.list,_.m("polymer_enable_mdx_queue")&&C&&C.startsWith("RQ")&&(C=void 0),n.video_id!==W||C!=k)){var N;_.m("kevlar_player_watch_endpoint_navigation")?N=_.ZPP(_.UZe(W,k)):N=this.buildWatchEndpoint_(W,k);_.Pe(this.hostElement,"yt-navigate",{endpoint:N,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,k,C){return _.uW(W,k,C)},
initDclkstatus_:function(){_.jq6()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var k=W.querySelector("#primary-info"),C=W.querySelector("#secondary-info"),n=W.querySelector("#related");k&&_.S(this.hostElement).querySelector("#info-skeleton").appendChild(k);C&&_.S(this.hostElement).querySelector("#meta-skeleton").appendChild(C);n&&(_.S(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.xL(W)}},
handlePlayerUpdated_:function(){_.$a(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,k){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof k!=="undefined"){var C=this.watchNextSkeletonEl_.children,n=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,C.length);k||(n=0,W=C.length);for(k=n;k<W;k++)C[k].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.m("external_fullscreen")||_.KY(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var k=_.$a(this);k.getPlayerPromise().then(function(C){C.setFauxFullscreen(!!_.LY())});
this.updateFullBleedElementLocations();W&&(k.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,k){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!k},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,k){return k&&!!W},
computeResponseHasComments:function(W){var k,C,n,N,B;return!!(W==null?0:(k=W.contents)==null?0:(C=k.twoColumnWatchNextResults)==null?0:(n=C.results)==null?0:(N=n.results)==null?0:(B=N.contents)==null?0:B.some(function(A){var w;return(A==null?void 0:(w=A.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,k,C,n){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&n?!1:!!W&&!!Object.keys(W).length&&!k},
identity:_.yP,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.m("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.m("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var k=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.$a(this).getPlayerPromise().then(function(C){var n=C.getPlayerState();n!==5&&n!==0&&(C=1/C.getVideoAspectRatio(),k.videoHeightToWidthRatio_!==C&&(k.videoHeightToWidthRatio_=C))})},
schedulePlayerSizeUpdate_:function(W){var k=this,C=_.m("kevlar_watch_while_v2")||_.m("web_watch_pip"),n=function(){if(k.watchMetadata){var N,B;(B=(N=k.watchMetadata).resize)==null||B.call(N)}_.$a(k).getPlayerPromise().then(function(A){if(_.m("kevlar_set_internal_player_size")){if(!C||!k.isMiniplayerActive()){var w=k.calculateCurrentPlayerSize_();A.setInternalSize(w.width,w.height)}}else A.setSize(NaN,NaN);_.m("kevlar_watch_while")&&k.updateWatchWhileScrollThreshold_()})};
W?n():_.ty(_.aM,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.z(W,_.Nai).survey)},
onDownloadedVideoDeleted:function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1){if(!k.active||(C=k.playerData)==null||!C.offlineState||k.videoId!==W)return N.return();(n=k.player)==null||n.stopVideo();_.k7().navigatingAwayFromWatchDeletedVideo=!0;_.Pp(_.IO2,k.hostElement);return _.l(N,_.k7().navigationFinishPromise,2)}_.k7().navigatingAwayFromWatchDeletedVideo=!1;_.ab(N)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.Sq(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.S(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var k=this.windowSize_.height>=624,C=this.active?this.getScrollTop():0;!W.active&&k&&C>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!k||C<this.watchWhileScrollThreshold_&&!_.LY())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.S(this.hostElement).querySelector("#secondary-inner");if(W){var k=_.S(this.hostElement).querySelector("#below"),C=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#comments");n&&C&&k&&(this.defaultTwoColumnLayout?(W.appendChild(n),C.appendChild(W)):(k.appendChild(n),_.RD(k,W)))}}},
isTwoColumnsChanged_:function(W,k){if(W!==!0||k!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.S(this.hostElement).querySelector("#secondary-inner"))){k=_.S(this.hostElement).querySelector("#below");var C=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#comments");n&&C&&k&&(this.isTwoColumns_?(W.appendChild(n),C.appendChild(W)):(k.appendChild(n),_.RD(k,W)))}}else{W=!_.m("live_chat_over_engagement_panels");k=_.S(this.hostElement).querySelector("#chat-container");
C=_.S(this.hostElement).querySelector("#plj-sidebar");n=_.S(this.hostElement).querySelector("#panels");var N=_.S(this.hostElement).querySelector("#plj-panels"),B=_.S(this.hostElement).querySelector("#plj-playlist"),A=_.S(this.hostElement).querySelector("#alerts"),w=_.S(this.hostElement).querySelector("#playlist"),x=_.S(this.hostElement).querySelector("#related"),E=_.S(this.hostElement).querySelector("#donation-shelf"),a=_.S(this.hostElement).querySelector("#comments");this.isTwoColumns_?(A=_.S(this.hostElement).querySelector("#secondary-inner"),
A.appendChild(C),C.appendChild(B),B.appendChild(w),C.appendChild(N),W&&A.appendChild(n),_.m("web_watch_theater_chat")||A.appendChild(k),W||A.appendChild(n),A.appendChild(E),A.appendChild(x)):(W&&_.cT(n,A),_.cT(w,A),_.m("web_watch_theater_chat")||_.cT(k,A),W||_.cT(n,A),_.cT(E,A),a&&_.cT(x,a));_.m("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.m("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.m("web_watch_theater_chat")){var W=_.S(this.hostElement).querySelector("#chat-container"),k=this.theater&&!this.fullscreen||_.m("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&k?_.m("web_watch_theater_chat_beside_player")?(k=_.S(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==k&&k.append(W),this.panelsBesidePlayer=!0):
_.m("web_watch_theater_fixed_chat")&&(k=_.S(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==k&&k.append(W),this.fixedPanels=!0):(_.m("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.m("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),k=_.S(this.hostElement).querySelector("#playlist"),W&&k?_.IH(W,k):_.zJ(new _.AM("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!k})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,k){return _.m("sw_metadata_vis_toggle_ks")?!0:!!W||!!k},
computeForceDarkPanelTheme:function(W){return _.m("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.Op(this.hostElement,W)}catch(k){_.zJ(k)}},
videoHeightToWidthRatioChanged_:function(W,k){k&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.m("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$a(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$a(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.thr(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var k=_.h4(W)||0;_.KE(W,k+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.h4("yt-fullerscreen-edu-button-click-count")||0,k=_.h4("yt-fullerscreen-edu-button-shown-count")||0,C=_.Oe("external_fullscreen_button_shown_threshold"),n=W>=_.Oe("external_fullscreen_button_click_threshold")||k>=C;_.$a(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,k){return k},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.f().resolve(_.J4).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.aM.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.aM.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var k=_.S(W.hostElement).querySelector("#secondary"),C=_.S(W.hostElement).querySelector("#fixed-secondary");k=k.getBoundingClientRect();var n=k.width;W.swatcherooSqueezeback&&
(n+=_.oD);if(W.swatcherooSqueezeback){var N=_.S(W.hostElement).querySelector("#squeezeback-constraining-container");N.style.width=n+"px";N.style.flex="0 0 "+n+"px"}C.style.width=n+"px";C.style.left=k.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.aM.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.aM.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var k;!W.isTwoColumns_||W.theater||W.fullscreen?k=460:k=W.calculateNormalPlayerSize_().height;var C=k+"px";_.m("live_chat_taller_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.m("live_chat_medium_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.m("live_chat_scaled_height")&&!W.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":k+"px","--ytd-watch-flexy-chat-max-height":C,"--ytd-watch-flexy-structured-description-max-height":k+"px","--ytd-watch-flexy-comments-panel-max-height":k+"px","--ytd-comments-engagement-panel-content-height":k+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var W=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.m("web_watch_flexy_adjust_sidebar_width"))&&!_.m("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.aM.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.aM.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;if(W.isTwoColumns_){var k=_.rD6(W.windowSize_,W.calculateNormalPlayerSize_().width);k!==W.currentSidebarWidth&&(W.currentSidebarWidth=
k,W.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":k+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.CB(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var k=_.S(this.hostElement).querySelector("#engagement-panel-scrim");W?k.addEventListener("tap",_.LO(this,this.onEngagementPanelScrimClick_)):k.removeEventListener("tap",_.LO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var k=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var C=this.getPageScrollingElement(),n=this.getScrollTop(),N=n+C.clientHeight-56;if(k<n+56)k-=56;else if(W>N)k=W-C.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,k),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.m("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.tU().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,k,C){this.active&&this.trackEngagementPanelVisibility&&!_.GJa.includes(C)&&(k==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(C),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.hA(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),k!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&k!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(C),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,k){return W||k},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,k){return!W&&k},
swatcherooUpdatePanelsLocation:function(W,k,C,n,N,B){if(this.is==="ytd-watch-grid"){k=W&&!k;this.swatcherooSplitScroll&&(k?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));C=_.S(this.hostElement).querySelector("#panels");var A=_.S(this.hostElement).querySelector("#playlist"),w=_.S(this.hostElement).querySelector("#fixed-secondary"),x=_.S(this.hostElement).querySelector("#fixed-below"),
E=_.S(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),a=_.S(this.hostElement).querySelector("#chat-container");B&&(W?w.appendChild(C):x.appendChild(C));N?W?w.appendChild(a):x.appendChild(a):_.IH(a,E);n?W?w.appendChild(A):x.appendChild(A):_.IH(A,E);this.swatcherooSplitScroll&&(W=_.S(this.hostElement).querySelector("#secondary"),n=_.S(this.hostElement).querySelector("#columns"),N=_.S(this.hostElement).querySelector("#fixed-columns-secondary"),k?N.appendChild(W):
n.appendChild(W))}},
computeMetadataSkinnyMode:function(W,k,C){return this.is!=="ytd-watch-grid"?!1:W?C:k},
computeWatchWhilePanelsActive:function(W,k){return W||k},
computeNoBorderOnChat:function(W){return _.m("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,k){return W&&!k},
computePanelExpanded:function(W,k,C){return W||k||C},
computeSwatcherooSqueezeback:function(W,k,C){return this.is!=="ytd-watch-grid"||_.m("ww_squeezeback_killswitch")?!1:W&&k&&C},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.$a(this).getPlayerPromise().then(function(k){var C;(C=k.changeMarkerVisibility)==null||C.call(k,_.z(W,_.ua).isVisible||!1,_.z(W,_.ua).entityKeys||[],_.z(W,_.ua).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.ZF().dispatch(_.CdG(W.detail))},
onSetPlaylistCollapsed:function(W){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,k){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=k;break;case "PRIMARY_INFO":_.m("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=k);this.videoPrimaryInfoRendererValue=k==null?void 0:k.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.m("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=k);this.videoSecondaryInfoRendererValue=k==null?void 0:k.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
k;break;case "CLARIFICATION":this.clarifyBoxValue=k;break;case "LIVE_CHAT":this.conversationBar=k;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=k;break;case "PLAYLIST":this.externalPlaylistData_=k!=null?k:{};break;case "MERCH_SHELF":this.merchShelfValue=k==null?void 0:k.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=k;break;case "OFFER_MODULE":this.offerModule=k;break;case "LIMITED_STATE":this.limitedStateValue=k;break;case "DONATION_SHELF":this.donation=k;break;
case "ALERTS":this.alertsValue=k;break;case "COMMENTS":this.comments=k;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=k;break;case "ENGAGEMENT_PANELS":this.engagementPanels=k;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=k;break;case "RICH_GRID_RENDERER":this.richGridRendererData=k;break;case "EXPANDABLE_METADATA":this.expandableMetadata=k;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=k}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.f().resolve(_.eq).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return $Le.map(function(k){return W.find(function(C){var n;return(C==null?void 0:(n=C.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===k})}).filter(function(k){return k!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(k){var C;return!$Le.includes((k==null?void 0:(C=k.engagementPanelSectionListRenderer)==null?void 0:C.targetId)||"")})},
getHasLearningJourneyPanels:function(W){return W.length>0}}];var ZYe;var RBi=function(){var W=_.R.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.m("enable_player_resize_transition");W.smallerChatMinHeight=_.m("live_chat_smaller_min_height");W.cinematicTheaterMode=_.m("web_cinematic_theater_mode");W.transparentTheaterMode=_.m("web_transparent_theater_mode");W.cinematicFullscreen=_.m("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.m("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.m("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.m("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.m("web_watch_default_collapse_playlist");return W};
_.D(RBi,_.R);_.Y=RBi.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var W=this,k=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",k);this.secondary.addEventListener("scroll",k)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(W){_.m("web_watch_update_narrow_width_killswitch")||_.ZF().dispatch(_.P55(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.Y.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.Y.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20310_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20310_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.oq.Object.defineProperties(RBi.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var k=0;k<this.data.pageVisualEffects.length;k++)if(W=_.z(this.data.pageVisualEffects[k],_.vy))return k=void 0,(k=W.config)==null?void 0:k.enableInLightTheme;return!1}}});
_.oq.Object.defineProperties(RBi,{template:{configurable:!0,enumerable:!0,get:function(){if(ZYe===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);ZYe=W}W=ZYe;return W}}});
var hV=RBi;hV.prototype.updateMiniplayerIsActiveValue=hV.prototype.updateMiniplayerIsActiveValue;hV.prototype.updateScrollTopValue=hV.prototype.updateScrollTopValue;hV.prototype.updateFullscreenValue=hV.prototype.updateFullscreenValue;hV.prototype.updateTheaterValue=hV.prototype.updateTheaterValue;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],hV.prototype,"ytComponentBehavior",void 0);
_.U([_.v(yAl.YtdLearningJourneyWatchBehavior),_.O("design:type",Object)],hV.prototype,"ytdWatchBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],hV.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hV.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],hV.prototype,"playerData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"flexy",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"learningJourney",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"roundedInfoPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"viewTransitionEnabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"smallerChatMinHeight",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"cinematicTheaterMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"transparentTheaterMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"cinematicFullscreen",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"useLargerMaxPlayerValue",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"cinematicFullscreenV2",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hV.prototype,"theaterLargerPlayer",void 0);_.U([_.Z(),_.O("design:type",Object)],hV.prototype,"defaultCollapsePlaylist",void 0);_.U([_.Z({selector:_.l3}),_.O("design:type",Object)],hV.prototype,"theaterValue",void 0);
_.U([_.Z({selector:_.GG}),_.O("design:type",Object)],hV.prototype,"fullscreenValue",void 0);_.U([_.Z({selector:_.ys}),_.O("design:type",Object)],hV.prototype,"scrollTopValue",void 0);_.U([_.Z({selector:_.zo}),_.O("design:type",Object)],hV.prototype,"miniplayerIsActiveValue",void 0);_.U([_.og("ytd-player"),_.O("design:type",HTMLElement)],hV.prototype,"ytdPlayer",void 0);_.U([_.gi("#playlist"),_.O("design:type",HTMLElement)],hV.prototype,"JSC$20310_ytdPlaylistPanelRenderer",void 0);
_.U([_.og("ytd-comments"),_.O("design:type",HTMLElement)],hV.prototype,"ytdComments",void 0);_.U([_.gi("#primary"),_.O("design:type",HTMLElement)],hV.prototype,"primary",void 0);_.U([_.gi("#secondary"),_.O("design:type",HTMLElement)],hV.prototype,"secondary",void 0);_.U([_.gi("#player-container"),_.O("design:type",HTMLElement)],hV.prototype,"playerContainer",void 0);_.U([_.gi("#cinematics"),_.O("design:type",HTMLElement)],hV.prototype,"JSC$20310_cinematics",void 0);
_.U([_.Hl("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"updateTheaterValue",null);_.U([_.Hl("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"updateFullscreenValue",null);_.U([_.Hl("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"updateScrollTopValue",null);
_.U([_.Hl("miniplayerIsActiveValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hV.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],hV.prototype,"cinematicLightTheme",null);hV=_.U([_.T({is:"ytd-watch-learning-journey"})],hV);_.E9.registerService(_.t1p,hV);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("Tm0L3c");
var cAN;var IHo;var SkL=function(){return _.R.apply(this,arguments)||this};
_.D(SkL,_.R);var Mhe=SkL;Mhe=_.U([_.T({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Mhe);
_.q(Mhe,"ytd-ghost-comments-renderer",function(){if(IHo===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);IHo=W}W=IHo;return W},{mode:1});var QAN;var peN=function(){return _.R.apply(this,arguments)||this};
_.D(peN,_.R);var vea=peN;vea=_.U([_.T({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],vea);
_.q(vea,"ytd-ghost-watch-metadata-renderer",function(){if(QAN===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);QAN=W}W=QAN;return W},{mode:1});var K$=function(){var W=_.R.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.m("live_chat_smaller_min_height");W.cinematicTheaterMode=_.m("web_cinematic_theater_mode");W.transparentTheaterMode=_.m("web_transparent_theater_mode");W.darkerPanels=_.m("web_watch_darker_panels");W.cinematicFullscreen=_.m("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.m("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.D(K$,_.R);_.Y=K$.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var W=this,k=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",k);this.secondary.addEventListener("scroll",k)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.Y.updateShownItemsFromBinding=function(W){_.m("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.Y.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20301_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20301_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.oq.Object.defineProperties(K$.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var k=0;k<this.data.pageVisualEffects.length;k++)if(W=_.z(this.data.pageVisualEffects[k],_.vy))return k=void 0,(k=W.config)==null?void 0:k.enableInLightTheme;return!1}}});
K$.prototype.updateMiniplayerIsActiveValue=K$.prototype.updateMiniplayerIsActiveValue;K$.prototype.updateScrollTopValue=K$.prototype.updateScrollTopValue;K$.prototype.updateFullscreenValue=K$.prototype.updateFullscreenValue;K$.prototype.updateTheaterValue=K$.prototype.updateTheaterValue;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.DLi.YtdWatchBehavior),_.O("design:type",Object)],K$.prototype,"ytdWatchBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],K$.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],K$.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],K$.prototype,"ghostGridRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],K$.prototype,"playerData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"roundedInfoPanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"hideOfferModules",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"smallerChatMinHeight",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"cinematicTheaterMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"transparentTheaterMode",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"darkerPanels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"cinematicFullscreen",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"cinematicFullscreenV2",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],K$.prototype,"isDarkTheme",void 0);_.U([_.Z({selector:_.l3}),_.O("design:type",Object)],K$.prototype,"theaterValue",void 0);
_.U([_.Z({selector:_.GG}),_.O("design:type",Object)],K$.prototype,"fullscreenValue",void 0);_.U([_.Z({selector:_.ys}),_.O("design:type",Object)],K$.prototype,"scrollTopValue",void 0);_.U([_.Z({selector:_.zo}),_.O("design:type",Object)],K$.prototype,"miniplayerIsActiveValue",void 0);_.U([_.gi("#ytd-player"),_.O("design:type",HTMLElement)],K$.prototype,"ytdPlayer",void 0);_.U([_.gi("#playlist"),_.O("design:type",HTMLElement)],K$.prototype,"JSC$20301_ytdPlaylistPanelRenderer",void 0);
_.U([_.gi("#ytd-comments"),_.O("design:type",HTMLElement)],K$.prototype,"ytdComments",void 0);_.U([_.gi("#primary"),_.O("design:type",HTMLElement)],K$.prototype,"primary",void 0);_.U([_.gi("#secondary"),_.O("design:type",HTMLElement)],K$.prototype,"secondary",void 0);_.U([_.gi("#player-container"),_.O("design:type",HTMLElement)],K$.prototype,"playerContainer",void 0);_.U([_.gi("#cinematics"),_.O("design:type",HTMLElement)],K$.prototype,"JSC$20301_cinematics",void 0);
_.U([_.Hl("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K$.prototype,"updateTheaterValue",null);_.U([_.Hl("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K$.prototype,"updateFullscreenValue",null);_.U([_.Hl("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K$.prototype,"updateScrollTopValue",null);
_.U([_.Hl("miniplayerIsActiveValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K$.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],K$.prototype,"cinematicLightTheme",null);
_.q(K$,"ytd-watch-grid",function(){if(cAN===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);cAN=W}W=cAN;return W},{mode:2});_.E9.registerService(_.lww,K$);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("CF909");
var VhN;var JAz=function(){var W=_.R.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.m("enable_player_resize_transition");W.smallerChatMinHeight=_.m("live_chat_smaller_min_height");W.cinematicTheaterMode=_.m("web_cinematic_theater_mode");W.transparentTheaterMode=_.m("web_transparent_theater_mode");W.cinematicFullscreen=_.m("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.m("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.m("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.m("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.m("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;return W};
_.D(JAz,_.R);_.Y=JAz.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateRetroModeReduxValue=function(){_.m("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.Y.ready=function(){var W=this,k=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",k);this.secondary.addEventListener("scroll",k)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(W){_.m("web_watch_update_narrow_width_killswitch")||_.ZF().dispatch(_.P55(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.Y.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.Y.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20296_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20296_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.oq.Object.defineProperties(JAz.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var k=0;k<this.data.pageVisualEffects.length;k++)if(W=_.z(this.data.pageVisualEffects[k],_.vy))return k=void 0,(k=W.config)==null?void 0:k.enableInLightTheme;return!1}}});
_.oq.Object.defineProperties(JAz,{template:{configurable:!0,enumerable:!0,get:function(){if(VhN===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);VhN=W}W=VhN;return W}}});
var Po=JAz;Po.prototype.updateRetroModeReduxValue=Po.prototype.updateRetroModeReduxValue;Po.prototype.updateScrollTopValue=Po.prototype.updateScrollTopValue;Po.prototype.updateFullscreenValue=Po.prototype.updateFullscreenValue;Po.prototype.updateTheaterValue=Po.prototype.updateTheaterValue;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.DLi.YtdWatchBehavior),_.O("design:type",Object)],Po.prototype,"ytdWatchBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Po.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Po.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Po.prototype,"playerData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"flexy",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"roundedInfoPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"viewTransitionEnabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"smallerChatMinHeight",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"cinematicTheaterMode",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"transparentTheaterMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"cinematicFullscreen",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"useLargerMaxPlayerValue",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"cinematicFullscreenV2",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"isDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Po.prototype,"theaterLargerPlayer",void 0);_.U([_.Z(),_.O("design:type",Object)],Po.prototype,"defaultCollapsePlaylist",void 0);_.U([_.Z({selector:_.l3}),_.O("design:type",Object)],Po.prototype,"theaterValue",void 0);_.U([_.Z({selector:_.GG}),_.O("design:type",Object)],Po.prototype,"fullscreenValue",void 0);
_.U([_.Z({selector:_.ys}),_.O("design:type",Object)],Po.prototype,"scrollTopValue",void 0);_.U([_.Z({selector:_.zo}),_.O("design:type",Object)],Po.prototype,"miniplayerIsActive",void 0);_.U([_.Z({selector:function(W){return W.watch.isWatchRetroMode}}),
_.O("design:type",Object)],Po.prototype,"retroModeReduxValue",void 0);_.U([_.og("ytd-player"),_.O("design:type",HTMLElement)],Po.prototype,"ytdPlayer",void 0);_.U([_.gi("#playlist"),_.O("design:type",HTMLElement)],Po.prototype,"JSC$20296_ytdPlaylistPanelRenderer",void 0);_.U([_.og("ytd-comments"),_.O("design:type",HTMLElement)],Po.prototype,"ytdComments",void 0);_.U([_.gi("#primary"),_.O("design:type",HTMLElement)],Po.prototype,"primary",void 0);
_.U([_.gi("#secondary"),_.O("design:type",HTMLElement)],Po.prototype,"secondary",void 0);_.U([_.gi("#player-container"),_.O("design:type",HTMLElement)],Po.prototype,"playerContainer",void 0);_.U([_.gi("#cinematics"),_.O("design:type",HTMLElement)],Po.prototype,"JSC$20296_cinematics",void 0);_.U([_.Hl("theaterValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Po.prototype,"updateTheaterValue",null);
_.U([_.Hl("fullscreenValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Po.prototype,"updateFullscreenValue",null);_.U([_.Hl("scrollTopValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Po.prototype,"updateScrollTopValue",null);_.U([_.Hl("retroModeReduxValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Po.prototype,"updateRetroModeReduxValue",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Po.prototype,"cinematicLightTheme",null);Po=_.U([_.T({is:"ytd-watch-flexy"})],Po);_.E9.registerService(_.x_J,Po);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("nmfa2d");
var T0N;var qc=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.D(qc,_.R);_.Y=qc.prototype;_.Y.getPlayer=function(){return this.ytdPlayer};
_.Y.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:_.dV(["aa","eocs"])}}};
_.Y.onActiveChanged=function(){_.ZF().dispatch(_.g3N(this.ytPageBehavior.active))};
_.Y.playerDataChanged=function(){var W;(W=this.watchController)==null||_.ow(W,this.playerData)};
_.Y.dataChanged=function(){var W;(W=this.watchController)==null||_.ia(W,this.data)};
_.Y.sizeChanged=function(){var W,k;(k=(W=this.metadata).resize)==null||k.call(W)};
_.Y.attached=function(){this.watchController=new _.Rw(this);this.playerData&&_.ow(this.watchController,this.playerData);this.data&&_.ia(this.watchController,this.data)};
_.Y.detached=function(){_.LU(this.watchController);this.watchController=void 0};
_.Y.getPlayerContainer=function(){return this.playerContainer};
_.Y.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20248_playlistPanel}};
_.Y.provideRenderingData=function(W,k){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=k;break;case "ERROR_SCREEN":this.errorScreen=k!=null?k:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=k;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=k;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=k;break;case "RICH_METADATA":this.richMetadataRowContainer=k;break;case "CLARIFICATION":this.clarificationData=k;break;case "PLAYLIST":this.playlistData=
k!=null?k:{};break;case "MERCH_SHELF":this.merchShelf=k;break;case "TICKET_SHELF":this.ticketShelf=k;break;case "LIMITED_STATE":this.limitedState=k;break;case "DONATION_SHELF":this.donationShelf=k;break;case "ALERTS":this.alerts=k}};
_.oq.Object.defineProperties(qc.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return!this.hidden&&!!((W=this.data)==null?0:(k=W.contents)==null?0:(C=k.twoColumnWatchNextResults)==null?0:C.conversationBar)}}});
qc.prototype.sizeChanged=qc.prototype.sizeChanged;qc.prototype.dataChanged=qc.prototype.dataChanged;qc.prototype.playerDataChanged=qc.prototype.playerDataChanged;qc.prototype.onActiveChanged=qc.prototype.onActiveChanged;_.U([_.v(_.Gp.YtPageBehavior),_.O("design:type",Object)],qc.prototype,"ytPageBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qc.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],qc.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"playerData",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qc.prototype,"hidden",void 0);_.U([_.gi("#ytd-player"),_.O("design:type",HTMLElement)],qc.prototype,"ytdPlayer",void 0);_.U([_.gi("#player-container"),_.O("design:type",HTMLElement)],qc.prototype,"playerContainer",void 0);_.U([_.gi("#metadata"),_.O("design:type",Object)],qc.prototype,"metadata",void 0);_.U([_.gi("#playlist"),_.O("design:type",HTMLElement)],qc.prototype,"JSC$20248_playlistPanel",void 0);
_.U([_.Z({selector:_.PEL,reflectToAttribute:!0}),_.O("design:type",Object)],qc.prototype,"fixie",void 0);_.U([_.Z({selector:_.gBj,reflectToAttribute:!0}),_.O("design:type",Object)],qc.prototype,"singleColumn",void 0);_.U([_.Z({selector:function(W){return _.l3(W)&&!_.GG(W)},
reflectToAttribute:!0}),_.O("design:type",Object)],qc.prototype,"theater",void 0);_.U([_.Z({selector:_.GG,reflectToAttribute:!0}),_.O("design:type",Object)],qc.prototype,"fullscreen",void 0);_.U([_.Z({selector:_.rtN}),_.O("design:type",Object)],qc.prototype,"windowSize",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"singleColumnContents",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"errorScreen",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"playlistData",void 0);
_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"richMetadataRowContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"clarificationData",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"ticketShelf",void 0);
_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"merchShelf",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"donationShelf",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"limitedState",void 0);_.U([_.Z(),_.O("design:type",Object)],qc.prototype,"alerts",void 0);_.U([_.G("playlistData"),_.O("design:type",Object),_.O("design:paramtypes",[])],qc.prototype,"hasPlaylistData",null);
_.U([_.G("data","hidden"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qc.prototype,"hasChat",null);_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qc.prototype,"onActiveChanged",null);_.U([_.Hl("playerData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qc.prototype,"playerDataChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qc.prototype,"dataChanged",null);_.U([_.Hl("windowSize","singleColumn"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qc.prototype,"sizeChanged",null);
_.q(qc,"ytd-watch-fixie",function(){if(T0N===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);T0N=W}W=T0N;return W},{mode:1});_.E9.registerService(_.wiz,qc);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("xwEKAe");
var Gz7=function(W){var k=_.tQ();if(k.getFlag(202))k=k.getFlag(201);else{var C;k=(W==null?void 0:(C=W.config)==null?void 0:C.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.m("web_shorts_cinematics_disabled_by_default")}return k},yS7=function(W){var k=_.tQ();
_.Er(0,201,W);_.Er(0,202,!0);k.save()},$Se=function(W){return(W=_.FxX(W))?_.xp2(W):0},ZA7=function(W){return W.shorts.isSmallScreenSqueezeback},RCN=function(W){return W.shorts.isPlaybackStarted},TxL=function(W,k,C){for(var n=[],N=0,B=-1;N<W.length;N++)N%3===0&&(B++,n[B]=[]),n[B].push(W[N]);
W=new EN(n);n=new EN([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);n=W.multiply(n);W=new EN([[0,0],[0,0],[0,0],[0,0]]);for(N=0;N<n.getSize().width;N++){B=aD(n,0,N);var A=aD(n,1,N);if(B===null||A===null)throw Error("em`"+(N+1).toString());o2G(W,N,0,B*k);o2G(W,N,1,A*C)}k=aD(W,0,0);N=aD(W,1,0);C=aD(W,0,1);B=aD(W,1,1);if(k===null||N===null||C===null||B===null)throw Error("cm");n=iAz(k,N,C,B);A=aD(W,3,0);W=aD(W,3,1);if(A===null||W===null)throw Error("dm");W=iAz(k,A,C,W);B=(Number((B*-1).toFixed(2))-Number((C*-1).toFixed(2)))/
(Number(N.toFixed(2))-Number(k.toFixed(2)));A=Math.atan(B)*180/Math.PI;N=B===Number.POSITIVE_INFINITY?-90:B===Number.NEGATIVE_INFINITY?90:Object.is(B,-0)?180:B===0?0:B>0?A*-1:k<N?A*-1:Math.abs(A)+180;return{top:C,left:k,width:n,height:W,rotation:N}},iAz=function(W,k,C,n){W=k-W;
C=n-C;return Math.sqrt(W*W+C*C)},qAL=function(W,k){W&&_.f().resolve(_.uI).resolveCommand(W,{forceClickLogging:!0,
form:{element:k}})},US7=function(W){var k=W.data;
var C=W.parentContainerWidth;var n=W.parentContainerHeight;var N=_.yE(),B;return _.t("yt-player-overlay-video-interactions",{el:N,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},k==null?void 0:(B=k.regions)==null?void 0:B.map(function(A){return us_(N,k,A,C,n)}))},us_=function(W,k,C,n,N){function B(){var d,V,c,M,p=(V=_.z((d=w)==null?void 0:d.command,_.FP8))==null?void 0:(c=V.item)==null?void 0:(M=c.notificationTextRenderer)==null?void 0:M.successResponseText;
if(p)_.KY(W.value,"yt-open-popup-action",[_.oY(p),W.value]);else if(x)qAL(x,A.value);else{var e;qAL((e=w)==null?void 0:e.command,A.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var A=_.yE();if(C==null||!C.transformationMatrix)throw Error("fm");k.trackingParams&&_.kf().graftServerVe(k.trackingParams);C=TxL(C==null?void 0:C.transformationMatrix,n,N);C="left:"+C.left+"px; top:"+(C.top+"px; width:")+(C.width+"px; height:")+(C.height+"px; transform:rotate(")+(C.rotation+"deg);");var w=_.z(k==null?void 0:k.popUp,OAG),x=k==null?void 0:k.command,E=_.z(x,_.Yj)!==void 0;k=k==null?void 0:k.a11yString;n=_.Pj(function(){E&&A.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
A.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
N=_.Pj(function(){A.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");A.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.Zx(A,"focus",function(){E&&A.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.Zx(A,"blur",function(){E&&A.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var a=_.Pj(function(){B();return!1}),X=_.Pj(function(d){d.key==="Enter"&&B();
return!1});
return _.t("svg",{"on:mouseover":n,"on:mouseout":N,"on:keydown":X,el:A,tabindex:0,"aria-label":k,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:C,"on:click":a})},Ls7=function(W){W.unsubscribeFromStore=_.nE(W.storeWithShorts,_.bi7,function(k){W.initOrDisposeActiveModules(k);
!k&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.jh(document.documentElement),W.storeWithShorts.dispatch(_.wj$(!1)))});
W.initOrDisposeActiveModules(_.bi7(W.storeWithShorts.getState()))},jIG=function(W){var k=_.f().resolve(_.OV);
k.rootElement=W;Ls7(k)},HAL=function(){return _.f().resolve(_.OV).dismissedIndices},rS7=function(W){return _.jo({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},g2G=function(W){return _.jo({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},PbN=function(W){return _.jo({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})},EN=function(W,k){if(W instanceof EN)this.array_=W.array_;
else{var C;if(C=_.qX(W))a:{for(var n=C=0;n<W.length;n++){if(!_.qX(W[n])||C>0&&W[n].length!=C){C=!1;break a}for(var N=0;N<W[n].length;N++)if(typeof W[n][N]!=="number"){C=!1;break a}C==0&&(C=W[n].length)}C=C!=0}if(C)this.array_=_.T4(W);else if(W instanceof _.lB)this.array_=Ksi(W.height,W.width);else if(typeof W==="number"&&typeof k==="number"&&W>0&&k>0)this.array_=Ksi(W,k);else throw Error("Yl");}this.size_=new _.lB(this.array_[0].length,this.array_.length)},hC5=function(W,k,C){for(var n=0;n<W.getSize().height;n++)for(var N=
0;N<W.getSize().width;N++)k.call(C,W.array_[n][N],n,N,W)},Wi6=function(W,k){var C=new EN(W.getSize());
hC5(W,function(n,N,B){C.array_[N][B]=k.call(void 0,n,N,B,W)});
return C},Ksi=function(W,k){for(var C=[],n=0;n<W;n++){C[n]=[];
for(var N=0;N<k;N++)C[n][N]=0}return C};
EN.prototype.add=function(W){if(!_.bAe(this.size_,W.getSize()))throw Error("Zl");return Wi6(this,function(k,C,n){return k+W.array_[C][n]})};
EN.prototype.equals=function(W,k){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;k=k||0;for(var C=0;C<this.size_.height;C++)for(var n=0;n<this.size_.width;n++)if(!_.BxN(this.array_[C][n],W.array_[C][n],k))return!1;return!0};
EN.prototype.getSize=function(){return this.size_};
var aD=function(W,k,C){return k>=0&&k<W.size_.height&&C>=0&&C<W.size_.width?W.array_[k][C]:null};
EN.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var o2G=function(W,k,C,n){if(!(k>=0&&k<W.size_.height&&C>=0&&C<W.size_.width))throw Error("$l`"+k+"`"+C+"`"+W.size_.height+"`"+W.size_.width);W.array_[k][C]=n};
EN.prototype.multiply=function(W){if(W instanceof EN){if(this.size_.width!=W.getSize().height)throw Error("am");return kC5(this,W)}if(typeof W==="number")return CEr(this,W);throw Error("bm");};
var kC5=function(W,k){var C=new EN(W.size_.height,k.getSize().width);hC5(C,function(n,N,B){for(var A=n=0;A<this.size_.width;A++)n+=aD(this,N,A)*aD(k,A,B);o2G(C,N,B,n)},W);
return C},CEr=function(W,k){return Wi6(W,function(C){return C*k})};var nBe=new _.r("inlineSurveyRenderer");var NZo=new _.r("interstitialViewModel");var YSi=new _.r("reelNavigateCommand");var BZ7=new _.r("reelNonVideoContentDismissalCommand");var b7a=new _.r("showReelsCommentsOverlayCommand");var OAG=new _.r("videoInteractionPopUpRenderer");var Atr;var FiG;var wY6;var xua=function(){var W=_.R.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.D(xua,_.R);_.Y=xua.prototype;_.Y.onDataChanged=function(){this.maybeLogShows()};
_.Y.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.y4(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.Y.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var k;if(W=(k=this.data.badgeInteractionLogging)==null?void 0:k.trackingParams)this.ctaVisualElement=_.Yf(W)}};
_.Y.maybeLogClicks=function(){this.currentCsn=_.VM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Zr(this.currentCsn,this.ctaVisualElement)};
_.Y.maybeLogShows=function(){this.currentCsn=_.VM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.yb(this.currentCsn,[this.ctaVisualElement])};
_.Y.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var k;this.ytComponentBehavior.resolveCommand((k=this.data)==null?void 0:k.onClickCommand);this.maybeLogClicks()}};
var X_=xua;X_.prototype.onDataChanged=X_.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],X_.prototype,"ytComponentBehavior",void 0);_.U([_.Z({}),_.O("design:type",Object)],X_.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],X_.prototype,"onDataChanged",null);
X_=_.U([_.T({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],X_);
_.q(X_,"ytd-shopping-overlay-badge-renderer",function(){if(wY6!==void 0)return wY6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wY6=W},{mode:1});_.Gj(_.h_E,"reel-sound-metadata-view-model",{props:{data:_.si,overlayDensity:_.si}});_.Gj(_.o1T,"player-disclosure-view-model",{props:{data:_.Ik}});_.Gj(_.lSS,"pivot-button-view-model",{props:{data:_.si,className:_.si}});_.Gj(_.tJs,"reel-action-bar-view-model",{props:{data:_.Ik,buttonShapeOverrideables:_.Ik}});_.UK(US7);_.qN(US7,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.Gj(_.Uqt,"yt-reel-metapanel-view-model",{props:{data:_.Ik,overlayDensity:_.Ik}});var lAL=function(){var W=_.R.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableAnchoredPanel=_.m("desktop_shorts_v2_anchored_panel");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.m("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.m("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.m("web_shorts_enable_squeezeback_panels");W.isSqueezebackActive=!1;W.smallScreenSqueezeback=!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.isOverlay=!1;W.isImmersive=
!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var k;W.set("isImmersive",((k=window.getComputedStyle(W.hostElement))==null?void 0:k.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode);W.setPlayerDimensions()};
return W};
_.D(lAL,_.R);_.Y=lAL.prototype;_.Y.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.Y.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.m("web_enable_flexible_overlay")||_.m("web_enable_format_first")||_.m("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.Y.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.Y.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.Y.onDataChanged=function(){this.setPlayerDimensions()};
_.Y.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.Y.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.Y.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.Y.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",_.LS("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.LS("reels_action_justified_content")||"flex-start")};
_.Y.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}}};
_.Y.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.w8("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.w8("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.w8("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.w8("SHARE_LABEL",
void 0,"Share")}}});_.m("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.w8("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()};
_.Y.setEmptyOverlayMetadata=function(){_.m("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}))};
_.Y.setPlayerDimensions=function(){var W=document.getElementById("short-video-container"),k,C;W&&((k=this.data)==null?0:(C=k.videoInteractions)==null?0:C.interactions)&&(this.playerContainerHeight=W.getBoundingClientRect().height,this.playerContainerWidth=W.getBoundingClientRect().width)};
_.oq.Object.defineProperties(lAL.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
var fa=lAL;fa.prototype.onDataChanged=fa.prototype.onDataChanged;fa.prototype.onIsActiveChanged=fa.prototype.onIsActiveChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],fa.prototype,"ytdReduxBehavior",void 0);
_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],fa.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fa.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fa.prototype,"isActive",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],fa.prototype,"hidden",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],fa.prototype,"useShortsIcon",void 0);
_.U([_.Z({value:"left"}),_.O("design:type",String)],fa.prototype,"buttonTooltipPosition",void 0);_.U([_.Z({value:_.m("reels_enable_livingroom_layout")?"top":"left"}),_.O("design:type",String)],fa.prototype,"likeButtonTooltipPosition",void 0);_.U([_.Z({value:"none"}),_.O("design:type",String)],fa.prototype,"textTransform",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"showScrubber",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"isWatchWhileMode",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.infoPanel"),_.O("design:type",Object),_.O("design:paramtypes",[])],fa.prototype,"hasInfoPanel",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"enableAnchoredPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"anchoredPanelActive",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"enableLivingroomLayout",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],fa.prototype,"enablePlayerMetadataContainer",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"enableSqueezebackPanels",void 0);_.U([_.Z({selector:_.MmJ,reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"isSqueezebackActive",void 0);
_.U([_.Z({selector:ZA7,reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"smallScreenSqueezeback",void 0);_.U([_.Z({selector:RCN}),_.O("design:type",Object)],fa.prototype,"isPlayerStarted",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"overlayDensity",void 0);_.U([_.Z(),_.O("design:type",Object)],fa.prototype,"isOverlay",void 0);
_.U([_.Z({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.O("design:type",Boolean)],fa.prototype,"isShortsOverlay",void 0);_.U([_.Z(),_.O("design:type",Object)],fa.prototype,"isImmersive",void 0);_.U([_.Z(),_.O("design:type",Object)],fa.prototype,"isImmersiveHorizontal",void 0);_.U([_.Z({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.O("design:type",Boolean)],fa.prototype,"isShortsImmersive",void 0);
_.U([_.Z({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.O("design:type",Object)],fa.prototype,"buttonOverride",void 0);_.U([_.Z(),_.O("design:type",Number)],fa.prototype,"playerContainerHeight",void 0);_.U([_.Z(),_.O("design:type",Number)],fa.prototype,"playerContainerWidth",void 0);_.U([_.Z({selector:_.BG,reflectToAttribute:!0}),_.O("design:type",Object)],fa.prototype,"isFullscreen",void 0);
_.U([_.Hl("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fa.prototype,"onIsActiveChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fa.prototype,"onDataChanged",null);fa=_.U([_.T({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],fa);
_.q(fa,"ytd-reel-player-overlay-renderer",function(){if(FiG!==void 0)return FiG;var W=document.createElement("template");_.J(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return FiG=W},{mode:1});var t7_;var dJ=function(){var W=_.R.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$19497_playerEvents=new Map;return W};
_.D(dJ,_.R);_.Y=dJ.prototype;_.Y.created=function(){this.JSC$19497_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19497_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19497_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.LO(this,this.onPageChanged))};
_.Y.getPlayerAndInitializeListeners=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return k=_.Zf(),k?_.l(C,k.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.LO(W,W.onPageChanged)),C.jumpTo(0));W.player=C.yieldResult;W.initializePlayerListeners();_.ab(C)})};
_.Y.onPageChanged=function(W){var k=this;return _.F(function(C){if(C.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?C.return():_.l(C,_.Rh().getPlayerPromise(),2);k.player=C.yieldResult;k.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.LO(k,k.onPageChanged));_.ab(C)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19497_playerEvents)};
_.Y.onVideoDataChange=function(W){var k=this;return _.F(function(C){if(!k.player||W.type!=="newdata")return C.return();k.videoDuration=_.m("web_shorts_use_progress_state_for_gapless")?k.player.getProgressState(W.playertype).seekableEnd:k.player.getDuration(W.playertype);k.playedTime=0;_.ab(C)})};
_.Y.onVideoProgress=function(W){var k=this,C,n;return _.F(function(N){if(!k.player)return N.return();C=k.player.getPresentingPlayerType();n=k.player.getPlayerState();k.videoDuration=_.m("web_shorts_use_progress_state_for_gapless")?k.player.getProgressState(C).seekableEnd:k.player.getDuration(C);k.playedTime=n===0?k.videoDuration:W;_.ab(N)})};
_.Y.getPercentPlayed=function(W,k){return W?_.Sq(k/W,0,1):0};
_.oq.Object.defineProperties(dJ.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],dJ.prototype,"componentBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],dJ.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dJ.prototype,"player",void 0);_.U([_.Z(),_.O("design:type",Object)],dJ.prototype,"videoDuration",void 0);_.U([_.Z(),_.O("design:type",Object)],dJ.prototype,"playedTime",void 0);_.U([_.Z(),_.O("design:type",Object)],dJ.prototype,"isActive",void 0);
_.U([_.G("videoDuration","playedTime"),_.O("design:type",Number),_.O("design:paramtypes",[])],dJ.prototype,"percentPlayed",null);_.U([_.G("videoDuration","playedTime"),_.O("design:type",Object),_.O("design:paramtypes",[])],dJ.prototype,"percentPlayedStyle",null);_.U([_.G("videoDuration","isActive"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],dJ.prototype,"hideProgressBar",null);
_.q(dJ,"ytd-progress-bar-line",function(){if(t7_===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);t7_=W}W=t7_;return W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var EBe;_.qN(_.KTX,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var m9=function(){var W=_.R.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;var k;if(k=_.m("web_shorts_pip_button"))_.f().resolve(_.yYA),k=!!window.documentPictureInPicture&&_.IJ();W.shortsPipButtonEnabled=k;W.JSC$19500_playerEvents=new Map;return W};
_.D(m9,_.R);_.Y=m9.prototype;_.Y.created=function(){this.JSC$19500_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19500_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.F8(28662);this.playPauseButtonClientVE=_.F8(36842);this.fullscreenButtonToggleOffClientVE=_.F8(222256);this.fullscreenButtonToggleOnClientVE=_.F8(222257);var W=_.VM(),k=_.DH();W&&k&&(_.m("combine_ve_grafts")?(_.Hn(_.kf(),this.muteButtonClientVE,k),_.Hn(_.kf(),this.playPauseButtonClientVE,k)):_.Rg(W,k,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19500_playerEvents),this.player=null)};
_.Y.getPlayerAndInitializeListeners=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return k=_.Zf(),k?_.l(C,k.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.LO(W,W.onPageChanged)),C.jumpTo(0));W.player=C.yieldResult;W.initializePlayerListeners();_.ab(C)})};
_.Y.onPageChanged=function(W){var k=this;return _.F(function(C){if(C.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?C.return():_.l(C,_.Rh().getPlayerPromise(),2);k.player=C.yieldResult;k.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.LO(k,k.onPageChanged));_.ab(C)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19500_playerEvents)};
_.Y.onPlayerStateChange=function(W){this.playerState=W};
_.Y.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.Y.onPlayPauseButtonClick=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.Rh().getPlayerPromise(),2);k=n.yieldResult;(C=_.VM())&&W.playPauseButtonClientVE&&_.Zr(C,W.playPauseButtonClientVE);k.getPlayerState()!==1?k.playVideo():k.pauseVideo();_.ab(n)})};
_.Y.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.Y.computeFullscreenLabel=function(W){return W?_.w8("FULLSCREEN_EXIT_LABEL"):_.w8("FULLSCREEN_ENTER_LABEL")};
_.Y.computeShortsPipLabel=function(W){return W?_.w8("MINIPLAYER_CLOSE"):_.w8("OPEN_IN_MINIPLAYER")};
_.Y.computePlayPauseLabel=function(W){return W===1||W===3?_.w8("PLAYER_LABEL_PAUSE"):_.w8("PLAYER_LABEL_PLAY")};
_.Y.onMuteButtonClick=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.Rh().getPlayerPromise(),2);k=n.yieldResult;(C=_.VM())&&W.muteButtonClientVE&&_.Zr(C,W.muteButtonClientVE);k.isMuted()?k.unMute(!0):k.mute(!0);_.ab(n)})};
_.Y.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.Y.computeMuteLabel=function(W){return W?_.w8("PLAYER_LABEL_UNMUTE"):_.w8("PLAYER_LABEL_MUTE")};
_.Y.onFullscreenButtonClick=function(){var W=_.VM();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Zr(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Zr(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.xN7()};
_.Y.onShortsPipButtonClick=function(){var W=_.f().resolve(_.OV);if(_.m("web_shorts_pip")){var k=_.f().resolve(_.eq);W.isShortsPipActive()?k.deactivate():k.isMiniplayerActive()||(_.k7().shortsPipActivation=!0,_.HvA(k))}};
_.oq.Object.defineProperties(m9.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.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"}}});
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],m9.prototype,"componentBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],m9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],m9.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],m9.prototype,"player",void 0);_.U([_.Z(),_.O("design:type",Object)],m9.prototype,"playerState",void 0);_.U([_.Z(),_.O("design:type",Object)],m9.prototype,"isMuted",void 0);
_.U([_.Z({computed:"computePlayPauseIcon(playerState)"}),_.O("design:type",String)],m9.prototype,"playPauseIcon",void 0);_.U([_.Z({computed:"computeMuteIcon(isMuted)"}),_.O("design:type",String)],m9.prototype,"muteIcon",void 0);_.U([_.Z({selector:_.BG}),_.O("design:type",Boolean)],m9.prototype,"isFullscreen",void 0);_.U([_.Z({selector:_.b2}),_.O("design:type",Boolean)],m9.prototype,"isShortsPipActive",void 0);_.U([_.Z(),_.O("design:type",Object)],m9.prototype,"shortsPipButtonEnabled",void 0);
_.U([_.G("playerState"),_.O("design:type",Object),_.O("design:paramtypes",[])],m9.prototype,"playPauseButtonData",null);_.U([_.G("isFullscreen"),_.O("design:type",Object),_.O("design:paramtypes",[])],m9.prototype,"fullscreenButtonData",null);_.U([_.G("isShortsPipActive"),_.O("design:type",Object),_.O("design:paramtypes",[])],m9.prototype,"shortsPipButtonData",null);_.U([_.G("isFullscreen"),_.O("design:type",String),_.O("design:paramtypes",[])],m9.prototype,"fullscreenIcon",null);
_.U([_.G("isShortsPipActive"),_.O("design:type",String),_.O("design:paramtypes",[])],m9.prototype,"shortsPipIcon",null);
_.q(m9,"ytd-shorts-player-controls",function(){if(EBe===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);EBe=W}W=EBe;return W},{mode:1});var aAz;_.Gj(_.U9i,"yt-interstitial-view-model",{props:{data:_.Ik}});var XY7=_.GM(function(W){var k=W.data;return _.t("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.t("h1",{class:"reelWatchBreakViewModelHostTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("h2",{class:"reelWatchBreakViewModelHostBody"},_.t(_.Ya,{text:function(){return k().body},
isOverlay:!0})),_.t(_.Ex,{data:function(){return k().buttons}},{buttonViewModel:function(C,n){return _.t("div",{class:function(){return n()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.t(_.zn,{data:C.data}))}}))},"Mh");
XY7.idomCompat=!0;_.Gj(XY7,"reel-watch-break-view-model",{props:{data:_.Ik}});var fAL=function(){return _.R.apply(this,arguments)||this};
_.D(fAL,_.R);fAL.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}}};
_.oq.Object.defineProperties(fAL.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.z((W=this.data)==null?void 0:W.renderer,nBe)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.z((W=this.data)==null?void 0:W.renderer,NZo)}}});
var zG=fAL;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],zG.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],zG.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zG.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.renderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],zG.prototype,"isSurvey",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.renderer"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],zG.prototype,"isInterstitialViewModel",null);zG=_.U([_.T({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],zG);
_.q(zG,"ytd-reel-non-video-content-renderer",function(){if(aAz!==void 0)return aAz;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return aAz=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var du5;_.Gj(_.Ru7,"desktop-shorts-player-controls",{});var mue=function(){var W=_.R.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.backgroundImageJobId=0;W.modern=_.m("web_button_rework");W.overlayType=_.LS("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.useStamper=_.m("web_shorts_enable_title_deflation");W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.m("desktop_shorts_v2_anchored_panel");
W.enablePersistentAnchoredPanel=_.m("desktop_shorts_v2_persistent_anchored_panel");W.hideWatchWhilePanel=_.m("web_shorts_hide_watch_while_panel");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.m("web_enable_flexible_overlay");W.aspectRatio=.5625;W.overlayDensity=0;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
W.onWindowResized=function(){_.Dy(W,"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.D(mue,_.R);_.Y=mue.prototype;_.Y.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.Y.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.Y.shouldRenderOverlayControl=function(W){return!this.useStamper&&this.isVideoContent(W)};
_.Y.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.f().resolve(_.lj);this.isWatchWhileMode&&(_.m("web_enable_shorts_new_carousel")?_.aM.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.Y.handleShowReelsCommentsOverlayCommand=function(W){W=_.z(W,b7a);this.isActive&&(W==null?0:W.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))};
_.Y.updateEngagementPanelVisibility=function(W,k){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:k?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.Y.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.Y.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.f().resolve(_.OV).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.Y.handleWatchWhilePanelScrimClick=function(){var W=_.f().resolve(_.lj);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.Y.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.Y.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:_.m("web_enable_shorts_new_carousel")?0:void 0}}};
_.Y.handlePlayerClick=function(W){var k=this,C,n;if((n=(C=window).matchMedia)!=null&&n.call(C,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.aM.cancelJob(this.autoHideJobId),this.autoHideJobId=_.wI(_.aM,function(){k.showPlayerControls=!1},4E3)};
_.Y.isFirstReel=function(){return this.index===0};
_.Y.handleMouseenter=function(){_.aM.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.Y.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.Y.handleScrubberEnter=function(){this.showScrubber=!0};
_.Y.handleScrubberLeave=function(){this.showScrubber=!1};
_.Y.onAspectRatioChange=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return W.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+W.aspectRatio),W.isActive?_.l(C,_.f().resolve(_.OV).playerApi,3):C.jumpTo(0);(k=C.yieldResult)&&k.setSize(NaN,NaN);_.ab(C)})};
_.Y.updateBackgroundImage=function(){var W=this,k;if((k=this.data)!=null&&k.thumbnail){var C=(k=_.$f(this.data.thumbnail.thumbnails))?'background-image:url("'+k+'");':"",n;C.toString()!==((n=this.backgroundImage)==null?void 0:n.toString())&&(this.isActive?this.backgroundImage=C:(_.aM.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.wI(_.aM,function(){W.isAttached&&(W.backgroundImage=C)},1E3)))}else this.backgroundImage=void 0};
_.Y.setAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&(this.isActive&&.5625!==$Se(this.data.thumbnail)&&_.AJK("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:$Se(this.data.thumbnail)))};
_.Y.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){W=W.offsetWidth-96-this.playerContainer.offsetWidth-72;W=W>=720?1:W>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&W===1&&(W=0);this.isPersistentPanelActive&&(W=0);this.overlayDensity=W;var k;(k=this.onOverlayDensityChanged)==null||k.call(this,this.index,this.overlayDensity)}}};
_.Y.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity);(W=_.S(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&W.set("overlayDensity",this.overlayDensity);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity};
_.Y.isVideoContent=function(W){_.f().resolve(_.OV);return!!_.z(W,_.YZ)};
_.Y.isNonVideoContent=function(W){_.f().resolve(_.OV);return!!_.z(W,_.zQ)};
_.Y.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.oq.Object.defineProperties(mue.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,k;return _.m("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.m("web_enable_format_first_ads_only")||((k=this.data)==null?void 0:k.reelPlayerOverlayRenderer)&&_.m("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 W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(this.useStamper&&((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var k,C;if(((k=this.data)==null?0:k.adsOverlay)&&Object.keys((C=this.data)==null?void 0:C.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var n,N;if(((n=this.data)==null?0:n.reelPlayerOverlayRenderer)&&Object.keys((N=this.data)==null?void 0:N.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var Dw=mue;Dw.prototype.onOverlayDensityChange=Dw.prototype.onOverlayDensityChange;Dw.prototype.calculateOverlayDensity=Dw.prototype.calculateOverlayDensity;Dw.prototype.setAspectRatio=Dw.prototype.setAspectRatio;Dw.prototype.updateBackgroundImage=Dw.prototype.updateBackgroundImage;Dw.prototype.onAspectRatioChange=Dw.prototype.onAspectRatioChange;Dw.prototype.onEngagementPanelsChanged=Dw.prototype.onEngagementPanelsChanged;Dw.prototype.onScrubberDataChange=Dw.prototype.onScrubberDataChange;
Dw.prototype.updateShouldHideOverlay=Dw.prototype.updateShouldHideOverlay;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Dw.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Dw.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Number)],Dw.prototype,"index",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Dw.prototype,"isActive",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Dw.prototype,"isHiddenInDom",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"isPlayerPaused",void 0);_.U([_.Z({selector:RCN}),_.O("design:type",Object)],Dw.prototype,"isPlayerStarted",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"showPlayerControls",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"showScrubber",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"autoHideJobId",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"backgroundImageJobId",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"backgroundImage",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"overlayType",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Dw.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Dw.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"watchWhileEngagementPanels",void 0);
_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"panelData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"isWatchWhileMode",void 0);_.U([_.Z(),_.O("design:type",String)],Dw.prototype,"activeWatchWhilePanel",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"hasError",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"panelShowDelayMs",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"scrubberComponent",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"useStamper",void 0);_.U([_.Z({selector:_.BG,reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"isFullscreen",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"shouldHideOverlay",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"enableAnchoredPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"enablePersistentAnchoredPanel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"hideWatchWhilePanel",void 0);_.U([_.Z({selector:_.MmJ,reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"isPersistentPanelActive",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"anchoredPanelActive",void 0);_.U([_.Z({selector:_.b2,reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"isShortsPipActive",void 0);
_.U([_.Z({selector:ZA7,reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"smallScreenSqueezeback",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dw.prototype,"enableFormatFirst",null);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"enableFlexibleOverlay",void 0);_.U([_.Z(),_.O("design:type",Object)],Dw.prototype,"aspectRatio",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Dw.prototype,"overlayDensity",void 0);_.U([_.Z(),_.O("design:type",Function)],Dw.prototype,"onOverlayDensityChanged",void 0);_.U([_.Z(),_.G("isActive","hasError"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dw.prototype,"shouldRenderPlayerElements",null);_.U([_.Z(),_.G("isActive","isWatchWhileMode"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dw.prototype,"watchWhileOrPersistentActive",null);
_.U([_.Hl("isActive","hasError","showingExpandedOverlay"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"updateShouldHideOverlay",null);_.U([_.Z({reflectToAttribute:!0}),_.G("isActive","isPlayerStarted","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dw.prototype,"shouldRenderScrubber",null);
_.U([_.Hl("shouldRenderScrubber"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"onScrubberDataChange",null);_.U([_.G("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.O("design:type",Object),_.O("design:paramtypes",[])],Dw.prototype,"overlayComponent",null);_.U([_.Hl("watchWhileEngagementPanels"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"onEngagementPanelsChanged",null);
_.U([_.gi("#player-container"),_.O("design:type",HTMLElement)],Dw.prototype,"playerContainer",void 0);_.U([_.gi("#cinematic-container"),_.O("design:type",HTMLElement)],Dw.prototype,"cinematicContainer",void 0);_.U([_.Hl("aspectRatio"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Dw.prototype,"onAspectRatioChange",null);
_.U([_.Hl("data.thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"updateBackgroundImage",null);_.U([_.Hl("isPersistentPanelActive","data.thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"setAspectRatio",null);_.U([_.Hl("isPersistentPanelActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"calculateOverlayDensity",null);
_.U([_.Hl("overlayDensity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dw.prototype,"onOverlayDensityChange",null);Dw=_.U([_.T({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Dw);
_.q(Dw,"ytd-reel-video-renderer",function(){if(du5!==void 0)return du5;var W=document.createElement("template");_.J(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return du5=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var z$_=function(){var W=_.R.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.panelShowDelayMs=_.Oe("enable_shorts_panel_show_delay_ms");W.enablePreviousContinuation=_.m("shorts_in_playlists_web");W.shortsPipEnabled=_.m("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=
_.m("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.m("web_scroll_into_view_center");W.formatFirst=_.m("web_enable_format_first")||_.m("web_enable_format_first_ads_only")||_.m("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.m("web_enable_flexible_overlay");
W.isShortsInitialized=!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.F8(56921);W.prevReelVe=_.F8(56922);W.loopToggleOffVe=_.F8(198013);W.loopToggleOnVe=_.F8(198014);W.ambientModeToggleVe=_.F8(227860);W.reelPlayerPausedStateRendererVe=_.F8(141313);W.storedPlaybackSpeed=null;W.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"};W.onOverlayDensityChanged=function(k,C){var n;(n=W.getActiveReelVideo(k))==null||n.setAttribute("overlay-density",String(C))};
return W};
_.D(z$_,_.R);_.Y=z$_.prototype;
_.Y.deflateInactivePreviousSlides=function(){var W=_.Oe("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var k=0;k<=W;k++){var C=void 0;((C=this.shortsProcessedSequence[k].reelPlayerOverlayRenderer)==null?0:C.likeButton)&&this.set("shortsProcessedSequence."+k+".reelPlayerOverlayRenderer",{});C=void 0;((C=this.shortsProcessedSequence[k].adsOverlay)==null?0:C.adSlotMetadata)&&this.set("shortsProcessedSequence."+k+
".adsOverlay",{})}}};
_.Y.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.Y.onResize=function(){var W=_.ZF(),k=W.dispatch,C=this.calculateIsSmallWidth();k.call(W,_.jo({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:C}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.Y.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:_.m("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}}};
_.Y.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,k=W,C=0;W<250&&(k=W+this.shortsInnerContainer.clientWidth,C=24);_.Op(this.hostElement,{"--ytd-shorts-header-width":k+"px","--ytd-shorts-top-spacing":C+"px"})}};
_.Y.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.Y.isActiveReel=function(W,k,C){C&&(k=this.calculatePrevIndex(k,C));return W===k};
_.Y.onFullscreenChange=function(){if(_.m("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.f().resolve(_.eq).close(!0)}};
_.Y.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.Y.unregisterPanels=function(){var W=_.f().resolve(_.lj);if(this.watchWhileEngagementPanels)for(var k=_.b(this.watchWhileEngagementPanels),C=k.next();!C.done;C=k.next()){var n=void 0,N=void 0;C=(n=C.value.engagementPanelSectionListRenderer)==null?void 0:(N=n.identifier)==null?void 0:N.tag;W&&C&&W.panelMap.delete(C)}};
_.Y.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.Y.getActiveReelVideo=function(W){return _.S(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.Y.calculatePrevIndex=function(W,k){return k?W-((k==null?void 0:k.length)||0):-1};
_.Y.onKeydown=function(W){var k=_.vl(W)||[];if(!_.F87(k))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.m("web_shorts_keyboard_enable_seek_shortcuts")){var C;(C=this.player)==null||C.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.m("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var n;(n=this.player)==null||n.seekBy(5)}};
_.Y.onServiceRequestCompleted=function(W,k){W=k.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.Y.handleEngagementPanelVisibilityChanged=function(W,k){var C=_.f().resolve(_.lj);if(W&&C){var n,N=((n=W.identifier)==null?void 0:n.tag)||W.panelIdentifier||W.targetId;if(k==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==N){C.hidePanel(this.activePanel);var B;this.activePanel=((B=W.identifier)==null?void 0:B.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.ZF().dispatch(rS7(!0)),this.anchoredPanelActive=!0,this.activePanel=N;else k==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===N&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.ZF().dispatch(rS7(!1)))}};
_.Y.handlePanelScrimClick=function(){var W=_.f().resolve(_.lj);this.activePanel&&(W.hidePanel(this.activePanel),_.ZF().dispatch(rS7(!1)))};
_.Y.getShortsLoopSetting=function(){var W,k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return _.m("kevlar_shorts_auto_advance")?_.l(B,_.wF.getInstance(),2):B.return(!0);case 2:return(W=B.yieldResult)?_.l(B,W.get("sfvles"),3):B.return(!0);case 3:return C=(k=B.yieldResult)!=null?k:!1,_.l(B,W.get("sfvle"),4);case 4:return N=(n=B.yieldResult)!=null?n:!0,C?B.return(N):B.return(!0)}})};
_.Y.handleSignalActionToggleLoopShortsOff=function(){var W=this,k,C,n;return _.F(function(N){switch(N.nextAddress){case 1:if(!W.player)return N.return();W.player.setLoopVideo(!1);k=_.kf();_.gc(k,W.loopToggleOffVe);return _.l(N,_.wF.getInstance(),2);case 2:return(C=N.yieldResult)?_.l(N,C.set("sfvle",!1),3):N.return();case 3:return _.l(N,C.set("sfvles",!0),4);case 4:n=_.tQ(),_.Er(0,203,!1),_.Er(0,204,!0),n.save(),_.ab(N)}})};
_.Y.handleSignalActionToggleLoopShortsOn=function(){var W=this,k,C,n;return _.F(function(N){switch(N.nextAddress){case 1:if(!W.player)return N.return();W.player.setLoopVideo(!0);k=_.kf();_.gc(k,W.loopToggleOnVe);return _.l(N,_.wF.getInstance(),2);case 2:return(C=N.yieldResult)?_.l(N,C.set("sfvle",!0),3):N.return();case 3:return _.l(N,C.set("sfvles",!0),4);case 4:n=_.tQ(),_.Er(0,203,!0),_.Er(0,204,!0),n.save(),_.ab(N)}})};
_.Y.handleSignalActionToggleCinematicShortsOn=function(){yS7(!0);var W;(W=this.JSC$19524_cinematicController)==null||_.eCN(W,!0);_.gc(_.kf(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.Y.handleSignalActionToggleCinematicShortsOff=function(){yS7(!1);var W;(W=this.JSC$19524_cinematicController)==null||_.eCN(W,!1);_.gc(_.kf(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.Y.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.Y.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.Y.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.aM.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.Y.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var k=_.z(W,_.zQ);return{reelNonVideoContentRenderer:_.z(k==null?void 0:k.renderer,_.GQz),command:W}}if(this.data){var C;k=(C=_.z(this.currentEndpoint,_.YZ))==null?void 0:C.thumbnail;var n;C=(n=this.data.overlay)==null?void 0:n.reelPlayerOverlayRenderer;_.f().resolve(_.OV);var N,B;n=_.z((N=this.data.overlay)==null?void 0:(B=N.shortsAdsRenderer)==null?void 0:B.overlay,_.deb);W=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.z(this.currentEndpoint,_.YZ),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:C,thumbnail:k,command:W,adsOverlay:n}}}};
_.Y.created=function(){var W=this;this.scrollToVideoThrottle=new _.Ox(function(k){var C;(C=W.getActiveReelVideo(k))==null||C.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Ox(function(k){var C;(C=W.getActiveReelVideo(k))==null||C.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.Y.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.Y.attached=function(){var W=this;jIG(this);this.pageScrollElement=_.S(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.LO(this,this.processResetAction));_.m("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.m("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var k=W.getActiveReelVideo(W.activeIndex);
W.maybeCreateIntersectionObserver();k==null||k.scrollIntoView({behavior:"instant",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.Y.calculateSqueezebackPanelSize=function(){var W=this,k=window.innerWidth-456-(window.innerHeight-106)*.5625;_.aM.addLowPriorityJob(function(){k<360?_.ZF().dispatch(g2G(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(k,480)+"px"),_.ZF().dispatch(g2G(!1)))})};
_.Y.detached=function(){var W=_.f().resolve(_.OV);W.rootElement=void 0;var k;(k=W.unsubscribeFromStore)==null||k.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.LO(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.Y.onResizeFinished=function(W,k){var C=this,n=new ResizeObserver(function(){C.shortsContainer.style.overflowY="hidden";_.aM.addLowPriorityJob(function(){k()},100)});
n.observe(W);return n};
_.Y.resetDocumentScrollTop=function(){var W,k;if((W=document)==null?0:(k=W.scrollingElement)==null?0:k.scrollTop)document.scrollingElement.scrollTop=0};
_.Y.loadPage_=function(W){var k=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var C;if((C=_.z(this.currentEndpoint,_.YZ))==null?0:C.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){k.isPlayerStarted&&
(k.handleOnPlaybackCommand(),k.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.Y.afterPlayerStarted=function(){};
_.Y.handleOnPlaybackCommand=function(){if(_.m("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,k=(W=_.z(this.currentEndpoint,_.YZ))==null?void 0:W.onPlaybackCommand;k&&this.ytComponentBehavior.resolveCommand(k)}};
_.Y.maybeCreateIntersectionObserver=function(){var W=this,k=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==k){this.intersectionObserverThreshold=k;var C={rootMargin:"0px",threshold:k},n;(n=this.intersectionObserver)==null||n.disconnect();this.intersectionObserver=new IntersectionObserver(function(N){N=_.b(N);for(var B=N.next();!B.done;B=N.next())if(B=B.value,B.intersectionRatio>k){B=Number(B.target.id);if(isNaN(B))break;if(B===W.index)break;
_.hMX();W.loadVideo(B);_.So("r_vtc")}},C);
this.observeShorts()}};
_.Y.observeShorts=function(){var W=[].concat(_.J8(_.S(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=void 0;(C=this.intersectionObserver)==null||C.observe(k)}};
_.Y.initCsi=function(){_.ClA("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={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"}},k,C;if((k=this.playerData)==null?0:(C=k.cacheMetadata)==null?0:C.isCacheHit)W.isCacheHit=!0;var n;if(k=(n=_.z(this.currentEndpoint,_.YZ))==null?void 0:
n.prefetchTaskId)W.prefetchInfo={taskId:k};_.Vb(W)};
_.Y.isAd=function(){var W,k;return!!((W=_.z(this.currentEndpoint,_.YZ))==null?0:(k=W.adClientParams)==null?0:k.isAd)};
_.Y.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.Y.getPlayerContainer=function(){var W;return(W=_.S(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.Y.onPlayerStateChange=function(W){var k=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.ZF().dispatch(PbN(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.ZF().dispatch(PbN(!0)));this.player&&!this.player.getLoopVideo()&&_.aM.addLowPriorityJob(function(){k.getShortsLoopSetting().then(function(C){var n;(n=k.player)==null||n.setLoopVideo(C)})});
this.isPlayerPaused&&_.m("web_shorts_paused_state_logging")&&_.yb(_.VM(),[this.reelPlayerPausedStateRendererVe])};
_.Y.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.Y.isShortPlayable=function(){if(_.m("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.Y.setNormalPlaybackSpeed=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.getPlayer().getPlayerPromise(),2);k=n.yieldResult;C=k.getPlaybackRate();C!==1&&(W.storedPlaybackSpeed=C,k.setPlaybackRate(1));_.ab(n)})};
_.Y.restorePlaybackSpeed=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1)return W.storedPlaybackSpeed===null?C.jumpTo(0):_.l(C,W.getPlayer().getPlayerPromise(),3);k=C.yieldResult;k.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.ab(C)})};
_.Y.playerDataChanged=function(){var W=this,k,C,n,N,B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1){k=W.getPlayer();_.m("web_shorts_dynamic_intersection_observer_threshold")&&((C=W.intersectionObserver)==null||C.disconnect());if(W.playerData){if(((n=W.playerData.videoDetails)==null?void 0:n.videoId)!==((N=k.getPlayer())==null?void 0:N.getVideoData().video_id)){B={};if(A=_.z(W.currentEndpoint,_.YZ))B.watch_endpoint=A,A.endTimeSeconds&&(B.end=A.endTimeSeconds);k.loadVideoWithPlayerResponse(W.playerData,
B)}}else return a.return();return W.player?a.jumpTo(2):_.l(a,k.getPlayerPromise(),3)}a.nextAddress!=2&&(W.player=a.yieldResult,W.JSC$19524_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$19524_playerStateChangeListener),_.m("kevlar_client_enable_shorts_player_bootstrap")&&_.Tr(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.aM.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(X){var d;(d=W.player)==null||
d.setLoopVideo(X)})}),_.nAb.resolve(W.player),W.player.syncVolume(),W.getPlayer().focusOnPlayer());
_.m("web_shorts_caption_language_entity_killswitch")||_.aM.addLowPriorityJob(function(){var X=_.f().resolve(_.OV),d,V=(d=W.player)==null?void 0:d.getOption("captions","track");d=_.KB("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(V){var c;((c=_.kj(_.CoK,d)())==null?void 0:c.value)!==V.displayName&&X.store.dispatch(_.Nj("stringEntity",d,{key:d,value:V.displayName||""}))}else X.store.dispatch(_.Nj("stringEntity",d,{key:d,value:"CAPTIONS_UNAVAILABLE"}))});
_.aM.addLowPriorityJob(function(){W.observeShorts()},100);
w=W.player.getPlayerState(W.player.getPresentingPlayerType());w!==1||W.isPlayerStarted||_.ZF().dispatch(PbN(!0));W.updateBackNavContainerWidth();x=_.z(W.currentEndpoint,_.YZ);((E=x)==null?0:E.startTimeSeconds)&&W.player.seekTo(x.startTimeSeconds);if(W.JSC$19524_cinematicController||W.cinematicsInitializeJobId)return a.return();W.cinematicsInitializeJobId=_.aM.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.ab(a)})};
_.Y.onShortUndoDismiss=function(){var W=this,k=HAL().pop();k!==void 0&&(_.ZR(this,function(){W.showCardWithIndex(k)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.Y.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.z(W.onDismissalCompletionRenderer,_.AS5))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.Y.processReelNonVideoContentDismissalCommand=function(W){var k=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.z(W,BZ7);this.activeDimissalTimeout=setTimeout(function(){k.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.Y.scrollAndDismissCard=function(){var W=this,k=this.index;HAL().push(k);_.ZR(this,function(){var C=W.getPlayableNextIndex();C!==null&&(C=W.getActiveReelVideo(C),W.hideCardWithIndex(k),C==null||C.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.Y.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.Y.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.Y.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.Y.activeChanged=function(W){_.ZF().dispatch(_.jo({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.LO(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var k;(k=this.player)==null||k.sendAbandonmentPing()}var C;(C=this.player)==null||C.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.LO(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.Y.graftClientVisualElements=function(){if(this.data){var W=_.kf();_.n82(W,_.nB({response:this.reelWatchSequenceResponse}));_.Hn(W,this.nextReelVe);_.Hn(W,this.prevReelVe);_.m("kevlar_shorts_auto_advance")&&(_.Hn(W,this.loopToggleOffVe),_.Hn(W,this.loopToggleOnVe));_.Hn(W,this.ambientModeToggleVe);_.yb(_.VM(),[this.nextReelVe,this.prevReelVe]);_.m("web_shorts_paused_state_logging")&&_.Hn(W,this.reelPlayerPausedStateRendererVe)}};
_.Y.graftNvcRenderer=function(){var W,k,C,n,N=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(k=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:k.command:(C=this.shortsProcessedSequence)==null?void 0:(n=C[this.index])==null?void 0:n.command;if(N&&this.isNonVideoContentCommand(N)){W=_.z(N,_.zQ);var B,A;(W=(B=_.z(W==null?void 0:W.renderer,_.GQz))==null?void 0:(A=B.loggingDirectives)==null?void 0:A.trackingParams)&&_.kf().graftServerVe(W)}};
_.Y.setActiveIndex=function(){_.f().resolve(_.OV).setActiveIndex(this.index)};
_.Y.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.Y.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.aM.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.Y.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.aM.cancelJob(this.updateMiniplayerDataJobId)};
_.Y.updateMiniplayerData=function(){var W,k,C,n=_.f().resolve(_.eq),N={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((k=this.nextButtonData)==null||!k.isDisabled),playabilityStatus:(C=this.playerData)==null?void 0:C.playabilityStatus};_.Fd(n,N)};
_.Y.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&(W.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.Y.movePlayerToVideo=function(W,k){var C=this;k=k===void 0?!0:k;var n=this.getActiveReelVideo(W),N=this.getPlayer();if(n){this.overlayContainer||(this.overlayContainer=_.S(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||N.appendTo(this.overlayContainer.playerContainer,void 0,!0));n.appendChild(this.overlayContainer);var B;(B=this.player)==null||B.setSize(NaN,NaN);this.isActive||_.wI(_.aM,function(){C.isActive=!0});
N.style.visibility="visible";_.m("reels_web_disable_rtr_tick")||_.m("reels_web_use_pbs_first_shorts")&&W===0||_.cN("r_tr");this.currentPlayerIndex=W;n.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else k?_.aM.addLowPriorityJob(function(){C.movePlayerToVideo(C.index,!1)}):Math.random()<=_.Oe("web_shorts_error_logging_threshold")&&_.mw(new _.AM("Trying to movePlayerToVideo with undefined container.",{firstAttempt:k,
index:W}))};
_.Y.enableFormatFirst=function(W){return _.m("web_enable_format_first")||W.adsOverlay&&_.m("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.m("web_enable_format_first_organic_only")};
_.Y.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+$Se(W.thumbnail)};
_.Y.getBackgroundImage=function(W){if(W!=null&&W.thumbnail){if(_.m("web_enable_format_first")){var k=$Se(W.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+k)}return(W=_.$f(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"}};
_.Y.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.Y.maybeMoveCinematicsToVideo=function(){var W=this;this.cinematicTransitionJobId&&_.aM.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.aM.addLowPriorityJob(function(){W.moveCinematicsToVideo()},500)};
_.Y.moveCinematicsToVideo=function(){var W;(W=this.JSC$19524_cinematicController)!=null&&(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,_.t87(W),W.update());W=_.S(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.Y.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.Y.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var k;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.w8("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((k=this.shortsProcessedPrevSequence)==null?void 0:k.length)||0),tooltip:this.isUpArrowHidden?"":_.w8("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.Y.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.Y.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var k;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.w8("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((k=this.shortsProcessedSequence)==null?void 0:k.length),tooltip:_.w8("NEXT_VIDEO_LABEL")||""})}};
_.Y.getPlayablePreviousIndex=function(){for(var W,k=this.index-1;k>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);k--)if(!HAL().includes(k))return k;return null};
_.Y.getIndexInSequence=function(W,k){return W.findIndex(function(C){var n;return((n=_.z(C.command,_.YZ))==null?void 0:n.videoId)===k})};
_.Y.handlePrevButtonClick=function(W){var k=this,C,n;return _.F(function(N){C=k.getPlayablePreviousIndex();if(C===null)return N.return();k.gestureType=((n=W)==null?void 0:n.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";C===0&&(k.hidePreviousButtonImmediately=!0);if(k.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){k.transitionToVideoThrottle.fire(C)}),N.return();
k.scrollToVideoThrottle.fire(C);_.ab(N)})};
_.Y.getPlayableNextIndex=function(){for(var W,k=this.index+1;k<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);k++)if(!HAL().includes(k))return k;return null};
_.Y.handleNextButtonClick=function(W,k){var C=this,n,N;return _.F(function(B){n=C.getPlayableNextIndex();if(n===null)return B.return();n===1&&(C.showPreviousButtonImmediately=!0);C.gestureType=((N=W)==null?void 0:N.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";k&&(C.gestureType=k);if(C.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){C.transitionToVideoThrottle.fire(n)}),B.return();
C.scrollToVideoThrottle.fire(n);_.ab(B)})};
_.Y.handleReelNavigateCommand=function(W,k,C){(W=_.z(W,YSi))&&k&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(C)};
_.Y.loadVideo=function(W,k){k=k===void 0?!1:k;if(W!==this.currentPlayerIndex){_.ZF().dispatch(PbN(!1));if(this.isAd()&&!k){var C;(C=this.player)==null||C.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.aM.cancelJob(this.cinematicTransitionJobId);if((k=this.JSC$19524_cinematicController)!=null){var n;(n=k.currentCinematicEffect)==null||n.pause()}if((n=this.JSC$19524_cinematicController)!=null){var N;(N=n.currentCinematicEffect)==null||N.clear()}n=W>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(n));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var B,A,w,x;N=W<0?(B=this.shortsProcessedPrevSequence)==null?void 0:(A=B[this.shortsProcessedPrevSequence.length+W])==null?void 0:A.command:(w=this.shortsProcessedSequence)==null?void 0:(x=w[W])==null?void 0:x.command;this.index=W;this.gestureType||(this.gestureType=n?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");N&&this.isVideoContentCommand(N)&&(this.ytComponentBehavior.resolveCommand(N,{form:{createScreenConfig:{clickedVisualElement:n?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(N&&this.isNonVideoContentCommand(N)){this.currentEndpoint=N;this.data=void 0;B=_.kf();A=_.z(N,_.zQ);var E,a;(A=(E=_.z(A==null?void 0:A.renderer,_.GQz))==null?void 0:(a=E.screenLoggingData)==null?void 0:a.screenVeType)&&_.jC(B,
A);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}E=_.Oe("reels_enable_early_continuation_offset")<=0?1:_.Oe("reels_enable_early_continuation_offset");var X,d;if(((X=this.reelWatchSequenceResponse)==null?0:X.continuationEndpoint)&&((d=this.reelWatchSequenceResponse)==null?0:d.entries)&&W===this.reelWatchSequenceResponse.entries.length-E){var V,c;X={contentPlaybackContext:_.Bl({},(c=_.z((V=this.currentEndpoint)==null?void 0:V.commandMetadata,_.Ok))==null?void 0:
c.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:X})}var M,p,e;((M=this.reelWatchSequenceResponse)==null?0:M.prevContinuationEndpoint)&&W===-(((p=this.reelWatchSequenceResponse)==null?void 0:(e=p.prevEntries)==null?void 0:e.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.Y.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var k,C,n=_.f().resolve(_.eq),N={shortsData:void 0,shortsPreviewThumbnail:W?(k=this.shortsProcessedSequence)==null?void 0:(C=k[W])==null?void 0:C.thumbnail:void 0};_.Fd(n,N)};
_.Y.updateTitle=function(W){var k,C;W=(W==null?0:W.adPlacements)?"":(C=W==null?void 0:(k=W.videoDetails)==null?void 0:k.title)!=null?C:"";_.Pe(this.hostElement,"yt-update-title",W)};
_.Y.registerPanel=function(W){var k=_.f().resolve(_.lj);if(k){W=_.b(W.engagementPanels||[]);for(var C=W.next();!C.done;C=W.next()){C=C.value;var n=C.engagementPanelSectionListRenderer,N=void 0,B=void 0,A=void 0,w=void 0,x=((N=n)==null?void 0:N.targetId)||((B=n)==null?void 0:B.panelIdentifier)||((A=n)==null?void 0:(w=A.identifier)==null?void 0:w.tag);N=n=void 0;(N=(n=k).registerPanelContent)==null||N.call(n,x,C)}}};
_.Y.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;_.ZF().dispatch(PbN(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.ZF().dispatch(rS7(!1));var W=_.f().resolve(_.OV);W.dismissedIndices=[];W.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.f().resolve(_.eq).close(!0)};
_.Y.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var k=this,C;(C=this.intersectionObserver)==null||C.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var n;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.J8(((n=this.reelWatchSequenceResponse)==null?void 0:n.entries)||[]),_.J8(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var N;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.J8(((N=this.reelWatchSequenceResponse)==null?void 0:N.prevEntries)||[]),_.J8(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.aM.addLowPriorityJob(function(){k.movePlayerToVideo(k.index);var B;(B=k.getActiveReelVideo(k.index))==null||B.scrollIntoView({block:"nearest",inline:k.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.aM.addLowPriorityJob(function(){k.observeShorts()},100)};
_.Y.processWatchSequence=function(W){var k=this;return W.map(function(C){C=C.command;if(k.isVideoContentCommand(C)){var n=_.z(C,_.YZ);return{reelPlayerOverlayRenderer:_.z(n==null?void 0:n.overlay,_.yT2),thumbnail:n.thumbnail,command:C}}return k.isNonVideoContentCommand(C)?(n=_.z(C,_.zQ),{reelNonVideoContentRenderer:_.z(n==null?void 0:n.renderer,_.GQz),command:C}):{command:C}})};
_.Y.calculateIntersectionObserverThreshold=function(){if(!_.m("web_shorts_dynamic_intersection_observer_threshold"))return.6;var W=_.S(this.hostElement).querySelector("ytd-reel-video-renderer"),k=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(k=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(k*.6*10)/10};
_.Y.isVideoContentCommand=function(W){_.f().resolve(_.OV);return!!_.z(W,_.YZ)};
_.Y.isNonVideoContentCommand=function(W){_.f().resolve(_.OV);return!!_.z(W,_.zQ)};
_.Y.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19524_cinematicController=new _.tx(this.shortsCinematicContainer,this.player);var k,C=_.z((k=this.data)==null?void 0:k.background,_.vy);_.sIr(this.JSC$19524_cinematicController,C);_.eCN(this.JSC$19524_cinematicController,Gz7(C));_.v2e(this.JSC$19524_cinematicController);_.aM.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.Y.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.Y.shouldDisplayReelVideoOverlay=function(W,k){return _.m("web_enable_shorts_new_carousel")?Math.abs(W-k)<2:!0};
_.oq.Object.defineProperties(z$_.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.J8(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var k=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.J8(this.prevShortsSequence.slice(0,k)),[W],_.J8(this.prevShortsSequence.slice(k+
1)))}k=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[k].thumbnail;return[].concat(_.J8(this.shortsProcessedPrevSequence.slice(0,k)),[W],_.J8(this.shortsProcessedPrevSequence.slice(k+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var W=this.getCurrentShort();if(!W||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[W];if(W==null||!W.reelNonVideoContentRenderer){var k=this.getIndexInSequence(this.shortsSequence,_.z(this.currentEndpoint,_.YZ).videoId);if(this.index===0&&k!==-1)return this.currentPlayerIndex=this.index=k,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.J8(this.shortsSequence.slice(0,this.index)),[W],_.J8(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){W.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var C,n,N,B;k=((n=_.z((C=this.shortsProcessedSequence[0])==null?void 0:C.command,_.YZ))==null?void 0:n.videoId)===((B=_.z((N=this.shortsSequence[0])==null?void 0:N.command,_.YZ))==null?void 0:B.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.J8(this.shortsProcessedSequence.slice(0,
this.index)),[W],_.J8(this.shortsSequence.slice(k)))}return[W].concat(_.J8(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)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 W,k;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(k=W.entries)==null?void 0:k.length)}var C;return!((C=this.reelWatchSequenceResponse)==null?0:C.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return this.isShortPlayable()||((k=_.z((W=this.data)==null?void 0:W.watchStatus,_.UtC))==null?void 0:(C=k.style)==null?void 0:C.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,k=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),C;if((this.data||k)&&(((C=this.data)==null?0:C.engagementPanels)||this.isAd()||k)){k=!1;this.activePanel="shorts-comments-panel";var n;C=_.b(((n=this.data)==null?void 0:n.engagementPanels)||[]);for(n=C.next();!n.done;n=C.next()){n=n.value.engagementPanelSectionListRenderer;var N=void 0,B=void 0,A=void 0,w=void 0;if((((N=n)==null?void 0:(B=N.identifier)==
null?void 0:B.tag)||((A=n)==null?void 0:A.targetId)||((w=n)==null?void 0:w.panelIdentifier))===this.activePanel){k=!0;break}}if(this.isPersistentPanelActive){var x=_.f().resolve(_.lj);_.wI(_.aM,function(){x.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}C=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
n=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(C===void 0&&n===void 0||(C==null?0:C.isDisabled)||(n==null?void 0:n.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!k){var E,a,X=(E=this.data)==null?void 0:(a=E.engagementPanels)==null?void 0:a.findIndex(function(M){var p,e;return((p=M.engagementPanelSectionListRenderer)==null?void 0:(e=
p.identifier)==null?void 0:e.tag)==="shorts-comments-panel"});
if(X!==-1&&X!==void 0){var d,V;(d=this.data)==null||(V=d.engagementPanels)==null||V.splice(X,1)}var c;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.w8("COMMENTS",void 0,"Comments")}]},visibilityButton:_.rK({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.w8("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:_.w8("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.w8("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(_.J8(Object.values(((c=this.data)==null?void 0:c.engagementPanels)||{})))}return(X=this.data)==null?void 0:X.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C,n;if((k=this.playerData)==null?0:(C=k.playabilityStatus)==null?0:(n=C.errorScreen)==null?0:n.playerInterstitialRenderer)return _.aM.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var N,B;return((N=this.data)==null?void 0:N.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((B=this.data)==null?0:B.watchStatus)&&_.z(this.data.watchStatus,_.Lfb)?(_.aM.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.oq.Object.defineProperties(z$_,{template:{configurable:!0,enumerable:!0,get:function(){if(Atr===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);Atr=W}W=Atr;return W}}});
var Vs=z$_;Vs.prototype.onNextButtonDataChange=Vs.prototype.onNextButtonDataChange;Vs.prototype.onPrevButtonDataChange=Vs.prototype.onPrevButtonDataChange;Vs.prototype.lazyUpdateMiniplayerData=Vs.prototype.lazyUpdateMiniplayerData;Vs.prototype.onShortsPipActiveChanged=Vs.prototype.onShortsPipActiveChanged;Vs.prototype.setActiveIndex=Vs.prototype.setActiveIndex;Vs.prototype.graftNvcRenderer=Vs.prototype.graftNvcRenderer;Vs.prototype.graftClientVisualElements=Vs.prototype.graftClientVisualElements;
Vs.prototype.onActiveChanged=Vs.prototype.onActiveChanged;Vs.prototype.onShortsDismiss=Vs.prototype.onShortsDismiss;Vs.prototype.onShortUndoDismiss=Vs.prototype.onShortUndoDismiss;Vs.prototype.playerDataChanged=Vs.prototype.playerDataChanged;Vs.prototype.afterPlayerStarted=Vs.prototype.afterPlayerStarted;Vs.prototype.unhideCurrentOverlay=Vs.prototype.unhideCurrentOverlay;Vs.prototype.onServiceRequestCompleted=Vs.prototype.onServiceRequestCompleted;Vs.prototype.engagementPanelsChanged=Vs.prototype.engagementPanelsChanged;
Vs.prototype.onFullscreenChange=Vs.prototype.onFullscreenChange;Vs.prototype.onResize=Vs.prototype.onResize;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Vs.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.Gp.YtPageBehavior),_.O("design:type",Object)],Vs.prototype,"ytPageBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Vs.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],Vs.prototype,"ironResizableBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Vs.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Vs.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Vs.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"playerData",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"reelWatchSequenceResponse",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"cachedReelWatchSequenceResponse",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"currentEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"nextButtonData",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"prevButtonData",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"isPreviousPageShorts",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"index",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"delayedActiveIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"playablePreviousIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"player",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"isPlayerPaused",void 0);
_.U([_.Z({selector:RCN}),_.O("design:type",Object)],Vs.prototype,"isPlayerStarted",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"intersectionObserver",void 0);_.U([_.Z(),_.O("design:type",Number)],Vs.prototype,"cinematicsInitializeJobId",void 0);_.U([_.Z(),_.O("design:type",Number)],Vs.prototype,"cinematicTransitionJobId",void 0);_.U([_.Z(),_.O("design:type",Number)],Vs.prototype,"updateMiniplayerDataJobId",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"fitToVisibleBounds",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"pageSubtype",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"panelShowDelayMs",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Vs.prototype,"enablePreviousContinuation",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"shortsPipEnabled",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"isDark",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"shortsViewTransitions",void 0);_.U([_.Z({selector:_.BG,reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"isFullscreen",void 0);_.U([_.Z({selector:_.b2,reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"isShortsPipActive",void 0);
_.U([_.gi("#shorts-inner-container"),_.O("design:type",HTMLElement)],Vs.prototype,"shortsInnerContainer",void 0);_.U([_.gi("#back-nav-button ytd-button-renderer"),_.O("design:type",_.s9)],Vs.prototype,"backNavButton",void 0);_.U([_.gi("#shorts-container"),_.O("design:type",HTMLElement)],Vs.prototype,"shortsContainer",void 0);_.U([_.og("error-screen"),_.O("design:type",HTMLElement)],Vs.prototype,"errorScreenContainer",void 0);
_.U([_.og("player"),_.O("design:type",Object)],Vs.prototype,"playerElement",void 0);_.U([_.og("shorts-cinematic-container"),_.O("design:type",HTMLElement)],Vs.prototype,"shortsCinematicContainer",void 0);_.U([_.og("initial-player-container"),_.O("design:type",HTMLElement)],Vs.prototype,"initialPlayerContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"buttonOverride",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"anchoredPanelActive",void 0);
_.U([_.Z(),_.O("design:type",String)],Vs.prototype,"activePanel",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"isActive",void 0);_.U([_.Z({selector:ZA7,reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"smallScreenPersistentPanel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"isPersistentPanelActive",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"smallScreenSqueezeBack",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"enableScrollIntoViewCenter",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"formatFirst",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Vs.prototype,"enableFlexibleOverlay",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"panelContainer",void 0);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"overlayContainer",void 0);
_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"isShortsInitialized",void 0);_.U([_.G("reelWatchSequenceResponse"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"prevShortsSequence",null);_.U([_.G("data","prevShortsSequence"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"shortsProcessedPrevSequence",null);_.U([_.G("reelWatchSequenceResponse"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"shortsSequence",null);
_.U([_.G("data","shortsSequence"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"shortsProcessedSequence",null);_.U([_.Z({reflectToAttribute:!0}),_.G("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Vs.prototype,"isUpArrowHidden",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("reelWatchSequenceResponse","index","endOfNextContinuation"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Vs.prototype,"isDownArrowHidden",null);_.U([_.Z(),_.G("index"),_.O("design:type",Number),_.O("design:paramtypes",[])],Vs.prototype,"activeIndex",null);_.U([_.G("isShortPlayable","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Vs.prototype,"shouldRenderOfflineContent",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onResize",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"anchoredEngagementPanels",null);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"watchWhileEngagementPanels",void 0);_.U([_.Hl("isFullscreen"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onFullscreenChange",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"engagementPanelsChanged",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Vs.prototype,"onServiceRequestCompleted",null);_.U([_.G("data","shortsSequence","index"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"activeReel",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"unhideCurrentOverlay",null);_.U([_.Hl("isPlayerStarted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"afterPlayerStarted",null);_.U([_.G("playerData","reelWatchSequenceResponse","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Vs.prototype,"errorScreen",null);
_.U([_.G("errorScreen"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Vs.prototype,"hasError",null);_.U([_.Hl("playerData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Vs.prototype,"playerDataChanged",null);_.U([_.jI("yt-dismissible-item-undo-feedback"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onShortUndoDismiss",null);
_.U([_.jI("yt-disable-lockup-interaction"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],Vs.prototype,"onShortsDismiss",null);_.U([_.Cq("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onActiveChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"graftClientVisualElements",null);
_.U([_.Hl("currentPlayerIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"graftNvcRenderer",null);_.U([_.Hl("index"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"setActiveIndex",null);_.U([_.Hl("isShortsPipActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onShortsPipActiveChanged",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"lazyUpdateMiniplayerData",null);_.U([_.Z(),_.O("design:type",Object)],Vs.prototype,"onOverlayDensityChanged",void 0);_.U([_.Hl("index","data","isUpArrowHidden"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onPrevButtonDataChange",null);
_.U([_.Hl("index","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Vs.prototype,"onNextButtonDataChange",null);Vs=_.U([_.T({is:"ytd-shorts"})],Vs);_.E9.registerService(_.F9p,Vs);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("JzFVk");
var xXe=function(W){return _.t("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},ww_(W.data.ctaButton,{buttonViewModel:{}}),_.t(_.Ya,{text:W.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var lXj;var tpi;var Ezo=function(){return _.R.apply(this,arguments)||this};
_.D(Ezo,_.R);Ezo.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ezo.prototype.computeBlueBottomLink=function(W){return W};
var jS=Ezo;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jS.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon_(data.bottomIcon)"}),_.O("design:type",String)],jS.prototype,"bottomIcon",void 0);
_.U([_.Z({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.O("design:type",Boolean)],jS.prototype,"enableBlueBottomLink",void 0);jS=_.U([_.T({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],jS);
_.q(jS,"ytd-web-answer-renderer",function(){if(tpi!==void 0)return tpi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tpi=W},{mode:_.UC("kevlar_poly_si_batch_j035")?1:2});var aXe;var XwN=function(){var W=_.R.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.D(XwN,_.R);XwN.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}}};
XwN.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
var H_=XwN;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],H_.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.O("design:type",Object)],H_.prototype,"hasChipBar",void 0);
H_=_.U([_.T({is:"ytd-search-header-renderer",disableElementRegistration:!0})],H_);
_.q(H_,"ytd-search-header-renderer",function(){if(aXe!==void 0)return aXe;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return aXe=W},{mode:1});var fX3;var dXr=function(){return _.R.apply(this,arguments)||this};
_.D(dXr,_.R);dXr.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var rG=dXr;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rG.prototype,"data",void 0);rG=_.U([_.T({disableElementRegistration:!0,is:"ytd-page-continuation"})],rG);
_.q(rG,"ytd-page-continuation",function(){if(fX3!==void 0)return fX3;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return fX3=W},{mode:1});var mXi;var zcr;var DX3;var Vpe=function(){return _.R.apply(this,arguments)||this};
_.D(Vpe,_.R);var JKG=Vpe;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JKG.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JKG.prototype,"data",void 0);JKG=_.U([_.T({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],JKG);
_.q(JKG,"ytd-watch-card-one-vs-one-event",function(){if(DX3!==void 0)return DX3;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return DX3=W},{mode:1});var cKr=function(){return _.R.apply(this,arguments)||this};
_.D(cKr,_.R);var IXl=cKr;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],IXl.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],IXl.prototype,"data",void 0);IXl=_.U([_.T({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],IXl);
_.q(IXl,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(zcr!==void 0)return zcr;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zcr=W},{mode:1});var S2i;var Mpe=function(){return _.R.apply(this,arguments)||this};
_.D(Mpe,_.R);var QJz=Mpe;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QJz.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QJz.prototype,"data",void 0);QJz=_.U([_.T({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],QJz);
_.q(QJz,"ytd-banner-and-box-hero-image-renderer",function(){if(S2i!==void 0)return S2i;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return S2i=W},{mode:1});var pwe;var vz5=function(){var W=_.R.apply(this,arguments)||this;W.modern=_.m("web_modern_buttons");return W};
_.D(vz5,_.R);vz5.prototype.computeIcon=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.icon)==null?void 0:k.iconType;if(C)return _.Hp(C)};
vz5.prototype.computeButtonShape=function(){var W;return{buttonText:_.y4((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.oq.Object.defineProperties(vz5.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
var gG=vz5;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gG.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],gG.prototype,"modern",void 0);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],gG.prototype,"buttonColor",null);
gG=_.U([_.T({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],gG);
_.q(gG,"ytd-call-to-action-button-renderer",function(){if(pwe!==void 0)return pwe;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pwe=W},{mode:1});var ecG;var sJ7=function(){return _.R.apply(this,arguments)||this};
_.D(sJ7,_.R);sJ7.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.S(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.yI(this.data.leftThumbnail.thumbnails,216)+")")};
var P_=sJ7;P_.prototype.onLeftThumbnailChanged=P_.prototype.onLeftThumbnailChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],P_.prototype,"data",void 0);_.U([_.Hl("data.leftThumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],P_.prototype,"onLeftThumbnailChanged",null);P_=_.U([_.T({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],P_);
_.q(P_,"ytd-collage-hero-image-renderer",function(){if(ecG!==void 0)return ecG;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ecG=W},{mode:1});var G4_;var yKe=function(){return _.R.apply(this,arguments)||this};
_.D(yKe,_.R);yKe.prototype.computeStyle=function(W){return W};
var Kz=yKe;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Kz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.O("design:type",String)],Kz.prototype,"componentStyle",void 0);Kz=_.U([_.T({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Kz);
_.q(Kz,"ytd-single-hero-image-renderer",function(){if(G4_!==void 0)return G4_;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return G4_=W},{mode:1});var $Xl;var ZI6=function(){return _.R.apply(this,arguments)||this};
_.D(ZI6,_.R);_.Y=ZI6.prototype;
_.Y.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:_.m("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.Y.computeSubtitle=function(W){if(this.data){var k;if(this.data.upcomingEventData){W=_.y4(W.subtitle);var C=Number(this.data.upcomingEventData.startTime);isNaN(C)||(k=_.Go(_.Di(W,C)))}else k=W.subtitle;return k}};
_.Y.onHeroTap=function(W){W.preventDefault();var k=this.data&&this.data.navigationEndpoint;!k||!_.er(_.vl(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.er(_.vl(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.m("kevlar_watchcard_hero_video_renderer_killswitch")?_.Pe(this.hostElement,"yt-navigate",{navigationEndpoint:k}):this.ytComponentBehavior.resolveCommand(k))};
_.Y.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.Y.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.Y.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.Y.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.Y.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),k;((k=_.z(W==null?void 0:W.commandMetadata,_.au))==null?0:k.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
var h2=ZI6;h2.prototype.dataChanged=h2.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],h2.prototype,"data",void 0);
_.U([_.Z({computed:"computeSubtitle(data)"}),_.O("design:type",String)],h2.prototype,"subtitle",void 0);_.U([_.Z({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],h2.prototype,"isReminderButtonPresent",void 0);_.U([_.Z({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],h2.prototype,"hideBottomItems",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],h2.prototype,"dataChanged",null);h2=_.U([_.T({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],h2);
_.q(h2,"ytd-watch-card-hero-video-renderer",function(){if($Xl!==void 0)return $Xl;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $Xl=W},{mode:1});var Rco;var ozr=function(){return _.R.apply(this,arguments)||this};
_.D(ozr,_.R);_.Y=ozr.prototype;_.Y.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"}}}};
_.Y.computeTitleBadges=function(W){return W?[W]:[]};
_.Y.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.Y.computeAvatarAriaLabel=function(W){if(W){var k,C,n,N;return(N=(k=W.avatar)==null?void 0:(C=k.accessibility)==null?void 0:(n=C.accessibilityData)==null?void 0:n.label)!=null?N:_.y4(W==null?void 0:W.title)}};
_.Y.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.Y.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var Wi=ozr;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wi.prototype,"data",void 0);_.U([_.Z({computed:"computeTitleBadges(data.titleBadge)"}),_.O("design:type",Array)],Wi.prototype,"titleBadges",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.O("design:type",String)],Wi.prototype,"headerStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.O("design:type",String)],Wi.prototype,"badgeRowClass",void 0);Wi=_.U([_.T({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Wi);
_.q(Wi,"ytd-watch-card-rich-header-renderer",function(){if(Rco!==void 0)return Rco;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Rco=W},{mode:1});var iIL;var T37;var q2e=function(){return _.R.apply(this,arguments)||this};
_.D(q2e,_.R);q2e.prototype.onMetadataTap=function(W){var k=this.data&&this.data.navigationEndpoint;k&&!_.er(_.vl(W),this.hostElement,["A".toString()])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:k})};
_.oq.Object.defineProperties(q2e.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 W;if(this.data.upcomingEventData){var k=_.y4(this.data.subtitle),C=Number(this.data.upcomingEventData.startTime);isNaN(C)||(W=_.Go(_.Di(k,C)))}else W=this.data.subtitle;return W}}}});
var ks=q2e;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ks.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data.style"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],ks.prototype,"isCondensed",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ks.prototype,"subtitle",null);
ks=_.U([_.T({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ks);
_.q(ks,"ytd-watch-card-compact-video-renderer",function(){if(T37!==void 0)return T37;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return T37=W},{mode:1});var umL;var UX6=function(){return _.R.apply(this,arguments)||this};
_.D(UX6,_.R);var OIG=UX6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OIG.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OIG.prototype,"data",void 0);OIG=_.U([_.T({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],OIG);
_.q(OIG,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(umL!==void 0)return umL;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return umL=W},{mode:1});var Lmr=function(){return _.R.apply(this,arguments)||this};
_.D(Lmr,_.R);Lmr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
var Ca=Lmr;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ca.prototype,"ytRendererStamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ca.prototype,"data",void 0);Ca=_.U([_.T({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Ca);
_.q(Ca,"ytd-vertical-watch-card-list-renderer",function(){if(iIL!==void 0)return iIL;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return iIL=W},{mode:1});var jJ6;var HI_=function(){var W=_.R.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.D(HI_,_.R);_.Y=HI_.prototype;_.Y.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.Y.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.Y.computeEpisodesInfo=function(W,k,C){if(W!==void 0&&k.length===W.length)return W[C]};
_.Y.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.Y.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.Y.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.Y.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.Y.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.Y.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
var na=HI_;na.prototype.onIronOverlayClosed=na.prototype.onIronOverlayClosed;na.prototype.currentSeasonIndexChanged=na.prototype.currentSeasonIndexChanged;na.prototype.dataChanged=na.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],na.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",String)],na.prototype,"label",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],na.prototype,"currentSeasonIndex",void 0);_.U([_.Z({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.O("design:type",Object)],na.prototype,"episodesInfo",void 0);_.U([_.Z({value:"false"}),_.O("design:type",Object)],na.prototype,"ariaExpanded",void 0);_.U([_.gi("#lists"),_.O("design:type",Object)],na.prototype,"lists",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],na.prototype,"dataChanged",null);_.U([_.Cq("currentSeasonIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],na.prototype,"currentSeasonIndexChanged",null);_.U([_.jI("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],na.prototype,"onIronOverlayClosed",null);
na=_.U([_.T({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],na);
_.q(na,"ytd-watch-card-section-dropdown-renderer",function(){if(jJ6!==void 0)return jJ6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jJ6=W},{mode:1});var rKj;var gzr=function(){var W=_.R.apply(this,arguments)||this;W.isSearch=!1;return W};
_.D(gzr,_.R);gzr.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
var N_=gzr;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],N_.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],N_.prototype,"isSearch",void 0);N_=_.U([_.T({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],N_);
_.q(N_,"ytd-watch-card-section-sequence-renderer",function(){if(rKj!==void 0)return rKj;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return rKj=W},{mode:1});var ww_=_.w7({buttonViewModel:_.zn});_.UK(xXe);_.qN(xXe,"ytd-button-banner-view-model",{propNames:["data"]});var Pw5=function(){var W=_.R.apply(this,arguments)||this;W.isSearch=!1;return W};
_.D(Pw5,_.R);
Pw5.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
var Ys=Pw5;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ys.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],Ys.prototype,"rounded",void 0);_.U([_.Z(),_.O("design:type",Object)],Ys.prototype,"isSearch",void 0);
Ys=_.U([_.T({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Ys);
_.q(Ys,"ytd-universal-watch-card-renderer",function(){if(mXi!==void 0)return mXi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return mXi=W},{mode:1});var Kml;_.Gj(_.GM(function(W){var k=W.data;var C;W=!((C=_.f().resolve(_.qI(_.cj)))==null||!C());C={};return _.t("overview-message-view-model",{class:_.Li("ytwOverviewMessageViewModelHost",(C.ytwOverviewMessageViewModelDarkBackground=W,C.ytwOverviewMessageViewModelLightBackground=!W,C))},_.t(_.NI,{cond:function(){return k().primaryImage},
then:function(n){return _.t(_.pi,{data:n,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.t(_.NI,{cond:function(){return k().primaryText},
then:function(){return _.t("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.t(_.Ya,{text:function(){return k().primaryText}}))}}),_.t(_.NI,{cond:function(){return k().secondaryText},
then:function(){return _.t("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.t(_.Ya,{text:function(){return k().secondaryText}}))}}))},"Lh"),"overview-message-view-model",{props:{data:_.Ik}});_.qN(_.IXA,"ytd-overview-answer-view-model",{propNames:["data"]});var hci=function(){return _.R.apply(this,arguments)||this};
_.D(hci,_.R);hci.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"}}}};
hci.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var Bi=hci;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],Bi.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bi.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Bi.prototype,"isSearch",void 0);
Bi=_.U([_.T({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Bi);
_.q(Bi,"ytd-secondary-search-container-renderer",function(){if(Kml!==void 0)return Kml;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return Kml=W},{mode:1});var Ws_;var kzo=function(){var W=_.R.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;W.isSearchDova=_.m("dova_on_search");return W};
_.D(kzo,_.R);_.Y=kzo.prototype;_.Y.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"}}}};
_.Y.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.Y.computeIsSearchFrictionPage=function(W){var k,C,n,N,B;W=W==null?void 0:(k=W.primaryContents)==null?void 0:(C=k.sectionListRenderer)==null?void 0:(n=C.contents)==null?void 0:(N=n[0])==null?void 0:(B=N.itemSectionRenderer)==null?void 0:B.contents;if(!W)return!1;k=_.b(W);for(C=k.next();!C.done;C=k.next())if(n=void 0,(n=C.value)==null?0:n.searchFrictionViewModel)return!0;return!1};
_.Y.computeShowSecondaryColumn=function(W,k){return!!(k&&k.secondaryContents&&W)};
_.Y.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.LO(this,this.debounceStampSecondarySearchContainerIfFits)),_.zM(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.LO(this,this.debounceStampSecondarySearchContainerIfFits))};
_.Y.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.Y.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.Y.debounceStampSecondarySearchContainerIfFits=function(){_.Dy(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.Y.onRetrieveLocation=function(W,k){k.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.Y.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var bl=kzo;bl.prototype.dataChanged=bl.prototype.dataChanged;bl.prototype.onRetrieveLocation=bl.prototype.onRetrieveLocation;bl.prototype.persistentGuideChanged=bl.prototype.persistentGuideChanged;bl.prototype.activeChanged=bl.prototype.activeChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],bl.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],bl.prototype,"ironResizableBehavior",void 0);_.U([_.Z(),_.O("design:type",Boolean)],bl.prototype,"active",void 0);_.U([_.Z(),_.O("design:type",Object)],bl.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.m("enable_desktop_search_bigger_thumbs")}}),
_.O("design:type",Boolean)],bl.prototype,"useBiggerThumbs",void 0);_.U([_.Z({reflectToAttribute:!0,value:function(){return _.LS("desktop_search_bigger_thumbs_style")}}),
_.O("design:type",String)],bl.prototype,"biggerThumbsStyle",void 0);_.U([_.Z(),_.O("design:type",Object)],bl.prototype,"renderSecondarySearchContainer",void 0);_.U([_.Z({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.O("design:type",Boolean)],bl.prototype,"showSecondaryColumn",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.O("design:type",Boolean)],bl.prototype,"isSearchFrictionPage",void 0);
_.U([_.Z(),_.O("design:type",Object)],bl.prototype,"isSearch",void 0);_.U([_.Z(),_.O("design:type",Object)],bl.prototype,"isSearchDova",void 0);_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bl.prototype,"activeChanged",null);_.U([_.Hl("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bl.prototype,"persistentGuideChanged",null);
_.U([_.jI("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],bl.prototype,"onRetrieveLocation",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bl.prototype,"dataChanged",null);bl=_.U([_.T({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],bl);
_.q(bl,"ytd-two-column-search-results-renderer",function(){if(Ws_!==void 0)return Ws_;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Ws_=W},{mode:1});var CbL=function(){var W=_.R.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.m("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.D(CbL,_.R);_.Y=CbL.prototype;_.Y.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:_.dV(["aa","eocs"])}}};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.z3("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.sL(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.Y.initCsi=function(){_.ClA("results",["ol","cpt"])};
_.Y.updateTitle=function(){var W=_.e_(window.location.href,"q");W||(W=_.e_(window.location.href,"search_query"));_.Pe(this.hostElement,"yt-update-title",W||"")};
_.Y.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.Y.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.m("web_srp_data_changed_terminate_imp_killswitch")||_.KY(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.Y.computeHasSearchHeader=function(W){var k;W=W==null?void 0:(k=W.header)==null?void 0:k.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.Y.computeHasSecondaryContent=function(W){var k,C;return!!(W==null?0:(k=W.contents)==null?0:(C=k.twoColumnSearchResultsRenderer)==null?0:C.secondaryContents)};
_.oq.Object.defineProperties(CbL,{template:{configurable:!0,enumerable:!0,get:function(){if(lXj===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);lXj=W}W=lXj;return W}}});
var Ax=CbL;Ax.prototype.onReloadContinuationFinish=Ax.prototype.onReloadContinuationFinish;Ax.prototype.dataChanged=Ax.prototype.dataChanged;_.U([_.v(_.Gp.YtPageBehavior),_.O("design:type",Object)],Ax.prototype,"ytPageBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ax.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],Ax.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ax.prototype,"data",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],Ax.prototype,"monitorScroll",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ax.prototype,"hasSearchHeader",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ax.prototype,"hasSecondaryContent",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ax.prototype,"hasBiggerThumbs",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ax.prototype,"dataChanged",null);
_.U([_.jI("yt-reload-continuation-finish"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ax.prototype,"onReloadContinuationFinish",null);Ax=_.U([_.T({is:"ytd-search"})],Ax);_.E9.registerService(_.Axp,Ax);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("h8y2qb");
var NJt=function(W){if(W=_.FxX(W)){var k;(k=W.sources)!=null&&k[0]?(k=_.xp2(W),k=k<1?"VERTICAL":k>1?"HORIZONTAL":"SQUARE"):k=void 0;return k}},yV=function(W){_.xX.call(this,"upload");
this.opts.query=W},BJ7=function(W,k){return _.t(YNY,{data:W,
onYtNavigate:k})},Ax7=function(W,k){return W.map(function(C){if(C.tabRenderer)return bai(C.tabRenderer);
if(C.expandableTabRenderer&&k){var n=C.expandableTabRenderer;return{customTabRenderable:function(){return k(n)}}}return{}})},bai=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.m8({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable}},F97=function(W,k){return _.hQ(W.entities,"pageHeaderEntity",k)},lwY=function(W){var k=W.data;
var C=W.noPadding===void 0?!1:W.noPadding;var n=W.enableBanner===void 0?!1:W.enableBanner;var N=W.cinematicContainerTopbarOffset;var B=W.allowCinematicContainerOverflow===void 0?!1:W.allowCinematicContainerOverflow;W=W.displayAsSidebar===void 0?!1:W.displayAsSidebar;if(k==null?0:k.tagManagerId)_.YD(k.tagManagerId,_.DE("GL")),wiB(k.tagManagerId);a:{if(k.pageHeaderEntityKey){var A=_.WB(F97,k.pageHeaderEntityKey);if(A==null?0:A.header){A=A==null?void 0:A.header;break a}}A=W&&k.sidebarContent?k.sidebarContent:
k.content}return _.t("yt-page-header-renderer",{class:"page-header-renderer-wiz"},x_1(A,{pageHeaderViewModel:{noPadding:C,enableBanner:n,cinematicContainerTopbarOffset:N,allowCinematicContainerOverflow:B,displayAsSidebar:W&&k.enableSidebarView}}))},t17=function(W){return _.jo({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},wiB=function(W){if(!_.oh(document,"gtm-noscript")){var k=document.createElement("noscript");
k.id="gtm-noscript";k.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(k)}};_.Pq(yV,_.xX);yV.prototype.JSC$7947_setLabel=function(W){yV.superClass_.JSC$7947_setLabel.call(this,W);return this};
yV.prototype.addUploadMetadata=function(W,k){yV.superClass_.addUploadMetadata.call(this,W,k);return this};var EsY=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("Ul");yV.call(this,W)};
_.D(EsY,yV);EsY.prototype.JSC$7947_setLabel=function(W){yV.prototype.JSC$7947_setLabel.call(this,W);return this};
EsY.prototype.addUploadMetadata=function(W,k){yV.prototype.addUploadMetadata.call(this,W,k);return this};var awi=[_.mV,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.Ek(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.gD(this._layoutDebouncer,_.A7,W);_.P0(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 Xit=[_.C2Z,{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(W,k){var C=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!C)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(C,k||{});W.setUp();return W},
_effectsChanged:function(W,k,C){this._tearDownEffects();W&&C&&(W.split(" ").forEach(function(n){var N;n!==""&&((N=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[n])?this._effects.push(this._boundEffect(N,k[n])):console.warn(this._getUndefinedMsg(n)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,k){k=k||{};var C=parseFloat(k.startsAt||0),n=parseFloat(k.endsAt||1),N=n-C,B=function(){};
n=C===0&&n===1?W.run:function(A,w){W.run.call(this,Math.max(0,(A-C)/N),w)};
return{setUp:W.setUp?W.setUp.bind(this,k):B,run:W.run?n.bind(this):B,tearDown:W.tearDown?W.tearDown.bind(this):B}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,k){this._effectsRunFn&&this._effectsRunFn.forEach(function(C){C(W,k)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var k={};W=parseFloat(W.scalar);k.background=this._getDOMRef("background");k.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");k.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");k.deltaBg=k.backgroundFrontLayer.offsetHeight-k.background.offsetHeight;k.deltaBg===0?(isNaN(W)&&(W=.8),k.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),k.deltaBg*=W);this._fxParallaxBackground=k},
run:function(W){var k=this._fxParallaxBackground;this.transform("translate3d(0px, "+k.deltaBg*Math.min(1,W)+"px, 0px)",k.backgroundFrontLayer);k.backgroundRearLayer&&this.transform("translate3d(0px, "+k.deltaBg*Math.min(1,W)+"px, 0px)",k.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var fwT;var d_$;var m_t=function(){};
_.Y=m_t.prototype;_.Y._scrollTargetChanged=function(){};
_.Y.scroll=function(){};
_.Y._isValidScrollTarget=function(){};
_.Y._toggleScrollListener=function(){};
_.Y.toggleScrollListener=function(){};
_.Y.createEffect=function(){};
_.Y._effectsChanged=function(){};
_.Y._layoutIfDirty=function(){};
_.Y._boundEffect=function(){};
_.Y._setUpEffect=function(){};
_.Y._tearDownEffects=function(){};
_.Y._runEffects=function(){};
_.Y._scrollHandler=function(){};
_.Y._scrollStateChanged=function(){};
_.Y._getUndefinedMsg=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y._appResetLayoutHandler=function(){};
_.Y.resetLayout=function(){};
_.Y._notifyLayoutChanged=function(){};
_.Y._notifyDescendantResize=function(){};
_.Y._setThresholdTriggered=function(){};
m_t=_.Av({_template:function(){if(d_$!==void 0)return d_$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;fwT===void 0&&(fwT=document.createElement("template"));var n=fwT;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return d_$=W},
is:"tp-yt-app-header",behaviors:[Xit,awi],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 W=_.Ek(this.$.slot).getDistributedNodes(),k=0,C;C=W[k];k++)if(C.nodeType===Node.ELEMENT_NODE)if(C.hasAttribute("sticky")){this._stickyElRef=C;break}else this._stickyElRef||(this._stickyElRef=C);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,k=this._height===0||W===0,C=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;k||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();k?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=C}},
_updateScrollState:function(W,k){if(this._height!==0){var C=0,n=this._top;var N=this._maxHeaderTop;var B=W-this._lastScrollTop,A=Math.abs(B),w=W>this._lastScrollTop,x=performance.now();this._mayMove()&&(C=this._clamp(this.reveals?n+B:W,0,N));W>=this._dHeight&&(C=this.condenses&&!this.fixed?Math.max(this._dHeight,C):C,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&A<100){if(x-this._initTimestamp>300||this._wasScrollingDown!==w)this._initScrollTop=W,this._initTimestamp=x;W>=N&&
(Math.abs(this._initScrollTop-W)>30||A>10?(w&&W>=N?C=N:!w&&W>=this._dHeight&&(C=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((C-n)/(B/(x-this._lastTimestamp)),0,300)+"ms"):C=this._top)}N=this._dHeight===0?W>0?1:0:C/this._dHeight;k||(this._lastScrollTop=W,this._top=C,this._wasScrollingDown=w,this._lastTimestamp=x);if(k||N!==this._progress||n!==C||W===0)this._progress=N,this._runEffects(N,C),this._transformHeader(C)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,k,C){return Math.min(C,Math.max(k,W))},
_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),_.Ek(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Ek(this).querySelector("[main-title]");case "condensedTitle":return _.Ek(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var z77;var D_S;_.Av({_template:function(){if(D_S!==void 0)return D_S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;z77===void 0&&(z77=document.createElement("template"));var n=z77;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return D_S=W},
is:"tp-yt-app-header-layout",behaviors:[awi],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Ek(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var k=this.getBoundingClientRect(),C=document.documentElement.clientWidth-k.right;W.style.left=k.left+"px";W.style.right=C+"px"}k=this.$.contentContainer.style;C=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(k.marginTop=C+"px",k.paddingTop=""):(k.paddingTop=C+"px",k.marginTop="")}}});var V17=new _.r("replaceFeedContentAction");var JxC=new _.r("alertCommand");var cx$=new _.r("manageLabsStateCommand");var IwE=new _.r("channelBannerEditorRenderer");var SNE=new _.r("inlineFormRenderer");var M1C=new _.r("playlistSidebarPrimaryInfoRenderer");var QDi=new _.r("productDetailsThumbnailRenderer"),piY=new _.r("productDetailsVariantRenderer"),vsT=new _.r("productDetailsVariantOptionRenderer"),e7C=new _.r("productDetailsOffersContainerRenderer"),sDt=new _.r("productDetailsOfferRenderer");var GGE=new _.r("shoppingFlaggingRenderer");var yx6=new _.r("playlistBylineRenderer");var $_$=new _.r("insertChannelTabCommand");var ZaZ=function(){return _.Wp.apply(this,arguments)||this};
_.D(ZaZ,_.Wp);_.Y=ZaZ.prototype;_.Y.activeChanged=function(){if(this.active){var W=_.S(this.hostElement).querySelector("#header");W&&_.Pe(W,"iron-resize");window.addEventListener("scroll",_.LO(this,this.onScroll))}else window.removeEventListener("scroll",_.LO(this,this.onScroll)),_.Pe(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.Y.guideVisibleChanged=function(){var W=_.S(this.hostElement).querySelector("#header");W&&_.Pe(W,"iron-resize")};
_.Y.onScroll=function(){var W=this;_.Dy(this,"onScroll",function(){var k=_.S(W.hostElement).querySelector("#header");k&&k.polymerController&&(k=k.polymerController.getScrollState().progress===1?"standard":"seamed",_.Pe(W.hostElement,"yt-request-panel-mode-change",{mode:k}))},10)};
_.Y.tabsChanged=function(){if(this.tabs){for(var W=null,k=0,C=this.tabs.length;k<C;++k){var n=this.tabs[k].tabRenderer;if(n&&n.selected){W=k;break}}this.selected=W}};
_.Y.onTabsActivate=function(W){_.Pe(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
var $K=ZaZ;$K.prototype.tabsChanged=$K.prototype.tabsChanged;$K.prototype.guideVisibleChanged=$K.prototype.guideVisibleChanged;$K.prototype.activeChanged=$K.prototype.activeChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],$K.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.Z(),_.O("design:type",Array)],$K.prototype,"tabs",void 0);
_.U([_.Z(),_.O("design:type",Object)],$K.prototype,"selected",void 0);_.U([_.Z(),_.O("design:type",Boolean)],$K.prototype,"active",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],$K.prototype,"disableHeaderFluidWidth",void 0);_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$K.prototype,"activeChanged",null);
_.U([_.Hl("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$K.prototype,"guideVisibleChanged",null);_.U([_.Hl("tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$K.prototype,"tabsChanged",null);$K=_.U([_.kr()],$K);var R77=[_.K.YtRendererBehavior,_.cV.YtdGuideStateAwareBehavior,$K.prototype];var ost=2/3,iaZ=_.F8(130749),TJC=function(W,k){var C=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){C.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:ost,moveAction:function(n){C.moveAction(n)},
triggerAction:function(){C.element.isReloading=!0;_.JW(_.kf(),{visualElement:iaZ});_.gH.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:C.element}})}}}};
_.rc(_.kf(),iaZ,this.layer);this.gesture=new _.Dv(W,k,this.refreshConfig,"pan-down");this.attach()};
_.Y=TJC.prototype;_.Y.attach=function(){this.gesture.attach()};
_.Y.detach=function(){this.gesture.detach()};
_.Y.reset=function(){this.element.close()};
_.Y.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.Y.moveAction=function(W){this.element.rotation=W*360};var qNY=_.F8(130750),Zv=function(W,k,C,n,N){var B=this;this.element=W;this.parent=C;this.channelHeader=n;this.ytdReduxDispatch=N;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){B.tabsStartAtInPx=B.channelHeader.clientHeight-48;var A;(A=B.selectedTab)!=null&&A.title&&(A=_.f().resolve(_.qI(_.yF)))&&(A=A.getCurrentPage(),B.lastVisitedTabScrollPosition=A.getScrollTop(),B.previousTab&&
((B.lastVisitedTabScrollPosition===void 0?0:B.lastVisitedTabScrollPosition<B.channelHeader.clientHeight-48)?B.scrollPositionForTabs.has(B.selectedTab.title)&&B.scrollPositionForTabs.delete(B.selectedTab.title):B.scrollPositionForTabs.set(B.selectedTab.title,A.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:u_7(),triggerAction:function(){B.navigate(B.previousTab)},
moveAction:function(A,w){B.moveAction(A,w)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-u_7(),triggerAction:function(){B.navigate(B.nextTab)},
moveAction:function(A,w){B.moveAction(A,w)}}}};
_.rc(_.kf(),qNY,this.layer);this.gesture=new _.Dv(W,k,this.tabConfig);this.attach()};
Zv.prototype.attach=function(){this.gesture.attach()};
Zv.prototype.detach=function(){this.gesture.detach()};
Zv.prototype.tabsChanged=function(W){if(W){var k=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.b(W);for(var C=W.next();!C.done;C=W.next()){C=C.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=C);var n=void 0;if((n=C)==null?0:n.selected)this.previousTab=k,this.selectedTab=C;k=C}k=this.gesture;W=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}});
k.config=W;this.scrollPositionNeedsUpdate=!0}};
Zv.prototype.moveAction=function(W,k){if(!this.tabsElement){var C;this.tabsElement=(C=this.parent.header)==null?void 0:C.tabsElement;k==="right"&&this.previousTab?_.Ukx(_.jD.instance,this.previousTab.endpoint,{},""):k==="left"&&this.nextTab&&_.Ukx(_.jD.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}C=this.tabsElement._pos;k==="right"&&(W*=-1);this.tabsElement._positionBar(C.width,C.left*1+C.width*W)};
var u_7=function(){var W,k;return(k=(W=_.f().resolve(_.yF).getCurrentPage())==null?void 0:W.clientWidth)!=null?k:0};
Zv.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(t17(!0)),_.JW(_.kf(),{visualElement:qNY}),_.gH.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var U_E;var Oa7;var L9E=function(){return _.R.apply(this,arguments)||this};
_.D(L9E,_.R);L9E.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var R7=L9E;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],R7.prototype,"data",void 0);R7=_.U([_.T({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],R7);
_.q(R7,"ytd-labs-edit-renderer",function(){if(Oa7!==void 0)return Oa7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Oa7=W},{mode:1});var jDB;var o7=function(){var W=_.R.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(o7,_.R);o7.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
o7.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
o7.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
o7.prototype.setBackgroundImage=function(W){_.Op(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var Tp=o7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Tp.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Tp.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Tp.prototype,"dark",void 0);
Tp=_.U([_.T({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Tp);
_.q(Tp,"ytd-labs-header-renderer",function(){if(jDB!==void 0)return jDB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jDB=W},{mode:1});var HaE;var qB=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.D(qB,_.R);qB.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"}}}}}};
qB.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
qB.prototype.onManageLabsState=function(W){if(W=_.z(W,cx$))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.KY(this.hostElement,"yt-check-labs-opted-in-state").some(function(k){return k})&&this.data.confirmationDialogCommand?_.CB(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.f().resolve(_.uI).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.f().resolve(_.uI).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
qB.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.oq.Object.defineProperties(qB.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var ut=qB;ut.prototype.onYtToggleButton=ut.prototype.onYtToggleButton;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ut.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],ut.prototype,"itemStyle",null);_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ut.prototype,"onYtToggleButton",null);ut=_.U([_.T({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],ut);
_.q(ut,"ytd-labs-item-renderer",function(){if(HaE!==void 0)return HaE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return HaE=W},{mode:1});var rxB;var gsi;var PlC=function(){return _.R.apply(this,arguments)||this};
_.D(PlC,_.R);var K9Z=PlC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],K9Z.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],K9Z.prototype,"data",void 0);K9Z=_.U([_.T({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],K9Z);
_.q(K9Z,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(gsi!==void 0)return gsi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gsi=W},{mode:1});var h7B;var Wr6=function(){return _.R.apply(this,arguments)||this};
_.D(Wr6,_.R);Wr6.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.Op(this.hostElement,W)}};
Wr6.prototype.colorFromDecimal=function(W){return _.Xi(Number(W||0))};
var Ua=Wr6;Ua.prototype.observeSuperchatChip=Ua.prototype.observeSuperchatChip;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ua.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ua.prototype,"observeSuperchatChip",null);Ua=_.U([_.T({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Ua);
_.q(Ua,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(h7B!==void 0)return h7B;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return h7B=W},{mode:1});var kZT=function(){return _.R.apply(this,arguments)||this};
_.D(kZT,_.R);kZT.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"}}}};
_.oq.Object.defineProperties(kZT.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var Oa=kZT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.md),_.O("design:type",Object)],Oa.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Oa.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Oa.prototype,"hideMessageBlock",null);
Oa=_.U([_.T({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Oa);
_.q(Oa,"ytd-live-chat-history-entry-renderer",function(){if(rxB!==void 0)return rxB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return rxB=W},{mode:1});var C7$;var nR7=function(){return _.R.apply(this,arguments)||this};
_.D(nR7,_.R);var NsC=nR7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],NsC.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],NsC.prototype,"data",void 0);NsC=_.U([_.T({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],NsC);
_.q(NsC,"ytd-channel-options-renderer",function(){if(C7$!==void 0)return C7$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return C7$=W},{mode:1});var YHu;var Bs7=function(){return _.R.apply(this,arguments)||this};
_.D(Bs7,_.R);Bs7.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var L4=Bs7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],L4.prototype,"data",void 0);L4=_.U([_.T({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],L4);
_.q(L4,"ytd-settings-email-item-renderer",function(){if(YHu!==void 0)return YHu;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return YHu=W},{mode:1});var bo6;var jv=function(){return _.R.apply(this,arguments)||this};
_.D(jv,_.R);jv.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"}}}};
jv.prototype.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
jv.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.oq.Object.defineProperties(jv.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var Hy=jv;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hy.prototype,"data",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Hy.prototype,"expanded",void 0);
_.U([_.G("expanded"),_.O("design:type",String),_.O("design:paramtypes",[])],Hy.prototype,"emailListExpanded",null);_.U([_.gi("#options"),_.O("design:type",Object)],Hy.prototype,"options",void 0);Hy=_.U([_.T({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Hy);
_.q(Hy,"ytd-settings-email-list-renderer",function(){if(bo6!==void 0)return bo6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bo6=W},{mode:1});var ArC;var Fr$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.D(Fr$,_.R);Fr$.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"}}}};
Fr$.prototype.handleSignalActionSubmitForm=function(){var W,k=(W=this.formRenderer)==null?void 0:W.getForm();k&&this.data.serviceEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},k,{element:this.hostElement})})};
var rU=Fr$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],rU.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rU.prototype,"data",void 0);_.U([_.gi("yt-form-renderer"),_.O("design:type",Object)],rU.prototype,"formRenderer",void 0);
rU=_.U([_.T({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],rU);
_.q(rU,"ytd-settings-gaia-link-renderer",function(){if(ArC!==void 0)return ArC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ArC=W},{mode:1});var wIA;var gU=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.D(gU,_.R);gU.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.SdZ()&&this.set("data.hidden",!1)};
gU.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.m("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.IRA().then(function(k){k&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.T5("NotificationsDisabled").then(function(C){C||_.KY(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!C]);W.set("data.hidden",!1)}).catch(function(){}))})})};
gU.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}}}}};
gU.prototype.handleUpdateOptionsCommand=function(W){(W=_.z(W,_.eeI))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
var Py=gU;Py.prototype.onSwitchReady=Py.prototype.onSwitchReady;Py.prototype.dataChanged=Py.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Py.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Py.prototype,"data",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Py.prototype,"dataChanged",null);_.U([_.jI("yt-settings-switch-ready"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Py.prototype,"onSwitchReady",null);Py=_.U([_.T({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Py);
_.q(Py,"ytd-settings-options-renderer",function(){if(wIA!==void 0)return wIA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return wIA=W},{mode:1});var x4T;var lhZ=function(){return _.R.apply(this,arguments)||this};
_.D(lhZ,_.R);lhZ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
lhZ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var K4=lhZ;K4.prototype.onYtExpanderMoreTapped=K4.prototype.onYtExpanderMoreTapped;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],K4.prototype,"data",void 0);
_.U([_.jI("yt-expander-more-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],K4.prototype,"onYtExpanderMoreTapped",null);K4=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],K4);
_.q(K4,"ytd-product-details-description-renderer",function(){if(x4T!==void 0)return x4T;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return x4T=W},{mode:1});var tdT;var ERi=function(){var W=_.R.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.D(ERi,_.R);ERi.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.oq.Object.defineProperties(ERi.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:(k=W.offerData)==null?void 0:k.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((k=this.data)==null?void 0:k.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((k=this.data)==null||!k.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var hs=ERi;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],hs.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hs.prototype,"data",void 0);
_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],hs.prototype,"shippingIcon",void 0);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],hs.prototype,"shippingAddressIcon",void 0);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],hs.prototype,"googleGuaranteeIcon",void 0);
_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?String:void 0}),_.O("design:type",Object)],hs.prototype,"returnPolicyIcon",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hs.prototype,"showAdditionalFees",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hs.prototype,"showMultiPurchaseButtons",null);
_.U([_.G("data","showMultiPurchaseButtons"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],hs.prototype,"showPurchaseData",null);hs=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],hs);
_.q(hs,"ytd-product-details-hero-offer-renderer",function(){if(tdT!==void 0)return tdT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tdT=W},{mode:1});var ahB;var XIY;var fhY=function(){return _.R.apply(this,arguments)||this};
_.D(fhY,_.R);_.Y=fhY.prototype;_.Y.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.Y.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.Y.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.hA(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.Y.onMouseLeaveImage=function(){_.hA(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.Y.handleSelection=function(){this.data&&_.Pe(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.oq.Object.defineProperties(fhY.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
var W_=fhY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],W_.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],W_.prototype,"isSelected",null);W_=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],W_);
_.q(W_,"ytd-product-details-thumbnail-renderer",function(){if(XIY!==void 0)return XIY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return XIY=W},{mode:1});var d46=function(){var W=_.R.apply(this,arguments)||this;var k={};W.actionMap=(k["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",k["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",k);W.selectedThumbnailIndex=0;W.selectItem=function(C){C.target.onKeyDown(C)};
return W};
_.D(d46,_.R);_.Y=d46.prototype;_.Y.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.Y.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.Y.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.Y.onThumbnailSelected=function(W,k){this.selectedThumbnailIndex=k};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.Y.updateOffset=function(){var W=_.S(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.oq.Object.defineProperties(d46.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var k,C;return((k=this.data)==null?void 0:(C=k.imageRenderer)==null?void 0:C.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var k;return(k=_.z(this.data.imageRenderer[this.selectedThumbnailIndex],QDi))==null?void 0:k.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C,n,N=(n=(k=this.data)==null?void 0:(C=k.imageRenderer)==null?void 0:C.map(function(B,A){return{productDetailsThumbnailRenderer:Object.assign({},_.z(B,QDi),{index:A,isSelected:A===W.selectedThumbnailIndex})}}))!=null?n:[];
return Object.assign({},this.data,{imageRenderer:N})}}});
var kb=d46;kb.prototype.updateOffset=kb.prototype.updateOffset;kb.prototype.dataChanged=kb.prototype.dataChanged;kb.prototype.onThumbnailSelected=kb.prototype.onThumbnailSelected;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.i_.YtdHorizontalListBehavior),_.O("design:type",Object)],kb.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],kb.prototype,"componentBehavior",void 0);_.U([_.v([_.$D.YtActionHandlerBehavior]),_.O("design:type",Object)],kb.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kb.prototype,"data",void 0);_.U([_.Z({value:"$.items.children"}),_.O("design:type",String)],kb.prototype,"itemsPath",void 0);
_.U([_.Z({value:3}),_.O("design:type",Number)],kb.prototype,"initialCount",void 0);_.U([_.gi("#items"),_.O("design:type",Object)],kb.prototype,"items",void 0);_.U([_.Z(),_.O("design:type",Object)],kb.prototype,"selectedThumbnailIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],kb.prototype,"hoverThumbnail",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],kb.prototype,"showThumbnails",null);
_.U([_.jI("ytd-product-details-thumbnail-renderer-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Number]),_.O("design:returntype")],kb.prototype,"onThumbnailSelected",null);_.U([_.G("data","selectedThumbnailIndex","hoverThumbnail"),_.O("design:type",Object),_.O("design:paramtypes",[])],kb.prototype,"thumbnailDetails",null);_.U([_.G("data","selectedThumbnailIndex"),_.O("design:type",Object),_.O("design:paramtypes",[])],kb.prototype,"populatedData",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kb.prototype,"dataChanged",null);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kb.prototype,"updateOffset",null);kb=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],kb);
_.q(kb,"ytd-product-details-image-carousel-renderer",function(){if(ahB!==void 0)return ahB;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ahB=W},{mode:_.UC("kevlar_poly_si_batch_j079")?1:2});var m4Y;var zvB=function(){return _.R.apply(this,arguments)||this};
_.D(zvB,_.R);var Cz=zvB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Cz.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Cz.prototype,"data",void 0);Cz=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Cz);
_.q(Cz,"ytd-product-details-offer-renderer",function(){if(m4Y!==void 0)return m4Y;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return m4Y=W},{mode:1});var D4t;var Vd7=function(){var W=_.R.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.D(Vd7,_.R);Vd7.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,k=_.z((W=this.data)==null?void 0:W.viewOffersButton,_.Vq);k&&this.ytRendererBehavior.logExplicitClick(k)};
Vd7.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.oq.Object.defineProperties(Vd7.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return(C=_.z((W=this.data)==null?void 0:(k=W.offers)==null?void 0:k[0],sDt))==null?void 0:(n=C.offerData)==null?void 0:n.vendorLogoUrl}}});
var nz=Vd7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],nz.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nz.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],nz.prototype,"isOffersHidden",void 0);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],nz.prototype,"firstOfferVendorLogoUrl",null);nz=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],nz);
_.q(nz,"ytd-product-details-offers-container-renderer",function(){if(D4t!==void 0)return D4t;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return D4t=W},{mode:1});var JrS;var cr6;var Nr=function(){return _.R.apply(this,arguments)||this};
_.D(Nr,_.R);Nr.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Nr.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.hA(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Nr.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.hA(this,"ytd-product-details-variant-image-unselect")};
_.oq.Object.defineProperties(Nr.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((k=this.data)==null?void 0:k.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,k;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(k=this.data)==null?void 0:k.variantOptionAccessibilityLabel}}});
var Yb=Nr;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Yb.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Yb.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Yb.prototype,"displayType",void 0);
_.U([_.G("displayType","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Yb.prototype,"isImageButton",null);_.U([_.G("displayType","data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Yb.prototype,"isPillButton",null);_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Yb.prototype,"isActive",null);
_.U([_.G("data"),_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Yb.prototype,"isUnavailable",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yb.prototype,"thumbnailDetails",null);_.U([_.G("isUnavailable","data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Yb.prototype,"accessibilityLabel",null);Yb=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Yb);
_.q(Yb,"ytd-product-details-variant-option-renderer",function(){if(cr6!==void 0)return cr6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return cr6=W},{mode:1});var Ihi;var SHu=function(){var W=_.R.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(k){k=k===void 0?!1:k;W.variantsExpanded||W.showOptions()||!k||(W.variantsExpanded=!0);if(W.variantsExpanded){k=_.b(W.items.children);for(var C=k.next();!C.done;C=k.next())C.value.hidden=!1}W.initialized=!0};
return W};
_.D(SHu,_.R);_.Y=SHu.prototype;_.Y.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.Y.showOptions=function(){for(var W=_.b(this.items.children),k=W.next();!k.done;k=W.next())k.value.hidden=!0;var C=this.container.getBoundingClientRect().width,n=0,N=W=0;k=!1;for(var B=_.b(this.items.children),A=B.next();!A.done;A=B.next()){A=A.value;A.hidden=!1;var w=A.getBoundingClientRect().width;if(n+w<C)n+=w;else if(++N<2)n=w;else break;W+=1;A.hasAttribute("is-active")&&(k=!0)}for(C=W;C<this.items.children.length;C++)this.items.children[C].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return k};
_.Y.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.gD(this.computeVariantsDebouncer,_.$v.after(100),this.computeVariants)};
_.Y.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.Y.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.oq.Object.defineProperties(SHu.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.variantOptionRenderers)==null?void 0:k.find(function(B){return _.z(B,vsT).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),n,N;
return(N=(n=_.z(C,vsT))==null?void 0:n.name)!=null?N:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
var B_=SHu;B_.prototype.debouncedComputeVariants=B_.prototype.debouncedComputeVariants;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],B_.prototype,"componentBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],B_.prototype,"ironResizableBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],B_.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],B_.prototype,"variantsExpanded",void 0);_.U([_.Z(),_.O("design:type",Object)],B_.prototype,"hideShowMoreLessVariantButton",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],B_.prototype,"initialized",void 0);_.U([_.gi("#items"),_.O("design:type",HTMLDivElement)],B_.prototype,"items",void 0);_.U([_.gi("#container"),_.O("design:type",HTMLDivElement)],B_.prototype,"container",void 0);
_.U([_.gi("#more-variants-button"),_.O("design:type",HTMLElement)],B_.prototype,"moreVariantsButton",void 0);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],B_.prototype,"selectedOptionName",null);_.U([_.Hl("data","variantsExpanded"),_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],B_.prototype,"debouncedComputeVariants",null);
_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],B_.prototype,"displayType",null);_.U([_.G("displayType"),_.O("design:type",Object),_.O("design:paramtypes",[])],B_.prototype,"variantItemsClassname",null);B_=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],B_);
_.q(B_,"ytd-product-details-variant-renderer",function(){if(Ihi!==void 0)return Ihi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Ihi=W},{mode:1});var MdT=function(){return _.R.apply(this,arguments)||this};
_.D(MdT,_.R);
MdT.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"}}}};
_.oq.Object.defineProperties(MdT.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(k=_.z((W=this.data)==null?void 0:W.offersContainerRenderer,e7C))==null?void 0:k.offers;return C!==void 0&&(C==null?void 0:C.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((C=(W=this.data)==null?void 0:(k=W.variants)==null?void 0:k.map(function(n){var N,B;n=(B=(N=_.z(n,piY))==null?void 0:N.variantOptionRenderers)==null?void 0:B.find(function(w){var x;return((x=_.z(w,vsT))==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var A;return(A=_.z(n,vsT))==null?void 0:A.name}).filter(function(n){return typeof n==="string"}))!=null?C:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n=(k=_.z((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,GGE))==null?void 0:(C=k.reportButton)==null?void 0:C.buttonRenderer;if(n)return{text:n.text,command:n.command,icon:{iconType:"FLAG"},accessibilityData:n.accessibilityData,trackingParams:n.trackingParams,loggingDirectives:n.loggingDirectives}}}});
var bU=MdT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bU.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bU.prototype,"data",void 0);
_.U([_.gi("#image-carousel-renderer"),_.O("design:type",Object)],bU.prototype,"imageCarouselRenderer",void 0);_.U([_.gi("#hero-offer-renderer"),_.O("design:type",Object)],bU.prototype,"productDetailsHeroOfferRenderer",void 0);_.U([_.gi("#variants"),_.O("design:type",Object)],bU.prototype,"productDetailsVariantRenderer",void 0);_.U([_.gi("#offers"),_.O("design:type",Object)],bU.prototype,"productDetailsOffersContainerRenderer",void 0);
_.U([_.gi("#description-renderer"),_.O("design:type",Object)],bU.prototype,"productDetailsDescriptionRenderer",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showPurchaseData",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showHeroOfferRenderer",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showBrandText",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showOffers",null);_.U([_.G("showOffers","showPurchaseData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showBuySeparator",null);_.U([_.G("showOffers","showPurchaseData"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],bU.prototype,"showBuyCard",null);_.U([_.G("data"),_.O("design:type",String),_.O("design:paramtypes",[])],bU.prototype,"selectedVariantsText",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],bU.prototype,"shoppingReportingButtonData",null);bU=_.U([_.T({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],bU);
_.q(bU,"ytd-product-details-renderer",function(){if(JrS!==void 0)return JrS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JrS=W},{mode:1});var Qo$;var pIB;var vRS;var ev7=function(){return _.R.apply(this,arguments)||this};
_.D(ev7,_.R);ev7.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.oq.Object.defineProperties(ev7.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var A2=ev7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A2.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],A2.prototype,"formattedAmount",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],A2.prototype,"ariaLabel",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.style"),_.O("design:type",String),_.O("design:paramtypes",[])],A2.prototype,"vcBalanceWidgetStyle",null);A2=_.U([_.l0({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],A2);
_.q(A2,"yt-vc-balance-renderer",function(){if(vRS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;pIB===void 0&&(pIB=document.createElement("template"));var n=pIB;C.call(k,n.content.cloneNode(!0),W.content.firstChild);vRS=W}W=vRS;return W},{mode:2});_.EJ("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var soC=function(){return _.R.apply(this,arguments)||this};
_.D(soC,_.R);_.oq.Object.defineProperties(soC.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
var FA=soC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],FA.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FA.prototype,"data",void 0);_.U([_.Z({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,k){return _.hQ(W.entities,"vcBalanceEntity",k)}}),
_.O("design:type",Object)],FA.prototype,"vcBalanceEntity",void 0);_.U([_.G("vcBalanceEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],FA.prototype,"formattedAmount",null);_.U([_.G("vcBalanceEntity"),_.O("design:type",String),_.O("design:paramtypes",[])],FA.prototype,"vcBalanceAriaLabel",null);FA=_.U([_.T({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],FA);
_.q(FA,"ytd-vc-balance-renderer",function(){if(Qo$!==void 0)return Qo$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Qo$=W},{mode:1});var GZE;var yr6=function(){var W=_.R.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.D(yr6,_.R);yr6.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
yr6.prototype.reset=function(){this.hostElement.style.opacity=""};
yr6.prototype.close=function(){var W=this;return _.F(function(k){if(k.nextAddress==1)return _.l(k,W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.ab(k)})};
var wG=yr6;wG.prototype.rotationChanged=wG.prototype.rotationChanged;_.U([_.Z(),_.O("design:type",Object)],wG.prototype,"rotation",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],wG.prototype,"isReloading",void 0);_.U([_.gi("#icon"),_.O("design:type",HTMLElement)],wG.prototype,"icon",void 0);_.U([_.Hl("rotation"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wG.prototype,"rotationChanged",null);
wG=_.U([_.T({disableElementRegistration:!0,is:"ytd-refresh"})],wG);
_.q(wG,"ytd-refresh",function(){if(GZE!==void 0)return GZE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return GZE=W},{mode:1});var $4u;var Zo6;var RvY=function(W,k,C,n,N,B,A,w){this.minWidth=W;this.minHeight=k;this.recommendedWidth=C;this.recommendedHeight=n;this.JSC$19229_maxFileSize=N;this.title=B;this.bannerGalleryTitle=A;this.channelId=w;this.picker_=null;W=_.eHm("yt-banner");k=W.addView;C=(new EsY("youtubebanner")).addUploadMetadata("silo_id","19");C.opts.ytMaxFileSize=this.JSC$19229_maxFileSize;n=this.recommendedHeight;C.opts.ytRecWidth=this.recommendedWidth;C.opts.ytRecHeight=n;k.call(W,C);W.addView(new _.E3);k=W.addView;C=new _.E3;
C.opts.type="ytbanner";k.call(W,C.JSC$7947_setLabel(this.bannerGalleryTitle));k=W.setTitle(this.title).setSize(1E3);k.urlParamMap_.set("thumbs","orig");C=this.minWidth;n=this.minHeight;if(isNaN(C)||isNaN(n))throw Error("kb`"+C+"`"+n);k.urlParamMap_.set("minSize",C+"x"+n);k.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
RvY.prototype.open=function(){var W=this;return new _.Wx(function(k,C){_.Ce8(W.builder_,function(n){n.action=="picked"?k(n):n.action=="cancel"&&C(Error("Wl"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
RvY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var oR7=function(W){this.channelId=W},io$=function(W,k){var C="";
k.viewToken&&(C=k.viewToken[2].type);var n=k.docs[0];k=n.crop;W={channel_id:W.channelId,fife_url:n.thumbnails[0].url,photo_id:n.id,is_gallery_image:C=="ytbanner"};k&&(W.crop_top=k.top,W.crop_right=k.right,W.crop_bottom=k.bottom,W.crop_left=k.left);return _.YZX("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:W})};var Ts7=function(){var W=_.R.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.D(Ts7,_.R);_.Y=Ts7.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){this.picker&&this.picker.dispose()};
_.Y.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.Y.computeAriaLabel=function(W){return W};
_.Y.onTap=function(){var W=this,k;if((k=this.data)==null||!k.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new RvY(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var C;(C=this.picker)==null||C.open().then(function(n){W.handleBannerPicked(n)},function(){})}};
_.Y.handleBannerPicked=function(W){var k=this;this.uploader||(this.uploader=new oR7(this.data.channelId||""));this.message=this.data.uploadingText;io$(this.uploader,W).then(function(C){k.handleBannerUploadSucceeded(C)},function(C){k.handleBannerUploadFailed(C)})};
_.Y.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.Pe(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.Y.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
var xb=Ts7;xb.prototype.dataChanged=xb.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],xb.prototype,"componentBehavior",void 0);_.U([_.v(_.DI),_.O("design:type",Object)],xb.prototype,"ironButtonState",void 0);_.U([_.Z(),_.O("design:type",Object)],xb.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.O("design:type",Object)],xb.prototype,"ariaLabel",void 0);
_.U([_.Z(),_.O("design:type",Object)],xb.prototype,"message",void 0);_.U([_.Z(),_.O("design:type",Object)],xb.prototype,"picker",void 0);_.U([_.Z(),_.O("design:type",Object)],xb.prototype,"uploader",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xb.prototype,"dataChanged",null);xb=_.U([_.T({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],xb);
_.q(xb,"ytd-channel-banner-editor-renderer",function(){if(Zo6!==void 0)return Zo6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Zo6=W},{mode:1});var qHA;var uuC=_.iH(["#"]),U4E=function(){return _.R.apply(this,arguments)||this};
_.D(U4E,_.R);U4E.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.eN(uuC)};
U4E.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.BpA(_.gF(),W.targetId,this.moreIcon)};
var lU=U4E;lU.prototype.dataChanged=lU.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],lU.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lU.prototype,"data",void 0);_.U([_.gi("#more-icon"),_.O("design:type",Object)],lU.prototype,"moreIcon",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lU.prototype,"dataChanged",null);
lU=_.U([_.T({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],lU);
_.q(lU,"ytd-channel-tagline-renderer",function(){if(qHA!==void 0)return qHA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qHA=W},{mode:1});var Oo1;var LrA=function(){return _.R.apply(this,arguments)||this};
_.D(LrA,_.R);_.Y=LrA.prototype;_.Y.ready=function(){var W=this;_.S(this.hostElement).querySelector("#form").addEventListener("submit",function(k){W.onSubmit(k)})};
_.Y.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.Y.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.Y.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.Y.openOnClickHandler=function(){this.input.focus()};
_.Y.onSubmit=function(W){W.preventDefault();return!1};
_.Y.submitOnEnterKeyUp=function(W){var k;if(W.keyCode===13&&((k=this.data)==null?0:k.expandedText)){W=this.data.endpoint;k=_.JU.unsafeClone(W);var C;((C=_.z(k==null?void 0:k.commandMetadata,_.Ok))==null?0:C.url)?(_.z(k.commandMetadata,_.Ok).url=_.JB(_.z(k.commandMetadata,_.Ok).url,"query",this.data.expandedText),_.z(k,_.kZ)&&(_.z(k,_.kZ).query=this.data.expandedText),_.Pe(this.hostElement,"yt-navigate",{endpoint:k,tempData:{disableCache:!0}})):(C=new _.AM("Error: Trying to navigate to an endpoint without url",
W),_.dI(C))}};
_.Y.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
var t2=LrA;t2.prototype.onDataChanged=t2.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$Z$),_.O("design:type",Object)],t2.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],t2.prototype,"data",void 0);_.U([_.gi("#input"),_.O("design:type",Object)],t2.prototype,"input",void 0);_.U([_.gi("#icon-button"),_.O("design:type",HTMLElement)],t2.prototype,"iconButton",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],t2.prototype,"onDataChanged",null);t2=_.U([_.T({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],t2);
var YNY=_.u0()(t2,"ytd-expandable-tab-renderer",function(){if(Oo1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);Oo1=W}W=Oo1;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var jot;var Hoi=_.iH(["#"]),rrY=function(){return _.R.apply(this,arguments)||this};
_.D(rrY,_.R);rrY.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.eN(Hoi)};
_.oq.Object.defineProperties(rrY.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return _.fi((W=this.data)==null?void 0:W.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return _.fi((W=this.data)==null?void 0:W.moreOnTap)}}});
var Ew=rrY;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ew.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Ew.prototype,"usePageHeaderStyle",void 0);_.U([_.G("data.primaryOnTap"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ew.prototype,"primaryLinkEndpoint",null);
_.U([_.G("data.moreOnTap"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ew.prototype,"moreEndpoint",null);Ew=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],Ew);
_.q(Ew,"ytd-channel-header-links-view-model",function(){if(jot!==void 0)return jot;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jot=W},{mode:1});var gRC;var P7S=function(){var W=_.R.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.w8("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.D(P7S,_.R);P7S.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
P7S.prototype.computeHref=function(W){var k;return((k=_.z(W,_.pM))==null?0:k.url)?this.componentBehavior.computeHref_(W):null};
P7S.prototype.onTap=function(){var W,k;(W=this.data)==null||!W.editAvatarServiceEndpoint||((k=_.z(this.data.editAvatarServiceEndpoint,_.pM))==null?0:k.url)||_.f().resolve(_.uI).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
var aF=P7S;_.U([_.v(_.DI),_.O("design:type",Object)],aF.prototype,"ironButtonState",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],aF.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],aF.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],aF.prototype,"avatarSize",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],aF.prototype,"ariaLabel",void 0);
aF=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],aF);
_.q(aF,"ytd-channel-avatar-editor",function(){if(gRC!==void 0)return gRC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gRC=W},{mode:1});_.Gj(_.ZIY,"yt-tab-group-shape",{props:{shape:_.Ik}});var KrC=function(){var W=_.R.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(k){return BJ7(k,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.richGridMiniMode=!1;W.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 W};
_.D(KrC,_.R);_.Y=KrC.prototype;_.Y.areAllFalse=function(W,k,C){return!W&&!k&&!C};
_.Y.updateJoinButtonOverrides=function(){var W;(W=_.S(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||W.set("overrides",this.joinButtonOverrides)};
_.Y.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]]"}}}}}};
_.Y.attached=function(){this.data&&this.dataChanged()};
_.Y.computeHeaderDisabled=function(W,k){return k||!W};
_.Y.handleButtonRefreshAction=function(W){(W=_.z(W,_.xex))&&this.set("data.sponsorButton",W.membershipButton)};
_.Y.handleInsertTabCommand=function(W){var k=_.z(W,$_$);k&&k.externalChannelId===this.data.channelId&&(k.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(C){return C.tabRenderer&&C.tabRenderer.tabIdentifier===k.tabIdentifier})||this.splice("tabs",k.tabIndex||-1,0,k.tab))};
_.Y.handleRefreshChannelTabAction=function(W){var k,C=(k=this.tabs)==null?void 0:k.filter(function(B){var A;return(A=B.tabRenderer)==null?void 0:A.selected});
k=(C==null?void 0:C.length)===1?C[0]:void 0;var n;if((k==null?void 0:(n=k.tabRenderer)==null?void 0:n.tabIdentifier)===W){var N;_.Pe(this.hostElement,"yt-navigate",{endpoint:(N=k.tabRenderer)==null?void 0:N.endpoint,tempData:{disableCache:!0}})}};
_.Y.onWindowResize=function(){_.S(this.hostElement).querySelector("#header").fire("iron-resize")};
_.Y.dataChanged=function(){var W=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var k=_.yI(this.data.banner.thumbnails,this.hostElement.clientWidth);k&&(k.indexOf("//")===0&&(k="https:"+k),this.hasChannelArt=!0,_.Op(this.hostElement,{"--yt-channel-banner":"url("+k+")"}))}this.hasChannelArt!==W&&_.S(this.hostElement).querySelector("#header").fire("iron-resize")};
_.Y.onBannerUpdated=function(W,k){W=window.devicePixelRatio>1?k.hq_url:k.url;W.indexOf("//")===0&&(W="https:"+W);this.hasChannelArt=!0;_.Op(this.hostElement,{"--yt-channel-banner":"url("+W+")"})};
_.Y.observeLightsourcePalette=function(){var W,k,C=(W=this.data)==null?void 0:(k=W.headerColorPalette)==null?void 0:k.lightsourceColorPaletteData;C&&_.lV(this.hostElement,C)};
_.Y.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Y.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Y.handleUnsubscribeAction=function(){var W,k;((k=_.z((W=this.data)==null?void 0:W.sponsorButton,_.Vq))==null?void 0:k.style)==="STYLE_PRIMARY"&&_.S(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.Y.onFocusedChanged=function(W){(W=_.eI(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.Y.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.oq.Object.defineProperties(KrC.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Ax7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.data)==null?0:(k=W.headerLinks)==null?0:k.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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 W=this.channelHandleDisplayStyle;return W==="MODERN"||W==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return this.usePageHeaderStyle||!((W=this.data)==null?0:W.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var W;return this.usePageHeaderStyle||!((W=this.data)==null||!W.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.z((W=this.data)==null?void 0:W.bannerEditor,IwE)}},
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 W;return!((W=this.data)==null||!W.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 W;return _.m("enable_view_pronouns_on_main_app")&&!((W=this.data)==null||!W.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var W;return(this.useModernStyle||this.usePageHeaderStyle)&&!((W=this.data)==null||!W.videosCountText)}}});
var XA=KrC;XA.prototype.observerRichGridItemsPerRow=XA.prototype.observerRichGridItemsPerRow;XA.prototype.observeLightsourcePalette=XA.prototype.observeLightsourcePalette;XA.prototype.onBannerUpdated=XA.prototype.onBannerUpdated;XA.prototype.dataChanged=XA.prototype.dataChanged;XA.prototype.updateJoinButtonOverrides=XA.prototype.updateJoinButtonOverrides;_.U([_.v(_.Vv),_.O("design:type",Object)],XA.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.v(R77),_.O("design:type",Object)],XA.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],XA.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],XA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],XA.prototype,"ytdReduxBehavior",void 0);_.U([_.gi("#tabs"),_.O("design:type",Object)],XA.prototype,"tabsElement",void 0);_.U([_.Z(),_.O("design:type",Array)],XA.prototype,"tabs",void 0);_.U([_.G("tabs.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"tabGroupShape",null);_.U([_.Z(),_.O("design:type",Object)],XA.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],XA.prototype,"isRichGrid",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Object)],XA.prototype,"richGridMiniMode",void 0);_.U([_.Z({selector:_.m7}),_.O("design:type",Number)],XA.prototype,"richGridItemsPerRow",void 0);_.U([_.Z(),_.O("design:type",Object)],XA.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],XA.prototype,"hasChannelArt",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"hasChannelHeaderLinks",null);_.U([_.Z({selector:_.zIu,reflectToAttribute:!0}),_.O("design:type",Boolean)],XA.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"subscribeKey",null);
_.U([_.Z({selectorArgs:["subscribeKey"],selector:_.Ln}),_.O("design:type",Object)],XA.prototype,"subscriptionStateEntity",void 0);_.U([_.G("subscriptionStateEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"subscribed",null);_.U([_.G("subscribed"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"joinButtonOverrides",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"useModernStyle",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"usePageHeaderStyle",null);_.U([_.G("useModernStyle","usePageHeaderStyle"),_.O("design:type",Number),_.O("design:paramtypes",[])],XA.prototype,"avatarSize",null);
_.U([_.G("channelHandleDisplayStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"shouldInlineChannelName",null);_.U([_.G("data","usePageHeaderStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"hideBannerEndpoint",null);_.U([_.G("data","usePageHeaderStyle"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"hideBannerVisibleArea",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"showBannerEditor",null);_.U([_.G("usePageHeaderStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"bannerEffects",null);_.U([_.G("usePageHeaderStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],XA.prototype,"effectsConfig",null);_.U([_.G("usePageHeaderStyle","hasChannelArt"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"shouldShowPageHeaderBanner",null);
_.U([_.G("data.channelHandleText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"isChannelHandlePresent",null);_.U([_.G("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.O("design:type",String),_.O("design:paramtypes",[])],XA.prototype,"channelHandleDisplayStyle",null);_.U([_.G("data.channelPronouns"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"shouldShowChannelPronouns",null);
_.U([_.G("data.subscriberCountText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"shouldShowSubscriberCount",null);_.U([_.G("useModernStyle","data.videosCountText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],XA.prototype,"shouldShowVideosCount",null);_.U([_.Hl("joinButtonOverrides"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XA.prototype,"updateJoinButtonOverrides",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XA.prototype,"dataChanged",null);_.U([_.jI("yt-banner-updated"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],XA.prototype,"onBannerUpdated",null);_.U([_.Hl("data.headerColorPalette.lightsourceColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XA.prototype,"observeLightsourcePalette",null);
_.U([_.Hl("richGridItemsPerRow","isRichGrid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XA.prototype,"observerRichGridItemsPerRow",null);XA=_.U([_.T({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],XA);
_.q(XA,"ytd-c4-tabbed-header-renderer",function(){if($4u!==void 0)return $4u;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $4u=W},{mode:1});var hvZ;var W3Y=function(){return _.R.apply(this,arguments)||this};
_.D(W3Y,_.R);W3Y.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"}}}};
W3Y.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var k=_.yI(this.data.banner.thumbnails,this.hostElement.clientWidth);k&&(k.indexOf("//")===0&&(k="https:"+k),this.hasBannerArt=!0,_.Op(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+k+")"}))}this.hasBannerArt!==W&&_.S(this.hostElement).querySelector("#header").fire("iron-resize")}};
W3Y.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
var fz=W3Y;fz.prototype.dataChanged=fz.prototype.dataChanged;_.U([_.v(R77),_.O("design:type",Object)],fz.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Vv),_.O("design:type",Object)],fz.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],fz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],fz.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fz.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],fz.prototype,"selected",void 0);_.U([_.Z(),_.O("design:type",Boolean)],fz.prototype,"active",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],fz.prototype,"hasBannerArt",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fz.prototype,"dataChanged",null);fz=_.U([_.T({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],fz);
_.q(fz,"ytd-interactive-tabbed-header-renderer",function(){if(hvZ!==void 0)return hvZ;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return hvZ=W},{mode:1});var k8u;var Ca7=function(){return _.R.apply(this,arguments)||this};
_.D(Ca7,_.R);Ca7.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ca7.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
var dG=Ca7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],dG.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.O("design:type",String)],dG.prototype,"actionsAlignment",void 0);
dG=_.U([_.T({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],dG);
_.q(dG,"ytd-page-footer-renderer",function(){if(k8u!==void 0)return k8u;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return k8u=W},{mode:1});var nlA;var NgS;var Yu6=function(){var W=_.R.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.D(Yu6,_.R);_.Y=Yu6.prototype;_.Y.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.Y.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.Y.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var k,C;return!!(W==null?0:(k=W.formField)==null?0:(C=k.textInputFormFieldRenderer)==null?0:C.isMultiline)};
_.Y.computeTextDisplayed=function(W,k){if(W)return W;if(k)return k};
_.Y.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.Y.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.Go(W));else{var k;((k=this.data)==null?0:k.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Ip("inline-form-changed",this.data));this.isEditing=!1}};
_.Y.onCancel=function(){var W=_.y4(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
var mT=Yu6;mT.prototype.onKeydown=mT.prototype.onKeydown;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],mT.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mT.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],mT.prototype,"isEditing",void 0);_.U([_.Z(),_.O("design:type",Object)],mT.prototype,"useSlot",void 0);_.U([_.Z(),_.O("design:type",Boolean)],mT.prototype,"multilineOverride",void 0);_.U([_.Z(),_.O("design:type",Boolean)],mT.prototype,"enableOverlayTheme",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.O("design:type",String)],mT.prototype,"componentStyle",void 0);
_.U([_.Z({computed:"computeisMultiline(data)"}),_.O("design:type",Object)],mT.prototype,"isMultiline",void 0);_.U([_.gi("#text-form"),_.O("design:type",Object)],mT.prototype,"textForm",void 0);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],mT.prototype,"onKeydown",null);mT=_.U([_.T({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],mT);
_.q(mT,"ytd-inline-form-renderer",function(){if(NgS!==void 0)return NgS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return NgS=W},{mode:1});var BgZ;var b$1=function(){var W=_.R.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.D(b$1,_.R);b$1.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
b$1.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,k,C,n,N=(W=this.data)==null?void 0:(k=W.dropdown)==null?void 0:(C=k.dropdownRenderer)==null?void 0:(n=C.entries)==null?void 0:n.map(function(w){return w.privacyDropdownItemRenderer});
W=_.b(N!=null?N:[]);for(k=W.next();!k.done;k=W.next())if((k=k.value)&&k.int32Value===this.selectedValue){this.selectedItemMessage=k.itemMessage;break}}else this.selectedItemMessage=void 0;var B;(B=this.onValueChanged)==null||B.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var A;(A=this.data)!=null&&A.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
b$1.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
var zd=b$1;zd.prototype.selectedValueChanged=zd.prototype.selectedValueChanged;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],zd.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],zd.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],zd.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],zd.prototype,"theme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Number)],zd.prototype,"selectedValue",void 0);_.U([_.Z(),_.O("design:type",Function)],zd.prototype,"onValueChanged",void 0);
_.U([_.Cq("selectedValue"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],zd.prototype,"selectedValueChanged",null);zd=_.U([_.T({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],zd);
_.q(zd,"ytd-dropdown-form-field-renderer",function(){if(BgZ!==void 0)return BgZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return BgZ=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var AVC;var F3C=function(){return _.R.apply(this,arguments)||this};
_.D(F3C,_.R);_.oq.Object.defineProperties(F3C.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],k=_.b(this.data||[]),C=k.next();!C.done;C=k.next())(C=_.z(C.value,yx6))&&W.push(C);return W}}});
var woZ=F3C;_.U([_.Z(),_.O("design:type",Array)],woZ.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],woZ.prototype,"byline",null);woZ=_.U([_.T({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],woZ);
_.q(woZ,"ytd-playlist-byline-renderer",function(){if(AVC!==void 0)return AVC;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return AVC=W},{mode:1});var xcC;var lq7=function(){var W=_.R.apply(this,arguments)||this;W.rtlBullet=_.m("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.m("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.D(lq7,_.R);_.Y=lq7.prototype;_.Y.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"}}}}};
_.Y.attached=function(){};
_.Y.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.Y.onYtNavigate=function(W,k){if(k&&k.actions&&k.actions.indexOf("shuffle")>-1){W=_.f().resolve(_.J4);var C=k.tempData||{};C.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);k.tempData=C;W.isShuffleNextPlaylist=!0}};
_.Y.onUpdatePlaylistAction=function(W){var k;W=(k=_.z(W,_.xRs))==null?void 0:k.updatedRenderer;if(k=_.z(W,M1C))this.data=k};
_.Y.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.Y.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var k=0;k<W.thumbnailOverlays.length;k++){var C=void 0;if((C=W.thumbnailOverlays[k])==null?0:C.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var DP=lq7;DP.prototype.onYtNavigate=DP.prototype.onYtNavigate;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],DP.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],DP.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],DP.prototype,"rtlBullet",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.O("design:type",String)],DP.prototype,"styleType",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.O("design:type",Number)],DP.prototype,"thumbnailWidth",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],DP.prototype,"modern",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.O("design:type",Boolean)],DP.prototype,"isCustomThumbnail",void 0);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],DP.prototype,"onYtNavigate",null);
DP=_.U([_.T({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],DP);
_.q(DP,"ytd-playlist-sidebar-primary-info-renderer",function(){if(xcC!==void 0)return xcC;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xcC=W},{mode:1});var t26;var Elt=function(){return _.R.apply(this,arguments)||this};
_.D(Elt,_.R);Elt.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
Elt.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
var VD=Elt;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],VD.prototype,"data",void 0);VD=_.U([_.T({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],VD);
_.q(VD,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(t26!==void 0)return t26;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return t26=W},{mode:1});var aqB;var XoC=function(){var W=_.R.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.D(XoC,_.R);_.Y=XoC.prototype;_.Y.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.Y.dataChanged=function(){this.data&&_.jN(_.S(this.text),_.Z78(_.i7I,_.y4(this.data.text||null)))};
_.Y.computeAutoScrollEnabled=function(W,k){return W&&!k};
_.Y.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.Y.toggleOnTap=function(){this.expanded=!this.expanded};
var J2=XoC;J2.prototype.expandedChanged=J2.prototype.expandedChanged;J2.prototype.dataChanged=J2.prototype.dataChanged;_.U([_.v(_.lP1),_.O("design:type",Object)],J2.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],J2.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],J2.prototype,"expanded",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],J2.prototype,"isCompact",void 0);_.U([_.Z({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.O("design:type",Boolean)],J2.prototype,"autoScrollEnabled",void 0);_.U([_.gi("#text"),_.O("design:type",Object)],J2.prototype,"text",void 0);_.U([_.gi("#expander-icon"),_.O("design:type",Object)],J2.prototype,"expanderIcon",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J2.prototype,"dataChanged",null);_.U([_.Hl("expanded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J2.prototype,"expandedChanged",null);J2=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],J2);
_.q(J2,"ytd-channel-legal-info-renderer",function(){if(aqB!==void 0)return aqB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return aqB=W},{mode:1});var fqS;var dc7=_.w8("DOWNLOAD",{},"Download"),mcZ=_.w8("DOWNLOADING",{},"Downloading"),z0u=_.w8("DOWNLOADED",{},"Downloaded"),DcA=function(){var W=_.R.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.D(DcA,_.R);_.Y=DcA.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.Je(_.ZF().getState(),this.playlistId),this.updateButtonState(W))};
_.Y.computePlaylistId=function(W){return W};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==mcZ||!_.FD(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=dc7;var k="OFFLINE_DOWNLOAD";var C="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=z0u;k="OFFLINE_PIN";C="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=mcZ;k="OFFLINE_DOWNLOADING_ZERO";C="ACTION_REMOVE_WITH_PROMPT";
break;default:W=dc7,k="OFFLINE_DOWNLOAD",C="ACTION_ADD"}var n=Object.assign({},this.data);n.tooltip=W;n.accessibilityData={accessibilityData:{label:W}};n.icon={iconType:k};n.size="SIZE_DEFAULT";_.z(n.command,_.hW)&&(_.z(n.command,_.hW).action=C);this.set("data",n)}};
_.Y.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var k;W!==((k=this.data.icon)==null?void 0:k.iconType)&&(k=Object.assign({},this.data),k.tooltip=mcZ,k.accessibilityData={accessibilityData:{label:mcZ}},k.icon={iconType:W},_.z(k.command,_.hW)&&(_.z(k.command,_.hW).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",k))}};
var c_=DcA;c_.prototype.updateProgress=c_.prototype.updateProgress;c_.prototype.onTransferStateChanged=c_.prototype.onTransferStateChanged;c_.prototype.dataChanged=c_.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],c_.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"forceIconButton",void 0);
_.U([_.Z({value:!0}),_.O("design:type",Boolean)],c_.prototype,"forceIconOnly",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"overrides",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"buttonTooltipPosition",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"styleActionButton",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"disableTextTransform",void 0);
_.U([_.Z({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.O("design:type",String)],c_.prototype,"playlistId",void 0);_.U([_.Z(),_.O("design:type",Object)],c_.prototype,"data",void 0);_.U([_.Z({selector:_.qVw,selectorArgs:["playlistId"]}),_.O("design:type",Object)],c_.prototype,"downloadProgress",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],c_.prototype,"isDownloadComplete",void 0);
_.U([_.Z({selector:_.Je,selectorArgs:["playlistId"]}),_.O("design:type",String)],c_.prototype,"transferState",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],c_.prototype,"showTooltips",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],c_.prototype,"sendCommandWhenDisabled",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],c_.prototype,"disabled",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c_.prototype,"dataChanged",null);_.U([_.Cq("transferState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c_.prototype,"onTransferStateChanged",null);_.U([_.Cq("downloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],c_.prototype,"updateProgress",null);
c_=_.U([_.T({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],c_);
_.q(c_,"ytd-download-playlist-button-renderer",function(){if(fqS!==void 0)return fqS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fqS=W},{mode:1});var V2E;_.Gj(_.HZ,"thumbnail-overlay-button-view-model",{props:{data:_.Ik,lockupExperiments:_.Ik}});var JVS=function(){var W=_.R.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.D(JVS,_.R);JVS.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?NJt(W.thumbnail)==="SQUARE":!1};
JVS.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?NJt(W.thumbnail)==="VERTICAL":!1};
JVS.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var IF=JVS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.O("design:type",Object)],IF.prototype,"isSquare",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.O("design:type",Object)],IF.prototype,"isVertical",void 0);
_.U([_.Z(),_.O("design:type",Object)],IF.prototype,"data",void 0);IF=_.U([_.T({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],IF);
_.q(IF,"ytd-hero-playlist-thumbnail-renderer",function(){if(V2E!==void 0)return V2E;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return V2E=W},{mode:1});var cVZ=function(){var W=_.R.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.D(cVZ,_.R);_.Y=cVZ.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.f();var W;(W=_.f().resolve(_.qI(_.iv)))!=null&&(W.headerElement=this.hostElement)};
_.Y.detached=function(){var W;(W=_.f().resolve(_.qI(_.iv)))!=null&&(W.headerElement=void 0)};
_.Y.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.Y.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.Y.gradientColorToLinearGradientStop=function(W){var k=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return k?_.Xi(k)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.Y.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.Y.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.onUpdatePlaylistName=function(W){var k=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.ZR(this,function(){var C;(C=k.editableTitle)==null||C.resize()})};
_.Y.onUpdatePlaylistDescription=function(W){var k=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.ZR(this,function(){var C;(C=k.editableDescriptionInlineExpander)==null||C.resize()})};
_.Y.getCinematicData=function(W){return _.z(W==null?void 0:W.cinematicContainer,_.vy)};
_.oq.Object.defineProperties(cVZ.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 W,k=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?k==null?void 0:k.darkThemeBackgroundColor:k==null?void 0:k.lightThemeBackgroundColor)?"background-color:"+_.a8(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.z((W=this.data)==null?void 0:W.descriptionForm,SNE)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C,n;return"background:linear-gradient(to bottom, "+(((n=(k=this.getCinematicData(this.data))==null?void 0:(C=k.gradientColorConfig)==null?void 0:C.map(function(N){return W.gradientColorToLinearGradientStop(N)}))==null?void 0:n.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.y4((W=this.data)==null?void 0:W.descriptionTapText)}}});
var SS=cVZ;SS.prototype.onUpdateHeader=SS.prototype.onUpdateHeader;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],SS.prototype,"actionHandlerBehavior",void 0);_.U([_.gi("#description-inline-expander"),_.O("design:type",Object)],SS.prototype,"descriptionInlineExpander",void 0);
_.U([_.gi("#editable-description-inline-expander"),_.O("design:type",Object)],SS.prototype,"editableDescriptionInlineExpander",void 0);_.U([_.Z(),_.O("design:type",Object)],SS.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],SS.prototype,"isUltraWide",void 0);_.U([_.gi("#editable-title-display"),_.O("design:type",Object)],SS.prototype,"editableTitle",void 0);_.U([_.G("isUltraWide"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"maxDescriptionLines",null);
_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"noCinematicData",null);_.U([_.jI("yt-new-playlist-header"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],SS.prototype,"onUpdateHeader",null);_.U([_.G("data","isDarkTheme"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"backgroundStyle",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"descriptionFormData",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"getDropdownTheme",null);_.U([_.G("data","isDarkTheme"),_.O("design:type",String),_.O("design:paramtypes",[])],SS.prototype,"gradientStyle",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],SS.prototype,"descriptionTapText",null);
SS=_.U([_.T({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],SS);
_.q(SS,"ytd-playlist-header-renderer",function(){if(nlA!==void 0)return nlA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nlA=W},{mode:_.UC("kevlar_poly_si_batch_j078")?1:2});var IqT;var SuE;var M2i=function(){return _.R.apply(this,arguments)||this};
_.D(M2i,_.R);M2i.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var Mr=M2i;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Mr.prototype,"data",void 0);Mr=_.U([_.T({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Mr);
_.q(Mr,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(SuE!==void 0)return SuE;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return SuE=W},{mode:1});var Qwu=function(){return _.R.apply(this,arguments)||this};
_.D(Qwu,_.R);
Qwu.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}}}}};
Qwu.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var k=0;k<W.items.length;k++)if(_.z(W.items[k],M1C)){var C=void 0;return((C=_.z(W.items[k],M1C))==null?void 0:C.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var QD=Qwu;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QD.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.O("design:type",Boolean)],QD.prototype,"usePremiumShowStyle",void 0);
QD=_.U([_.T({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],QD);
_.q(QD,"ytd-playlist-sidebar-renderer",function(){if(IqT!==void 0)return IqT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return IqT=W},{mode:1});var pou;var x_1=_.w7({pageHeaderViewModel:_.mXC});_.UK(lwY);_.qN(lwY,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.Gj(_.FW,"yt-image-banner-view-model",{props:{data:_.Ik,isPositionRelative:_.Ik}});var vlZ=function(){var W=_.R.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(k){return BJ7(k,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.D(vlZ,_.R);_.Y=vlZ.prototype;_.Y.computeHeaderDisabled=function(W,k){return k||!W||this.tabsHidden};
_.Y.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.Y.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.Y.computeImageBannerViewModel=function(){var W,k;return _.z((k=_.z((W=this.data)==null?void 0:W.content,_.TFx))==null?void 0:k.banner,_.bDJ)};
_.Y.computeHasCinematicContainer=function(){var W,k;return!((k=_.z((W=this.data)==null?void 0:W.content,_.TFx))==null||!k.background)};
_.Y.handleHeaderResize=function(){var W=_.S(this.hostElement).querySelector("#header");W&&_.Pe(W,"iron-resize")};
_.Y.handleInsertTabCommand=function(W){var k=_.z(W,$_$);k&&(k.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(C){return C.tabRenderer&&C.tabRenderer.tabIdentifier===k.tabIdentifier})||this.splice("tabs",k.tabIndex||-1,0,k.tab))};
_.Y.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.Y.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Y.observerRichGridSlimItemsPerRow=function(){_.Op(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.Y.updateCssVars=function(){this.richGridItemsPerRow&&_.Op(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Oe("rich_grid_max_item_width",500))+16)-16+"px"})};
_.Y.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Op(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.Y.onDataChanged=function(){this.handleHeaderResize()};
_.Y.onWindowResize=function(){this.handleHeaderResize()};
_.Y.onFocusedChanged=function(W){(W=_.eI(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.Y.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.Y.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.oq.Object.defineProperties(vlZ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Ax7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var pz=vlZ;pz.prototype.onDataChanged=pz.prototype.onDataChanged;pz.prototype.updateCssVarsForResponsiveGrid=pz.prototype.updateCssVarsForResponsiveGrid;pz.prototype.updateCssVars=pz.prototype.updateCssVars;pz.prototype.observerRichGridSlimItemsPerRow=pz.prototype.observerRichGridSlimItemsPerRow;pz.prototype.observerRichGridItemsPerRow=pz.prototype.observerRichGridItemsPerRow;_.U([_.v(_.Vv),_.O("design:type",Object)],pz.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.v(R77),_.O("design:type",Object)],pz.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],pz.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],pz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.U([_.gi("#tabs"),_.O("design:type",Object)],pz.prototype,"tabsElement",void 0);_.U([_.Z(),_.O("design:type",Array)],pz.prototype,"tabs",void 0);_.U([_.Z(),_.O("design:type",Object)],pz.prototype,"expandableCustomTabRenderable",void 0);_.U([_.G("tabs.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],pz.prototype,"tabGroupShape",null);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pz.prototype,"isRichGrid",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pz.prototype,"isConstrainedList",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Object)],pz.prototype,"richGridMiniMode",void 0);_.U([_.Z({selector:function(W){return W.ui.richGridStyle}}),
_.O("design:type",Object)],pz.prototype,"richGridStyle",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.O("design:type",Object)],pz.prototype,"isRichGridShorts",void 0);_.U([_.Z({selector:_.m7}),_.O("design:type",Number)],pz.prototype,"richGridItemsPerRow",void 0);_.U([_.Z({selector:function(W){return W.ui.richGridContainerWidth}}),
_.O("design:type",Number)],pz.prototype,"richGridContainerWidth",void 0);_.U([_.Z({selector:_.MDP}),_.O("design:type",Number)],pz.prototype,"richGridSlimItemsPerRow",void 0);_.U([_.Z(),_.O("design:type",Object)],pz.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pz.prototype,"responsiveSizing",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],pz.prototype,"disableGridStateAware",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.O("design:type",Object)],pz.prototype,"imageBannerViewModel",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.O("design:type",Boolean)],pz.prototype,"hasCinematicContainer",void 0);_.U([_.Z({selector:_.zIu,reflectToAttribute:!0}),_.O("design:type",Boolean)],pz.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],pz.prototype,"hasBanner",null);_.U([_.Z({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.O("design:type",Object),_.O("design:paramtypes",[])],pz.prototype,"hasInsetBanner",null);_.U([_.Z({computed:"computeTabsHidden(tabs)",value:!0}),_.O("design:type",Boolean)],pz.prototype,"tabsHidden",void 0);
_.U([_.Hl("richGridItemsPerRow","isRichGrid"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pz.prototype,"observerRichGridItemsPerRow",null);_.U([_.Hl("richGridSlimItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pz.prototype,"observerRichGridSlimItemsPerRow",null);
_.U([_.Hl("richGridItemsPerRow","richGridMiniMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pz.prototype,"updateCssVars",null);_.U([_.Hl("richGridContainerWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pz.prototype,"updateCssVarsForResponsiveGrid",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],pz.prototype,"onDataChanged",null);
pz=_.U([_.T({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],pz);
_.q(pz,"ytd-tabbed-page-header",function(){if(pou!==void 0)return pou;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return pou=W},{mode:1});var e01;var swu=function(){return _.R.apply(this,arguments)||this};
_.D(swu,_.R);swu.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.oq.Object.defineProperties(swu.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,k;return this.componentBehavior.computeIcon_(((k=_.z((W=this.data)==null?void 0:W.badge,_.u$x))==null?void 0:k.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.badge,_.u$x))==null?void 0:k.label}}});
var v_=swu;v_.prototype.observerRichGridItemsPerRow=v_.prototype.observerRichGridItemsPerRow;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],v_.prototype,"componentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.dn}),_.O("design:type",Boolean)],v_.prototype,"richGridMiniMode",void 0);
_.U([_.Z({selector:_.m7}),_.O("design:type",Number)],v_.prototype,"richGridItemsPerRow",void 0);_.U([_.Z(),_.O("design:type",Object)],v_.prototype,"data",void 0);_.U([_.Hl("richGridItemsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],v_.prototype,"observerRichGridItemsPerRow",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],v_.prototype,"badgeIconName",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],v_.prototype,"badgeLabel",null);v_=_.U([_.T({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],v_);
_.q(v_,"ytd-member-hub-profile-renderer",function(){if(e01!==void 0)return e01;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return e01=W},{mode:1});var G86;var yV7=function(){return _.R.apply(this,arguments)||this};
_.D(yV7,_.R);yV7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var eS=yV7;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eS.prototype,"data",void 0);eS=_.U([_.T({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],eS);
_.q(eS,"ytd-settings-sidebar-renderer",function(){if(G86!==void 0)return G86;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return G86=W},{mode:1});var $cE;var sw=function(){return _.R.apply(this,arguments)||this};
_.D(sw,_.R);sw.prototype.shouldHideHashtagInfo_=function(W){return!(W==null?0:W.hashtagInfoText)};
sw.prototype.onFocusedChanged=function(W){(W=_.eI(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
sw.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.oq.Object.defineProperties(sw.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var Gd=sw;_.U([_.v(R77),_.O("design:type",Object)],Gd.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Gd.prototype,"rendererBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],Gd.prototype,"data",void 0);_.U([_.gi("#tabs"),_.O("design:type",Object)],Gd.prototype,"tabsElement",void 0);_.U([_.Z(),_.O("design:type",Array)],Gd.prototype,"tabs",void 0);_.U([_.Z(),_.O("design:type",Object)],Gd.prototype,"selected",void 0);
_.U([_.G("tabs"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Gd.prototype,"tabsEnabled",null);Gd=_.U([_.T({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],Gd);
_.q(Gd,"ytd-hashtag-header-renderer",function(){if($cE!==void 0)return $cE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return $cE=W},{mode:_.UC("kevlar_poly_si_batch_j078")?1:2});var Z$t;var yD=function(){var W=_.R.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(k){return BJ7(k,function(){return void W.onSearchNavigate()})};
return W};
_.D(yD,_.R);yD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
yD.prototype.onSearchNavigate=function(){this.selected=void 0};
yD.prototype.onTabsChange=function(){var W,k=(W=this.tabs)==null?void 0:W.findIndex(function(C){var n;return C==null?void 0:(n=C.tabRenderer)==null?void 0:n.selected});
k!==void 0&&(this.selected=k)};
yD.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var k,C;(W=(k=this.tabs[W.detail.selected])==null?void 0:(C=k.tabRenderer)==null?void 0:C.endpoint)&&_.Pe(this.hostElement,"yt-navigate",{endpoint:W})}};
_.oq.Object.defineProperties(yD.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Ax7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var $b=yD;$b.prototype.onTabsChange=$b.prototype.onTabsChange;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.Vv),_.O("design:type",Object)],$b.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],$b.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],$b.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],$b.prototype,"tabs",void 0);_.U([_.Z(),_.O("design:type",Number)],$b.prototype,"selected",void 0);_.U([_.G("tabs.*"),_.O("design:type",Object),_.O("design:paramtypes",[])],$b.prototype,"tabGroupShape",null);_.U([_.Z(),_.O("design:type",Object)],$b.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.G("tabs"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$b.prototype,"tabsEnabled",null);_.U([_.Cq("tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$b.prototype,"onTabsChange",null);$b=_.U([_.T({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],$b);
_.q($b,"ytd-topic-channel-details-renderer",function(){if(Z$t!==void 0)return Z$t;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Z$t=W},{mode:1});var R0u;var olS=function(){var W=_.R.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.D(olS,_.R);olS.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]]"}}}}}};
olS.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
olS.prototype.updateCssVars=function(){_.Op(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Oe("rich_grid_max_item_width",500))+16)-16+"px"})};
var ZP=olS;ZP.prototype.updateCssVars=ZP.prototype.updateCssVars;ZP.prototype.activeChanged=ZP.prototype.activeChanged;_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],ZP.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZP.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],ZP.prototype,"tabs",void 0);_.U([_.Z(),_.O("design:type",Boolean)],ZP.prototype,"active",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],ZP.prototype,"disableGridStateAware",void 0);
_.U([_.Z({selector:_.m7}),_.O("design:type",Number)],ZP.prototype,"richGridItemsPerRow",void 0);_.U([_.Z({selector:_.dn}),_.O("design:type",Boolean)],ZP.prototype,"richGridMiniMode",void 0);_.U([_.gi("ytd-carousel-item-renderer"),_.O("design:type",Object)],ZP.prototype,"carousel",void 0);_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZP.prototype,"activeChanged",null);
_.U([_.Hl("richGridItemsPerRow","richGridMiniMode"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZP.prototype,"updateCssVars",null);ZP=_.U([_.T({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],ZP);
_.q(ZP,"ytd-carousel-header-renderer",function(){if(R0u!==void 0)return R0u;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return R0u=W},{mode:1});var i$i;var Tgt=_.iH(["https://www.google-analytics.com/analytics.js"]),quT=function(){var W=_.R.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.D(quT,_.R);quT.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,k=(W=this.data)==null?void 0:W.tagManagerId;k&&(_.YD(k,_.DE("GL")),wiB(k))};
quT.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var C=_.v6.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(C)};
var k=window.ga;k("set","page",window.location.pathname);k.l=+new Date;k("set","forceSSL",!0);k("create",W,"'auto'");k("send","pageview")};
quT.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.wu("SCRIPT");W.name="ga-analytics";var k=_.k0(Tgt);_.LL(W,k);W.async=!0;_.S(this.hostElement).appendChild(W)};
var RF=quT;RF.prototype.dataChanged=RF.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],RF.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RF.prototype,"dataChanged",null);RF=_.U([_.T({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],RF);
_.q(RF,"ytd-channel-metadata-renderer",function(){if(i$i!==void 0)return i$i;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return i$i=W},{mode:1});var ug$;var Uct;var O$u=function(){return _.R.apply(this,arguments)||this};
_.D(O$u,_.R);var L3E=O$u;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],L3E.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],L3E.prototype,"data",void 0);L3E=_.U([_.T({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],L3E);
_.q(L3E,"ytd-sub-feed-option-renderer",function(){if(Uct!==void 0)return Uct;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Uct=W},{mode:1});var jwT;var H$6=function(){return _.R.apply(this,arguments)||this};
_.D(H$6,_.R);H$6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var oF=H$6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oF.prototype,"ytRendererStamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],oF.prototype,"data",void 0);oF=_.U([_.T({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],oF);
_.q(oF,"ytd-sub-feed-selector-renderer",function(){if(jwT!==void 0)return jwT;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return jwT=W},{mode:1});var rVS=function(){return _.R.apply(this,arguments)||this};
_.D(rVS,_.R);
rVS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
var iU=rVS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iU.prototype,"data",void 0);iU=_.U([_.T({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],iU);
_.q(iU,"ytd-browse-feed-actions-renderer",function(){if(ug$!==void 0)return ug$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ug$=W},{mode:1});var gl6;var PaE;var K37=function(){return _.R.apply(this,arguments)||this};
_.D(K37,_.R);K37.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var Td=K37;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Td.prototype,"data",void 0);Td=_.U([_.T({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Td);
_.q(Td,"ytd-mini-channel-renderer",function(){if(PaE!==void 0)return PaE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return PaE=W},{mode:1});var h0Y;var Wm_=function(){return _.R.apply(this,arguments)||this};
_.D(Wm_,_.R);Wm_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var qr=Wm_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qr.prototype,"data",void 0);qr=_.U([_.T({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],qr);
_.q(qr,"ytd-vertical-channel-section-renderer",function(){if(h0Y!==void 0)return h0Y;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return h0Y=W},{mode:1});var k43=function(){return _.R.apply(this,arguments)||this};
_.D(k43,_.R);k43.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var uU=k43;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uU.prototype,"data",void 0);uU=_.U([_.T({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],uU);
_.q(uU,"ytd-browse-secondary-contents-renderer",function(){if(gl6!==void 0)return gl6;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return gl6=W},{mode:1});var CwN;var nzi=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.D(nzi,_.R);_.Y=nzi.prototype;
_.Y.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}}}}};
_.Y.getPath=function(W,k){var C="data.tabs.#"+k+".";W.tabs[k].tabRenderer?C+="tabRenderer.":W.tabs[k].expandableTabRenderer&&(C+="expandableTabRenderer.");return C+"content.sectionListRenderer"};
_.Y.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var k=W.tabs.length,C=0;C<k;C++){var n=W.tabs[C].tabRenderer||W.tabs[C].expandableTabRenderer;if(n.selected&&n.content)return this.linkPaths("content",this.getPath(W,C)),n.content}return null};
_.Y.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.Y.onRetrieveLocation=function(W,k){k.locationRetrieved(k.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.Y.onYtServiceRequestSent=function(W,k){_.m("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(k)};
_.Y.onYtServiceRequestCompleted=function(W,k){_.m("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(k)};
_.Y.onReplaceFeedContentAction=function(W){if(!_.m("replace_feed_content_action_killswitch")&&!this.notActive){var k;(W=(k=_.z(W,V17))==null?void 0:k.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.Y.handleServiceRequestActions=function(W){if(W=W.actions){W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var C=void 0;((C=_.z(k,V17))==null?0:C.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.z(k,V17).items)}}};
var Uw=nzi;Uw.prototype.onYtServiceRequestCompleted=Uw.prototype.onYtServiceRequestCompleted;Uw.prototype.onYtServiceRequestSent=Uw.prototype.onYtServiceRequestSent;Uw.prototype.onRetrieveLocation=Uw.prototype.onRetrieveLocation;_.U([_.v(_.Vv),_.O("design:type",Object)],Uw.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Uw.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Uw.prototype,"data",void 0);_.U([_.Z({computed:"computeDisplayedContent(data)"}),_.O("design:type",Object)],Uw.prototype,"content",void 0);
_.U([_.Z({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Uw.prototype,"hasSecondaryColumnData",void 0);_.U([_.Z({value:function(){return window.outerHeight>1024?3:2}}),
_.O("design:type",Number)],Uw.prototype,"initialCount",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Uw.prototype,"pageSubtype",void 0);_.U([_.gi("ytd-section-list-renderer"),_.O("design:type",Object)],Uw.prototype,"listRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],Uw.prototype,"notActive",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Uw.prototype,"isConstrainedList",void 0);
_.U([_.Z(),_.O("design:type",String)],Uw.prototype,"responsiveSizing",void 0);_.U([_.jI("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Uw.prototype,"onRetrieveLocation",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Uw.prototype,"onYtServiceRequestSent",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Uw.prototype,"onYtServiceRequestCompleted",null);Uw=_.U([_.T({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Uw);
_.q(Uw,"ytd-two-column-browse-results-renderer",function(){if(CwN!==void 0)return CwN;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return CwN=W},{mode:2});var N3e;var Y2_;var B35=function(){var W=_.R.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.D(B35,_.R);_.Y=B35.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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_]]"}}}}}};
_.Y.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.Y.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.computeAlertStyle_=function(W){return W};
_.Y.observerElementsPerRow=function(){this.elementsPerRow&&_.Op(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.Y.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.Y.requestElementsPerRow=function(){_.Pe(this.hostElement,"yt-request-elements-per-row")};
var Ow=B35;Ow.prototype.onIsVisibleChanged_=Ow.prototype.onIsVisibleChanged_;Ow.prototype.observerElementsPerRow=Ow.prototype.observerElementsPerRow;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Ow.prototype,"actionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ow.prototype,"data",void 0);_.U([_.Z({value:6,reflectToAttribute:!0}),_.O("design:type",Number)],Ow.prototype,"elementsPerRow",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Ow.prototype,"wrapButtons",void 0);_.U([_.Z({value:_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.O("design:type",Boolean)],Ow.prototype,"isMusic",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.O("design:type",String)],Ow.prototype,"alertStyle",void 0);_.U([_.Z({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.O("design:type",Function)],Ow.prototype,"dismissBoundButtonTap_",void 0);_.U([_.Z({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.O("design:type",Function)],Ow.prototype,"acceptBoundButtonTap_",void 0);_.U([_.Hl("elementsPerRow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ow.prototype,"observerElementsPerRow",null);_.U([_.Hl("data.isVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ow.prototype,"onIsVisibleChanged_",null);Ow=_.U([_.l0({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Ow);
_.q(Ow,"yt-alert-with-actions-renderer",function(){if(Y2_===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;N3e===void 0&&(N3e=document.createElement("template"));var n=N3e;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Y2_=W}W=Y2_;return W},{mode:2});_.Gj(_.GM(function(W){var k=_.yE(),C=function(){return W.data().canvasPromoData},n=function(){var B;
return(B=W.data().bannerHeight)!=null?B:48};
_.pX(k,function(){var B;return(B=W.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0);
var N={};return _.t("yt-personal-greeting-view-model",{el:k,class:_.Li("ytPersonalGreetingViewModelHost",W.className),style:_.WJ({height:(0,_.Yu)(function(){return n()})})},_.t(_.Ex,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(B){return _.t(_.VO,{data:B.data,
className:_.Li("ytPersonalGreetingViewModelAvatar")})}}),_.t(_.Ya,{text:function(){var B;
return(C==null?void 0:(B=C())==null?void 0:B.headline)||W.data().greeting},
className:_.Li("ytPersonalGreetingViewModelHeadline",(N.ytPersonalGreetingViewModelHeadlineSmall=function(){return n()===48},N))}))},"Kh"),"yt-personal-greeting-view-model",{props:{data:_.Ik,
className:_.Ik}});var bIN=function(){var W=_.R.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.m("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.D(bIN,_.R);_.Y=bIN.prototype;
_.Y.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}}}}};
_.Y.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.Y.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new TJC(this.refresh,this.contents))};
_.Y.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.Y.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.Y.tabsChanged=function(){var W=this,k,C,n,N;if(this.pageSubtype==="channels"||_.m("kevlar_tab_gestures_for_tabbed_header_data")&&(((k=this.data)==null?0:(C=k.header)==null?0:C.c4TabbedHeaderRenderer)||((n=this.data)==null?0:(N=n.header)==null?0:N.carouselHeaderRenderer)))this.tabGestures=new Zv(this.contents,this.contents,this.hostElement,this.header,function(x){W.ytdReduxBehavior.dispatch(x)});
var B,A,w;k=(B=this.data)==null?void 0:(A=B.contents)==null?void 0:(w=A.twoColumnBrowseResultsRenderer)==null?void 0:w.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=k);this.tabGestures&&this.tabGestures.tabsChanged(k)};
_.Y.channelIdChanged=function(){if(this.tabGestures){var W,k,C,n=this.tabGestures,N=(W=this.data)==null?void 0:(k=W.header)==null?void 0:(C=k.c4TabbedHeaderRenderer)==null?void 0:C.channelId;N&&N!==n.currentChannelId&&(n.scrollPositionForTabs.clear(),n.currentChannelId=N,n.lastVisitedTabScrollPosition=void 0,n.tabsStartAtInPx=0)}};
_.Y.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.Y.engagementPanelsChanged=function(){var W=_.f().resolve(_.lj);if(W){if(this.engagementPanels)for(var k=_.b(this.engagementPanels),C=k.next();!C.done;C=k.next()){var n=void 0;(C=(n=C.value.identifier)==null?void 0:n.tag)&&W.panelMap.delete(C)}this.engagementPanels=[];var N;k=_.b(((N=this.data)==null?void 0:N.panels)||[]);for(N=k.next();!N.done;N=k.next()){N=_.z(N.value,_.NGS);var B=C=void 0,A=void 0,w=void 0;if(n=((C=N)==null?void 0:C.targetId)||((B=N)==null?void 0:B.panelIdentifier)||((A=N)==null?
void 0:(w=A.identifier)==null?void 0:w.tag))B=C=void 0,(B=(C=W).registerPanelContent)==null||B.call(C,n,{engagementPanelSectionListRenderer:N}),this.engagementPanels.push(N)}}};
_.Y.onStampFinished=function(){var W=this;_.ZR(this,function(){if(W.tabGestures){var k=W.tabGestures;if(k.scrollPositionNeedsUpdate){var C=_.f().resolve(_.qI(_.yF)),n;if((n=k.selectedTab)!=null&&n.title&&C&&(n=C.getCurrentPage())){if(k.scrollPositionForTabs.has(k.selectedTab.title)){var N,B;C=(B=(N=C.getCurrentPage())==null?void 0:N.clientHeight)!=null?B:0;N=k.scrollPositionForTabs.get(k.selectedTab.title);n.setScrollTop(N);C>N+100&&(k.scrollPositionNeedsUpdate=!1)}else n.setScrollTop(Math.min(k.lastVisitedTabScrollPosition!==
void 0?k.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,k.tabsStartAtInPx)),k.scrollPositionNeedsUpdate=!1;k.ytdReduxDispatch(t17(!1))}}}})};
_.Y.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.Y.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.c4TabbedHeaderRenderer.title",W))return this.get("header.c4TabbedHeaderRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.y4(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",
W);if(this.get("header.hashtagHeaderRenderer.hashtag",W))return _.y4(this.get("header.hashtagHeaderRenderer.hashtag",W));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W))return _.y4(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W));var k,C;return _.m("enable_page_header_page_title")&&(W==null?0:(k=W.header)==null?0:(C=k.pageHeaderRenderer)==null?0:C.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.Y.updateTitle=function(W){_.Pe(this.hostElement,"yt-update-title",this.getTitle(W))};
_.Y.initCsi=function(){_.ClA(this.pageSubtype||"browse",["ol","cpt"])};
_.Y.getPlayer=function(){if(_.m("kevlar_channel_trailer_multi_attach")){for(var W=_.b(this.attachedPlayers),k=W.next();!k.done;k=W.next())if(k=k.value,k.isConnected||_.vf(this.hostElement,k))return k;return null}return this.player};
_.Y.getPlayerContainer=function(){return null};
_.Y.onPlayerAttached=function(W,k){_.m("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(k):this.player=k};
_.Y.onPlayerDetached=function(W,k){_.m("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(k),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.Y.getServiceTrackingParams=function(){var W,k;return((W=this.data)==null?void 0:(k=W.responseContext)==null?void 0:k.serviceTrackingParams)||[]};
_.Y.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.Y.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.LTC();_.ZR(this,function(){_.hA(W.hostElement,"ytd-update-grid-state-action")})};
_.Y.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.Y.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(k){return!!k.alertWithActionsRenderer})}};
_.Y.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(k){return!!k.personalGreetingViewModel})}};
_.Y.computeHasC4TabbedHeaderRenderer=function(W){var k;return!!(W==null?0:(k=W.header)==null?0:k.c4TabbedHeaderRenderer)};
_.Y.computeHasMemberHubProfileRenderer=function(W){var k;return!!(W==null?0:(k=W.header)==null?0:k.memberHubProfileRenderer)};
_.Y.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.z(W,JxC),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.Y.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.Pe(this.hostElement,"yt-navigate",{endpoint:W})};
_.Y.computeFluidWidth=function(W,k,C){if(k==="mini_app"||C)return!0;var n,N,B;W=W==null?void 0:(n=W.contents)==null?void 0:(N=n.twoColumnBrowseResultsRenderer)==null?void 0:(B=N.tabs)==null?void 0:B.find(function(x){var E;return x==null?void 0:(E=x.tabRenderer)==null?void 0:E.selected});
if(!W)return!1;var A,w;return!!((A=W.tabRenderer)==null?0:(w=A.content)==null?0:w.richGridRenderer)&&!["channel","channels","playables"].includes(k)};
_.Y.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.Y.computeHasSidebar=function(W){var k;return!!(W.sidebar||((k=W.header)==null?0:k.playlistHeaderRenderer))};
_.Y.computeHasPageHeaderSidebar=function(W){var k,C;return!!((k=W.header)==null?0:(C=k.pageHeaderRenderer)==null?0:C.enableSidebarView)};
_.Y.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var k=0;k<W.items.length;k++)if(_.z(W.items[k],M1C)){var C=void 0;return((C=_.z(W.items[k],M1C))==null?void 0:C.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Y.computeIsConstrainedList=function(W){return _.m("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.Y.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.oq.Object.defineProperties(bIN.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k;return((W=this.data)==null?0:(k=W.header)==null?0:k.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,k;if(!((W=this.data)==null?0:(k=W.sidebar)==null?0:k.playlistSidebarRenderer))return!1;var C;return(C=this.data)!=null&&C.header?!1:!0}}});
_.oq.Object.defineProperties(bIN,{template:{configurable:!0,enumerable:!0,get:function(){if(U_E===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);U_E=W}W=U_E;return W}}});
var Lz=bIN;Lz.prototype.dataChanged=Lz.prototype.dataChanged;Lz.prototype.onPlayerDetached=Lz.prototype.onPlayerDetached;Lz.prototype.onPlayerAttached=Lz.prototype.onPlayerAttached;Lz.prototype.onStampFinished=Lz.prototype.onStampFinished;Lz.prototype.engagementPanelsChanged=Lz.prototype.engagementPanelsChanged;Lz.prototype.scrollAtTopChanged=Lz.prototype.scrollAtTopChanged;Lz.prototype.channelIdChanged=Lz.prototype.channelIdChanged;Lz.prototype.tabsChanged=Lz.prototype.tabsChanged;
Lz.prototype.activeChanged=Lz.prototype.activeChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],Lz.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);
_.U([_.v(_.Gp.YtPageBehavior),_.O("design:type",Object)],Lz.prototype,"ytPageBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Lz.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Lz.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Lz.prototype,"hidden",void 0);_.U([_.Z(),_.O("design:type",Object)],Lz.prototype,"mastheadAdData",void 0);_.U([_.Z({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.O("design:type",Object)],Lz.prototype,"alertBannerData",void 0);_.U([_.Z({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.O("design:type",Object)],Lz.prototype,"greetingData",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],Lz.prototype,"pageSubtype",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.O("design:type",Boolean)],Lz.prototype,"hasC4TabbedHeaderRenderer",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.O("design:type",Boolean)],Lz.prototype,"hasMemberHubProfileRenderer",void 0);
_.U([_.Z({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Lz.prototype,"hasSidebar",void 0);_.U([_.Z({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Lz.prototype,"hasPageHeaderSidebar",void 0);_.U([_.Z({reflectToAttribute:!0,value:!0}),_.O("design:type",Boolean)],Lz.prototype,"roundedContainer",void 0);
_.U([_.Z({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Lz.prototype,"useUnifiedShowPageLayout",void 0);_.U([_.Z({computed:"computeIsConstrainedList(pageSubtype)"}),_.O("design:type",Object)],Lz.prototype,"isConstrainedList",void 0);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lz.prototype,"usePlaylistHeaderRenderer",null);
_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Lz.prototype,"useOldPlaylistSidebarRenderer",null);_.U([_.Z({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.O("design:type",Boolean)],Lz.prototype,"fluidWidth",void 0);_.U([_.Z({selector:function(W){return W.ui.scrollAtTop}}),
_.O("design:type",Boolean)],Lz.prototype,"scrollAtTop",void 0);_.U([_.Z({selector:_.DZ1}),_.O("design:type",Boolean)],Lz.prototype,"tabGesturesIsActive",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Lz.prototype,"darkerDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.O("design:type",Boolean)],Lz.prototype,"disableHeaderFluidWidth",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.O("design:type",String)],Lz.prototype,"responsiveSizing",void 0);_.U([_.gi("ytd-two-column-browse-results-renderer"),_.O("design:type",HTMLElement)],Lz.prototype,"contents",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],Lz.prototype,"header",void 0);_.U([_.gi("ytd-refresh"),_.O("design:type",Object)],Lz.prototype,"refresh",void 0);
_.U([_.Hl("active"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"activeChanged",null);_.U([_.Hl("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"tabsChanged",null);_.U([_.Hl("data.header.c4TabbedHeaderRenderer.channelId"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"channelIdChanged",null);
_.U([_.Hl("scrollAtTop"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"scrollAtTopChanged",null);_.U([_.Z(),_.O("design:type",Object)],Lz.prototype,"engagementPanels",void 0);_.U([_.Hl("data.panels"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"engagementPanelsChanged",null);
_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"onStampFinished",null);_.U([_.jI("yt-player-attached"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Element]),_.O("design:returntype")],Lz.prototype,"onPlayerAttached",null);_.U([_.jI("yt-player-detached"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Element]),_.O("design:returntype")],Lz.prototype,"onPlayerDetached",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Lz.prototype,"dataChanged",null);Lz=_.U([_.T({is:"ytd-browse"})],Lz);_.E9.registerService(_.bam,Lz);
_.cf();
}catch(e){_._DumpException(e)}
try{
_.Jd("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 EfS=function(W,k){return W<k?-1:W>k?1:0},OT=function(W,k){var C=0;
W=(0,_.Ks)(String(W)).split(".");k=(0,_.Ks)(String(k)).split(".");for(var n=Math.max(W.length,k.length),N=0;C==0&&N<n;N++){var B=W[N]||"",A=k[N]||"";do{B=/(\d*)(\D*)(.*)/.exec(B)||["","","",""];A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];if(B[0].length==0&&A[0].length==0)break;C=EfS(B[1].length==0?0:parseInt(B[1],10),A[1].length==0?0:parseInt(A[1],10))||EfS(B[2].length==0,A[2].length==0)||EfS(B[2],A[2]);B=B[3];A=A[3]}while(C==0)}return C},LQ=function(W){if(!W)return"browse";
var k=W.page,C=W.url,n,N,B,A=(n=W.response)==null?void 0:(N=n.responseContext)==null?void 0:(B=N.webResponseContextExtensionData)==null?void 0:B.pageTheme;if(A)k=A.toLowerCase().replace(/_/g,"-");else if(k!=="watch"){var w,x;if((k==="browse"||k==="settings")&&((w=W.response)==null?0:(x=w.sidebar)==null?0:x.settingsSidebarRenderer))k="WEB_PAGE_TYPE_SETTINGS";else{var E,a;k==="browse"&&((E=W.response)==null?0:(a=E.metadata)==null?0:a.channelMetadataRenderer)?k="channel":C&&(k=_.mCX(C)||k)}}return k},
az1=function(){var W=_.QK("yt.aba.att");
return W?W:_.gC.instance!==void 0?_.gC.instance.vpA.bind(_.gC.instance):null},XjE=function(W,k){var C;
return _.F(function(n){return(C=az1())?n.return(C(W,k,6E4)):n.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},fz1=function(W,k,C,n,N){k=k===void 0?[]:k;
N=N?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:N}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ur(W),dialogMessages:k.map(function(B){return _.Ur(B)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(C),serviceEndpoint:N}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(n)}}}}}},dN6=function(W){var k=!!_.Qd().queueProxy;
var C,n,N;W=W==null?void 0:(C=W.response)==null?void 0:(n=C.currentVideoEndpoint)==null?void 0:(N=n.watchEndpoint)==null?void 0:N.playlistId;return!(!k&&!W)},mNZ=function(W,k){var C=_.k7();
if(dN6(W))return C.playlistWatchPageActivation=!0;switch(LQ(k)){case "yts-products":return C.productDetailsPageActivation=!0;case "mini_app":return C.miniAppPageActivation=!0;case "playables":return C.playablesDestPageActivation=!0;default:return!1}},z8B=function(W,k,C){for(var n=typeof W==="string"?W.split(""):W,N=W.length-1;N>=0;--N)N in n&&k.call(C,n[N],N,W)},DNA=function(W,k){k=_.mX4(W,k);
k>=0&&_.VpJ(W,k)},VcA=function(W){return Array.prototype.concat.apply([],arguments)},J7u=function(W){var k=0;
k=k===void 0?0:k;if(!_.UA(W))throw _.KI("uint64");var C=typeof W;switch(k){case 512:switch(C){case "string":return _.M82(W);case "bigint":return String((0,_.bE)(64,W));default:return _.IZ4(W)}case 1024:switch(C){case "string":return _.QIm(W);case "bigint":return _.sA((0,_.bE)(64,W));default:return _.SAX(W)}case 0:switch(C){case "string":return _.M82(W);case "bigint":return _.sA((0,_.bE)(64,W));default:return _.cSz(W)}default:return _.oI(k,"Unknown format requested type for int64")}},c7Z=function(W){W!=
null&&(W=W.JSC$6687_value_||"",W=typeof W==="string"?W:new Uint8Array(W));
return W},IzC=function(W){for(var k=_.v6.apply(1,arguments),C=W[0],n=0;n<W.length-1;n++)C+=String(k[n]),C+=W[n+1];
k=document.implementation.createHTMLDocument("");n=k.createElement("style");k.head.appendChild(n);k=n.sheet;k.insertRule(C,0);if(k.cssRules.length===1&&(C=k.cssRules[0],C instanceof CSSStyleRule))return new _.P6(C.cssText.replace(/</g,"\\3C "))},Si6=function(W,k){if(/-[a-z]/.test(k))return null;
if(_.seZ&&W.dataset){if(_.wwm()&&!(k in W.dataset))return null;W=W.dataset[k];return W===void 0?null:W}return W.getAttribute("data-"+_.Be(k))},QES=function(){var W=Mc1;
_.QK("yt.ads.biscotti.getId_")||_.$g("yt.ads.biscotti.getId_",W)},pjY=function(W){_.$g("yt.ads.biscotti.lastId_",W)},e8S=function(){var W={};
for(_.tM=new vf7(W.handleError===void 0?_.mw:W.handleError,W.logEvent===void 0?_.a9:W.logEvent);_.Eh.length>0;)switch(W=_.Eh.shift(),W.type){case "ERROR":_.tM.logError(W.payload);break;case "EVENT":_.tM.logEvent(W.eventType,W.payload)}},sEY=function(W,k,C){return _.eVp(function(n){return C?n.userIdentifier!==void 0&&!W.includes(n.userIdentifier)&&C.includes(n.publicName):n.userIdentifier!==void 0&&!W.includes(n.userIdentifier)},k)},GjA=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1)return k=_.B4("YtIdbMeta hasAnyMeta other"),_.l(n,_.eVp(function(N){return N.userIdentifier!==void 0&&N.userIdentifier!==k},W),2);
C=n.yieldResult;return n.return(C.length>0)})},$NT=function(W,k){y7t||(y7t=_.aM.addLowPriorityJob(function(){var C,n,N,B,A;
return _.F(function(w){switch(w.nextAddress){case 1:return _.l(w,_.Z5(),2);case 2:C=w.yieldResult;if(!C)return w.return();n=!0;_.F0(w,3);return _.l(w,sEY(W,C,k),5);case 5:N=w.yieldResult;if(!N.length){n=!1;w.jumpTo(6);break}B=N[0];return _.l(w,_.Qn(B.actualName),7);case 7:return _.l(w,_.ef(B.actualName,C),6);case 6:_.M7(w,4);break;case 3:A=_.EF(w),_.aX(A),n=!1;case 4:_.aM.cancelJob(y7t),y7t=0,n&&$NT(W,k),_.ab(w)}})}))},ZiE=function(){var W;
return _.F(function(k){return k.nextAddress==1?_.l(k,_.Z5(),2):(W=k.yieldResult)?k.return(GjA(W)):k.return(!1)})},R81=function(W){var k=100;
k=k===void 0?500:k;var C,n,N,B,A,w;return _.F(function(x){return x.nextAddress==1?(C=_.DE("INNERTUBE_CONTEXT_CLIENT_NAME",0),n=[C,(0,_.oX)()-2592E6],N=[C,(0,_.oX)()],B=IDBKeyRange.bound(n,N),_.l(x,_.NyX(W),2)):x.nextAddress!=3?(A=x.yieldResult,w=[],_.l(x,_.v4(A,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(E){w.length=0;return _.ip(E.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:B,direction:"prev"},function(a){if(a.getValue()&&w.length<k)return w.push(a.getValue()),
a.delete().then(function(){return a.continue()})})}),3)):x.return(w)})},ofi=function(){var W;
return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.Z5(),2);W=k.yieldResult;if(!W||!_.bp()&&!_.m("nwl_init_require_datasync_id_killswitch")||!_.J7X())return k.jumpTo(0);_.Iz4=!0;_.c73.isNwlInitialized=_.Iz4;return _.l(k,_.UL2().awaitInitialization(),0)})},jj=function(W,k){_.qiw[W]=!0;
var C=_.qq();C&&C.publish.apply(C,arguments);_.qiw[W]=!1},TyS=function(){if(_.msw()&&!iiE){var W=function(C){C=C.data;
if(C.op==="serializedGelBatch"){var n=_.u84.get(C.key);n&&(_.OnI(C.serializedBatch,n.client,n.resolve,n.networklessOptions,n.isIsolated,n.useVSSEndpoint,n.dangerousLogToVisitorSession,n.requestsOutstanding),_.u84.delete(C.key))}},k=_.dsP();
k&&(k.addEventListener("message",W),k.onerror=function(){_.u84.clear()});
iiE=!0}},Hz=function(){this.relativeTimeStart_=_.gk()},qiE=function(W,k){W!=null&&this.append.apply(this,arguments)},uZC=function(){return _.IA("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},UN6=function(W,k,C){C=C===void 0?!1:C;
var n,N,B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:_.N7("SOCS",W,34128E3,"youtube.com",!0);if(_.Y4)return N=fetch(k,{method:"POST",mode:_.yM(k),credentials:_.G7(k),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),B=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.yM("/upgrade_visitor_cookie?eom=1"),credentials:_.G7("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.l(x,Promise.all([N,B]).then(function(E){return E[1]}),5);
fetch(k,{method:"POST",mode:_.yM(k),credentials:_.G7(k),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.l(x,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.yM("/upgrade_visitor_cookie?eom=1"),credentials:_.G7("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:n=x.yieldResult;x.jumpTo(3);break;case 5:n=A=x.yieldResult;case 3:if(!n.ok)throw Error("nf");return _.l(x,n.text(),7);case 7:w=x.yieldResult,
!w.includes('"state_switch":true')&&!C||w.includes("skip_reload_for_test")||window.location.reload(),_.ab(x)}})},OiE=function(W){return _.F(function(k){return k.nextAddress==1?_.l(k,UN6(W.socsCookie,W.savePreferenceUrl,!0),2):k.return()})},L8B=function(W){return _.F(function(k){return k.nextAddress==1?_.l(k,UN6(W.socsCookie,W.savePreferenceUrl),2):k.return()})},HiS=function(W){W=W.xhr.responseText;
if(!_.AK(W,")]}'"))throw new rz;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new rz;W=W.id;pjY(W);gz=_.vn(W);jE7(18E5,2);return W},gfY=function(W,k){k=new r76(k);
pjY("");gz=_.rwI(k);W>0&&jE7(12E4,W-1);throw k;},jE7=function(W,k){_.rA(function(){_.uzw().then(HiS,function(C){return gfY(k,C)}).thenCatch(_.Au)},W)},Mc1=function(){var W=_.hX2();
if(W!==void 0)return _.eh(W);gz||(gz=_.uzw().then(HiS).thenCatch(function(k){return gfY(2,k)}));
return gz},P6i=function(){var W=document;
return _.s2(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(k){return"on"+k.toLowerCase()in W})},K8S=function(W){W.addEventListener("click",function(k){var C=k.target;
C&&C.getAttribute("href")&&(C=C.getAttribute("href"),_.Ti(window,C,"_blank"),k.preventDefault(),k.stopImmediatePropagation())})},h8$=function(W){var k,C,n,N=(n=(C=((k=W.mainDownloadsListEntity)!=null?k:{})[_.D$3])==null?void 0:C.refresh)!=null?n:"",B;
W=(B=W.refresh)==null?void 0:B[N];N=W!=null?W:{};return(N==null?0:N.refreshTime)?Number(N==null?void 0:N.refreshTime):0},W0A=function(W,k){var C=_.Eb(W);
return k.every(function(n){var N;n=n==null?void 0:(N=n.playbackDataEntity)==null?void 0:N.key;if(!n)return!1;N=_.KB(_.r8(n).entityId,"mainVideoEntity");return!!C[N]})},kfS=function(W){W=_.xS(W.entities);
return _.yTz(W).length},CVY=function(W,k){if(k){var C;
W=(C=_.hQ(W.entities,"downloadQualityPickerEntity",k))!=null?C:void 0}else W=void 0;return W},YJC=function(){naT||(_.sb=_.f1m,naT=new NEZ);
return naT},BEC=function(W){var k=document.getElementsByTagName("ytd-enforcement-message-view-model");
k.length===0||getComputedStyle(k[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")},Pz=function(W){var k,C;
(W=(C=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?void 0:C.url)&&(k=_.mCX(W));return k},bnB=function(){KQ=0;
var W=[_.Nw(!0)];hi&&_.hA(hi,"yt-window-resized",W)},AW6=function(){KQ||(KQ=_.aM.addLowPriorityJob(bnB,200))},wJE=function(){WA=0;
F0$=_.w6A(document);var W=[F0$];hi&&_.hA(hi,"yt-window-scrolled",W)},xES=function(){WA||(WA=_.aM.addLowPriorityJob(wJE,200))},tr1=function(W){W=W===void 0?null:W;
lfB.push(_.Z3(window,"resize",AW6));lfB.push(_.Z3(window,"scroll",xES));W&&(hi=W)},Ea7=function(W){_.F(function(k){if(k.nextAddress==1)return _.l(k,W.delete("yt-appshell-assets"),2);
_.ab(k)})},af7=function(W){return _.pH((0,_.fJ8)(),W)},ff7=function(){var W;
_.F(function(k){return k.nextAddress==1?_.l(k,kW.getInstance(),2):(W=k.yieldResult)?_.l(k,XJt(W),0):k.jumpTo(0)})},mES=function(){var W;
_.F(function(k){return k.nextAddress==1?_.l(k,Cf.getInstance(),2):(W=k.yieldResult)?_.l(k,dEB(W),0):k.jumpTo(0)})},zxi=function(W){Ea7(W);
ff7();mES()},DEE=function(W){var k,C;
return _.F(function(n){if(n.nextAddress==1)return _.l(n,_.HkJ(W),2);if(k=n.yieldResult){var N;a:{if(k.headers&&(N=k.headers.get("date"))&&(N=Date.parse(N),!isNaN(N))){N=Math.round((0,_.oX)()-N);break a}N=-1}C=N;if(C>-1)return n.return(C)}return n.return(-1)})},Vri=function(){var W=_.NX.caches,k=_.cv("IS_SHELL_LOAD"),C,n;
_.F(function(N){if(N.nextAddress==1)return C=-1,k?_.l(N,DEE(W),3):(n=_.fB(),C=Math.round((0,_.oX)()-n),N.jumpTo(2));N.nextAddress!=2&&(C=N.yieldResult);C>=0&&C<2147483648&&_.Vb({appInstallDataAgeMs:C});_.ab(N)})},JWu=function(W){var k=_.Gb(_.NX.location.href),C={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(n){var N=k.JSC$7905_queryData_.getValues(n);if(N==null?0:N.length)C[n]=N});
return _.CU(W,new Map(Object.entries(C)))},cWT=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},If7=function(W){if(_.ljm()){var k=Object.keys(window.localStorage);
k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=cWT(C);n===void 0||W.includes(n)||self.localStorage.removeItem(C)}}},SJY=function(){if(!_.ljm())return!1;
var W=_.B4(),k=Object.keys(window.localStorage);k=_.b(k);for(var C=k.next();!C.done;C=k.next())if(C=cWT(C.value),C!==void 0&&C!==W)return!0;return!1},Mru=function(W){return _.$p("NotificationsDisabled",W)},QhS=function(){return Notification.permission!="granted"?Promise.resolve():_.V9t().then(function(W){return W?W.pushManager.getSubscription().then(function(k){if(k)return Promise.resolve();
k={userVisibleOnly:!0,applicationServerKey:_.Pw("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(k).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},pJC=function(W){return _.V9t().then(function(k){if(!k||!k.active)return Promise.reject(new _.AM("serviceworker.postMessage",W,k));
try{return k.active.postMessage(W),Promise.resolve()}catch(C){return Promise.reject(C)}})},vaB=function(){pJC({type:"notifications_register",
data:_.DE("ID_TOKEN")})},shY=function(){var W={isWide:_.nH.get("wide","0")==="1"},k=_.tQ();
if(k=k.getFlag(165)||k.getFlag(174))W.theme=_.Vi(!0);if(_.v8w()){var C=_.D6()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=C}!k&&_.m("parent_tools_enable_app_settings")&&_.G3(window.location.href).theme!==void 0&&(W.theme=_.Vi());if((k=nf)?!_.JU.equals(k,W):W)k={currentValue:W},exE&&(k.timeSinceLastSnapshotSecs=Math.round(((0,_.oX)()-exE)/1E3)),nf&&(k.previousValue=nf),_.a9("appSettingsCaptured",k),nf=W,exE=(0,_.oX)()},Gf7=function(){if(!_.cv("LOGGED_IN"))return Promise.resolve(!1);
var W=_.LS("service_worker_push_force_notification_prompt_tag");return W?_.T5("PromptTags").then(function(k){if(!k)return!0;var C=[];try{C=JSON.parse(k)}catch(n){return!1}return C&&C.indexOf(W)==-1}):Promise.resolve(!1)},yW$=function(){var W=_.Oe("service_worker_push_prompt_delay_microseconds");
return W?_.T5("PromptTime").then(function(k){return Promise.resolve(Date.now()-W>(k||0))}):Promise.resolve(!0)},$E7=function(){var W=_.Oe("service_worker_push_logged_out_prompt_watches");
return W==-1?Promise.resolve(!1):_.T5("WatchCount").then(function(k){return k>=W})},Znu=function(){var W=_.oh(document,"yt-push-prompt-modal-bg");
W&&_.xL(W)},RxT=function(){return _.Oe("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.T5("PromptCount").then(function(W){W||(W=0);
return Promise.resolve(W<_.Oe("service_worker_push_prompt_cap"))})},oa7=function(W){return _.cv("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.cv("LOGGED_IN")&&(W===void 0?0:W)?Gf7().then(function(k){if(k)return!0;
k=[RxT(),yW$()];_.cv("LOGGED_IN")||k.push($E7());return Promise.all(k).then(function(C){return C.every(function(n){return n})})}):Promise.resolve(!1)},inS=function(){_.T5("PromptCount").then(function(W){return _.$p("PromptCount",W+1)}).then(function(){return _.$p("PromptTime",Date.now())}).then(function(){var W=_.LS("service_worker_push_force_notification_prompt_tag");
if(W)return _.T5("PromptTags").then(function(k){var C=[];if(k)try{C=JSON.parse(k)}catch(n){return!1}C||(C=[]);C.push(W);return _.$p("PromptTags",JSON.stringify(C))})})},qJB=function(){TEB||Znu()},u8C=function(W){W.style.zIndex=2147483648;
W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"},UES=function(){var W=_.oh(document,"yt-push-prompt-modal-bg");
TEB=_.m("service_worker_push_prompt_modal_ignore_click");W?u8C(W):(W=_.zK("div",{id:"yt-push-prompt-modal-bg"}),u8C(W),document.body.appendChild(W),_.R8J(document,"click",qJB))},On7=function(){var W=arguments;
_.m("service_worker_push_prompt_modal_enable")&&UES();return Notification.requestPermission().then(function(k){Znu();var C=document.getElementById("ticker");C&&(C.className=C.classList.remove("show"));if(k=="granted")return QhS().then(function(){Mru(!1);vaB();return Promise.resolve(!0)});
k=="denied"&&vaB();return Promise.resolve(!1)}).catch(function(){Znu();
return Promise.reject.apply(Promise,_.J8(W))})},L0t=function(W){W=W===void 0?!1:W;
var k=_.$YP().client;if(k&&k.browserVersion){var C=k.browserVersion,n=k.browserName=="CHROME"&&OT(C,"50.0.0")<0;k=k.browserName=="OPERA"&&OT(C,"42.0.0")<0;if(n||k)return Promise.resolve()}return _.IRA().then(function(N){if(!N)return Promise.resolve();N=QhS().then(function(){return pJC({type:"notifications_check_registration",data:_.DE("ID_TOKEN")})});
return Notification.permission!="default"?N.catch(function(){}):N.then(function(){return oa7(W)}).then(function(B){if(B)return inS(),On7().then(function(){})}).catch(function(){})})},jh$=function(W){return _.JD7(W)?L0t():Promise.resolve()},HnZ=function(W){var k=W.installing||W.waiting;
return W.active||!k?Promise.resolve(W):new Promise(function(C){var n=function(N){N=N.target;if(N.state==="activated"||N.state==="redundant")k.removeEventListener("statechange",n),C(W)};
k.addEventListener("statechange",n)})},rWi=function(){var W=new _.ckP("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Bq(W,{mainAppWeb:_.SI()});var k=_.RSI;_.m("service_worker_forward_exp_params")&&(k=JWu(k));try{var C=_.o8w(k).catch(function(){_.bH(W,"FAILURE");return new Promise(function(){})});
_.m("service_worker_push_enabled")&&C.then(function(n){_.bH(W,"SUCCESS");return n}).then(HnZ).then(jh$)}catch(n){if(_.bH(W,"FAILURE"),n.name!=="SecurityError")throw n;
}},gaB=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&rWi()},PVS=function(W,k){var C={};
k&&(C.serializedYpcFamilyCreateLoggingParams=k);_.a9(W,C);_.fM()},K0Z=function(W,k){var C={};
C.serializedYpcRefundFlowLoggingParams=k;W&&(C.eventType=W);_.a9("ypcRefundFlowEvent",C);_.fM()},hxS=function(W){W&&_.TXc("transactionFlowSucceeded",W)},Wk7=function(W){W&&_.Xd("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},knZ=function(W){var k,C,n,N,B,A,w;
_.F(function(x){if(x.nextAddress==1)return _.l(x,_.Fz3(),2);if(x.nextAddress!=3){if(!x.yieldResult)return x.return(!1);k=[];return _.l(x,_.i6.keys(),3)}C=x.yieldResult;n=_.b(C);for(N=n.next();!N.done;N=n.next())B=N.value,A=_.bdP(B),w=A.datasyncId,!w||W.includes(w)||k.push(_.i6.delete(B));return x.return(Promise.all(k).then(function(E){return E.some(function(a){return a})}))})},CX6=function(){var W,k,C,n,N,B,A;
return _.F(function(w){if(w.nextAddress==1)return _.l(w,_.Fz3(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);W=_.B4("cache contains other");return _.l(w,_.i6.keys(),3)}k=w.yieldResult;C=_.b(k);for(n=C.next();!n.done;n=C.next())if(N=n.value,B=_.bdP(N),(A=B.datasyncId)&&A!==W)return w.return(!0);return w.return(!1)})},njA=function(){var W=_.f().resolve(_.qI(_.UGI));
return W?W.getCurrentTime():0},N7i=function(){var W,k,C,n,N,B,A,w,x,E,a,X,d,V;
return _.F(function(c){switch(c.nextAddress){case 1:W={},k=_.kUK(),C=_.b(Object.entries(k)),n=C.next();case 4:if(n.done){c.jumpTo(3);break}N=n.value;B=_.b(N);A=B.next().value;w=B.next().value;x=A;E=w;if(!E){c.jumpTo(5);break}return _.l(c,E(),8);case 8:W[x]=c.yieldResult;case 5:n=C.next();c.jumpTo(4);break;case 2:a=_.b(void 0),X=a.next();case 9:if(X.done){c.jumpTo(3);break}d=X.value;V=k[d];if(!V){c.jumpTo(10);break}return _.l(c,V(),13);case 13:W[d]=c.yieldResult;case 10:X=a.next();c.jumpTo(9);break;
case 3:return c.return(W)}})},YxZ=function(){var W;
_.F(function(k){if(k.nextAddress==1)return _.l(k,N7i(),2);W=k.yieldResult;return _.l(k,navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})},B7C=function(W,k){return _.hQ(W.entities,"superThanksSelectedTierEntity",k)},bX7=function(W){var k;
return(k=W.sharedUi)==null?void 0:k.currentPageType},AyY=function(W,k){return{popup:{searchSuggestionReportDialog:{searchQuery:W,
title:_.w8("SBOX_INAPPROPRIATE_TITLE"),suggestions:k,categoryLabel:_.w8("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.w8("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.w8("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.w8("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.w8("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.w8("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.w8("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.w8("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.w8("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.w8("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},FkT=function(W){var k,C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h;
return _.F(function(L){switch(L.nextAddress){case 1:return _.l(L,_.C5(),2);case 2:return(k=L.yieldResult)?_.l(L,_.r13(k),3):L.return();case 3:C=L.yieldResult;if(!C)return L.return();N=((n=C.offlineVideos)==null?void 0:n.length)||0;A=((B=C.offlinePlaylists)==null?void 0:B.length)||0;if(N===0&&A===0)return L.return();w=0;if(C.offlineVideos)for(x=_.b(C.offlineVideos),E=x.next();!E.done;E=x.next())a=E.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===a.videoState&&(w+=1);W.offline_videos_count=N.toString();_.m("kevlar_log_offline_current_network_type_ks")||
(W.offline_current_network_type=(X=_.Ybz())!=null?X:"CONN_INVALID");_.m("kevlar_log_updated_time_for_smart_downloads")&&(d=_.ZF().getState().entities,V=_.f5(d),c=h8$(d),W.offline_smart_downloads_last_sync_time_ms=V.toString(),W.offline_smart_downloads_next_sync_time_ms=c.toString());W.offline_videos_playable=w.toString();W.offline_playlists_count=A.toString();if(!_.m("woffle_used_state_report")){L.jumpTo(4);break}C.offlineVideos&&(M=C.offlineVideos.reduce(function(Bw,P){P.downloadedBytes&&(Bw+=Number(P.downloadedBytes));
return Bw},0).toString())&&(W.offline_used_disk_space_bytes=M);
if(!((p=navigator)==null?0:(e=p.storage)==null?0:e.estimate)){L.jumpTo(4);break}return _.l(L,navigator.storage.estimate(),6);case 6:u=L.yieldResult,W.offline_free_disk_space_bytes=(((h=u)==null?void 0:h.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(C),_.ab(L)}})},wBE=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},xjT=function(W){if(_.uSI()){var k=Object.keys(window.sessionStorage);
k=_.b(k);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=wBE(C);n===void 0||W.includes(n)||self.sessionStorage.removeItem(C)}}},liY=function(){if(!_.uSI())return!1;
var W=_.B4(),k=Object.keys(window.sessionStorage);k=_.b(k);for(var C=k.next();!C.done;C=k.next())if(C=wBE(C.value),C!==void 0&&C!==W)return!0;return!1},NW=function(W,k,C){(_.m("desktop_keyboard_shortcut_usage_log")||C&&_.m("web_shorts_keyboard_shortcut_usage_log"))&&(k?_.qd.get(W):_.TO.get(W))&&(W=k?_.UT.get(W):_.um.get(W))&&_.Zr(_.VM(),W)},tH6=function(W,k){k.stack&&(W.stack+="\n"+k.stack);
return W},XBS=function(W){var k=YW(W,"Content-Type");
if(!k)return null;k=k.toLowerCase();if(k.startsWith("application/json"))return k.startsWith("application/json+protobuf")?new EjY:new _.HF;if(k.startsWith("application/x-protobuf")){W=YW(W,"Content-Transfer-Encoding");if(!W)return new BA;if(W.toLowerCase()=="base64")return new ai$}return null},IiC=function(W,k,C,n){var N=new fiE(function(w,x){return djZ.has(x)?w.sentinel==="gal"&&w.event!==void 0:!1},function(w){w.event?(w=mj7(w.event),w=!w||zbZ(n,w)?!0:_.lA(W.lastEvent,b9,2,AJ)?!_.lA(w,Fj,1,AJ)&&
!_.lA(w,b9,2,AJ):!_.lA(w,Fj,1,AJ)&&!_.lA(w,b9,3,AJ)):w=!0;
return w});
C=_.CU(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DjB(C)]]));if(W.nestedOrigins!==void 0)for(var B=_.b(W.nestedOrigins),A=B.next();!A.done;A=B.next())C=_.CU(C,new Map([["origin",A.value]]));return VHE(N,C,k).then(function(w){w=Jyu(w.event);if(_.lA(w,Fj,1,AJ)){var x,E=(x=_.St(w,Fj,1,AJ))==null?void 0:_.Jp(x,2);E&&n.JSC$16931_logErrorEvent(cyY(E));x=_.St(w,Fj,1,AJ);_.Jp(x,2)===4?(w=_.St(w,Fj,1,AJ),w={statusCode:11,statusMessage:_.Vo(w,
3)}):(w=_.St(w,Fj,1,AJ),w={statusCode:12,statusMessage:_.Vo(w,3)});return w}_.lA(w,b9,3,AJ)?(w=_.St(w,b9,3,AJ),w={statusCode:1,consentLanguageKeys:_.Vo(w,2)}):w={statusCode:1};return w}).catch(function(w){return w.errorCode!==void 0?{statusCode:w.errorCode,
statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},pBE=function(W){var k={};
if(W===void 0||W===null)return k;W.getToken()!==void 0&&Sxu(W.getToken())&&Sxu(W.getToken()).length>0&&(k.scopes=new Set(Sxu(W.getToken())));W.getToken()!==void 0&&MHY(W.getToken())&&MHY(W.getToken()).length>0&&(k.capabilities=new Set(MHY(W.getToken())));_.Vo(W,3)!==void 0&&(k.consistencyKey=_.Vo(W,3));W.getName()!==void 0&&W.getName()!==""&&(k.linkName=W.getName());_.x4(W,QSE,4)&&(W=_.q7(W,QSE,4),W=Object.assign({},_.Vo(W,1)&&{userId:_.Vo(W,1)},_.Vo(W,2)&&{displayName:_.Vo(W,2)},_.Vo(W,3)&&{email:_.Vo(W,
3)},_.Vo(W,5)&&{username:_.Vo(W,5)},_.Vo(W,4)&&{profilePicture:_.Vo(W,4)}),k.profile=W);return k},vjS=function(W,k){var C=W.flowParams;
return{serviceId:C.serviceId,sessionId:C.sessionId,currentFlow:W.currentFlow,googleScopesString:k,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:C.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:C.dynamicUrlParameters,partnerConfigMinReadTimestamp:C.partnerConfigMinReadTimestamp}},$jY=function(W){var k=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";
ebZ(vjS(W,k));k=sSS(W);return k===null?Promise.resolve(GnS):k.start().then(function(C){var n,N=(n=C.link)==null?void 0:n.consistencyKey;return C.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&N!==void 0?(n=W.flowParams,yyE(n.serviceId,n.sessionId,W.googleScopes,N,n.galService,W.config,C)):C})},ZX6=function(W){var k=sSS(W);
return k===null?Promise.resolve(wY({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):k.complete().then(function(C){var n,N=(n=C.link)==null?void 0:n.consistencyKey;return C.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&N!==void 0?(n=W.flowParams,yyE(n.serviceId,n.sessionId,W.googleScopes,N,n.galService,W.config,C)):wY(C,W.callerState)},function(C){return wY({statusCode:12,
statusMessage:"Failed to complete the flow: "+C.message},W.callerState)})},yyE=function(W,k,C,n,N,B,A){return RbE(N,{serviceId:W,
sessionId:k,googleScopes:C,consistencyKey:n}).then(function(){return A},function(w){return N.deleteLink({serviceId:W,
sessionId:k,accountLinkingEntryPoint:B.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+w.message}},function(x){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+x.message}})})},sSS=function(W){switch(W.currentFlow){case 1:var k=W.flowParams;
W=_.q7(W.session,ojS,1);return xW.createOAuthFlow(k,W);case 2:case 3:return k=W.flowParams,W=_.q7(W.session,iXi,6),l9.createStreamlinedFlow(k,W);default:return null}},T7C=function(W,k){W===2&&(W=3);
var C=0;tJ.indexOf(W)!==-1&&(C=tJ.indexOf(W)+1);for(W=C;W<tJ.length;W++)if(k.has(tJ[W]))return tJ[W]},UjS=function(W){var k=W.serviceId;
var C=W.sessionId;var n=W.config;var N=W.galService;var B=W.capabilities;var A=W.scopes;var w=W.loginHint;var x=W.callerState;var E=W.consentLanguageKeys;var a=W.linkName;var X=W.dynamicUrlParameters;var d=W.partnerConfigMinReadTimestamp;W=n.dataUsageNoticeConfig?n.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return N.startLinkingSession({serviceId:k,sessionId:C,capabilities:B,scopes:A,loginHint:w,callerState:x,supportedFlows:qx6(n.supportedFlows),completionUrl:n.completionUrl,accountLinkingEntryPoint:n.accountLinkingEntryPoint,
consentLanguageKeys:E,dataUsageNoticeConfig:W,linkName:a,dynamicUrlParameters:X,partnerConfigMinReadTimestamp:d}).then(function(V){return new uoY(k,C,n,N,V,void 0,x,E,X,d)})},ry1=function(W,k,C){a:{var n=new OXB;
if(n.storage!==null)try{var N=n.storage.get("SAVED_SESSION");if(N===void 0){var B=null;break a}if(N.serviceId===W){B=N;break a}}catch(A){}B=null}if(B===null)return Promise.resolve({statusCode:2});Lk1(W);n=jSY(B.linkingSessionSerialized);return HXB(new uoY(W,B.sessionId,k,C,n,B.googleScopesString!==""&&B.googleScopesString!==void 0?new Set(B.googleScopesString.split(",")):void 0,B.callerState,B.consentLanguageKeys,B.dynamicUrlParameters,B.partnerConfigMinReadTimestamp),B.currentFlow,B.consentLanguageKeys)},
ebZ=function(W){var k=new OXB;
k.storage!==null&&k.storage.set("SAVED_SESSION",W)},Lk1=function(W){var k=new OXB;
if(k.storage!==null){var C=k.storage.get("SAVED_SESSION");C!==void 0&&C.serviceId===W&&k.storage.remove("SAVED_SESSION")}},qx6=function(W){var k=new Set;
W=_.b(W);for(var C=W.next();!C.done;C=W.next())C=C.value,C!==1&&gjA.has(C)&&k.add(gjA.get(C));return k},wY=function(W,k){k!==void 0&&(W.callerState=k);
return W},PXS=function(W){switch(W){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},W47=function(){var W={timeout:5E3};
W=W===void 0?{}:W;return Kkt!=null?Kkt:Kkt=hbT(W)},krY=function(){return new Promise(function(W,k){window.gapi.load("client",{callback:W,
onerror:k})})},hbT=function(W){W=W===void 0?{}:W;
var k;return _.F(function(C){if(C.nextAddress==1){if((k=window.gapi)&&k.client&&k.client.load)C=C.return(k);else{var n=_.to("https://apis.google.com/js/api.js");C=_.l(C,_.zc(n,W),2)}return C}if(C.nextAddress!=3){k=window.gapi;if(!k)throw Error("Yj");return k.client&&k.client.load?C.jumpTo(3):_.l(C,krY(),3)}return C.return(k)})},nxu=function(W,k){k=k===void 0?0:k;
var C=W.auth2.getAuthInstance().currentUser.get(),n=C.getAuthResponse(!0);if(n&&n.expires_at-Date.now()<k){if(C2A.has(W))return C2A.get(W);k=Promise.resolve(C.reloadAuthResponse()).finally(function(){C2A.delete(W)});
C2A.set(W,k);return k}return Promise.resolve()},Nq1=function(W,k){var C;
return W.client.init({apiKey:k.apiKey,clientId:k.clientId,scope:k.scope,discoveryDocs:k.discoveryDocs,hostedDomain:k.hostedDomain,fetchBasicProfile:(C=k.fetchBasicProfile)!=null?C:!0})},YRS=function(W){if(W.queryParams!=null){var k={},C;
for(C in W.queryParams)W.queryParams[C]!==void 0&&(k[C]=W.queryParams[C]);W.queryParams=k}},Afi=function(W){return new BqZ(W,new b6Y(W))},x2S=function(W,k){k=k===void 0?!1:k;
var C=document.createElement("div");W&&(C.style.transform="scaleX(-1)");C.style.backgroundColor=k?"rgba(138,180,248,.24)":"#e8f0fe";C.style.height="4px";C.style.overflow="hidden";C.style.position="absolute";C.style.top="0";C.style.width="100%";C.style.zIndex="1500";C.setAttribute("aria-label","Loading");C.setAttribute("aria-live","polite");W=document.createElement("style");W.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
C.appendChild(W);W=F4C();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var n=wGA(k);n.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(n);C.appendChild(W);W=F4C();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";k=wGA(k);k.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(k);C.appendChild(W);return C},F4C=function(){var W=document.createElement("div");
W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W},wGA=function(W){var k=document.createElement("span");
k.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";k.style.display="inline-block";k.style.position="absolute";k.style.width="100%";return k},lNE=function(W){return W==null?void 0:_.hr2(W).valueOf()},XG7=function(W){var k=document.body,C=!1,n=function(){C||(C=!0,tyB(N,B),setTimeout(function(){k.removeChild(B);
k.removeChild(N)},150))},N=Ext(W,getComputedStyle(k).direction==="rtl",n),B=aNY(n);
tyB(N,B);k.appendChild(B);k.appendChild(N);window.requestAnimationFrame(function(){B.style.opacity="1";N.style.opacity="1";N.style.transform="translate(-50%, -50%) scale(1)";N.children[0].focus()})},Ext=function(W,k,C){var n=document.createElement("div");
n.style.position="fixed";n.style.alignItems="center";n.style.backgroundColor=W?"rgb(32, 33, 36)":"white";n.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";n.style.display="flex";n.style.flexDirection="column";n.style.justifyContent="center";n.style.left="50%";n.style.top="50%";n.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";n.style.zIndex="2002";document.body.clientWidth>=660?(n.style.borderRadius="8px",n.style.minHeight="220px",
n.style.maxHeight="90%",n.style.maxWidth="90%",n.style.minWidth="540px"):(n.style.height="100%",n.style.width="100%");n.setAttribute("aria-label","Error");n.setAttribute("aria-modal","true");n.setAttribute("role","alertdialog");n.addEventListener("keydown",function(B){B.key==="Escape"&&C()});
k=fNB(W,k,C);n.appendChild(d26(k));n.appendChild(k);var N=document.createElement("img");N.src=W?"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";N.style.height="72px";N.style.width="72px";N.style.color="#9aa0a6";N.setAttribute("alt","");n.appendChild(N);N=document.createElement("h1");N.textContent="Something went wrong.  Try again.";
N.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";N.style.lineHeight="24px";N.style.fontSize="16px";N.style.textAlign="center";N.style.letterSpacing="0.1px";N.style.color=W?"rgb(232,234,237)":"#3c4043";n.appendChild(N);n.appendChild(d26(k));return n},fNB=function(W,k,C){var n=document.createElement("button");
n.style.backgroundColor="transparent";n.style.border="none";n.style.borderRadius="50%";n.style.cursor="pointer";n.style.outline="none";n.style.padding="12px";n.setAttribute("aria-label","Close dialog");n.style.position="absolute";n.style.top="0";k?n.style.right="0":n.style.left="0";n.addEventListener("focus",function(){n.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
n.addEventListener("blur",function(){n.style.backgroundColor="transparent"});
n.addEventListener("mouseenter",function(){n.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
n.addEventListener("mouseleave",function(){n.style.backgroundColor="transparent"});
n.addEventListener("click",C);n.addEventListener("keydown",function(N){N.key!=="Enter"&&N.key!=="Space"||C()});
k=document.createElement("img");k.src=W?"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";k.style.display="block";k.style.height="24px";k.style.width="24px";k.setAttribute("alt","");n.appendChild(k);return n},d26=function(W){var k=document.createElement("div");
k.setAttribute("tabindex","0");k.setAttribute("aria-hidden","true");k.addEventListener("focus",function(){return void W.focus()});
return k},aNY=function(W){var k=document.createElement("div");
k.style.backgroundColor="rgba(32,33,36,0.6)";k.style.bottom="0";k.style.left="0";k.style.position="fixed";k.style.right="0";k.style.top="0";k.style.transition=" opacity 150 ms linear";k.style.zIndex="2001";k.addEventListener("click",W);return k},tyB=function(W,k){k.style.opacity="0";
W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"},m2u=function(W,k){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));
W.src=k},E_=function(W){zDY.call(this,W)},a6=function(W,k){k=k===void 0?!1:k;
this.parsedImageUrl_=null;W instanceof D2Y||(Vy7==void 0&&(Vy7=new JfC),W=Vy7.parse(W.toString(),k));W=this.parsedImageUrl_=W;W.JSC$17162_parsedOptions_==void 0&&((k=W.getOptions())||(k=""),W.JSC$17162_parsedOptions_=(new cf1).parse(k));zDY.call(this,W.JSC$17162_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;k=W.uri_.JSC$7905_port_;this.JSC$17164_domain_=W.uri_.JSC$7905_domain_+(k?":"+k:"");this.JSC$17164_query_=this.parsedImageUrl_.uri_.JSC$7905_queryData_.toString()},
INi=function(W){this.mode=4;
this.data=W;this.parsedData=[];W=0;for(var k=this.data.length;W<k;W++){var C=[],n=this.data.charCodeAt(W);n>65536?(C[0]=240|(n&1835008)>>>18,C[1]=128|(n&258048)>>>12,C[2]=128|(n&4032)>>>6,C[3]=128|n&63):n>2048?(C[0]=224|(n&61440)>>>12,C[1]=128|(n&4032)>>>6,C[2]=128|n&63):n>128?(C[0]=192|(n&1984)>>>6,C[1]=128|n&63):C[0]=n;this.parsedData.push(C)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),
this.parsedData.unshift(239))},SR7=function(W){this.typeNumber=0;
this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Xj=function(W,k){if(W.length==void 0)throw Error("sk`"+W.length+"`"+k);
for(var C=0;C<W.length&&W[C]==0;)C++;this.num=Array(W.length-C+k);for(k=0;k<W.length-C;k++)this.num[k]=W[k+C]},MyE=function(W,k){this.totalCount=W;
this.dataCount=k},QZ6=function(){this.buffer=[];
this.length=0},pGA=function(){var W=!1;
if(_.EzK()){W=_.fI();var k="";_.fXz()?(k=/Windows (?:NT|Phone) ([0-9.]+)/,k=(W=k.exec(W))?W[1]:"0.0"):_.QP()?(k=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,k=(W=k.exec(W))&&W[1].replace(/_/g,".")):_.Xwp()?(k=/Mac OS X ([0-9_.]+)/,k=(W=k.exec(W))?W[1].replace(/_/g,"."):"10"):_.aJ(_.fI(),"KaiOS")?(k=/(?:KaiOS)\/(\S+)/i,k=(W=k.exec(W))&&W[1]):_.EzK()?(k=/Android\s+([^\);]+)(\)|;)/,k=(W=k.exec(W))&&W[1]):_.dXc()&&(k=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,k=(W=k.exec(W))&&W[1]);W=k||""}return W},$2t=function(W,
k){this.JSC$17187__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(k)for(var C in k)this.JSC$17187__htOption[C]=k[C];this.JSC$17187__htOption.useSVG&&(vxE=eDC);this.JSC$17187__android=pGA();this.JSC$17187__el=W;this._oQRCode=null;this._oDrawing=new vxE(this.JSC$17187__el,this.JSC$17187__htOption);this.JSC$17187__htOption.text&&(W=this.JSC$17187__htOption.text,this._oQRCode=new SR7(this.JSC$17187__htOption.correctLevel),sZE(this._oQRCode,W),k=this._oQRCode,GrA(k,!1,yf7(k)),this.JSC$17187__el.title=
W,this._oDrawing.draw(this._oQRCode),this.makeImage())},Z6T=function(W,k,C,n,N){W.save();
var B=new Path2D;B.roundRect(k,C,n*7,n*7,n*2);B.roundRect(k+n,C+n,n*5,n*5,n*1.3);B.roundRect(k+2*n,C+2*n,n*3,n*3,n);W.clip(B,"evenodd");W.fillStyle=N;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()},ff=function(W,k){if(typeof W!=="function")throw Error("vk");
return _.NX.setTimeout(function(){W()},k)},dY=function(){},ox6=function(W,k,C,n,N){(new dY).debug("TestLoadImageWithRetries: "+N);
if(n==0)C(!1);else{var B=N||0;n--;RDT(W,k,function(A){A?C(!0):_.NX.setTimeout(function(){ox6(W,k,C,n,B)},B)})}},RDT=function(W,k,C){var n=new dY;
n.debug("TestLoadImage: loading "+W);var N=new Image;N.onload=function(){try{n.debug("TestLoadImage: loaded"),i66(N),C(!0)}catch(B){}};
N.onerror=function(){try{n.debug("TestLoadImage: error"),i66(N),C(!1)}catch(B){}};
N.onabort=function(){try{n.debug("TestLoadImage: abort"),i66(N),C(!1)}catch(B){}};
N.ontimeout=function(){try{n.debug("TestLoadImage: timeout"),i66(N),C(!1)}catch(B){}};
_.NX.setTimeout(function(){if(N.ontimeout)N.ontimeout()},k);
N.src=W},i66=function(W){W.onload=null;
W.onerror=null;W.onabort=null;W.ontimeout=null},TqY=function(){this.front_=[];
this.back_=[]},qRZ=function(W,k){_.XK.call(this);
this.delay_=new _.du(this.JSC$17313_onTick_,0,this);_.Bf(this,this.delay_);this.JSC$17311_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")k&&(W=(0,_.fN)(W,k));else if(W&&typeof W.handleEvent==="function")W=(0,_.fN)(W.handleEvent,W);else throw Error("Ca");this.JSC$17313_listener_=W},m6=function(W,k,C,n,N,B,A,w,x,E,a,X,d,V){C=C===void 0?!1:C;
n=n===void 0?function(){return""}:n;
N=N===void 0?!1:N;B=B===void 0?!1:B;A=A===void 0?!1:A;w=w===void 0?function(){return _.nB({})}:w;
x=x===void 0?!1:x;a=a===void 0?!1:a;X=X===void 0?!1:X;d=d===void 0?!1:d;V=V===void 0?!1:V;this.JSC$17314_pathPrefix_=W;this.defaultQueryParams_=k;this.pubsub_=new _.kg;this.reconnectTimer_=new qRZ(this.safeReconnect_,this);this.JSC$17314_channel_=null;this.JSC$17314_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17314_pendingMessages_=[];this.enableAsyncTest_=C;this.JSC$17314_getXsrfToken_=n;this.useAsyncBrowserChannelHandler_=B;this.getAuthorizationHeader_=
w;this.getAuthorizationHeaderSync_=E;this.enableCachedUpdateAuthorizationHeader_=A;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.nB();this.enableLoungeTokenRefresh_=N;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=x;this.disableMdxAuthForNonPlaybackMessages_=a;this.disableMdxAuthForAdMessages_=X;this.enableMdxAuthForConnectionOnly_=d;this.disableMdxAuthForShortsMessages_=V;this.JSC$17314_channelOpenedCounter=new uYE;this.JSC$17314_channelClosedCounter=new U2u;this.channelMessageSentCounter=
new O6E;this.JSC$17314_channelMessageReceivedCounter=new L4Y;this.JSC$17314_channelErrorCounter=new jZT;this.pendingMapsOnClosedCounter=new H67;this.undeliveredMapsOnClosedCounter=new rfE},zs=function(W){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var k=Number(_.ZE(W)[4]||null)||"";k&&(this.port=":"+k);this.domain=_.R4(W)||"";W=_.fI();W.search("MSIE")>=0&&OT(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},Dc=function(W){W=W||{};
this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"},gx7=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var k=Math.random()*16|0;
return(W=="x"?k:k&3|8).toString(16)})},P27=function(W){return _.cD(W,function(k){return{key:k.id,
name:k.name}})},K4t=function(W,k){return _.s2(W,function(C){return C||k?!C!=!k?!1:C.id==k.id:!0})},JJ=function(W,k){return _.s2(W,function(C){return VL(C,k)})},nNB=function(){var W=hDA(),k=WEu();
if(k_t()){var C=W,n=_.MpJ(C,k);n<0&&_.cKc(C,-(n+1),0,k)}W=CH6(W);if(W.length==0)try{_.ko3("remote_sid")}catch(N){}else try{_.N7("remote_sid",W.join(","),-1)}catch(N){}},hDA=function(){var W=_.h4("yt-remote-connected-devices")||[];
W.sort(_.S24);return W},CH6=function(W){if(W.length==0)return[];
var k=W[0].indexOf("#"),C=k==-1?W[0]:W[0].substring(0,k);return _.cD(W,function(n,N){return N==0?n:n.substring(C.length)})},Nki=function(W){_.KE("yt-remote-connected-devices",W,86400)},WEu=function(){if(Yv7)return Yv7;
var W=_.h4("yt-remote-device-id");W||(W=gx7(),_.KE("yt-remote-device-id",W,31536E3));for(var k=hDA(),C=1,n=W;_.ZX(k,n);)C++,n=W+"#"+C;return Yv7=n},BkS=function(){return _.h4("yt-remote-session-browser-channel")},k_t=function(){return _.h4("yt-remote-session-screen-id")},FEY=function(W){W.length>5&&(W=W.slice(W.length-5));
var k=_.cD(bs7(),function(n){return n.loungeToken}),C=_.cD(W,function(n){return n.loungeToken});
_.F2w(C,function(n){return!_.ZX(k,n)})&&A3T();
_.KE("yt-remote-local-screens",W,31536E3)},bs7=function(){return _.h4("yt-remote-local-screens")||[]},A3T=function(){_.KE("yt-remote-lounge-token-expiration",!0,86400)},cA=function(W){W||(_.WR("yt-remote-session-screen-id"),_.WR("yt-remote-session-video-id"));
nNB();W=hDA();_.iw(W,WEu());Nki(W)},xKA=function(){wqE();
return I6?!!I6.get("yt-remote-use-staging-server"):!1},wqE=function(){if(!I6){var W=_.w3X();
W&&(I6=new _.FV(W))}},a77=function(W,k,C,n,N){C=C===void 0?function(){return""}:C;
var B=function(){return new m6(Sx(W,"/bc"),k,!1,C,n)};
return _.m("enable_mdx_web_channel_desktop")?new l7Z(function(){return new tq7(Sx(W,"/wc"),k,C)}):new ENE(B,N)},mK$=function(){var W=XqB;
f7E();MW.push(W);dKC()},QL=function(W,k){f7E();
var C=zn7(W,String(k));MW.length==0?DKT(C):(dKC(),_.eO(MW,function(n){n(C)}))},pf=function(W){QL("CP",W)},f7E=function(){MW||(MW=_.QK("yt.mdx.remote.debug.handlers_")||[],_.$g("yt.mdx.remote.debug.handlers_",MW))},DKT=function(W){var k=(vA+1)%50;
vA=k;Vq$[k]=W;J3t||(J3t=k==49)},dKC=function(){var W=MW;
if(Vq$[0]){var k=J3t?vA:-1,C={};do C={record$jscomp$13:void 0},k=(k+1)%50,C.record$jscomp$13=Vq$[k],_.eO(W,function(n){return function(N){N(n.record$jscomp$13)}}(C));
while(k!=vA);Vq$=Array(50);vA=-1;J3t=!1}},zn7=function(W,k){var C=(Date.now()-c36)/1E3;
C.toFixed&&(C=C.toFixed(3));var n=[];n.push("[",C+"s","] ");n.push("[","yt.mdx.remote","] ");n.push(W+": "+k,"\n");return n.join("")},ex=function(W){_.im.call(this);
this.JSC$17338_logName_=W;this.screens=[]},Gs=function(W){ex.call(this,"LocalScreenService");
this.JSC$17345_http_=W;this.loungeTokenRefreshTimer_=NaN;s_(this);this.info("Initializing with "+I7B(this.screens))},yL=function(W,k){k=k===void 0?!1:k;
ex.call(this,"ScreenService");this.JSC$17351_http_=W;this.disableAutomaticScreenCache_=k;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};SvY(this)},$W=function(W,k,C){_.im.call(this);
this.JSC$17355_logName_=C;this.JSC$17355_screenService_=W;this.receiver_=k;this.screen_=null},qv1=function(W,k,C){C.disableCastApi?Zc("Cannot initialize because disabled by Mdx config."):Mq$()?Q5Z(W,C)&&(pq7(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?vN7(k):(window.__onGCastApiAvailable=function(n,N){n?vN7(k):(R6("Failed to load cast API: "+N),ent(!1),pq7(!1),_.WR("yt-remote-cast-available"),_.WR("yt-remote-cast-receiver"),s57(),k(!1))},C.loadCastApiSetupScript?_.ML("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?G_Z()>=60&&y3Z():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?$KB():G_Z()>=89?ZsZ():(Rnt(),oNu(isY.map(TkS))))):Zc("Cannot initialize because not running Chrome")},s57=function(){Zc("dispose");
var W=o6();W&&W.dispose();_.$g("yt.mdx.remote.cloudview.instance_",null);upB(!1);_.uZ4(UKE);UKE.length=0},Ost=function(){return!!_.h4("yt-remote-cast-installed")},LEZ=function(){var W=_.h4("yt-remote-cast-receiver");
return W?W.friendlyName:null},j5u=function(){Zc("clearCurrentReceiver");
_.WR("yt-remote-cast-receiver")},Hs6=function(){return Ost()?o6()?o6().getCastSession():(R6("getCastSelector: Cast is not initialized."),null):(R6("getCastSelector: Cast API is not installed!"),null)},gNZ=function(W,k){r3Y()?o6().setConnectedScreenStatus(W,k):R6("setConnectedScreenStatus called before ready.")},Mq$=function(){var W=_.fI().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.B9||W},Q5Z=function(W,k){var C=!1;
o6()||(W=new i9(W,k),W.subscribe("yt-remote-cast2-availability-change",function(n){_.KE("yt-remote-cast-available",n);jj("yt-remote-cast2-availability-change",n)}),W.subscribe("yt-remote-cast2-receiver-selected",function(n){Zc("onReceiverSelected: "+n.friendlyName);
_.KE("yt-remote-cast-receiver",n);jj("yt-remote-cast2-receiver-selected",n)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(n){Zc("onReceiverResumed: "+n.friendlyName);
_.KE("yt-remote-cast-receiver",n);jj("yt-remote-cast2-receiver-resumed",n)}),W.subscribe("yt-remote-cast2-session-change",function(n){Zc("onSessionChange: "+PHT(n));
n||_.WR("yt-remote-cast-receiver");jj("yt-remote-cast2-session-change",n)}),_.$g("yt.mdx.remote.cloudview.instance_",W),C=!0);
Zc("cloudview.createSingleton_: "+C);return C},o6=function(){return _.QK("yt.mdx.remote.cloudview.instance_")},vN7=function(W){ent(!0);
pq7(!1);o6().init(!1,function(k){k?(upB(!0),_.UNm("yt-remote-cast2-api-ready")):(R6("Failed to initialize cast API."),ent(!1),_.WR("yt-remote-cast-available"),_.WR("yt-remote-cast-receiver"),s57());W(k)})},Zc=function(W){QL("cloudview",W)},R6=function(W){QL("cloudview",W)},ent=function(W){Zc("setCastInstalled_ "+W);
_.KE("yt-remote-cast-installed",W)},r3Y=function(){return!!_.QK("yt.mdx.remote.cloudview.apiReady_")},upB=function(W){Zc("setApiReady_ "+W);
_.$g("yt.mdx.remote.cloudview.apiReady_",W)},pq7=function(W){_.$g("yt.mdx.remote.cloudview.initializing_",W)},Ts=function(W){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(W)},KE6=function(){var W,k;
return _.F(function(C){if(C.nextAddress==1)return(_.Sim()||_.m("use_new_nwl"))&&_.VcX().isNetworkAvailable()?_.l(C,_.Z5(),2):C.return();if(C.nextAddress!=3)return(W=C.yieldResult)?_.l(C,R81(W),3):C.return();k=C.yieldResult;if(!k.length)return C.return();k.forEach(function(n){var N={timestamp:n.timestamp};n=n.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:n.appShellAssetLoadReport,options:N}:n.clientError?{payloadName:"clientError",payload:n.clientError,options:N}:void 0;n&&
_.a9(n.payloadName,n.payload,n.options)});
k.length===100&&_.aM.addLowPriorityJob(KE6);_.ab(C)})},hn7=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(k){return!(!k||!k.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer},Wl7=function(W){if(W.response){var k=W.response;
if(k&&k.overlay&&k.overlay.tooltipRenderer)return k.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(C){return!(!C||!C.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer},CAC=function(W){if(!kv$&&(W=W||_.DE("ZWIEBACK_PING_URLS"))&&W.length){kv$=!0;
for(var k=0;k<W.length;k++)_.Sk(W[k])}},NvA=function(W){if(_.JU.get(_.DE("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&QES();
try{n47().then(function(){},function(){}),_.rA(NvA,18E5)}catch(k){_.I4(k)}}},YME=function(){var W=_.tQ(),k=W.getFlag(119),C=window.devicePixelRatio>1;
document.body&&_.eZ(document.body,"exp-invert-logo")&&(C&&!_.eZ(document.body,"inverted-hdpi")?_.vj(document.body,"inverted-hdpi"):!C&&_.eZ(document.body,"inverted-hdpi")&&_.QI(document.body,"inverted-hdpi"));k!=C&&(_.Er(0,119,C),W.save())},Bv7=function(W){return W.filter(function(k){return"ypcGetCartEndpoint"in k||"ypcFixInstrumentEndpoint"in k})},br$=function(W){return W.filter(function(k){return!_.z(k,_.skA)})},FlE=function(W){W=_.b(W);
for(var k=W.next(),C={};!k.done;C={setter$jscomp$6:void 0},k=W.next()){var n=k.value;k=n.params;n=n.service;k&&n&&(C.setter$jscomp$6=ApT[n],C.setter$jscomp$6&&k.forEach(function(N){return function(B){var A=B.key;B=B.value;A&&B&&(0,N.setter$jscomp$6)(A,B)}}(C)))}},xbT=function(W,k){var C,n,N,B,A,w,x;
_.F(function(E){switch(E.nextAddress){case 1:C=_.I8.getInstance();n=_.gH.instance;N=_.cJ.instance;if(!N)return w9T(W,n,k),E.return();_.F0(E,2);W.onLoadingCommand&&n.resolveCommand(W.onLoadingCommand);return _.l(E,C.getCurrentPositionFromGeolocation(),4);case 4:B=E.yieldResult;if(!W.resolveLocationCommand){E.jumpTo(5);break}A=C.createLocationInfo(B);return _.l(E,_.Sr(N,W.resolveLocationCommand,{locationInfo:A}),6);case 6:w=E.yieldResult;if(!w||"error"in w&&w.error||w.errorMetadata)return w9T(W,n,k),
E.return();var a;if(w==null?0:(a=w.onResponseReceivedActions)==null?0:a.length){a=_.b(w.onResponseReceivedActions);for(var X=a.next();!X.done;X=a.next())n.resolveCommand(X.value)}(_.z(W.onSuccessCommand,_.RA)||_.z(W.onSuccessCommand,_.kZ))&&_.Pe(k.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.M7(E,0);break;case 2:x=_.EF(E);if(x instanceof GeolocationPositionError&&x.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&n.resolveCommand(W.onDeniedCommand),
E.return();w9T(W,n,k);_.ab(E)}})},w9T=function(W,k,C){W.onFailureCommand&&(k.resolveCommand(W.onFailureCommand),_.KY(C.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ttS=function(W,k){var C=_.z(W,_.lTY);
if(C&&k){W=C.videoIds||[C.videoId];var n;k=(n=_.Pe(k,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:n.returnValue;var N;C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?N=k?k:W.map(function(B){return{videoId:B,navigationEndpoint:C.videoCommand}}):k&&(N=k);
N&&(n=N.map(function(B){var A=Object,w=A.assign;var x=B.navigationEndpoint;if(!_.z(x,_.YZ)){var E=_.z(x,_.RA);if(E){if(delete E.index,delete E.playlistId,E=_.z(x==null?void 0:x.commandMetadata,_.Ok),E==null?0:E.url){var a=E.url;a=_.ud(a,"list");a=_.ud(a,"index");E.url=a}}else x=void 0}return w.call(A,{},B,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:x})}),lBZ(n,C))}},E4C=function(W){var k=_.Qd();
if(W=_.z(W,_.tTA))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&k.clearQueue(),W.closeMiniplayer&&_.f().resolve(_.eq).close(!0)},X97=function(W){aBi(_.Qd(),W)},fB7=function(W){var k;
(W=(k=_.z(W,_.w1s))==null?void 0:k.setVideoIds)&&W.forEach(function(C){_.uyS(_.Qd(),C)})},mb$=function(W){dbi(_.Qd(),W)},zmZ=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}},DbT=function(W,k,C){return{horizontalAlignment:W.x+C.width/2<k.width/2?"west":"east",
verticalAlignment:W.y+C.height/2<k.height/2?"north":"south"}},cp7=function(W,k,C,n,N){N=N===void 0?new _.S3(0,0):N;
return Vtu(Jp7(W,k,C,n),N)},Jp7=function(W,k,C,n){return new _.S3(W==="west"?16:C.width-n.width-16,k==="north"?16:C.height-n.height-16)},IBu=function(W,k){var C=0;
W&&(C+=76);k&&(C+=285);return C},SMi=function(W){var k=["h",
"m","s"],C=_.T4(k);C.reverse();var n={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(A){var w=(A.match(/[hms]/)||[""])[0];return w?(n[w]=parseInt(A.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&C.length;){var N=C.shift();N in n||(n[N]=parseInt(W.shift(),10))}if(W.length||n.s>59||n.m>59||n.h>9)return null;var B="";k.forEach(function(A){n[A]&&(B+=""+n[A]+A)});
return B||null},MtA=function(W){W=W.data;
return _.t("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.t("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.t(_.pi,{data:{thumbnails:[{url:W.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.t("div",{class:"profile-badge-view-model-wiz__content"},_.t("div",{class:"profile-badge-view-model-wiz__badge-description"},W.badgeDesc),W.badgeSubtitle?_.t("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},W.badgeSubtitle):null))},QUY=function(W){W=
W.data;
var k=_.yE();_.Qg(k,W.rendererContext);return _.t("yt-comment-interaction-view-model",{el:k,class:"yt-comment-interaction-view-model-wiz"},_.t("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":W.onTapA11yLabel,"on:keydown":_.cB(),tabindex:0},_.t("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.t("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},W.headerPrefix,' "',W.videoTitle),_.t("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.t("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.t("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},W.commentContent),_.t("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.t(_.pi,{data:{thumbnails:[{url:W.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},v4E=function(W){W=W.data;
return _.t("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},p9E(W.avatar),_.t("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},W.channelName))},sUi=function(W){W=W.data;
var k;return _.t("div",{class:"yt-profile-info-view-model-wiz__activity"},_.t("div",{class:"yt-profile-info-view-model-wiz__header"},_.t("div",{class:"yt-profile-info-view-model-wiz__section-title"},W.commentsInteractionTitle)),(k=W.comments)==null?void 0:k.map(function(C){return _.t("div",{class:"yt-profile-info-view-model-wiz__activity"},emi(C))}))},Gv7=function(W){W=W.data;
var k=_.m8({elementsCommand:W.subscriptionsAccessButtonCommand}),C=_.yE();_.AHm(C,_.fi(W.subscriptionsAccessButtonCommand));var n=_.Pj(function(B){if(k==null?0:k.onclick)k.onclick(B);return!1}),N;
return _.t("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.t("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.t("a",{el:C,"on:click":n,class:"yt-profile-info-view-model-wiz__another-header"},_.t("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},W.sharedSubscriptionsTitle),_.t("div",null,emi(W.subscriptionsAccessButton)))),_.t("div",{class:"yt-profile-info-view-model-wiz__subs"},(N=W.sharedSubscriptions)==null?void 0:N.slice(0,5).map(function(B){return _.t("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",emi(B))})))},ypC=function(W){W=W.data;
var k;return _.t("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.t("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.t("h2",{class:"yt-profile-info-view-model-wiz__section-title"},W.sharedSubscriptionsTitle)),_.t("div",{class:"yt-profile-info-view-model-wiz__subs"},(k=W.sharedSubscriptions)==null?void 0:k.slice(0,5).map(function(C){return _.t("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",emi(C))})))},$bY=function(W){W=W.data;
return _.t("div",{class:"yt-profile-info-view-model-wiz__activity"},[W.profileBadgeInfoYtWide,W.profileBadgeInfoChannelWide].map(function(k){var C,n,N,B,A;return k?_.t(_.qf,null,_.t("div",{class:"yt-profile-info-view-model-wiz__header"},_.t("div",{class:"yt-profile-info-view-model-wiz__section-title"},k==null?void 0:k.profileSectionTitle),_.t("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.t("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},k==null?void 0:(C=k.commentBadge)==
null?void 0:C.commentDesc),(k==null?0:(n=k.commentBadge)==null?0:n.blackHeartDesc)?_.t("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.t("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.t(_.pi,{data:{thumbnails:[{url:k==null?void 0:(N=k.commentBadge)==null?void 0:N.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.t("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},k==null?void 0:(B=
k.commentBadge)==null?void 0:B.blackHeartDesc))),_.t("div",{class:"yt-profile-info-view-model-wiz__badge"},k==null?void 0:(A=k.badges)==null?void 0:A.map(function(w){return _.t(MtA,{data:w})}))):null}))},Zri=function(W){W=W.data;
return _.t("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.t($bY,{data:W}),W.comments?_.t(sUi,{data:W}):null,W.sharedSubscriptionsTitle?W.subscriptionsAccessButtonCommand?_.t(Gv7,{data:W}):_.t(ypC,{data:W}):null)},o4i=function(W){var k=W.data;
W=k?RmT(k.profileIdentityInfo):void 0;k=k?RmT(k.profileInfo):void 0;return _.t("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},W,k)},ir7=function(W,k){var C=_.jHS(k,{},W,!0);
return new Promise(function(n,N){C.listenOnce("n",function(){N(Error("fl`"+C.JSC$25597_getErrorDescription()))});
C.listenOnce("l",function(){var B=C.getResponseCode();if(B!==200)N(Error("gl`"+k+"`"+W.type+"`"+W.size+"`"+B));else try{n(JSON.parse(C.getResponseText()).encryptedBlobId)}catch(A){N(A)}});
C.run()})},TvE=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))},qM$=function(W){return new Promise(function(k,C){var n=new FileReader;
n.onloadend=function(){try{var N=new Uint8Array(n.result);N.length<8&&C(void 0);var B=N.subarray(0,8);N="";for(var A=0;A<B.length;A++)N+=("0"+B[A].toString(16)).substr(-2);N.startsWith("ffd8ff")?k("image/jpeg"):N.startsWith("47494638")?k("image/gif"):N.startsWith("89504e470d0a1a0a")?k("image/png"):N.startsWith("424d")?k("image/bmp"):k(void 0)}catch(w){C(w)}};
n.onerror=C;n.readAsArrayBuffer(W)})},u2Y=function(W){return new Promise(function(k,C){var n=new Image;
n.crossOrigin="anonymous";n.onload=function(){var N=document.createElement("canvas");N.width=n.naturalWidth;N.height=n.naturalHeight;var B=N.getContext("2d");if(!B)throw Error("hl");B.drawImage(n,0,0);B=TvE(W);N.toBlob(function(A){A?k(A):C()},B)};
n.src=W})},OrE=function(W,k){var C;
if(((C=_.z(W,_.YZ))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var n;_.Pe((n=k.hostElement)!=null?n:k,"yt-shorts-reset");_.iGY(_.f().resolve(_.OV),W).then(function(B){Ubi(B,k,W)})}else{var N;
_.kQ((N=k.hostElement)!=null?N:k,[W]).then(function(B){B&&Ubi(B.data,k,W)})}},Ubi=function(W,k,C){if(W){var n=_.z(W.replacementEndpoint,_.YZ);
if(n){W.sequenceContinuation&&(n.sequenceParams=W.sequenceContinuation);var N;_.Pe((N=k.hostElement)!=null?N:k,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.z(W.watchStatus,_.Lfb)){var B;_.Pe((B=k.hostElement)!=null?B:k,"yt-navigate",{endpoint:C})}}},LlB=function(){var W=_.f().resolve(_.ak),k=bX7(W.getState())||"";
W=_.asw(W.getState())||"";return{disableCache:k==="ytd-browse"&&W==="home"}},jU7=function(W){if(!W)return!1;
try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(k){return!1}return jU7(W.parentNode)},qW=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1},HrT=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1},rp7=function(W,k,C){if(!W)return null;
var n=qW(W);if(n&&C)return k=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+k);if(n&&!C)return document.createTextNode("");if(HrT(W))return C=W.alt,W=W.dataset.emojiId,!W&&k&&(k=_.FY(k,C))&&k.isCustomEmoji&&(W=k.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(C);n=W.cloneNode(!1);for(var N=0;N<W.childNodes.length;++N){var B=rp7(W.childNodes[N],k,C);B&&n.appendChild(B)}return n},u9=function(W){return W?qW(W)?W:u9(W.lastChild):
null},g4T=function(W){return W?qW(W)?W:g4T(W.firstChild):null},PA$=function(W){if(!W)return null;
for(var k=W.previousSibling;k;)if(k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="BR")k=k.previousSibling;else if(k.nodeType===Node.TEXT_NODE&&/\s+/.test(k.textContent))k=k.previousSibling;else break;(k=u9(k))?W=k:W=(W=W.parentNode)?u9(W.previousElementSibling):null;return W},Klt=function(W){if(!W)return null;
for(var k=W.nextSibling;k;)if(k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="BR")k=k.nextSibling;else if(k.nodeType===Node.TEXT_NODE&&/\s+/.test(k.textContent))k=k.nextSibling;else break;return(k=g4T(k))?k:Klt(W.parentNode)},hmi=function(W){var k=_.xx(),C=k.JSC$9112_getStartNode();
if(!jU7(C.parentNode))return null;k=k.JSC$9112_getStartOffset();if(C.nodeType===Node.TEXT_NODE){var n=_.vD(C,qW);if(n){if(W&&k===0||!W&&k===C.length)return n}else{if(W&&k===C.length)return!C||C.nodeName==="BR"||C.nextElementSibling&&_.l2(C.nextElementSibling,"display")==="block"?null:g4T(C.nextElementSibling);if(!W&&k===0)return C?u9(C.previousElementSibling):null}}if(C.nodeType===Node.ELEMENT_NODE)if(W){if(0<=k&&k<C.childNodes.length)return g4T(C.childNodes[k])}else if(0<k&&k<=C.childNodes.length)return u9(C.childNodes[k-
1]);return null},WGt=function(W,k,C){if(!W)return null;
if(W.nodeType===Node.TEXT_NODE)if(C){var n=PA$(W);if(n&&!/^\s+\S/.test(W.wholeText.substr(0,k)))return n}else if((n=Klt(W))&&!/\S\s+/.test(W.wholeText.substr(k,W.wholeText.length)))return n;return W.nodeType===Node.ELEMENT_NODE?C?PA$(W.childNodes[k]):Klt(W.childNodes[k]):WGt(W.parentNode,k,C)},kKE=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var k="";
for(W=W.firstChild;W;W=W.nextSibling)k+=kKE(W);return k;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}},C1Y=function(W){W=W.data;
return _.t("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.t("div",null,_.t(_.Ya,{text:W.title})),W.subtitle?_.t("div",{class:"ytd-menu-title-renderer__subtitle"},_.t(_.Ya,{text:W.subtitle})):null)},noZ=function(W){switch(W){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"}},N2i=function(W){return W.map(function(k){return{settingsRadioOptionRenderer:{title:_.LB(k.name),
asideText:_.LB(k.approximateSize),id:noZ(k.format)}}})},B2T=function(W){if(W&&W.length!==0)return W.filter(Yyu()).map(function(k){return{settingsRadioOptionRenderer:{title:k.name,
asideText:k.approximateSize,id:noZ(k.formatType)}}})},U_=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},b0E=function(W){W=new Set(W!=null?W:[]);
if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},Aui=function(W){var k=W.indexOf("(");
return k!==-1?W.substring(k+1,W.length-1):W},FGE=function(W){switch(W){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},xJC=function(W,k,C,n,N,B){var A=_.JU.clone(wTE);
A.locale=_.DE("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;A.report={description:N||"<empty>"};N=_.DE("SBOX_SETTINGS",{});k=k.join(",");var w=Date.now();W={choice_cc:n,choice_id_cc:C,choices_sc:k,gl:N.REQUEST_DOMAIN,hl:N.REQUEST_LANGUAGE,query:W,time:w};B&&(W.choice_additional_comment_cc=B);_.hk2(A,W)},l87=function(W){var k=new Map;
k.set("authuser",_.DE("SESSION_INDEX","0"));return _.CU(W,k)},Eou=function(W){var k;
return _.F(function(C){switch(C.nextAddress){case 1:if(!W||!t5u(W))return C.return(null);k=null;switch(_.DE("INNERTUBE_CLIENT_NAME")){case "WEB":return C.jumpTo(2);case "WEB_REMIX":k=W.getPlayer()}C.jumpTo(3);break;case 2:return _.l(C,W.getPlayerPromise(),4);case 4:k=C.yieldResult;C.jumpTo(3);break;case 3:return C.return(k)}})},t5u=function(W){return["ytd-player",
"ytmusic-player"].includes(String(W.tagName||"").toLowerCase())},a8B=function(W){W=Math.round(W);
return W%2?W-1:W},XTB=function(W){W=Math.round(W);
return W%2===0?W-1:W},f81=function(W){var k,C,n;
if(W=(k=W.createPlaylistDialogFormSchema)==null?void 0:(C=k.fieldSchemas)==null?void 0:(n=C.title)==null?void 0:n.validationSchema)for(k=[W.syncStep,W.asyncStep].filter(function(N){return N!==void 0}),k=_.b(k),C=k.next();!C.done;C=k.next()){C=C.value.rules;
if(!C)break;C=_.b(C);for(C=C.next();!C.done;C=C.next())return _.z(C.value,_.PdY)}},mJC=function(W){var k,C,n;
if(W=(k=W.createPlaylistDialogFormSchema)==null?void 0:(C=k.fieldSchemas)==null?void 0:(n=C.visibility)==null?void 0:n.validationSchema)for(k=[W.syncStep,W.asyncStep].filter(function(N){return N!==void 0}),k=_.b(k),C=k.next();!C.done;C=k.next()){C=C.value.rules;
if(!C)break;C=_.b(C);for(n=C.next();!n.done;n=C.next())if(n=_.z(n.value,dJ7))return k=void 0,(k=n.translations)==null?void 0:k.visibilityNotValidErrorMessage}},zk7=function(){var W,k;
return(k=(W=_.f().resolve(_.qI(_.cj)))==null?void 0:W())!=null?k:!1},DJS=function(W,k){a:switch(k){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":k="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:k="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:k,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},V56=function(W){_.KY(W,"yt-refit-popups-action")},cuE=function(W){var k=W.data;
var C=W.disablePadding;var n=W.className;var N=_.yE(),B=DJS(k.banner,k.assetContainerPaddingStyle),A=DJS(k.imageBanner,k.assetContainerPaddingStyle),w=k.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",x=k.assetContainerMaxHeight;_.Ee(function(){var E;(E=N.value)==null||E.addEventListener("image-loaded",function(){V56(N.value)})});
_.fy(function(){var E;(E=N.value)==null||E.removeEventListener("image-loaded",function(){V56(N.value)})});
W={};return _.t("yt-dialog-header-view-model",{el:N,class:_.Hj(n,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=!!C,W))},_.Tb(k.banner,function(){var E={};return _.t("div",{class:_.Hj(n,(E.ytDialogHeaderViewModelBanner=!0,E.ytDialogHeaderViewModelBannerFullBleed=!!w,E)),style:"max-height: "+(x?x+"px":"")},_.t(_.W2,{data:B,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Tb(k.imageBanner,function(){var E={};
return _.t("div",{class:_.Hj(n,(E.ytDialogHeaderViewModelBanner=!0,E.ytDialogHeaderViewModelBannerFullBleed=!!w,E)),style:_.WJ({"max-height":function(){return x!==void 0?x+"px":void 0}})},_.t(_.W2,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Tb(k.customAssetContainer,function(){return _.t("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},JuE(k.customAssetContainer))}),_.Tb(k.customBanner,function(){return _.t("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},JuE(k.customBanner))}),_.Tb(k.headline,function(){return _.t("h2",null,_.t(_.Ya,{text:k.headline,
className:"ytDialogHeaderViewModelText"}))}))},I8T=function(W){var k=21;
if(!W)return k;k+=W.headerTitle?27:0;k+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return k+=W.headerTitle&&W.headerSubtitle?16:0},SyZ=function(W){var k=0;
if(!W)return k;k+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;k+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return k+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12},M5u=function(W){var k=new _.kg,C=W;
return{subscribe:function(n){k.subscribe("changed",n)},
dispatch:function(n,N){var B=C;n==="Touch Start"?C=Object.assign({},B,{isAnimating:!1,initialY:N.event.touches[0].clientY}):n==="Touch Move"?(n=Math.min(N.fullContentWrapperHeight,N.contentHeightMap[N.contentWrapperId]+I8T(N.header)-SyZ(N.footer)),C=Object.assign({},B,{currentY:Math.max(N.contentScrollable?-1*(B.initialY-24):0,N.event.touches[0].clientY-B.initialY),maxHeightForContentWrapper:Math.min(n,Math.max(0,(B.isFullScreen?n:N.contentWrapperHeight)-B.currentY))})):C=n==="Snap To Full Screen"?
Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:N.maxHeight}):n==="Snap To Neutral Position"?Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:N.maxHeight}):n==="Close Sheet"?Object.assign({},B,{isAnimating:!0,currentY:N.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:N.maxHeight}):B;k.publish("changed",C)}}},QH6=function(W){return _.Pj(function(k){W(k);
return!1})},pT6=function(){_.f().resolve(_.tZ).closeSheet()},voT=function(W){var k,C,n,N,B,A,w,x,E,a,X;
return{headerTitle:(k=W.headerTitle)==null?void 0:k.call(W),headerSubtitle:(C=W.headerSubtitle)==null?void 0:C.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(n=W.footerButtonType)==null?void 0:n.call(W),footerLeadingLabel:(N=W.footerLeadingLabel)==null?void 0:N.call(W),footerTrailingLabel:(B=W.footerTrailingLabel)==null?void 0:B.call(W),shouldShowIcons:(A=W.shouldShowIcons)==null?void 0:A.call(W),
skipContentClick:(w=W.skipContentClick)==null?void 0:w.call(W),additionalClassName:(x=W.additionalClassName)==null?void 0:x.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(E=W.focusOnClose)==null?void 0:E.call(W),isDisabled:(a=W.isDisabled)==null?void 0:a.call(W),disabledCommand:(X=W.disabledCommand)==null?void 0:X.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),hasFooterPrimaryButton:W.hasFooterPrimaryButton(),
hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}},ek7=function(W){switch(W){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""}},sH6=function(W){switch(W){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""}},GK7=function(W){switch(W){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""}},yut=function(W,k,C){k.forEach(function(n){_.Pn(_.f().resolve(_.nR),n)});
_.KY(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",C])},ooE=function(W,k,C,n){var N=_.z(C,_.SC).commandLifeCycleConfig;
N&&N.onStartCommand&&_.CB(W,[N.onStartCommand],k);_.oZ(k);var B=_.cJ.instance;B&&_.Ih(B,C)?_.Sr(B,C,n).then(function(A){if(!A||(A==null?0:A.error))return A=_.z(C,_.SC).serializedTransactionFlowLoggingParams,_.i2(k),_.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",A));_.i2(k);return{data:A}}).then(function(A){_.i2(k);
$Jt(A.data);var w=A.data.command;w&&_.CB(W,[w],k);w=Z0S(C,A.data);if(!w){var x=A.data;A=!1;if(x&&x.command&&_.z(x.command,_.Nl)){var E;x=((E=_.z(x.command,_.Nl))==null?void 0:E.commands)||[];for(E=0;E<x.length;E++)if(_.z(x[E],_.a18)){A=!0;break}}A||_.BR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!w&&N&&N.onSuccessCommand?_.CB(W,[N.onSuccessCommand],k):w&&N&&N.onFailureCommand&&_.CB(W,[N.onFailureCommand],k)},function(){_.i2(k);
N&&N.onFailureCommand&&_.CB(W,[N.onFailureCommand],k);RkY(C)}):_.dI(Error("yl"),"ERROR")},i0C=function(W,k,C){var n=[k];
C&&n.push(C);return _.kQ(W,n).then(function(N){var B=_.z(k,_.SC).serializedTransactionFlowLoggingParams,A=N.data,w=Z0S(k,A);w?N=_.eh(new O_(w,B)):$Jt(A);return N},function(){var N=_.z(k,_.SC).serializedTransactionFlowLoggingParams;
RkY(k);return _.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",N))})},Z0S=function(W,k){W=_.z(W,_.SC).serializedTransactionFlowLoggingParams;
var C=null;switch(k.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":C="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":C="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":C="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}C?_.Qi(C,W):hxS(W);return C},RkY=function(W){_.Qi("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.z(W,_.SC).serializedTransactionFlowLoggingParams)},
$Jt=function(W){if(W.trackingParams){var k=_.VM(),C=_.DH();
k&&C&&_.sr(k,C,_.Yf(W.trackingParams))}},T2Z=function(W,k,C){var n=_.cJ.instance,N=_.mz4(_.DE("YPC_MB_URL")),B=(new _.fGm).init(),A=_.dzK(),w=_.z(C,_.xiC).languageCode;
w===void 0?_.dI(Error("Di"),"ERROR"):_.EY([B,N]).then(function(){var x={ctk:payments.business.integration.ClientTokenFactory.createClientToken(w,A)};n&&_.Ih(n,C)?_.Sr(n,C,x).then(function(E){return{data:E}}).then(function(E){_.Pe(k,"yt-service-request-completed",E);
E.code!=="ERROR"&&(E=E.data.command)&&_.CB(W,[E],k)}):_.dI(Error("yl"),"ERROR")})},UJu=function(W,k,C,n){var N=_.cJ.instance;
N&&_.Ih(N,C)?_.Sr(N,C,n).then(function(B){return{data:B}}).then(function(B){qyT(W,k,C,B)},function(){uH$(C)}):(N=_.f().resolve(_.qI(_.Ah)))&&N.requestDataForServiceEndpoint(C,n).then(function(B){qyT(W,k,C,B)},function(){uH$(C)})},qyT=function(W,k,C,n){_.Pe(k,"yt-service-request-completed",n);
if(n.code&&n.code=="ERROR")uH$(C);else{(n=n.data.commands)&&_.CB(W,n,k);var N;(W=(N=_.z(C,_.f1s))==null?void 0:N.serializedYpcPauseFlowLoggingParams)&&W&&_.Xd("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}},uH$=function(W){var k;
(W=(k=_.z(W,_.f1s))==null?void 0:k.serializedYpcPauseFlowLoggingParams)&&W&&_.Xd("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},jHt=function(W,k,C){var n=_.cJ.instance;
n&&_.Ih(n,C)?_.Sr(n,C).then(function(N){return{data:N}}).then(function(N){O0t(W,k,C,N)},function(){LGA(C)}):(n=_.f().resolve(_.qI(_.Ah)))&&n.requestDataForServiceEndpoint(C).then(function(N){O0t(W,k,C,N)},function(){LGA(C)})},O0t=function(W,k,C,n){_.Pe(k,"yt-service-request-completed",n);
n.code&&n.code=="ERROR"?LGA(C):((n=n.data.commands)&&_.CB(W,n,k),(W=_.z(C,_.di8).serializedYpcResumeFlowLoggingParams)&&W&&_.Xd("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))},LGA=function(W){(W=_.z(W,_.di8).serializedYpcResumeFlowLoggingParams)&&W&&_.Xd("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},H0t=function(W){W=W===void 0?{}:W;
_.f().resolve(_.$9T).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)},ruu=function(W){W=W===void 0?{}:W;
_.f().resolve(_.$9T).showHelpDialog(W.helpContext,W.articleId,W.productData)},go6=function(){ruu()},P1E=function(){H0t()},hkB=function(W,k,C){var n,N,B,A,w,x,E;
return _.F(function(a){switch(a.nextAddress){case 1:n=_.z(W,KG7);if((N=n)==null?0:N.productId){x={productId:n.productId,bucket:n.bucket,enableAnonymousFeedback:(w=n.enableAnonymousFeedback)!=null?w:!0,allowNonLoggedInFeedback:!0};E={feedbackChoice:C.feedbackChoice};if(!_.m("web_collect_offline_state")){a.jumpTo(8);break}_.F0(a,9);return _.l(a,FkT(E),11)}A={bucket:(B=n)==null?void 0:B.bucket};if(!_.m("web_collect_offline_state")){a.jumpTo(4);break}A.customProductData={};_.F0(a,5);return _.l(a,FkT(A.customProductData),
7);case 7:_.M7(a,4);break;case 5:_.EF(a);case 4:H0t(A);a.jumpTo(0);break;case 11:_.M7(a,8);break;case 9:_.EF(a);case 8:_.lt4(E),_.x53("GFEEDBACK",E),n.productId==="5295751"&&(E.client_attestation=Number(_.DE("CATSTAT",0))),n.productId==="5295751"&&(E.client_time=Date.now()/1E3/3600),n.productId==="5295751"&&(E.original_playback_id=_.hY8||""),_.hk2(x,E),_.ab(a)}})},WP1=function(W){if(W=_.z(W,_.T92)){var k={bucket:W.bucketIdentifier};
W.additionalDatas&&(k.customProductData={},W.additionalDatas.forEach(function(C){if(C=C.userFeedbackEndpointProductSpecificValueData)k.customProductData[C.key]=C.value}));
H0t(k)}},kq$=function(W){var k=_.vx.getInstance(),C=_.w8("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),n=_.w8("DELETE",void 0,"Delete"),N=_.w8("CANCEL",void 0,"Cancel");
C={openPopupAction:fz1(C,void 0,n,N,{signal:"DELETE_ALL_DOWNLOADS"})};_.Dm(k,[C],W)},nTS=function(){return _.F(function(W){return W.nextAddress==1?_.l(W,_.f().resolve(_.of),2):_.l(W,Cs1(),0)})},Nm7=function(W){var k,C;
return _.F(function(n){return n.nextAddress==1?(C=(k=_.z(W,_.MP))==null?void 0:k.targetId)?_.l(n,_.f().resolve(_.of),3):n.jumpTo(0):_.l(n,_.f().resolve(_.Rf).deleteVideo(C),0)})},BmT=function(W){var k,C;
return _.F(function(n){return n.nextAddress==1?(C=(k=_.z(W,_.MP))==null?void 0:k.targetId)?_.l(n,_.f().resolve(_.of),3):n.jumpTo(0):_.l(n,YYZ(_.f().resolve(_.Rf),C),0)})},Abi=function(W){var k,C;
return _.F(function(n){return(C=(k=_.z(W,_.MP))==null?void 0:k.targetId)?_.l(n,bxi(C),0):n.jumpTo(0)})},wS7=function(){_.m("kevlar_woffle_refresh_dl_load_killswitch")||FPY()},luA=function(){_.m("kevlar_woffle")&&_.cl.instance&&xeZ()},ETT=function(W){var k;
if((k=_.z(W,_.Kn))==null||!k.videoId)return!1;tZ$(_.f().resolve(_.Rf),_.z(W,_.Kn),W.clickTrackingParams);return!0},XS6=function(W){var k;
if((k=_.z(W,_.hW))==null||!k.playlistId)return!1;au7(_.f().resolve(_.Rf),_.z(W,_.hW),W.clickTrackingParams);return!0},deE=function(W){var k=_.z(W,_.zjZ);
(k==null?void 0:k.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(k==null?void 0:k.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||fuB(_.f().resolve(_.Rf),_.z(W,_.zjZ))},zOS=function(W){W=_.z(W,_.KVY);
var k;(W==null?0:(k=W.actions)==null?0:k.length)&&me7(W)},JbE=function(W){var k,C;
return _.F(function(n){k=_.z(W,DeC);return(C=k)!=null&&C.localWatchHistoryCommandType?_.l(n,VZt(k),0):n.return()})},cbY=function(W){setTimeout(function(){requestAnimationFrame(W)},80)},Iu1=function(W){return Object.entries(W).map(function(k){return k.join(":")}).join(";")},MZA=function(W){var k,C,n;
_.F(function(N){if(N.nextAddress==1)return _.l(N,SYS(),2);k=N.yieldResult;C=_.gH.instance;switch(k){case "granted":n=W.getLocationCommand;break;case "denied":n=W.openDeniedDialogAction;break;case "prompt":n=W.openCollectionDialogAction;break;default:n=W.openCollectionDialogAction}n&&C.resolveCommand(n);_.ab(N)})},SYS=function(){var W,k;
return _.F(function(C){if(C.nextAddress==1)return W="prompt",navigator.permissions?_.l(C,navigator.permissions.query({name:"geolocation"}),3):C.jumpTo(2);C.nextAddress!=2&&(k=C.yieldResult,W=k.state);return C.return(W)})},pSi=function(){_.F(function(W){return _.l(W,_.QaE(),0)})},vTY=function(){var W,k,C;
return _.F(function(n){if(n.nextAddress==1)return W=_.f().resolve(_.xZ),W?_.l(n,_.Sr(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.zJ(Error("Bl")),n.return(void 0));if(k=n.yieldResult){if(k.errorMetadata)return _.zJ(Error("Cl`"+k.errorMetadata.status+"`"+k.error)),n.return(void 0);C=k.datasyncIds;_.ZUZ=C.length;return n.return(C)}_.zJ(Error("Dl"));return n.return(void 0)})},eOZ=function(){vTY().then(function(W){W&&($NT(W),knZ(W),If7(W),xjT(W))})},sat=function(W){_.aM.addLowPriorityJob(function(){var k,
C,n,N,B;
return _.F(function(A){switch(A.nextAddress){case 1:if(_.m("ytidb_clear_optimizations_killswitch")){A.jumpTo(2);break}k=_.B4("clear");if(k.startsWith("V")&&k.endsWith("||")){var w=[k];$NT(w);knZ(w);If7(w);xjT(w);return A.return()}C=SJY();n=liY();return _.l(A,CX6(),3);case 3:return N=A.yieldResult,_.l(A,ZiE(),4);case 4:if(B=A.yieldResult,!(C||n||N||B))return A.return();case 2:W.isNetworkAvailable()?eOZ():W.listenOnce("publicytnetworkstatus-online",eOZ),_.ab(A)}})})},Lf=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Go(W)}}}};_.gH.instance&&_.gH.instance.resolveCommand(W)},Gq$=function(W){if(W){var k=_.kf();
_.jC(k,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var C=238708;break;case 2:C=238715;break;case 3:C=238710;break;case 6:C=238709}C&&(W=_.Wj(k,{veType:C}))&&_.gc(k,W)}},ybS=function(W){if(W){var k=_.kf();
_.jC(k,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var C=238714;break;case 2:C=238711;break;case 8:C=238709;break;case 7:C=238713;break;case 3:case 4:case 5:C=238712}C&&(W=_.Wj(k,{veType:C}))&&_.gc(k,W)}},$e7=function(W){switch(W.latencyType){case 0:_.JQ("consent_primitive_flow");
_.cN("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.cN("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.cN("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.cN("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.cN("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.cN("cpdt",W.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.cN("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}},
LPY=function(W,k){var C,n,N,B,A,w,x,E,a,X,d,V,c,M,p,e,u,h,L,Bw;
return _.F(function(P){switch(P.nextAddress){case 1:_.F0(P,2);(n=(C=_.z(W,ZxT))==null?void 0:C.serializedConsentRequest)||(n=(N=_.z(W,ROA))==null?void 0:N.serializedConsentRequest);n&&(B=oTT(_.Pw(n)));if(B===void 0)return P.return();A=ixZ(B);A.latencyCallback=$e7;k&&TmZ(A,function(){k.then(function(xz){xz.pauseVideo();(new qYi).increment()})});
return((w=_.z(W,ZxT))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"||((x=_.z(W,ROA))==null?void 0:x.consentAction)==="CONSENT_ACTION_PREWARM"?_.l(P,ubt(A),5):_.l(P,UeT(A),6);case 6:E=P.yieldResult;a=_.aU(E,jx);if(a===1){if(((X=_.St(E,HA,1,jx))==null?void 0:_.Jp(X,1))===1||((d=_.St(E,HA,1,jx))==null?void 0:_.Jp(d,1))===2||((V=_.St(E,HA,1,jx))==null?void 0:_.Jp(V,1))===3)_.z(W,ROA)?Lf(_.w8("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Lf(_.w8("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Gq$((c=_.St(E,HA,1,jx))==null?void 0:_.Jp(c,1),_.HD(E,OxC,3,_.rP()))}else a===2?(((M=rY(E))==null?void 0:_.Jp(M,1))===5?_.z(W,ROA)?Lf(_.w8("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Lf(_.w8("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((p=rY(E))==null?void 0:_.Jp(p,1))===1||((e=rY(E))==null?void 0:_.Jp(e,1))===4?Lf(_.w8("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((u=rY(E))==null?void 0:_.Jp(u,1))===7&&((h=B)==null?void 0:(L=_.q7(h,gY,4))==null?void 0:_.Jp(L,4))!==1&&Lf(_.w8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),ybS((Bw=rY(E))==null?void 0:_.Jp(Bw,1))):Lf(_.w8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));P.jumpTo(5);break;case 5:_.M7(P,0);break;case 2:_.EF(P),Lf(_.w8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ab(P)}})},HxZ=function(){if(!jaA.has("Worker")){jaA.set("Worker",
!0);
var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.a9("apiTest",W)}},rbu=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))},hO7=function(W,k){gT1(new Ps$(_.z(k,KPS).addToken,_.z(k,KPS).commonToken)).then(function(){_.Pe(W,"yt-invoke-instrument-manager-action-completed")},function(C){_.Pe(W,"yt-invoke-instrument-manager-action-error",C)})},WeA={},kc6=function(W){return _.KKI(WeA,W,function(){return OT(_.qHX,W)>=0})},Cc6=function(W){return _.et(W)},
nX1=function(W){var k=1;
W=W.split(":");for(var C=[];k>0&&W.length;)C.push(W.shift()),k--;W.length&&C.push(W.join(":"));return C},N1C=function(W,k){k=W.aspectRatio()<=k.aspectRatio()?k.width/W.width:k.height/W.height;
W.scale(k)},Y31=function(W,k){k=W.aspectRatio()>k.aspectRatio()?k.width/W.width:k.height/W.height;
return W.scale(k)},B1B=function(W){var k=new _.K0;
return _.Mb(k,11,W)},bFT=function(W){var k={};
W=W.getAllResponseHeaders().split("\r\n");for(var C=0;C<W.length;C++)if(!_.tK(W[C])){var n=nX1(W[C]),N=n[0];n=n[1];if(typeof n==="string"){n=n.trim();var B=k[N]||[];k[N]=B;B.push(n)}}return _.JU.map(k,function(A){return A.join(", ")})},YW=function(W,k){return W.JSC$7668_xhr_?W.JSC$7668_xhr_.getResponseHeader(k):null},PA=function(W,k,C){Array.isArray(C)||(C=[String(C)]);
_.iSS(W.JSC$7905_queryData_,k,C);return W},xeZ=function(){var W=_.cl.instance;
_.F(function(k){return W.deferredInstallPrompt?_.l(k,W.deferredInstallPrompt.prompt(),0):k.jumpTo(0)})},AC7=function(W,k,C){if(_.qX(W))_.eO(W,k,C);
else for(W=_.qdI(W);;){var n=W.next();if(n.done)break;k.call(C,n.value,void 0,W)}},FeE={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}"]},NDi,YOE,BDT,b_1,Ak$,Ff1,w0C,xFE,lm7,bxi,YYZ,Cs1,tFE,Ev1,amZ,X07,fmE,au7,tZ$,dFT,mFZ,zX6,FPY,fuB,DFE,me7,VFi,VZt,Jk1,ckT,Imu,SOB,MFE,QV6,p0C,np,vvt,eXY,
aBi,lBZ,sVY,G$T,NT,YF,BC,ykZ,$FB,Z_1,RXZ,ov7,i_C,TDA,qOu,uzE,UF6;FeE={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 w1i=function(W,k){var C=[];AC7(k,function(n){try{var N=_.r0.prototype.getWrapper.call(this,n,!0)}catch(B){if(B=="Storage: Invalid value was encountered")return;throw B;}N===void 0?C.push(n):_.T08(N)&&C.push(n)},W);
return C},xRi=function(W,k){w1i(W,k).forEach(function(C){_.r0.prototype.remove.call(this,C)},W)},lTT=function(W){var k=_.eB;
k._minimumZ=Math.max(k._minimumZ,W)},tTS=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],EX6=function(W,k){_.LU(W.sS);W.sS=k},aTB=function(W,k,C,n){W.setState(5);
var N=!!W.f9x&&tTS.includes(_.R4(W.f9x)||"");try{var B=new _.Jb({program:k,globalName:C,xQ:{disable:!_.m("att_web_record_metrics")||!_.m("att_skip_metrics_for_cookieless_domains_ks")&&N,vY:"aGIf"}});B.ubx.then(function(){W.setState(6);n&&n(k)});
EX6(W,B)}catch(A){W.setState(7),A instanceof Error&&_.zJ(A)}},X1u=function(W,k,C,n,N,B){var A=A===void 0?"trayride":A;
C?(W.setState(2),_.ML(C,function(){if(window[A])aTB(W,n,A,N);else{W.setState(3);var w=_.ovI(C),x=document.getElementById(w);x&&(_.L8z(w),x.parentNode.removeChild(x));_.zJ(new _.AM("BL:ULB",C))}},B)):k?(B=_.wu("SCRIPT"),k instanceof _.u5?_.Oz(B,k):B.textContent=k,B.nonce=_.qa(document),document.head.appendChild(B),document.head.removeChild(B),window[A]?aTB(W,n,A,N):(W.setState(4),_.zJ(new _.AM("BL:ULBJ")))):_.zJ(new _.AM("BL:ULV"))},fT7=function(){this.state=1;
this.sS=null;this.f9x=void 0};
_.Y=fT7.prototype;_.Y.initialize=function(W,k,C,n){this.f9x=n;if(W.program){var N;n=(N=W.interpreterUrl)!=null?N:null;if(W.interpreterSafeScript)N=_.ErK(W.interpreterSafeScript);else{var B;N=(B=W.interpreterScript)!=null?B:null}W.interpreterSafeUrl&&(n=_.XE(W.interpreterSafeUrl).toString());X1u(this,N,n,W.program,k,C)}else _.zJ(Error("lf"))};
_.Y.isInitialized=function(){return!!this.sS};
_.Y.getState=function(){return this.state};
_.Y.isLoading=function(){return this.state===2};
_.Y.invoke=function(W){W=W===void 0?{}:W;var k;this.sS?k=_.QLS(this.sS,{nb:W}):k=null;return k};
_.Y.dispose=function(){EX6(this,null);this.setState(8)};
_.Y.setState=function(W){this.state=W};
var dRT=function(W,k){return W.sS.snapshot(k)},mRZ=function(W,k){var C=_.Oe("botguard_async_snapshot_timeout_ms",3E3);
k=k===void 0?{}:k;C=C===void 0?3E3:C;return W.sS?new Promise(function(n,N){var B=!1,A=_.aM.addJob(function(){B=!0;N(Error("mf"))},1,C);
W.sS?dRT(W,{nb:k}).then(function(w){_.aM.cancelJob(A);B||n(w)}).catch(function(w){_.aM.cancelJob(A);
B||N(w)}):(_.aM.cancelJob(A),n(null))}):Promise.resolve(null)},zeE=["att/log"],DRY;
DRY={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var VT1={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},JC6=function(W,k){return _.YS(W,{mode:"readwrite",enableRetries:!0},function(C){return _.mtw(C,k,"settingEntity")})},cCi=function(W,k,C){return _.YS(W,{mode:"readonly",
enableRetries:!0},function(n){return _.TXC(n,k,C)})},IT7=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var k=W.storage.get("TLPQtimestamp")}catch(C){}W=Number(k);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},S3A=function(W,k){W.queueProxy&&k.forEach(function(C){if(C.videoId&&C.trackingParams&&W.queueProxy instanceof _.fE){var n=_.VM();
W.queueProxy.attributionData.set(C.videoId,{enqueueingVe:_.Yf(C.trackingParams).getAsJson(),enqueueingCsn:n?n:void 0,clientEnqueueingTimeMs:Math.floor((0,_.oX)()).toString()})}})},MTE=function(W){var k=_.mks(W);
k!=W.currentSnapState_&&(W.currentSnapState_=k,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Kf=function(W){this.JSC$10821_networkManager_=W;
this.partCallbacks_=[]};
Kf.prototype.getCacheKeyForEndpoint=function(W){return _.c5w(W,!1)};
Kf.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(k){W&&k(W)})};
var hJ=function(W,k,C){Kf.call(this,W);this.player_=k;this.autoplayData_=C};
_.D(hJ,Kf);hJ.prototype.getCacheKeyForEndpoint=function(W){return _.c5w(W,!!this.autoplayData_)};
hJ.prototype.getTempData=function(W,k){k=k.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.ie(),pbis:k,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
hJ.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
hJ.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.m("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var QR$=function(W){W.playerEvents_.forEach(function(k){W.player.removeEventListener(k.eventName,k.callback)});
W.playerEvents_.length=0},WC=function(W,k,C){this.player=W;
this.JSC$10831_taskManager=k;this.prefetchDelay=C;this.completionResolver_=null;this.playerEvents_=[]};
WC.prototype.start=function(){var W=this;this.completionResolver_=_.ME();_.aa(this.completionResolver_.promise,function(){QR$(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var p1u=function(W,k,C){W.player.addEventListener(k,C);W.playerEvents_.push({eventName:k,callback:C})},vXT={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},ee1={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},sR7=function(W,k,C){WC.call(this,W,k,C);this.cueId_="playbackTrigger-"+Math.random()};
_.D(sR7,WC);
sR7.prototype.prepareTrigger=function(W){var k=this,C=this.player.getDuration(),n=this.player.getVideoData(),N=n.isLive&&n.hasProgressBarBoundaries;if(N&&n.progressBarEndPositionUtcTimeMillis){var B=n.progressBarEndPositionUtcTimeMillis/1E3;isNaN(B)||(C=B)}var A=0;this.prefetchDelay>=0?N?n.progressBarStartPositionUtcTimeMillis&&(n=n.progressBarStartPositionUtcTimeMillis/1E3,isNaN(n)||(A=n+this.prefetchDelay)):A=this.prefetchDelay:A=C+this.prefetchDelay;N?this.player.addUtcCueRange(this.cueId_,A,C):
this.player.addCueRange(this.cueId_,A,C);_.aa(W.promise,function(){k.player.removeCueRange(k.cueId_)});
p1u(this,"onCueRangeEnter",function(w){w==k.cueId_&&W.resolve(C-A)})};
var Gc1=function(W,k){W.fragmentConfiguration_[k].requiredKeys.every(function(C){return!!W.prefetchedData_[C]})&&(W.validatedFragments_.push(k),k=W.missingFragments_.indexOf(k),k!==-1&&W.missingFragments_.splice(k,1))},yC6=function(W){W.prefetchedFragments_.forEach(function(k){Gc1(W,k)})},$Rt=function(W,k,C){this.pageFragments_=W;
this.prefetchedFragments_=k;this.fragmentConfiguration_=ee1;this.prefetchedData_=C;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;yC6(this)},ZF7=function(){},Re6=function(W){this.JSC$10845_playlistManager_=W};
_.D(Re6,ZF7);Re6.prototype.getPrefetchEndpoint=function(){return this.JSC$10845_playlistManager_.getAutoplayEndpoint()};
var oX6=function(W){this.autonavEndpoints_=W};
_.D(oX6,ZF7);oX6.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var iF7=function(W,k,C,n,N){this.autonavEndpoints=W;this.foregroundTrigger=k;this.backgroundTrigger=C;this.pageType=n;this.isInPlaylist=N},T1Y=function(W,k){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var C=_.z(W[0],_.RA);if(C.watchEndpointSupportedPrefetchConfig&&C.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var n=C.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;C=n.playbackRelativeSecondsPrefetchCondition;C=typeof C==="number"&&Math.abs(C)<k.videoDuration?C:void 0;n=n.countdownUiRelativeSecondsPrefetchCondition;n=typeof n!=="number"||_.m("prefetch_job_config_cleanup_ks")&&k.inPlaylist?void 0:n;if(typeof n==="number")return new iF7(W,k.makeUpNextTrigger(n),k.makePlaybackTrigger(n),
"watch",k.inPlaylist);if(typeof C==="number")return new iF7(W,k.makePlaybackTrigger(C),null,"watch",k.inPlaylist)}}},q3Y=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.MI(_.UVJ)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},u$Z=function(W){_.wm(document,"visibilitychange",W.onVisibilityChange_,!1,W)},kF=function(W){Kf.call(this,W)};
_.D(kF,Kf);kF.prototype.getCacheKeyForEndpoint=function(W){return Kf.prototype.getCacheKeyForEndpoint.call(this,W)};
kF.prototype.getTempData=function(){return{}};
kF.prototype.getXhrParams=function(W){return W};
kF.prototype.getParams=function(){return{}};
var URY=function(W,k,C){var n=W.prefetchDelay*1E3;if(Math.abs(n)>k)C.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var N=n,B=k-n;n<0&&(N=k+n,B=Math.abs(n));var A=W.JSC$10831_taskManager.addJob(function(){C.resolve(B/1E3)},10,N);
C.promise.thenCatch(function(){W.JSC$10831_taskManager.cancelJob(A)})}},OF1=function(W,k,C){WC.call(this,W,k,C)};
_.D(OF1,WC);OF1.prototype.prepareTrigger=function(W){var k=this;p1u(this,"onAutonavCoundownStarted",function(C){URY(k,C,W)})};
var Le7=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},jRY=function(W,k,C){if(!W.triggeredTargets.has(k)){var n=_.Y62(W,k);
n.action=C;_.ncY(W,k,n)}},HFY=function(W){_.BtS();
_.CFw("cpt")&&_.zJ(Error("lh"));_.NX.requestAnimationFrame(function(){_.NX.setTimeout(function(){_.cN("cpt");var k=_.Ml("vpl"),C=_.Ml("cpt");k&&C&&_.cN("ol",Math.max(k,C))})});
try{_.cN("fr_s"),W()}catch(k){_.dI(k)}_.NX.requestAnimationFrame(function(){_.cN("bcp")})},rCi=function(W,k){W.serviceEndpointHandlers.push(k)},gX7=function(W,k){k=W.pendingPages_.indexOf(k);
k>-1&&W.pendingPages_.splice(k,1)},PcZ=function(W,k){var C=_.JXs.indexOf(k);
C>-1&&_.JXs.splice(C,1);W.targetPage_==k?(W.abort(),_.IM2(W)):gX7(W,k)},Ke1=function(W,k,C,n){k={challenge:k};
C&&(k.webResponse=C);return _.DY(W.innertubeTransportService,k,_.RY(zeE),n)},he1=function(W,k,C){if(!k.challenge)throw Error("ni");
if(k.botguardData&&k.botguardData.program){var n=new fT7;n.initialize(k.botguardData,function(){mRZ(n,{atr_challenge:k.challenge}).then(function(N){if(!N)throw Error("oi");return Ke1(W,k.challenge,N,C)}).catch(function(N){_.zJ(N);
return Ke1(W,k.challenge,void 0,C)})},void 0)}else Ke1(W,k.challenge,void 0,C)},Wfi=function(W,k,C){var n={};
k.ids&&(n.ids=[].concat(_.J8(k.ids)));k.engagementType&&(n.engagementType=k.engagementType);return _.DY(W.innertubeTransportService,n,_.RY(_.NLA),C).then(function(N){if(!N)throw new _.AM("GetAttestationChallenge returned falsy");he1(W,N,C)}).thenCatch(function(N){_.dI(N)})},k$C=function(W,k,C){return new _.Wx(function(n,N){var B;
return _.F(function(A){if(A.nextAddress==1){var w=k.engagementType,x=k.ids,E={};x=_.b(x!=null?x:[]);for(var a=x.next();!a.done;a=x.next())a=a.value,a.encryptedVideoId?E.encryptedVideoId=a.encryptedVideoId:a.externalChannelId?E.externalChannelId=a.externalChannelId:a.commentId?E.commentId=a.commentId:a.externalOwnerId?E.externalOwnerId=a.externalOwnerId:a.artistId?E.artistId=a.artistId:a.playlistId?E.playlistId=a.playlistId:a.externalPostId?E.externalPostId=a.externalPostId:a.shareId&&(E.shareId=a.shareId);
return _.l(A,XjE(w,E),2)}B=A.yieldResult;if(!B.challenge)return _.zJ(Error("pi")),Wfi(W,k,C).then(n,N),A.return();w=B;E={challenge:w.challenge};E.webResponse=w.webResponse;E.engagementType=k.engagementType;E.ids=k.ids;_.DY(W.innertubeTransportService,E,_.RY(zeE),C).then(n,N);_.ab(A)})})},dbi=function(W,k){var C,n,N,B;
_.F(function(A){if(A.nextAddress==1){C=_.z(k,_.aT2);if(!(C&&C.listId&&W.response&&W.response.playingVideoId)||W.listId!==C.listId)return A.return();W.index===void 0&&(W.index=0);return _.l(A,_.DgI(W.JSC$10654_playlistNetworkManager,C.listId,W.index,W.response.playingVideoId),2)}n=A.yieldResult;if(!n)return A.return();N=n.playlistId;B=n.playlistPanelRenderer;W.setPlaylistData(N,B,n.autoplayRenderer);_.ab(A)})},CfA=function(W,k,C){var n=W.getParams(C),N=_.cyw(k,n),B=W.getTempData(k,C);
B.endpoint=JSON.stringify(k);_.m("enable_unknown_lact_fix_on_html5")&&(_.f().resolve(_.xa),B.lact=_.ie());var A={headers:{"X-YouTube-STS":_.DE("STS"),"x-youtube-csoc":1}};_.qL(N,B);return new _.Wx(function(w,x){var E=W.getXhrParams(n),a;_.m("kevlar_cache_on_ttl_player")&&(a=_.jD.instance);a&&_.$kz(a,k)?_.Ukx(a,k,B,window.location.href).then(function(X){X?w(X):x()},x):_.eQY(W.JSC$10821_networkManager_,k,E,W.onPartsCallback_.bind(W),A).then(function(X){X?w(X):x()},x)})},nvB=function(W,k){W.triggerPromise_=
k.start();
W.triggerPromise_.then(function(C){var n=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(n){var N=vXT[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=CfA(W.JSC$10857_networkPrefetchRequest_,n,{fragmentsRequested:N,timeBeforeNextVideo:C});W.prefetchResponseCacheKey_=W.JSC$10857_networkPrefetchRequest_.getCacheKeyForEndpoint(n);u$Z(W);W.prefetchRequestPromise_.then(function(B){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,B);if(_.m("web_prefetch_preload_video")&&
N.length===1&&N[0]==="pl"&&B&&!B.playerAds&&!B.adPlacements){var A=_.z(n,_.YZ),w=A!=null,x={raw_player_response:B,watch_endpoint:A};(B=_.f().resolve(w?_.Nls:_.qE))&&n&&B.then(function(E){w&&_.m("web_queue_preload_video")?(x.prefer_gapless=!0,E.queueNextVideo(x)):E.preloadVideoByPlayerVars(x)})}})}})},Cp=function(W,k,C,n){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=k;this.prefetchJobConfig_=C;this.JSC$10857_networkPrefetchRequest_=n;this.prefetchResponseCacheKey_=null};
Cp.prototype.enqueue=function(){this.triggerPromise_||(nvB(this,q3Y(this)),_.b6(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Cp.prototype.resolve=function(){this.cancel()};
Cp.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.");u$Z(this)};
Cp.prototype.onVisibilityChange_=function(){var W=this;_.MI(_.UVJ)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||nvB(this,q3Y(this))};
NDi=function(W,k,C,n,N){k&&(k==null?0:k.videoId)&&C&&C.entries&&_.m("kevlar_enable_shorts_prefetch_in_sequence")&&(Le7(W),k=C.entries.map(function(B){var A;return(A=_.z(B.command,_.YZ))==null?void 0:A.videoId}).indexOf(k.videoId),C=C.entries[k+1],C!=null&&C.command&&!_.z(C==null?void 0:C.command,_.zQ)&&(n=new iF7([C.command],new sR7(n,_.aM,1),null,"shorts",!1),W.pendingPrefetchJob_=new Cp(new oX6(n.autonavEndpoints),function(){return!1},n,new kF(N)),W.pendingPrefetchJob_.enqueue()))};
YOE=function(W,k,C,n,N,B){var A=_.Zn.getInstance();if(!_.m("block_all_player_prefetch_requests")){Le7(W);var w=!!C.getPlaylistId(),x=C.getVideoData().isLive&&C.getVideoData().hasProgressBarBoundaries;if((A.getState()==2||w||x)&&(!C.getVideoData().isLive||x)){A={inPlaylist:w,videoDuration:C.getDuration(),makeUpNextTrigger:function(a){return new OF1(C,_.aM,a)},
makePlaybackTrigger:function(a){return new sR7(C,_.aM,a)}};
var E=T1Y(k,A);E&&(W.pendingPrefetchJob_=new Cp(E.isInPlaylist?new Re6(N):new oX6(E.autonavEndpoints),function(a,X){X=new $Rt(vXT[E.pageType].pageFragments,vXT[E.pageType].prefetchedFragments,X);return _.HGA(X)?(W.prefetchCache_.set(a,X),!0):!1},E,new hJ(n,C,B,N)),W.pendingPrefetchJob_.enqueue())}}};
BDT=function(){var W=_.Qd();W.signals.parkOrScheduleJob(function(){var k=W.storage;if(k.storage)if(IT7(k)){var C=k.getPlaylistId();k=k.getIndex();C=!!C&&k!==void 0}else k.clear(),C=!1;else C=!1;if(C){C=W.pageManager.isOnWatch();a:{var n=W.storage;if(n.storage&&IT7(n)&&(k=n.getPlaylistId(),n=n.getIndex(),k&&n!==void 0)){C={recoverPlaylistCommand:{listId:k,index:n,openMiniplayer:!C,openListPanel:C,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}C=void 0}C&&_.Dm(W.JSC$10654_actionRouter,[C],null)}},
0,"ma")};
b_1=function(W,k,C,n,N,B){var A=_.F8(7111);_.Hn(W.JSC$15948_screenManager,A,B?_.Yf(B):void 0);_.gc(W.JSC$15948_screenManager,A,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:n,offlineId:k,offlineabilityFormatType:C,isDefaultFormatType:N==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:N}})};
Ak$=function(W,k,C,n,N){var B,A,w,x,E;return _.F(function(a){if(a.nextAddress==1)return _.l(a,W.JSC$15948_playerApiPromise,2);B=a.yieldResult;b_1(W,k,C,"OFFLINE_OBJECT_TYPE_PLAYLIST",n,N);if(w=_.Huz[W.entityTypeMap.listEntityType])E={},A=(E[w]={maximumDownloadQuality:(x=C)!=null?x:void 0},E);return _.l(a,B.queueOfflineAction(k,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",A),0)})};
Ff1=function(W,k){var C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return _.l(A,W.JSC$15948_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){C=A.yieldResult;if(!C)return _.zJ(new _.AM("PES is undefined")),A.return();n=_.KB(k,"downloadStatusEntity");return _.l(A,cCi(C,n,"downloadStatusEntity"),3)}N=A.yieldResult;return A.return((B=N)==null?void 0:B.downloadState)})};
w0C=function(W,k,C,n,N){var B,A,w,x,E,a;return _.F(function(X){switch(X.nextAddress){case 1:return _.l(X,W.JSC$15948_playerApiPromise,2);case 2:B=X.yieldResult;b_1(W,k,C,"OFFLINE_OBJECT_TYPE_VIDEO",n,N);if(w=_.Huz[W.entityTypeMap.singleEntityType])E={},A=(E[w]={maximumDownloadQuality:(x=C)!=null?x:void 0},E);return _.l(X,Ff1(W,k),3);case 3:a=X.yieldResult;if(a!=="DOWNLOAD_STATE_USER_DELETED"){X.jumpTo(4);break}return _.l(X,W.deleteVideo(k),4);case 4:return _.l(X,B.queueOfflineAction(k,W.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",A),0)}})};
xFE=function(W,k,C,n,N){return _.F(function(B){return B.nextAddress==1?_.l(B,W.deleteVideo(k,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.l(B,w0C(W,k,C,n,N),0)})};
lm7=function(W,k,C){var n,N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.JSC$15948_playerApiPromise,2);n=B.yieldResult;N=_.KB(k,"mainVideoDownloadStateEntity");return _.l(B,n.updateDownloadState(N,C),0)})};
bxi=function(W){var k=_.f().resolve(_.Rf);return _.F(function(C){if(C.nextAddress==1)return k.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&k.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?C.jumpTo(2):_.l(C,k.resumeVideoDownload(W),2);if(C.nextAddress!=4)return _.l(C,lm7(k,W,k.previousDownloadStateForVideo[W]),4);delete k.previousDownloadStateForVideo[W];_.ab(C)})};
YYZ=function(W,k){var C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$15948_playerApiPromise,2);C=n.yieldResult;return _.l(n,C.queueOfflineAction(k,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
Cs1=function(){var W=_.f().resolve(_.Rf),k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$15948_playerApiPromise,2);if(n.nextAddress!=3)return k=n.yieldResult,C={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.l(n,k.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",C),3);var N=W.JSC$15948_commandHandler,B=N.resolveCommand,A=_.w8("DELETING_ALL",void 0,"Downloads are being deleted");
B.call(N,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ur(A)}},popupType:"TOAST"}});_.ab(n)})};
tFE=function(W){var k,C;return _.F(function(n){if(n.nextAddress==1)return _.l(n,W.JSC$15948_prefStorage,2);k=n.yieldResult;return n.return((C=k)==null?void 0:C.get("sdois"))})};
Ev1=function(W){var k,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return _.l(w,W.JSC$15948_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){k=w.yieldResult;if(!k)return _.zJ(new _.AM("PES is undefined")),w.return();C=_.KB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.l(w,cCi(k,C,"settingEntity"),3)}n=w.yieldResult;return w.return((A=(N=n)==null?void 0:(B=N.settingOptionValue)==null?void 0:B.boolValue)!=null?A:!1)})};
amZ=function(W,k){var C,n,N,B;return _.F(function(A){switch(A.nextAddress){case 1:return((C=k)==null?void 0:C.formatType)===void 0?A.return():_.l(A,W.JSC$15948_prefStorage,2);case 2:n=A.yieldResult;if(n===void 0)return A.return();if(((N=k)==null?void 0:N.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.l(A,n.set("lmqf",k.formatType),8);if(((B=k)==null?void 0:B.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){A.jumpTo(0);break}return _.l(A,n.set("lmqf",k.formatType),
6);case 6:return _.l(A,n.set("lmqflst",Math.floor((0,_.oX)())),0);case 8:return _.l(A,n.remove("lmqflst"),0)}})};
X07=function(W){var k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,W.JSC$15948_prefStorage,2);case 2:k=n.yieldResult;if(!k){n.jumpTo(3);break}return _.l(n,k.get("lmqflst"),4);case 4:if(C=n.yieldResult,C!==void 0)return n.return(C);case 3:return n.return(0)}})};
fmE=function(W){var k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,W.JSC$15948_prefStorage,2);case 2:k=n.yieldResult;if(k===void 0){n.jumpTo(3);break}return _.l(n,k.get("lmqf"),4);case 4:if(C=n.yieldResult,C!==void 0)return n.return(C);case 3:return n.return("SD")}})};
au7=function(W,k,C){var n,N,B,A,w,x,E,a;_.F(function(X){switch(X.nextAddress){case 1:return _.l(X,amZ(W,(n=k)==null?void 0:n.actionParams),2);case 2:N=k.playlistId;if(!N)return X.return();if(k.action==="ACTION_ADD")return((A=k.actionParams)==null?0:A.formatType)?_.l(X,Ak$(W,N,k.actionParams.formatType,(a=k.actionParams)==null?void 0:a.settingsAction,C),0):_.l(X,W.offlineWebClientEligibility,14);if(k.action==="ACTION_REMOVE_WITH_PROMPT"){var d=W.JSC$15948_commandHandler,V=d.resolveCommand,c=_.DE("INNERTUBE_CLIENT_NAME"),
M=c==="WEB_REMIX"?_.w8("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.w8("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),p=c==="WEB_REMIX"?[_.w8("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];c=c==="WEB_REMIX"?_.w8("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.w8("DELETE",void 0,"Delete");var e=_.w8("CANCEL",void 0,"Cancel");M={openPopupAction:fz1(M,p,c,e,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:N})};V.call(d,M);
return X.return()}if(k.action==="ACTION_REMOVE")return _.l(X,YYZ(W,N),0);if(k.action!=="ACTION_SYNC"){X.jumpTo(0);break}return _.l(X,W.JSC$15948_playerApiPromise,9);case 9:return B=X.yieldResult,_.l(X,B.queueOfflineAction(N,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return w=X.yieldResult,_.l(X,fmE(W),15);case 15:return x=X.yieldResult,_.l(X,X07(W),16);case 16:E=X.yieldResult,k.onAddCommand&&W.JSC$15948_commandHandler.resolveCommand(k.onAddCommand,{form:{preferredFormatType:x,
offlineWebClientEligibility:w,lastOfflineQualitySettingsSavedMs:E.toString()}}),X.jumpTo(0)}})};
tZ$=function(W,k,C){var n,N,B,A,w,x,E,a,X,d,V,c,M,p;_.F(function(e){switch(e.nextAddress){case 1:return _.l(e,amZ(W,(n=k)==null?void 0:n.actionParams),2);case 2:N=k.videoId;if(!N)return e.return();if(k.action==="ACTION_REMOVE_WITH_PROMPT"){var u=W.JSC$15948_commandHandler,h=u.resolveCommand,L=_.DE("INNERTUBE_CLIENT_NAME"),Bw=L==="WEB_REMIX"?_.w8("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.w8("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),P=L==="WEB_REMIX"?[_.w8("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];L=L==="WEB_REMIX"?_.w8("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.w8("DELETE",void 0,"Delete");var xz=_.w8("CANCEL",void 0,"Cancel");Bw={openPopupAction:fz1(Bw,P,L,xz,{signal:"DELETE_DOWNLOAD",targetId:N})};h.call(u,Bw);return e.return()}if(k.action==="ACTION_ADD")return((d=k.actionParams)==null?0:d.formatType)?_.l(e,w0C(W,N,k.actionParams.formatType,(p=k.actionParams)==null?void 0:p.settingsAction,C),0):_.l(e,W.offlineWebClientEligibility,
23);if(k.action==="ACTION_RETRY")return _.l(e,fmE(W),19);if(k.action==="ACTION_PAUSE")return _.l(e,W.pauseVideoDownload(N),0);if(k.action==="ACTION_RESUME")return _.l(e,W.resumeVideoDownload(N),0);if(k.action!=="ACTION_REMOVE"){e.jumpTo(0);break}return _.l(e,Ff1(W,N),13);case 13:return B=e.yieldResult,W.previousDownloadStateForVideo[N]=(A=B)!=null?A:"DOWNLOAD_STATE_UNKNOWN",_.l(e,lm7(W,N,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
W.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){e.jumpTo(15);break}return _.l(e,W.pauseVideoDownload(N),15);case 15:u=_.w8("DELETED_VIDEO",void 0,"Video deleted from downloads.");h=_.w8("UNDO_ACTION",void 0,"Undo");Bw=_.w8("CLOSE",void 0,"Close");w={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ur(u),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ur(h),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:N}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:u+" "+h}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:N}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Bw}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$15948_commandHandler.resolveCommand(w);
e.jumpTo(0);break;case 19:x=e.yieldResult;x==="UNKNOWN_FORMAT_TYPE"&&(x="SD");E="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((a=k.actionParams)==null?0:a.formatType)x=k.actionParams.formatType,E=(X=k.actionParams)==null?void 0:X.settingsAction;return _.l(e,xFE(W,N,x,E,C),20);case 20:return e.return();case 23:return V=e.yieldResult,_.l(e,fmE(W),24);case 24:return c=e.yieldResult,_.l(e,X07(W),25);case 25:M=e.yieldResult,k.onAddCommand&&W.JSC$15948_commandHandler.resolveCommand(k.onAddCommand,
{form:{preferredFormatType:c,offlineWebClientEligibility:V,lastOfflineQualitySettingsSavedMs:M.toString()}}),e.jumpTo(0)}})};
dFT=function(W,k){var C,n,N,B,A,w,x;return _.F(function(E){if(E.nextAddress==1)return _.l(E,W.JSC$15948_persistentStorePromiseAccessor(),2);C=E.yieldResult;if(!C)return _.zJ(new _.AM("PES is undefined")),E.return();if((n=k)==null||!n.settingItemId)return E.return();N=k;B=N.settingItemId;A=N.boolValue;w=_.KB(B,"settingEntity");x={key:w,settingOptionValue:{boolValue:A}};return _.l(E,JC6(C,x),0)})};
mFZ=function(W,k){var C,n,N,B,A,w,x;return _.F(function(E){switch(E.nextAddress){case 1:return _.l(E,W.JSC$15948_prefStorage,2);case 2:return C=E.yieldResult,n=_.tQ(),_.l(E,W.JSC$15948_persistentStorePromiseAccessor(),3);case 3:return N=E.yieldResult,C?N?_.l(E,C.get("sdois"),4):(_.zJ(new _.AM("PES is undefined")),E.return()):(_.zJ(new _.AM("prefStorage is undefined")),E.return());case 4:B=E.yieldResult;w=(A=k)==null?void 0:A.boolValue;w===void 0||_.m("kevlar_set_sd_enabled_flag_killswitch")||_.Er(0,
197,!0);B===void 0&&w===void 0&&(w=!1);if(w===void 0){E.jumpTo(0);break}return _.l(E,C.set("sdois",w),6);case 6:return _.m("kevlar_set_sd_enabled_flag_killswitch")||(_.Er(0,196,w),n.save()),x={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:w},_.l(E,dFT(W,x),0)}})};
zX6=function(W,k,C){var n,N,B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:return _.l(x,tFE(W),2);case 2:return n=x.yieldResult,_.l(x,mFZ(W,C),3);case 3:return _.l(x,tFE(W),4);case 4:return N=x.yieldResult,B=N!==n,_.l(x,Ev1(W),5);case 5:A=x.yieldResult&&!_.m("kevlar_modern_downloads_page");if((w=!N&&!A)||B)return _.l(x,k.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);x.jumpTo(0)}})};
FPY=function(){var W=_.f().resolve(_.Rf),k;_.F(function(C){switch(C.nextAddress){case 1:return _.l(C,W.JSC$15948_playerApiPromise,2);case 2:k=C.yieldResult;if(!_.m("kevlar_force_refresh_smart_downloads")){C.jumpTo(3);break}return _.l(C,k.refreshAllStaleEntities(0),4);case 4:return C.return();case 3:return _.l(C,k.refreshAllStaleEntities(),5);case 5:return _.l(C,zX6(W,k),0)}})};
fuB=function(W,k){var C,n;_.F(function(N){switch(N.nextAddress){case 1:return _.l(N,W.JSC$15948_playerApiPromise,2);case 2:C=N.yieldResult;switch((n=k)==null?void 0:n.settingItemId){case "SMART_DOWNLOADS_ENABLED":return N.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return N.jumpTo(4)}N.jumpTo(0);break;case 3:return _.l(N,zX6(W,C,k),6);case 6:N.jumpTo(0);break;case 4:return _.l(N,dFT(W,k),7);case 7:N.jumpTo(0)}})};
DFE=function(W,k){var C,n,N;return _.F(function(B){if(B.nextAddress==1)return _.l(B,W.JSC$15948_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){C=B.yieldResult;if(!C)return _.zJ(new _.AM("PES is undefined")),B.return(!1);if(!k)return B.return(!1);n=_.KB(k,"mainVideoEntity");return _.l(B,cCi(C,n,"mainVideoEntity"),3)}N=B.yieldResult;return B.return(N!==void 0)})};
me7=function(W){var k=_.f().resolve(_.Rf),C,n,N,B,A,w,x,E,a,X,d;_.F(function(V){switch(V.nextAddress){case 1:return _.l(V,k.JSC$15948_playerApiPromise,2);case 2:C=V.yieldResult;N=(n=W)==null?void 0:n.actions;if(!N)return V.return();B=_.b(N);A=B.next();case 3:if(A.done){V.jumpTo(0);break}w=A.value;E=x=void 0;if(!(((x=w)==null?0:x.entityKey)&&((E=w)==null?0:E.actionType))){V.jumpTo(4);break}a=_.r8(w.entityKey);X=a.entityId;d=a.entityType;return _.l(V,C.queueOfflineAction(X,d,w.actionType),4);case 4:A=
B.next(),V.jumpTo(3)}})};
VFi=function(W,k){var C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return _.l(w,W.JSC$15948_prefStorage,2);if(w.nextAddress!=3)return(C=w.yieldResult)?_.l(w,C.get("psi"),3):w.return();n=w.yieldResult;A={isPaused:k,lastSyncTimestamp:(B=(N=n)==null?void 0:N.lastSyncTimestamp)!=null?B:"0"};return _.l(w,C.set("psi",A),0)})};
VZt=function(W){var k=_.f().resolve(_.Rf),C,n,N,B,A,w,x,E;return _.F(function(a){switch(a.nextAddress){case 1:return _.l(a,k.JSC$15948_playerApiPromise,2);case 2:C=a.yieldResult;N=((n=W)==null?void 0:n.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((w=W)==null?void 0:w.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":B="!*$_ALL_ENTITIES_!*$";A="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return a.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return a.jumpTo(4)}a.jumpTo(5);break;case 3:return _.l(a,VFi(k,N),6);case 6:a.jumpTo(5);break;case 4:return _.l(a,DFE(k,(x=W)==null?void 0:x.videoId),7);case 7:a.yieldResult&&(B=(E=W)==null?void 0:E.videoId,A="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");a.jumpTo(5);break;case 5:if(B&&A)return _.l(a,C.queueOfflineAction(B,"videoPlaybackPositionEntity",A),0);a.jumpTo(0)}})};
Jk1=function(W,k){var C;k!==1||((C=W.currentPersistentToast)==null?0:C.opened)?W.openToast():W.currentPersistentToast=void 0};
ckT=function(){var W,k,C,n;return _.F(function(N){if(N.nextAddress==1)return W=navigator,(k=W.storage)!=null&&k.persisted?_.l(N,(C=W.storage)==null?void 0:C.persisted(),2):N.return("PERSISTED_STATE_NOT_SUPPORTED");n=N.yieldResult;return N.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Imu=function(){var W,k,C,n;return _.F(function(N){if(N.nextAddress==1)return W=navigator,(k=W.storage)!=null&&k.persist?_.l(N,(C=W.storage)==null?void 0:C.persist(),2):N.return("PERSISTED_STATE_NOT_SUPPORTED");n=N.yieldResult;return N.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
SOB=function(){var W,k;return _.F(function(C){switch(C.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.F0(C,2),_.l(C,ckT(),4);case 4:W=C.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){C.jumpTo(5);break}return _.l(C,Imu(),6);case 6:W=C.yieldResult;case 5:_.M7(C,3);break;case 2:k=_.EF(C),k instanceof Error&&_.dI(k);case 3:return _.a9("persistentStorageStateChecked",{persistedState:W}),C.return(W)}})};
MFE=function(W,k){var C=[],n=!1;k=_.b(k);for(var N=k.next();!N.done;N=k.next()){N=W.moduleRegistry[N.value];var B=void 0,A=void 0;((B=N)==null?0:B.isFetching)&&((A=N)==null?0:A.resolver)?(C.push(N.resolver.promise),n=!0):(N=new _.gn,N.resolve(void 0),C.push(N.promise))}return n?Promise.all(C):void 0};
QV6=function(W,k,C){C=C===void 0?{}:C;var n=W.defaultViewTransitionOptions,N=k.map(function(A){return A.beforeTransition}),B=k.map(function(A){return A.afterTransition});
return Object.assign({},n,C,{beforeTransition:function(){var A;(A=n.beforeTransition)==null||A.call(n);var w,x;(x=(w=C).beforeTransition)==null||x.call(w);A=_.b(N);for(w=A.next();!w.done;w=A.next())w=w.value,w()},
afterTransition:function(){var A;(A=n.afterTransition)==null||A.call(n);var w,x;(x=(w=C).afterTransition)==null||x.call(w);A=_.b(B);for(w=A.next();!w.done;w=A.next())w=w.value,w()}})};
p0C=function(W,k,C){var n,N,B,A,w,x,E;_.F(function(a){if(W.config.disableAllTransitions)return a.return(k());if((n=C)==null||!n.transitionName)return a.return(_.OMT(k,(N=C)==null?void 0:N.viewTransitionOptions));B=C;A=B.transitionName;w=B.viewTransitionOptions;x=W.config.transitionConfigs.get(A);if(!x)return a.return(k());var X;E=(X=W.transitionTasksMap.get(A))!=null?X:[];return a.return(_.OMT(k,QV6(x,E,w)))})};
np=function(W,k,C){W.transitionTasksMap.has(k)?W.transitionTasksMap.get(k).push(C):(W=new _.AM("Transition task registered for unknown transition name",k),_.dI(W))};
vvt=function(W,k,C){if(W.isInitialized()){var n=LQ(C),N=n==="watch";n=n==="shorts";var B=LQ(k)==="watch";if(N)B||(W.backgroundPageData=k),W.watchPipMode&&B||W.deactivate(C.endpoint);else if(n){if(LQ(k)!=="shorts"){var A;(A=W.getPlayerElement())==null||A.pause()}}else B&&!W.watchPipMode&&(mNZ(k,C)?(W.watchWhileMode&&_.huS(W,!1),_.jM6(W,k)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());B&&_.kJu(W);W.shortsPipMode&&!n&&(window.focus(),W.deactivate());if(n&&W.shortsPipEnabled||N&&W.watchPipEnabled)_.nKX(W.handleMediaSessionPipActivation);
else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&_.IJ()&&_.tp4("Chromium")>=120){W=_.CtP().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(w){}}}};
eXY=function(W,k){var C,n;_.F(function(N){if(N.nextAddress==1){if(!W||!W.navigationEndpoint)return N.return();_.k7().lockupActivation=!0;var B;k?B=_.Go(_.w8("QUEUE",void 0,"Queue")):B=W.longBylineText;n=(C=B)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:C,playlistData:null}:void 0;return _.l(N,_.x4Y(_.f().resolve(_.eq),W.navigationEndpoint,!0,n),2)}_.k7().userActivation=!0;_.ab(N)})};
aBi=function(W,k){var C,n,N,B,A,w;_.F(function(x){if(x.nextAddress==1){C=_.z(k,_.EXs);if(!C||!C.listId)return x.return();W.index=C.index||W.index||0;n=W.response&&W.response.playingVideoId||void 0;return _.l(x,_.DgI(W.JSC$10654_playlistNetworkManager,C.listId,W.index,n),2)}N=x.yieldResult;if(!N)return x.return();B=N.playlistId;A=N.playlistPanelRenderer;!W.queueProxy&&B&&A&&B.startsWith("TLPQ")&&(W.queueProxy=new _.fE(W.JSC$10654_playlistNetworkManager,B,W.setPlaylistData.bind(W),W.clearQueue.bind(W),
_.apw(A),W.storage));if(C.openMiniplayer&&(w=_.XLm(A))&&!W.pageManager.isOnWatch()){var E=w,a=C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(E):eXY(E,a)}W.setPlaylistData(B,A,N.autoplayRenderer);_.ab(x)})};
lBZ=function(W,k){var C=_.Qd();C.index===void 0&&(C.index=0);C.temporaryItems.push.apply(C.temporaryItems,_.J8(W));if((k.videoId||k.videoIds)&&C.index!==void 0&&k.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!C.queueProxy){var n=[];if(C.response){var N=_.f().resolve(_.eq).isMiniplayerActive();if(C.response.playlistPanelRenderer&&C.response.playlistId&&!C.response.playlistId.startsWith("TLPQ")){if(C.pageManager.isOnWatch()||N)n=_.apw(C.response.playlistPanelRenderer)}else C.response.playingVideoId&&
!k.openMiniplayer?n.push(C.response.playingVideoId):N&&C.response.playingVideoId&&k.openMiniplayer&&n.push(C.response.playingVideoId)}C.queueProxy=new _.fE(C.JSC$10654_playlistNetworkManager,"",C.setPlaylistData.bind(C),C.clearQueue.bind(C),n,C.storage);C.queueProxy.JSC$10600_setCurrentIndex(C.index)}C.queueProxy.addVideos(k.videoIds||[k.videoId],k)}S3A(C,W);C.response&&_.pE(C,_.vK(C,C.response.autoplayRenderer));C.pageManager.isOnWatch()?C.isMiniplayerActive()&&C.openToast(W[0]):(W=W[0],k=k.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",C.isMiniplayerActive()?C.openToast(W):eXY(W,k))};
sVY=function(W){var k=_.Fsm(W);if(k=="object"||k=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);k=k=="array"?[]:{};for(var C in W)k[C]=sVY(W[C]);return k}return W};
G$T=function(W,k){W=_.wv(W,k,void 0,_.F2);W!=null&&(typeof W==="bigint"?W>=0&&(0,_.mi)(W)?W=Number(W):(W=(0,_.bE)(64,W),W=(0,_.mi)(W)?Number(W):String(W)):W=_.UA(W)?typeof W==="number"?_.cSz(W):_.M82(W):void 0);return W};
NT=function(W,k){return _.xSp(_.wv(W,k,void 0,_.F2))};
YF=function(W,k){return _.P8(_.wv(W,k,void 0,_.F2))};
BC=function(W,k){return _.wv(W,k,void 0,_.F2,_.ASw)};
ykZ=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;_.HY(k,C,_.v9(W.decoder_,_.Bxp));return!0},_.K7,_.Gv);
$FB=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.v9(W.decoder_,_.Bxp));return!0},_.K7,_.Gv);
Z_1=_.j7(function(W,k,C){if(W.nextWireType_!==1)return!1;var n=W.decoder_;W=_.sM(n);n=_.sM(n);W=_.ZZ(W,n);_.HY(k,C,W);return!0},_.daI,_.quP);
RXZ=_.j7(function(W,k,C){if(W.nextWireType_!==5)return!1;_.HY(k,C,_.sM(W.decoder_));return!0},function(W,k,C){k=_.E2p(k);
k!=null&&(_.rZ(W,C,5),_.PY(W.encoder_,k))},_.TC());
ov7=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;W=_.V2w(W.decoder_);_.HY(k,C,W===!1?void 0:W);return!0},_.map,_.ol2);
i_C=_.j7(function(W,k,C){if(W.nextWireType_!==2)return!1;W=_.QwX(W);_.HY(k,C,W===""?void 0:W);return!0},_.Da3,_.i$m);
TDA=_.j7(function(W,k,C){if(W.nextWireType_!==2)return!1;W=_.poX(W);_.HY(k,C,W===_.zz()?void 0:W);return!0},_.JoX,_.UcK);
qOu=_.F_p(function(W,k,C){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;k=_.muJ(k,k[_.B8]|0,C);W.nextWireType_==2?_.vl3(W,Cc6,k):k.push(_.et(W.decoder_));return!0},function(W,k,C){k=_.AoI(_.P8,k,!0);
if(k!=null&&k.length){C=_.GCz(W,C);for(var n=0;n<k.length;n++)_.alw(W.encoder_,k[n]);_.ytm(W,C)}},_.O$X);
uzE=_.j7(function(W,k,C){if(W.nextWireType_!==0)return!1;W=_.et(W.decoder_);_.HY(k,C,W===0?void 0:W);return!0},_.cow,_.O$X);
UF6=_.j7(function(W,k,C,n){if(W.nextWireType_!==0)return!1;_.EM(k,C,n,_.et(W.decoder_));return!0},_.cow,_.O$X);
_.P6=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
_.P6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var O_Z=function(W,k){var C=[];for(k=k||0;k<W.length;k+=2)_.JtY(W[k],W[k+1],C);return C.join("&")},LfE=function(W,k){var C=arguments.length==2?O_Z(arguments[1],0):O_Z(arguments,1);
return _.V7s(W,C)},jVA=function(W){var k=_.z$s(window.location.href),C=k[1],n=[];
C&&C.split("&").forEach(function(N){var B=N.indexOf("=");B=B>=0?N.slice(0,B):N;W.hasOwnProperty(B)||n.push(N)});
k[1]=_.Dus(n.join("&"),_.W4(W));return k[0]+(k[1]?"?"+k[1]:"")+k[2]},Vtu=function(W,k){return new _.S3(W.x+k.x,W.y+k.y)},H_7=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.flY(W.previousSibling,!1)},rkT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(rkT,_.US);rkT.prototype.getValue=function(){var W=_.wv(this,2);if(Array.isArray(W)||W instanceof _.US)throw Error("aa");return _.tp(this,2)};
var gvS=function(){var W=_.L5();this.JSC$7783_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.PD("cookie_enabled"),_.PD("cookie_3p_enabled"),_.kL("browser"))};
gvS.prototype.increment=function(W,k,C){this.JSC$7783_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,k,C)};
var uYE=function(){var W=_.L5();this.JSC$7786_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.kL("channel_type"))};
uYE.prototype.increment=function(W){this.JSC$7786_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var U2u=function(){var W=_.L5();this.JSC$7789_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.kL("channel_type"))};
U2u.prototype.increment=function(W){this.JSC$7789_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var L4Y=function(){var W=_.L5();this.JSC$7792_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.kL("channel_type"))};
L4Y.prototype.increment=function(W){this.JSC$7792_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var O6E=function(){var W=_.L5();this.JSC$7795_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
O6E.prototype.increment=function(){this.JSC$7795_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var jZT=function(){var W=_.L5();this.JSC$7798_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.kL("channel_type"),_.kL("error_type"))};
jZT.prototype.increment=function(W,k){this.JSC$7798_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,k)};
var H67=function(){var W=_.L5();this.JSC$7801_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
H67.prototype.increment=function(){this.JSC$7801_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var rfE=function(){var W=_.L5();this.JSC$7804_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
rfE.prototype.increment=function(){this.JSC$7804_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var qYi=function(){var W=_.L5();this.JSC$7810_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
qYi.prototype.increment=function(){this.JSC$7810_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var PfB=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.qX(W)||typeof W==="string"?W.length:_.JU.getCount(W)},Kf$=function(W,k){if(typeof W.every=="function")return W.every(k,void 0);
if(_.qX(W)||typeof W==="string")return Array.prototype.every.call(W,k,void 0);for(var C=_.pvS(W),n=_.Tq(W),N=n.length,B=0;B<N;B++)if(!k.call(void 0,n[B],C&&C[B],W))return!1;return!0},hXS=function(W,k,C,n){var N=new _.oA(null);
W&&_.qe(N,W);k&&_.us(N,k);C&&_.UY(N,C);n&&_.OY(N,n);return N},WFi=function(){var W=_.D5&&OT(_.uEA,10)>=0,k;
if(k=_.$4X)k=OT(_.qLA,10)>=0;var C=_.B9&&OT(_.uEA,85)>=0;return _.nr||W||k||C},k0T=function(W){var k=_.u7A(W);
return k&&WFi()?-W.scrollLeft:k&&_.pN(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},CPS=function(W,k){k=Math.max(k,0);
_.u7A(W)?WFi()?W.scrollLeft=-k:W.scrollLeft=W.scrollWidth-k-W.clientWidth:W.scrollLeft=k},y7t=0,iiE=!1;
Hz.prototype.set=function(W){this.relativeTimeStart_=W};
Hz.prototype.reset=function(){this.set(_.gk())};
Hz.prototype.get=function(){return this.relativeTimeStart_};
var nMS=null,N46=function(){nMS||(nMS=new Hz)},Yn$=function(){nMS||(nMS=new Hz)};
_.Pq(Yn$,N46);_.Y=qiE.prototype;_.Y.JSC$9121_buffer_="";_.Y.set=function(W){this.JSC$9121_buffer_=""+W};
_.Y.append=function(W,k,C){this.JSC$9121_buffer_+=String(W);if(k!=null)for(var n=1;n<arguments.length;n++)this.JSC$9121_buffer_+=arguments[n];return this};
_.Y.clear=function(){this.JSC$9121_buffer_=""};
_.Y.getLength=function(){return this.JSC$9121_buffer_.length};
_.Y.toString=function(){return this.JSC$9121_buffer_};
var B47=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=FeE;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
B47.prototype.format=function(W){return b3$(this,W)};
var b3$=function(W,k){var C=k.length;switch(C){case 0:return"";case 1:return String(k[0]);case 2:return W.listTwoPattern_.replace("{0}",String(k[0])).replace("{1}",String(k[1]))}for(var n=W.listStartPattern_.replace("{0}",String(k[0])).replace("{1}",String(k[1])),N=2;N<C-1;++N)n=W.listMiddlePattern_.replace("{0}",n).replace("{1}",String(k[N]));return W.listEndPattern_.replace("{0}",n).replace("{1}",String(k[C-1]))},NEZ=function(){var W={style:1};
this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=_.g88||_.mNx},A9i=function(W,k){switch(k){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},bh=function(W,k,C){a:{C=A9i(W,C);
switch(W.style_){case 1:if(C.LONG!=void 0){W=C.LONG;break a}case 2:if(C.NARROW!=void 0){W=C.NARROW;break a}default:W=C.SHORT;break a}W=void 0}return W?(new _.qib("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:k}):""};
NEZ.prototype.format=function(W){var k=[],C=W.years,n=W.months,N=W.weeks,B=W.days,A=W.hours,w=W.minutes;W=W.seconds;C!=null&&k.push(bh(this,C,"years"));n!=null&&k.push(bh(this,n,"months"));N!=null&&k.push(bh(this,N,"weeks"));B!=null&&k.push(bh(this,B,"days"));A!=null&&k.push(bh(this,A,"hours"));w!=null&&k.push(bh(this,w,"minutes"));W!=null&&k.push(bh(this,W,"seconds"));return(new B47).format(k)};
var FFu=!1,r76=function(W){_.Ww.call(this,W.message||W.description||W.name);this.isMissing=W instanceof rz;this.isTimeout=W instanceof _.pY&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.ve};
_.D(r76,_.Ww);r76.prototype.name="BiscottiError";var rz=function(){_.Ww.call(this,"Biscotti ID is missing from server")};
_.D(rz,_.Ww);rz.prototype.name="BiscottiMissingError";var gz=null,n47=function(){try{var W=_.QK("yt.ads.biscotti.getId_");return W?W():Mc1()}catch(k){return _.eh(k)}},naT,wFY=function(W){return _.jo({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},xVt=function(W){return _.jo({type:"SET_ONLINE_STATUS",
payload:W})},l2T=function(W,k){return _.jo({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:k}})},tz7=function(W){return _.jo({type:"SET_OVERLAY_STATE",
payload:W})},EM$=0,a2B=function(W,k,C){var n=this;
this.priority=k;this.delay=C;this.jobId=0;this.completionCallback=_.Au;this.wrappedJob=function(){W();n.completionCallback()};
this.id=++EM$};
a2B.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.aM.addJob(this.wrappedJob,this.priority,this.delay)};
var AH=function(){_.U3.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.D(AH,_.U3);AH.prototype.addJob=function(W,k,C){W=new a2B(W,k,C);this.taskIdToTask.set(W.id,W);this.isActive?XF7(this,W):this.suspendedTasks.add(W);return W.id};
var XF7=function(W,k){W.scheduledTasks.add(k);k.enqueue(function(){W.scheduledTasks.delete(k)})};
AH.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.aM.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
AH.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(k){_.aM.cancelJob(k.jobId);W.suspendedTasks.add(k)});
this.scheduledTasks.clear()};
AH.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(k){XF7(W,k)});
this.suspendedTasks.clear()};
AH.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.aM.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var FB=function(W,k){this.JSC$10781_networkService_=W;this.pageRequestPromise=k};
FB.prototype.fetchData=function(W){f2T(this,this.JSC$10781_networkService_.fetchData(W))};
FB.prototype.postData=function(W,k){f2T(this,this.JSC$10781_networkService_.postData(W,k))};
FB.prototype.requestDataForServiceEndpoint=function(W,k){f2T(this,this.JSC$10781_networkService_.requestDataForServiceEndpoint(W,k))};
var f2T=function(W,k){k.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
FB.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var wN=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
wN.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
wN.prototype.fetchData=function(W){var k=dVi(this);k.fetchData(W);return k.pageRequestPromise};
wN.prototype.postData=function(W,k){var C=dVi(this);C.postData(W,k);return C.pageRequestPromise};
wN.prototype.requestDataForServiceEndpoint=function(W,k){var C=dVi(this);C.requestDataForServiceEndpoint(W,k);return C.pageRequestPromise};
var dVi=function(W){var k=W.buildNetworkRequest_();W.pendingRequests_.add(k);var C=function(){W.pendingRequests_.delete(k)};
k.pageRequestPromise.then(C,C);return k},mVi=function(W){var k=new AH;
this.JSC$10788_networkService_=W;this.JSC$10788_taskManager_=k;this.JSC$10788_networkManager_=new wN(this.networkRequestFactory_.bind(this))};
_.Y=mVi.prototype;_.Y.networkRequestFactory_=function(){return new FB(this.JSC$10788_networkService_,new _.UV(this.JSC$10788_taskManager_))};
_.Y.reset=function(){this.JSC$10788_taskManager_.reset();this.JSC$10788_networkManager_.reset()};
_.Y.start=function(){this.JSC$10788_taskManager_.start()};
_.Y.pause=function(){this.JSC$10788_taskManager_.pause()};
_.Y.getTaskManager=function(){return this.JSC$10788_taskManager_};
_.Y.getNetworkManager=function(){return this.JSC$10788_networkManager_};
var F0$=null,lfB=[],KQ=0,WA=0,hi=null,zMB=function(){var W=(0,_.tQS)();W&&xRi(W,W.mechanism.__iterator__(!0))},Cf=function(W){this.token=W};
Cf.getInstance=function(){var W;return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.Z5(),2);W=k.yieldResult;if(!W)return k.return();Cf.instance||(Cf.instance=new Cf(W));return k.return(Cf.instance)})};
var dEB=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,af7(W.token),2);k=C.yieldResult;return C.return(k.clear("resource-manifest-assets"))})},kW=function(W){this.token=W};
kW.getInstance=function(){var W;return _.F(function(k){if(k.nextAddress==1)return _.l(k,_.Z5(),2);W=k.yieldResult;if(!W)return k.return();kW.instance||(kW.instance=new kW(W));return k.return(kW.instance)})};
var XJt=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,af7(W.token),2);k=C.yieldResult;return _.l(C,k.clear("auth"),0)})},DVu=!1,nf=null,exE=void 0,TEB=!1,Vzi=function(W){_.Ww.call(this,W)};
_.D(Vzi,_.OZY);var G_Z=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},J9C=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},c9$=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},oNu=function(W){W.length?I2Y(W.shift(),function(){oNu(W)}):$KB()},TkS=function(W){return"chrome-extension://"+W+"/cast_sender.js"},I2Y=function(W,
k,C){var n=document.createElement("script");
n.onerror=k;C&&(n.onload=C);_.LL(n,_.mJ(W));(document.head||document.documentElement).appendChild(n)},SnT=function(){var W=G_Z(),k=[];
if(W>1){var C=W-1;k.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");k.push("//www.gstatic.com/eureka/clank/"+C+"/cast_sender.js")}return k},$KB=function(){var W=c9$();
W&&W(!1,"No cast extension found")},Rnt=function(){if(Mzt){var W=2,k=c9$(),C=function(){W--;
W==0&&k&&k(!0)};
window.__onGCastApiAvailable=C;I2Y("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",$KB,C)}},y3Z=function(){Rnt();
var W=SnT();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");oNu(W)},ZsZ=function(){Rnt();
var W=SnT();W.push.apply(W,_.J8(isY.map(TkS)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");oNu(W)},Mzt=J9C("loadCastFramework")||J9C("loadCastApplicationFramework"),isY=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Qy7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Qy7,_.US);var pFt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(pFt,_.US);var vMi=function(){var W=new pFt;return _.Qo(W,1,3)};var xF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(xF,_.US);var QSE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(QSE,_.US);var eMZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(eMZ,_.US);eMZ.prototype.getToken=function(){return _.Vo(this,1)};
eMZ.prototype.setToken=function(W){return _.u2(this,1,W)};
var Sxu=function(W){return _.sS(W,3,_.lE,_.rP())},MHY=function(W){return _.sS(W,6,_.lE,_.rP())};var lh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(lh,_.US);lh.prototype.getToken=function(){return _.q7(this,eMZ,2)};
lh.prototype.setToken=function(W){return _.B6(this,2,W)};
lh.prototype.getName=function(){return _.Vo(this,6)};
var syZ=_.nL(lh);var G0T=function(W,k,C){this.requestMessage=W;this.methodDescriptor=k;this.metadata=C};
G0T.prototype.getMetadata=function(){return this.metadata};var y97=function(W,k){k=k===void 0?{}:k;this.responseMessage=W;this.metadata=k;this.status=null};
y97.prototype.getMetadata=function(){return this.metadata};
y97.prototype.getStatus=function(){return this.status};var tH=function(W,k,C,n,N){this.name=W;this.methodType="unary";this.requestType=k;this.responseType=C;this.requestSerializeFn=n;this.responseDeserializeFn=N},$V$=function(W,k,C){C=C===void 0?{}:C;
return new G0T(k,W,C)};
tH.prototype.getName=function(){return this.name};var Es=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Es,_.US);Es.prototype.setHeader=function(W){return _.B6(this,1,W)};
Es.prototype.hasHeader=function(){return _.x4(this,xF,1)};var Z3t=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Z3t,_.US);var RMC=new tH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Es,Z3t,function(W){return W.serialize()},_.nL(Z3t));var aj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(aj,_.US);aj.prototype.setHeader=function(W){return _.B6(this,1,W)};
aj.prototype.hasHeader=function(){return _.x4(this,xF,1)};var oM6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(oM6,_.US);var i3Y=new tH("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",aj,oM6,function(W){return W.serialize()},_.nL(oM6));var XB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(XB,_.US);XB.prototype.setHeader=function(W){return _.B6(this,1,W)};
XB.prototype.hasHeader=function(){return _.x4(this,xF,1)};var T4B=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(T4B,_.US);T4B.prototype.getLink=function(){return _.q7(this,lh,1)};var qnt=new tH("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",XB,T4B,function(W){return W.serialize()},_.nL(T4B));var fp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(fp,_.US);fp.prototype.setHeader=function(W){return _.B6(this,1,W)};
fp.prototype.hasHeader=function(){return _.x4(this,xF,1)};var uh6=new tH("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",fp,lh,function(W){return W.serialize()},syZ);var UV1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(UV1,_.US);var O3$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(O3$,_.US);O3$.prototype.getUrl=function(){return _.Vo(this,2)};
O3$.prototype.setUrl=function(W){return _.u2(this,2,W)};var LFu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(LFu,_.US);var jyC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(jyC,_.US);var H31=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(H31,_.US);var iXi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(iXi,_.US);var ojS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(ojS,_.US);var r9i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(r9i,_.US);var jSY=_.nL(r9i);var gME=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(gME,_.US);var dN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(dN,_.US);dN.prototype.setHeader=function(W){return _.B6(this,1,W)};
dN.prototype.hasHeader=function(){return _.x4(this,xF,1)};
dN.prototype.getCompletionUrl=function(){return _.Vo(this,6)};
dN.prototype.getDeviceId=function(){return _.Vo(this,11)};var PPA=new tH("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",dN,r9i,function(W){return W.serialize()},jSY);var KFZ=new Set(["SAPISIDHASH","APISIDHASH"]);var hMu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(hMu,_.US);hMu.prototype.getMessage=function(){return _.Vo(this,2)};
var WVZ=_.nL(hMu);var mo=function(W,k){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=k;this.JSC$16858_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16858_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&kuE(this)},bTS=function(W,k){var C=new CFY;
_.b6(W.JSC$16858_xhr_,"complete",function(){if(W.JSC$16858_xhr_.isSuccess()){var n=W.JSC$16858_xhr_.getResponseText();var N;if(N=k)N=W.JSC$16858_xhr_,N.JSC$7668_xhr_&&N.isComplete()?(N=N.JSC$7668_xhr_.getResponseHeader("Content-Type"),N=N===null?void 0:N):N=void 0,N=N==="text/plain";if(N){if(!atob)throw Error("Jj");n=atob(n)}try{var B=W.grpcResponseDeserializeFn_(n)}catch(w){zF(W,tH6(new _.fx(13,"Error when deserializing response data; error: "+w+(", response: "+n)),C));return}n=_.TAX(W.JSC$16858_xhr_.getStatus());
nq$(W,NS$(W));n==0?Y7u(W,B):zF(W,tH6(new _.fx(n,"Xhr succeeded but the status code is not 200"),C))}else{n=W.JSC$16858_xhr_.getResponseText();B=NS$(W);if(n){var A=BSA(W,n);n=A.code;N=A.details;A=A.metadata}else n=2,N="Rpc failed due to xhr error. uri: "+String(W.JSC$16858_xhr_.JSC$7668_lastUri_)+", error code: "+W.JSC$16858_xhr_.JSC$7668_lastErrorCode_+", error: "+W.JSC$16858_xhr_.getLastError(),A=B;nq$(W,B);zF(W,tH6(new _.fx(n,N,A),C))}})},kuE=function(W){W.xhrNodeReadableStream_.on("data",function(k){if("1"in
k){var C=k["1"];
try{var n=W.grpcResponseDeserializeFn_(C)}catch(N){zF(W,new _.fx(13,"Error when deserializing response data; error: "+N+(", response: "+C)))}n&&Y7u(W,n)}if("2"in k)for(k=BSA(W,k["2"]),C=0;C<W.onStatusCallbacks_.length;C++)W.onStatusCallbacks_[C](k)});
W.xhrNodeReadableStream_.on("end",function(){nq$(W,NS$(W));for(var k=0;k<W.onEndCallbacks_.length;k++)W.onEndCallbacks_[k]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$16858_onErrorCallbacks_.length!=0){var k=W.JSC$16858_xhr_.JSC$7668_lastErrorCode_;k!==0||W.JSC$16858_xhr_.isSuccess()||(k=6);var C=-1;switch(k){case 0:var n=2;break;case 7:n=10;break;case 8:n=4;break;case 6:C=W.JSC$16858_xhr_.getStatus();n=_.TAX(C);break;default:n=14}nq$(W,NS$(W));k=_.FJA(k)+", error: "+W.JSC$16858_xhr_.getLastError();C!=-1&&(k+=", http status code: "+C);zF(W,new _.fx(n,k))}})},NS$=function(W){var k={},C=bFT(W.JSC$16858_xhr_);
Object.keys(C).forEach(function(n){k[n]=C[n]});
return k},BSA=function(W,k){var C=2,n={};
try{var N=WVZ(k);C=_.gP(N,1);var B=N.getMessage();_.HD(N,rkT,3,_.rP()).length&&(n["grpc-web-status-details-bin"]=k)}catch(A){W.JSC$16858_xhr_&&W.JSC$16858_xhr_.getStatus()===404?(C=5,B="Not Found: "+String(W.JSC$16858_xhr_.JSC$7668_lastUri_)):(C=14,B="Unable to parse RpcStatus: "+A)}return{code:C,details:B,metadata:n}};
mo.prototype.on=function(W,k){W=="data"?this.onDataCallbacks_.push(k):W=="metadata"?this.onMetadataCallbacks_.push(k):W=="status"?this.onStatusCallbacks_.push(k):W=="end"?this.onEndCallbacks_.push(k):W=="error"&&this.JSC$16858_onErrorCallbacks_.push(k);return this};
var Ds=function(W,k){k=W.indexOf(k);k>-1&&W.splice(k,1)};
mo.prototype.removeListener=function(W,k){W=="data"?Ds(this.onDataCallbacks_,k):W=="metadata"?Ds(this.onMetadataCallbacks_,k):W=="status"?Ds(this.onStatusCallbacks_,k):W=="end"?Ds(this.onEndCallbacks_,k):W=="error"&&Ds(this.JSC$16858_onErrorCallbacks_,k);return this};
mo.prototype.cancel=function(){this.JSC$16858_xhr_.abort()};
var Y7u=function(W,k){for(var C=0;C<W.onDataCallbacks_.length;C++)W.onDataCallbacks_[C](k)},nq$=function(W,k){for(var C=0;C<W.onMetadataCallbacks_.length;C++)W.onMetadataCallbacks_[C](k)},zF=function(W,k){for(var C=0;C<W.JSC$16858_onErrorCallbacks_.length;C++)W.JSC$16858_onErrorCallbacks_[C](k)};
mo.prototype.cancel=mo.prototype.cancel;mo.prototype.removeListener=mo.prototype.removeListener;mo.prototype.on=mo.prototype.on;var CFY=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.D(CFY,Error);var Vy=function(W){this.JSC$16867_worker_=W.worker||null;this.JSC$16867_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$16867_credentialsMode_=void 0};
_.Pq(Vy,_.ucJ);Vy.prototype.createInstance=function(){var W=new JH(this.JSC$16867_worker_,this.JSC$16867_streamBinaryChunks_);this.JSC$16867_credentialsMode_&&W.setCredentialsMode(this.JSC$16867_credentialsMode_);return W};
Vy.prototype.setCredentialsMode=function(W){this.JSC$16867_credentialsMode_=W};
var JH=function(W,k){_.xT.call(this);this.JSC$16871_worker_=W;this.JSC$16871_streamBinaryChunks_=k;this.JSC$16871_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16871_responseHeaders_=null;this.JSC$16871_method_="GET";this.JSC$16871_url_="";this.inProgress_=!1;this.JSC$16871_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Pq(JH,_.xT);JH.prototype.open=function(W,k){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16871_method_=W;this.JSC$16871_url_=k;this.readyState=1;cC(this)};
JH.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var k={headers:this.requestHeaders_,method:this.JSC$16871_method_,credentials:this.JSC$16871_credentialsMode_,cache:void 0};W&&(k.body=W);(this.JSC$16871_worker_||_.NX).fetch(new Request(this.JSC$16871_url_,k)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
JH.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,Ij(this));this.readyState=0};
JH.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$16871_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16871_responseHeaders_=W.headers,this.readyState=2,cC(this)),this.inProgress_&&(this.readyState=3,cC(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.NX.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$16871_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16871_textDecoder_=new TextDecoder;AlY(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var AlY=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
JH.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$16871_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$16871_streamBinaryChunks_){var k=W.value?W.value:new Uint8Array(0);if(k=this.JSC$16871_textDecoder_.decode(k,{stream:!W.done}))this.response=this.responseText+=k}W.done?Ij(this):cC(this);this.readyState==3&&AlY(this)}};
JH.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,Ij(this))};
JH.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,Ij(this))};
JH.prototype.handleSendFailure_=function(){this.inProgress_&&Ij(this)};
var Ij=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$16871_textDecoder_=null;cC(W)};
JH.prototype.setRequestHeader=function(W,k){this.requestHeaders_.append(W,k)};
JH.prototype.getResponseHeader=function(W){return this.JSC$16871_responseHeaders_?this.JSC$16871_responseHeaders_.get(W.toLowerCase())||"":""};
JH.prototype.getAllResponseHeaders=function(){if(!this.JSC$16871_responseHeaders_)return"";for(var W=[],k=this.JSC$16871_responseHeaders_.entries(),C=k.next();!C.done;)C=C.value,W.push(C[0]+": "+C[1]),C=k.next();return W.join("\r\n")};
JH.prototype.setCredentialsMode=function(W){this.JSC$16871_credentialsMode_=W};
var cC=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(JH.prototype,"withCredentials",{get:function(){return this.JSC$16871_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var FV7=function(W){var k="";_.JU.forEach(W,function(C,n){k+=n;k+=":";k+=C;k+="\r\n"});
return k},wOY=function(W,k,C){if(_.JU.isEmpty(C))return W;
C=FV7(C);if(typeof W==="string")return _.xo(W,_.vv(k),C);_.$L(W,k,C);return W};var xnT=function(){this.isInputValid_=!0;this.JSC$16877_streamPos_=0;this.leftoverInput_=""};
xnT.prototype.isInputValid=function(){return this.isInputValid_};var BA=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16880_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
BA.prototype.isInputValid=function(){return this.state_!=3};
var S0=function(W,k,C,n){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$16880_streamPos_+"/"+C+". Error: "+n+". With input:\n"+k;throw Error(W.errorMessage_);};
BA.prototype.acceptsBinaryInput=function(){return!0};
BA.prototype.parse=function(W){function k(x){x&128&&S0(B,A,w,"invalid tag");(x&7)!=2&&S0(B,A,w,"invalid wire type");B.tag_=x>>>3;B.tag_!=1&&B.tag_!=2&&B.tag_!=15&&S0(B,A,w,"unexpected tag");B.state_=1;B.length_=0;B.countLengthBytes_=0}
function C(x){B.countLengthBytes_++;B.countLengthBytes_==5&&x&240&&S0(B,A,w,"message length too long");B.length_|=(x&127)<<(B.countLengthBytes_-1)*7;x&128||(B.state_=2,B.countMessageBytes_=0,typeof Uint8Array!=="undefined"?B.messageBuffer_=new Uint8Array(B.length_):B.messageBuffer_=Array(B.length_),B.length_==0&&N())}
function n(x){B.messageBuffer_[B.countMessageBytes_++]=x;B.countMessageBytes_==B.length_&&N()}
function N(){if(B.tag_<15){var x={};x[B.tag_]=B.messageBuffer_;B.result_.push(x)}B.state_=0}
for(var B=this,A=W instanceof Array?W:new Uint8Array(W),w=0;w<A.length;){switch(B.state_){case 3:S0(B,A,w,"stream already broken");break;case 0:k(A[w]);break;case 1:C(A[w]);break;case 2:n(A[w]);break;default:throw Error("Oj`"+B.state_);}B.JSC$16880_streamPos_++;w++}W=B.result_;B.result_=[];return W.length>0?W:null};var ai$=function(){this.errorMessage_=null;this.JSC$16883_streamPos_=0;this.base64Decoder_=new xnT;this.pbParser_=new BA};
ai$.prototype.isInputValid=function(){return this.errorMessage_===null};
var lIC=function(W,k,C){W.errorMessage_="The stream is broken @"+W.JSC$16883_streamPos_+". Error: "+C+". With input:\n"+k;throw Error(W.errorMessage_);};
ai$.prototype.acceptsBinaryInput=function(){return!1};
ai$.prototype.parse=function(W){this.errorMessage_!==null&&lIC(this,W,"stream already broken");var k=null;try{var C=this.base64Decoder_;if(!C.isInputValid_)throw C.isInputValid_=!1,Error("Nj`"+C.JSC$16877_streamPos_+"`stream already broken`"+W);C.leftoverInput_+=W;var n=Math.floor(C.leftoverInput_.length/4);if(n==0)var N=null;else{try{var B=_.SZ2(C.leftoverInput_.slice(0,n*4))}catch(x){var A=C.leftoverInput_,w=x.message;C.isInputValid_=!1;throw Error("Nj`"+C.JSC$16877_streamPos_+"`"+w+"`"+A);}C.JSC$16877_streamPos_+=
n*4;C.leftoverInput_=C.leftoverInput_.slice(n*4);N=B}k=N===null?null:this.pbParser_.parse(N)}catch(x){lIC(this,W,x.message)}this.JSC$16883_streamPos_+=W.length;return k};var EjY=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16886_streamPos_=0;this.result_=[];this.statusParsed_=!1};
EjY.prototype.isInputValid=function(){return this.errorMessage_===null};
EjY.prototype.acceptsBinaryInput=function(){return!1};
EjY.prototype.parse=function(W){function k(x){B.state_=6;B.errorMessage_="The stream is broken @"+B.JSC$16886_streamPos_+"/"+A+". Error: "+x+". With input:\n";throw Error(B.errorMessage_);}
function C(){B.jsonStreamParser_=new _.HF({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function n(x){if(x)for(var E=0;E<x.length;E++){var a={};a[1]=x[E];B.result_.push(a)}}
function N(x){if(x){(B.statusParsed_||x.length>1)&&k("extra status: "+x);B.statusParsed_=!0;var E={};E[2]=x[0];B.result_.push(E)}}
for(var B=this,A=0;A<W.length;){var w;if(w=B.state_!==2){a:{for(;A<W.length;){if(!_.jz(W[A])){w=!0;break a}A++;B.JSC$16886_streamPos_++}w=!1}w=!w}if(w)return null;switch(B.state_){case 6:k("stream already broken");break;case 0:W[A]==="["?(B.state_=1,A++,B.JSC$16886_streamPos_++):k("unexpected input token");break;case 1:W[A]==="["?(B.state_=2,C()):W[A]===","||W.slice(A,A+5)=="null,"?B.state_=3:W[A]==="]"?(B.state_=5,A++,B.JSC$16886_streamPos_++):k("unexpected input token");break;case 2:w=B.jsonStreamParser_.parse(W.substring(A));
n(w);B.jsonStreamParser_.done()?(B.state_=3,w=B.jsonStreamParser_.JSC$9248_buffer_,B.JSC$16886_streamPos_+=W.length-A-w.length,W=w,A=0):(B.JSC$16886_streamPos_+=W.length-A,A=W.length);break;case 3:W[A]===","||W.slice(A,A+5)=="null,"?(B.state_=4,C(),B.jsonStreamParser_.parse("["),A+=W[A]===","?1:5,B.JSC$16886_streamPos_++):W[A]==="]"&&(B.state_=5,A++,B.JSC$16886_streamPos_++);break;case 4:w=B.jsonStreamParser_.parse(W.substring(A));N(w);B.jsonStreamParser_.done()?(B.state_=5,w=B.jsonStreamParser_.JSC$9248_buffer_,
B.JSC$16886_streamPos_+=W.length-A-w.length,W=w,A=0):(B.JSC$16886_streamPos_+=W.length-A,A=W.length);break;case 5:k("extra input after stream end")}}return B.result_.length>0?(W=B.result_,B.result_=[],W):null};var tBZ=function(W){this.JSC$16889_xhr_=W;this.JSC$16889_parser_=null;this.status_=this.JSC$16889_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16889_textDecoder_=null;this.JSC$16889_eventHandler_=new _.j9(this);this.JSC$16889_eventHandler_.listen(this.JSC$16889_xhr_,"readystatechange",this.JSC$16891_readyStateChangeHandler_)},MT=function(W,k){W.status_!=k&&(W.status_=k,W.statusHandler_&&W.statusHandler_())},Qy=function(W){W.JSC$16889_eventHandler_.removeAll();
if(W.JSC$16889_xhr_){var k=W.JSC$16889_xhr_;W.JSC$16889_xhr_=null;k.abort();k.dispose()}};
tBZ.prototype.getStatus=function(){return this.status_};
tBZ.prototype.JSC$16891_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$16889_xhr_)a:{var k=_.zq(this.JSC$16889_xhr_),C=this.JSC$16889_xhr_.JSC$7668_lastErrorCode_,n=this.JSC$16889_xhr_.getStatus(),N=this.JSC$16889_xhr_.getResponseText();W=[];if(this.JSC$16889_xhr_.getResponse()instanceof Array){var B=this.JSC$16889_xhr_.getResponse();B.length>0&&B[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=B)}if(!(k<3||k==3&&!N&&W.length==0))if(n=n==200||n==206,k==4&&(C==8?MT(this,
7):C==7?MT(this,8):n||MT(this,3)),this.JSC$16889_parser_||(this.JSC$16889_parser_=XBS(this.JSC$16889_xhr_),this.JSC$16889_parser_==null&&MT(this,5)),this.status_>2)Qy(this);else{if(W.length>this.JSC$16889_pos_){var A=W.length;C=[];try{if(this.JSC$16889_parser_.acceptsBinaryInput())for(var w=0;w<A;w++){var x=this.JSC$16889_parser_.parse(Array.from(W[w]));x&&(C=C.concat(x))}else{x="";if(!this.JSC$16889_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16889_textDecoder_=new TextDecoder}for(w=
0;w<A;w++)x+=this.JSC$16889_textDecoder_.decode(W[w],{stream:k==4&&w==A-1});C=this.JSC$16889_parser_.parse(x)}W.splice(0,A);C&&this.dataHandler_(C)}catch(a){MT(this,5);Qy(this);break a}}else if(N.length>this.JSC$16889_pos_){w=N.slice(this.JSC$16889_pos_);this.JSC$16889_pos_=N.length;try{var E=this.JSC$16889_parser_.parse(w);E!=null&&this.dataHandler_&&this.dataHandler_(E)}catch(a){MT(this,5);Qy(this);break a}}k==4?(N.length!=0||this.hasStreamingResponseData_?MT(this,2):MT(this,4),Qy(this)):MT(this,
1)}}}catch(a){MT(this,6),Qy(this)}};var Eq6=function(W){W=this.xhrReader_=W;var k=(0,_.fN)(this.onData_,this);W.dataHandler_=k;W=this.xhrReader_;k=(0,_.fN)(this.onStatusChange_,this);W.statusHandler_=k;this.JSC$16893_callbackMap_={};this.callbackOnceMap_={}};
_.Y=Eq6.prototype;_.Y.on=function(W,k){var C=this.JSC$16893_callbackMap_[W];C||(C=[],this.JSC$16893_callbackMap_[W]=C);C.push(k);return this};
_.Y.addListener=function(W,k){this.on(W,k);return this};
_.Y.removeListener=function(W,k){var C=this.JSC$16893_callbackMap_[W];C&&_.iw(C,k);(W=this.callbackOnceMap_[W])&&_.iw(W,k);return this};
_.Y.once=function(W,k){var C=this.callbackOnceMap_[W];C||(C=[],this.callbackOnceMap_[W]=C);C.push(k);return this};
_.Y.onData_=function(W){var k=this.JSC$16893_callbackMap_.data;k&&aIY(W,k);(k=this.callbackOnceMap_.data)&&aIY(W,k);this.callbackOnceMap_.data=[]};
var aIY=function(W,k){for(var C={},n=0;n<W.length;C={message$jscomp$966:void 0},n++)C.message$jscomp$966=W[n],k.forEach(function(N){return function(B){try{B(N.message$jscomp$966)}catch(A){}}}(C))};
Eq6.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:XOC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:XOC(this,"error");break;case 8:XOC(this,"close");break;case 2:XOC(this,"end")}};
var XOC=function(W,k){var C=W.JSC$16893_callbackMap_[k];C&&C.forEach(function(n){try{n()}catch(N){}});
(C=W.callbackOnceMap_[k])&&C.forEach(function(n){n()});
W.callbackOnceMap_[k]=[]};var fI7=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight_=W.suppressCorsPreflight||_.QK("suppressCorsPreflight",W)||!1;this.JSC$16896_withCredentials_=W.withCredentials||_.QK("withCredentials",W)||!1;this.streamInterceptors_=W.streamInterceptors||[];this.unaryInterceptors_=W.unaryInterceptors||[];this.workerScope_=W.workerScope;this.chunkedServerStreaming_=W.useFetchDownloadStreams||!1},zWA=function(W,k,C,n,N,B){B=B===void 0?{}:B;
var A=k.substring(0,k.length-N.name.length),w,x=(w=B)==null?void 0:w.signal;return dni(function(E){return new Promise(function(a,X){if(x==null?0:x.aborted){var d=new _.fx(1,"Aborted");d.cause=x.reason;X(d)}else{var V={},c=mn6(W,E,A);c.on("error",function(M){return X(M)});
c.on("metadata",function(M){V=M});
c.on("data",function(M){var p=V;p=p===void 0?{}:p;a(new y97(M,p))});
x&&x.addEventListener("abort",function(){c.cancel();var M=new _.fx(1,"Aborted");M.cause=x.reason;X(M)})}})},W.unaryInterceptors_).call(W,$V$(N,C,n)).then(function(E){return E.responseMessage})},pp=function(W,k,C,n,N){var B=B===void 0?{}:B;
return zWA(W,k,C,n,N,B)};
fI7.prototype.serverStreaming=function(W,k,C,n){var N=this,B=W.substring(0,W.length-n.name.length);return dni(function(A){var w=A.methodDescriptor,x=A.getMetadata(),E=Dn$(N,!1);x=VBT(N,x,E,B+w.getName());var a=Jl1(E,w.responseDeserializeFn,!0);A=w.requestSerializeFn(A.requestMessage);E.send(x,"POST",A);return a},this.streamInterceptors_).call(this,$V$(n,k,C))};
var mn6=function(W,k,C){var n=k.methodDescriptor,N=k.getMetadata(),B=Dn$(W,!0);W=VBT(W,N,B,C+n.getName());C=Jl1(B,n.responseDeserializeFn,!1);bTS(C,N["X-Goog-Encode-Response-If-Executable"]=="base64");k=n.requestSerializeFn(k.requestMessage);B.send(W,"POST",k);return C},Dn$=function(W,k){k=W.chunkedServerStreaming_&&!k;
return W.workerScope_||k?new _.mP(new Vy({worker:W.workerScope_,streamBinaryChunks:k})):new _.mP},VBT=function(W,k,C,n){k["Content-Type"]="application/json+protobuf";
k["X-User-Agent"]="grpc-web-javascript/0.1";var N=k.Authorization;if(N&&KFZ.has(N.split(" ")[0])||W.JSC$16896_withCredentials_)C.JSC$7668_withCredentials_=!0;if(W.suppressCorsPreflight_)n=wOY(n,"$httpHeaders",k);else for(var B in k)C.headers.set(B,k[B]);return n},Jl1=function(W,k,C){if(C){C=new tBZ(W);
var n=new Eq6(C)}return new mo({xhr:W,nodeReadableStream:n},k)},dni=function(W,k){return k.reduce(function(C,n){return function(N){return n.intercept(N,C)}},W)};var clT=function(W){this.client_=new fI7;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.Y=clT.prototype;_.Y.JSC$16910_depositGoogleCredential=function(W,k){return pp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,k||{},i3Y)};
_.Y.deleteLink=function(W,k){return pp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,k||{},RMC)};
_.Y.JSC$16910_finishOAuth=function(W,k){return pp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,k||{},qnt)};
_.Y.getLink=function(W,k){return pp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,k||{},uh6)};
_.Y.startLinkingSession=function(W,k){return pp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,k||{},PPA)};var IIC=[0,ov7,1,qOu,[0,_.oU,[0,i_C,-1]],[0,TDA],[0,uzE,-1]];var S7T=function(){this.storage=new Map},Qvt=function(W,k,C,n,N){if(!W.storage.has(k))return null;
W=_.b(W.storage.get(k));for(k=W.next();!k.done;k=W.next())if(k=k.value,!N||k.linkName===N)if(C&&k.scopes&&MBS(k.scopes,C)||n&&k.capabilities&&MBS(k.capabilities,n))return k;return null},pOu=function(W,k,C){if(!C)W.storage.delete(k);
else if(W.storage.has(k)){var n=W.storage.get(k).filter(function(N){return N.linkName!==C});
n.length>0?W.storage.set(k,n):W.storage.delete(k)}},MBS=function(W,k){k=_.b(k);
for(var C=k.next();!C.done;C=k.next())if(!W.has(C.value))return!1;return!0};var vq7=function(){var W=_.DE("LINK_GAL_DOMAIN");this.alsDomain1p=_.DE("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},eWS=function(W,k){W.apiKey=k;
return W};
vq7.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var b9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(b9,_.US);var svB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(svB,_.US);var GuY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(GuY,_.US);var Fj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Fj,_.US);var ylt=function(W){return _.Jp(W,1)};var $nC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D($nC,_.US);var Jyu=_.nL($nC),AJ=[1,2,3,4,5];var mj7=function(W){try{return Jyu(W)}catch(k){return null}},ZT7=function(){},zbZ=function(W,k){switch(_.aU(k,AJ)){case 4:return(k=_.St(k,GuY,4,AJ))&&W.logStateTransition(_.Jp(k,1)),!0;
case 5:return(k=_.St(k,svB,5,AJ))&&W.logInternalEvent(_.Jp(k,1)),!0}return!1},cyY=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.oI(W)}};var fiE=function(W,k){var C=this;this.validator=W;this.messageListener=k;this.dismissCallback=function(){RWZ(C,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16939_receiveMessage=function(n){n.type==="message"&&(n=n.event_,n!==null&&(new URL(C.iframe.src)).origin===n.origin&&C.validator(n.data,n.origin)&&!C.messageListener(n.data)&&(C.JSC$16939_resolveCb!==void 0&&C.JSC$16939_resolveCb(n.data),oqA(C)))}},VHE=function(W,k,C){W.uiHandler!==void 0&&RWZ(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(n,N){W.JSC$16939_resolveCb=n;W.JSC$16939_rejectCb=N;W.iframe=document.createElement("iframe");_.i5(W.iframe,k);W.uiHandler=C.displayContent(W.iframe,W.dismissCallback);_.b6(window,"message",W.JSC$16939_receiveMessage,!1,W)})},RWZ=function(W,k){W.JSC$16939_rejectCb!==void 0&&W.JSC$16939_rejectCb(k);
oqA(W)},oqA=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.wm(window,"message",W.JSC$16939_receiveMessage,!1,W);W.JSC$16939_resolveCb=void 0;W.JSC$16939_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var iTE=function(W){if(W===2){var k;W=((k=window)==null?0:k.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},DjB=function(W){W=iTE(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.oI(W)}};var djZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),TSS=function(W,k){this.JSC$16951_linkingSession=W;this.noticeConfig=k;this.displayInfoMap=new Map;var C=new Map;if(_.x4(this.JSC$16951_linkingSession,LFu,7))for(W=_.q7(this.JSC$16951_linkingSession,LFu,7),W=_.HD(W,O3$,1,_.rP()),W=_.b(W),k=W.next();!k.done;k=W.next())k=k.value,C.set(_.Jp(k,1),_.x7I(_.q7(k,_.eLm,3)));if(C.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){k=this.noticeConfig.enabledDataUsageNoticeUis;W=k.has(0)?C.get(1):void 0;k=k.has(1)?C.get(2):void 0;C=W!==void 0&&k!==void 0?C.get(3):void 0;var n=this.noticeConfig.nestedOrigins;var N=new $nC;var B=new b9;N=_.b5(N,2,AJ,B);B=new $nC;var A=new b9;B=_.b5(B,3,AJ,A);A=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:N,nestedOrigins:n}]),A.push({trustedUrl:W,lastEvent:N,nestedOrigins:n}));k!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:k,lastEvent:B,nestedOrigins:n}]),A.push({trustedUrl:k,lastEvent:B,nestedOrigins:n}));C!==void 0?this.displayInfoMap.set(3,[{trustedUrl:C,lastEvent:B,nestedOrigins:n}]):this.displayInfoMap.set(3,A)}};var q7C=function(W){var k=new S7T;this.galService=W;this.galCache=k};
q7C.prototype.getLink=function(W){var k=W.serviceId;var C=W.scopes;var n=W.capabilities;var N=W.linkName;var B=this,A;return _.F(function(w){if(n!==void 0&&C!==void 0)throw Error("Uj");A=Qvt(B.galCache,k,C,n,N);return A!==null?w.return(A):w.return(B.galService.getLink({serviceId:k,sessionId:Math.floor(Math.random()*2147483648),scopes:C,capabilities:n,linkName:N}).then(function(x){x=pBE(x);var E=B.galCache;E.storage.has(k)?E.storage.get(k).push(x):E.storage.set(k,[x]);return x}))})};
q7C.prototype.deleteLink=function(W,k,C){var n=this;return _.F(function(N){pOu(n.galCache,W,C);return N.return(n.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:k,linkName:C}).then(function(){return!0}))})};var Un6=function(W,k){var C=this;this.validator=W;this.msgHandler=k;this.closedPopupTimeout=this.JSC$16973_rejectCb=this.JSC$16973_resolveCb=this.popup=null;this.JSC$16973_receiveMessage=function(n){if(n!==null&&(n=n.event_,n.source===C.popup)){var N=n.data;if(C.validator(N,n.origin)){var B;(B=C.msgHandler)!=null&&B.call(C,N)||(C.JSC$16973_resolveCb!==null&&C.JSC$16973_resolveCb(N),uFB(C))}}}};
Un6.prototype.open=function(W,k){var C=this;this.popup!==null&&OTC(this);return new Promise(function(n,N){C.JSC$16973_resolveCb=n;C.JSC$16973_rejectCb=N;C.popup=_.Ti(window,W,"",k);_.b6(window,"message",C.JSC$16973_receiveMessage,!1,C);LV6(C)})};
var OTC=function(W,k){W.JSC$16973_rejectCb!==null&&W.JSC$16973_rejectCb(k);uFB(W)},uFB=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.wm(window,"message",W.JSC$16973_receiveMessage,!1,W);W.popup=null;W.JSC$16973_resolveCb=null;W.JSC$16973_rejectCb=null},LV6=function(W){W.closedPopupTimeout=_.NuI(100).then(function(){W.popup?W.popup.closed?jv$(W):LV6(W):OTC(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},jv$=function(W){W.closedPopupTimeout=_.NuI(100).then(function(){OTC(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var HTY=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),rlB=function(W,k,C,n,N,B,A,w,x,E){var a=this;this.serviceId=W;this.sessionId=k;this.galService=C;this.oauthDetails=n;this.galLogger=N;this.interactionMode=B;this.redirectServiceUrl=A;this.consentLanguageKeys=w;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=E;this.started=!1;this.JSC$16979_dataValidator=function(X,
d){var V=HTY.has(d);V||a.redirectServiceUrl===void 0||(V=a.redirectServiceUrl===d);return V?X.sentinel==="gdi":!1}};
rlB.prototype.complete=function(){var W=this,k;return _.F(function(C){if(W.interactionMode!==1)return C.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));k=xW.getRedirectStateFromUri();return k===null?C.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):C.return(gqY(W,k))})};
rlB.prototype.start=function(){var W=this,k;return _.F(function(C){if(W.started)return C.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Vo(W.oauthDetails,1))return C.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return xW.setLocation(_.Vo(W.oauthDetails,1)),C.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
k=xW.getPostMessagePopup(W.JSC$16979_dataValidator);return C.return(k.open(_.Vo(W.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(n){W.started=!1;var N=W.galLogger;if((n==null?void 0:n.error)!==void 0)throw N.logInternalEvent(59),Error("Vj");if((n==null?void 0:n.redirect_state)===void 0)throw N.logInternalEvent(131),Error("Wj");return gqY(W,n.redirect_state)}).catch(function(n){W.started=
!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var gqY=function(W,k){return _.F(function(C){return C.return(PF6(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:k,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(n){var N=n.getLink();N={statusCode:1,link:pBE(N)};c7Z(_.tp(n,3))!==void 0&&(N.callerState=c7Z(_.tp(n,3)));W.galLogger.logInternalEvent(134);return N}))})},xW={getPostMessagePopup:function(W){return new Un6(W)},
getRedirectStateFromUri:function(){var W=_.Gb(xW.getLocation()).fragment_;return(new _.rm(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.WRw(window.location,_.QG(W))},
createOAuthFlow:function(W,k){return new rlB(W.serviceId,W.sessionId,W.galService,k,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var KVT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(KVT,_.US);var hWC=_.nL(KVT);var WBT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kQS=function(W,k,C,n,N,B,A,w,x){var E=this;this.serviceId=W;this.sessionId=k;this.galService=C;this.gsiWebFlowDetails=n;this.colorScheme=N;this.showCloseOption=B;this.galLogger=A;this.interactionMode=w;this.redirectServiceUrl=x;this.started=!1;this.JSC$16991_dataValidator=function(a,X){var d=WBT.has(X);d||E.redirectServiceUrl===
void 0||(d=E.redirectServiceUrl===X);return d?a.sentinel==="gal":!1};
this.logEventProcessor=function(a){return a.result?(a=mj7(a.result))?zbZ(E.galLogger,a):!1:!1}};
kQS.prototype.complete=function(){var W=this,k,C;return _.F(function(n){if(W.interactionMode!==1)return n.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));k=l9.getRedirectStateFromUri();if(k===void 0)return W.galLogger.JSC$16931_logErrorEvent(131),n.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return C=CuS(W,k),n.return(nkZ(W,C))}catch(N){return n.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
kQS.prototype.start=function(){var W=this,k;return _.F(function(C){if(W.started)return C.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Vo(W.gsiWebFlowDetails,1))return C.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return l9.setLocation(Nc$(W,_.Vo(W.gsiWebFlowDetails,1))),C.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;k=l9.getPostMessagePopup(W.JSC$16991_dataValidator,W.logEventProcessor);return C.return(k.open(Nc$(W,_.Vo(W.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(n){W.started=!1;if((n==null?void 0:n.result)===void 0)throw W.galLogger.JSC$16931_logErrorEvent(131),Error("Wj");n=CuS(W,n.result);return nkZ(W,n)}).catch(function(n){W.started=!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Nc$=function(W,k){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",DjB(W.colorScheme),"show_close_option",W.showCloseOption];return LfE(k,W)},nkZ=function(W,k){if(k!==null&&_.x4(k,Fj,2)){var C,n=k==null?void 0:(C=_.q7(k,Fj,2))==null?void 0:_.Jp(C,2);
n&&W.galLogger.JSC$16931_logErrorEvent(cyY(n));return ylt(_.q7(k,Fj,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.Vo(k,1)}).then(function(N){N=pBE(N);W.galLogger.logInternalEvent(134);return{statusCode:1,link:N}})},CuS=function(W,k){k=hWC(k);
if(!_.x4(k,Fj,2)&&_.Vo(k,1)==="")throw W.galLogger.JSC$16931_logErrorEvent(5),Error("Xj");return k},l9={getPostMessagePopup:function(W,k){return new Un6(W,k)},
getRedirectStateFromUri:function(){return _.yQ(_.Gb(l9.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.WRw(window.location,_.QG(W))},
createStreamlinedFlow:function(W,k){return new kQS(W.serviceId,W.sessionId,W.galService,k,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var OXB=function(){var W=_.xyJ("GAL");this.storage=W?new _.FV(W):null};var vC=function(){};
_.D(vC,ZT7);vC.prototype.logStateTransition=function(){};
vC.prototype.logInternalEvent=function(){};
vC.prototype.JSC$16931_logErrorEvent=function(){};var YqT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(YqT,_.US);YqT.prototype.getCompletionUrl=function(){return _.Vo(this,15)};var e0=function(W,k,C,n,N,B){this.serviceId=W;this.environment=k;this.sessionId=C;this.colorSchemeSelected=n;this.colorThemeDisplayed=N;this.JSC$17004_transport=B;this.currentState=1};
_.D(e0,ZT7);e0.prototype.logStateTransition=function(W){var k=BcA(this);k=_.up(k,3,this.currentState);k=_.up(k,1,W);this.currentState=W;W=B1B(1);this.dispatch(k,W)};
e0.prototype.logInternalEvent=function(W){W=B1B(W);this.dispatch(BcA(this),W)};
e0.prototype.JSC$16931_logErrorEvent=function(W){var k=BcA(this);k=_.up(k,1,10);W=B1B(W);this.dispatch(k,W)};
var BcA=function(W){var k=new YqT;k=_.up(k,1,W.currentState);k=_.fU(k,7,W.serviceId);var C,n,N;((C=window)==null?0:(n=C.location)==null?0:n.href)?N=_.Gb(window.location.href).JSC$7905_domain_:N="NO_PACKAGE_NAME";C=_.fU(k,8,N);C=_.up(C,6,W.environment);C=_.fU(C,5,"100");C=_.up(C,11,W.colorSchemeSelected);return _.up(C,12,W.colorThemeDisplayed)};
e0.prototype.dispatch=function(W,k){k===void 0&&(k=new _.K0);var C=k;W=W.serialize();C=_.fU(C,8,W);_.AB(C,12,this.sessionId);this.JSC$17004_transport.dispatch(k)};var b8C=function(W,k){this.loggerType=W;this.sessionIndex=k!=null?k:0},ATY;
b8C.prototype.create=function(W,k,C,n,N){switch(this.loggerType){case 0:return new vC;case 1:return ATY||(ATY=(new _.YL(555,this.sessionIndex.toString())).build()),new e0(W,k,C,n,N,ATY);default:_.oI(this.loggerType,"unknown logger type")}};var tJ=[6,2,3,1],gjA=new Map([[4,1],[1,6],[2,2],[3,3]]),GnS={statusCode:7,statusMessage:"Failed to create flow object"},uoY=function(W,k,C,n,N,B,A,w,x,E){this.serviceId=W;this.sessionId=k;this.config=C;this.galService=n;this.JSC$17011_linkingSession=N;this.googleScopes=B;this.callerState=A;this.consentLanguageKeys=w;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=E;this.currentFlow=0;n=this.JSC$17011_linkingSession;N=new Set;_.x4(n,ojS,1)&&N.add(1);_.x4(n,H31,2)&&_.x4(n,iXi,6)&&N.add(2);
_.x4(n,jyC,3)&&_.x4(n,iXi,6)&&N.add(3);_.x4(n,UV1,4)&&N.add(6);this.supportedFlows=N;n=C.loggerType;N=C.clientEnvironment;a:{B=C.colorScheme;switch(B){case 0:B=1;break a;case 1:B=2;break a;case 2:B=3;break a;default:_.oI(B)}B=void 0}a:{A=C.colorScheme;A=iTE(A);switch(A){case 0:A=1;break a;case 1:A=2;break a;default:_.oI(A)}A=void 0}this.galLogger=(new b8C(n,C.authUser)).create(W,N,k,B,A)},wnB=function(W){return new Promise(function(k){var C,n,N,B,A,w,x,E,a,X;
return _.F(function(d){switch(d.nextAddress){case 1:C=T7C(W.currentFlow,W.supportedFlows),n=!1,N=new TSS(W.JSC$17011_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(C===void 0){d.jumpTo(4);break}_.F0(d,5);var V=N,c=C,M=void 0;n?c===1&&(M=V.displayInfoMap.get(2)):c===2||c===3?M=V.displayInfoMap.get(1):c===1&&(M=V.displayInfoMap.get(3));B=M?M:[];A=W.consentLanguageKeys;w=_.b(B);x=w.next();case 7:if(x.done)return W.currentFlow=C,_.l(d,$jY(FB7(W,A)),11);E=x.value;return _.l(d,IiC(E,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:a=d.yieldResult;if(a.statusCode!==1)return Lk1(W.serviceId),W.currentFlow=0,k(wY({statusCode:a.statusCode,statusMessage:a.statusMessage},W.callerState)),d.return();a.consentLanguageKeys!==void 0&&(A=a.consentLanguageKeys);x=w.next();d.jumpTo(7);break;case 11:X=d.yieldResult;if(X.statusCode!==10)return X.statusCode!==6&&(Lk1(W.serviceId),W.currentFlow=0),X.statusCode!==1&&W.callerState!==void 0&&(X.callerState=W.callerState),k(X),d.return();_.M7(d,6);break;
case 5:_.EF(d);case 6:C=T7C(W.currentFlow,W.supportedFlows);n=!0;d.jumpTo(2);break;case 4:Lk1(W.serviceId),W.currentFlow=0,k(wY({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.ab(d)}})})},HXB=function(W,k,C){W.currentFlow=k;
return ZX6(FB7(W,C)).then(function(n){return n.statusCode===10&&W.config.interactionMode===1&&T7C(W.currentFlow,W.supportedFlows)!==void 0?wnB(W):n})},FB7=function(W,k){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:k,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$17011_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var BqZ=function(W,k){this.config=W;this.galService=k.getService();this.JSC$17024_galRepository=k.JSC$17061_galRepository};
BqZ.prototype.getLink=function(W,k){return xt$(this,W,k)};
var xt$=function(W,k,C){return W.JSC$17024_galRepository.getLink({serviceId:k,scopes:void 0,capabilities:void 0,linkName:C}).then(function(n){return{statusCode:1,link:n}}).catch(function(n){return{statusCode:PXS(n.code),
statusMessage:n.message}})};
BqZ.prototype.deleteLink=function(W,k){return this.JSC$17024_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,k).then(function(){return{statusCode:1}}).catch(function(C){return{statusCode:PXS(C.code),
statusMessage:C.message}})};
BqZ.prototype.startLinkingSession=function(W){var k=W.serviceId;var C=W.sessionId;return UjS({serviceId:k,sessionId:C!==void 0?C:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var Kkt=null,C2A=new WeakMap;var ln7=function(){};
ln7.prototype.send=function(W,k){YRS(W);return this.makeRequest(W).then(function(C){if(k){var n=new k;if(C!=null){if(k==null)throw Error("Zj");new k;throw Error("ak");}C=n}return C})};var tC6=function(W,k,C,n,N){this.gapiUrl=W;this.gapiKey=k;this.gapiConfigUpdates=C||{};this.gapiAuthParams=n||{};this.defaultApiId=N};
_.D(tC6,ln7);var anu=function(W){return W47().then(function(k){k=k||window.gapi;Ek7(W,k);return Nq1(k,{apiKey:W.gapiKey,clientId:W.gapiAuthParams.clientId,scope:W.gapiAuthParams.scope,hostedDomain:W.gapiAuthParams.hostedDomain,fetchBasicProfile:W.gapiAuthParams.fetchBasicProfile}).then(function(){return k})})};
tC6.prototype.makeRequest=function(W){var k=this;return anu(this).then(function(C){return _.F(function(n){if(n.nextAddress==1)return k.gapiAuthParams.minAuthTokenTimeRemaining===void 0?n.jumpTo(2):_.l(n,nxu(C,k.gapiAuthParams.minAuthTokenTimeRemaining),2);Ek7(k,C);return n.return(Xn1(C.client.request({root:k.gapiUrl,path:W.path,method:W.httpMethod,body:W.body,params:W.queryParams,headers:W.headers,authType:W.authType,apiId:W.apiId||k.defaultApiId})))})})};
var Xn1=function(W){return new Promise(function(k,C){W.then(function(n){k(n.result===!1&&n.body!=null?{data:n.body}:n.result)},function(n){C(n.result===!1&&n.body!=null?{data:n.body}:n.result)})})},Ek7=function(W,k){for(var C in W.gapiConfigUpdates)if(W.gapiConfigUpdates.hasOwnProperty(C)){var n=k,N=C,B=W.gapiConfigUpdates[C],A=n.config.get(N);
B!==A&&n.config.update(N,B)}};
tC6.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var ss=function(W,k,C,n,N,B,A,w){this.apiKey=k;this.authUser=C;this.oauthToken=n;this.bucket=N;this.locale=A;this.galSdkEventHandler=w;if(n===void 0){if(k===void 0)throw Error("bk");this.requestService=new tC6(W,k,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":B===void 0||B===!1,"client/xd3":B===!0})}this.galServiceClient=new clT(W)};
ss.prototype.deleteLink=function(W){var k=W.serviceId;var C=W.sessionId;var n=W.accountLinkingEntryPoint;var N=W.linkName;var B=this,A;return _.F(function(w){var x=(new Es).setHeader(GF(B,C));var E=fnT({serviceId:k,linkName:N});x=_.B6(x,2,E);A=_.Qo(x,3,n);return w.return(B.makeRequest(B.galServiceClient.deleteLink,A,[1,3],[2,4]))})};
var PF6=function(W,k){var C=k.serviceId;var n=k.sessionId;var N=k.dynamicUrlParameters;var B=k.redirectState;var A=k.consentLanguageKeys;var w=k.partnerConfigMinReadTimestamp;var x;return _.F(function(E){var a=(new XB).setHeader(GF(W,n,N));a=_.u2(a,2,C);x=_.u2(a,4,B);A!==void 0&&_.u2(x,5,A);w!==void 0&&_.B6(x,6,w);return E.return(W.makeRequest(W.galServiceClient.JSC$16910_finishOAuth,x,[1,3],[2,4]))})};
ss.prototype.getLink=function(W){var k=W.serviceId;var C=W.sessionId;var n=W.scopes;var N=W.capabilities;var B=W.consistencyKey;var A=W.linkName;var w=this,x;return _.F(function(E){var a=(new fp).setHeader(GF(w,C)),X=fnT({serviceId:k,scopes:n,capabilities:N,linkName:A});x=_.B6(a,2,X);B!==void 0&&(a=vMi(),a=_.u2(a,2,B),_.B6(x,3,a));return E.return(w.makeRequest(w.galServiceClient.getLink,x,[1,3],[2,4]))})};
var RbE=function(W,k){var C=k.serviceId;var n=k.sessionId;var N=k.googleScopes;var B=k.consistencyKey;var A;return _.F(function(w){var x=(new aj).setHeader(GF(W,n));x=_.u2(x,2,C);var E=Array.from(N.values());x=_.$B(x,3,E,_.F6);E=vMi();E=_.u2(E,2,B);A=_.B6(x,4,E);return w.return(W.makeRequest(W.galServiceClient.JSC$16910_depositGoogleCredential,A,[1,3],[2,4]))})};
ss.prototype.startLinkingSession=function(W){var k=W.serviceId;var C=W.sessionId;var n=W.scopes;var N=W.capabilities;var B=W.loginHint;var A=W.supportedFlows;var w=W.completionUrl;var x=W.usePingPong;var E=W.twoWayLinking;var a=W.accountLinkingEntryPoint;var X=W.callerState;var d=W.consentLanguageKeys;var V=W.googleScopes;var c=W.dataUsageNoticeConfig;var M=W.linkName;var p=W.dynamicUrlParameters;var e=W.partnerConfigMinReadTimestamp;var u=this,h,L;return _.F(function(Bw){if(N!==void 0&&n!==void 0)throw Error("Uj");
var P=(new dN).setHeader(GF(u,C,p));h=_.u2(P,2,k);M!==void 0&&_.u2(h,14,M);if(N!==void 0){P=h;var xz=Array.from(N.values());_.$B(P,5,xz,_.F6)}else n!==void 0&&(P=h,xz=Array.from(n.values()),_.$B(P,3,xz,_.F6));w!==void 0&&_.u2(h,6,w);x!==void 0&&_.da(h,15,x);A!==void 0&&(P=h,xz=Array.from(A.values()),_.$B(P,4,xz,_.OA));if(E!==void 0){if(E&&(!V||V.size===0))throw Error("ck");_.da(h,8,E)}a!==void 0&&_.Qo(h,9,a);B!==void 0&&_.u2(h,13,B);X!==void 0&&(P=h,xz=(new TextEncoder).encode(X),_.ZA(P,12,_.JS(xz,
!1),_.zz()));d!==void 0&&_.u2(h,16,d);e!==void 0&&_.B6(h,18,e);if(c!==void 0&&c.size>0||V!==void 0&&V.size>0)L=new gME,V!==void 0&&V.size>0&&(P=L,xz=Array.from(V.values()),_.$B(P,1,xz,_.F6)),c!==void 0&&(c.has(0)&&_.SSm(L,2,_.OA,1,_.rx),c.has(1)&&_.SSm(L,2,_.OA,2,_.rx)),_.B6(h,17,L);return Bw.return(u.makeRequest(u.galServiceClient.startLinkingSession,h,[1],[2]))})};
ss.prototype.getMetadata=function(){var W=this,k,C,n;return _.F(function(N){if(N.nextAddress==1)return k={},W.requestService?_.l(N,anu(W.requestService),3):(k.Authorization="Bearer "+W.oauthToken,N.jumpTo(2));N.nextAddress!=2&&(C=N.yieldResult,k["X-Goog-Api-Key"]=W.apiKey,k["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(n=C.auth.getAuthHeaderValueForFirstParty([]))&&(k.Authorization=n));W.locale&&(k["accept-language"]=W.locale);return N.return(k)})};
ss.prototype.makeRequest=function(W,k,C,n){var N=this,B;return _.F(function(A){if(A.nextAddress==1)return _.l(A,N.getMetadata(),2);B=A.yieldResult;dtA(N,C);return A.return(W.bind(N.galServiceClient)(k,B).finally(function(){dtA(N,n)}))})};
var dtA=function(W,k){W.galSdkEventHandler!==void 0&&k.forEach(function(C){W.galSdkEventHandler.onEvent(C)})},GF=function(W,k,C){var n=new xF;
k=_.ZA(n,2,_.gx(k),0);k=_.Qo(k,5,3);C=_.$B(k,8,C,_.F6);W.bucket!==void 0&&_.u2(C,1,W.bucket);return C},fnT=function(W){var k=W.serviceId;
var C=W.scopes;var n=W.capabilities;W=W.linkName;if(n!==void 0&&C!==void 0)throw Error("Uj");var N=new Qy7;k=_.u2(N,1,k);n!==void 0?(C=Array.from(n.values()),_.$B(k,5,C,_.F6)):C!==void 0&&(C=Array.from(C.values()),_.$B(k,3,C,_.F6));W!==void 0&&_.u2(k,6,W);return k};var b6Y=function(W){this.galService=new ss(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.clientXd3,W.locale,W.galSdkEventHandler);this.JSC$17061_galRepository=new q7C(this.galService)};
b6Y.prototype.getService=function(){return this.galService};var mtE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(mtE,_.US);var zyA=function(W){var k=new mtE;return _.up(k,1,W)};
mtE.prototype.setErrorMessage=function(W){return _.fU(this,2,W)};var Dt1=[0,_.Tv,_.RU,_.Tv];var yy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(yy,_.US);var VCB=[0,[1,2,3],_.iA,[0,ykZ,RXZ,-1],_.iA,[0,Z_1,-1],_.Cw8];var JTE=[0,_.$4,1,_.Tv,_.RU,-1,1,_.Y2s,_.yo,_.Tv,-1,VCB];var cTB=[0,_.Tv,[0,_.Y2s,_.yo,[0,_.RU]],_.ZB,[0,_.Tv,-1]];var gY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(gY,_.US);var In1=[0,_.RU,_.Tv,-2,_.$4,_.Tv,_.$4,_.Tv,-2,1,_.ZB];var Sq$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Sq$,_.US);var MCC=[0,_.$4];var QuT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(QuT,_.US);var pnE=[0,_.Tv,cTB,MCC,In1,JTE];var oTT=_.ht(QuT,pnE);var vkS=[0,IIC];var OxC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(OxC,_.US);var eyT=[0,[1,3],UF6,_.Tv,UF6];var HA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(HA,_.US);var su1=[0,_.Tv];var GQC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(GQC,_.US);var rY=function(W){return _.St(W,mtE,2,jx)},yTB=function(W){var k=new GQC;
return _.b5(k,2,jx,W)},jx=[1,
2];var $t$=[0,jx,_.iA,su1,_.iA,Dt1,_.oU,eyT,1,_.Tv,vkS];var Z8A=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(Z8A,_.US);var okB=function(W){var k=new Z8A;return _.b5(k,3,Ryt,W)},Ryt=[2,
3];var $F=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D($F,_.US);var i87=function(W,k){return _.B6(W,2,k)},Tct=function(W,k){return _.B6(W,8,k)},qqY=function(W,k){return _.B6(W,3,k)};var u57=[0,_.Tv,$t$,pnE,_.x9Y,[0,[5,6],[0,_.Tv,-2],[0,_.$4,_.Tv,_.RU],[0,VCB],[0,_.RU,_.Tv,-1,_.wXC],_.iA,[0,[0,_.$4],_.Tv,-1],_.iA,[0,[3,4],_.Tv,-1,_.iA,[0,[0,_.Tv,_.ZB]],_.iA,[0]]],_.x9Y,-1,[0,Ryt,_.Tv,_.iA,su1,_.iA,Dt1,_.oU,eyT,[0,IIC]]];var Ut$=_.ht($F,u57),O8$=_.W6(u57);var LB7=function(){_.XK.call(this)};
_.D(LB7,_.XK);LB7.prototype.init=function(){};
new LB7;var jui=_.iH(["data-"]),H8Z=_.iH(["aria-"]),rTT=_.iH(["aria-"]),Zs=function(W,k){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=k===void 0?!1:k;this.JSC$17090_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.dub(_.NX.location.href)},TmZ=function(W,k){W.onConsentPrimitiveShownCallback=k},gk$=function(W,k){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:k!==void 0?k:5E3},ubt=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(k,C){Rj(W,1);Pu1(W,KB$(W,!0),hyt(W));W.iframe?W.prewarmChannel||WS1(W,W.iframe,k):C(Error("dk"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
Zs.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var k=Date.now();kRi(this,k);this.consentPromise=new Promise(function(C,n){Rj(W,0,k);var N=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=x2S(getComputedStyle(document.body).direction==="rtl",N),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
Pu1(W,KB$(W),hyt(W));W.iframe?W.channel||C8C(W,W.iframe,C,n):(n7i(W),n(Error("dk")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var C8C=function(W,k,C,n){var N,B;_.F(function(A){switch(A.nextAddress){case 1:Rj(W,3);N=!1;setTimeout(function(){if(!N){n7i(W);NF7(W);YVi(W);var w=zyA(7).setErrorMessage("Timeout connecting to iframe");C(Tct(i87(new $F,yTB(w)),okB(w)))}},gk$(W,BF7(W)));
if(!W.prewarmPromise){A.jumpTo(2);break}_.F0(A,3);return _.l(A,W.prewarmPromise,5);case 5:_.M7(A,2);break;case 3:_.EF(A),B=zyA(4).setErrorMessage("Error while prewarming."),C(Tct(i87(new $F,yTB(B)),okB(B)));case 2:W.prewarmChannel&&W.prewarmChannel.send(O8$(qqY(new $F,W.consentPrimitiveRequest))),W.channel=_.UM({destination:W.JSC$17090_win,iframe:k,origin:bEA(W),channelName:"cpw",onEstablished:function(){N=!0;n7i(W);W.isLatencyMeasurementExperiment||(W.JSC$17090_previousBodyOverflow=document.body.style.overflow,
W.JSC$17090_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$17090_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var w=W.iframe;w.style.bottom="0";w.style.position="fixed";w.style.right="0";w.style.border="none";w.style.left="0";w.style.top=
"0";w.style.zIndex="5000";w.style.pointerEvents="";w.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?Rj(W,4):Rj(W,6);var x;(x=W.onConsentPrimitiveShownCallback)==null||x.call(W)},
onMessage:function(w){w=Ut$(w.data);switch(_.Jp(w,1)){case 1:NF7(W);var x=lNE(_.q7(w,_.Gr,7));x&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||Rj(W,6,x),Rj(W,5,x));if(x=lNE(_.q7(w,_.Gr,6)))Rj(W,7,x),Rj(W,8);var E,a;((E=_.q7(w,GQC,2))==null?void 0:_.aU(E,jx))!==0&&((a=_.q7(w,Z8A,8))==null?void 0:_.aU(a,Ryt))!==0||n(Error("ek"));C(w);break;case 2:YVi(W)}}}),_.ab(A)}})},WS1=function(W,k,C){W.prewarmChannel=_.UM({destination:W.JSC$17090_win,
iframe:k,origin:bEA(W),channelName:"pwcp",onEstablished:function(){Rj(W,2);C()}})},bEA=function(W){var k=_.Ez(W.src).toString();
return k&&k.indexOf("://")<0&&k.indexOf("//")!==0?W.origin:_.dub(k)},KB$=function(W,k){k=k===void 0?!1:k;
var C,n=new Map([["origin",W.origin],["hl",(C=A4E(W))!=null?C:null]]);k&&n.set("pw","1");k=_.b([["cpr",W.consentPrimitiveRequest.serialize()]]);for(C=k.next();!C.done;C=k.next()){var N=_.b(C.value);C=N.next().value;N=N.next().value;n.set(C,N)}W.isDarkTheme()&&n.set("color_scheme","dark");return _.CU(W.src,n)},n7i=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
Zs.prototype.getSrc=function(){var W=_.R4(this.origin),k;var C=(k=_.q7(this.consentPrimitiveRequest,Sq$,3))==null?void 0:_.gP(k,1);k="consent.google.com";C=C?"/u/"+encodeURIComponent(C.toString()):"";(W==null?0:W.endsWith("youtube.com"))?k="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(k="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.to("https://"+k+"/signedin"+C+"/landing")};
var Pu1=function(W,k,C){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",C!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.i5(W.iframe,k),W.iframe.setAttribute("jsname","C5o1O"),FSB(W.iframe),document.body.appendChild(W.iframe))},FSB=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},NF7=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$17090_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$17090_previousHtmlOverscroll),W.JSC$17090_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$17090_previousBodyOverscroll),W.JSC$17090_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$17090_previousBodyOverflow),W.enableDialogA11yFix&&wKT(W,!1)),FSB(W.iframe))};
Zs.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wKT(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wKT=function(W,k){var C,n,N=(C=W.iframe)==null?void 0:(n=C.parentElement)==null?void 0:n.children;if(N)for(C=0;C<N.length;C++)n=N[C],n!==W.iframe&&(k?(n.hasAttribute("aria-hidden")&&_.H6([_.h8(jui)],n,"data-old-aria-hidden",n.getAttribute("aria-hidden")),_.H6([_.h8(H8Z)],n,"aria-hidden","true")):(n.removeAttribute("aria-hidden"),n.hasAttribute("data-old-aria-hidden")&&(_.H6([_.h8(rTT)],n,"aria-hidden",n.getAttribute("data-old-aria-hidden")),n.removeAttribute("data-old-aria-hidden"))))},Rj=function(W,
k,C){var n;
(n=W.latencyCallback)==null||n.call(W,{latencyType:k,timestampEpochMillis:C!=null?C:Date.now()})};var x$Y=function(W,k,C){Zs.call(this,k,C===void 0?!1:C);this.consentPrimitiveRequest=W;W=A4E(this);if(!(0,_.Ng2)(W))throw Error("H``"+String(W));this.src=this.getSrc();var n;this.initialLoadingStrategy=(n=_.q7(this.consentPrimitiveRequest,gY,4))==null?void 0:_.Jp(n,4)},lY6;
_.D(x$Y,Zs);var ixZ=function(W){var k=_.m("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:k===void 0?!1:k};lY6||(lY6=new x$Y(W.request,W.isLatencyMeasurementExperiment||_.Jp(W.request,1)===2,W.enableDialogA11yFix));return lY6},A4E=function(W){var k;
return(k=_.q7(W.consentPrimitiveRequest,gY,4))==null?void 0:_.Vo(k,1)},kRi=function(W,k){if(!_.x4(W.consentPrimitiveRequest,yy,5)){var C=W.consentPrimitiveRequest,n=new yy;
_.B6(C,5,n)}var N;if((N=_.q7(W.consentPrimitiveRequest,yy,5))==null||_.dv(N,8)==null){var B;(B=_.q7(W.consentPrimitiveRequest,yy,5))!=null&&_.AB(B,8,k)}},hyt=function(W){var k;
return(k=_.q7(W.consentPrimitiveRequest,yy,5))==null?void 0:_.gP(k,1)};
x$Y.prototype.isDarkTheme=function(){var W;return((W=_.q7(this.consentPrimitiveRequest,gY,4))==null?void 0:_.Jp(W,2))===2};
var BF7=function(W){var k;return((k=_.q7(W.consentPrimitiveRequest,gY,4))==null?void 0:_.gP(k,5))||void 0},YVi=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);lY6=void 0},UeT=function(W){return Zs.prototype.showPrimitive.call(W).then(function(k){return _.q7(k,GQC,2)})};for(var oj={},tD$=(oj[64]="ma",oj[73]="ogb",oj[89]="cr",oj[21]="test",oj[0]="unkn",oj[137]="con",oj[155]="hl",oj[78]="yt",oj[171]="lp",oj[172]="ap",oj[177]="amo",oj[178]="pqe",oj[74]="gg",oj[1]="gm",oj[140]="am",oj),E71=_.b(Object.keys(tD$)),aYE=E71.next();!aYE.done;aYE=E71.next());var XKB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(XKB,_.US);var fY6=[0,[2,3,4],_.Tv,$FB,UF6,_.Cw8];var d$i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(d$i,_.US);var m$i=_.ht(d$i,[0,uzE,_.RU,_.Tv,_.RU,_.Tv,fY6]);var zjA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(zjA,_.US);zjA.prototype.getCommand=function(){return _.Jp(this,1)};
var D$Z=function(){var W=new zjA;return _.Qo(W,1,0)};var VD$=_.W6([0,uzE,_.RU,[0,_.Tv,_.RU,-1]]);var J4Z=new _.Ne("s"),c47=new _.Ne("t"),IYt=new _.Ne("u"),SVA=new _.Ne("v"),MDT=function(W,k,C){_.BS.call(this,J4Z);this.mediaKey=W;this.photoUrl=k;this.photoSource=C};
_.D(MDT,_.BS);var Qr6=function(){_.BS.call(this,c47)};
_.D(Qr6,_.BS);var pKZ=function(W){W=W===void 0?!1:W;_.BS.call(this,IYt);this.isError=W};
_.D(pKZ,_.BS);var v77=function(){_.BS.call(this,SVA)};
_.D(v77,_.BS);var ejS=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,$$B=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return srB(W.substr(1));if(W.charAt(0)=="["){var k=ejS.exec(W);W=W.indexOf("=")==-1?void 0:k[3];return GR1(k[1],W)}return y4B(W)}return W},srB=function(W){return function(k){return k.getAttribute&&_.eZ(k,W)}},GR1=function(W,k){return function(C){return k!==void 0?C.getAttribute&&C.getAttribute(W)==k:C.hasAttribute&&C.hasAttribute(W)}},y4B=function(W){W=W.toUpperCase();
return function(k){return(k=k.tagName)&&k.toUpperCase()==W}},ZEA=function(){return!0};var ih=function(W,k){this.JSC$17118_key_=W;this.JSC$17118_value_=k},TF=function(W){throw Error("fk`"+W.JSC$17118_key_);
},Rj7=function(W,k){return new TypeError("gk`"+k+"`"+W.JSC$17118_key_+"`"+W.JSC$17118_value_+"`"+typeof W.JSC$17118_value_)};
ih.prototype.string=function(W){if(arguments.length==0)var k=o76(this);else{var C;k=(C=iE1(this))!=null?C:W}return k};
var o76=function(W){var k=iE1(W);k===null&&TF(W);return k},iE1=function(W){var k=W.JSC$17118_value_;
if(k==null)return null;if(typeof k==="string")return k;throw Rj7(W,"string");};
ih.prototype.bool=function(W){if(arguments.length==0){var k=this.optionalBool();k===null&&TF(this)}else{var C;k=(C=this.optionalBool())!=null?C:W}return k};
ih.prototype.optionalBool=function(){var W=this.JSC$17118_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw Rj7(this,"boolean");};
ih.prototype.number=function(W){if(arguments.length==0){var k=TFZ(this);k===null&&TF(this)}else{var C;k=(C=TFZ(this))!=null?C:W}return k};
var TFZ=function(W){var k=W.JSC$17118_value_;if(k==null)return null;if(typeof k==="number")return k;if(typeof k==="string"){var C=Number(k);if(!isNaN(C)&&(C!==0||k.trim().length!==0))return C}throw Rj7(W,"number");};
ih.prototype.toString=function(){return o76(this)};
ih.prototype.array=function(W){if(arguments.length==0){var k=qVY(this);k===null&&TF(this);return k}k=qVY(this);return k==null?W:k};
var qVY=function(W){var k=W.JSC$17118_value_;if(k==null)return null;Array.isArray(k)||(typeof k!=="string"?k=[k]:(k=k.trim(),k=k==""?[]:k.split(",").map(function(C){return C.trim()})));
return u1Z(W,k)},u1Z=function(W,k){var C=W.JSC$17118_key_+"[";
return Array.from(k,function(n,N){return new ih(C+N+"]",n)})};
ih.prototype.object=function(W){var k=this.JSC$17118_value_;if(k==null)return W===void 0&&TF(this),W;if(typeof k==="object"&&k.constructor===Object){W={};var C=this.JSC$17118_key_+".",n;for(n in k)W[n]=new ih(C+n,k[n]);return W}throw Rj7(this,"object");};var qT=function(W){this.list_=U$7(W)},U$7=function(W){if(W instanceof qT)W=W.list_;
else if(W[0]instanceof qT){for(var k=new Set,C=0;C<W.length;C++)for(var n=_.b(W[C].list_),N=n.next();!N.done;N=n.next())k.add(N.value);W=k}return[].concat(_.J8(W))};
_.Y=qT.prototype;_.Y.each=function(W,k,C){((C===void 0?0:C)?z8B:_.eO)(this.list_,W,k);return this};
_.Y.size=function(){return this.list_.length};
_.Y.isEmpty=function(){return this.list_.length===0};
_.Y.get=function(W){return this.list_[W]||null};
_.Y.el=function(){return this.list_[0]||null};
_.Y.map=function(W,k){return _.cD(this.list_,W,k)};
_.Y.equals=function(W){return this===W||_.g3(this.list_,W.list_)};
_.Y.first=function(){return this.list_.length==0?null:new uh(this.list_[0])};
_.Y.find=function(W){var k=[];this.each(function(C){C=C.querySelectorAll(String(W));for(var n=0;n<C.length;n++)k.push(C[n])});
return new qT(k)};
_.Y.parent=function(){var W=[];this.each(function(k){(k=k.parentElement||null)&&!_.ZX(W,k)&&W.push(k)});
return new qT(W)};
_.Y.children=function(){var W=[];this.each(function(k){k=_.MJ(k);for(var C=0;C<k.length;C++)W.push(k[C])});
return new qT(W)};
_.Y.filter=function(W){W=_.W9(this.list_,$$B(W));return new qT(W)};
_.Y.closest=function(W){var k=[],C=$$B(W),n=function(N){return _.Gw(N)&&C(N)};
this.each(function(N){(N=_.vD(N,n,!0))&&!_.ZX(k,N)&&k.push(N)});
return new qT(k)};
_.Y.next=function(W){return OEZ(this,_.daA,W)};
_.Y.prev=function(W){return OEZ(this,H_7,W)};
var OEZ=function(W,k,C){var n=[];var N=C?$$B(C):ZEA;W.each(function(B){(B=k(B))&&N(B)&&n.push(B)});
return new qT(n)};
qT.prototype.setClass=function(W){return this.each(function(k){_.vS(k,W)})};
var LSA=function(W,k){return W.each(function(C){_.vj(C,k)})},jrB=function(W,k){return W.each(function(C){_.QI(C,k)})};
qT.prototype.toggleClass=function(W,k){return k===!0?LSA(this,W):k===!1?jrB(this,W):this.each(function(C){_.eZ(C,W)?_.QI(C,W):_.vj(C,W)})};
qT.prototype.setText=function(W){return this.each(function(k){_.Q$(k,W)})};
var HET=function(W){W.each(function(k){k.removeAttribute("aria-hidden")})};
qT.prototype.getStyle=function(W){if(this.list_.length>0){var k=this.list_[0],C=k.style[_.bd(W)];return typeof C!=="undefined"?C:k.style[_.yoA(k,W)]||""}};
qT.prototype.getData=function(W){if(this.list_.length===0)return new ih(W,null);var k=Si6(this.list_[0],W);return new ih(W,k)};
qT.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(k){}return this};
qT.prototype.click=function(){var W=_.QZ(this.el());if(W.createEvent){var k=W.createEvent("MouseEvents");k.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(k)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var Us=function(W,k,C,n){function N(w,x,E){var a=x;x&&x.parentNode&&(a=x.cloneNode(!0));w(a,E)}
n=n===void 0?!1:n;if(W.list_.length==1){var B=W.list_[0],A=function(w){return k(w,B)};
C instanceof qT?C.each(A,void 0,n):Array.isArray(C)?(n?z8B:_.eO)(C,A):A(C);return W}return W.each(function(w){C instanceof qT?C.each(function(x){N(k,x,w)}):Array.isArray(C)?_.eO(C,function(x){N(k,x,w)}):N(k,C,w)})};
_.Y=qT.prototype;_.Y.append=function(W){return Us(this,function(k,C){k&&C.appendChild(k)},W)};
_.Y.appendTo=function(W){(new qT([W])).append(this);return this};
_.Y.remove=function(){return Us(this,function(W,k){_.xL(k)},null)};
_.Y.empty=function(){return Us(this,function(W,k){_.Ju(k)},null)};
_.Y.after=function(W,k){return Us(this,function(C,n){C&&_.IH(C,n)},W,!(k===void 0||k))};
_.Y.before=function(W){return Us(this,function(k,C){k&&_.cT(k,C)},W)};
_.Y.replaceWith=function(W){return Us(this,function(k,C){k&&_.alb(k,C)},W)};
_.Y.toggle=function(W){return this.each(function(k){_.Z0(k,W)})};
_.Y.show=function(){return this.toggle(!0)};
_.Y.hide=function(){return this.toggle(!1)};
_.Y.trigger=function(W,k,C,n){return r4B(this,W,k,C,n)};
var r4B=function(W,k,C,n,N){return W.each(function(B){_.Cep(_.QZ(B)).triggerWizEventInternal(B,k,C,n,N)})},uh=function(W,k){W instanceof qT&&(k=W.list_,W=null);
this.list_=U$7(W!=null?[W]:k)};
_.Pq(uh,qT);_.Y=uh.prototype;_.Y.children=function(){return new qT(Array.prototype.slice.call(_.MJ(this.list_[0])))};
_.Y.each=function(W,k){W.call(k,this.list_[0],0);return this};
_.Y.size=function(){return 1};
_.Y.el=function(){return this.list_[0]};
_.Y.first=function(){return this};var Os=function(W,k){k=k===void 0?window:k;this.hostId=W;this.JSC$17129_win=k;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$17129_previousHtmlOverscroll=this.JSC$17129_previousBodyOverscroll=this.JSC$17129_previousBodyOverflow="";this.eventTarget=new _.xT;this.JSC$17129_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
KSA=function(W){var k=g7E(g7E(g7E(new P8S(78),"po"),"hppp"),"hhc");
k.authUser=Number(_.DE("SESSION_INDEX","0"));k.colorScheme=W;return k};
Os.prototype.getOrigin=function(){return this.origin?this.origin:_.UY(_.us(_.qe(new _.oA,this.JSC$17129_win.location.protocol),this.JSC$17129_win.location.hostname),this.JSC$17129_win.location.port).toString()};
Os.prototype.getTargetOrigin=function(){return _.UY(_.us(_.qe(new _.oA,this.scheme),this.domain),this.port)};
Os.prototype.preloadIframe=function(W){var k=this;if(this.iframeLoadPromise===void 0){var C=document.createElement("iframe");this.iframe=C;m2u(C,W);this.iframeLoadPromise=new Promise(function(n,N){var B=!1,A=function(w){w.stopPropagation();C.removeEventListener("error",A);C.removeEventListener("securitypolicyviolation",A);N(Error("hk",{cause:w}))};
C.addEventListener("error",A);C.addEventListener("securitypolicyviolation",A);setTimeout(function(){B||N(Error("ik"))},3E4);
hj7(k,C,function(){B=!0;C.removeEventListener("error",A);C.removeEventListener("securitypolicyviolation",A);n()})});
WuY(this);W=this.getTargetOrigin().toString();C.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(C)}return this.iframeLoadPromise};
var nDT=function(W,k){var C,n;return _.F(function(N){if(N.nextAddress==1)return C=x2S(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(C),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.F0(N,2),_.l(N,W.preloadIframe(k),4);if(N.nextAddress!=2){W.parentElement.removeChild(C);W.JSC$17129_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$17129_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$17129_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var B=W.iframe;B.style.bottom="0";B.style.border="none";B.style.height="100%";B.style.left="0";B.style.position=W.iframePosition;B.style.right="0";B.style.top="0";B.style.width="100%";B.style.zIndex="2202";B.setAttribute("aria-hidden","false");B.setAttribute("aria-modal","true");
W.opened=!0;kAZ(W);return _.M7(N,0)}n=_.EF(N);W.parentElement.removeChild(C);XG7(W.isDarkTheme());CkE(W,!1);throw Error("jk",{cause:n});})},CkE=function(W,k){k=k===void 0?!0:k;
W.iframe!==void 0&&(NhA(W),document.documentElement.style.overscrollBehavior=W.JSC$17129_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$17129_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$17129_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),k?WuY(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},NhA=function(W){W.backgroundElementsAriaHiddenIsNull&&
(HET(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(k){k.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(k){k.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},kAZ=function(W){W.backgroundElementsAriaHiddenIsNull=(new uh(W.iframe.parentElement)).children().filter(function(k){return k.getAttribute("aria-hidden")===null&&k!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(k){k.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new uh(W.iframe.parentElement)).children().filter(function(k){return k.getAttribute("aria-hidden")==="false"&&k!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(k){k.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new uh(W.iframe.parentElement)).children().filter(function(k){return!k.hasAttribute("inert")&&k!==W.iframe});
W.backgroundElementsWithoutInert.each(function(k){k.setAttribute("inert","true")})},WuY=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
Os.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var P8S=function(W,k){Os.call(this,tD$[W],k);this.options=[];this.style=""};
_.D(P8S,Os);var YQT=function(W){W.style="youtube";return W},Bh6=function(W,k){W.eventTarget.listen(IYt,k);
return W},blY=function(W,k){W.eventTarget.listen(J4Z,k);
return W},g7E=function(W,k){W.options.push(k);
return W},Aw7=function(W){var k=[W.getOrigin()];
W.ancestorOrigins&&k.push.apply(k,_.J8(W.ancestorOrigins));var C=new _.oA(W.JSC$17129_win.location.href),n=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";k=PA(_.OY(W.getTargetOrigin(),n),"origin",k);W.startUrl&&_.$L(k,"startPath",W.startUrl);W.authUser>0&&_.$L(k,"authuser",W.authUser);W.pageId!==void 0&&_.$L(k,"pageId",W.pageId);_.$L(k,"hostId",W.hostId);W.jsMode!==void 0&&_.$L(k,"jsmode",W.jsMode);W.options.length>0&&_.$L(k,"opts",W.options.join(","));try{for(var N=
_.b(["utm_source","utm_medium","utm_campaign","utm_content"]),B=N.next();!B.done;B=N.next()){var A=B.value;_.yQ(C,A)&&_.$L(k,A,_.yQ(C,A))}var w,x=(w=W.hl)!=null?w:_.yQ(C,"hl");x!==void 0&&_.$L(k,"hl",x)}catch(E){if(!(E instanceof URIError))throw E;}W.colorScheme&&_.$L(k,"theme",W.colorScheme);W.style&&_.$L(k,"style",W.style);return k},Fu$=function(W,k){W.mainChannel=_.UM({destination:W.JSC$17129_win,
iframe:k,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(C){C=m$i(C.data);if(k===W.iframe)switch(_.Jp(C,1)){case 1:W.eventTarget.dispatchEvent(new pKZ);CkE(W);break;case 2:W.eventTarget.dispatchEvent(new MDT(_.QY(_.Vo(C,4)),_.QY(_.Vo(C,2)),_.QY(_.Jp(C,5)),_.QY(_.q7(C,XKB,6))));break;case 0:var n;W.eventTarget.dispatchEvent(new Qr6(_.QY(_.Vo(C,2)),(n=_.Jp(C,3))!=null?n:0));break;case 3:W.eventTarget.dispatchEvent(new pKZ(!0));CkE(W,!1);break;case 4:W.eventTarget.dispatchEvent(new v77)}}})},
hj7=function(W,k,C){_.UM({destination:W.JSC$17129_win,
iframe:k,origin:_.UY(_.us(_.qe(new _.oA,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(n){k===W.iframe&&(C!==void 0&&C(),Fu$(W,k),W.opened&&W.mainChannel.send(VD$(D$Z())),n.reply(),hj7(W,k))}})};
P8S.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Os.prototype.preloadIframe.call(this,Aw7(this).toString()):this.iframeLoadPromise};
P8S.prototype.openPicker=function(W){var k=this;return _.F(function(C){if(C.nextAddress==1)return k.startUrl=W?W:k.options.includes("po")?"profile-picture/art":"profile-picture",_.l(C,nDT(k,Aw7(k).toString()),2);if(k.mainChannel){var n=k.mainChannel,N=n.send;var B=D$Z();B=_.fU(B,2,k.startUrl);N.call(n,VD$(B))}_.ab(C)})};var wR$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(wR$,_.US);_.Y=wR$.prototype;_.Y.getSize=function(){return YF(this,1)};
_.Y.setSize=function(W){return _.Mb(this,1,W)};
_.Y.getWidth=function(){return YF(this,12)};
_.Y.getHeight=function(){return YF(this,13)};
_.Y.setCenterCrop=function(W){return _.CN(this,20,W)};
_.Y.getHtml=function(){return _.ml(this,4)};
_.Y.getToken=function(){return _.FK(this,24)};
_.Y.setToken=function(W){return _.fU(this,24,W)};
_.Y.getBackgroundColor=function(){return YF(this,87)};
_.Y.hasBackgroundColor=function(){return _.P8(_.wv(this,87))!=null};
_.Y.getStoryboardLevel=function(){return YF(this,109)};var Lp=function(W){this.JSC$17137_value_=void 0;this.childNodes_={};if(W){var k=_.pvS(W);W=_.Tq(W);for(var C=0;C<k.length;C++)this.set(k[C],W[C])}};
Lp.prototype.set=function(W,k){xi$(this,W,k,!1)};
Lp.prototype.add=function(W,k){xi$(this,W,k,!0)};
var xi$=function(W,k,C,n){for(var N=0;N<k.length;N++){var B=k.charAt(N);W.childNodes_[B]||(W.childNodes_[B]=new Lp);W=W.childNodes_[B]}if(n&&W.JSC$17137_value_!==void 0)throw Error("kk`"+k);W.JSC$17137_value_=C},l1B=function(W,k){for(var C=0;C<k.length;C++)if(W=W.childNodes_[k.charAt(C)],!W)return;
return W};
Lp.prototype.get=function(W){return(W=l1B(this,W))?W.JSC$17137_value_:void 0};
Lp.prototype.getValues=function(){var W=[];tV$(this,W);return W};
var tV$=function(W,k){W.JSC$17137_value_!==void 0&&k.push(W.JSC$17137_value_);for(var C in W.childNodes_)tV$(W.childNodes_[C],k)};
Lp.prototype.getKeys=function(W){var k=[];if(W){for(var C=this,n=0;n<W.length;n++){var N=W.charAt(n);if(!C.childNodes_[N])return[];C=C.childNodes_[N]}EDT(C,W,k)}else EDT(this,"",k);return k};
var EDT=function(W,k,C){W.JSC$17137_value_!==void 0&&C.push(k);for(var n in W.childNodes_)EDT(W.childNodes_[n],k+n,C)};
_.Y=Lp.prototype;_.Y.containsKey=function(W){return this.get(W)!==void 0};
_.Y.containsValue=function(W){if(this.JSC$17137_value_===W)return!0;for(var k in this.childNodes_)if(this.childNodes_[k].containsValue(W))return!0;return!1};
_.Y.clear=function(){this.childNodes_={};this.JSC$17137_value_=void 0};
_.Y.remove=function(W){for(var k=this,C=[],n=0;n<W.length;n++){var N=W.charAt(n);if(!k.childNodes_[N])throw Error("lk`"+W);C.push([k,N]);k=k.childNodes_[N]}W=k.JSC$17137_value_;for(delete k.JSC$17137_value_;C.length>0;)if(n=C.pop(),k=n[0],n=n[1],k.childNodes_[n].isEmpty())delete k.childNodes_[n];else break;return W};
_.Y.clone=function(){return new Lp(this)};
_.Y.getCount=function(){return PfB(this.getValues())};
_.Y.isEmpty=function(){return this.JSC$17137_value_===void 0&&_.JU.isEmpty(this.childNodes_)};var cf1=function(){if(!a17){var W=a17=new Lp,k;for(k in XRi)W.add(k,XRi[k])}},a17,j0=function(W,k){this.types=W;
this.setters=k},XRi={a:new j0([3,
0],[function(W,k){_.CN(W,21,k)},
function(W,k){_.Mb(W,56,k)}]),
al:new j0([3],[function(W,k){_.CN(W,74,k)}]),
b:new j0([3,0],[function(W,k){_.CN(W,23,k)},
function(W,k){_.Mb(W,38,k)}]),
ba:new j0([0],[function(W,k){_.Mb(W,85,k)}]),
bc:new j0([0],[function(W,k){_.Mb(W,87,k)}]),
br:new j0([0],[function(W,k){_.Mb(W,86,k)}]),
c:new j0([3,0],[function(W,k){_.CN(W,2,k)},
function(W,k){_.Mb(W,39,k)}]),
cc:new j0([3],[function(W,k){_.CN(W,51,k)}]),
ci:new j0([3],[function(W,k){_.CN(W,32,k)}]),
ckm:new j0([3],[function(W,k){_.CN(W,104,k)}]),
cp:new j0([0],[function(W,k){_.Mb(W,92,k)}]),
cr:new j0([3],[function(W,k){_.CN(W,108,k)}]),
cv:new j0([0],[function(W,k){_.Mb(W,94,k)}]),
d:new j0([3],[function(W,k){_.CN(W,3,k)}]),
dc:new j0([5],[function(W,k){_.fU(W,99,k)}]),
df:new j0([3],[function(W,k){_.CN(W,80,k)}]),
dv:new j0([3],[function(W,k){_.CN(W,90,k)}]),
e:new j0([0],[function(W,k){_.Mb(W,15,k)}]),
em:new j0([0],[function(W,k){_.Mb(W,107,k)}]),
f:new j0([4],[function(W,k){_.fU(W,16,k)}]),
fg:new j0([3],[function(W,k){_.CN(W,34,k)}]),
fh:new j0([3],[function(W,k){_.CN(W,30,k)}]),
fm:new j0([3],[function(W,k){_.CN(W,84,k)}]),
fo:new j0([2],[function(W,k){_.Uh(W,79,_.ib(k))}]),
ft:new j0([3],[function(W,k){_.CN(W,50,k)}]),
fv:new j0([3],[function(W,k){_.CN(W,31,k)}]),
g:new j0([3],[function(W,k){_.CN(W,14,k)}]),
gce:new j0([4],[function(W,k){_.fU(W,112,k)}]),
gd:new j0([3],[function(W,k){_.CN(W,83,k)}]),
gm:new j0([3],[function(W,k){_.CN(W,105,k)}]),
h:new j0([3,0],[function(W,k){_.CN(W,4,k)},
function(W,k){_.Mb(W,13,k)}]),
i:new j0([3],[function(W,k){_.CN(W,22,k)}]),
ic:new j0([0],[function(W,k){_.Mb(W,71,k)}]),
id:new j0([3],[function(W,k){_.CN(W,70,k)}]),
il:new j0([3],[function(W,k){_.CN(W,96,k)}]),
ip:new j0([3],[function(W,k){_.CN(W,54,k)}]),
iv:new j0([0],[function(W,k){_.AB(W,75,k)}]),
j:new j0([1],[function(W,k){k=k==null?k:J7u(k);_.Uh(W,29,k)}]),
k:new j0([3,0],[function(W,k){_.CN(W,17,k)},
function(W,k){_.Mb(W,42,k)}]),
l:new j0([0],[function(W,k){_.Mb(W,44,k)}]),
lf:new j0([3],[function(W,k){_.CN(W,65,k)}]),
lo:new j0([3],[function(W,k){_.CN(W,97,k)}]),
m:new j0([0],[function(W,k){_.Mb(W,63,k)}]),
md:new j0([3],[function(W,k){_.CN(W,91,k)}]),
mm:new j0([4],[function(W,k){_.fU(W,81,k)}]),
mo:new j0([3],[function(W,k){_.CN(W,73,k)}]),
mv:new j0([3],[function(W,k){_.CN(W,66,k)}]),
n:new j0([3],[function(W,k){W.setCenterCrop(k)}]),
nc:new j0([3],[function(W,k){_.CN(W,55,k)}]),
nd:new j0([3],[function(W,k){_.CN(W,53,k)}]),
ng:new j0([3],[function(W,k){_.CN(W,95,k)}]),
ngm:new j0([3],[function(W,k){_.CN(W,106,k)}]),
no:new j0([3],[function(W,k){_.CN(W,37,k)}]),
ns:new j0([3],[function(W,k){_.CN(W,40,k)}]),
nt0:new j0([4],[function(W,k){_.fU(W,36,k)}]),
ntm:new j0([3],[function(W,k){_.CN(W,114,k)}]),
nu:new j0([3],[function(W,k){_.CN(W,46,k)}]),
nw:new j0([3],[function(W,k){_.CN(W,48,k)}]),
o:new j0([1,3],[function(W,k){k=k==null?k:J7u(k);_.Uh(W,7,k)},
function(W,k){_.CN(W,27,k)}]),
p:new j0([3,0],[function(W,k){_.CN(W,19,k)},
function(W,k){_.Mb(W,43,k)}]),
pa:new j0([3],[function(W,k){_.CN(W,61,k)}]),
pc:new j0([0],[function(W,k){_.Mb(W,88,k)}]),
pd:new j0([3],[function(W,k){_.CN(W,60,k)}]),
pf:new j0([3],[function(W,k){_.CN(W,67,k)}]),
pg:new j0([3],[function(W,k){_.CN(W,72,k)}]),
pi:new j0([2],[function(W,k){_.Uh(W,76,_.ib(k))}]),
pp:new j0([3],[function(W,k){_.CN(W,52,k)}]),
pt:new j0([4],[function(W,k){_.fU(W,111,k)}]),
q:new j0([4],[function(W,k){_.fU(W,28,k)}]),
r:new j0([3,0],[function(W,k){_.CN(W,6,k)},
function(W,k){_.Mb(W,26,k)}]),
ra:new j0([3],[function(W,k){_.CN(W,103,k)}]),
rf:new j0([3],[function(W,k){_.CN(W,100,k)}]),
rg:new j0([3],[function(W,k){_.CN(W,59,k)}]),
rh:new j0([3],[function(W,k){_.CN(W,49,k)}]),
rj:new j0([3],[function(W,k){_.CN(W,57,k)}]),
ro:new j0([2],[function(W,k){_.Uh(W,78,_.ib(k))}]),
rp:new j0([3],[function(W,k){_.CN(W,58,k)}]),
rw:new j0([3],[function(W,k){_.CN(W,35,k)}]),
rwa:new j0([3],[function(W,k){_.CN(W,64,k)}]),
rwu:new j0([3],[function(W,k){_.CN(W,41,k)}]),
s:new j0([3,0],[function(W,k){_.CN(W,33,k)},
function(W,k){W.setSize(k)}]),
sb:new j0([0],[function(W,k){_.Mb(W,110,k)}]),
sc:new j0([0],[function(W,k){_.Mb(W,89,k)}]),
sg:new j0([3],[function(W,k){_.CN(W,82,k)}]),
sl:new j0([0],[function(W,k){_.Mb(W,109,k)}]),
sm:new j0([3],[function(W,k){_.CN(W,93,k)}]),
t:new j0([4],[function(W,k){W.setToken(k)}]),
tm:new j0([3],[function(W,k){_.CN(W,113,k)}]),
u:new j0([3],[function(W,k){_.CN(W,18,k)}]),
ut:new j0([3],[function(W,k){_.CN(W,45,k)}]),
v:new j0([0],[function(W,k){_.Mb(W,62,k)}]),
vb:new j0([0],[function(W,k){_.AB(W,68,k)}]),
vf:new j0([4],[function(W,k){_.fU(W,102,k)}]),
vl:new j0([0],[function(W,k){_.AB(W,69,k)}]),
vm:new j0([3],[function(W,k){_.CN(W,98,k)}]),
w:new j0([0],[function(W,k){_.Mb(W,12,k)}]),
x:new j0([0],[function(W,k){_.Mb(W,9,k)}]),
y:new j0([0],[function(W,k){_.Mb(W,10,k)}]),
ya:new j0([2],[function(W,k){_.Uh(W,77,_.ib(k))}]),
z:new j0([0],[function(W,k){_.Mb(W,11,k)}])};
cf1.prototype.parse=function(W){var k=new wR$,C=new wR$;if(W=="")W=!0;else{W=W.split("-");for(var n=!0,N=0;N<W.length;N++){var B=W[N];if(B.length==0)n=!1;else{var A=B,w=!1;var x=A;var E=A.charAt(0);E!=E.toLowerCase()&&(w=!0,x=A.charAt(0).toLowerCase()+A.substring(1));var a=a17;for(E=1;E<=x.length;++E){var X=a,d=x.substring(0,E);if(d.length==0?X.isEmpty():!l1B(X,d))break}x=E==1?null:(x=a.get(x.substring(0,E-1)))?{option:A.substring(0,E-1),value:A.substring(E-1),signed:w,attributes:x}:null;if(x){A=
[];w=[];E=!1;for(a=0;a<x.attributes.types.length;a++){X=x.attributes.types[a];var V=x.value;d=N;if(x.signed&&X==1)for(var c=V.length;c<12&&d<W.length-1;)V+="-"+W[d+1],c=V.length,++d;else if(X==2)for(;d<W.length-1&&W[d+1].match(/^[\d\.]/);)V+="-"+W[d+1],++d;c=x.attributes.setters[a];V=f1i(this,X)(x.option,V,k,C,c);if(V===null){E=!0;N=d;break}else A.push(X),w.push(V)}if(!E)for(x=0;x<w.length;x++)a=A[x],V=w[x],di7(this,a)(B,V);n=n&&E}else n=!1}}W=n}return new miA(k,C,W)};
var HC=function(W,k,C,n,N,B){N(C,k);W=W.charAt(0);B=B(W==W.toUpperCase());N(n,B)};
_.Y=cf1.prototype;_.Y.parseAndSetIntOption_=function(W,k,C,n,N){if(k=="")return 0;isFinite(k)&&(k=String(k));k=typeof k==="string"?/^\s*-?0x/i.test(k)?parseInt(k,16):parseInt(k,10):NaN;if(isNaN(k))return 1;HC(W,k,C,n,N,Number);return null};
_.Y.logIntParseError_=function(){};
_.Y.parseAndSetFloatOption_=function(W,k,C,n,N){if(k=="")return 0;var B=Number(k);k=B==0&&_.tK(k)?NaN:B;if(isNaN(k))return 1;HC(W,k,C,n,N,Number);return null};
_.Y.logFloatParseError_=function(){};
_.Y.parseAndSetBoolOption_=function(W,k,C,n,N){if(k!="")return 2;HC(W,!0,C,n,N,Boolean);return null};
_.Y.logBoolParseError_=function(){};
_.Y.parseAndSetStringOption_=function(W,k,C,n,N){if(k=="")return 0;HC(W,k,C,n,N,function(B){return B?"1":""});
return null};
_.Y.logStringParseError_=function(){};
_.Y.parseAndSetUint64Base64Option_=function(W,k,C,n,N){if(k=="")return 0;HC(W,k,C,n,N,function(B){return B?1:0});
return null};
var f1i=function(W,k){switch(k){case 0:return(0,_.fN)(W.parseAndSetIntOption_,W);case 2:return(0,_.fN)(W.parseAndSetFloatOption_,W);case 3:return(0,_.fN)(W.parseAndSetBoolOption_,W);case 4:return(0,_.fN)(W.parseAndSetStringOption_,W);case 1:return(0,_.fN)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},di7=function(W,k){switch(k){case 0:return(0,_.fN)(W.logIntParseError_,W);
case 2:return(0,_.fN)(W.logFloatParseError_,W);case 3:return(0,_.fN)(W.logBoolParseError_,W);case 4:case 1:return(0,_.fN)(W.logStringParseError_,W);default:return function(){}}},miA=function(W,k,C){this.valueProto_=W;
this.signatureFlagProto_=k;this.JSC$17149_valid_=C};
miA.prototype.isValid=function(){return this.JSC$17149_valid_};var zDY=function(W){this.JSC$17150_parser_=null;this.JSC$17150_components_=[];this.JSC$17150_parsedOptions_=null;zRB(this,W)},DiE=function(W){W.JSC$17150_parser_==null&&(W.JSC$17150_parser_=new cf1);
return W.JSC$17150_parser_},zRB=function(W,k){W.JSC$17150_parsedOptions_=k?typeof k==="string"?DiE(W).parse(k):k:DiE(W).parse("")},rN=function(W,k){return W==k?!1:!0};
_.Y=zDY.prototype;_.Y.JSC$17152_setCrop=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,_.ml(C,2),_.ml(k.signatureFlagProto_,2))&&_.CN(C,2,W);return this};
_.Y.JSC$17152_setCircleCrop=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,NT(C,51),NT(k.signatureFlagProto_,51))&&_.CN(C,51,W);return this};
_.Y.JSC$17152_setImageCrop=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,NT(C,32),NT(k.signatureFlagProto_,32))&&_.CN(C,32,W);return this};
_.Y.JSC$17152_setHeight=function(W){var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,C.getHeight(),k.signatureFlagProto_.getHeight())&&_.Mb(C,13,W);return this};
_.Y.setCenterCrop=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,_.ml(C,20),_.ml(k.signatureFlagProto_,20))&&C.setCenterCrop(W);return this};
_.Y.JSC$17152_setSmartCrop=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,_.ml(C,19),_.ml(k.signatureFlagProto_,19))&&_.CN(C,19,W);return this};
_.Y.JSC$17152_setPad=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,NT(C,60),NT(k.signatureFlagProto_,60))&&_.CN(C,60,W);return this};
_.Y.JSC$17152_setSmartCropUseFace=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,_.ml(C,67),_.ml(k.signatureFlagProto_,67))&&_.CN(C,67,W);return this};
_.Y.JSC$17152_setSmartCropNoClip=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,_.ml(C,52),_.ml(k.signatureFlagProto_,52))&&_.CN(C,52,W);return this};
_.Y.setSize=function(W){var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,C.getSize(),k.signatureFlagProto_.getSize())&&C.setSize(W);return this};
_.Y.setToken=function(W){W=W||void 0;var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,C.getToken(),k.signatureFlagProto_.getToken())&&C.setToken(W);return this};
_.Y.JSC$17152_setWidth=function(W){var k=this.JSC$17150_parsedOptions_,C=k.valueProto_;rN(W,C.getWidth(),k.signatureFlagProto_.getWidth())&&_.Mb(C,12,W);return this};
_.Y.clearOptions=function(){zRB(this,"");return this};
_.Y.build=function(){this.JSC$17150_components_.length=0;var W=this.JSC$17150_parsedOptions_,k=W.valueProto_;W=W.signatureFlagProto_;gN(this,"s",k.getSize(),W.getSize());gN(this,"w",k.getWidth(),W.getWidth());PC(this,"c",_.ml(k,2),_.ml(W,2));PC(this,"d",_.ml(k,3),_.ml(W,3));gN(this,"h",k.getHeight(),W.getHeight());PC(this,"s",NT(k,33),NT(W,33));PC(this,"h",k.getHtml(),W.getHtml());PC(this,"p",_.ml(k,19),_.ml(W,19));PC(this,"pp",_.ml(k,52),_.ml(W,52));PC(this,"pf",_.ml(k,67),_.ml(W,67));PC(this,"n",
_.ml(k,20),_.ml(W,20));gN(this,"r",YF(k,26),YF(W,26));PC(this,"r",_.ml(k,6),_.ml(W,6));PC(this,"o",NT(k,27),NT(W,27));var C=G$T(k,7);Kp(this,"o",C,G$T(W,7));C=G$T(k,29);Kp(this,"j",C,G$T(W,29));gN(this,"x",YF(k,9),YF(W,9));gN(this,"y",YF(k,10),YF(W,10));gN(this,"z",YF(k,11),YF(W,11));PC(this,"g",_.ml(k,14),_.ml(W,14));gN(this,"e",YF(k,15),YF(W,15));Kp(this,"f",_.FK(k,16),_.FK(W,16));PC(this,"k",NT(k,17),NT(W,17));PC(this,"u",NT(k,18),!0);PC(this,"ut",NT(k,45),!0);PC(this,"i",NT(k,22),!0);PC(this,
"a",NT(k,21),NT(W,21));PC(this,"b",_.ml(k,23),_.ml(W,23));gN(this,"b",YF(k,38),YF(W,38));gN(this,"c",YF(k,39),YF(W,39),16,8);Kp(this,"q",_.FK(k,28),_.FK(W,28));PC(this,"fh",NT(k,30),NT(W,30));PC(this,"fv",NT(k,31),NT(W,31));PC(this,"fg",_.ml(k,34),_.ml(W,34));PC(this,"ci",NT(k,32),NT(W,32));Kp(this,"t",k.getToken(),W.getToken());Kp(this,"nt0",_.FK(k,36),_.FK(W,36));PC(this,"rw",_.ml(k,35),_.ml(W,35));PC(this,"rwu",_.ml(k,41),_.ml(W,41));PC(this,"rwa",_.ml(k,64),_.ml(W,64));PC(this,"nw",_.ml(k,48),
_.ml(W,48));PC(this,"rh",_.ml(k,49),_.ml(W,49));PC(this,"no",_.ml(k,37),_.ml(W,37));PC(this,"ns",NT(k,40),NT(W,40));gN(this,"k",YF(k,42),YF(W,42));gN(this,"p",YF(k,43),YF(W,43));gN(this,"l",YF(k,44),YF(W,44));gN(this,"v",YF(k,62),YF(W,62));PC(this,"nu",NT(k,46),NT(W,46));PC(this,"ft",NT(k,50),NT(W,50));PC(this,"cc",NT(k,51),NT(W,51));PC(this,"nd",NT(k,53),NT(W,53));PC(this,"ip",NT(k,54),NT(W,54));PC(this,"nc",NT(k,55),NT(W,55));gN(this,"a",YF(k,56),YF(W,56));PC(this,"rj",NT(k,57),NT(W,57));PC(this,
"rp",NT(k,58),NT(W,58));PC(this,"rg",NT(k,59),NT(W,59));PC(this,"pd",NT(k,60),NT(W,60));PC(this,"pa",NT(k,61),NT(W,61));gN(this,"m",YF(k,63),YF(W,63));gN(this,"vb",_.dv(k,68,_.F2),_.dv(W,68,_.F2));gN(this,"vl",_.dv(k,69,_.F2),_.dv(W,69,_.F2));PC(this,"lf",NT(k,65),NT(W,65));PC(this,"mv",NT(k,66),NT(W,66));PC(this,"id",NT(k,70),NT(W,70));gN(this,"ic",YF(k,71),!0);PC(this,"pg",_.ml(k,72),_.ml(W,72));PC(this,"mo",NT(k,73),NT(W,73));PC(this,"al",NT(k,74),NT(W,74));gN(this,"iv",_.dv(k,75,_.F2),_.dv(W,
75,_.F2));gN(this,"pi",BC(k,76),BC(W,76));gN(this,"ya",BC(k,77),BC(W,77));gN(this,"ro",BC(k,78),BC(W,78));gN(this,"fo",BC(k,79),BC(W,79));PC(this,"df",NT(k,80),NT(W,80));Kp(this,"mm",_.FK(k,81),_.FK(W,81));PC(this,"sg",NT(k,82),NT(W,82));PC(this,"gd",NT(k,83),NT(W,83));PC(this,"fm",NT(k,84),NT(W,84));gN(this,"ba",YF(k,85),YF(W,85));gN(this,"br",YF(k,86),YF(W,86));gN(this,"bc",k.getBackgroundColor(),W.getBackgroundColor(),16,8);gN(this,"pc",YF(k,88),YF(W,88),16,8);gN(this,"sc",YF(k,89),YF(W,89),16,
8);PC(this,"dv",NT(k,90),NT(W,90));PC(this,"md",NT(k,91),NT(W,91));gN(this,"cp",YF(k,92),YF(W,92));PC(this,"sm",NT(k,93),NT(W,93));gN(this,"cv",YF(k,94),YF(W,94));PC(this,"ng",NT(k,95),NT(W,95));PC(this,"il",NT(k,96),NT(W,96));PC(this,"lo",NT(k,97),NT(W,97));PC(this,"vm",NT(k,98),NT(W,98));Kp(this,"dc",_.FK(k,99),_.FK(W,99));PC(this,"rf",NT(k,100),NT(W,100));Kp(this,"vf",_.FK(k,102),_.FK(W,102));PC(this,"ra",_.ml(k,103),_.ml(W,103));PC(this,"ckm",NT(k,104),NT(W,104));PC(this,"gm",NT(k,105),NT(W,105));
PC(this,"ngm",NT(k,106),NT(W,106));gN(this,"em",YF(k,107),YF(W,107));PC(this,"cr",NT(k,108),NT(W,108));gN(this,"sl",k.getStoryboardLevel(),W.getStoryboardLevel());gN(this,"sb",YF(k,110),YF(W,110));Kp(this,"pt",_.FK(k,111),_.FK(W,111));Kp(this,"gce",_.FK(k,112),_.FK(W,112));PC(this,"tm",NT(k,113),NT(W,113));PC(this,"ntm",NT(k,114),NT(W,114));return this.JSC$17150_components_.join("-")};
var gN=function(W,k,C,n,N,B){if(C!=null){var A=N==void 0||N!=10&&N!=16?10:N;C=C.toString(A);N=new qiE;N.append(A==16?"0x":"");A=N.append;B==void 0?B="":(B-=C.length,B=B<=0?"":(0,_.Gzs)("0",B));A.call(N,B);N.append(C);VV6(W,k,N.toString(),!!n)}},PC=function(W,k,C,n){C&&VV6(W,k,"",!!n)},Kp=function(W,k,C,n){C&&VV6(W,k,C,!!n)},VV6=function(W,k,C,n){n&&(k=k.charAt(0).toUpperCase()+k.substring(1));
W.JSC$17150_components_.push(k+C)};_.Pq(E_,zDY);_.Y=E_.prototype;_.Y.JSC$17152_setCrop=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setCrop.call(this,W)};
_.Y.JSC$17152_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return E_.superClass_.JSC$17152_setHeight.call(this,W)};
_.Y.JSC$17152_setImageCrop=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setImageCrop.call(this,W)};
_.Y.JSC$17152_setCircleCrop=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setCircleCrop.call(this,W)};
_.Y.setSize=function(W){_.O2(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$17152_setWidth(),this.JSC$17152_setHeight());return E_.superClass_.setSize.call(this,W)};
_.Y.JSC$17152_setSmartCrop=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setSmartCrop.call(this,W)};
_.Y.JSC$17152_setSmartCropNoClip=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setSmartCropNoClip.call(this,W)};
_.Y.JSC$17152_setSmartCropUseFace=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setSmartCropUseFace.call(this,W)};
_.Y.setCenterCrop=function(W){W&&hH(this);return E_.superClass_.setCenterCrop.call(this,W)};
_.Y.JSC$17152_setPad=function(W){W&&hH(this);return E_.superClass_.JSC$17152_setPad.call(this,W)};
_.Y.JSC$17152_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return E_.superClass_.JSC$17152_setWidth.call(this,W)};
var Jwu=function(W){W.clearOptions();var k=W.JSC$17150_parsedOptions_,C=k.valueProto_;rN(!0,_.ml(C,3),_.ml(k.signatureFlagProto_,3))&&_.CN(C,3,!0);return W},hH=function(W){W.setCenterCrop();
W.JSC$17152_setCircleCrop();W.JSC$17152_setCrop();W.JSC$17152_setImageCrop();W.JSC$17152_setPad();W.JSC$17152_setSmartCrop();W.JSC$17152_setSmartCropNoClip();W.JSC$17152_setSmartCropUseFace()};
E_.prototype.build=function(){var W=this.JSC$17150_parsedOptions_.valueProto_;NT(W,18)||NT(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$17150_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$17152_setHeight(),this.JSC$17152_setWidth(),hH(this)));return E_.superClass_.build.call(this)};var cwY=/^[^\/]*\/\//,WU=function(W,k){k=k===void 0?!1:k;this.original_=W;this.originalPrefix_="";(W=this.original_.match(cwY))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.Gb(W,!0);this.isFreeformUrl_=k;this.JSC$17156_valid_=!0;this.obfuscated_=!1},I1t=function(W,k){W.JSC$17158_pathPrefix_=W.JSC$17158_pathPrefix_?W.JSC$17158_pathPrefix_+("/"+k):k},kG=function(W){if(W.JSC$17158_components_==
void 0){var k=W.uri_.getPath().substring(1);
W.JSC$17158_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$17158_components_=[];if((k.match(/=/g)||[]).length>1)return W.JSC$17156_valid_=!1,W.JSC$17158_components_;var C=k.indexOf("=");C!=-1?(W.JSC$17158_components_.push(k.substr(0,C)),W.JSC$17158_components_.push(k.substr(C+1))):W.JSC$17158_components_.push(k);return W.JSC$17158_components_}W.JSC$17158_components_=k.split("/");k=W.JSC$17158_components_.length;k>2&&W.JSC$17158_components_[0]=="u"&&(I1t(W,W.JSC$17158_components_[0]+"/"+W.JSC$17158_components_[1]),
W.JSC$17158_components_.shift(),W.JSC$17158_components_.shift(),k-=2);if(k==0||k==4||k>7)return W.JSC$17156_valid_=!1,W.JSC$17158_components_;if(k==2)I1t(W,W.JSC$17158_components_[0]);else if(W.JSC$17158_components_[0]=="image")I1t(W,W.JSC$17158_components_[0]);else if(k==7||k==3)return W.JSC$17156_valid_=!1,W.JSC$17158_components_;if(k<=3){W.obfuscated_=!0;k==3&&(I1t(W,W.JSC$17158_components_[1]),W.JSC$17158_components_.shift(),--k);--k;C=W.JSC$17158_components_[k];var n=C.indexOf("=");n!=-1&&(W.JSC$17158_components_[k]=
C.substr(0,n),W.JSC$17158_components_.push(C.substr(n+1)))}}return W.JSC$17158_components_};
WU.prototype.isValid=function(){kG(this);return this.JSC$17156_valid_};
WU.prototype.isObfuscated=function(){kG(this);return this.obfuscated_};
var SQ$=function(W){kG(W);return W.isFreeformUrl_},C9=function(W){kG(W);
W.JSC$17158_pathPrefix_==void 0&&(W.JSC$17158_pathPrefix_=null);return W.JSC$17158_pathPrefix_},MV6=function(W){switch(kG(W).length){case 7:return!0;
case 6:return C9(W)==null;case 5:return!1;case 3:return!0;case 2:return C9(W)==null;case 1:return!1;default:return!1}},n9=function(W,k){if(SQ$(W))a:{switch(k){case 7:k=0;
break;case 4:if(!MV6(W)){W=null;break a}k=1;break;default:W=null;break a}W=kG(W)[k]}else if(W.isObfuscated())a:{var C=C9(W)!=null?1:0;switch(k){case 6:k=C;break;case 4:if(!MV6(W)){W=null;break a}k=1+C;break;default:W=null;break a}W=kG(W)[k]}else a:{C=C9(W)!=null?1:0;switch(k){case 0:k=C;break;case 1:k=1+C;break;case 2:k=2+C;break;case 3:k=3+C;break;case 4:if(!MV6(W)){W=null;break a}k=4+C;break;case 5:k=MV6(W)?1:0;k=4+C+k;break;default:W=null;break a}W=kG(W)[k]}return W};
WU.prototype.getOptions=function(){this.options_==void 0&&(this.options_=n9(this,4));return this.options_};var JfC=function(){};
JfC.prototype.parse=function(W,k){return new D2Y(W,k===void 0?!1:k)};
var D2Y=function(W,k){WU.call(this,W,k===void 0?!1:k)};
_.D(D2Y,WU);_.Pq(a6,E_);var Vy7;a6.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
a6.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=a6.superClass_.build.call(this),k=[];C9(this.parsedImageUrl_)!=null&&k.push(C9(this.parsedImageUrl_));var C=SQ$(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var n=this.parsedImageUrl_;n.obfuscatedData_==void 0&&(n.obfuscatedData_=n9(n,6));k.push(n.obfuscatedData_+(W?"="+W:""))}else if(C){n=k.push;var N=this.parsedImageUrl_;N.freeformUrlPath_===void 0&&(N.freeformUrlPath_=n9(N,
7));n.call(k,N.freeformUrlPath_);W&&k.push(W)}else n=k.push,N=this.parsedImageUrl_,N.obfuscatedGaiaId_==void 0&&(N.obfuscatedGaiaId_=n9(N,0)),n.call(k,N.obfuscatedGaiaId_),n=k.push,N=this.parsedImageUrl_,N.photoId_==void 0&&(N.photoId_=n9(N,1)),n.call(k,N.photoId_),n=k.push,N=this.parsedImageUrl_,N.imageVersion_==void 0&&(N.imageVersion_=n9(N,2)),n.call(k,N.imageVersion_),n=k.push,N=this.parsedImageUrl_,N.signature_==void 0&&(N.signature_=n9(N,3)),n.call(k,N.signature_),W&&k.push(W),W=k.push,n=this.parsedImageUrl_,
n.filename_==void 0&&(n.filename_=n9(n,5)),W.call(k,n.filename_);k=C?k.join("="):k.join("/");k=_.Gb(this.protocolPrefix_+this.JSC$17164_domain_+"/"+k+(this.JSC$17164_query_?"?"+this.JSC$17164_query_:"")).toString();k.startsWith("%3a//")&&(k=k.replace("%3a//","://"));return k};var QkC=_.iH(["viewBox"]),pR7=_.iH(["width"]),vDA=_.iH(["height"]),eRY=_.iH(["fill"]),skS=_.iH(["id"]),GAi=_.iH(["x"]),ywi=_.iH(["y"]);INi.prototype.getLength=function(){return this.parsedData.length};
INi.prototype.write=function(W){for(var k=0,C=this.parsedData.length;k<C;k++)W.put(this.parsedData[k],8)};
var sZE=function(W,k){var C=new INi(k);W.dataList.push(C);C=W.errorCorrectLevel;var n=1,N=encodeURI(k).toString().replace(/%[0-9a-fA-F]{2}/g,"a");k=N.length+(N.length!=k?3:0);N=0;for(var B=N8.length;N<=B;N++){var A=0;switch(C){case 1:A=N8[N][0];break;case 0:A=N8[N][1];break;case 3:A=N8[N][2];break;case 2:A=N8[N][3]}if(k<=A)break;else n++}if(n>N8.length)throw Error("uk");W.typeNumber=n;W.dataCache=null};
SR7.prototype.isDark=function(W,k){if(W<0||this.moduleCount<=W||k<0||this.moduleCount<=k)throw Error("mk`"+W+"`"+k);return this.modules[W][k]};
for(var GrA=function(W,k,C){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var n=0;n<W.moduleCount;n++){W.modules[n]=Array(W.moduleCount);for(var N=0;N<W.moduleCount;N++)W.modules[n][N]=null}$iE(W,0,0);$iE(W,W.moduleCount-7,0);$iE(W,0,W.moduleCount-7);n=Zlt[W.typeNumber-1];for(N=0;N<n.length;N++)for(var B=0;B<n.length;B++){var A=n[N],w=n[B];if(W.modules[A][w]==null)for(var x=-2;x<=2;x++)for(var E=-2;E<=2;E++)W.modules[A+x][w+E]=x==-2||x==2||E==-2||E==2||x==0&&E==0?!0:!1}for(n=
8;n<W.moduleCount-8;n++)W.modules[n][6]==null&&(W.modules[n][6]=n%2==0);for(n=8;n<W.moduleCount-8;n++)W.modules[6][n]==null&&(W.modules[6][n]=n%2==0);n=W.errorCorrectLevel<<3|C;for(N=n<<10;YG(N)-YG(1335)>=0;)N^=1335<<YG(N)-YG(1335);n=(n<<10|N)^21522;for(N=0;N<15;N++)B=!k&&(n>>N&1)==1,N<6?W.modules[N][8]=B:N<8?W.modules[N+1][8]=B:W.modules[W.moduleCount-15+N][8]=B;for(N=0;N<15;N++)B=!k&&(n>>N&1)==1,N<8?W.modules[8][W.moduleCount-N-1]=B:N<9?W.modules[8][15-N-1+1]=B:W.modules[8][15-N-1]=B;W.modules[W.moduleCount-
8][8]=!k;if(W.typeNumber>=7){n=W.typeNumber;for(N=n<<12;YG(N)-YG(7973)>=0;)N^=7973<<YG(N)-YG(7973);n=n<<12|N;for(N=0;N<18;N++)B=!k&&(n>>N&1)==1,W.modules[Math.floor(N/3)][N%3+W.moduleCount-8-3]=B;for(N=0;N<18;N++)B=!k&&(n>>N&1)==1,W.modules[N%3+W.moduleCount-8-3][Math.floor(N/3)]=B}if(W.dataCache==null){N=W.typeNumber;B=W.dataList;k=W.errorCorrectLevel;n=RRZ(N,k);if(n==void 0)throw Error("tk`"+N+"`"+k);A=n.length/3;k=[];for(w=0;w<A;w++){x=n[w*3];E=n[w*3+1];for(var a=n[w*3+2],X=0;X<x;X++)k.push(new MyE(E,
a))}n=new QZ6;for(A=0;A<B.length;A++)w=B[A],n.put(w.mode,4),n.put(w.getLength(),oDC(w.mode,N)),w.write(n);for(A=N=0;A<k.length;A++)N+=k[A].dataCount;if(n.length>N*8)throw Error("nk`"+n.length+"`"+N*8);for(n.length+4<=N*8&&n.put(0,4);n.length%8!=0;)ilt(n,!1);for(;!(n.length>=N*8);){n.put(236,8);if(n.length>=N*8)break;n.put(17,8)}B=N=E=0;A=Array(k.length);w=Array(k.length);for(x=0;x<k.length;x++){X=k[x].dataCount;var d=k[x].totalCount-X;N=Math.max(N,X);B=Math.max(B,d);A[x]=Array(X);for(a=0;a<A[x].length;a++)A[x][a]=
255&n.buffer[a+E];E+=X;a=d;X=new Xj([1],0);for(d=0;d<a;d++)X=X.multiply(new Xj([1,Tht(d)],0));a=X;X=(new Xj(A[x],a.getLength()-1)).mod(a);w[x]=Array(a.getLength()-1);for(a=0;a<w[x].length;a++)d=a+X.getLength()-w[x].length,w[x][a]=d>=0?X.get(d):0}for(a=n=0;a<k.length;a++)n+=k[a].totalCount;n=Array(n);for(a=E=0;a<N;a++)for(x=0;x<k.length;x++)a<A[x].length&&(n[E++]=A[x][a]);for(a=0;a<B;a++)for(x=0;x<k.length;x++)a<w[x].length&&(n[E++]=w[x][a]);W.dataCache=n}k=W.dataCache;n=-1;N=W.moduleCount-1;B=7;A=
0;for(w=W.moduleCount-1;w>0;w-=2)for(w==6&&w--;;){for(x=0;x<2;x++)W.modules[N][w-x]==null&&(E=!1,A<k.length&&(E=(k[A]>>>B&1)==1),qQT(C,N,w-x)&&(E=!E),W.modules[N][w-x]=E,B--,B==-1&&(A++,B=7));N+=n;if(N<0||W.moduleCount<=N){N-=n;n=-n;break}}},$iE=function(W,k,C){for(var n=-1;n<=7;n++)if(!(k+n<=-1||W.moduleCount<=k+n))for(var N=-1;N<=7;N++)C+N<=-1||W.moduleCount<=C+N||(W.modules[k+n][C+N]=0<=n&&n<=6&&(N==0||N==6)||0<=N&&N<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=N&&N<=4?!0:!1)},yf7=function(W){for(var k=0,
C=0,n=0;n<8;n++){GrA(W,!0,n);
var N=W;for(var B=N.moduleCount,A=0,w=0;w<B;w++)for(var x=0;x<B;x++){for(var E=0,a=N.isDark(w,x),X=-1;X<=1;X++)if(!(w+X<0||B<=w+X))for(var d=-1;d<=1;d++)x+d<0||B<=x+d||(X!=0||d!=0)&&a==N.isDark(w+X,x+d)&&E++;E>5&&(A+=3+E-5)}for(w=0;w<B-1;w++)for(x=0;x<B-1;x++)if(E=0,N.isDark(w,x)&&E++,N.isDark(w+1,x)&&E++,N.isDark(w,x+1)&&E++,N.isDark(w+1,x+1)&&E++,E==0||E==4)A+=3;for(w=0;w<B;w++)for(x=0;x<B-6;x++)N.isDark(w,x)&&!N.isDark(w,x+1)&&N.isDark(w,x+2)&&N.isDark(w,x+3)&&N.isDark(w,x+4)&&!N.isDark(w,x+5)&&
N.isDark(w,x+6)&&(A+=40);for(x=0;x<B;x++)for(w=0;w<B-6;w++)N.isDark(w,x)&&!N.isDark(w+1,x)&&N.isDark(w+2,x)&&N.isDark(w+3,x)&&N.isDark(w+4,x)&&!N.isDark(w+5,x)&&N.isDark(w+6,x)&&(A+=40);for(x=E=0;x<B;x++)for(w=0;w<B;w++)N.isDark(w,x)&&E++;N=A+=Math.abs(100*E/B/B-50)/5*10;if(n==0||k>N)k=N,C=n}return C},Zlt=[[],
[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]],YG=function(W){for(var k=0;W!=0;)k++,W>>>=1;return k},qQT=function(W,k,C){switch(W){case 0:return(k+C)%2==0;
case 1:return k%2==0;case 2:return C%3==0;case 3:return(k+C)%3==0;case 4:return(Math.floor(k/2)+Math.floor(C/3))%2==0;case 5:return k*C%2+k*C%3==0;case 6:return(k*C%2+k*C%3)%2==0;case 7:return(k*C%3+(k+C)%2)%2==0;default:throw Error("ok`"+W);}},oDC=function(W,k){if(1<=k&&k<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+W);}else if(k<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+W);}else if(k<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+W);}else throw Error("qk`"+k);},BU=function(W){if(W<1)throw Error("rk`"+W);
return ue1[W]},Tht=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return bJ[W]},bJ=Array(256),ue1=Array(256),UiS=0;UiS<8;UiS++)bJ[UiS]=1<<UiS;
for(var AO=8;AO<256;AO++)bJ[AO]=bJ[AO-4]^bJ[AO-5]^bJ[AO-6]^bJ[AO-8];for(var Ol$=0;Ol$<255;Ol$++)ue1[bJ[Ol$]]=Ol$;Xj.prototype.get=function(W){return this.num[W]};
Xj.prototype.getLength=function(){return this.num.length};
Xj.prototype.multiply=function(W){for(var k=Array(this.getLength()+W.getLength()-1),C=0;C<this.getLength();C++)for(var n=0;n<W.getLength();n++)k[C+n]^=Tht(BU(this.get(C))+BU(W.get(n)));return new Xj(k,0)};
Xj.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var k=BU(this.get(0))-BU(W.get(0)),C=Array(this.getLength()),n=0;n<this.getLength();n++)C[n]=this.get(n);for(n=0;n<W.getLength();n++)C[n]^=Tht(BU(W.get(n))+k);return(new Xj(C,0)).mod(W)};
var LuA=[[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]],RRZ=function(W,k){switch(k){case 1:return LuA[(W-1)*4];case 0:return LuA[(W-1)*4+1];case 3:return LuA[(W-1)*4+2];case 2:return LuA[(W-1)*4+3]}};
QZ6.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
QZ6.prototype.put=function(W,k){for(var C=0;C<k;C++)ilt(this,(W>>>k-C-1&1)==1)};
var ilt=function(W,k){var C=Math.floor(W.length/8);W.buffer.length<=C&&W.buffer.push(0);k&&(W.buffer[C]|=128>>>W.length%8);W.length++},N8=[[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]],eDC=function(){var W=function(k,C){this.JSC$17184__el=k;this.JSC$17184__htOption=C};
W.prototype.draw=function(k){function C(a,X){a=document.createElementNS("http://www.w3.org/2000/svg",a);for(var d in X)X.hasOwnProperty(d)&&(d==="href"?_.WQA(a,X[d]):_.H6([_.h8(QkC),_.h8(pR7),_.h8(vDA),_.h8(eRY),_.h8(skS),_.h8(GAi),_.h8(ywi)],a,d,X[d]));return a}
var n=this.JSC$17184__htOption,N=this.JSC$17184__el,B=k.moduleCount;this.clear();var A=C("svg",{viewBox:"0 0 "+String(B)+" "+String(B),width:"100%",height:"100%",fill:n.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});N.appendChild(A);A.appendChild(C("rect",{fill:n.colorLight,width:"100%",height:"100%"}));A.appendChild(C("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var w=0;w<B;w++)for(var x=0;x<B;x++)if(k.isDark(w,x)){var E=C("use",{x:String(w),y:String(x),href:"#template"});
A.appendChild(E)}};
W.prototype.clear=function(){for(;this.JSC$17184__el.hasChildNodes();)this.JSC$17184__el.removeChild(this.JSC$17184__el.lastChild)};
return W}(),vxE=document.documentElement.tagName.toLowerCase()==="svg"?eDC:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(k,C){this._bIsPainted=!1;
pGA();this.JSC$17184__htOption=C;this._elCanvas=document.createElement("canvas");this._elCanvas.width=C.width;this._elCanvas.height=C.height;k.appendChild(this._elCanvas);this.JSC$17184__el=k;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$17184__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var k=this._elCanvas.toDataURL("image/png");this._elImage.src=k;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(k,C){var n=this;n._fFail=C;n._fSuccess=k;n._bSupportDataURI===null?(k=_.wu("IMG"),C=function(){n._bSupportDataURI=!1;n._fFail&&n._fFail.call(n)},k.onabort=C,k.onerror=C,k.onload=function(){n._bSupportDataURI=!0;
n._fSuccess&&n._fSuccess.call(n)},k.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)};
W.prototype.draw=function(k){var C=this._oContext,n=this.JSC$17184__htOption,N=k.moduleCount,B=n.width/N,A=n.height/N,w=Math.round(B),x=Math.round(A);this._elImage.style.display="none";this.clear();for(var E=0;E<N;E++)for(var a=0;a<N;a++){var X=k.isDark(E,a),d=a*B,V=E*A;C.strokeStyle=X?n.colorDark:n.colorLight;C.lineWidth=1;C.fillStyle=X?n.colorDark:n.colorLight;C.fillRect(d,V,B,A);C.strokeRect(Math.floor(d)+.5,Math.floor(V)+.5,w,x);C.strokeRect(Math.ceil(d)-.5,Math.ceil(V)-.5,w,x)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(k){return k?Math.floor(k*1E3)/1E3:k};
return W}():function(){var W=function(k,C){this.JSC$17184__el=k;
this.JSC$17184__htOption=C};
W.prototype.draw=function(k){for(var C=this.JSC$17184__htOption,n=this.JSC$17184__el,N=k.moduleCount,B=Math.floor(C.width/N),A=Math.floor(C.height/N),w=['<table style="border:0;border-collapse:collapse;">'],x=0;x<N;x++){w.push("<tr>");for(var E=0;E<N;E++)w.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+B+"px;height:"+A+"px;background-color:"+(k.isDark(x,E)?C.colorDark:C.colorLight)+';"></td>');w.push("</tr>")}w.push("</table>");k=w.join("");k=_.Z78(_.oBx,k);_.jN(n,k);
k=n.childNodes[0];N=(C.width-k.offsetWidth)/2;B=(C.height-k.offsetHeight)/2;N>0&&B>0&&(k.style.margin=B+"px "+N+"px")};
W.prototype.clear=function(){this.JSC$17184__el.textContent=""};
return W}();
$2t.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17187__android||this.JSC$17187__android>=3)&&this._oDrawing.makeImage()};
$2t.prototype.clear=function(){this._oDrawing.clear()};
_.NX.QRCode=$2t;var jk6={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Fx=function(){};
Fx.prototype.stringify=function(W){return _.NX.JSON.stringify(W,void 0)};
Fx.prototype.parse=function(W){return _.NX.JSON.parse(W,void 0)};var Hl1=function(){_.BS.call(this,"z")};
_.Pq(Hl1,_.BS);var rw1=function(){_.BS.call(this,"y")};
_.Pq(rw1,_.BS);var gDE=null,Pk1=function(){return gDE=gDE||new _.xT},KuT=function(W){_.BS.call(this,"serverreachability",W)};
_.Pq(KuT,_.BS);var wf=function(W){var k=Pk1();k.dispatchEvent(new KuT(k,W))},hRT=function(W){_.BS.call(this,"statevent",W)};
_.Pq(hRT,_.BS);var xG=function(W){var k=Pk1();k.dispatchEvent(new hRT(k,W))},W1t=function(W,k,C,n){_.BS.call(this,"timingevent",W);
this.size=k;this.rtt=C;this.retries=n};
_.Pq(W1t,_.BS);var kPZ=function(W,k,C){var n=Pk1();n.dispatchEvent(new W1t(n,W,k,C))},lJ=function(W,k){if(typeof W!=="function")throw Error("vk");
return _.NX.setTimeout(function(){W()},k)};var tO=function(){this.redactEnabled_=!0};
tO.prototype.disableRedact=function(){this.redactEnabled_=!1};
var CyY=function(W,k,C,n,N,B){W.info(function(){if(W.redactEnabled_)if(B){var A="";for(var w=B.split("&"),x=0;x<w.length;x++){var E=w[x].split("=");if(E.length>1){var a=E[0];E=E[1];var X=a.split("_");A=X.length>=2&&X[1]=="type"?A+(a+"="+E+"&"):A+(a+"=redacted&")}}}else A=null;else A=B;return"XMLHTTP REQ ("+n+") [attempt "+N+"]: "+k+"\n"+C+"\n"+A})},n$$=function(W,k,C,n,N,B,A){W.info(function(){return"XMLHTTP RESP ("+n+") [ attempt "+N+"]: "+k+"\n"+C+"\n"+B+" "+A})},E8=function(W,k,C,n){W.info(function(){return"XMLHTTP TEXT ("+
k+"): "+NL7(W,C)+(n?" "+n:"")})},Y9i=function(W,k){W.info(function(){return"TIMEOUT: "+k})};
tO.prototype.debug=function(){};
tO.prototype.info=function(){};
tO.prototype.warning=function(){};
var NL7=function(W,k){if(!W.redactEnabled_)return k;if(!k)return null;try{var C=JSON.parse(k);if(C)for(var n=0;n<C.length;n++)if(Array.isArray(C[n])){var N=C[n];if(!(N.length<2)){var B=N[1];if(Array.isArray(B)&&!(B.length<1)){var A=B[0];if(A!="noop"&&A!="stop"&&A!="close")for(var w=1;w<B.length;w++)B[w]=""}}}return(0,_.dm)(C)}catch(x){return W.debug("Exception parsing expected JS array - probably was not JS"),k}};var a2=function(W,k,C,n,N){this.JSC$17209_channel_=W;this.JSC$17209_channelDebug_=k;this.sid_=C;this.JSC$17209_rid_=n;this.JSC$17209_retryId_=N||1;this.JSC$17209_eventHandler_=new _.j9(this);this.timeout_=45E3;this.JSC$17209_extraHeaders_=null;this.JSC$17209_successful_=!1;this.JSC$17209_postData_=this.JSC$17209_requestUri_=this.JSC$17209_baseUri_=this.JSC$17209_type_=this.JSC$17209_requestStartTime_=this.JSC$17209_watchDogTimeoutTime_=this.JSC$17209_watchDogTimerId_=null;this.JSC$17209_pendingMessages_=
[];this.JSC$17209_xmlHttp_=null;this.JSC$17209_xmlHttpChunkStart_=0;this.JSC$17209_lastError_=this.JSC$17209_verb_=null;this.JSC$17209_lastStatusCode_=-1;this.JSC$17209_cancelled_=!1;this.JSC$17209_readyStateChangeThrottleMs_=0;this.JSC$17209_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new BLY},BLY=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},bRS=function(W,k){switch(W){case 0:return"Non-200 return code ("+k+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},AnT={},F1S={};
a2.prototype.setTimeout=function(W){this.timeout_=W};
var xM7=function(W,k,C){W.JSC$17209_type_=1;W.JSC$17209_baseUri_=_.PS(k.clone());W.JSC$17209_postData_=C;W.decodeChunks_=!0;wL7(W,null)},wL7=function(W,k){W.JSC$17209_requestStartTime_=Date.now();
lpB(W);W.JSC$17209_requestUri_=W.JSC$17209_baseUri_.clone();PA(W.JSC$17209_requestUri_,"t",W.JSC$17209_retryId_);W.JSC$17209_xmlHttpChunkStart_=0;var C=W.JSC$17209_channel_.JSC$17228_supportsCrossDomainXhrs_;W.fetchResponseState_=new BLY;W.JSC$17209_xmlHttp_=ta1(W.JSC$17209_channel_,C?k:null,!W.JSC$17209_postData_);W.JSC$17209_readyStateChangeThrottleMs_>0&&(W.JSC$17209_readyStateChangeThrottle_=new _.Ox((0,_.fN)(W.JSC$17213_xmlHttpHandler_,W,W.JSC$17209_xmlHttp_),W.JSC$17209_readyStateChangeThrottleMs_));
W.JSC$17209_eventHandler_.listen(W.JSC$17209_xmlHttp_,"readystatechange",W.JSC$17213_readyStateChangeHandler_);k=W.JSC$17209_extraHeaders_?_.JU.clone(W.JSC$17209_extraHeaders_):{};W.JSC$17209_postData_?(W.JSC$17209_verb_||(W.JSC$17209_verb_="POST"),k["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17209_xmlHttp_.send(W.JSC$17209_requestUri_,W.JSC$17209_verb_,W.JSC$17209_postData_,k)):(W.JSC$17209_verb_="GET",W.JSC$17209_xmlHttp_.send(W.JSC$17209_requestUri_,W.JSC$17209_verb_,null,k));wf(1);
CyY(W.JSC$17209_channelDebug_,W.JSC$17209_verb_,W.JSC$17209_requestUri_,W.JSC$17209_rid_,W.JSC$17209_retryId_,W.JSC$17209_postData_)};
a2.prototype.JSC$17213_readyStateChangeHandler_=function(W){W=W.target;var k=this.JSC$17209_readyStateChangeThrottle_;k&&_.zq(W)==3?(this.JSC$17209_channelDebug_.debug("Throttling readystatechange."),k.fire()):this.JSC$17213_xmlHttpHandler_(W)};
a2.prototype.JSC$17213_xmlHttpHandler_=function(W){try{W==this.JSC$17209_xmlHttp_?E$$(this):this.JSC$17209_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(k){this.JSC$17209_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),apE(this)}finally{}};
var E$$=function(W){var k=_.zq(W.JSC$17209_xmlHttp_),C=W.JSC$17209_xmlHttp_.JSC$7668_lastErrorCode_,n=W.JSC$17209_xmlHttp_.getStatus();if(!(k<3||k==3&&!apE(W))){W.JSC$17209_cancelled_||k!=4||C==7||(C==8||n<=0?wf(3):wf(2));XLi(W);var N=W.JSC$17209_xmlHttp_.getStatus();W.JSC$17209_lastStatusCode_=N;C=fpt(W);apE(W)||W.JSC$17209_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$17209_requestUri_+" status "+N});
W.JSC$17209_successful_=N==200;n$$(W.JSC$17209_channelDebug_,W.JSC$17209_verb_,W.JSC$17209_requestUri_,W.JSC$17209_rid_,W.JSC$17209_retryId_,k,N);if(W.JSC$17209_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(n=dM7(W))E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,n,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,mMt(W,n);else{W.JSC$17209_successful_=!1;W.JSC$17209_lastError_=3;xG(12);W.JSC$17209_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$17209_rid_+")");Xx(W);f9(W);return}W.decodeChunks_?z96(W,k,C):(E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,C,null),mMt(W,C));k==4&&Xx(W);W.JSC$17209_successful_&&!W.JSC$17209_cancelled_&&(k==4?DMZ(W.JSC$17209_channel_,W):(W.JSC$17209_successful_=!1,lpB(W)))}else bFT(W.JSC$17209_xmlHttp_),N==400&&C.indexOf("Unknown SID")>0?(W.JSC$17209_lastError_=3,xG(12),W.JSC$17209_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$17209_rid_+")")):(W.JSC$17209_lastError_=0,xG(13),W.JSC$17209_channelDebug_.warning("XMLHTTP Bad status "+
N+" ("+W.JSC$17209_rid_+")")),Xx(W),f9(W)}},dM7=function(W){return W.JSC$17209_xmlHttp_&&(W=YW(W.JSC$17209_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.tK(W)?W:null},fpt=function(W){if(!VaE(W))return W.JSC$17209_xmlHttp_.getResponseText();
var k=W.JSC$17209_xmlHttp_.getResponse();if(k==="")return"";var C="",n=k.length,N=_.zq(W.JSC$17209_xmlHttp_)==4;if(!W.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Xx(W),f9(W),"";W.fetchResponseState_.textDecoder=new _.NX.TextDecoder}for(var B=0;B<n;B++)W.fetchResponseState_.responseArrivedForFetch=!0,C+=W.fetchResponseState_.textDecoder.decode(k[B],{stream:!(N&&B==n-1)});k.length=0;W.fetchResponseState_.responseBuffer+=C;W.JSC$17209_xmlHttpChunkStart_=0;return W.fetchResponseState_.responseBuffer},
apE=function(W){return W.JSC$17209_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$17209_xmlHttp_.getResponseText()&&!W.JSC$17209_xmlHttp_.getResponse()):!1},VaE=function(W){return W.JSC$17209_xmlHttp_?W.JSC$17209_verb_=="GET"&&W.JSC$17209_type_!=2&&W.JSC$17209_channel_.usesFetchStreams_:!1},z96=function(W,k,C){for(var n=!0,N;!W.JSC$17209_cancelled_&&W.JSC$17209_xmlHttpChunkStart_<C.length;)if(N=Jni(W,C),N==F1S){k==4&&(W.JSC$17209_lastError_=4,xG(14),n=!1);
E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,null,"[Incomplete Response]");break}else if(N==AnT){W.JSC$17209_lastError_=4;xG(15);E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,C,"[Invalid Chunk]");n=!1;break}else E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,N,null),mMt(W,N);VaE(W)&&W.JSC$17209_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$17209_xmlHttpChunkStart_),W.JSC$17209_xmlHttpChunkStart_=0);k!=4||C.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$17209_lastError_=1,xG(16),n=!1);W.JSC$17209_successful_=W.JSC$17209_successful_&&n;n?C.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,k=W.JSC$17209_channel_,k.JSC$17228_backChannelRequest_==W&&k.detectBufferingProxy_&&!k.bpDetectionDone_&&(k.JSC$17228_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+C.length),cnB(k),k.bpDetectionDone_=!0,xG(11))):(E8(W.JSC$17209_channelDebug_,W.JSC$17209_rid_,C,"[Invalid Chunked Response]"),Xx(W),f9(W))},Jni=function(W,k){var C=
W.JSC$17209_xmlHttpChunkStart_,n=k.indexOf("\n",C);
if(n==-1)return F1S;C=Number(k.substring(C,n));if(isNaN(C))return AnT;n+=1;if(n+C>k.length)return F1S;k=k.slice(n,n+C);W.JSC$17209_xmlHttpChunkStart_=n+C;return k};
a2.prototype.cancel=function(){this.JSC$17209_cancelled_=!0;Xx(this)};
var lpB=function(W){W.JSC$17209_watchDogTimeoutTime_=Date.now()+W.timeout_;Ip1(W,W.timeout_)},Ip1=function(W,k){if(W.JSC$17209_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17209_watchDogTimerId_=lJ((0,_.fN)(W.JSC$17213_onWatchDogTimeout_,W),k)},XLi=function(W){W.JSC$17209_watchDogTimerId_&&(_.NX.clearTimeout(W.JSC$17209_watchDogTimerId_),W.JSC$17209_watchDogTimerId_=null)};
a2.prototype.JSC$17213_onWatchDogTimeout_=function(){this.JSC$17209_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17209_watchDogTimeoutTime_>=0?(Y9i(this.JSC$17209_channelDebug_,this.JSC$17209_requestUri_),this.JSC$17209_type_!=2&&(wf(3),xG(17)),Xx(this),this.JSC$17209_lastError_=2,f9(this)):(this.JSC$17209_channelDebug_.warning("WatchDog timer called too early"),Ip1(this,this.JSC$17209_watchDogTimeoutTime_-W))};
var f9=function(W){W.JSC$17209_channel_.state_==0||W.JSC$17209_cancelled_||DMZ(W.JSC$17209_channel_,W)},Xx=function(W){XLi(W);
_.LU(W.JSC$17209_readyStateChangeThrottle_);W.JSC$17209_readyStateChangeThrottle_=null;W.JSC$17209_eventHandler_.removeAll();if(W.JSC$17209_xmlHttp_){var k=W.JSC$17209_xmlHttp_;W.JSC$17209_xmlHttp_=null;k.abort();k.dispose()}};
a2.prototype.getLastError=function(){return this.JSC$17209_lastError_};
var mMt=function(W,k){try{var C=W.JSC$17209_channel_;if(C.state_!=0&&(C.JSC$17228_backChannelRequest_==W||S9C(C.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&S9C(C.forwardChannelRequestPool_,W)&&C.state_==3){try{var n=C.wireCodec_.JSC$17223_parser_.parse(k)}catch(w){n=null}if(Array.isArray(n)&&n.length==3){k=n;if(k[0]==0)a:if(C.JSC$17228_channelDebug_.debug("Server claims our backchannel is missing."),C.JSC$17228_backChannelTimerId_)C.JSC$17228_channelDebug_.debug("But we are currently starting the request.");
else{if(C.JSC$17228_backChannelRequest_)if(C.JSC$17228_backChannelRequest_.JSC$17209_requestStartTime_+3E3<W.JSC$17209_requestStartTime_)MaS(C),Qp7(C);else break a;else C.JSC$17228_channelDebug_.warning("We do not have a BackChannel established");pLT(C);xG(18)}else{C.JSC$17228_lastPostResponseArrayId_=k[1];var N=C.JSC$17228_lastPostResponseArrayId_-C.JSC$17228_lastArrayId_;if(0<N){var B=k[2];C.JSC$17228_channelDebug_.debug(B+" bytes (in "+N+" arrays) are outstanding on the BackChannel");B<37500&&
C.enableStreaming_&&C.JSC$17228_backChannelRetryCount_==0&&!C.JSC$17228_deadBackChannelTimerId_&&(C.JSC$17228_deadBackChannelTimerId_=lJ((0,_.fN)(C.JSC$17230_onBackChannelDead_,C),6E3))}}if(v$6(C.forwardChannelRequestPool_)<=1&&C.forwardChannelFlushedCallback_){try{C.forwardChannelFlushedCallback_()}catch(w){}C.forwardChannelFlushedCallback_=void 0}}else C.JSC$17228_channelDebug_.debug("Bad POST response data returned"),df(C,11)}else if((W.initialResponseDecoded_||C.JSC$17228_backChannelRequest_==
W)&&MaS(C),!_.tK(k)){var A=C.wireCodec_.JSC$17223_parser_.parse(k);C.onInput_(A,W)}wf(4)}catch(w){}};var e97=function(W,k){this.JSC$17216_mapId=W;this.map=k;this.context=null};var sp7=function(W){this.maxPoolSizeConfigured_=W||10;_.NX.PerformanceNavigationTiming?(W=_.NX.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.NX.chrome&&_.NX.chrome.loadTimes&&_.NX.chrome.loadTimes()&&_.NX.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17219_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17219_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17219_request_=null;this.JSC$17219_pendingMessages_=
[]},GP$=function(W){return W.JSC$17219_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$17219_maxSize_:!1},v$6=function(W){return W.JSC$17219_request_?1:W.requestPool_?W.requestPool_.size:0},S9C=function(W,k){return W.JSC$17219_request_?W.JSC$17219_request_==k:W.requestPool_?W.requestPool_.has(k):!1},ynZ=function(W,k){W.requestPool_?W.requestPool_.add(k):W.JSC$17219_request_=k},$MC=function(W,k){W.JSC$17219_request_&&W.JSC$17219_request_==k?W.JSC$17219_request_=null:W.requestPool_&&W.requestPool_.has(k)&&
W.requestPool_.delete(k)};
sp7.prototype.cancel=function(){this.JSC$17219_pendingMessages_=ZRE(this);if(this.JSC$17219_request_)this.JSC$17219_request_.cancel(),this.JSC$17219_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.b(this.requestPool_.values()),k=W.next();!k.done;k=W.next())k.value.cancel();this.requestPool_.clear()}};
var ZRE=function(W){if(W.JSC$17219_request_!=null)return W.JSC$17219_pendingMessages_.concat(W.JSC$17219_request_.JSC$17209_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var k=W.JSC$17219_pendingMessages_;W=_.b(W.requestPool_.values());for(var C=W.next();!C.done;C=W.next())k=k.concat(C.value.JSC$17209_pendingMessages_);return k}return _.T4(W.JSC$17219_pendingMessages_)},R97=function(W,k){W.JSC$17219_pendingMessages_=W.JSC$17219_pendingMessages_.concat(k)};var o$7=function(W,k){var C=new tO;C.debug("TestLoadImage: loading "+W);if(_.NX.Image){var n=new Image;n.onload=_.lW(mC,C,"TestLoadImage: loaded",!0,k,n);n.onerror=_.lW(mC,C,"TestLoadImage: error",!1,k,n);n.onabort=_.lW(mC,C,"TestLoadImage: abort",!1,k,n);n.ontimeout=_.lW(mC,C,"TestLoadImage: timeout",!1,k,n);_.NX.setTimeout(function(){if(n.ontimeout)n.ontimeout()},1E4);
n.src=W}else k(!1)},iRY=function(W,k){var C=new tO,n=new AbortController,N=setTimeout(function(){n.abort();
mC(C,"TestPingServer: timeout",!1,k)},1E4);
fetch(W,{signal:n.signal}).then(function(B){clearTimeout(N);B.ok?mC(C,"TestPingServer: ok",!0,k):mC(C,"TestPingServer: server error",!1,k)}).catch(function(){clearTimeout(N);
mC(C,"TestPingServer: error",!1,k)})},mC=function(W,k,C,n,N){try{W.debug(k),N&&(N.onload=null,N.onerror=null,N.onabort=null,N.ontimeout=null),n(C)}catch(B){}};var TLS=function(){this.JSC$17223_parser_=new Fx},q9A=function(W,k,C){var n=C||"";
try{_.vnC(W,function(N,B){var A=N;_.O2(N)&&(A=(0,_.dm)(N));k.push(n+B+"="+encodeURIComponent(A))})}catch(N){throw k.push(n+"type="+encodeURIComponent("_badmap")),N;
}};var zV=function(W,k,C){return C&&C.internalChannelParams?C.internalChannelParams[W]||k:k},Do=function(W){this.serverVersion_=0;
this.JSC$17228_outgoingMaps_=[];this.JSC$17228_channelDebug_=new tO;this.JSC$17228_hostPrefix_=this.JSC$17228_backChannelUri_=this.JSC$17228_forwardChannelUri_=this.JSC$17228_path_=this.JSC$17228_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17228_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17228_extraHeaders_=null;this.JSC$17228_nextMapId_=this.JSC$17228_nextRid_=0;this.JSC$17228_failFast_=zV("failFast",!1,W);this.enableStreaming_=this.JSC$17228_deadBackChannelTimerId_=
this.JSC$17228_backChannelTimerId_=this.JSC$17228_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17228_lastPostResponseArrayId_=this.JSC$17228_lastArrayId_=-1;this.JSC$17228_backChannelAttemptId_=this.JSC$17228_backChannelRetryCount_=this.JSC$17228_forwardChannelRetryCount_=0;this.JSC$17228_baseRetryDelayMs_=zV("baseRetryDelayMs",5E3,W);this.JSC$17228_retryDelaySeedMs_=zV("retryDelaySeedMs",1E4,W);this.JSC$17228_forwardChannelMaxRetries_=
zV("forwardChannelMaxRetries",2,W);this.JSC$17228_forwardChannelRequestTimeoutMs_=zV("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$17228_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17228_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new sp7(W&&W.concurrentRequestLimit);this.wireCodec_=new TLS;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17228_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$17228_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Do.prototype.JSC$17230_channelVersion_=8;Do.prototype.state_=1;
Do.prototype.connect=function(W,k,C,n){this.JSC$17228_channelDebug_.debug("connect()");xG(0);this.JSC$17228_path_=W;this.JSC$17228_extraParams_=k||{};C&&n!==void 0&&(this.JSC$17228_extraParams_.OSID=C,this.JSC$17228_extraParams_.OAID=n);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17228_channelDebug_.debug("connectChannel_()");W=uq7(this,null,this.JSC$17228_path_);this.JSC$17228_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$17228_forwardChannelUri_=W;UMS(this)};
Do.prototype.disconnect=function(){this.JSC$17228_channelDebug_.debug("disconnect()");OR7(this);if(this.state_==3){var W=this.JSC$17228_nextRid_++,k=this.JSC$17228_forwardChannelUri_.clone();_.$L(k,"SID",this.sid_);_.$L(k,"RID",W);_.$L(k,"TYPE","terminate");V1(this,k);W=new a2(this,this.JSC$17228_channelDebug_,this.sid_,W);W.JSC$17209_type_=2;W.JSC$17209_baseUri_=_.PS(k.clone());k=!1;if(_.NX.navigator&&_.NX.navigator.sendBeacon)try{k=_.NX.navigator.sendBeacon(W.JSC$17209_baseUri_.toString(),"")}catch(C){}!k&&
_.NX.Image&&((new Image).src=W.JSC$17209_baseUri_,k=!0);k||(W.JSC$17209_xmlHttp_=ta1(W.JSC$17209_channel_,null),W.JSC$17209_xmlHttp_.send(W.JSC$17209_baseUri_));W.JSC$17209_requestStartTime_=Date.now();lpB(W)}L1C(this)};
var Qp7=function(W){W.JSC$17228_backChannelRequest_&&(cnB(W),W.JSC$17228_backChannelRequest_.cancel(),W.JSC$17228_backChannelRequest_=null)},OR7=function(W){Qp7(W);
W.JSC$17228_backChannelTimerId_&&(_.NX.clearTimeout(W.JSC$17228_backChannelTimerId_),W.JSC$17228_backChannelTimerId_=null);MaS(W);W.forwardChannelRequestPool_.cancel();W.JSC$17228_forwardChannelTimerId_&&(typeof W.JSC$17228_forwardChannelTimerId_==="number"&&_.NX.clearTimeout(W.JSC$17228_forwardChannelTimerId_),W.JSC$17228_forwardChannelTimerId_=null)};
Do.prototype.getState=function(){return this.state_};
var UMS=function(W){GP$(W.forwardChannelRequestPool_)||W.JSC$17228_forwardChannelTimerId_||(W.JSC$17228_forwardChannelTimerId_=!0,_.tb(W.JSC$17230_onStartForwardChannelTimer_,W),W.JSC$17228_forwardChannelRetryCount_=0)},HRZ=function(W,k){if(v$6(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$17219_maxSize_-(W.JSC$17228_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$17228_forwardChannelTimerId_)return W.JSC$17228_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$17228_outgoingMaps_=k.JSC$17209_pendingMessages_.concat(W.JSC$17228_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$17228_forwardChannelRetryCount_>=(W.JSC$17228_failFast_?0:W.JSC$17228_forwardChannelMaxRetries_))return!1;W.JSC$17228_channelDebug_.debug("Going to retry POST");W.JSC$17228_forwardChannelTimerId_=lJ((0,_.fN)(W.JSC$17230_onStartForwardChannelTimer_,
W,k),jpt(W,W.JSC$17228_forwardChannelRetryCount_));W.JSC$17228_forwardChannelRetryCount_++;return!0};
Do.prototype.JSC$17230_onStartForwardChannelTimer_=function(W){if(this.JSC$17228_forwardChannelTimerId_)if(this.JSC$17228_forwardChannelTimerId_=null,this.JSC$17228_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$17228_channelDebug_.debug("open_()");this.JSC$17228_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$17228_nextRid_++;var k=new a2(this,this.JSC$17228_channelDebug_,"",W),C=this.JSC$17228_extraHeaders_;this.initHeaders_&&(C?(C=_.JU.clone(C),_.JU.extend(C,this.initHeaders_)):
C=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(k.JSC$17209_extraHeaders_=C,C=null);var n;if(this.fastHandshake_)a:{for(var N=n=0;N<this.JSC$17228_outgoingMaps_.length;N++){b:{var B=this.JSC$17228_outgoingMaps_[N];if("__data__"in B.map&&(B=B.map.__data__,typeof B==="string")){B=B.length;break b}B=void 0}if(B===void 0)break;n+=B;if(n>4096){n=N;break a}if(n===4096||N===this.JSC$17228_outgoingMaps_.length-1){n=N+1;break a}}n=1E3}else n=1E3;n=rnS(this,k,n);
N=this.JSC$17228_forwardChannelUri_.clone();_.$L(N,"RID",W);_.$L(N,"CVER",22);this.httpSessionIdParam_&&_.$L(N,"X-HTTP-Session-Id",this.httpSessionIdParam_);V1(this,N);C&&(this.encodeInitMessageHeaders_?n="headers="+_.vv(FV7(C))+"&"+n:this.httpHeadersOverwriteParam_&&wOY(N,this.httpHeadersOverwriteParam_,C));ynZ(this.forwardChannelRequestPool_,k);this.blockingHandshake_&&_.$L(N,"TYPE","init");this.fastHandshake_?(_.$L(N,"$req",n),_.$L(N,"SID","null"),k.decodeInitialResponse_=!0,xM7(k,N,null)):xM7(k,
N,n);this.state_=2}}else this.state_==3&&(W?g$i(this,W):this.JSC$17228_outgoingMaps_.length==0?this.JSC$17228_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):GP$(this.forwardChannelRequestPool_)||(g$i(this),this.JSC$17228_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var g$i=function(W,k){var C;k?C=k.JSC$17209_rid_:C=W.JSC$17228_nextRid_++;var n=W.JSC$17228_forwardChannelUri_.clone();_.$L(n,"SID",W.sid_);_.$L(n,"RID",C);_.$L(n,"AID",W.JSC$17228_lastArrayId_);V1(W,n);W.httpHeadersOverwriteParam_&&W.JSC$17228_extraHeaders_&&wOY(n,W.httpHeadersOverwriteParam_,W.JSC$17228_extraHeaders_);C=new a2(W,W.JSC$17228_channelDebug_,W.sid_,C,W.JSC$17228_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(C.JSC$17209_extraHeaders_=W.JSC$17228_extraHeaders_);k&&
(W.JSC$17228_outgoingMaps_=k.JSC$17209_pendingMessages_.concat(W.JSC$17228_outgoingMaps_));k=rnS(W,C,1E3);C.setTimeout(Math.round(W.JSC$17228_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$17228_forwardChannelRequestTimeoutMs_*.5*Math.random()));ynZ(W.forwardChannelRequestPool_,C);xM7(C,n,k)},V1=function(W,k){W.JSC$17228_extraParams_&&_.JU.forEach(W.JSC$17228_extraParams_,function(C,n){_.$L(k,n,C)});
W.handler_&&_.vnC({},function(C,n){_.$L(k,n,C)})},rnS=function(W,k,C){C=Math.min(W.JSC$17228_outgoingMaps_.length,C);
var n=W.handler_?(0,_.fN)(W.handler_.JSC$17234_badMapError,W.handler_,W):null;a:{for(var N=W.JSC$17228_outgoingMaps_,B=-1;;){var A=["count="+C];B==-1?C>0?(B=N[0].JSC$17216_mapId,A.push("ofs="+B)):B=0:A.push("ofs="+B);for(var w=!0,x=0;x<C;x++){var E=N[x].JSC$17216_mapId,a=N[x].map;E-=B;if(E<0)B=Math.max(0,N[x].JSC$17216_mapId-100),w=!1;else try{q9A(a,A,"req"+E+"_")}catch(X){n&&n(a)}}if(w){n=A.join("&");break a}}n=void 0}W=W.JSC$17228_outgoingMaps_.splice(0,C);k.JSC$17209_pendingMessages_=W;return n},
Py1=function(W){W.JSC$17228_backChannelRequest_||W.JSC$17228_backChannelTimerId_||(W.JSC$17228_backChannelAttemptId_=1,_.tb(W.JSC$17230_onStartBackChannelTimer_,W),W.JSC$17228_backChannelRetryCount_=0)},pLT=function(W){if(W.JSC$17228_backChannelRequest_||W.JSC$17228_backChannelTimerId_||W.JSC$17228_backChannelRetryCount_>=3)return!1;
W.JSC$17228_channelDebug_.debug("Going to retry GET");W.JSC$17228_backChannelAttemptId_++;W.JSC$17228_backChannelTimerId_=lJ((0,_.fN)(W.JSC$17230_onStartBackChannelTimer_,W),jpt(W,W.JSC$17228_backChannelRetryCount_));W.JSC$17228_backChannelRetryCount_++;return!0};
Do.prototype.JSC$17230_onStartBackChannelTimer_=function(){this.JSC$17228_backChannelTimerId_=null;K17(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17228_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17228_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17228_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=2*this.handshakeRttMs_;this.JSC$17228_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=lJ((0,_.fN)(this.onBpDetectionTimer_,
this),W)}};
Do.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17228_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17228_backChannelRequest_.JSC$17209_xmlHttp_!=null){var W=this.JSC$17228_backChannelRequest_.JSC$17209_xmlHttp_.getResponseText();W&&this.JSC$17228_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$17228_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;xG(10);Qp7(this);K17(this)}else this.JSC$17228_channelDebug_.warning("Invalid operation.")};
var cnB=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$17228_channelDebug_.debug("Cancel the BP detection timer."),_.NX.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},K17=function(W){W.JSC$17228_channelDebug_.debug("Creating new HttpRequest");
W.JSC$17228_backChannelRequest_=new a2(W,W.JSC$17228_channelDebug_,W.sid_,"rpc",W.JSC$17228_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$17228_backChannelRequest_.JSC$17209_extraHeaders_=W.JSC$17228_extraHeaders_);W.JSC$17228_backChannelRequest_.JSC$17209_readyStateChangeThrottleMs_=0;var k=W.JSC$17228_backChannelUri_.clone();_.$L(k,"RID","rpc");_.$L(k,"SID",W.sid_);_.$L(k,"AID",W.JSC$17228_lastArrayId_);_.$L(k,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.$L(k,"TO",W.longPollingTimeout_);_.$L(k,"TYPE","xmlhttp");V1(W,k);W.httpHeadersOverwriteParam_&&W.JSC$17228_extraHeaders_&&wOY(k,W.httpHeadersOverwriteParam_,W.JSC$17228_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$17228_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var C=W.JSC$17228_backChannelRequest_,n=W.JSC$17228_hostPrefix_;C.JSC$17209_type_=1;C.JSC$17209_baseUri_=_.PS(k.clone());C.JSC$17209_postData_=null;C.decodeChunks_=!0;wL7(C,n);W.JSC$17228_channelDebug_.debug("New Request created")};
Do.prototype.JSC$17230_onBackChannelDead_=function(){this.JSC$17228_deadBackChannelTimerId_!=null&&(this.JSC$17228_deadBackChannelTimerId_=null,Qp7(this),pLT(this),xG(19))};
var MaS=function(W){W.JSC$17228_deadBackChannelTimerId_!=null&&(_.NX.clearTimeout(W.JSC$17228_deadBackChannelTimerId_),W.JSC$17228_deadBackChannelTimerId_=null)},DMZ=function(W,k){W.JSC$17228_channelDebug_.debug("Request complete");
var C=null;if(W.JSC$17228_backChannelRequest_==k){MaS(W);cnB(W);W.JSC$17228_backChannelRequest_=null;var n=2}else if(S9C(W.forwardChannelRequestPool_,k))C=k.JSC$17209_pendingMessages_,$MC(W.forwardChannelRequestPool_,k),n=1;else return;if(W.state_!=0)if(k.JSC$17209_successful_)n==1?(kPZ(k.JSC$17209_postData_?k.JSC$17209_postData_.length:0,Date.now()-k.JSC$17209_requestStartTime_,W.JSC$17228_forwardChannelRetryCount_),UMS(W)):Py1(W);else{var N=k.JSC$17209_lastStatusCode_,B=k.getLastError();if(B==3||
B==0&&N>0)W.JSC$17228_channelDebug_.debug("Not retrying due to error type"),N>200&&(W.errorResponseStatusCode_=k.JSC$17209_lastStatusCode_);else{W.JSC$17228_channelDebug_.debug(function(){return"Maybe retrying, last error: "+bRS(B,W.errorResponseStatusCode_)});
if(n==1&&HRZ(W,k)||n==2&&pLT(W))return;W.JSC$17228_channelDebug_.debug("Exceeded max number of retries")}C&&C.length>0&&R97(W.forwardChannelRequestPool_,C);W.JSC$17228_channelDebug_.debug("Error: HTTP request failed");switch(B){case 1:df(W,5);break;case 4:df(W,10);break;case 3:df(W,6);break;default:df(W,2)}}},jpt=function(W,k){var C=W.JSC$17228_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$17228_retryDelaySeedMs_);
W.isActive()||(W.JSC$17228_channelDebug_.debug("Inactive channel"),C*=2);return C*k};
Do.prototype.onInput_=function(W,k){for(var C=0;C<W.length;C++){var n=W[C];this.JSC$17228_lastArrayId_=n[0];n=n[1];if(this.state_==2)if(n[0]=="c"){this.sid_=n[1];this.JSC$17228_hostPrefix_=n[2];var N=n[3];N!=null&&(this.JSC$17230_channelVersion_=N,this.JSC$17228_channelDebug_.info("VER="+this.JSC$17230_channelVersion_));N=n[4];N!=null&&(this.serverVersion_=N,this.JSC$17228_channelDebug_.info("SVER="+this.serverVersion_));n=n[5];n!=null&&typeof n==="number"&&n>0&&(this.backChannelRequestTimeoutMs_=
n*=1.5,this.JSC$17228_channelDebug_.info("backChannelRequestTimeoutMs_="+n));if(n=k.JSC$17209_xmlHttp_){var B=YW(n,"X-Client-Wire-Protocol");B&&(N=this.forwardChannelRequestPool_,!N.requestPool_&&(_.E2(B,"spdy")||_.E2(B,"quic")||_.E2(B,"h2"))&&(N.JSC$17219_maxSize_=N.maxPoolSizeConfigured_,N.requestPool_=new Set,N.JSC$17219_request_&&(ynZ(N,N.JSC$17219_request_),N.JSC$17219_request_=null)));this.httpSessionIdParam_&&((n=YW(n,"X-HTTP-Session-Id"))?(this.httpSessionId_=n,_.$L(this.JSC$17228_forwardChannelUri_,
this.httpSessionIdParam_,n)):this.JSC$17228_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17234_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-k.JSC$17209_requestStartTime_,this.JSC$17228_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));n=k;N=uq7(this,this.JSC$17228_supportsCrossDomainXhrs_?this.JSC$17228_hostPrefix_:null,this.JSC$17228_path_);this.JSC$17228_channelDebug_.debug("GetBackChannelUri: "+
N);this.JSC$17228_backChannelUri_=N;n.initialResponseDecoded_?(this.JSC$17228_channelDebug_.debug("Upgrade the handshake request to a backchannel."),$MC(this.forwardChannelRequestPool_,n),N=n,(B=this.backChannelRequestTimeoutMs_)&&N.setTimeout(B),N.JSC$17209_watchDogTimerId_&&(XLi(N),lpB(N)),this.JSC$17228_backChannelRequest_=n):Py1(this);this.JSC$17228_outgoingMaps_.length>0&&UMS(this)}else n[0]!="stop"&&n[0]!="close"||df(this,7);else this.state_==3&&(n[0]=="stop"||n[0]=="close"?n[0]=="stop"?df(this,
7):this.disconnect():n[0]!="noop"&&this.handler_&&this.handler_.JSC$17234_channelHandleArray(n),this.JSC$17228_backChannelRetryCount_=0)}};
var df=function(W,k){W.JSC$17228_channelDebug_.info("Error code "+k);if(k==2){var C=(0,_.fN)(W.testNetworkCallback_,W),n=W.networkTestUrl_,N=!n;n=new _.oA(n||"//www.google.com/images/cleardot.gif");_.NX.location&&_.NX.location.protocol=="http"||_.qe(n,"https");_.PS(n);N?o$7(n.toString(),C):iRY(n.toString(),C)}else xG(2);W.onError_(k)};
Do.prototype.testNetworkCallback_=function(W){W?(this.JSC$17228_channelDebug_.info("Successfully pinged google.com"),xG(2)):(this.JSC$17228_channelDebug_.info("Failed to ping google.com"),xG(1))};
Do.prototype.onError_=function(W){this.JSC$17228_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17234_channelError(W);L1C(this);OR7(this)};
var L1C=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var k=ZRE(W.forwardChannelRequestPool_);if(k.length!=0||W.JSC$17228_outgoingMaps_.length!=0)W.JSC$17228_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+k.length+", outgoing: "+W.JSC$17228_outgoingMaps_.length}),_.uw(W.nonAckedMapsAtChannelClose_,k),_.uw(W.nonAckedMapsAtChannelClose_,W.JSC$17228_outgoingMaps_),W.forwardChannelRequestPool_.JSC$17219_pendingMessages_.length=0,_.T4(W.JSC$17228_outgoingMaps_),
W.JSC$17228_outgoingMaps_.length=0;
W.handler_.JSC$17234_channelClosed()}},h9B=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var k=[];_.uw(k,ZRE(W.forwardChannelRequestPool_));_.uw(k,W.JSC$17228_outgoingMaps_);return k},uq7=function(W,k,C){var n=_.Gb(C);
n.JSC$7905_domain_!=""?(k&&_.us(n,k+"."+n.JSC$7905_domain_),_.UY(n,n.JSC$7905_port_)):(n=_.NX.location,n=hXS(n.protocol,k?k+"."+n.hostname:n.hostname,+n.port,C));k=W.httpSessionIdParam_;C=W.httpSessionId_;k&&C&&_.$L(n,k,C);_.$L(n,"VER",W.JSC$17230_channelVersion_);V1(W,n);return n},ta1=function(W,k,C){if(k&&!W.JSC$17228_supportsCrossDomainXhrs_)throw Error("xk");
k=W.usesFetchStreams_&&!W.JSC$17228_xmlHttpFactory_?new _.mP(new Vy({streamBinaryChunks:C})):new _.mP(W.JSC$17228_xmlHttpFactory_);k.JSC$7668_withCredentials_=W.JSC$17228_supportsCrossDomainXhrs_;return k};
Do.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Wdt=function(){};
_.Y=Wdt.prototype;_.Y.JSC$17234_channelOpened=function(){};
_.Y.JSC$17234_channelHandleArray=function(){};
_.Y.JSC$17234_channelError=function(){};
_.Y.JSC$17234_channelClosed=function(){};
_.Y.isActive=function(){return!0};
_.Y.JSC$17234_badMapError=function(){};var kI7=function(){},cU=function(W,k){_.xT.call(this);
this.JSC$17237_channel_=new Do(k);this.JSC$17237_url_=W;this.messageUrlParams_=k&&k.messageUrlParams||null;W=k&&k.messageHeaders||null;k&&k.clientProtocolHeaderRequired&&(W?_.JU.set(W,"X-Client-Protocol","webchannel"):W=_.JU.create("X-Client-Protocol","webchannel"));this.JSC$17237_channel_.JSC$17228_extraHeaders_=W;W=k&&k.initMessageHeaders||null;k&&k.messageContentType&&(W?_.JU.set(W,"X-WebChannel-Content-Type",k.messageContentType):W=_.JU.create("X-WebChannel-Content-Type",k.messageContentType));
k&&k.clientProfile&&(W?_.JU.set(W,"X-WebChannel-Client-Profile",k.clientProfile):W=_.JU.create("X-WebChannel-Client-Profile",k.clientProfile));this.JSC$17237_channel_.initHeaders_=W;(W=k&&k.httpHeadersOverwriteParam)&&!_.tK(W)&&(this.JSC$17237_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=k&&k.supportsCrossDomainXhr||!1;this.sendRawJson_=k&&k.sendRawJson||!1;(k=k&&k.httpSessionIdParam)&&!_.tK(k)&&(this.JSC$17237_channel_.httpSessionIdParam_=k,_.JU.containsKey(this.messageUrlParams_,
k)&&_.JU.remove(this.messageUrlParams_,k));this.channelHandler_=new JO(this)};
_.Pq(cU,_.xT);cU.prototype.open=function(){this.JSC$17237_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17237_channel_.JSC$17228_supportsCrossDomainXhrs_=!0);this.JSC$17237_channel_.connect(this.JSC$17237_url_,this.messageUrlParams_||void 0)};
cU.prototype.close=function(){this.JSC$17237_channel_.disconnect()};
cU.prototype.send=function(W){var k=this.JSC$17237_channel_;if(typeof W==="string"){var C={};C.__data__=W;W=C}else this.sendRawJson_&&(C={},C.__data__=(0,_.dm)(W),W=C);k.JSC$17228_outgoingMaps_.push(new e97(k.JSC$17228_nextMapId_++,W));k.state_==3&&UMS(k)};
cU.prototype.disposeInternal=function(){this.JSC$17237_channel_.handler_=null;delete this.channelHandler_;this.JSC$17237_channel_.disconnect();delete this.JSC$17237_channel_;cU.superClass_.disposeInternal.call(this)};
var C_A=function(W){Hl1.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var k=W.__sm__;k?this.data=(this.metadataKey=_.JU.getAnyKey(k))?_.JU.get(k,this.metadataKey):k:this.data=W};
_.Pq(C_A,Hl1);var nd$=function(W){rw1.call(this);this.status=1;this.errorCode=W};
_.Pq(nd$,rw1);var JO=function(W){this.JSC$17244_channel_=W};
_.Pq(JO,Wdt);JO.prototype.JSC$17234_channelOpened=function(){this.JSC$17244_channel_.dispatchEvent("w")};
JO.prototype.JSC$17234_channelHandleArray=function(W){this.JSC$17244_channel_.dispatchEvent(new C_A(W))};
JO.prototype.JSC$17234_channelError=function(W){this.JSC$17244_channel_.dispatchEvent(new nd$(W))};
JO.prototype.JSC$17234_channelClosed=function(){this.JSC$17244_channel_.dispatchEvent("x")};
var NB6=function(W,k){this.transportChannel_=W;this.JSC$17247_channel_=k},Y$1=function(W){return h9B(W.JSC$17247_channel_).map(function(k){var C=W.transportChannel_;
k=k.map;"__data__"in k?(k=k.__data__,C=C.sendRawJson_?(0,_.Ad8)(k):k):C=k;return C})};var I2=function(W){BB7.dispatchEvent(new bkt(BB7,W))},BB7=new _.xT,bkt=function(W){_.BS.call(this,"statevent",W)};
_.D(bkt,_.BS);var Sb=function(W,k,C,n,N){this.JSC$17252_channel_=W;this.JSC$17252_channelDebug_=k;this.sid_=C;this.JSC$17252_rid_=n;this.JSC$17252_retryId_=N||1;this.timeout_=45E3;this.JSC$17252_eventHandler_=new _.j9(this);this.pollingTimer_=new _.Lt;this.pollingTimer_.setInterval(250)};
_.Y=Sb.prototype;_.Y.JSC$17254_extraHeaders_=null;_.Y.JSC$17254_successful_=!1;_.Y.JSC$17254_watchDogTimerId_=null;_.Y.JSC$17254_watchDogTimeoutTime_=null;_.Y.JSC$17254_requestStartTime_=null;_.Y.JSC$17254_type_=null;_.Y.JSC$17254_baseUri_=null;_.Y.JSC$17254_requestUri_=null;_.Y.JSC$17254_postData_=null;_.Y.JSC$17254_xmlHttp_=null;_.Y.JSC$17254_xmlHttpChunkStart_=0;_.Y.trident_=null;_.Y.JSC$17254_verb_=null;_.Y.JSC$17254_lastError_=null;_.Y.JSC$17254_lastStatusCode_=-1;_.Y.sendClose_=!0;
_.Y.JSC$17254_cancelled_=!1;_.Y.JSC$17254_readyStateChangeThrottleMs_=0;_.Y.JSC$17254_readyStateChangeThrottle_=null;var A5E=function(W,k){switch(W){case 0:return"Non-200 return code ("+k+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},FdY={},wVY={};
Sb.prototype.setTimeout=function(W){this.timeout_=W};
var lai=function(W,k,C){W.JSC$17254_type_=1;W.JSC$17254_baseUri_=_.PS(k.clone());W.JSC$17254_postData_=C;W.decodeChunks_=!0;xCE(W,null)},teY=function(W,k,C,n,N){W.JSC$17254_type_=1;
W.JSC$17254_baseUri_=_.PS(k.clone());W.JSC$17254_postData_=null;W.decodeChunks_=C;N&&(W.sendClose_=!1);xCE(W,n)},xCE=function(W,k){W.JSC$17254_requestStartTime_=Date.now();
Edt(W);W.JSC$17254_requestUri_=W.JSC$17254_baseUri_.clone();PA(W.JSC$17254_requestUri_,"t",W.JSC$17252_retryId_);W.JSC$17254_xmlHttpChunkStart_=0;W.JSC$17254_xmlHttp_=W.JSC$17252_channel_.JSC$17261_createXhrIo(W.JSC$17252_channel_.JSC$17261_shouldUseSecondaryDomains()?k:null);W.JSC$17254_readyStateChangeThrottleMs_>0&&(W.JSC$17254_readyStateChangeThrottle_=new _.Ox((0,_.fN)(W.JSC$17254_xmlHttpHandler_,W,W.JSC$17254_xmlHttp_),W.JSC$17254_readyStateChangeThrottleMs_));W.JSC$17252_eventHandler_.listen(W.JSC$17254_xmlHttp_,
"readystatechange",W.JSC$17254_readyStateChangeHandler_);k=W.JSC$17254_extraHeaders_?_.JU.clone(W.JSC$17254_extraHeaders_):{};W.JSC$17254_postData_?(W.JSC$17254_verb_="POST",k["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17254_xmlHttp_.send(W.JSC$17254_requestUri_,W.JSC$17254_verb_,W.JSC$17254_postData_,k)):(W.JSC$17254_verb_="GET",W.sendClose_&&!_.Nb&&(k.Connection="close"),W.JSC$17254_xmlHttp_.send(W.JSC$17254_requestUri_,W.JSC$17254_verb_,null,k));W.JSC$17252_channel_.notifyServerReachabilityEvent(1);
k=W.JSC$17252_channelDebug_;var C=W.JSC$17254_postData_;if(C){var n="";C=C.split("&");for(var N=0;N<C.length;N++){var B=C[N].split("=");if(B.length>1){var A=B[0];B=B[1];var w=A.split("_");n=w.length>=2&&w[1]=="type"?n+(A+"="+B+"&"):n+(A+"=redacted&")}}}else n=null;k.info("XMLHTTP REQ ("+W.JSC$17252_rid_+") [attempt "+W.JSC$17252_retryId_+"]: "+W.JSC$17254_verb_+"\n"+W.JSC$17254_requestUri_+"\n"+n)};
Sb.prototype.JSC$17254_readyStateChangeHandler_=function(W){W=W.target;var k=this.JSC$17254_readyStateChangeThrottle_;k&&_.zq(W)==3?(this.JSC$17252_channelDebug_.debug("Throttling readystatechange."),k.fire()):this.JSC$17254_xmlHttpHandler_(W)};
Sb.prototype.JSC$17254_xmlHttpHandler_=function(W){try{if(W==this.JSC$17254_xmlHttp_)a:{var k=_.zq(this.JSC$17254_xmlHttp_),C=this.JSC$17254_xmlHttp_.JSC$7668_lastErrorCode_,n=this.JSC$17254_xmlHttp_.getStatus();if(_.Nb&&!kc6("420+")){if(k<4)break a}else if(k<3||k==3&&!this.JSC$17254_xmlHttp_.getResponseText())break a;this.JSC$17254_cancelled_||k!=4||C==7||(C==8||n<=0?this.JSC$17252_channel_.notifyServerReachabilityEvent(3):this.JSC$17252_channel_.notifyServerReachabilityEvent(2));aaE(this);var N=
this.JSC$17254_xmlHttp_.getStatus();this.JSC$17254_lastStatusCode_=N;var B=this.JSC$17254_xmlHttp_.getResponseText();B||this.JSC$17252_channelDebug_.debug("No response text for uri "+this.JSC$17254_requestUri_+" status "+N);this.JSC$17254_successful_=N==200;this.JSC$17252_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17252_rid_+") [ attempt "+this.JSC$17252_retryId_+"]: "+this.JSC$17254_verb_+"\n"+this.JSC$17254_requestUri_+"\n"+k+" "+N);if(this.JSC$17254_successful_){k==4&&M8(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$17254_cancelled_&&this.JSC$17254_xmlHttpChunkStart_<B.length;){var A=XVA(this,B);if(A==wVY){k==4&&(this.JSC$17254_lastError_=4,I2(15),W=!1);Q1(this.JSC$17252_channelDebug_,this.JSC$17252_rid_,null,"[Incomplete Response]");break}else if(A==FdY){this.JSC$17254_lastError_=4;I2(16);Q1(this.JSC$17252_channelDebug_,this.JSC$17252_rid_,B,"[Invalid Chunk]");W=!1;break}else Q1(this.JSC$17252_channelDebug_,this.JSC$17252_rid_,A,null),fat(this,A)}k==4&&B.length==0&&(this.JSC$17254_lastError_=1,
I2(17),W=!1);this.JSC$17254_successful_=this.JSC$17254_successful_&&W;W||(Q1(this.JSC$17252_channelDebug_,this.JSC$17252_rid_,B,"[Invalid Chunked Response]"),M8(this),dC1(this))}else Q1(this.JSC$17252_channelDebug_,this.JSC$17252_rid_,B,null),fat(this,B);this.JSC$17254_successful_&&!this.JSC$17254_cancelled_&&(k==4?this.JSC$17252_channel_.JSC$17261_onRequestComplete(this):(this.JSC$17254_successful_=!1,Edt(this)))}else N==400&&B.indexOf("Unknown SID")>0?(this.JSC$17254_lastError_=3,I2(13),this.JSC$17252_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17252_rid_+")")):(this.JSC$17254_lastError_=0,I2(14),this.JSC$17252_channelDebug_.warning("XMLHTTP Bad status "+N+" ("+this.JSC$17252_rid_+")")),M8(this),dC1(this)}else this.JSC$17252_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(w){this.JSC$17252_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var XVA=function(W,k){var C=W.JSC$17254_xmlHttpChunkStart_,n=k.indexOf("\n",C);if(n==-1)return wVY;C=Number(k.substring(C,n));if(isNaN(C))return FdY;n+=1;if(n+C>k.length)return wVY;k=k.slice(n,n+C);W.JSC$17254_xmlHttpChunkStart_=n+C;return k};
Sb.prototype.cancel=function(){this.JSC$17254_cancelled_=!0;M8(this)};
var Edt=function(W){W.JSC$17254_watchDogTimeoutTime_=Date.now()+W.timeout_;mCu(W,W.timeout_)},mCu=function(W,k){if(W.JSC$17254_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17254_watchDogTimerId_=ff((0,_.fN)(W.JSC$17254_onWatchDogTimeout_,W),k)},aaE=function(W){W.JSC$17254_watchDogTimerId_&&(_.NX.clearTimeout(W.JSC$17254_watchDogTimerId_),W.JSC$17254_watchDogTimerId_=null)};
Sb.prototype.JSC$17254_onWatchDogTimeout_=function(){this.JSC$17254_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17254_watchDogTimeoutTime_>=0?(this.JSC$17252_channelDebug_.info("TIMEOUT: "+this.JSC$17254_requestUri_),this.JSC$17254_type_!=2&&this.JSC$17252_channel_.notifyServerReachabilityEvent(3),M8(this),this.JSC$17254_lastError_=2,I2(18),dC1(this)):(this.JSC$17252_channelDebug_.warning("WatchDog timer called too early"),mCu(this,this.JSC$17254_watchDogTimeoutTime_-W))};
var dC1=function(W){W.JSC$17252_channel_.JSC$17261_isClosed()||W.JSC$17254_cancelled_||W.JSC$17252_channel_.JSC$17261_onRequestComplete(W)},M8=function(W){aaE(W);
_.LU(W.JSC$17254_readyStateChangeThrottle_);W.JSC$17254_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$17252_eventHandler_.removeAll();if(W.JSC$17254_xmlHttp_){var k=W.JSC$17254_xmlHttp_;W.JSC$17254_xmlHttp_=null;k.abort();k.dispose()}W.trident_&&(W.trident_=null)};
Sb.prototype.getLastError=function(){return this.JSC$17254_lastError_};
var fat=function(W,k){try{W.JSC$17252_channel_.JSC$17261_onRequestData(W,k),W.JSC$17252_channel_.notifyServerReachabilityEvent(4)}catch(C){}};var Q1=function(W,k,C,n){var N=W.info;a:if(C&&C!="y2f%"){try{var B=JSON.parse(C);if(B)for(var A=0;A<B.length;A++)if(Array.isArray(B[A])){var w=B[A];if(!(w.length<2)){var x=w[1];if(Array.isArray(x)&&!(x.length<1)){var E=x[0];if(E!="noop"&&E!="stop")for(var a=1;a<x.length;a++)x[a]=""}}}var X=(0,_.dm)(B);break a}catch(d){W.debug("Exception parsing expected JS array - probably was not JS");X=C;break a}X=void 0}else X=C;N.call(W,"XMLHTTP TEXT ("+k+"): "+X+(n?" "+n:""))};
dY.prototype.debug=function(W){this.info(W)};
dY.prototype.info=function(){};
dY.prototype.warning=function(){};var zHt=function(W,k){this.JSC$17259_channel_=W;this.JSC$17259_channelDebug_=k;this.JSC$17259_parser_=new Fx};
_.Y=zHt.prototype;_.Y.JSC$17261_extraHeaders_=null;_.Y.JSC$17261_request_=null;_.Y.receivedIntermediateResult_=!1;_.Y.JSC$17261_path_=null;_.Y.state_=null;_.Y.JSC$17261_lastStatusCode_=-1;_.Y.JSC$17261_hostPrefix_=null;_.Y.blockedPrefix_=null;
_.Y.connect=function(W){this.JSC$17261_path_=W;W=DC6(this.JSC$17259_channel_,this.JSC$17261_path_);I2(3);Date.now();var k=this.JSC$17259_channel_.firstTestResults_;k!=null?(this.JSC$17261_hostPrefix_=k[0],(this.blockedPrefix_=k[1])?(this.state_=1,VeS(this)):(this.state_=2,J5C(this))):(PA(W,"MODE","init"),this.JSC$17261_request_=new Sb(this,this.JSC$17259_channelDebug_),this.JSC$17261_request_.JSC$17254_extraHeaders_=this.JSC$17261_extraHeaders_,teY(this.JSC$17261_request_,W,!1,null,!0),this.state_=
0)};
var VeS=function(W){var k=c5Y(W.JSC$17259_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.PS(k);ox6(k.toString(),5E3,(0,_.fN)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
zHt.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,J5C(this);else{I2(4);var k=this.JSC$17259_channel_;k.JSC$17262_channelDebug_.debug("Test Connection Blocked");k.JSC$17266_lastStatusCode_=k.connectionTest_.JSC$17261_lastStatusCode_;p9(k,9)}W&&this.notifyServerReachabilityEvent(2)};
var J5C=function(W){W.JSC$17259_channelDebug_.debug("TestConnection: starting stage 2");var k=W.JSC$17259_channel_.secondTestResults_;k!=null?(W.JSC$17259_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+k?"Buffered":"Unbuffered"),I2(5),k?(I2(11),vU(W.JSC$17259_channel_,W,!1)):(I2(12),vU(W.JSC$17259_channel_,W,!0))):(W.JSC$17261_request_=new Sb(W,W.JSC$17259_channelDebug_),W.JSC$17261_request_.JSC$17254_extraHeaders_=W.JSC$17261_extraHeaders_,k=IaB(W.JSC$17259_channel_,
W.JSC$17261_hostPrefix_,W.JSC$17261_path_),I2(5),PA(k,"TYPE","xmlhttp"),teY(W.JSC$17261_request_,k,!1,W.JSC$17261_hostPrefix_,!1))};
_.Y=zHt.prototype;_.Y.JSC$17261_createXhrIo=function(W){return this.JSC$17259_channel_.JSC$17261_createXhrIo(W)};
_.Y.abort=function(){this.JSC$17261_request_&&(this.JSC$17261_request_.cancel(),this.JSC$17261_request_=null);this.JSC$17261_lastStatusCode_=-1};
_.Y.JSC$17261_isClosed=function(){return!1};
_.Y.JSC$17261_onRequestData=function(W,k){this.JSC$17261_lastStatusCode_=W.JSC$17254_lastStatusCode_;if(this.state_==0)if(this.JSC$17259_channelDebug_.debug("TestConnection: Got data for stage 1"),k){try{var C=this.JSC$17259_parser_.parse(k)}catch(n){S$6(this.JSC$17259_channel_,this);return}this.JSC$17261_hostPrefix_=C[0];this.blockedPrefix_=C[1]}else this.JSC$17259_channelDebug_.debug("TestConnection: Null responseText"),S$6(this.JSC$17259_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(I2(7),Date.now()):k=="11111"?(I2(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17261_lastStatusCode_=200,this.JSC$17261_request_.cancel(),this.JSC$17259_channelDebug_.debug("Test connection succeeded; using streaming connection"),I2(12),vU(this.JSC$17259_channel_,this,!0)):(I2(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.Y.JSC$17261_onRequestComplete=function(){this.JSC$17261_lastStatusCode_=this.JSC$17261_request_.JSC$17254_lastStatusCode_;this.JSC$17261_request_.JSC$17254_successful_?this.state_==0?(this.JSC$17259_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,VeS(this)):(this.state_=2,J5C(this))):this.state_==2&&(this.JSC$17259_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17259_channelDebug_.debug("Test connection succeeded; using streaming connection"),
I2(12),vU(this.JSC$17259_channel_,this,!0)):(this.JSC$17259_channelDebug_.debug("Test connection failed; not using streaming"),I2(11),vU(this.JSC$17259_channel_,this,!1))):(this.JSC$17259_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?I2(9):this.state_==2&&I2(10),S$6(this.JSC$17259_channel_,this,this.JSC$17261_request_.getLastError()))};
_.Y.JSC$17261_shouldUseSecondaryDomains=function(){return this.JSC$17259_channel_.JSC$17261_shouldUseSecondaryDomains()};
_.Y.isActive=function(){return this.JSC$17259_channel_.isActive()};
_.Y.notifyServerReachabilityEvent=function(W){this.JSC$17259_channel_.notifyServerReachabilityEvent(W)};var eb=function(W,k,C){this.state_=1;this.JSC$17262_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17262_channelDebug_=new dY;this.JSC$17262_parser_=new Fx;this.firstTestResults_=W||null;this.secondTestResults_=k!=null?k:null;this.asyncTest_=C||!1},Me7=function(W,k){this.JSC$17264_mapId=W;
this.map=k;this.context=null};
_.Y=eb.prototype;_.Y.JSC$17266_extraHeaders_=null;_.Y.JSC$17266_extraParams_=null;_.Y.forwardChannelRequest_=null;_.Y.JSC$17266_backChannelRequest_=null;_.Y.JSC$17266_path_=null;_.Y.JSC$17266_forwardChannelUri_=null;_.Y.JSC$17266_backChannelUri_=null;_.Y.JSC$17266_hostPrefix_=null;_.Y.JSC$17266_nextRid_=0;_.Y.JSC$17266_nextMapId_=0;_.Y.handler_=null;_.Y.JSC$17266_forwardChannelTimerId_=null;_.Y.JSC$17266_backChannelTimerId_=null;_.Y.JSC$17266_deadBackChannelTimerId_=null;_.Y.connectionTest_=null;
_.Y.useChunked_=null;_.Y.JSC$17266_lastArrayId_=-1;_.Y.JSC$17266_lastPostResponseArrayId_=-1;_.Y.JSC$17266_lastStatusCode_=-1;_.Y.JSC$17266_forwardChannelRetryCount_=0;_.Y.JSC$17266_backChannelRetryCount_=0;_.Y.JSC$17266_channelVersion_=8;var Q$B={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},pV$=function(W,k,C,n){_.BS.call(this,"timingevent",W);this.size=k;this.rtt=C;this.retries=n};
_.Pq(pV$,_.BS);var vdC=function(W){_.BS.call(this,"serverreachability",W)};
_.Pq(vdC,_.BS);eb.prototype.connect=function(W,k,C,n,N){this.JSC$17262_channelDebug_.debug("connect()");I2(0);this.JSC$17266_path_=k;this.JSC$17266_extraParams_=C||{};n&&N!==void 0&&(this.JSC$17266_extraParams_.OSID=n,this.JSC$17266_extraParams_.OAID=N);this.asyncTest_?(ff((0,_.fN)(this.connectTest_,this,W),100),eH6(this)):this.connectTest_(W)};
eb.prototype.disconnect=function(){this.JSC$17262_channelDebug_.debug("disconnect()");s$B(this);if(this.state_==3){var W=this.JSC$17266_nextRid_++,k=this.JSC$17266_forwardChannelUri_.clone();_.$L(k,"SID",this.sid_);_.$L(k,"RID",W);_.$L(k,"TYPE","terminate");s8(this,k);W=new Sb(this,this.JSC$17262_channelDebug_,this.sid_,W);W.JSC$17254_type_=2;W.JSC$17254_baseUri_=_.PS(k.clone());(new Image).src=W.JSC$17254_baseUri_.toString();W.JSC$17254_requestStartTime_=Date.now();Edt(W)}GI1(this)};
eb.prototype.connectTest_=function(W){this.JSC$17262_channelDebug_.debug("connectTest_()");this.connectionTest_=new zHt(this,this.JSC$17262_channelDebug_);this.connectionTest_.JSC$17261_extraHeaders_=this.JSC$17266_extraHeaders_;this.connectionTest_.JSC$17259_parser_=this.JSC$17262_parser_;this.connectionTest_.connect(W)};
var eH6=function(W){W.JSC$17262_channelDebug_.debug("connectChannel_()");W.JSC$17266_ensureInState_(1,0);W.JSC$17266_forwardChannelUri_=DC6(W,W.JSC$17266_path_);y57(W)},s$B=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$17266_backChannelRequest_&&(W.JSC$17266_backChannelRequest_.cancel(),W.JSC$17266_backChannelRequest_=null);W.JSC$17266_backChannelTimerId_&&(_.NX.clearTimeout(W.JSC$17266_backChannelTimerId_),W.JSC$17266_backChannelTimerId_=null);$Ct(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$17266_forwardChannelTimerId_&&(_.NX.clearTimeout(W.JSC$17266_forwardChannelTimerId_),W.JSC$17266_forwardChannelTimerId_=null)},ZkC=function(W,k){if(W.state_==0)throw Error("zk");
W.JSC$17262_outgoingMaps_.length==1E3&&W.JSC$17262_parser_.stringify(k);W.JSC$17262_outgoingMaps_.push(new Me7(W.JSC$17266_nextMapId_++,k));W.state_!=2&&W.state_!=3||y57(W)};
eb.prototype.JSC$17261_isClosed=function(){return this.state_==0};
eb.prototype.getState=function(){return this.state_};
var y57=function(W){W.forwardChannelRequest_||W.JSC$17266_forwardChannelTimerId_||(W.JSC$17266_forwardChannelTimerId_=ff((0,_.fN)(W.JSC$17266_onStartForwardChannelTimer_,W),0),W.JSC$17266_forwardChannelRetryCount_=0)};
eb.prototype.JSC$17266_onStartForwardChannelTimer_=function(W){this.JSC$17266_forwardChannelTimerId_=null;RHt(this,W)};
var RHt=function(W,k){W.JSC$17262_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!k){W.JSC$17262_channelDebug_.debug("open_()");W.JSC$17266_nextRid_=Math.floor(Math.random()*1E5);k=W.JSC$17266_nextRid_++;var C=new Sb(W,W.JSC$17262_channelDebug_,"",k);C.JSC$17254_extraHeaders_=W.JSC$17266_extraHeaders_;var n=odY(W),N=W.JSC$17266_forwardChannelUri_.clone();_.$L(N,"RID",k);_.$L(N,"CVER","1");s8(W,N);lai(C,N,n);W.forwardChannelRequest_=C;W.state_=2}}else W.state_==3&&(k?ikY(W,k):W.JSC$17262_outgoingMaps_.length==
0?W.JSC$17262_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||(ikY(W),W.JSC$17262_channelDebug_.debug("startForwardChannel_ finished, sent request")))},ikY=function(W,k){if(k)if(W.JSC$17266_channelVersion_>6){W.JSC$17262_outgoingMaps_=W.pendingMaps_.concat(W.JSC$17262_outgoingMaps_);
W.pendingMaps_.length=0;var C=W.JSC$17266_nextRid_-1;k=odY(W)}else C=k.JSC$17252_rid_,k=k.JSC$17254_postData_;else C=W.JSC$17266_nextRid_++,k=odY(W);var n=W.JSC$17266_forwardChannelUri_.clone();_.$L(n,"SID",W.sid_);_.$L(n,"RID",C);_.$L(n,"AID",W.JSC$17266_lastArrayId_);s8(W,n);C=new Sb(W,W.JSC$17262_channelDebug_,W.sid_,C,W.JSC$17266_forwardChannelRetryCount_+1);C.JSC$17254_extraHeaders_=W.JSC$17266_extraHeaders_;C.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=C;lai(C,n,k)},
s8=function(W,k){W.handler_&&(W=W.handler_.JSC$17273_getAdditionalParams())&&_.JU.forEach(W,function(C,n){_.$L(k,n,C)})},odY=function(W){var k=Math.min(W.JSC$17262_outgoingMaps_.length,1E3),C=["count="+k];
if(W.JSC$17266_channelVersion_>6&&k>0){var n=W.JSC$17262_outgoingMaps_[0].JSC$17264_mapId;C.push("ofs="+n)}else n=0;for(var N={},B=0;B<k;N={mapId$jscomp$3:void 0},B++){N.mapId$jscomp$3=W.JSC$17262_outgoingMaps_[B].JSC$17264_mapId;var A=W.JSC$17262_outgoingMaps_[B].map;N.mapId$jscomp$3=W.JSC$17266_channelVersion_<=6?B:N.mapId$jscomp$3-n;try{_.JU.forEach(A,function(w){return function(x,E){C.push("req"+w.mapId$jscomp$3+"_"+E+"="+encodeURIComponent(x))}}(N))}catch(w){C.push("req"+N.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$17262_outgoingMaps_.splice(0,k));
return C.join("&")},TBE=function(W){W.JSC$17266_backChannelRequest_||W.JSC$17266_backChannelTimerId_||(W.JSC$17266_backChannelAttemptId_=1,W.JSC$17266_backChannelTimerId_=ff((0,_.fN)(W.JSC$17266_onStartBackChannelTimer_,W),0),W.JSC$17266_backChannelRetryCount_=0)},uOB=function(W){if(W.JSC$17266_backChannelRequest_||W.JSC$17266_backChannelTimerId_||W.JSC$17266_backChannelRetryCount_>=3)return!1;
W.JSC$17262_channelDebug_.debug("Going to retry GET");W.JSC$17266_backChannelAttemptId_++;W.JSC$17266_backChannelTimerId_=ff((0,_.fN)(W.JSC$17266_onStartBackChannelTimer_,W),q$B(W,W.JSC$17266_backChannelRetryCount_));W.JSC$17266_backChannelRetryCount_++;return!0};
eb.prototype.JSC$17266_onStartBackChannelTimer_=function(){this.JSC$17266_backChannelTimerId_=null;this.JSC$17262_channelDebug_.debug("Creating new HttpRequest");this.JSC$17266_backChannelRequest_=new Sb(this,this.JSC$17262_channelDebug_,this.sid_,"rpc",this.JSC$17266_backChannelAttemptId_);this.JSC$17266_backChannelRequest_.JSC$17254_extraHeaders_=this.JSC$17266_extraHeaders_;this.JSC$17266_backChannelRequest_.JSC$17254_readyStateChangeThrottleMs_=0;var W=this.JSC$17266_backChannelUri_.clone();_.$L(W,
"RID","rpc");_.$L(W,"SID",this.sid_);_.$L(W,"CI",this.useChunked_?"0":"1");_.$L(W,"AID",this.JSC$17266_lastArrayId_);s8(this,W);_.$L(W,"TYPE","xmlhttp");teY(this.JSC$17266_backChannelRequest_,W,!0,this.JSC$17266_hostPrefix_,!1);this.JSC$17262_channelDebug_.debug("New Request created")};
var vU=function(W,k,C){W.JSC$17262_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?C:!W.secondTestResults_;W.JSC$17266_lastStatusCode_=k.JSC$17261_lastStatusCode_;W.asyncTest_||eH6(W)},S$6=function(W,k){W.JSC$17262_channelDebug_.debug("Test Connection Failed");
W.JSC$17266_lastStatusCode_=k.JSC$17261_lastStatusCode_;p9(W,2)};
eb.prototype.JSC$17261_onRequestData=function(W,k){if(this.state_!=0&&(this.JSC$17266_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$17266_lastStatusCode_=W.JSC$17254_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$17266_channelVersion_>7){try{var C=this.JSC$17262_parser_.parse(k)}catch(n){C=null}if(Array.isArray(C)&&C.length==3)if(k=C,k[0]==0)a:if(this.JSC$17262_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17266_backChannelTimerId_)this.JSC$17262_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17266_backChannelRequest_)if(this.JSC$17266_backChannelRequest_.JSC$17254_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17254_requestStartTime_)$Ct(this),this.JSC$17266_backChannelRequest_.cancel(),this.JSC$17266_backChannelRequest_=null;else break a;else this.JSC$17262_channelDebug_.warning("We do not have a BackChannel established");uOB(this);I2(19)}else this.JSC$17266_lastPostResponseArrayId_=k[1],W=this.JSC$17266_lastPostResponseArrayId_-this.JSC$17266_lastArrayId_,0<
W&&(k=k[2],this.JSC$17262_channelDebug_.debug(k+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),k<37500&&this.useChunked_&&this.JSC$17266_backChannelRetryCount_==0&&!this.JSC$17266_deadBackChannelTimerId_&&(this.JSC$17266_deadBackChannelTimerId_=ff((0,_.fN)(this.JSC$17266_onBackChannelDead_,this),6E3)));else this.JSC$17262_channelDebug_.debug("Bad POST response data returned"),p9(this,11)}else k!="y2f%"&&(this.JSC$17262_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
p9(this,11));else this.JSC$17266_backChannelRequest_==W&&$Ct(this),_.tK(k)||(W=this.JSC$17262_parser_.parse(k),this.onInput_(W))};
eb.prototype.JSC$17266_onBackChannelDead_=function(){this.JSC$17266_deadBackChannelTimerId_!=null&&(this.JSC$17266_deadBackChannelTimerId_=null,this.JSC$17266_backChannelRequest_.cancel(),this.JSC$17266_backChannelRequest_=null,uOB(this),I2(20))};
var $Ct=function(W){W.JSC$17266_deadBackChannelTimerId_!=null&&(_.NX.clearTimeout(W.JSC$17266_deadBackChannelTimerId_),W.JSC$17266_deadBackChannelTimerId_=null)};
eb.prototype.JSC$17261_onRequestComplete=function(W){this.JSC$17262_channelDebug_.debug("Request complete");if(this.JSC$17266_backChannelRequest_==W){$Ct(this);this.JSC$17266_backChannelRequest_=null;var k=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,k=1;else return;this.JSC$17266_lastStatusCode_=W.JSC$17254_lastStatusCode_;if(this.state_!=0)if(W.JSC$17254_successful_)if(k==1){k=W.JSC$17254_postData_?W.JSC$17254_postData_.length:0;W=Date.now()-W.JSC$17254_requestStartTime_;
var C=BB7;C.dispatchEvent(new pV$(C,k,W,this.JSC$17266_forwardChannelRetryCount_));y57(this);this.handler_&&this.handler_.JSC$17273_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else TBE(this);else{C=W.getLastError();if(C==3||C==7||C==0&&this.JSC$17266_lastStatusCode_>0)this.JSC$17262_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17262_channelDebug_.debug("Maybe retrying, last error: "+A5E(C,this.JSC$17266_lastStatusCode_));var n;if(n=k==1)this.forwardChannelRequest_||
this.JSC$17266_forwardChannelTimerId_||this.state_==1||this.JSC$17266_forwardChannelRetryCount_>=2?n=!1:(this.JSC$17262_channelDebug_.debug("Going to retry POST"),this.JSC$17266_forwardChannelTimerId_=ff((0,_.fN)(this.JSC$17266_onStartForwardChannelTimer_,this,W),q$B(this,this.JSC$17266_forwardChannelRetryCount_)),this.JSC$17266_forwardChannelRetryCount_++,n=!0);if(n||k==2&&uOB(this))return;this.JSC$17262_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17262_channelDebug_.debug("Error: HTTP request failed");
switch(C){case 1:p9(this,5);break;case 4:p9(this,10);break;case 3:p9(this,6);break;case 7:p9(this,12);break;default:p9(this,2)}}};
var q$B=function(W,k){var C=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$17262_channelDebug_.debug("Inactive channel"),C*=2);return C*k};
eb.prototype.onInput_=function(W){for(var k=0;k<W.length;k++){var C=W[k];this.JSC$17266_lastArrayId_=C[0];C=C[1];this.state_==2?C[0]=="c"?(this.sid_=C[1],this.JSC$17266_hostPrefix_=C[2],C=C[3],C!=null?this.JSC$17266_channelVersion_=C:this.JSC$17266_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17273_channelOpened(),this.JSC$17266_backChannelUri_=IaB(this,this.JSC$17266_hostPrefix_,this.JSC$17266_path_),TBE(this)):C[0]=="stop"&&p9(this,7):this.state_==3&&(C[0]=="stop"?p9(this,7):
C[0]!="noop"&&this.handler_&&this.handler_.JSC$17273_channelHandleArray(C),this.JSC$17266_backChannelRetryCount_=0)}};
eb.prototype.JSC$17266_ensureInState_=function(W){if(!_.ZX(arguments,this.state_))throw Error("Ak`"+this.state_);};
var p9=function(W,k){W.JSC$17262_channelDebug_.info("Error code "+k);if(k==2||k==9){var C=null;W.handler_&&(C=null);var n=(0,_.fN)(W.testGoogleComCallback_,W);C||(C=new _.oA("//www.google.com/images/cleardot.gif"),_.PS(C));RDT(C.toString(),1E4,n)}else I2(2);W.onError_(k)};
eb.prototype.testGoogleComCallback_=function(W){W?(this.JSC$17262_channelDebug_.info("Successfully pinged google.com"),I2(2)):(this.JSC$17262_channelDebug_.info("Failed to ping google.com"),I2(1),this.onError_(8))};
eb.prototype.onError_=function(W){this.JSC$17262_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17273_channelError(W);GI1(this);s$B(this)};
var GI1=function(W){W.state_=0;W.JSC$17266_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$17262_outgoingMaps_.length==0)W.handler_.JSC$17273_channelClosed();else{W.JSC$17262_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$17262_outgoingMaps_.length);var k=_.T4(W.pendingMaps_),C=_.T4(W.JSC$17262_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$17262_outgoingMaps_.length=0;W.handler_.JSC$17273_channelClosed(k,C)}},DC6=function(W,
k){k=c5Y(W,null,k);
W.JSC$17262_channelDebug_.debug("GetForwardChannelUri: "+k);return k},IaB=function(W,k,C){k=c5Y(W,W.JSC$17261_shouldUseSecondaryDomains()?k:null,C);
W.JSC$17262_channelDebug_.debug("GetBackChannelUri: "+k);return k},c5Y=function(W,k,C){var n=_.Gb(C);
if(n.JSC$7905_domain_!="")k&&_.us(n,k+"."+n.JSC$7905_domain_),_.UY(n,n.JSC$7905_port_);else{var N=window.location;n=hXS(N.protocol,k?k+"."+N.hostname:N.hostname,+N.port,C)}W.JSC$17266_extraParams_&&_.JU.forEach(W.JSC$17266_extraParams_,function(B,A){_.$L(n,A,B)});
_.$L(n,"VER",W.JSC$17266_channelVersion_);s8(W,n);return n};
eb.prototype.JSC$17261_createXhrIo=function(W){if(W)throw Error("xk");W=new _.mP;W.JSC$7668_withCredentials_=!1;return W};
eb.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
eb.prototype.notifyServerReachabilityEvent=function(W){var k=BB7;k.dispatchEvent(new vdC(k,W))};
eb.prototype.JSC$17261_shouldUseSecondaryDomains=function(){return!1};
new Yn$;var UC7=function(){};
_.Y=UC7.prototype;_.Y.JSC$17273_channelOpened=function(){};
_.Y.JSC$17273_channelHandleArray=function(){};
_.Y.JSC$17273_channelSuccess=function(){};
_.Y.JSC$17273_channelError=function(){};
_.Y.JSC$17273_channelClosed=function(){};
_.Y.JSC$17273_getAdditionalParams=function(){return{}};
_.Y.isActive=function(){return!0};var Ok7=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.Y=TqY.prototype;_.Y.enqueue=function(W){this.back_.push(W)};
_.Y.peek=function(){Ok7(this);return _.pI(this.front_)};
_.Y.getCount=function(){return this.front_.length+this.back_.length};
_.Y.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.Y.clear=function(){this.front_=[];this.back_=[]};
_.Y.contains=function(W){return _.ZX(this.front_,W)||_.ZX(this.back_,W)};
_.Y.remove=function(W){var k=this.front_;var C=Array.prototype.lastIndexOf.call(k,W,k.length-1);C>=0?(_.VpJ(k,C),k=!0):k=!1;return k||_.iw(this.back_,W)};
_.Y.getValues=function(){for(var W=[],k=this.front_.length-1;k>=0;--k)W.push(this.front_[k]);k=this.back_.length;for(var C=0;C<k;++C)W.push(this.back_[C]);return W};var GV=function(W){this.JSC$17277_map_=new _.PF;this.size=0;W&&this.addAll(W)},LdE=function(W){var k=typeof W;
return k=="object"&&W||k=="function"?"o"+_.Hw(W):k.charAt(0)+W};
_.Y=GV.prototype;_.Y.getCount=function(){return this.JSC$17277_map_.size};
_.Y.add=function(W){this.JSC$17277_map_.set(LdE(W),W);this.size=this.JSC$17277_map_.size};
_.Y.addAll=function(W){W=_.Tq(W);for(var k=W.length,C=0;C<k;C++)this.add(W[C]);this.size=this.JSC$17277_map_.size};
_.Y.removeAll=function(W){W=_.Tq(W);for(var k=W.length,C=0;C<k;C++)this.remove(W[C]);this.size=this.JSC$17277_map_.size};
_.Y.delete=function(W){W=this.JSC$17277_map_.remove(LdE(W));this.size=this.JSC$17277_map_.size;return W};
_.Y.remove=function(W){return this.delete(W)};
_.Y.clear=function(){this.JSC$17277_map_.clear();this.size=0};
_.Y.isEmpty=function(){return this.JSC$17277_map_.size===0};
_.Y.has=function(W){return this.JSC$17277_map_.containsKey(LdE(W))};
_.Y.contains=function(W){return this.JSC$17277_map_.containsKey(LdE(W))};
_.Y.getValues=function(){return this.JSC$17277_map_.getValues()};
_.Y.values=function(){return this.JSC$17277_map_.values()};
_.Y.clone=function(){return new GV(this)};
_.Y.equals=function(W){return this.getCount()==PfB(W)&&j$E(this,W)};
var j$E=function(W,k){var C=PfB(k);if(W.getCount()>C)return!1;!(k instanceof GV)&&C>5&&(k=new GV(k));return Kf$(W,function(n){var N=k;return N.contains&&typeof N.contains=="function"?N.contains(n):N.containsValue&&typeof N.containsValue=="function"?N.containsValue(n):_.qX(N)||typeof N==="string"?_.ZX(N,n):_.JU.containsValue(N,n)})};
GV.prototype.__iterator__=function(){return this.JSC$17277_map_.__iterator__(!1)};
GV.prototype[Symbol.iterator]=function(){return this.values()};var Hk1={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var r5E;var gd7;_.Av({_template:function(){if(gd7!==void 0)return gd7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;r5E===void 0&&(r5E=document.createElement("template"));var n=r5E;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return gd7=W},
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(){_.ZR(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(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var k=W.detail.dx+this._translateOffset,C=this.getWidth();k=this.position==="left"?k>=0||k<=-C:k<=0||k>=C;if(!k){var n=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,n);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}C/=2;W.detail.dx<-C?this.opened=this.position==="right":W.detail.dx>C&&(this.opened=this.position==="left");k?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,k){for(var C=Date.now(),n=C-100,N,B=0,A=k.length-1;B<=A;){var w=B+A>>1,x=k[w];x.timeStamp>=n?(N=x,A=w-1):B=w+1}return N?(W.detail.dx-N.dx)/(C-N.timeStamp||1):0},
_flingDrawer:function(W,k){k=this._calculateVelocity(W,k);if(!(Math.abs(k)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var C=this.getWidth(),n=this.position==="left",N=k>0;N?(k=Math.max(k,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(k=Math.min(k,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");k=this._FLING_INITIAL_SLOPE*(!N&&n?-(W+C):N&&!n?C-W:-W)/k;this._styleTransitionDuration(k);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,k)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var k=this.getWidth();this.position==="left"?(W=Math.max(-k,Math.min(W,0)),this.$.scrim.style.opacity=1+W/k):(W=Math.max(0,Math.min(W,k)),this.$.scrim.style.opacity=1-W/k);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.Ek(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.Ek(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Ek(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,k){this.toggleClass("visible",W&&!k,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 P_t;var KdB;_.Av({_template:function(){if(KdB!==void 0)return KdB;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;P_t===void 0&&(P_t=document.createElement("template"));var n=P_t;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return KdB=W},
is:"tp-yt-paper-progress",behaviors:[Hk1],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,k){W.style.transform=W.style.webkitTransform="scaleX("+k/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,k,C,n,N){W=this._clampValue(W);k=this._clampValue(k);var B=this._calcRatio(W)*100,A=this._calcRatio(k)*100;this._setSecondaryRatio(B);this._transformProgress(this.$.secondaryProgress,B);this._transformProgress(this.$.primaryProgress,A);this.secondaryProgress=W;N?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",k);this.setAttribute("aria-valuemin",C);this.setAttribute("aria-valuemax",n)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var hHi;var W2S;var k1t=function(){};
_.Y=k1t.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._calcRatio=function(){};
_.Y._clampValue=function(){};
_.Y._calcStep=function(){};
_.Y._validateValue=function(){};
_.Y._update=function(){};
_.Y._setImmediateValue=function(){};
_.Y._setExpand=function(){};
_.Y._setDragging=function(){};
_.Y._setTransiting=function(){};
_.Y._setMarkers=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setRatio=function(){};
k1t=_.Av({_template:function(){if(W2S!==void 0)return W2S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;hHi===void 0&&(hHi=document.createElement("template"));var n=hHi;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return W2S=W},
is:"tp-yt-paper-slider",behaviors:[_.wS,_.E7,_.TkA,Hk1],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&&_.DR(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(W,k,C){this.setAttribute("aria-valuemin",k);this.setAttribute("aria-valuemax",C);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var k=this.$.sliderBar.getBoundingClientRect();k=(W.detail.x-k.left)/this._w*100;this._isRTL&&(k=100-k);var C=this.ratio;this._setTransiting(!0);this._positionKnob(k);C===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,k,C,n){n||this._setMarkers([]);k=Math.round((C-k)/this.step);k>W&&(k=W);if(k<0||!isFinite(k))k=0;this._setMarkers(Array(k))},
_mergeClasses:function(W){return Object.keys(W).filter(function(k){return W[k]}).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(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.is8._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var CjB;var n8B;var y1=null,NX6=function(){};
_.Y=NX6.prototype;_.Y.fit=function(){};
_.Y._discoverInfo=function(){};
_.Y.resetFit=function(){};
_.Y.refit=function(){};
_.Y.position=function(){};
_.Y.constrain=function(){};
_.Y._sizeDimension=function(){};
_.Y.__sizeDimension=function(){};
_.Y.center=function(){};
_.Y.__getNormalizedRect=function(){};
_.Y.__getOffscreenArea=function(){};
_.Y.__getPosition=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y.toggle=function(){};
_.Y.open=function(){};
_.Y.close=function(){};
_.Y.cancel=function(){};
_.Y.invalidateTabbables=function(){};
_.Y._ensureSetup=function(){};
_.Y._canceledChanged=function(){};
_.Y._withBackdropChanged=function(){};
_.Y._prepareRenderOpened=function(){};
_.Y._finishRenderOpened=function(){};
_.Y._finishRenderClosed=function(){};
_.Y._preparePositioning=function(){};
_.Y._finishPositioning=function(){};
_.Y._applyFocus=function(){};
_.Y._onCaptureClick=function(){};
_.Y._onCaptureFocus=function(){};
_.Y._onCaptureEsc=function(){};
_.Y._onCaptureTab=function(){};
_.Y._onIronResize=function(){};
_.Y._onNodesChange=function(){};
_.Y.__ensureFirstLastFocusables=function(){};
_.Y.__openedChanged=function(){};
_.Y.__deraf=function(){};
_.Y.__updateScrollObservers=function(){};
_.Y.__addScrollListeners=function(){};
_.Y.__removeScrollListeners=function(){};
_.Y.__isValidScrollAction=function(){};
_.Y.__onCaptureScroll=function(){};
_.Y.__saveScrollPosition=function(){};
_.Y.__restoreScrollPosition=function(){};
_.Y._setCanceled=function(){};
NX6=_.Av({_template:function(){if(n8B!==void 0)return n8B;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;CjB===void 0&&(CjB=document.createElement("template"));var n=CjB;C.call(k,n.content.cloneNode(!0),W.content.firstChild);return n8B=W},
is:"tp-yt-paper-toast",behaviors:[_.Gu],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(){_.xM._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Q8.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var k in W)k.indexOf("_")===0?_.xM._warn('The property "'+k+'" is private and was not set.'):k in this?this[k]=W[k]:_.xM._warn('The property "'+k+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(y1&&y1!==this&&y1.close(),y1=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):y1===this&&(y1=null);_.s7._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Y17=new _.r("disablePersonalizationAction");var ZxT=new _.r("showDmaConsentFlowCommand");var ROA=new _.r("showMmgNoticeCommand");var BX7=new _.r("saveConsentAction");var buT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Jt(W)};
_.D(buT,_.US);var AZY=_.MNX(buT);var F2Y=new _.r("updateTopbarAvatarAction");var wri=new _.r("channelHandleValidationResultRenderer");var xYC=new _.r("generateHandleFromNameResultRenderer");var lj6=new _.r("channelHandleInputRenderer");var tRC=new _.r("copyLinkRenderer");var E8C=new _.r("timedCommand");var aj$=new _.r("clearCookieAction");var Xr1=new _.r("getMultiPageMenuAction");var fj6=new _.r("addToGuideSectionAction"),dY$=new _.r("removeFromGuideSectionAction");var mYS=new _.r("updateNotificationsUnseenCountAction");var zP7=new _.r("persistSubscriptionsDisplayPreferencesCommand");var DYZ=new _.r("resetChannelUnreadCountCommand");var VRT=new _.r("resetSubscriptionsUnreadDotCommand");var JZZ=new _.r("selectCountryCommand");var cZi=new _.r("selectLanguageCommand");var KG7=new _.r("sendFeedbackAction");var Ijt=new _.r("uploadImageToScottyCommand");var S1$=new _.r("webNativeShareCommand");var MR7=new _.r("registerPromoCommand");var QtC=new _.r("setPushNotificationsEnabledCommand");var pr7=new _.r("desktopTopbarRenderer");var v8Y=new _.r("surveyFollowUpRenderer");var ePu=new _.r("handlesClaimingRadioOptionRenderer");var stE=new _.r("hotkeyDialogRenderer");var G1i=new _.r("modifyReportFormCommand");var yZ6=new _.r("accountLinkCommand");var $YT=new _.r("accountUnlinkCommand");var Zu7=new _.r("logAccountLinkingEventCommand");var RPt=new _.r("guideCollapsibleEntryRenderer");var o8E=new _.r("guideDownloadsEntryRenderer");var $G=new _.r("guideEntryRenderer");var iuC=new _.r("getLocationCommand");var TX$=new _.r("locationCollectionCommand");var q17=new _.r("storiesItemViewModel");var uCi=new _.r("addToRemoteQueueAction");var UY6=new _.r("insertInRemoteQueueAction");var OuZ=new _.r("removeFromRemoteQueueAction");var L2$=new _.r("notificationRenderer");var DeC=new _.r("localWatchHistoryCommand");var jtu=new _.r("pdgBuyFlowHeaderRenderer");var HuC=new _.r("pdgColorSliderRenderer");var rZ6=new _.r("pdgCommentOptionRenderer");var g87=new _.r("pdgCommentPreviewRenderer");var Pj7=new _.r("superVodSelectableItemButtonRenderer");var K27=new _.r("switchButtonRenderer");var hPT=new _.r("upsellDialogRenderer");var WAC=new _.r("feedbackQuestionRenderer"),kkS=new _.r("feedbackOptionRenderer");var C4S=new _.r("sponsorshipsTierRenderer"),nAE=new _.r("sponsorshipsPromotionChannelRenderer");var Nl6=new _.r("simpleSurveyMessageRenderer");var KPS=new _.r("invokeInstrumentManagerAction");var Ym1=new _.r("logYpcFlowDismissCommand");var BlA=new _.r("logYpcFlowStartCommand");var bci=new _.r("unlimitedCreateFamilyEndpoint");var AaB=new _.r("iconBadgeRenderer");var dJ7=new _.r("collaborativePlaylistVisibilityValidationRule");var FAS=function(W){_.BS.call(this,"channelMessage");this.message=W};
_.D(FAS,_.BS);var wZ1=function(W){_.BS.call(this,"channelError");this.error=W};
_.D(wZ1,_.BS);var xgY={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"},l_Y={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},tA1={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},EA1={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},a_T={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Zo=function(W){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 _.PF;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";W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.theme=W.theme||"u",XZE(this,W.capabilities||""),f_E(this,W.compatibleSenderThemes||""),dgS(this,W.experiments||""),
this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||
0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Zo.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new Zo(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;return W};
Zo.prototype.equals=function(W){return W?this.id==W.id:!1};
var XZE=function(W,k){W.capabilities.clear();_.W9(k.split(","),_.lW(_.JU.contains,xgY)).forEach(function(C){W.capabilities.add(C)})},f_E=function(W,k){W.compatibleSenderThemes.clear();
_.W9(k.split(","),_.lW(_.JU.contains,l_Y)).forEach(function(C){W.compatibleSenderThemes.add(C)})},dgS=function(W,k){W.experiments.clear();
k.split(",").forEach(function(C){W.experiments.add(C)})};var mg6=function(W,k){this.action=W;this.params=k||{}};_.Pq(qRZ,_.XK);_.Y=qRZ.prototype;_.Y.JSC$17313_onTick_=function(){this.JSC$17311_interval_=Math.min(3E5,this.JSC$17311_interval_*2);this.JSC$17313_listener_();this.nextTickTime_&&this.start()};
_.Y.start=function(){var W=this.JSC$17311_interval_+15E3*Math.random(),k=this.delay_;k.isActive()||k.start(W);this.nextTickTime_=Date.now()+W};
_.Y.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.Y.isActive=function(){return this.delay_.isActive()};
_.Y.reset=function(){this.delay_.stop();this.JSC$17311_interval_=5E3};_.Pq(m6,UC7);_.Y=m6.prototype;_.Y.subscribe=function(W,k,C){return this.pubsub_.subscribe(W,k,C)};
_.Y.unsubscribe=function(W,k,C){return this.pubsub_.unsubscribe(W,k,C)};
_.Y.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.Y.publish=function(W,k){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.Y.dispose=function(){this.JSC$17314_disposed_||(this.JSC$17314_disposed_=!0,_.LU(this.pubsub_),this.disconnect(),_.LU(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17314_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.nB({})})};
_.Y.isDisposed=function(){return this.JSC$17314_disposed_};
_.Y.connect=function(W,k,C){var n=this,N,B,A,w;return _.F(function(x){if(x.nextAddress==1)return _.lM(x,2),n.useAsyncBrowserChannelHandler_?_.l(x,n.connectPromise_,2):x.jumpTo(2);_.xO(x);if(n.JSC$17314_disposed_||n.JSC$17314_channel_&&n.JSC$17314_channel_.getState()==2)return x.return();n.sCookie_="";n.reconnectTimer_.stop();n.connectionParams_=W||null;n.connectUi_=k||0;N=n.JSC$17314_pathPrefix_+"/test";B=n.JSC$17314_pathPrefix_+"/bind";A=new eb(C?C.firstTestResults:null,C?C.secondTestResults:null,
n.enableAsyncTest_);if(w=n.JSC$17314_channel_)w.handler_=null;A.handler_=n;n.JSC$17314_channel_=A;if(n.useAsyncBrowserChannelHandler_)return n.connectPromise_=zYt(n).then(function(){return Dg1(n,N,B,w,C)}),x.return(n.connectPromise_.then(function(){n.connectPromise_=_.nB()}));
Dg1(n,N,B,w,C);return _.t8(x,0)})};
var Dg1=function(W,k,C,n,N){VAi(W);if(W.JSC$17314_channel_){var B=_.DE("ID_TOKEN"),A=W.JSC$17314_channel_.JSC$17266_extraHeaders_||{};B?A["x-youtube-identity-token"]=B:delete A["x-youtube-identity-token"];W.JSC$17314_channel_.JSC$17266_extraHeaders_=A}Jat(W);n?(n.getState(),W.JSC$17314_channel_.connect(k,C,W.defaultQueryParams_,n.sid_,n.JSC$17266_lastArrayId_)):N?W.JSC$17314_channel_.connect(k,C,W.defaultQueryParams_,N.sessionId,N.arrayId):W.JSC$17314_channel_.connect(k,C,W.defaultQueryParams_)};
m6.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.nB())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),VAi(this),this.JSC$17314_channel_&&(this.JSC$17314_channel_.getState()==3&&RHt(this.JSC$17314_channel_),this.JSC$17314_channel_.disconnect()),this.disconnectUi_=0}};
m6.prototype.sendMessage=function(W,k){var C=this,n;return _.F(function(N){switch(N.nextAddress){case 1:_.lM(N,2);if(!C.useAsyncBrowserChannelHandler_){N.jumpTo(2);break}return _.l(N,C.connectPromise_,2);case 2:_.xO(N);if(C.JSC$17314_disposed_)return N.return();n={_sc:W};k&&_.JU.extend(n,k);if(C.reconnectTimer_.isActive()||(C.JSC$17314_channel_?C.JSC$17314_channel_.getState():0)==2){C.JSC$17314_pendingMessages_.push(n);N.jumpTo(6);break}if(!C.isChannelOpened()){N.jumpTo(6);break}_.lM(N,8);if(!C.useAsyncBrowserChannelHandler_||
ca7(C,W)){N.jumpTo(8);break}return _.l(N,zYt(C),8);case 8:_.xO(N,0,0,1);C.isChannelOpened()&&(ca7(C,W)||Jat(C),VAi(C),ZkC(C.JSC$17314_channel_,n));_.t8(N,6,1);break;case 6:_.t8(N,0)}})};
var ca7=function(W,k){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(tA1).includes(k):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(EA1).includes(k):W.disableMdxAuthForShortsMessages_?Object.values(a_T).includes(k):!1};
m6.prototype.JSC$17273_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17314_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)I_S(this);else{var W=this.JSC$17314_pendingMessages_;this.JSC$17314_pendingMessages_=[];var k=W.length;Jat(this);Sm$(this,W,k);MA$(this)}else MA$(this)};
var I_S=function(W){var k,C;_.F(function(n){if(n.nextAddress==1)return _.lM(n,2),_.l(n,zYt(W),2);_.xO(n);k=W.JSC$17314_pendingMessages_;W.JSC$17314_pendingMessages_=[];C=k.length;Sm$(W,k,C);MA$(W);return _.t8(n,0)})},Sm$=function(W,k,C){for(var n=0;n<C;++n)ZkC(W.JSC$17314_channel_,k[n]);
MA$(W)},MA$=function(W){W.publish("handlerOpened");
W.JSC$17314_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.Y=m6.prototype;_.Y.JSC$17273_channelError=function(W){var k=W==2&&this.JSC$17314_channel_.JSC$17266_lastStatusCode_==401;W==4||k||this.reconnectTimer_.start();this.publish("handlerError",W,k);k=Object.keys(Q$B).find(function(C){return Q$B[C]===W});
this.JSC$17314_channelErrorCounter.increment("BROWSER_CHANNEL",k!=null?k:"UNKNOWN")};
_.Y.JSC$17273_channelClosed=function(W,k){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(k)for(var C=k.length,n=0;n<C;++n){var N=k[n].map;N&&this.JSC$17314_pendingMessages_.push(N)}this.JSC$17314_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$7801_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);k&&this.undeliveredMapsOnClosedCounter.JSC$7804_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
k.length)};
_.Y.JSC$17273_channelSuccess=function(W,k){k!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.Y.JSC$17273_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.JU.extend(W,this.connectionParams_);return W};
_.Y.JSC$17273_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17314_channel_.disconnect()):this.publish("handlerMessage",new mg6(W[0],W[1]));this.JSC$17314_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.Y.isChannelOpened=function(){return!!this.JSC$17314_channel_&&this.JSC$17314_channel_.getState()==3};
var VAi=function(W){if(W.JSC$17314_channel_){var k=W.JSC$17314_getXsrfToken_(),C=W.JSC$17314_channel_.JSC$17266_extraHeaders_||{};k?C["x-youtube-lounge-xsrf-token"]=k:delete C["x-youtube-lounge-xsrf-token"];W.JSC$17314_channel_.JSC$17266_extraHeaders_=C}},zYt=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.nB();
if(!W.enableCachedUpdateAuthorizationHeader_)return QcC(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=QcC(W));return W.updateAuthorizationHeaderPromise_},QcC=function(W){return _.aa(W.getAuthorizationHeader_().then(function(k){pZS(W,k)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},pZS=function(W,k){if(W.JSC$17314_channel_){var C=W.JSC$17314_channel_.JSC$17266_extraHeaders_||{};
k&&Object.keys(k).length>0?C=Object.assign({},C,k):delete C.Authorization;W.JSC$17314_channel_.JSC$17266_extraHeaders_=C}},Jat=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&pZS(W,W.getAuthorizationHeaderSync_())};
_.Y=m6.prototype;_.Y.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17314_channel_){var k=this.JSC$17314_channel_.JSC$17266_extraHeaders_||{};W?k["X-YouTube-LoungeId-Token"]=W:delete k["X-YouTube-LoungeId-Token"];this.JSC$17314_channel_.JSC$17266_extraHeaders_=k}};
_.Y.getDeviceId=function(){return this.defaultQueryParams_.id};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.Y.safeReconnect_=function(){var W=this.JSC$17314_channel_,k=0;W.JSC$17266_backChannelRequest_&&k++;W.forwardChannelRequest_&&k++;k==0&&this.connect(this.connectionParams_,this.connectUi_)};var Sx=function(W,k){var C=W.basePath;W.supportCors&&(C=W.scheme+"://"+W.domain+W.port+W.basePath);return _.$n(C+k,{})};
zs.prototype.sendRequest=function(W,k,C,n,N,B,A){W={format:B?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!A,onSuccess:_.lW(this.JSC$17319_onSuccess_,n,!B),onError:_.lW(this.onError_,N),onTimeout:_.lW(this.JSC$17319_onTimeout_,N)};C&&(W.postParams=C,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.hj(k,W)};
zs.prototype.JSC$17319_onSuccess_=function(W,k,C,n){k?W(n):W({text:C.responseText})};
zs.prototype.onError_=function(W,k){W(Error("Bk`"+k.status))};
zs.prototype.JSC$17319_onTimeout_=function(W){W(Error("Ck"))};var VL=function(W,k){return!!k&&(W.id==k||W.uuid==k)},vAT=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},eYu=function(W){return new Dc(W)},scT=function(W){return Array.isArray(W)?_.cD(W,eYu):[]},PHT=function(W){if(!W)return"null";
var k=W.token?".."+W.token.slice(-6):"-",C=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(k+",uuid:"+C+",idType:"+W.idType+"}")},I7B=function(W){return Array.isArray(W)?"["+_.cD(W,PHT).join(",")+"]":"null"};var Yv7="",I6=null;var ENE=function(W,k){_.xT.call(this);var C=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$17326_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(n,N){C.onError(N)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=k};
_.D(ENE,_.xT);_.Y=ENE.prototype;_.Y.connect=function(W,k,C){this.handler.connect(W,k,C)};
_.Y.disconnect=function(W){this.handler.disconnect(W)};
_.Y.reconnect=function(){this.handler.reconnect()};
_.Y.getDeviceId=function(){return this.handler.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.Y.JSC$17326_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,k=this.currentScreenId;_.KE("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$17314_channel_.useChunked_,sessionId:W.JSC$17314_channel_.sid_,arrayId:W.JSC$17314_channel_.JSC$17266_lastArrayId_});_.KE("yt-remote-session-screen-id",k);W=hDA();k=WEu();_.ZX(W,k)||W.push(k);Nki(W);nNB()};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(W){this.dispatchEvent(new FAS(W))};
_.Y.onError=function(W){this.dispatchEvent(new wZ1(W?1:0))};
_.Y.sendMessage=function(W,k){this.handler.sendMessage(W,k)};
_.Y.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.Y.dispose=function(){this.handler.dispose()};var tq7=function(W,k,C){var n=this;C=C===void 0?function(){return""}:C;
var N=N===void 0?new kI7:N;var B=B===void 0?new _.kg:B;this.pathPrefix=W;this.defaultQueryParams=k;this.getXsrfToken=C;this.JSC$17329_pubsub=B;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new qRZ(function(){var A;((A=n.channel)==null?void 0:v$6((new NB6(A,A.JSC$17237_channel_)).JSC$17247_channel_.forwardChannelRequestPool_))===0&&n.connect(n.connectionParams,n.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17329_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17329_channelOpenedCounter=new uYE;this.JSC$17329_channelClosedCounter=new U2u;this.JSC$17329_channelMessageReceivedCounter=new L4Y;this.JSC$17329_channelErrorCounter=new jZT};
tq7.prototype.connect=function(W,k){W=W===void 0?{}:W;k=k===void 0?0:k;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=k,Gku(this),(W=_.DE("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 cU(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,yaT(this))};
var yaT=function(W){_.b6(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var k=_.b(W.nonAckedMessagesOnChannelClosed),C=k.next();!C.done;C=k.next())C=C.value,W.channel&&W.channel.send(C);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$17329_channelOpenedCounter.increment("WEB_CHANNEL")});
_.b6(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var k,C=(k=W.channel)==null?void 0:Y$1(new NB6(k,k.JSC$17237_channel_));C&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.J8(C)));W.JSC$17329_channelClosedCounter.increment("WEB_CHANNEL")});
_.b6(W.channel,"z",function(k){var C=k.data;C[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new mg6(C[0],C[1]));W.lastStatusCode=k.statusCode;W.JSC$17329_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.b6(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$17329_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.Y=tq7.prototype;_.Y.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();Gku(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.Y.sendMessage=function(W,k){this.channel&&(Gku(this),W=Object.assign({},{_sc:W},k),this.channel.send(W))};
_.Y.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Gku=function(W){var k=W.getXsrfToken();k?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=k:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.Y=tq7.prototype;_.Y.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.Y.publish=function(W){return this.JSC$17329_pubsub.publish.apply(this.JSC$17329_pubsub,[W].concat(_.J8(_.v6.apply(1,arguments))))};
_.Y.subscribe=function(W,k,C){return this.JSC$17329_pubsub.subscribe(W,k,C)};
_.Y.unsubscribe=function(W,k,C){return this.JSC$17329_pubsub.unsubscribe(W,k,C)};
_.Y.unsubscribeByKey=function(W){return this.JSC$17329_pubsub.unsubscribeByKey(W)};
_.Y.dispose=function(){this.JSC$17329_disposed||(this.JSC$17329_disposed=!0,_.LU(this.JSC$17329_pubsub),this.disconnect(),_.LU(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.Y.isDisposed=function(){return this.JSC$17329_disposed};var l7Z=function(W){_.xT.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$17337_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.D(l7Z,_.xT);_.Y=l7Z.prototype;_.Y.connect=function(W,k){this.webChannelService.connect(W,k)};
_.Y.disconnect=function(W){this.webChannelService.disconnect(W)};
_.Y.reconnect=function(){this.webChannelService.reconnect()};
_.Y.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.Y.JSC$17337_onOpened=function(){this.dispatchEvent("channelOpened")};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(W){this.dispatchEvent(new FAS(W))};
_.Y.onError=function(){this.dispatchEvent(new wZ1(this.webChannelService.lastStatusCode===401?1:0))};
_.Y.sendMessage=function(W,k){this.webChannelService.sendMessage(W,k)};
_.Y.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.Y.dispose=function(){this.webChannelService.dispose()};var c36=Date.now(),MW=null,Vq$=Array(50),vA=-1,J3t=!1;_.Pq(ex,_.im);ex.prototype.getScreens=function(){return this.screens};
ex.prototype.contains=function(W){return!!K4t(this.screens,W)};
ex.prototype.get=function(W){return W?JJ(this.screens,W):null};
var $g1=function(W,k){var C=W.get(k.uuid)||W.get(k.id);if(C)return W=C.name,C.id=k.id||C.id,C.name=k.name,C.token=k.token,C.uuid=k.uuid||C.uuid,C.name!=W;W.screens.push(k);return!0},ZcZ=function(W,k){var C=W.screens.length!=k.length;
W.screens=_.W9(W.screens,function(B){return!!K4t(k,B)});
for(var n=k.length,N=0;N<n;N++)C=$g1(W,k[N])||C;return C},RYS=function(W,k){var C=W.screens.length;
W.screens=_.W9(W.screens,function(n){return!(n||k?!n!=!k?0:n.id==k.id:1)});
return W.screens.length<C};
ex.prototype.info=function(W){QL(this.JSC$17338_logName_,W)};var oA7=function(W,k,C,n,N){_.im.call(this);this.JSC$17341_http_=W;this.pairingCode_=k;this.deviceId_=C;this.friendlyName_=n;this.enableShortLivedLoungeToken_=N;this.pollIndex_=0;this.JSC$17341_xhr_=null;this.JSC$17341_timer_=NaN};
_.D(oA7,_.im);_.Y=oA7.prototype;_.Y.start=function(){!this.JSC$17341_xhr_&&isNaN(this.JSC$17341_timer_)&&this.poll_()};
_.Y.stop=function(){this.JSC$17341_xhr_&&(this.JSC$17341_xhr_.abort(),this.JSC$17341_xhr_=null);isNaN(this.JSC$17341_timer_)||(_.Pv(this.JSC$17341_timer_),this.JSC$17341_timer_=NaN)};
_.Y.disposeInternal=function(){this.stop();_.im.prototype.disposeInternal.call(this)};
_.Y.poll_=function(){this.JSC$17341_timer_=NaN;this.JSC$17341_xhr_=_.hj(Sx(this.JSC$17341_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.fN)(this.JSC$17343_onSuccess_,this),onError:(0,_.fN)(this.onError_,this),onTimeout:(0,_.fN)(this.JSC$17343_onTimeout_,this)})};
_.Y.JSC$17343_onSuccess_=function(W,k){this.JSC$17341_xhr_=null;W=k.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;k=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,k=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Dc(W),k)};
_.Y.onError_=function(W){this.JSC$17341_xhr_=null;W.status&&W.status==404?this.pollIndex_>=icZ.length?this.publish("pairingFailed",Error("Dk")):(W=icZ[this.pollIndex_],this.JSC$17341_timer_=_.rA((0,_.fN)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+W.status))};
_.Y.JSC$17343_onTimeout_=function(){this.JSC$17341_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var icZ=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Pq(Gs,ex);_.Y=Gs.prototype;_.Y.start=function(){s_(this)&&this.publish("screenChange");!_.h4("yt-remote-lounge-token-expiration")&&Tlt(this);_.Pv(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.rA((0,_.fN)(this.start,this),1E4)};
_.Y.add=function(W,k){s_(this);$g1(this,W);qmT(this,!1);this.publish("screenChange");k(W);W.token||Tlt(this)};
_.Y.remove=function(W,k){var C=s_(this);RYS(this,W)&&(qmT(this,!1),C=!0);k(W);C&&this.publish("screenChange")};
_.Y.updateName=function(W,k,C,n){var N=s_(this),B=this.get(W.id);B?(B.name!=k&&(B.name=k,qmT(this,!1),N=!0),C(W)):n(Error("Gk"));N&&this.publish("screenChange")};
_.Y.disposeInternal=function(){_.Pv(this.loungeTokenRefreshTimer_);Gs.superClass_.disposeInternal.call(this)};
var Tlt=function(W){if(W.screens.length){var k=_.cD(W.screens,function(n){return n.id}),C=Sx(W.JSC$17345_http_,"/pairing/get_lounge_token_batch");
W.JSC$17345_http_.sendRequest("POST",C,{screen_ids:k.join(",")},(0,_.fN)(W.handleLoungeTokens_,W),(0,_.fN)(W.handleLoungeTokenError_,W))}};
Gs.prototype.handleLoungeTokens_=function(W){s_(this);var k=this.screens.length;W=W&&W.screens||[];for(var C=W.length,n=0;n<C;++n){var N=W[n],B=this.get(N.screenId);B&&(B.token=N.loungeToken,--k)}qmT(this,!k);k&&QL(this.JSC$17338_logName_,"Missed "+k+" lounge tokens.")};
Gs.prototype.handleLoungeTokenError_=function(W){QL(this.JSC$17338_logName_,"Requesting lounge tokens failed: "+W)};
var s_=function(W){if(_.m("deprecate_pair_servlet_enabled"))return ZcZ(W,[]);var k=scT(bs7());k=_.W9(k,function(C){return!C.uuid});
return ZcZ(W,k)},qmT=function(W,k){FEY(_.cD(W.screens,vAT));
k&&A3T()};var R2=function(W,k){_.im.call(this);this.getScreensToCheck_=k;k=(k=_.h4("yt-remote-online-screen-ids")||"")?k.split(","):[];for(var C={},n=this.getScreensToCheck_(),N=n.length,B=0;B<N;++B){var A=n[B].id;C[A]=_.ZX(k,A)}this.screenIdSet_=C;this.JSC$17348_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;uyu("Initialized with "+(0,_.dm)(this.screenIdSet_))};
_.D(R2,_.im);R2.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
R2.prototype.start=function(){var W=parseInt(_.h4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.gk()-144E5<W?0:W)?UgB(this):(this.fastCheckEndTime_=_.gk()+3E5,_.KE("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
R2.prototype.isEmpty=function(){return _.JU.isEmpty(this.screenIdSet_)};
R2.prototype.update=function(){uyu("Updating availability on schedule.");var W=this.getScreensToCheck_(),k=_.JU.filter(this.screenIdSet_,function(C,n){return C&&!!JJ(W,n)},this);
OcC(this,k)};
var LAY=function(W,k,C){var n=Sx(W.JSC$17348_http_,"/pairing/get_screen_availability");W.JSC$17348_http_.sendRequest("POST",n,{lounge_token:k.token},(0,_.fN)(function(N){N=N.screens||[];for(var B=N.length,A=0;A<B;++A)if(N[A].loungeToken==k.token){C(N[A].status=="online");return}C(!1)},W),(0,_.fN)(function(){C(!1)},W))};
R2.prototype.disposeInternal=function(){_.Pv(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.im.prototype.disposeInternal.call(this)};
var OcC=function(W,k){a:if(_.JU.getCount(k)!=_.JU.getCount(W.screenIdSet_))var C=!1;else{C=_.JU.getKeys(k);for(var n=C.length,N=0;N<n;++N)if(!W.screenIdSet_[C[N]]){C=!1;break a}C=!0}C||(uyu("Updated online screens: "+(0,_.dm)(W.screenIdSet_)),W.screenIdSet_=k,W.publish("screenChange"));jct(W)},UgB=function(W){isNaN(W.refreshTimer_)||_.Pv(W.refreshTimer_);
W.refreshTimer_=_.rA((0,_.fN)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.gk()?2E4:1E4)};
R2.prototype.requestScreenAvailability_=function(){_.Pv(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=Hc7(this);if(_.JU.getCount(W)){var k=Sx(this.JSC$17348_http_,"/pairing/get_screen_availability"),C={lounge_token:_.JU.getKeys(W).join(",")};this.currentRequest_=this.JSC$17348_http_.sendRequest("POST",k,C,(0,_.fN)(this.onScreenAvailability_,this,W),(0,_.fN)(this.onScreenAvailabilityError_,this))}else OcC(this,{}),UgB(this)};
R2.prototype.onScreenAvailability_=function(W,k){this.currentRequest_=null;var C=_.JU.getKeys(Hc7(this));if(_.g3(C,_.JU.getKeys(W))){k=k.screens||[];C={};for(var n=k.length,N=0;N<n;++N)C[W[k[N].loungeToken]]=k[N].status=="online";OcC(this,C);UgB(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
R2.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;UgB(this)};
var uyu=function(W){QL("OnlineScreenService",W)};
R2.prototype.warn_=function(W){QL("OnlineScreenService",W)};
var Hc7=function(W){var k={};_.eO(W.getScreensToCheck_(),function(C){C.token?k[C.token]=C.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return k},jct=function(W){W=_.JU.getKeys(_.JU.filter(W.screenIdSet_,function(k){return k}));
W.sort(_.S24);W.length?_.KE("yt-remote-online-screen-ids",W.join(","),60):_.WR("yt-remote-online-screen-ids")};_.Pq(yL,ex);_.Y=yL.prototype;_.Y.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.Y.add=function(W,k,C){this.localScreenService_.add(W,k,C)};
_.Y.remove=function(W,k,C){this.localScreenService_.remove(W,k,C);this.onlineScreenService_.update()};
_.Y.updateName=function(W,k,C,n){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,k,C,n):(W="Updating name of unknown screen: "+W.name,QL(this.JSC$17338_logName_,W),n(Error(W)))};
_.Y.getScreens=function(W){return W?this.screens:VcA(this.screens,_.W9(this.automaticScreens_,function(k){return!this.contains(k)},this))};
_.Y.JSC$17353_getOnlineScreens=function(){return _.W9(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var gAu=function(W,k,C,n,N,B){W.info("getAutomaticScreenByIds "+C+" / "+k);C||(C=W.deviceToScreenId_[k]);var A=W.getScreens(),w=C?JJ(A,C):null;C&&(W.disableAutomaticScreenCache_||w)||(w=JJ(A,k));if(w){w.uuid=k;var x=o2(W,w);LAY(W.onlineScreenService_,x,function(E){N(E?x:null)})}else C?ra7(W,C,(0,_.fN)(function(E){var a=o2(this,new Dc({name:n,
screenId:C,loungeToken:E,dialId:k||""}));LAY(this.onlineScreenService_,a,function(X){N(X?a:null)})},W),B):N(null)};
yL.prototype.JSC$17353_getScreenByPollingPairingCode=function(W,k,C,n,N,B){var A=this;this.info("getDialScreenByPairingCode "+W+" / "+k);var w=new oA7(this.JSC$17351_http_,W,k,C,n);w.subscribe("pairingComplete",function(x,E){_.LU(w);N(o2(A,x),E)});
w.subscribe("pairingFailed",function(x){_.LU(w);B(x)});
w.start();return(0,_.fN)(w.stop,w)};
var P4$=function(W,k){for(var C=W.screens.length,n=0;n<C;++n)if(W.screens[n].name==k)return W.screens[n];return null};
yL.prototype.JSC$17353_getScreenByPairingCode=function(W,k,C,n){_.hj(Sx(this.JSC$17351_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.fN)(function(N,B){N=new Dc(B.screen||{});if(!N.name||P4$(this,N.name)){a:{B=N.name;for(var A=2,w=k(B,A);P4$(this,w);){A++;if(A>20)break a;w=k(B,A)}B=w}N.name=B}C(o2(this,N))},this),
onError:(0,_.fN)(function(N){n(Error("Hk`"+N.status))},this),
onTimeout:(0,_.fN)(function(){n(Error("Ik"))},this)})};
var KAu=function(W,k,C){LAY(W.onlineScreenService_,k,C)};
yL.prototype.disposeInternal=function(){_.LU(this.localScreenService_);_.LU(this.onlineScreenService_);yL.superClass_.disposeInternal.call(this)};
var ra7=function(W,k,C,n){W.info("requestLoungeToken_ for "+k);var N={postParams:{screen_ids:k},method:"POST",context:W,onSuccess:function(B,A){B=A&&A.screens||[];B[0]&&B[0].screenId==k?C(B[0].loungeToken):n(Error("Jk"))},
onError:function(){n(Error("Kk"))}};
_.hj(Sx(W.JSC$17351_http_,"/pairing/get_lounge_token_batch"),N)},hYY=function(W){W.screens=W.localScreenService_.getScreens();
for(var k=_.JU.transpose(W.deviceToScreenId_),C=W.screens.length,n=0;n<C;++n){var N=W.screens[n];N.uuid=k[N.id]||""}W.info("Updated manual screens: "+I7B(W.screens))};
yL.prototype.handleScreenChange_=function(){hYY(this);this.publish("screenChange");this.onlineScreenService_.update()};
var SvY=function(W){WZ$(W);W.localScreenService_=new Gs(W.JSC$17351_http_);W.localScreenService_.subscribe("screenChange",(0,_.fN)(W.handleScreenChange_,W));hYY(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=scT(_.h4("yt-remote-automatic-screen-cache")||[]));WZ$(W);W.info("Initializing automatic screens: "+I7B(W.automaticScreens_));W.onlineScreenService_=new R2(W.JSC$17351_http_,(0,_.fN)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.fN)(function(){this.publish("onlineScreenChange")},
W))},o2=function(W,k){var C=W.get(k.id);
C?(C.uuid=k.uuid,k=C):((C=JJ(W.automaticScreens_,k.uuid))?(C.id=k.id,C.token=k.token,k=C):W.automaticScreens_.push(k),W.disableAutomaticScreenCache_||kx6(W));WZ$(W);W.deviceToScreenId_[k.uuid]=k.id;_.KE("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return k},kx6=function(W){W=_.W9(W.automaticScreens_,function(k){return k.idType!="shortLived"});
_.KE("yt-remote-automatic-screen-cache",_.cD(W,vAT))},WZ$=function(W){W.deviceToScreenId_=_.h4("yt-remote-device-id-map")||{}};
yL.prototype.dispose=yL.prototype.dispose;_.Pq($W,_.im);var iJ=function(W,k){W.screen_=k;W.publish("sessionScreen",W.screen_)},CiC=function(W,k){W.screen_&&(W.screen_.token=k,o2(W.JSC$17355_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
$W.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(TV(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
$W.prototype.info=function(W){QL(this.JSC$17355_logName_,W)};
var TV=function(W,k){QL(W.JSC$17355_logName_,k)};
$W.prototype.JSC$17357_getCastSession=function(){return null};
$W.prototype.setDisplayStatus=function(W){var k=this.receiver_;W?(k.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),k.displayStatus.showStop=!0):k.displayStatus=null;chrome.cast.setReceiverDisplayStatus(k,(0,_.fN)(function(){this.info("Updated receiver status for "+k.friendlyName+": "+W)},this),(0,_.fN)(function(){TV(this,"Failed to update receiver status for: "+k.friendlyName)},this))};
$W.prototype.disposeInternal=function(){this.setDisplayStatus("");$W.superClass_.disposeInternal.call(this)};var q8=function(W,k,C){$W.call(this,W,k,"CastSession");var n=this;this.config_=C;this.JSC$17360_session_=null;this.JSC$17360_boundSessionUpdate_=(0,_.fN)(this.JSC$17362_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.fN)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.rA(function(){nCS(n,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17360_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17360_isInitLoungeToken_=!1;this.JSC$17360_lastLoungeTokenRefreshError_="unknown"};
_.D(q8,$W);_.Y=q8.prototype;
_.Y.setCastSession=function(W){if(this.JSC$17360_session_){if(this.JSC$17360_session_==W)return;TV(this,"Overriding cast session with new session object");NOB(this);this.JSC$17360_isInitLoungeToken_=!1;this.JSC$17360_lastLoungeTokenRefreshError_="unknown";this.JSC$17360_session_.removeUpdateListener(this.JSC$17360_boundSessionUpdate_);this.JSC$17360_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17360_session_=W;this.JSC$17360_session_.addUpdateListener(this.JSC$17360_boundSessionUpdate_);this.JSC$17360_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);YDY(this,"getMdxSessionStatus")};
_.Y.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.dm)(W))};
_.Y.stop=function(){if(this.JSC$17360_session_)this.JSC$17360_session_.stop((0,_.fN)(function(){this.onSessionStopped()},this),(0,_.fN)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.Y.setDisplayStatus=function(){};
_.Y.disposeInternal=function(){this.info("disposeInternal");NOB(this);this.JSC$17360_session_&&(this.JSC$17360_session_.removeUpdateListener(this.JSC$17360_boundSessionUpdate_),this.JSC$17360_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17360_session_=null;$W.prototype.disposeInternal.call(this)};
var bG1=function(W,k){_.Pv(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;k==0?BOZ(W):W.getLoungeTokenTimeoutKey_=_.rA(function(){BOZ(W)},k)},BOZ=function(W){YDY(W,"getLoungeToken");
_.Pv(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.rA(function(){AcY(W,null)},3E4)},YDY=function(W,k){W.info("sendYoutubeMessage_: "+k+" "+(0,_.dm)(void 0));
var C={};C.type=k;W.JSC$17360_session_?W.JSC$17360_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",C,function(){},(0,_.fN)(function(){TV(this,"Failed to send message: "+k+".")},W)):TV(W,"Sending yt message without session: "+(0,_.dm)(C))};
q8.prototype.onYoutubeMessage_=function(W,k){if(!this.isDisposed())if(k)if(k=(0,_.fY)(k),_.O2(k))switch(W=""+k.type,k=k.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.dm)(k)),W){case "mdxSessionStatus":nCS(this,k);break;case "loungeToken":AcY(this,k);break;default:TV(this,"Unknown youtube message: "+W)}else TV(this,"Unable to parse message.");else TV(this,"No data in message.")};
var FZA=function(W,k){if(k)W.info("onConnectedScreenId_: Received screenId: "+k),W.screen_&&W.screen_.id==k||W.getScreen_(k,function(C){iJ(W,C)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("Nk"))},xk7=function(W,k,C){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(k));
var n=new Dc(k);w2B(W,n,function(N){N?(W.JSC$17360_isInitLoungeToken_=!0,o2(W.JSC$17355_screenService_,n),iJ(W,n),W.JSC$17360_lastLoungeTokenRefreshError_="unknown",bG1(W,C)):(_.I4(Error("Ok`"+JSON.stringify(k))),W.onSessionStopped())},5)},nCS=function(W,k){_.Pv(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(k)W.config_.enableCastLoungeToken&&k.loungeToken?k.deviceId?W.screen_&&W.screen_.uuid==k.deviceId||(k.loungeTokenRefreshIntervalMs?xk7(W,{name:W.receiver_.friendlyName,screenId:k.screenId,loungeToken:k.loungeToken,dialId:k.deviceId,screenIdType:"shortLived"},k.loungeTokenRefreshIntervalMs):(_.I4(Error("Qk`"+JSON.stringify(k))),FZA(W,k.screenId))):(_.I4(Error("Pk`"+JSON.stringify(k))),FZA(W,k.screenId)):FZA(W,k.screenId);else W.onSessionStopped(Error("Nk"))},AcY=function(W,
k){_.Pv(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var C=null;if(k)if(k.loungeToken){var n;((n=W.screen_)==null?void 0:n.token)==k.loungeToken&&(C="staleLoungeToken")}else C="missingLoungeToken";else C="noLoungeTokenResponse";C?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(k)+", error: "+C)),W.JSC$17360_lastLoungeTokenRefreshError_=C,bG1(W,3E4)):(CiC(W,k.loungeToken),W.JSC$17360_isInitLoungeToken_=!1,W.JSC$17360_lastLoungeTokenRefreshError_="unknown",bG1(W,k.loungeTokenRefreshIntervalMs))};
q8.prototype.getScreen_=function(W,k,C,n){_.Pv(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gAu(this.JSC$17355_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.fN)(function(N){N?k(N):n>=0?(TV(this,"Screen "+W+" appears to be offline. "+n+" retries left."),this.getScreenTimeoutKey_=_.rA((0,_.fN)(this.getScreen_,this,W,k,C,n-1),300)):C(Error("Rk"))},this),C)};
var w2B=function(W,k,C,n){_.Pv(W.JSC$17360_checkScreenAvailabilityTimeoutKey_);W.JSC$17360_checkScreenAvailabilityTimeoutKey_=0;KAu(W.JSC$17355_screenService_,k,function(N){N||n<0?C(N):W.JSC$17360_checkScreenAvailabilityTimeoutKey_=_.rA(function(){w2B(W,k,C,n-1)},300)})};
q8.prototype.JSC$17357_getCastSession=function(){return this.JSC$17360_session_};
q8.prototype.JSC$17362_onSessionUpdate_=function(W){this.isDisposed()||W||(TV(this,"Cast session died."),this.onSessionStopped())};
var NOB=function(W){_.Pv(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.Pv(W.JSC$17360_checkScreenAvailabilityTimeoutKey_);W.JSC$17360_checkScreenAvailabilityTimeoutKey_=0;_.Pv(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.Pv(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.Pv(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var uJ=function(W,k,C,n){$W.call(this,W,k,"DialSession");this.config_=n;this.JSC$17364_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17364_theme_=C;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17364_deferredLaunchDeadlineTimer_=NaN;this.JSC$17364_boundSessionUpdate_=(0,_.fN)(this.JSC$17366_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17364_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17364_isInitLoungeToken_=!1;this.JSC$17364_lastLoungeTokenRefreshError_="unknown"};
_.D(uJ,$W);uJ.prototype.setCastSession=function(W){this.JSC$17364_session_=W;this.JSC$17364_session_.addUpdateListener(this.JSC$17364_boundSessionUpdate_)};
uJ.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
uJ.prototype.stop=function(){lUZ(this);if(this.JSC$17364_session_)this.JSC$17364_session_.stop((0,_.fN)(this.onSessionStopped,this,null),(0,_.fN)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
uJ.prototype.disposeInternal=function(){lUZ(this);this.JSC$17364_session_&&this.JSC$17364_session_.removeUpdateListener(this.JSC$17364_boundSessionUpdate_);this.JSC$17364_session_=null;$W.prototype.disposeInternal.call(this)};
var tLE=function(W){var k;return!!(W.config_.enableDialLoungeToken&&((k=W.JSC$17364_session_)==null?0:k.getDialAppInfo))},ECE=function(W){W.cancelPolling_=W.JSC$17355_screenService_.JSC$17353_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,tLE(W),function(k,C){W.cancelPolling_=function(){};
W.JSC$17364_isInitLoungeToken_=!0;iJ(W,k);k.idType=="shortLived"&&C>0&&U8(W,C)},function(k){W.cancelPolling_=function(){};
W.onSessionStopped(k)})};
uJ.prototype.JSC$17366_onSessionUpdate_=function(W){this.isDisposed()||W||(TV(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var aU$=function(W){var k={};k.pairingCode=W.reversePairingCode_;k.theme=W.JSC$17364_theme_;xKA()&&(k.env_useStageMdx=1);return _.W4(k)},X2Z=function(W){return new Promise(function(k){W.reversePairingCode_=gx7();
if(W.connectData_){var C=new chrome.cast.DialLaunchResponse(!0,aU$(W));k(C);ECE(W)}else W.deferredLaunch_=function(){_.Pv(W.JSC$17364_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$17364_deferredLaunchDeadlineTimer_=NaN;var n=new chrome.cast.DialLaunchResponse(!0,aU$(W));k(n);ECE(W)},W.JSC$17364_deferredLaunchDeadlineTimer_=_.rA(function(){W.deferredLaunch_()},100)})},dk7=function(W,k,C){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(k));
var n=new Dc(k);return(new Promise(function(N){fUC(W,n,function(B){B?(W.JSC$17364_isInitLoungeToken_=!0,o2(W.JSC$17355_screenService_,n),iJ(W,n),U8(W,C)):_.I4(Error("Tk`"+JSON.stringify(k)));N(B)},5)})).then(function(N){return N?new chrome.cast.DialLaunchResponse(!1):X2Z(W)})},mk6=function(W,k){var C=W.launchData_.receiver.label,n=W.receiver_.friendlyName;
return(new Promise(function(N){gAu(W.JSC$17355_screenService_,C,k,n,function(B){B&&B.token&&iJ(W,B);N(B)},function(B){TV(W,"Failed to get DIAL screen: "+B);
N(null)})})).then(function(N){return N&&N.token?new chrome.cast.DialLaunchResponse(!1):X2Z(W)})},fUC=function(W,k,C,n){_.Pv(W.JSC$17364_checkScreenAvailabilityTimeoutKey_);
W.JSC$17364_checkScreenAvailabilityTimeoutKey_=0;KAu(W.JSC$17355_screenService_,k,function(N){N||n<0?C(N):W.JSC$17364_checkScreenAvailabilityTimeoutKey_=_.rA(function(){fUC(W,k,C,n-1)},300)})},U8=function(W,k){W.info("getDialAppInfoWithTimeout_ "+k);
tLE(W)&&(_.Pv(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,k==0?z37(W):W.getDialAppInfoTimeoutKey_=_.rA(function(){z37(W)},k))},z37=function(W){tLE(W)&&W.JSC$17364_session_.getDialAppInfo(function(k){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(k));
k=k.extraData||{};var C=null;if(k.loungeToken){var n;((n=W.screen_)==null?void 0:n.token)==k.loungeToken&&(C="staleLoungeToken")}else C="missingLoungeToken";C?(W.JSC$17364_lastLoungeTokenRefreshError_=C,U8(W,3E4)):(W.JSC$17364_isInitLoungeToken_=!1,W.JSC$17364_lastLoungeTokenRefreshError_="unknown",CiC(W,k.loungeToken),U8(W,k.loungeTokenRefreshIntervalMs))},function(k){W.info("getDialAppInfo error: "+k);
W.JSC$17364_lastLoungeTokenRefreshError_="noLoungeTokenResponse";U8(W,3E4)})},lUZ=function(W){_.Pv(W.JSC$17364_checkScreenAvailabilityTimeoutKey_);
W.JSC$17364_checkScreenAvailabilityTimeoutKey_=0;_.Pv(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.Pv(W.JSC$17364_deferredLaunchDeadlineTimer_)};var O8=function(W,k){$W.call(this,W,k,"ManualSession");this.JSC$17368_deferredLaunchDeadlineTimer_=_.rA((0,_.fN)(this.launchWithParams,this,null),150)};
_.D(O8,$W);O8.prototype.stop=function(){this.onSessionStopped()};
O8.prototype.setCastSession=function(){};
O8.prototype.launchWithParams=function(){_.Pv(this.JSC$17368_deferredLaunchDeadlineTimer_);this.JSC$17368_deferredLaunchDeadlineTimer_=NaN;var W=JJ(this.JSC$17355_screenService_.getScreens(),this.receiver_.label);if(W)iJ(this,W);else this.onSessionStopped(Error("Uk"))};
O8.prototype.disposeInternal=function(){_.Pv(this.JSC$17368_deferredLaunchDeadlineTimer_);this.JSC$17368_deferredLaunchDeadlineTimer_=NaN;$W.prototype.disposeInternal.call(this)};var i9=function(W,k){_.im.call(this);this.config_=k;this.JSC$17371_screenService_=W;this.JSC$17371_appId_=k.appId||"233637DE";this.JSC$17371_theme_=k.theme||"cl";this.disableDial_=k.disableCastApi||!1;this.forceMirroring_=k.forceMirroring||!1;this.JSC$17371_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.fN)(this.onReceiverAction_,this)};
_.D(i9,_.im);
i9.prototype.init=function(W,k){chrome.cast.timeout.requestSession=3E4;var C=new chrome.cast.SessionRequest(this.JSC$17371_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.m("desktop_enable_cast_connect")&&(C.androidReceiverCompatible=!0);this.disableDial_||(C.dialRequest=new chrome.cast.DialRequest("YouTube"));var n=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var N=(0,_.fN)(this.onReceiverUpdated_,
this);C=new chrome.cast.ApiConfig(C,(0,_.fN)(this.onSessionEstablished_,this),N,n,W);C.customDialLaunchCallback=(0,_.fN)(this.onDialLaunchRequested_,this);chrome.cast.initialize(C,(0,_.fN)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),mK$(),this.JSC$17371_screenService_.subscribe("onlineScreenChange",(0,_.fN)(this.JSC$17373_onScreenChange_,this)),this.customReceivers_=DkY(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.fN)(function(B){this.warn_("Failed to set initial custom receivers: "+(0,_.dm)(B))},this)),this.publish("yt-remote-cast2-availability-change",L9(this)),k(!0))},this),(0,_.fN)(function(B){this.warn_("Failed to initialize API: "+(0,_.dm)(B));
k(!1)},this))};
i9.prototype.setConnectedScreenStatus=function(W,k){jb("Setting connected screen ID: "+W+" -> "+k);if(this.JSC$17371_session_){var C=this.JSC$17371_session_.screen_;if(!W||C&&C.id!=W)jb("Unsetting old screen status: "+this.JSC$17371_session_.receiver_.friendlyName),HU(this,null)}if(W&&k){if(!this.JSC$17371_session_){W=JJ(this.JSC$17371_screenService_.getScreens(),W);if(!W){jb("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){jb("setConnectedScreenStatus: Screen with id type to be short lived.");
return}C=VL$(this,W);C||(jb("setConnectedScreenStatus: Connected receiver not custom..."),C=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),C.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(C),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fN)(function(n){this.warn_("Failed to set initial custom receivers: "+(0,_.dm)(n))},this)));
jb("setConnectedScreenStatus: new active receiver: "+C.friendlyName);HU(this,new O8(this.JSC$17371_screenService_,C),!0)}this.JSC$17371_session_.setDisplayStatus(k)}else jb("setConnectedScreenStatus: no screen.")};
var VL$=function(W,k){return k?_.s2(W.customReceivers_,function(C){return VL(k,C.label)},W):null};
i9.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17371_session_?this.JSC$17371_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
i9.prototype.JSC$17373_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17371_session_?(this.JSC$17371_session_.stop(),HU(this,null)):jb("Stopping non-existing session")};
i9.prototype.requestSession=function(){chrome.cast.requestSession((0,_.fN)(this.onSessionEstablished_,this),(0,_.fN)(this.onSessionRequestFailed_,this))};
i9.prototype.disposeInternal=function(){this.JSC$17371_screenService_.unsubscribe("onlineScreenChange",(0,_.fN)(this.JSC$17373_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.iw(_.QK("yt.mdx.remote.debug.handlers_")||[],XqB);_.LU(this.JSC$17371_session_);_.im.prototype.disposeInternal.call(this)};
var jb=function(W){QL("Controller",W)};
i9.prototype.warn_=function(W){QL("Controller",W)};
var XqB=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},L9=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$17371_session_},HU=function(W,k,C){k!=W.JSC$17371_session_&&(_.LU(W.JSC$17371_session_),(W.JSC$17371_session_=k)?(C?W.publish("yt-remote-cast2-receiver-resumed",k.receiver_):W.publish("yt-remote-cast2-receiver-selected",k.receiver_),k.subscribe("sessionScreen",(0,_.fN)(W.onSessionScreen_,W,k)),k.subscribe("sessionFailed",
function(){return JcC(W,k)}),k.screen_?W.publish("yt-remote-cast2-session-change",k.screen_):C&&W.JSC$17371_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},JcC=function(W,k){W.JSC$17371_session_==k&&W.publish("yt-remote-cast2-session-failed")};
_.Y=i9.prototype;_.Y.onSessionScreen_=function(W,k){this.JSC$17371_session_==W&&(k||HU(this,null),this.publish("yt-remote-cast2-session-change",k))};
_.Y.onReceiverAction_=function(W,k){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),jb("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+k),k){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17371_session_)if(this.JSC$17371_session_.receiver_.label!=W.label)jb("onReceiverAction_: Stopping active receiver: "+this.JSC$17371_session_.receiver_.friendlyName),this.JSC$17371_session_.stop();else{jb("onReceiverAction_: Casting to active receiver.");this.JSC$17371_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17371_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:HU(this,new O8(this.JSC$17371_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:HU(this,new uJ(this.JSC$17371_screenService_,W,this.JSC$17371_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:HU(this,new q8(this.JSC$17371_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17371_session_&&
this.JSC$17371_session_.receiver_.label==W.label?this.JSC$17371_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.Y.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("Vk"));var k=W.receiver;k.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+k.friendlyName),k.receiverType=chrome.cast.ReceiverType.DIAL);var C=this.JSC$17371_session_?this.JSC$17371_session_.receiver_:null;if(!C||C.label!=k.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+k.friendlyName),Promise.reject(Error("Wk"));if(C&&C.label==k.label&&C.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17371_session_.screen_)return jb("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17371_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+C.receiverType+'" to "dial" for '+k.friendlyName);HU(this,new uJ(this.JSC$17371_screenService_,k,this.JSC$17371_theme_,this.config_))}k=this.JSC$17371_session_;k.launchData_=W;k.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=k.launchData_.extraData||{},C=W.screenId||null,tLE(k)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=dk7(k,{name:k.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:k.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.I4(Error("Sk`"+JSON.stringify(W))),W=mk6(k,C)):W=mk6(k,C)):W=X2Z(k);return W};
_.Y.onSessionEstablished_=function(W){var k=this;if(!this.isDisposed()&&!this.forceMirroring_){jb("New cast session ID: "+W.sessionId);var C=W.receiver;if(C.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17371_session_)if(C.receiverType==chrome.cast.ReceiverType.CAST)jb("Got resumed cast session before resumed mdx connection."),C.friendlyName=chrome.cast.unescape(C.friendlyName),HU(this,new q8(this.JSC$17371_screenService_,C,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var n=this.JSC$17371_session_.receiver_,N=JJ(this.JSC$17371_screenService_.getScreens(),n.label);N&&VL(N,C.label)&&n.receiverType!=chrome.cast.ReceiverType.CAST&&C.receiverType==chrome.cast.ReceiverType.CAST&&(jb("onSessionEstablished_: manual to cast session change "+C.friendlyName),_.LU(this.JSC$17371_session_),this.JSC$17371_session_=new q8(this.JSC$17371_screenService_,C,this.config_),this.JSC$17371_session_.subscribe("sessionScreen",(0,_.fN)(this.onSessionScreen_,this,this.JSC$17371_session_)),
this.JSC$17371_session_.subscribe("sessionFailed",function(){return JcC(k,k.JSC$17371_session_)}),this.JSC$17371_session_.launchWithParams(null));
this.JSC$17371_session_.setCastSession(W)}}};
_.Y.JSC$17373_getCastSession=function(){return this.JSC$17371_session_?this.JSC$17371_session_.JSC$17357_getCastSession():null};
_.Y.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.dm)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&HU(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.Y.onReceiverUpdated_=function(W){jb("Receiver availability updated: "+W);if(!this.isDisposed()){var k=L9(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;L9(this)!=k&&this.publish("yt-remote-cast2-availability-change",L9(this))}};
var DkY=function(W){var k=W.JSC$17371_screenService_.JSC$17353_getOnlineScreens(),C=W.JSC$17371_session_&&W.JSC$17371_session_.receiver_;W=_.cD(k,function(n){C&&VL(n,C.label)&&(C=null);var N=n.uuid?n.uuid:n.id,B=VL$(this,n);B?(B.label=N,B.friendlyName=n.name):(B=new chrome.cast.Receiver(N,n.name),B.receiverType=chrome.cast.ReceiverType.CUSTOM);return B},W);
C&&(C.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(C=new chrome.cast.Receiver(C.label,C.friendlyName),C.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(C));return W};
i9.prototype.JSC$17373_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=DkY(this),jb("Updating custom receivers: "+(0,_.dm)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fN)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",L9(this)))};
i9.prototype.setLaunchParams=i9.prototype.setLaunchParams;i9.prototype.setConnectedScreenStatus=i9.prototype.setConnectedScreenStatus;i9.prototype.stopSession=i9.prototype.JSC$17373_stopSession;i9.prototype.getCastSession=i9.prototype.JSC$17373_getCastSession;i9.prototype.requestSession=i9.prototype.requestSession;i9.prototype.init=i9.prototype.init;i9.prototype.dispose=i9.prototype.dispose;var UKE=[];var ccY=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.gk();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.Y=Ts.prototype;
_.Y.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.Y.stopPlayer=function(){this.index=-1;this.videoId="";ccY(this)};
_.Y.isPlaying=function(){return this.playerState==1};
_.Y.isBuffering=function(){return this.playerState==3};
_.Y.isAdPlaying=function(){return this.playerState==1081};
var rf=function(W,k){W.playerTime_=k;W.playerTimeAt_=_.gk()},IUS=function(W){switch(W.playerState){case 1:case 1081:return(_.gk()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
Ts.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.gk()-this.playerTimeAt_)/1E3:0):this.duration_};
var SDi=function(W,k,C){var n=W.videoId;W.videoId=k;W.index=C;k!=n&&ccY(W)},MLC=function(W){var k={};
k.index=W.index;k.listId=W.listId;k.videoId=W.videoId;k.playerState=W.playerState;k.volume=W.volume;k.muted=W.muted;k.audioTrackId=W.audioTrackId;k.trackData=_.JU.unsafeClone(W.trackData);k.hasPrevious=W.hasPrevious;k.hasNext=W.hasNext;k.playerTime=W.playerTime_;k.playerTimeAt=W.playerTimeAt_;k.seekableStart=W.seekableStart_;k.seekableEnd=W.seekableEnd_;k.duration=W.duration_;k.loadedTime=W.loadedTime;k.liveIngestionTime=W.liveIngestionTime_;return k};
Ts.prototype.clone=function(){return new Ts(MLC(this))};var gf=function(W,k){_.im.call(this);var C=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new TqY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.fN)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.fN)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.fN)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.fN)(this.onCloudviewAvailabilityChange_,this);var n=0;W?(n=W.getProxyState(),
n!=3&&(W.subscribe("proxyStateChange",this.setState_,this),Q_A(this))):n=3;n!=0&&(k?this.setState_(n):_.rA(function(){C.setState_(n)},0));
(W=Hs6())&&p2T(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.D(gf,_.im);gf.prototype.getState=function(){return this.state_};
gf.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
gf.prototype.reconnect=function(){this.connection_.reconnect()};
var PU=function(W){return new Ts(W.connection_.getPlayerContextData())};
_.Y=gf.prototype;_.Y.play=function(){K9(this)?(this.castMedia_?this.castMedia_.play(null,_.Au,vCi(this,"play")):hO(this,"play"),e3Z(this,1,IUS(PU(this))),this.publish("remotePlayerChange")):Wk(this,this.play)};
_.Y.pause=function(){K9(this)?(this.castMedia_?this.castMedia_.pause(null,_.Au,vCi(this,"pause")):hO(this,"pause"),e3Z(this,2,IUS(PU(this))),this.publish("remotePlayerChange")):Wk(this,this.pause)};
_.Y.seekTo=function(W){if(K9(this)){if(this.castMedia_){var k=PU(this),C=new chrome.cast.media.SeekRequest;C.currentTime=W;k.isPlaying()||k.isBuffering()?C.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:C.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(C,_.Au,vCi(this,"seekTo",{newTime:W}))}else hO(this,"seekTo",{newTime:W});e3Z(this,3,W);this.publish("remotePlayerChange")}else Wk(this,_.lW(this.seekTo,W))};
_.Y.stop=function(){if(K9(this)){this.castMedia_?this.castMedia_.stop(null,_.Au,vCi(this,"stopVideo")):hO(this,"stopVideo");var W=PU(this);W.stopPlayer();ki(this,W);this.publish("remotePlayerChange")}else Wk(this,this.stop)};
_.Y.setVolume=function(W,k){if(K9(this)){var C=PU(this);if(this.castSession_){if(C.volume!=W){var n=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(n,(0,_.fN)(function(){pf("set receiver volume: "+n)},this),(0,_.fN)(function(){this.warn_("failed to set receiver volume.")},this))}C.muted!=k&&this.castSession_.setReceiverMuted(k,(0,_.fN)(function(){pf("set receiver muted: "+k)},this),(0,_.fN)(function(){this.warn_("failed to set receiver muted.")},this))}else{var N={volume:W,
muted:k};C.volume!=-1&&(N.delta=W-C.volume);hO(this,"setVolume",N)}C.muted=k;C.volume=W;ki(this,C)}else Wk(this,_.lW(this.setVolume,W,k))};
_.Y.setAudioTrack=function(W,k){K9(this)?(k=k.getLanguageInfo().getId(),hO(this,"setAudioTrack",{videoId:W,audioTrackId:k}),W=PU(this),W.audioTrackId=k,ki(this,W)):Wk(this,_.lW(this.setAudioTrack,W,k))};
_.Y.addVideo=function(W){K9(this)?hO(this,"addVideo",{videoId:W}):Wk(this,_.lW(this.addVideo,W))};
_.Y.addPlaylist=function(W){K9(this)?hO(this,"addVideos",{listId:W}):Wk(this,_.lW(this.addPlaylist,W))};
_.Y.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):K9(this)?hO(this,"addVideos",{videoIds:W.join(",")}):Wk(this,_.lW(this.addVideos,W))};
_.Y.JSC$17383_removeVideo=function(W){K9(this)?hO(this,"removeVideo",{videoId:W}):Wk(this,_.lW(this.JSC$17383_removeVideo,W))};
_.Y.JSC$17383_insertVideo=function(W){K9(this)?hO(this,"insertVideo",{videoId:W}):Wk(this,_.lW(this.JSC$17383_insertVideo,W))};
_.Y.playVideo=function(W,k,C,n,N,B,A){n=n===void 0?null:n;N=N===void 0?null:N;B=B===void 0?null:B;A=A===void 0?null:A;var w=PU(this),x={videoId:W};C!==void 0&&(x.currentIndex=C);SDi(w,W,C||0);k!==void 0&&(rf(w,k),x.currentTime=k);n&&(x.listId=n);N&&(x.playerParams=N);B&&(x.clickTrackingParams=B);A&&(x.locationInfo=(0,_.dm)(A));hO(this,"setPlaylist",x);n||ki(this,w)};
_.Y.nextVideo=function(W,k){if(K9(this)){if(W&&k){var C=PU(this);SDi(C,W,k);ki(this,C)}hO(this,"next")}else Wk(this,_.lW(this.nextVideo,W,k))};
_.Y.clearPlaylist=function(){if(K9(this)){hO(this,"clearPlaylist");var W=PU(this);W.reset();ki(this,W);this.publish("remotePlayerChange")}else Wk(this,this.clearPlaylist)};
_.Y.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.im.prototype.dispose.call(this)};
_.Y.disposeInternal=function(){s_B(this);this.connection_=null;this.actionQueue_.clear();p2T(this,null);_.im.prototype.disposeInternal.call(this)};
var Q_A=function(W){_.eO("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(k){this.contextSubscriptions_.push(this.connection_.subscribe(k,_.lW(this.onProxyEvent_,k),this))},W)},s_B=function(W){_.eO(W.contextSubscriptions_,function(k){this.connection_.unsubscribeByKey(k)},W);
W.contextSubscriptions_.length=0},K9=function(W){return W.getState()==1},Wk=function(W,k){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(k)},e3Z=function(W,k,C){var n=PU(W);
rf(n,C);n.playerState!=-1E3&&(n.playerState=k);ki(W,n)},hO=function(W,k,C){W.connection_.sendMessage(k,C)},ki=function(W,k){s_B(W);
W.connection_.setPlayerContextData(MLC(k));Q_A(W)};
gf.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var k=this.state_;this.state_=W;this.publish("proxyStateChange",k,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,Ok7(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
gf.prototype.onProxyEvent_=function(W,k){this.publish(W,k)};
var p2T=function(W,k){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=k;if(W.castSession_&&(pf("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
gf.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),p2T(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var k=PU(this),C=Math.round(100*W.level||0);if(k.volume!=C||k.muted!=W.muted)pf("Cast volume update: "+W.level+(W.muted?" muted":"")),k.volume=C,k.muted=!!W.muted,ki(this,k)}};
gf.prototype.onCastMediaChange_=function(W){pf("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Gx7(this),this.publish("remotePlayerChange")};
var Gx7=function(W){var k=W.castMedia_.media,C=W.castMedia_.customData;if(k&&C){var n=PU(W);k.contentId!=n.videoId&&pf("Cast changing video to: "+k.contentId);n.videoId=k.contentId;n.playerState=C.playerState;rf(n,W.castMedia_.getEstimatedTime());ki(W,n)}else pf("No cast media video. Ignoring state update.")};
gf.prototype.onCastMediaUpdate_=function(W){if(W)Gx7(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
gf.prototype.onCloudviewAvailabilityChange_=function(){var W=Hs6();W&&p2T(this,W)};
gf.prototype.warn_=function(W){QL("CP",W)};
var vCi=function(W,k,C){return(0,_.fN)(function(n){this.warn_("Failed to "+k+" with cast v2 channel. Error code: "+n.code);n.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+k+" using MDx browser channel."),hO(this,k,C))},W)};var nW=function(W,k,C,n){n=n===void 0?!1:n;_.im.call(this);var N=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$17390_http_=W;this.enableConnectWithInitialState_=n;this.listeners_.push(_.Z3(window,"beforeunload",function(){N.JSC$17393_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Ts;this.currentScreenId_=k.id;this.currentScreenIdType_=k.idType;this.channelService=a77(this.JSC$17390_http_,C,this.JSC$17393_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){ycB(N)});
this.channelService.listen("channelClosed",function(){CW("Channel closed");isNaN(N.connectTimerId_)?cA(!0):cA();N.dispose()});
this.channelService.listen("channelError",function(B){cA();isNaN(N.getReconnectTimeout_())?(B==1&&N.currentScreenIdType_=="shortLived"&&N.publish("browserChannelAuthError",B),CW("Channel error: "+B+" without reconnection"),N.dispose()):(N.reconnecting_=!0,CW("Channel error: "+B+" with reconnection in "+N.getReconnectTimeout_()+" ms"),$kC(N,2))});
this.channelService.listen("channelMessage",function(B){ZGY(N,B)});
this.channelService.setLoungeToken(k.token);this.subscribe("remoteQueueChange",function(){var B=N.playerContext_.videoId;k_t()&&_.KE("yt-remote-session-video-id",B)})};
_.D(nW,_.im);
nW.prototype.connect=function(W,k){if(k){var C=k.listId,n=k.videoId,N=k.videoIds,B=k.playerParams,A=k.clickTrackingParams,w=k.index,x={videoId:n},E=k.currentTime,a=k.locationInfo;k=k.loopMode;E!==void 0&&(x.currentTime=E<=5?0:E);B&&(x.playerParams=B);a&&(x.locationInfo=a);A&&(x.clickTrackingParams=A);C&&(x.listId=C);N&&N.length>0&&(x.videoIds=N.join(","));w!==void 0&&(x.currentIndex=w);this.enableConnectWithInitialState_&&(x.loopMode=k||"LOOP_MODE_OFF");C&&(this.playerContext_.listId=C);this.playerContext_.videoId=
n;this.playerContext_.index=w||0;this.playerContext_.state=3;rf(this.playerContext_,E);this.autoplayMode_="UNSUPPORTED";C=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";CW("Connecting with "+C+" and params: "+(0,_.dm)(x));this.channelService.connect({method:C,params:(0,_.dm)(x)},W,BkS())}else CW("Connecting without params"),this.channelService.connect({},W,BkS());R3C(this)};
nW.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
nW.prototype.dispose=function(){this.isDisposed()||(_.$g("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),$kC(this,3));_.im.prototype.dispose.call(this)};
nW.prototype.disposeInternal=function(){oCB(this);iGT(this);TOS(this);_.Pv(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Pv(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Ziw(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.im.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var qDi=function(W){return _.s2(W.connectedDevices_,function(k){return k.type=="LOUNGE_SCREEN"})},CW=function(W){QL("conn",W)},$kC=function(W,k){W.publish("proxyStateChange",k)},R3C=function(W){W.connectTimerId_=_.rA(function(){CW("Connecting timeout");
W.JSC$17393_disconnect_(1)},2E4)},oCB=function(W){_.Pv(W.connectTimerId_);
W.connectTimerId_=NaN},TOS=function(W){_.Pv(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},uTt=function(W){iGT(W);
W.playingSyncTimerId_=_.rA(function(){Nm(W,"getNowPlaying")},2E4)},iGT=function(W){_.Pv(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},ycB=function(W){CW("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,TOS(W),W.reconnectedCheckScreenTimeout_=_.rA(function(){CW("Timing out waiting for a screen.");W.JSC$17393_disconnect_(1)},15E3))},OGE=function(W,k){var C=null;
if(k){var n=qDi(W);n&&(C={clientName:n.clientName,deviceMake:n.brand,deviceModel:n.model,osVersion:n.osVersion})}_.$g("yt.mdx.remote.remoteClient_",C);k&&(oCB(W),TOS(W));C=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);k==C?k&&($kC(W,1),Nm(W,"getSubtitlesTrack")):k?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),$kC(W,1),Nm(W,"getNowPlaying"),UkZ(W)):W.JSC$17393_disconnect_(1)},LZC=function(W,k){var C=k.params.videoId;
delete k.params.videoId;C==W.playerContext_.videoId&&(_.JU.isEmpty(k.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=k.params,W.publish("remotePlayerChange"))},j_7=function(W,k,C){var n=k.params.videoId||k.params.video_id,N=parseInt(k.params.currentIndex,10);
W.playerContext_.listId=k.params.listId||W.playerContext_.listId;SDi(W.playerContext_,n,N);W.publish("remoteQueueChange",C)},HG7=function(W,k){k.params=k.params||{};
j_7(W,k,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(k);W.publish("autoplayDismissed")};
nW.prototype.onStateChange_=function(W){var k=parseInt(W.params.currentTime||W.params.current_time,10);rf(this.playerContext_,isNaN(k)?0:k);k=parseInt(W.params.state,10);k=isNaN(k)?-1:k;k==-1&&this.playerContext_.playerState==-1E3&&(k=-1E3);this.playerContext_.playerState=k;k=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(k)?0:k;k=Number(W.params.duration);this.playerContext_.duration_=isNaN(k)?0:k;k=this.playerContext_;var C=Number(W.params.liveIngestionTime);k.liveIngestionTime_=
C;k.isLive_=isNaN(C)?!1:!0;k=this.playerContext_;C=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);k.seekableStart_=isNaN(C)?0:C;k.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?uTt(this):iGT(this);this.publish("remotePlayerChange")};
nW.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var k=1085;switch(parseInt(W.params.adState,10)){case 1:k=1081;break;case 2:k=1084;break;case 0:k=1083}this.playerContext_.playerState=k;W=parseInt(W.params.currentTime,10);rf(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var rcB=function(W,k){var C=k.params.muted=="true";W.playerContext_.volume=parseInt(k.params.volume,10);W.playerContext_.muted=C;W.publish("remotePlayerChange")},gCt=function(W,k){W.autoplayVideoId_=k.params.videoId;
W.publish("nowAutoplaying",parseInt(k.params.timeout,10))},PiA=function(W,k){W.autoplayVideoId_=k.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},KZS=function(W,k){W.autoplayMode_=k.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},h3T=function(W,k){var C=k.params.hasNext=="true";
W.playerContext_.hasPrevious=k.params.hasPrevious=="true";W.playerContext_.hasNext=C;W.publish("previousNextChange")};
nW.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var k=_.b(this.connectedDevices_),C=k.next();!C.done;C=k.next())if(!C.value.capabilities.has(W))return!1;return!0};
var ZGY=function(W,k){k=k.message;k.params?CW("Received: action="+k.action+", params="+(0,_.dm)(k.params)):CW("Received: action="+k.action+" {}");switch(k.action){case "loungeStatus":k=(0,_.fY)(k.params.devices);W.connectedDevices_=_.cD(k,function(n){return new Zo(n)});
k=!!_.s2(W.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
OGE(W,k);k=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",k);break;case "loungeScreenDisconnected":DNA(W.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
OGE(W,!1);break;case "remoteConnected":var C=new Zo((0,_.fY)(k.params.device));_.s2(W.connectedDevices_,function(n){return n.equals(C)})||_.DXz(W.connectedDevices_,C);
break;case "remoteDisconnected":C=new Zo((0,_.fY)(k.params.device));DNA(W.connectedDevices_,function(n){return n.equals(C)});
break;case "gracefulDisconnect":break;case "playlistModified":j_7(W,k,"QUEUE_MODIFIED");break;case "nowPlaying":HG7(W,k);break;case "onStateChange":W.onStateChange_(k);break;case "onAdStateChange":W.onAdStateChange_(k);break;case "onVolumeChanged":rcB(W,k);break;case "onSubtitlesTrackChanged":LZC(W,k);break;case "nowAutoplaying":gCt(W,k);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":PiA(W,k);break;case "onAutoplayModeChanged":KZS(W,k);break;case "onHasPreviousNextChanged":h3T(W,
k);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",k.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",k.params.loopMode);break;default:CW("Unrecognized action: "+k.action)}};
_.Y=nW.prototype;_.Y.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.Y.JSC$17393_disconnect_=function(W){CW("Disconnecting with "+W);_.$g("yt.mdx.remote.remoteClient_",null);oCB(this);this.publish("beforeDisconnect",W);W==1&&cA();this.channelService.disconnect(W);this.dispose()};
_.Y.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),SDi(W,this.clientVideoId_,W.index));return MLC(W)};
_.Y.setPlayerContextData_=function(W){var k=this,C=new Ts(W);C.videoId&&C.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=C.videoId,_.Pv(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.rA(function(){if(k.clientVideoId_){var N=k.clientVideoId_;k.clientVideoId_=null;k.playerContext_.videoId!=N&&Nm(k,"getNowPlaying")}},5E3));
var n=[];this.playerContext_.listId==C.listId&&this.playerContext_.videoId==C.videoId&&this.playerContext_.index==C.index||n.push("remoteQueueChange");this.playerContext_.playerState==C.playerState&&this.playerContext_.volume==C.volume&&this.playerContext_.muted==C.muted&&IUS(this.playerContext_)==IUS(C)&&(0,_.dm)(this.playerContext_.trackData)==(0,_.dm)(C.trackData)||n.push("remotePlayerChange");this.playerContext_.reset(W);_.eO(n,function(N){this.publish(N)},this)};
_.Y.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),k=_.s2(this.connectedDevices_,function(C){return C.type=="REMOTE_CONTROL"&&C.id!=W});
return k?k.id:""};
_.Y.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.Y.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.Y.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.Y.JSC$17393_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var UkZ=function(W){_.Pv(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.rA(function(){W.JSC$17393_disconnect_(1)},864E5)},Nm=function(W,k,C){C?CW("Sending: action="+k+", params="+(0,_.dm)(C)):CW("Sending: action="+k);
W.channelService.sendMessage(k,C)};
nW.prototype.sendMessageWithUserAction_=function(W,k){Nm(this,W,k);UkZ(this)};
nW.prototype.JSC$17393_getXsrfToken_=function(){var W=_.nH.get("SAPISID","")||_.nH.get("__Secure-1PAPISID",void 0)||"",k=_.nH.get("__Secure-3PAPISID","")||"";if(!W&&!k)return"";W=_.zC(_.aL(W),2);k=_.zC(_.aL(k),2);return _.zC(_.aL(","+W+","+k),2)};
nW.prototype.subscribe=nW.prototype.subscribe;nW.prototype.unsubscribeByKey=nW.prototype.unsubscribeByKey;nW.prototype.getProxyState=nW.prototype.getProxyState_;nW.prototype.disconnect=nW.prototype.JSC$17393_disconnect_;nW.prototype.getPlayerContextData=nW.prototype.getPlayerContextData_;nW.prototype.setPlayerContextData=nW.prototype.setPlayerContextData_;nW.prototype.getOtherConnectedRemoteId=nW.prototype.getOtherConnectedRemoteId_;nW.prototype.getReconnectTimeout=nW.prototype.getReconnectTimeout_;
nW.prototype.getAutoplayMode=nW.prototype.getAutoplayMode_;nW.prototype.getAutoplayVideoId=nW.prototype.getAutoplayVideoId_;nW.prototype.reconnect=nW.prototype.JSC$17393_reconnect_;nW.prototype.sendMessage=nW.prototype.sendMessageWithUserAction_;nW.prototype.getXsrfToken=nW.prototype.JSC$17393_getXsrfToken_;nW.prototype.isCapabilitySupportedOnConnectedDevices=nW.prototype.isCapabilitySupportedOnConnectedDevices_;var WpE=function(W){ex.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.fN)(this.JSC$17396_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.fN)(this.onOnlineScreenChange_,this)))};
_.D(WpE,ex);_.Y=WpE.prototype;_.Y.getScreens=function(W){return this.instance_.$_gs(W)};
_.Y.contains=function(W){return!!this.instance_.$_c(W)};
_.Y.get=function(W){return this.instance_.$_g(W)};
_.Y.start=function(){this.instance_.$_st()};
_.Y.add=function(W,k,C){this.instance_.$_a(W,k,C)};
_.Y.remove=function(W,k,C){this.instance_.$_r(W,k,C)};
_.Y.updateName=function(W,k,C,n){this.instance_.$_un(W,k,C,n)};
_.Y.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,k=0;k<W;++k)this.instance_.$_ubk(this.subscriptionKeys_[k]);this.subscriptionKeys_.length=0;this.instance_=null;ex.prototype.disposeInternal.call(this)};
_.Y.JSC$17396_onScreenChange_=function(){this.publish("screenChange")};
_.Y.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
yL.prototype.$_st=yL.prototype.start;yL.prototype.$_gspc=yL.prototype.JSC$17353_getScreenByPairingCode;yL.prototype.$_gsppc=yL.prototype.JSC$17353_getScreenByPollingPairingCode;yL.prototype.$_c=yL.prototype.contains;yL.prototype.$_g=yL.prototype.get;yL.prototype.$_a=yL.prototype.add;yL.prototype.$_un=yL.prototype.updateName;yL.prototype.$_r=yL.prototype.remove;yL.prototype.$_gs=yL.prototype.getScreens;yL.prototype.$_gos=yL.prototype.JSC$17353_getOnlineScreens;yL.prototype.$_s=yL.prototype.subscribe;
yL.prototype.$_ubk=yL.prototype.unsubscribeByKey;var bVu=function(W){wqE();if(!I6||!I6.get("yt-remote-disable-remote-module-for-dev")){W=_.DE("MDX_CONFIG")||W;zMB();nNB();Yi||(Yi=new zs(W?W.loungeApiHost:void 0),xKA()&&(Yi.basePath="/api/loungedev"));Bk||(Bk=_.QK("yt.mdx.remote.deferredProxies_")||[],_.$g("yt.mdx.remote.deferredProxies_",Bk));kTC();var k=bL();if(!k){var C=new yL(Yi,W?W.disableAutomaticScreenCache||!1:!1);_.$g("yt.mdx.remote.screenService_",C);k=bL();var n={};W&&(n={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.$g("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);qv1(C,function(B){B?A_()&&gNZ(A_(),"YouTube TV"):C.subscribe("onlineScreenChange",function(){jj("yt-remote-receiver-availability-change")})},n)}if(W&&!_.QK("yt.mdx.remote.initialized_")){_.$g("yt.mdx.remote.initialized_",!0);
Fn("Initializing: "+(0,_.dm)(W));w6.push(_.jk("yt-remote-cast2-api-ready",function(){jj("yt-remote-api-ready")}));
w6.push(_.jk("yt-remote-cast2-availability-change",function(){jj("yt-remote-receiver-availability-change")}));
w6.push(_.jk("yt-remote-cast2-receiver-selected",function(){CrC();jj("yt-remote-auto-connect","cast-selector-receiver")}));
w6.push(_.jk("yt-remote-cast2-receiver-resumed",function(){jj("yt-remote-receiver-resumed","cast-selector-receiver")}));
w6.push(_.jk("yt-remote-cast2-session-change",ncT));w6.push(_.jk("yt-remote-connection-change",function(B){B?gNZ(A_(),"YouTube TV"):NpT()||(gNZ(null,null),j5u())}));
w6.push(_.jk("yt-remote-cast2-session-failed",function(){jj("yt-remote-connection-failed")}));
n=Y6B();W.isAuto&&(n.id+="#dial");var N=W.capabilities||[];_.m("desktop_enable_autoplay")&&N.push("atp");N.length>0&&(n.capabilities=N);n.name=W.device;n.app=W.app;(W=W.theme)&&(n.theme=W);Fn(" -- with channel params: "+(0,_.dm)(n));n?(_.KE("yt-remote-session-app",n.app),_.KE("yt-remote-session-name",n.name)):(_.WR("yt-remote-session-app"),_.WR("yt-remote-session-name"));_.$g("yt.mdx.remote.channelParams_",n);k.start();A_()||Bp7()}}},Fp6=function(){var W=bL().instance_.$_gos();
var k=A0T();k&&xi()&&(K4t(W,k)||W.push(k));return P27(W)},w5i=function(){var W=Fp6(),k=A0T();
k||(k=NpT());return _.s2(W,function(C){return k&&VL(k,C.key)?!0:!1})},A0T=function(){var W=A_();
if(!W)return null;var k=bL().getScreens();return JJ(k,W)},ncT=function(W){Fn("remote.onCastSessionChange_: "+PHT(W));
if(W){var k=A0T();k&&k.id==W.id?(gNZ(k.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token)&&(k=xi())&&k.setLoungeToken(W)):(k&&x6S(),lJB(W,1))}else xi()&&x6S()},x6S=function(){r3Y()?o6().stopSession():R6("stopSession called before API ready.");
var W=xi();W&&(W.disconnect(1),tQt(null))},Ec$=function(){var W=xi();
return W&&W.getProxyState()!=3?new gf(xi(),void 0):null},Fn=function(W){QL("remote",W)},bL=function(){if(!aJS){var W=_.QK("yt.mdx.remote.screenService_");
aJS=W?new WpE(W):null}return aJS},A_=function(){return _.QK("yt.mdx.remote.currentScreenId_")},X56=function(W){_.$g("yt.mdx.remote.currentScreenId_",W)},CrC=function(){_.$g("yt.mdx.remote.connectData_",null)},xi=function(){return _.QK("yt.mdx.remote.connection_")},tQt=function(W){var k=xi();
CrC();W||X56("");_.$g("yt.mdx.remote.connection_",W);Bk&&(_.eO(Bk,function(C){C(W)}),Bk.length=0);
k&&!W?jj("yt-remote-connection-change",!1):!k&&W&&jj("yt-remote-connection-change",!0)},NpT=function(){var W=k_t();
if(!W)return null;var k=bL();if(!k)return null;k=k.getScreens();return JJ(k,W)},lJB=function(W,k){X56(W.id);
W=new nW(Yi,W,Y6B(),_.QK("yt.mdx.remote.enableConnectWithInitialState_")||!1);W.connect(k,_.QK("yt.mdx.remote.connectData_"));W.subscribe("beforeDisconnect",function(C){jj("yt-remote-before-disconnect",C)});
W.subscribe("beforeDispose",function(){xi()&&tQt(null)});
W.subscribe("browserChannelAuthError",function(){var C=A0T();C&&C.idType=="shortLived"&&(r3Y()?o6().handleBrowserChannelAuthError():R6("refreshLoungeToken called before API ready."))});
tQt(W)},Bp7=function(){var W=NpT();
W?(Fn("Resume connection to: "+PHT(W)),lJB(W,0)):(cA(),j5u(),Fn("Skipping connecting because no session screen found."))},Yi=null,Bk=null,aJS=null,kTC=function(){var W=Y6B();
if(_.JU.isEmpty(W)){W=WEu();var k=_.h4("yt-remote-session-name")||"",C=_.h4("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:k,app:C,mdxVersion:3};W.authuser=String(_.DE("SESSION_INDEX","0"));(k=_.DE("DELEGATED_SESSION_ID"))&&(W.pageId=String(k));_.$g("yt.mdx.remote.channelParams_",W)}},Y6B=function(){return _.QK("yt.mdx.remote.channelParams_")||{}},w6=[];var fJ7=new _.D3("yt-menu"),d6Z=function(){},zSB=function(W,k,C){W=k=="right-click"?C.rightClickMenuPopupHint:C.menuPopupHint;
if(!(m6S(k)>10))return k=k||"default",fJ7.set(k+"-impression",m6S(k)+1),W},m6S=function(W){return parseInt(fJ7.get((W||"default")+"-impression")||0,10)};
_.rk(d6Z);var D6E=function(){this.contexts_=new WeakMap;this.JSC$17402_networkService_=this.activeContext_=null},VQY=function(W,k,C){var n=W.contexts_.get(k);
n||(n=new mVi(W.JSC$17402_networkService_),W.contexts_.set(k,n));W.activeContext_=n;C&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var lL=function(){};
lL.prototype.enqueue=function(){var W=this,k;return _.F(function(C){if(W.isCounterfactual())return(k=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(k),C.return();W.doEnqueue();_.ab(C)})};
lL.prototype.sendImpressionEndpoints=function(W){_.vx.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var t_=function(W,k){this.renderer=W;this.page=k};
_.D(t_,lL);t_.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
t_.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
t_.prototype.shouldLogCounterfactualImpression=function(){return!0};
t_.prototype.doEnqueue=function(){var W=_.$a(this.page);W&&W.pause();this.renderer.impressionCommand&&_.vx.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Dm(_.vx.getInstance(),[this.renderer.promoCommand],this.page)};var J01=function(W,k){this.renderer=W;this.resolver=_.ME();this.JSC$17414_enforcementCounter=new _.pHx;k?this.JSC$17414_playerManager=_.$a(k):this.JSC$17414_playerManager=null;_.Wl(1,!0)};
_.D(J01,lL);_.Y=J01.prototype;_.Y.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(k){(k=_.fi(k))&&W.push(k)});
return W}};
_.Y.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.Y.shouldLogCounterfactualImpression=function(){var W=_.zLw();W?(this.JSC$17414_enforcementCounter.increment("POPUP"),_.Wl(3)):_.Wl(2);return W};
_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.doEnqueue=function(){var W=this;_.zLw()?(this.JSC$17414_enforcementCounter.increment("POPUP"),_.Wl(3),c0C(this)):this.JSC$17414_playerManager?(this.resolver.promise.then(function(){c0C(W)}),IJ7(this.resolver,this.JSC$17414_playerManager)):_.Wl(2)};
var IJ7=function(W,k){var C=_.ME();k.getPlayerPromise().then(function(n){C.resolve(n)});
C.promise.then(function(n){n.addEventListener("onAbnormalityDetected",W.resolve);_.aa(W.promise,function(){n.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){C.promise.cancel()})},c0C=function(W){_.Wl(3);
var k={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};k=_.vx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:k},{});Promise.all(k).then(function(){S67();W.JSC$17414_playerManager&&W.JSC$17414_playerManager.pause()})},S67=function(){BEC(function(W,k){_.NyA(W,k);
W===0?_.Wl(7):_.Wl(4)})};var MQS=function(W,k){this.renderer=W;this.page=k;this.resolver=_.ME()};
_.D(MQS,lL);_.Y=MQS.prototype;_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var C={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.vx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var k=_.$a(this.page);k&&QCu(this.resolver,k)}break;default:this.resolver.resolve()}};
var QCu=function(W,k){var C=_.ME();k.getPlayerPromise().then(function(n){C.resolve(n)});
C.promise.then(function(n){n.addEventListener("onAdEnd",W.resolve);_.aa(W.promise,function(){n.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){C.promise.cancel()})};var p5S=function(W,k){this.renderer=W;this.page=k};
_.D(p5S,lL);_.Y=p5S.prototype;_.Y.cancel=function(){this.JSC$17422_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17422_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17422_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var W=this,k,C;((k=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(C=k.playbackUpsellDialogTriggerConditionData)==null?void 0:C.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17422_downloadedVideosCountSelectorUnsubscriber=_.nE(_.ZF(),kfS,function(n,N){n>N&&(vci(W),W.cancel())}):vci(this)};
var vci=function(W){var k={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.vx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:k},{});(W=_.$a(W.page))&&W.pause()};var E4={},eST=(E4.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",E4.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",E4.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",E4.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",E4.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",E4.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",E4.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",E4),sC6=function(W,k){this.renderer=W;this.targetManager=
k};
_.D(sC6,lL);_.Y=sC6.prototype;_.Y.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17429_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17429_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17429_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.Y.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17429_downloadedVideosCountSelectorUnsubscriber=_.nE(_.ZF(),kfS,function(k,C){W.renderer.targetId&&k>C&&(jRY(W.targetManager,W.renderer.targetId,GTi(W)),W.cancel())});
break;default:jRY(this.targetManager,this.renderer.targetId,GTi(this))}};
var GTi=function(W){var k;if((k=W.renderer.suggestedPosition)==null?0:k.type)var C=eST[W.renderer.suggestedPosition.type];C||(C="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:C}}};var y06=function(){this.previousPage=null},$66;
y06.prototype.registerPromoCommand=function(W,k){ZVt(this,void 0,void 0,_.z(W.roadblock,hPT),void 0,void 0,k)};
var ZVt=function(W,k,C,n,N,B,A){W.previousPage!==A&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=A;N?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new J01(N,A),W.pendingEnforcementPromo.enqueue()):B?(W.pendingCommandWrapperPromo=new t_(B,A),W.pendingCommandWrapperPromo.enqueue()):n?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new p5S(n,A),W.pendingRoadblockPromo.enqueue()):k?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new MQS(k,A),W.pendingMealbarPromo.enqueue()):C&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new sC6(C,_.gF()),W.pendingTooltipPromo.enqueue())},RS1=function(){$66||($66=new y06);
return $66};var kv$=!1;var Ps$=function(W,k){var C=_.DE("SESSION_INDEX");this.actionToken_=W;this.commonToken_=k;this.sessionIndex_=C},gT1=function(W){var k=_.ME(),C=_.QK("payments.business.integration.bootstrap"),n=_.QK("payments.business.integration"),N=n.Style.create().withMaterialDesignStyle(),B=n.mashupMode.popup("instrument-manager");
C.asMashupMode(B).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(N).inStandaloneContext(n.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(A){var w=A.instrumentId;w?k.resolve(w):(w=_.QK("payments.business.integration.scenario.InstrumentManager"),k.reject(A.errorCode&&A.errorCode===w.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(A){_.I4(A);
k.reject("instrumentManagerLoadError")});
return k.promise};var O_=function(W,k,C){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:k,isUserDismiss:C===void 0?!1:C}};
_.$g("yt.ypc.shared.YpcTransactionFlowError",O_);var oc7=function(){return _.Wp.apply(this,arguments)||this};
_.D(oc7,_.Wp);oc7.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
oc7.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var d6=oc7;d6.prototype.onErrorMessageDismiss=d6.prototype.onErrorMessageDismiss;_.U([_.Z({readOnly:!0,observer:"errorRendererChanged"}),_.O("design:type",Object)],d6.prototype,"errorRenderer",void 0);_.U([_.jI("yt-live-chat-error-message-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d6.prototype,"onErrorMessageDismiss",null);d6=_.U([_.kr()],d6);var iVB=[d6.prototype];var TpC;var q6E;var uNC=new _.D3("yt-live-chat"),U61=new Map;U61.set("timestamp_toggle","show-timestamps");U61.set("reactions_toggle","allow-reactions");var OVE=function(){return _.R.apply(this,arguments)||this};
_.D(OVE,_.R);_.Y=OVE.prototype;_.Y.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=U61.get(this.data.menuItemIdentifier))&&(_.m("enable_lwe_web_mute")?(W=uNC.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=uNC.get(W))};
_.Y.onFocus=function(){this.toggleButton.focus()};
_.Y.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.Y.computeText=function(W,k,C){return this.componentBehavior.getSimpleString(W?C:k)};
_.Y.computeIcon=function(W,k,C){return(W=W?C:k)&&W.iconType?_.Hp(W.iconType):""};
var mL=OVE;mL.prototype.onTap=mL.prototype.onTap;mL.prototype.onFocus=mL.prototype.onFocus;mL.prototype.menuItemIdentifierChanged=mL.prototype.menuItemIdentifierChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],mL.prototype,"componentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],mL.prototype,"data",void 0);
_.U([_.Z({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.O("design:type",String)],mL.prototype,"icon",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],mL.prototype,"isToggled",void 0);_.U([_.gi("tp-yt-paper-toggle-button"),_.O("design:type",Object)],mL.prototype,"toggleButton",void 0);_.U([_.Hl("data.menuItemIdentifier"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mL.prototype,"menuItemIdentifierChanged",null);
_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mL.prototype,"onFocus",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mL.prototype,"onTap",null);mL=_.U([_.l0({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],mL);
_.q(mL,"yt-live-chat-toggle-renderer",function(){if(q6E===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;TpC===void 0&&(TpC=document.createElement("template"));var n=TpC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);q6E=W}W=q6E;return W},{mode:_.m("live_chat_enable_sink_wrapper")?2:0});var LpT=new _.Tc("NAVIGATION_PROGRESS_TOKEN");_.z3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var jC6={},ApT=(jC6.CSI=function(W,k){var C={};C[W]=k;W=_.MI(_.O3c)(C);Object.keys(W).length>0&&_.Vb(W)},jC6.ECATCHER=function(W){return function(k,C){_.DE(W)[k]=C}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),jC6);var HVE={},r0B={},gc7=(r0B[TX$.name]=!0,r0B),ze=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.nB();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.D(ze,_.Wp);ze.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.m("enable_browser_cookie_status_monitoring")&&_.wI(_.aM,this.reportBrowserCookieSetting)};
ze.prototype.reportBrowserCookieSetting=function(){var W=new gvS,k="other";_.B9?k="chrome":_.Y4?k="firefox":_.D5?k="safari":_.GW&&(k="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(C){W.increment(_.Yg(),C,k)}).catch(function(){W.increment(_.Yg(),!1,k)}):W.increment(_.Yg(),!1,k)};
ze.prototype.attached=function(){Prt(this);document.addEventListener("yt-navigate-cache",_.LO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=DQ();W.init();W.dispatchElement=this.hostElement};
var Prt=function(W,k){k=k===void 0?0:k;var C=_.f().resolve(_.qI(_.rF));if(C)Kpt(W,C);else{if(k>=5)throw Error("Xk");setTimeout(function(){Prt(W,k+1)},0)}},Kpt=function(W,k){k.addEventListener("yt-navigate-start",_.LO(W,W.onYtNavigateStart));
k.addEventListener("yt-navigate-finish",_.LO(W,W.onYtNavigateFinish));k.addEventListener("yt-navigate-error",_.LO(W,W.onYtNavigateError));k.addEventListener("yt-page-data-fetched",_.LO(W,W.onYtPageDataFetched));k.addEventListener("yt-navigate-redirect",_.LO(W,W.onYtNavigateRedirect))};
_.Y=ze.prototype;
_.Y.detached=function(){var W=_.f().resolve(_.rF);W.removeEventListener("yt-navigate-start",_.LO(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.LO(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.LO(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.LO(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.LO(this,this.onYtNavigateCache));W.removeEventListener("yt-navigate-redirect",_.LO(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.Y.setPageOffset=function(W,k){W?_.KY(this.hostElement,"yt-set-page-offset",[W,k]):_.dI(Error("Yk"))};
_.Y.setPageOffsetForNavigation=function(W,k){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,k))};
_.Y.onYtNavigateSetPageOffset=function(W,k){this.setPageOffsetForNavigation(k.page,k.offset)};
_.Y.getPageOffset=function(){var W=_.S(this.hostElement).querySelector("#page-manager").getCurrentPage(),k=0;W&&(k=_.KY(this.hostElement,"yt-get-page-offset",[W])[0]);return k};
_.Y.onYtHistoryPop=function(W,k){if(_.cv("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var C=_.f().resolve(_.rF);C.hasPendingNavigation()&&W.preventDefault();C.cancelPendingNavigation();_.hA(this.hostElement,"yt-pending-navigation-cancelled");k.errorMsg&&(W=k.errorMsg.split(" - "),k=Error(W[0]),W.length==2&&W[1]&&(_.Dx(k,W[1]),_.zJ(k)),window.location.reload())}};
_.Y.onYtHistoryLoad=function(W,k){var C=this;if(_.cv("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(W=k.endpoint)&&Object.keys(W).length||(W=null);var n=k.historyEntry,N=_.f().resolve(_.rF),B=_.f().resolve(_.yF),A=null;n&&n.rootData&&(A=n.rootData);var w=A&&hSA(A);!A||w||A.filler?W?(N.navigate(W,!0),WcZ(this,W)):(k.legacyBorder||w||(k.JSC$26279_savedComponentState==null&&A==null?_.zJ(new _.AM("Incomplete history entry",k.forward)):_.mw(new _.AM("Malformed history entry",k.JSC$26279_savedComponentState,
k.forward,A))),window.location.reload()):(_.hMX({isHot:!0}),_.Vb({webInfo:{navigationReason:"h"}}),_.wPX(),_.cN("srt"),_.cN("pdc"),this.cancelPendingTasks(),kgC(this,k.forward,A),A.player&&(A.player.loaded=!1),WcZ(this,W),_.Xzs(N,W||{},A,2,{},!1,k).then(function(){C.setPageOffset(B.getCurrentPage(),n.scrollTop||0)}))}};
_.Y.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var k=_.S(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var C=_.f().resolve(_.rF).currentEndpoint;this.replaceState(C,k,W)}};
_.Y.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.Y.onYtNavigateStart=function(W,k){this.cancelPendingTasks();k.noProgressBar||(W=_.f().resolve(_.qI(LpT)))&&W.start();W=this.hasPendingNavigation?null:this.data;this.hasError=!1;var C=_.f().resolve(_.yF),n,N,B;_.m("kevlar_use_vimio_behavior")&&!((n=k.endpoint)==null?0:(N=n.commandMetadata)==null?0:(B=N.webCommandMetadata)==null?0:B.ignoreNavigation)&&(n=C.getCurrentPage())&&n.disconnectVisibilityRoot();C.prepareForNavigation(k.pageType,k.endpoint);_.m("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.sQ(1,"pcl"),_.GA(this.pagePreparer,C.preparePage.bind(C,k.pageType,k.endpoint)));n=this.getPageOffset();this.initHistoryManager(n);k.reload||this.hasPendingNavigation?this.replaceState(k.endpoint,W,n):(W==null?void 0:W.page)==="watch"&&k.pageType==="watch"&&_.m("kevlar_replace_watch_to_watch_history_state")?this.replaceState(k.endpoint,W,n):(W==null?void 0:W.page)!=="shorts"||k.pageType!=="shorts"||k.endpoint.reelWatchEndpoint.sequenceParams||_.m("short_to_short_back_nav_killswitch")?k.type!=
"navigate-back"&&k.type!="navigate-forward"&&(k.pageType==="shorts"&&_.Pe(this.hostElement,"yt-shorts-reset"),this.saveAndPush(k.url,k.endpoint,W,n)):this.replaceState(k.endpoint,W,0);this.hasPendingNavigation=!0};
var CST=function(W){W.hasPendingNavigation=!1;(W=_.f().resolve(_.qI(LpT)))&&W.finish()};
ze.prototype.onYtNavigateError=function(W,k){CST(this);this.hasError=!0;k&&k.errorMessage?this.errorMessage=k.errorMessage:this.errorMessage=void 0;W=this.get("endpoint.commandMetadata.webCommandMetadata.url",k);var C=_.G3(window.location.href);W&&!C.pbjreload&&(k=k.navigationErrorReason||"10",_.m("kevlar_parent_on_pbjreload")&&(C={csn:_.VM()},this.get("data.endpoint.clickTrackingParams")&&(C.itct=this.data.endpoint.clickTrackingParams),_.qL(W,C)),_.zy(_.yK(W,{pbjreload:k})))};
ze.prototype.onYtNavigateCache=function(W,k){var C=this,n=k.url,N=k.endpoint,B=k.data;W=!!k.miniplayer;k=!!k.skipHistory;if(n&&N&&B){var A=this.getPageOffset(),w=this.data||null;k||this.saveAndPush(n,N,w,A);n=_.Xzs(_.f().resolve(_.rF),N,B,W?4:3,{},W);W&&n.then(function(){C.dataUpdatePromise&&C.dataUpdatePromise.then(function(){var x=_.f().resolve(_.yF);C.setPageOffset(x.getCurrentPage(),0)})})}};
ze.prototype.onYtNavigateFinish=function(W,k){var C=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){nY1(C,k.fromHistory)})};
var nY1=function(W,k){CST(W);if(W.pendingPlayerOnResponseReceivedActions){for(var C=_.b(W.pendingPlayerOnResponseReceivedActions),n=C.next();!n.done;n=C.next())_.Pp(n.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}C=_.f().resolve(_.yF);!k&&W.hasNavigated&&((k=C.getCurrentPage())?k.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(k,0):_.zJ(Error("Zk")));_.zM(function(){_.zM(function(){_.cN("pda")})})};
ze.prototype.onYtNavigateRedirect=function(W){W.detail.url&&this.replaceUrl(W.detail.url)};
ze.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var k=new _.AM("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.dI(k)}if(k=_.m("cold_missing_history"))k=DQ(),k.init(!1),k=!(k.browserHistory.boundHistoryReplaceState&&k.browserHistory.boundHistoryPushState);if(k){_.z3("DISABLE_WARM_LOADS",!0);k=new _.AM("Failed to initialize history manager",this.getDebugString());var C=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
C?_.zJ(k):_.dI(k)}k=W.detail.endpoint;var n,N;_.m("debug_forward_web_query_parameters")&&((n=k.commandMetadata)==null?0:(N=n.webCommandMetadata)==null?0:N.url)&&(k=JSON.parse(JSON.stringify(k)),k.commandMetadata.webCommandMetadata.url=_.ZBP(k.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:k,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.m("kevlar_yt_navigate_command_handler")?(n=_.f().resolve(_.uI),W.form.skipDefaultElement=!0,n.resolveCommand(k,{form:W.form})):this.handleNavigate(W)};
ze.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var k=_.f().resolve(_.rF),C=W.form||{};k.navigate(W.command,C.reload,C.params,C.tempData,C.requestType,C.createScreenConfig,C.ignoreConfirmation,C.requestForm)&&WcZ(this,W.command,C.tempData)};
ze.prototype.onYtPageDataFetched=function(W,k){try{_.BtS().reset();this.data=k.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.f().resolve(_.yF).updatePageData(this.data);var C=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);C&&FlE(C);var n=this.get("response.responseContext.serviceTrackingParams",this.data);n&&FlE(n);var N=
this.get("playerResponse.onResponseReceivedActions",this.data);N&&(N=NQt(this,N));N&&_.CB(this.hostElement,N,this.hostElement);var B=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),A=this.get("response.responseContext.consistencyTokenJar",this.data);if(B||A){var w=_.yZm(),x=(0,_.JU.getValues)(w.tokenJars);B&&w.replace(x,B);A&&w.replace(x,A)}}catch(E){_.dI(E)}};
var WcZ=function(W,k,C){try{W.onYtEndpointChangeHandler(k,C)}catch(n){_.dI(n)}};
_.Y=ze.prototype;_.Y.onYtEndpointChangeHandler=function(){};
_.Y.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.Y.onYtUpdateTitle=function(W,k){this.setPageTitle(k)};
_.Y.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.Y.handleUpdateNotificationsUnseenCountAction=function(W){_.z(W,mYS)&&((W=_.z(W,mYS).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.Y.handleClearCookieAction=function(W){var k;(W=(k=_.z(W,aj$))==null?void 0:k.cookieName)&&_.ko3(W)};
_.Y.onYtUpdateUnseenNotificationCount=function(W,k){this.setUnseenNotificationCount(k)};
_.Y.loadData=function(W){var k=this;this.loadDepsPromise.then(function(){var C=_.f().resolve(_.qI(_.rF));C||_.dI(Error("$k"));if(W&&W.response){if(!W.endpoint){var n=_.sk(window.document.location.href)||"/",N="";if(n==="/"||n.startsWith("/?"))N="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:n,webPageType:N,rootVe:3854}}}}_.Xzs(C,W.endpoint,W,5,{})}else W.endpoint?C.navigate(W.endpoint):C.navigate(_.CE);_.aM.cancelJob(k.zwiebackInitJobId);k.zwiebackInitJobId=_.aM.addLowPriorityJob(CAC)})};
var DQ=function(){return _.f().resolve(_.UQS)};
_.Y=ze.prototype;_.Y.getDebugString=function(){return DQ().getDebugString()};
_.Y.getThirdPartyManipulationSuspected=function(){return DQ().getThirdPartyManipulationSuspected()};
_.Y.replaceState=function(W,k,C){DQ().saveAndReplace(W,k,C)};
_.Y.saveAndPush=function(W,k,C,n){DQ().saveAndPush(W,k,C,n)};
_.Y.replaceUrl=function(W){DQ().replaceUrl(W)};
var hSA=function(W){return _.m("web_honor_cache_for_back")&&(_.z(W.endpoint,_.RA)||_.z(W.endpoint,_.YZ))?!0:!W||isNaN(W.expirationTime)?!1:(0,_.oX)()>W.expirationTime},kgC=function(W,k,C){var n=W.get("response.trackingParams",C),N=_.DH(),B=_.VM();
if(n&&N&&B&&(n=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",C),!n&&C.rootVe&&(n=C.rootVe),N=k?"forwardButton":"backButton",k=W.get("playerResponse.topbar.desktopTopbarRenderer."+N+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+N+".buttonRenderer.command.clickTrackingParams",W.data),k=(W=k||W)?_.Yf(W):void 0,W=_.kf(),N=[_.nB(C)],_.jC(W,n,k,{dataPromises:N,csnToClone:C.csn}),C.graftedVes))for(C=
_.b(C.graftedVes),n=C.next();!n.done;n=C.next())_.Hn(W,n.value)};
ze.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.zJ(Error("al"))};
var NQt=function(W,k){return k.filter(function(C){for(var n in C)if(gc7[n])return W.pendingPlayerOnResponseReceivedActions.push(C),!0;return!1})};
_.oq.Object.defineProperties(ze.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var Vl=ze;Vl.prototype.onStoreGraftedVeAction=Vl.prototype.onStoreGraftedVeAction;Vl.prototype.loadData=Vl.prototype.loadData;Vl.prototype.onYtUpdateUnseenNotificationCount=Vl.prototype.onYtUpdateUnseenNotificationCount;Vl.prototype.handleClearCookieAction=Vl.prototype.handleClearCookieAction;Vl.prototype.handleUpdateNotificationsUnseenCountAction=Vl.prototype.handleUpdateNotificationsUnseenCountAction;Vl.prototype.setUnseenNotificationCount=Vl.prototype.setUnseenNotificationCount;
Vl.prototype.onYtUpdateTitle=Vl.prototype.onYtUpdateTitle;Vl.prototype.setPageTitle=Vl.prototype.setPageTitle;Vl.prototype.onYtEndpointChangeHandler=Vl.prototype.onYtEndpointChangeHandler;Vl.prototype.onYtPageDataFetched=Vl.prototype.onYtPageDataFetched;Vl.prototype.handleNavigate=Vl.prototype.handleNavigate;Vl.prototype.onYtNavigate=Vl.prototype.onYtNavigate;Vl.prototype.onYtNavigateRedirect=Vl.prototype.onYtNavigateRedirect;Vl.prototype.onYtNavigateFinish=Vl.prototype.onYtNavigateFinish;
Vl.prototype.onYtNavigateCache=Vl.prototype.onYtNavigateCache;Vl.prototype.onYtNavigateError=Vl.prototype.onYtNavigateError;Vl.prototype.onYtNavigateStart=Vl.prototype.onYtNavigateStart;Vl.prototype.cancelPendingTasks=Vl.prototype.cancelPendingTasks;Vl.prototype.initHistoryManager=Vl.prototype.initHistoryManager;Vl.prototype.onYtHistoryLoad=Vl.prototype.onYtHistoryLoad;Vl.prototype.onYtHistoryPop=Vl.prototype.onYtHistoryPop;Vl.prototype.onYtNavigateSetPageOffset=Vl.prototype.onYtNavigateSetPageOffset;
Vl.prototype.setPageOffset=Vl.prototype.setPageOffset;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Vl.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Vl.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Vl.prototype,"hasError",void 0);_.U([_.Z(),_.O("design:type",Object)],Vl.prototype,"errorMessage",void 0);
_.U([_.jI("yt-navigate-set-page-offset"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Vl.prototype,"onYtNavigateSetPageOffset",null);_.U([_.jI("yt-history-pop"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Vl.prototype,"onYtHistoryPop",null);
_.U([_.jI("yt-history-load"),_.O("design:type",Function),_.O("design:paramtypes",[Event,_.Zms]),_.O("design:returntype")],Vl.prototype,"onYtHistoryLoad",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Vl.prototype,"onYtNavigate",null);_.U([_.jI("yt-update-title"),_.O("design:type",Function),_.O("design:paramtypes",[Event,String]),_.O("design:returntype")],Vl.prototype,"onYtUpdateTitle",null);
_.U([_.jI("yt-update-unseen-notification-count"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Number]),_.O("design:returntype")],Vl.prototype,"onYtUpdateUnseenNotificationCount",null);Vl=_.U([_.kr()],Vl);HVE.YtdAppBehavior=[_.$D.YtActionHandlerBehavior,Vl.prototype];var J_=function(){var W=_.Wp.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.D(J_,_.Wp);J_.prototype.ready=function(){var W=this;_.S(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
J_.prototype.dataChanged_=function(){_.S(this.hostElement).querySelector("#checkbox").checked=!1};
J_.prototype.onChange_=function(){var W=_.S(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Pe(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
var ck=J_;ck.prototype.dataChanged_=ck.prototype.dataChanged_;_.U([_.Z(),_.O("design:type",Object)],ck.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ck.prototype,"dataChanged_",null);ck=_.U([_.kr()],ck);var Y5Y=[ck.prototype];var Ix=function(){var W=_.Wp.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.D(Ix,_.Wp);Ix.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ix.prototype.startTimeout=function(){var W=this,k=this.data&&this.data.displayDurationSeconds;k&&!this.timeoutJobId&&(this.timeoutJobId=_.wI(_.aM,function(){_.KY(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},k*1E3))};
Ix.prototype.cancelTimeout=function(){_.aM.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var Sm=Ix;Sm.prototype.ytdHatsSurveyBehaviorDataChanged=Sm.prototype.ytdHatsSurveyBehaviorDataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Sm.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Sm.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Sm=_.U([_.kr()],Sm);var BQS=[_.$D.YtActionHandlerBehavior,Sm.prototype];var beZ=function(W,k){return W.SHARED_RENDERERS_.hasOwnProperty(k)?"yt":W.prefix},Mm={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}};Mm.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.m("kevlar_mealbar_above_player"),modern:_.m("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"}};
Mm.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Mm.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Mm.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Mm.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)"}};
Mm.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};
Mm.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};
Mm.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};
Mm.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};Mm.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"}};
Mm.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Mm.TOAST={component:null,properties:{}};var Azi=new function(W,k,C){this.supportedPopups=W;this.navigationEndpointPopupMap=k;this.popupTypeMap=C;this.supportedPopups=W;this.navigationEndpointPopupMap=k;this.popupTypeMap=C}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.m("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"}),FcC=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$17481_popupConfig=Mm;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 wg$=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.E$.getInstance()},Ql=function(W,k){var C=W.pageNameToElement.get(k);
if(!C){switch(k){case "watch":var n=_.m("web_watch_force_learning_journey_for_testing")?_.eV("ytd-watch-learning-journey"):_.m("kevlar_watch_fixie")?_.eV("ytd-watch-fixie"):_.m("kevlar_watch_grid")?_.eV("ytd-watch-grid"):_.eV("ytd-watch-flexy");break;case "learning-journey-watch":n=_.eV("ytd-watch-learning-journey");break;case "shorts":n=_.eV("ytd-shorts");break;case "search":n=_.eV("ytd-search");break;case "channel":n=_.eV("ytd-browse");n.pageSubtype="channels";break;case "trending":n=_.eV("ytd-browse");
n.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":n=
_.eV("ytd-browse");n.pageSubtype=k;break;case "browse":n=_.eV("ytd-browse");break;default:_.zJ(new _.AM("Error getting page element for type",k))}C=n;W.pageNameToElement.set(k,C)}return C};
wg$.prototype.preparePage=function(W,k,C){C&&(W=Pz(C)||W);if(W!=="watch"){var n=this.elementPoolPopulator,N=W;N!=n.targetPage_&&n.pendingPages_.indexOf(N)>-1&&(n.targetPage_&&(n.pendingPages_.unshift(n.targetPage_),n.abort()),gX7(n,N),_.cXI(n,N))}if((n=Ql(this,W))||!_.z(C,_.pM)){n.isAttached||n===k||(n.hidden=!0);if(!(n.data||W==="watch"&&_.m("swatcheroo_page_pool_dont_provide_filler_data"))){var B;if(W=(B=_.DE("FILLER_DATA",{})[W])==null?void 0:B.response)n.data=W}return n}};var xhC=function(W){this.JSC$28196_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ttS,"yt-end-playlist-command":E4C,"yt-recover-playlist-command":X97,"yt-refresh-playlist-command":mb$,"yt-playlist-remove-videos-action":fB7};_.e6(_.vx.getInstance(),this.playlistHandlerActionMap,this.JSC$28196_clientRoot);BDT()},lgC;var pW=function(W,k,C){this.apiKey=W;this.endpoint=k;this.confidenceThreshold=C===void 0?.5:C;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=k==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||k==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
k==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||k==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new kI7};
_.Y=pW.prototype;
_.Y.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.JQ("voice_assistant");_.Iz("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var k;this.prefetchResponseTimeoutMs=(k=W.prefetchResponseTimeoutMs)!=null?k:this.prefetchResponseTimeoutMs;tnZ(this);this.startAudio();EYA(this)}else this.errorHandler("OFFLINE")};
_.Y.stop=function(W){var k=W===void 0?{}:W;W=k.logCancel===void 0?!0:k.logCancel;var C=k.logMicClosed===void 0?!0:k.logMicClosed;var n=k.handleError===void 0?!0:k.handleError;k=k.handleStop===void 0?!0:k.handleStop;this.state!==0&&(W&&vk("voz_cx"),em(this,{logMicClosed:C,handleStop:k}),n&&this.errorHandler("ABORTED"))};
_.Y.getState=function(){return this.state};
_.Y.isSupported=function(){return!0};
_.Y.stopAudio=function(W){(W===void 0||W)&&vk("voz_mf")};
_.Y.startAudio=function(){vk("voz_vp");return _.nB(null)};
var agB=function(W,k){W.channelOpen&&(W.state!==2&&(W.state=2,vk("voz_ss"),W.listeningHandler()),k=new Uint8Array(k),k='{ "audioIn": "'+_.zC(k)+'" }',W.channel.send(k))},em=function(W,k){var C=k===void 0?{}:k;
k=C.logMicClosed===void 0?!0:C.logMicClosed;C=C.handleStop===void 0?!0:C.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);Xg6(W);W.stopAudio(k);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;C&&W.stopHandler()},tnZ=function(W){var k={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new cU(W.endpoint,k);W.channel.open();_.b6(W.channel,"w",function(){var C=W.channel,n=C.send,N=W.isUsingVoz?"PLACEHOLDER":"example";N={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:N,deviceModelId:N},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)N.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var B=JSON.stringify(W.youtubeAssistantRequest);N.config.internalIn={youtubeAssistantS3InputJson:B}}n.call(C,N);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.b6(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,em(W))});
_.b6(W.channel,"z",function(C){if(C.data){Xg6(W);for(var n=0;n<C.data.length;n++){var N=W,B=C.data[n],A=B.speechResults;if(A)a:{var w=[];B=[];var x=!1;A=_.b(A);for(var E=A.next();!E.done;E=A.next()){E=E.value;if(E.noSpeech){em(N);N.errorHandler("NO_SPEECH");break a}E.transcript!==void 0&&E.stability!==void 0&&(E.stability<N.confidenceThreshold&&(x=!0),x?B.push(E.transcript):w.push(E.transcript))}if(w.length!==0||B.length!==0)w=w.join(" "),B=B.join(" "),N.receivedEndOfUtterance&&!N.isUsingVoz?N.isUsingVoz||
N.completeHandler([w,B]):(x=N,A=w,E=B,vk("voz_sf"),x.transcriptionUpdateHandler(A,E),x.transcribedSpeechResults=[A,E]),N.receivedEndOfUtterance&&(vk("voz_eou"),N.transcriptionCompleteHandler([w,B]),N.isUsingVoz&&(N.prefetchResponseTimeoutMs===0?em(N,{logMicClosed:!1,handleStop:!0}):N.prefetchResponseTimeoutMs>0&&fgY(N)))}else N.isUsingVoz&&(B==null?0:B.internalOut)?(B=JSON.parse(B.internalOut.youtubeAssistantS3OutputJson),B.userHasOptedInToVaa||B.vaaConsent?N.vaaConsentUpdateHandler(!!B.userHasOptedInToVaa,
!!B.vaaConsent):(dhY(N),B&&(w=N.transcribedSpeechResults,vk("voz_rqf"),N.completeHandler(w,B)))):B.eventType==="END_OF_UTTERANCE"?N.receivedEndOfUtterance=!0:(vk("voz_err"),N.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.zJ(Error("bl")))}}});
_.b6(W.channel,"y",function(C){em(W);switch(C.status){case 1:C="WEBCHANNEL_NETWORK_ERROR";break;case 2:C="WEBCHANNEL_SERVER_ERROR";break;default:C="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(C);W.logError(Error(C))})};
pW.prototype.logError=function(W){_.dI(W)};
pW.prototype.isOnline=function(){return!0};
var fgY=function(W){dhY(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){em(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},dhY=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},EYA=function(W){Xg6(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){em(W);W.errorHandler("NO_SPEECH")},11E3)},Xg6=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},vk=function(W){_.cN(W,void 0,"voice_assistant")};var s4=function(){pW.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.D(s4,pW);s4.prototype.isSupported=function(){return zmZ()};
s4.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.eh(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(n){mhS(W,n)};
this.processor.connect(this.audioContext.destination);var k=function(n){W.stream=n;if(!W.audioContext)return _.nB(null);n=W.audioContext.createMediaStreamSource(n);W.processor&&n.connect(W.processor);return _.nB(null)},C={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?k(this.stream):navigator.mediaDevices.getUserMedia(C).then(k).catch(function(n){em(W);n.name&&n.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(n));return _.eh(null)});
return pW.prototype.startAudio.call(this)};
s4.prototype.stopAudio=function(W){W=W===void 0?!0:W;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(k){k.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;pW.prototype.stopAudio.call(this,W)};
s4.prototype.isOnline=function(){return navigator.onLine};
var mhS=function(W,k){if(W.audioContext)if(window.OfflineAudioContext){var C=W.audioContext.sampleRate,n=k.inputBuffer.getChannelData(0);k=new window.OfflineAudioContext(1,n.length,16E3);for(var N=k.createBuffer(1,n.length,C),B=N.getChannelData(0),A=0,w=0;w<n.length;w++)B[w]=n[w],A+=B[w]*B[w];!W.audioDetected&&Math.sqrt(A/n.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());n=k.createBufferSource();n.buffer=N;n.connect(k.destination);n.start(0);k.oncomplete=function(x){x=x.renderedBuffer.getChannelData(0);
for(var E=Math.floor(16384E3/C),a=new Int16Array(E),X=0;X<E;++X)a[X]=Math.max(-1,Math.min(1,x[X]))*32767;agB(W,a.buffer)};
k.startRendering()}else zKC(W,k)},zKC=function(W,k){var C=W.audioContext.sampleRate,n=k.inputBuffer.getChannelData(0),N=Math.floor((C+8E3)/16E3);
C=n.length/N;k=new Float32Array(C);for(var B=0;B<C;++B)k[B]=n[B*N];n=new Int16Array(C);for(N=0;N<C;++N)n[N]=Math.max(-1,Math.min(1,k[N]))*32767;agB(W,n.buffer)};var DhE={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Vnu=function(){this.JSC$17546_audioEnabled=!0;this.audioFeedbackHolder={}};
Vnu.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var Jz1=function(W){for(var k=_.b(Object.values(DhE)),C=k.next();!C.done;C=k.next())C=C.value,W.audioFeedbackHolder[C]=new Audio,W.audioFeedbackHolder[C].src="/s/search/audio/"+C+".mp3",W.audioFeedbackHolder[C].load()},Ge=function(W,k){if(W.JSC$17546_audioEnabled!==!1&&k in W.audioFeedbackHolder){for(var C=_.b(Object.values(W.audioFeedbackHolder)),n=C.next();!n.done;n=C.next())n=n.value,W.isPlaying(n)&&n.pause();
W.audioFeedbackHolder[k].currentTime=0;W.audioFeedbackHolder[k].play().catch(function(){})}};var czE=function(W,k){var C=this;this.store=W;this.service=k;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){C.setState("offline");C.stop()};
this.audioPlayer=new Vnu;var n;(n=this.audioPlayer)==null||Jz1(n)};
_.Y=czE.prototype;_.Y.getService=function(){return this.service};
_.Y.isEnabled=function(){return!!this.service};
_.Y.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.Y.start=function(){var W=this,k,C,n,N,B,A,w,x,E,a,X,d,V;return _.F(function(c){switch(c.nextAddress){case 1:W.store.dispatch(l2T("",""));if(!navigator.onLine)return W.setState("offline"),c.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){c.jumpTo(2);break}_.F0(c,3);return _.l(c,IgA(W),5);case 5:k=c.yieldResult;if(!k)return(C=W.audioPlayer)==null||Ge(C,"failure"),c.return();W.service.stream=W.stream;W.setState("listening");_.M7(c,2);break;
case 3:_.EF(c),W.permissionsSupported=!1;case 2:n={context:_.AhP(_.TW())},n.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},N=function(M,p){W.store.dispatch(tz7("transcribing"));W.store.dispatch(l2T(M,p))},B=function(){var M;
(M=W.audioPlayer)==null||Ge(M,"open");W.setState("listening")},A=function(){W.setState("transcribing")},w=function(M){W.setErrorState(M)},x=function(M,p){var e;
(e=W.audioPlayer)==null||Ge(e,"success");p&&(_.m("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.f().resolve(_.m_K),W.responseProcessor&&(e=p.navigationAction,M=p.prefetchedSearchResponse,e&&M&&(e=(new _.pf1).JSC$11773_getStoreKey(e),_.$N(W.responseProcessor,M,e)))),W.JSC$17564_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",p))},E=function(){window.removeEventListener("offline",W.handleOfflineEvent)},a=_.f6m(!1),X=a.Authorization!=null,d=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&X?a:{"X-Goog-Visitor-Id":a["X-Goog-Visitor-Id"]},V={completeHandler:x,
errorHandler:w,listeningHandler:B,audioDetectedHandler:A,stopHandler:E,transcriptionUpdateHandler:N,youtubeAssistantRequest:n,languageCode:S5B(),additionalHeaders:d,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&X,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(V),_.ab(c)}})};
_.Y.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.Y.reset=function(){this.store.dispatch(_.jo({type:"RESET_VOICE_SEARCH_STATE"}))};
_.Y.setState=function(W){this.store.dispatch(tz7(W))};
_.Y.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var k;(k=this.audioPlayer)==null||Ge(k,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)IgA(this);else{var C;(C=this.audioPlayer)==null||Ge(C,"failure");this.setState("permission-denied")}break;case "ABORTED":var n;(n=this.audioPlayer)==null||Ge(n,"no_input");break;default:var N;(N=this.audioPlayer)==
null||Ge(N,"no_input");this.setState("timeout")}};
var IgA=function(W){var k,C;return _.F(function(n){switch(n.nextAddress){case 1:return _.l(n,navigator.permissions.query({name:"microphone"}),2);case 2:k=n.yieldResult;if(k.state==="granted")return n.return(!0);if(k.state==="denied")return W.setState("permission-denied"),n.return(!1);W.setState("permission");C={audio:{sampleSize:16,channelCount:1},video:!1};_.F0(n,3);return _.l(n,navigator.mediaDevices.getUserMedia(C),5);case 5:return W.stream=n.yieldResult,n.return(!0);case 3:return _.EF(n),W.setState("permission-denied"),
n.return(!1)}})},S5B=function(){var W=_.DE("INNERTUBE_CONTEXT_HL"),k=_.DE("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+k};var Mn6=function(W,k,C){czE.call(this,k,C);this.JSC$17564_actionRouter=W;this.enableInlineSearchResponse=_.m("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.m("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.m("kevlar_voice_search_enable_fpa_signedin_users")},QiB;
_.D(Mn6,czE);
var pg1=function(){if(!QiB){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.m("kevlar_voice_search_auth_enabled")||_.m("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.m("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");QiB=
new Mn6(_.vx.getInstance(),_.ZF(),new s4(_.DE("VOZ_API_KEY"),W,.5))}return QiB};var vYT=function(W){this.JSC$17568_clientRoot=W;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$17568_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)]]));W=_.b(this.eventListeners);for(var k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;C=_.b(C);for(var n=C.next();!n.done;n=C.next()){var N=
_.b(n.value);n=N.next().value;N=N.next().value;k.addEventListener(n,N)}}_.e6(_.vx.getInstance(),this.autonavPauseActionMap,this.JSC$17568_clientRoot)},eK$,siZ=function(W){return _.m("kevlar_autonav_popup_filtering")?(W=_.eI(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.Y=vYT.prototype;_.Y.onIronOverlayOpened=function(W){siZ(W)&&(this.autonavPauseReasons.overlayOpen=!0,yl(this))};
_.Y.onIronOverlayClosed=function(W){siZ(W)&&(this.autonavPauseReasons.overlayOpen=!1,yl(this))};
_.Y.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;yl(this)};
_.Y.onYtAutonavPauseBlur=function(){var W=this;_.aM.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,yl(W))},8,0)};
_.Y.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;yl(this)};
_.Y.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;yl(this)};
_.Y.onYtAutonavPauseScroll=function(){var W=_.f().resolve(_.yF);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,yl(this))};
_.Y.onYtAutonavPauseUserEngagement=function(W){var k=this;if(_.m("user_engagement_enable_autoplay_pause_feature")){var C=Number(W.lowEngagementThresholdMs);isNaN(C)||C<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.f().resolve(_.xa),_.ie()<C?_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Byt()?(this.userEngagementCsn=_.VM(),_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
k.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,yl(this)):_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Djz(Error("cl`"+JSON.stringify(W)))};
_.Y.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;yl(this)};
_.Y.onYtAutonavVisibilityChanged=function(){var W=this,k,C,n;return _.F(function(N){if(N.nextAddress==1)return(k=_.Zf())?_.l(N,k.getPlayerPromise(),2):N.return();C=N.yieldResult;n=C.isMuted()||C.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&n;yl(W);_.ab(N)})};
_.Y.onYtAutonavPausePlayerEnded=function(){_.f().resolve(_.xa);var W=144E5;_.m("user_engagement_enable_autoplay_pause_feature")||_.m("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.ie()>W;Gg$(this);yl(this)};
_.Y.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,yl(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.fM()}),this.autonavPauseReasons.youthereLactExperiment=!1,yl(this));
this.autonavPauseReasons.longIdle&&!_.m("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,yl(this))};
_.Y.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var yl=function(W){for(var k=!1,C=_.b(Object.values(W.autonavPauseReasons)),n=C.next();!n.done;n=C.next())n=n.value,k=k||n;k?_.Zn.getInstance().pause(W.autonavPauseReasons):(W=_.Zn.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},Gg$=function(W){var k=!1;
if(_.m("enable_autoplay_pause_by_lact")){_.f().resolve(_.xa);k=_.Oe("autoplay_pause_by_lact_sec")*1E3;var C=_.Oe("autoplay_pause_by_lact_sampling_fraction");(k=_.ie()>=k&&Math.random()<C)&&!_.Byt()&&(_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),k=!1)}k!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=k)&&(W.userEngagementCsn=_.VM(),_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.wI(_.aM,function(){_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
vYT.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.ZL("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.fM(),this.autonavPauseReasons.youthereLactExperiment=!1,yl(this));this.autonavPauseReasons.userEngagement&&(_.ZL("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,yl(this))};
vYT.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var yzC=function(){var W=_.R.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.m("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.Oe("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");W.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.ME();W.serviceEndpoint=VT1;W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return W};
_.D(yzC,_.R);_.Y=yzC.prototype;_.Y.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.Y.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.Y.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.Y.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.Y.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.Y.ready=function(){_.f().addProvider({provide:_.J5,useValue:this.hostElement})};
_.Y.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.LO(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.LO(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.LO(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.LO(this,this.onYtGuideShow));_.ZR(this,function(){W.animationTransitionDuration=200})};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.LO(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.LO(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.LO(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.LO(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.LO(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.LO(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.LO(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.Y.getData=function(){return this.data};
_.Y.load=function(){var W=this,k,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),B.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return k=_.ME(),k.resolve(window.ytInitialGuideData),B.return(k.promise);n=!1;_.F0(B,2);return _.l(B,W.fetchGuideData(),4);case 4:C=B.yieldResult;_.M7(B,3);break;case 2:N=_.EF(B),N.message==="Returned error"&&(n=!0);
case 3:if(C)return B.return(C);W.onYtGuideClose();n||(W.initialGuideDataFetchFailed=!0);return B.return(W.lateDataResolver.promise)}})};
_.Y.fetchGuideData=function(){var W=this,k,C,n,N,B,A;return _.F(function(w){if(w.nextAddress==1)return W.guidePromise||(W.guidePromise=_.kQ(W.hostElement,[W.serviceEndpoint])),_.l(w,W.guidePromise,2);if(w.nextAddress!=3)return k=w.yieldResult,C=_.f(),n=C.resolve(_.p1),_.l(w,n(),3);(N=w.yieldResult)&&((B=k)==null?0:B.data)&&((A=k.data.responseContext)==null?void 0:A.maxAgeSeconds)!==0&&N.put("service:guide:fallback",new _.rB({innertubeResponse:k.data}));return w.return(k.data)})};
_.Y.initializeGuideDataIfEmpty=function(){var W=this,k,C;return _.F(function(n){if(n.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return n.return();_.F0(n,2);return _.l(n,W.fetchGuideData(),4)}if(n.nextAddress!=2)return(k=n.yieldResult)&&W.lateDataResolver.resolve(k),_.M7(n,0);C=_.EF(n);_.zJ(C);_.ab(n)})};
_.Y.initializeGuideData=function(){var W=this,k;return _.F(function(C){switch(C.nextAddress){case 1:return _.Bq(uZC(),{mainAppWeb:_.SI()}),_.F0(C,2),_.l(C,W.load(),4);case 4:W.data=C.yieldResult;_.M7(C,3);break;case 2:_.EF(C),_.bH(uZC(),"FAILURE");case 3:k=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.bH(uZC(),k),_.ab(C)}})};
_.Y.setGuideData=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1)return k.disabled?N.return():k.data?(W.data=k.data,k.guideRenderers.add(W),N.return()):_.l(N,k.initializeGuideData(),2);k.graftGuideToPage();C=_.cv("IS_HOMEPAGE_COLD")?"eop":void 0;_.m("disable_element_pool_populator")?k.setGuideDataAfterInit(W):(n=new _.sQ(1,C),_.GA(n,k.setGuideDataAfterInit.bind(k,W)));_.ab(N)})};
_.Y.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.zM(function(){_.cN("gle")});
_.ZR(this,function(){_.cN("gpe")})};
_.Y.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.Yf(W),_.rc(_.kf(),W))}};
_.Y.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.LO(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.Y.onDrawerOpenedChanged=function(W,k){!k.value&&this.guideOpened&&(this.guideOpened=!1)};
_.Y.onYtGuideToggle=function(W){var k=this.guideOpened;this.guideOpened=!k;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var C=_.tQ();_.Er(0,109,!this.guideUserStateOpened);C.save()}this.updateGuideDrawerElementState();if(this.guideElement){var n;this.guideOpened&&((n=W.detail)==null?0:n.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.LO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.LO(this,
this.onAppDrawerTransitioned))}k||this.initializeGuideDataIfEmpty()};
_.Y.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.LO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.sL(this.guideElement)};
_.Y.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.LO(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(wFY(this.guideOpened))};
_.Y.guidePersistentAndVisibleChanged=function(){_.hA(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.Y.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.jo({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.Y.miniGuideVisibleChanged=function(){_.hA(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.Y.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(wFY(this.guideOpened)),this.initialLoad=!1);_.hA(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.Y.activeEndpointChanged=function(){_.hA(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.Y.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.Y.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()};
_.Y.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.Y.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.Y.getGuideOpened=function(){return this.guideOpened};
_.Y.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.Y.getActiveEndpoint=function(){return this.activeEndpoint};
_.Y.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.Y.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&&_.Pe(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.Y.computeGuidePersistentAndVisible=function(){var W=this;_.Dy(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.Y.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.Y.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.Y.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.Y.startLoadingWatch=function(){this.closeGuide()};
_.Y.startLoadingShorts=function(){_.m("web_hide_guide_on_shorts")&&this.closeGuide()};
_.Y.onYtNavigateFinish=function(W,k){if(!_.Cr||k){this.activeEndpoint=k.endpoint;this.pageType=k.pageType;this.pageUrl=k.response.url;var C,n;W=(n=_.z((C=k.endpoint)==null?void 0:C.commandMetadata,_.Ok))==null?void 0:n.url;!this.pageUrl&&W&&(this.pageUrl=W);_.m("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.Y.getVisibleGuideRenderer=function(){for(var W=_.b(this.guideRenderers),k=W.next();!k.done;k=W.next())if(k=k.value,this.miniGuideVisible&&k.is==="ytd-mini-guide-renderer"||this.guideOpened&&k.is==="ytd-guide-renderer")return k;return null};
_.Y.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.b([].concat(_.J8(_.S(W).children)));for(var k=W.next();!k.done;k=W.next())this.markGuideRendererDirty(k.value)}};
_.Y.persistentGuideEnabled=function(W,k){if(!k||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.m("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var C=_.KS(k)||"";return _.m("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(n){return C===n}):!this.persistentGuideBlockedPagePathRegex.test(C)};
_.Y.canFitPersistentGuide=function(W){var k=_.Oe("kevlar_persistent_guide_width_threshold",1312);return k===-1||_.m("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>k};
_.Y.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.Y.onResize=function(){var W=this;_.Dy(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.Y.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.Y.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.Y.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.Y.getInitialGuideUserStateOpened=function(){return!_.tQ().getFlag(109)};
_.oq.Object.defineProperties(yzC.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.DE("initialBodyClientWidth")||window.innerWidth}}});
var $i=yzC;$i.prototype.onResize=$i.prototype.onResize;$i.prototype.observeForMiniGuideVisible=$i.prototype.observeForMiniGuideVisible;$i.prototype.computeGuidePersistentAndVisible=$i.prototype.computeGuidePersistentAndVisible;$i.prototype.cachedClientWidthChanged=$i.prototype.cachedClientWidthChanged;$i.prototype.resetGuide=$i.prototype.resetGuide;$i.prototype.activeEndpointChanged=$i.prototype.activeEndpointChanged;$i.prototype.guideOpenedChanged=$i.prototype.guideOpenedChanged;
$i.prototype.miniGuideVisibleChanged=$i.prototype.miniGuideVisibleChanged;$i.prototype.guideIsVisibleButNotPersistentChanged=$i.prototype.guideIsVisibleButNotPersistentChanged;$i.prototype.guidePersistentAndVisibleChanged=$i.prototype.guidePersistentAndVisibleChanged;$i.prototype.onGuideElementChanged=$i.prototype.onGuideElementChanged;$i.prototype.onGuidePersistentChanged=$i.prototype.onGuidePersistentChanged;$i.prototype.onRenderGuideChanged=$i.prototype.onRenderGuideChanged;
$i.prototype.onActiveEndpointChanged=$i.prototype.onActiveEndpointChanged;$i.prototype.onMiniGuideVisibleChanged=$i.prototype.onMiniGuideVisibleChanged;$i.prototype.onGuideIsVisibleButNotPersistentChanged=$i.prototype.onGuideIsVisibleButNotPersistentChanged;$i.prototype.onGuidePersistendAndVisibleChanged=$i.prototype.onGuidePersistendAndVisibleChanged;_.U([_.v(_.mV),_.O("design:type",Object)],$i.prototype,"ironResizableBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],$i.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],$i.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],$i.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"disabled",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"guidePersistentAndVisible",void 0);_.U([_.Hl("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onGuidePersistendAndVisibleChanged",null);_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.Hl("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"miniGuideVisible",void 0);_.U([_.Hl("miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onMiniGuideVisibleChanged",null);_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"forceMiniGuideClose",void 0);
_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"activeEndpoint",void 0);_.U([_.Hl("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onActiveEndpointChanged",null);_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"renderGuide",void 0);_.U([_.Hl("renderGuide"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onRenderGuideChanged",null);
_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"guideOpened",void 0);_.U([_.Z(),_.O("design:type",Boolean)],$i.prototype,"guidePersistent",void 0);_.U([_.Hl("guidePersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onGuidePersistentChanged",null);_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"guideUserStateOpened",void 0);_.U([_.Z(),_.O("design:type",String)],$i.prototype,"pageUrl",void 0);
_.U([_.Z(),_.O("design:type",String)],$i.prototype,"pageType",void 0);_.U([_.Z(),_.O("design:type",Number)],$i.prototype,"cachedClientWidth",void 0);_.U([_.Z(),_.O("design:type",Object)],$i.prototype,"guideElement",void 0);_.U([_.Z({selector:_.BG}),_.O("design:type",Object)],$i.prototype,"isFullscreenShorts",void 0);_.U([_.Hl("guideElement"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onGuideElementChanged",null);
_.U([_.Hl("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"guidePersistentAndVisibleChanged",null);_.U([_.Cq("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.U([_.Hl("miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"miniGuideVisibleChanged",null);_.U([_.Cq("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"guideOpenedChanged",null);_.U([_.Hl("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"activeEndpointChanged",null);
_.U([_.Cq("pageUrl"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"resetGuide",null);_.U([_.Cq("cachedClientWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"cachedClientWidthChanged",null);_.U([_.Hl("guideOpened","guidePersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"computeGuidePersistentAndVisible",null);
_.U([_.Cq("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"observeForMiniGuideVisible",null);_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$i.prototype,"onResize",null);$i=_.U([_.T({disableElementRegistration:!0,is:"yt-guide-manager"})],$i);var $h6=_.q($i,"yt-guide-manager",void 0,{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var ZeS=function(){var W=_.R.apply(this,arguments)||this;W.JSC$17578_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(k){W.handleCapturedKeydownEvent(k)};
return W};
_.D(ZeS,_.R);_.Y=ZeS.prototype;_.Y.attached=function(){this.listenToDocument(document)};
_.Y.listenToDocument=function(W){W.addEventListener("keydown",_.LO(this,this.onKeyDownEvent));W.addEventListener("keyup",_.LO(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.LO(this,this.onMouseDownEvent));_.m("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.LO(this,this.onPageUpdate))};
_.Y.detached=function(){this.unlistenFromDocument(document)};
_.Y.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.LO(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.LO(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.LO(this,this.onMouseDownEvent));_.m("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.LO(this,this.onPageUpdate))};
_.Y.ready=function(){_.f().addProvider({provide:_.Ay,useValue:this})};
_.Y.isKeyBoardInUse=function(){return this.JSC$17578_keyboardInUse};
_.Y.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.Y.onMouseDownEvent=function(){this.JSC$17578_keyboardInUse=!1};
_.Y.onPageUpdate=function(){if(_.m("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.m("web_shorts_keyboard_shortcut_usage_log")){_.um.clear();for(var W=_.b(_.TO),k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;C=_.F8(C);_.um.set(k,C);_.sr(_.VM(),_.DH(),C)}_.UT.clear();W=_.b(_.qd);for(k=W.next();!k.done;k=W.next())C=_.b(k.value),k=C.next().value,C=C.next().value,C=_.F8(C),_.UT.set(k,C),_.sr(_.VM(),_.DH(),C);_.Rg(_.VM(),_.DH(),[].concat(_.J8(_.UT.values()),
_.J8(_.um.values())));_.yb(_.VM(),[].concat(_.J8(_.UT.values()),_.J8(_.um.values())))}};
_.Y.onMiniplayerActiveChange=function(){var W;(W=_.f().resolve(_.eq).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.Y.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.m("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var k=_.vl(W)||[];return _.F87(k)?!0:W.defaultPrevented?(NW(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.Y.isSpacebarClick=function(W){var k=W||window.event;var C;k.composedPath&&typeof k.composedPath==="function"?C=k.composedPath():C=k.path;C&&C.length?k=C[0]:(k=k||window.event,k=k.target||k.srcElement,k.nodeType==3&&(k=k.parentNode));return k&&W.keyCode===32&&(W=k.tagName==="BUTTON"||k.tagName==="A"||k.tagName==="INPUT",k=(k=k.getAttribute("role"))&&(k==="option"||k==="button"||k.indexOf("menuitem")===0),W||k)?!0:!1};
_.Y.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),NW(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var k=_.f().resolve(_.eq);switch(W.keyCode){case 9:this.JSC$17578_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:k.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:k.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.m("web_fullscreen_shorts")){_.xN7();break}this.isMiniplayerActive()?k.pipController.getWindow()&&(k.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.m("web_ephemeral_actions")&&_.f().resolve(_.PP).activate(W);break;default:this.passEventToPlayer(W)}}};
_.Y.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.m("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var k=this.getPlayerManager();k&&(k=k.getPlayer())&&k.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.Y.getPlayerManager=function(){var W=_.Zf(),k=_.f().resolve(_.qI(_.yF));return W&&k&&k.isOnWatch()?W:null};
_.Y.passEventToPlayer=function(W,k){var C=this,n,N,B;return _.F(function(A){if(A.nextAddress==1)return!_.m("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&C.isMiniplayerActive()?n=_.f().resolve(_.eq).getPlayerElement():C.inlinePreviewIsActive?(N=_.hA(C.hostElement,"yt-get-inline-preview-player-action"))&&N[0]&&(n=N[0]):n=_.Zf(),n?_.l(A,n.getPlayerPromise(),3):A.jumpTo(0);B=A.yieldResult;k?B.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat):B.handleGlobalKeyDown(W.keyCode,
W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&NW(W.keyCode,W.shiftKey,C.isShortsPage);_.ab(A)})};
_.Y.focusSearchBox=function(){_.Pe(this.hostElement,"yt-focus-searchbox")};
_.Y.openHotkeyDialog=function(){_.Pe(this.hostElement,"yt-open-hotkey-dialog")};
_.Y.isMiniplayerActive=function(){return _.f().resolve(_.eq).isMiniplayerActive()};
_.Y.closeMiniplayer=function(W,k){return this.isMiniplayerActive()?(_.f().resolve(_.eq).close(),NW(W,k,this.isShortsPage),!0):!1};
_.Y.toggleTheaterMode=function(W,k){var C=_.l3(_.ZF().getState()),n=this.getPlayerManager(),N=_.m("disable_theater_mode_keyboard")||_.cv("START_IN_FULL_WINDOW_MODE");n&&!N&&(C=!C,_.LY()&&_.m("external_fullscreen")&&(C=!0),_.KY(this.hostElement,"yt-toggle-theater-mode",[C]),NW(W,k,this.isShortsPage))};
_.Y.toggleMiniplayer=function(W,k){var C=this.getPlayerManager();if(this.isMiniplayerActive()){var n;((n=_.f().resolve(_.qI(_.yF)))==null?0:n.isOnWatch())?_.f().resolve(_.eq).close(!0):_.Y_(_.f().resolve(_.eq));NW(W,k,this.isShortsPage)}else C&&(_.KY(this.hostElement,"yt-activate-miniplayer-from-watch-action"),NW(W,k,this.isShortsPage))};
_.Y.handlePlayerSpaceKey=function(W,k){var C=!!_.Zf()||this.isMiniplayerActive();C=_.m("disable_space_scroll_fix")||C;_.m("global_spacebar_pause")&&!this.isKeyBoardInUse()&&C&&(W.preventDefault(),this.passEventToPlayer(W,k))};
var ZQ=ZeS;ZQ.prototype.onMiniplayerActiveChange=ZQ.prototype.onMiniplayerActiveChange;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z({selector:_.ej2}),_.O("design:type",Boolean)],ZQ.prototype,"inlinePreviewIsActive",void 0);_.U([_.Z({selector:_.bi7}),_.O("design:type",Boolean)],ZQ.prototype,"isShortsPage",void 0);
_.U([_.Z({selector:_.zo}),_.O("design:type",Boolean)],ZQ.prototype,"miniplayerIsActive",void 0);_.U([_.Hl("miniplayerIsActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZQ.prototype,"onMiniplayerActiveChange",null);ZQ=_.U([_.T({disableElementRegistration:!0,is:"yt-hotkey-manager"})],ZQ);_.q(ZQ,"yt-hotkey-manager",void 0,{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var RKS=function(){var W=_.R.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.JSC$17581_PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.D(RKS,_.R);_.Y=RKS.prototype;_.Y.ready=function(){_.f().addProvider({provide:_.J4,useValue:this.hostElement})};
_.Y.created=function(){this.JSC$17581_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17581_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17581_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17581_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17581_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17581_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.Y.attached=function(){document.addEventListener("yt-navigate-start",_.LO(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.LO(this,this.onYtNavigateFinish_))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-start",_.LO(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.LO(this,this.onYtNavigateFinish_))};
_.Y.updatePlaylistEventListeners=function(W,k){k&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!k&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.Y.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.Y.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.Y.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.Y.registerPlaylistEventListeners_=function(W){var k=this;W.getPlayerPromise().then(function(C){k.playerListenersSetup_||(k.ytPlayerListenerBehavior.listenToPlayerEvents(C,k.JSC$17581_PLAYER_EVENTS_),k.playerListenersSetup_=!0)})};
_.Y.removePlaylistEventListeners_=function(W){var k=this;W.getPlayerPromise().then(function(C){k.playerListenersSetup_&&(k.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C,k.JSC$17581_PLAYER_EVENTS_),k.playerListenersSetup_=!1)})};
_.Y.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.LO(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.LO(this,this.onPlaylistYtNavigate_))};
_.Y.setAutoplayRenderer=function(W){this.autoplayData=W};
_.Y.setPlaylistData=function(W){this.currentPlaylistData_=W;_.Pe(this.hostElement,"yt-playlist-data-updated");_.JU.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.Y.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.Y.getPlaylistData=function(){return this.currentPlaylistData_};
_.Y.getTempData_=function(W,k){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);k&&(W.autonav="1",_.f().resolve(_.xa),k=_.ie(),k>0&&(W.lact=k),this.playerManager_&&(k=this.playerManager_.getPlayer())&&k.shouldSendVisibilityState()&&(k=k.getVisibilityState(),k!=0&&(W.vis=k)));_.m("enable_unknown_lact_fix_on_html5")&&(_.f().resolve(_.xa),W.lact=_.ie());
return W};
_.Y.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.Y.setLoopStateEntityKey_=function(W){var k;this.loopStateEntityKey_=((k=this.getPlaylistLoopData_(W))==null?void 0:k.playlistLoopStateEntityKey)||null};
_.Y.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.Y.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.Y.skipVideo=function(){var W=this,k=_.m("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||k)k=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.bX(_.aM,function(){W.onPlaylistNext();W.videoSkipJob_=0},k)};
_.Y.cancelVideoSkip=function(){this.videoSkipJob_&&(_.aM.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.Y.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.Y.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.Pe(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.Y.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.Zn.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.Y.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.Y.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.Y.navigateToAutoplayWatchEndpoint_=function(W,k,C){var n=this.playlistComponent.data.currentIndex,N=this.getNumPlayableVideos_();W=="NORMAL"&&k=="autoplayVideo"&&n+1>=N&&C||!(W=this.getVideoEndpoint_(W,k))||(C=this.getTempData_(W,C),_.Pe(this.hostElement,"yt-navigate",{endpoint:W,tempData:C}))};
_.Y.getNumPlayableVideos_=function(){for(var W=0,k=_.b(this.playlistComponent.data.contents||[]),C=k.next();!C.done;C=k.next())C.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.Y.getVideoEndpoint_=function(W,k){if(this.autoplayData&&this.autoplayData.sets)for(var C=0,n=this.autoplayData.sets.length;C<n;C++){var N=this.autoplayData.sets[C];if(N.mode==W){if(N[k])return N[k];break}}else W=new _.AM("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+k),_.zJ(W)};
_.Y.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.Y.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var k=W.detail;k.tempData=this.getTempData_(W.detail.endpoint);_.Pe(this.hostElement,"yt-navigate",k)}};
_.Y.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.Y.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.Y.playlistLoopStateEntityChanged_=function(W){var k=this,C,n,N;return _.F(function(B){if(B.nextAddress==1){if(!W)return B.return();C=W.state==="PLAYLIST_LOOP_STATE_ONE";return k.playerManager_?_.l(B,k.playerManager_.getPlayerPromise(),3):B.jumpTo(2)}B.nextAddress!=2&&(n=B.yieldResult,n.setLoopVideo(C));N=W.state==="PLAYLIST_LOOP_STATE_ALL";k.playlistComponent&&(k.playlistComponent.loopOn=N);_.ab(B)})};
_.Y.getPlaylistLoopData_=function(W){var k,C;if(W=W==null?void 0:(k=W.playlistButtons)==null?void 0:(C=k.menuRenderer)==null?void 0:C.topLevelButtons)for(k=_.b(W),C=k.next();!C.done;C=k.next())if(C=C.value,C.playlistLoopButtonRenderer)return C.playlistLoopButtonRenderer};
_.Y.getLoopStateCommand_=function(W){var k=this.getPlaylistData(),C;k=((C=this.getPlaylistLoopData_(k))==null?void 0:C.states)||[];var n;W=(n=_.z(k[W?1:2],_.OFI))==null?void 0:n.button;var N;return(N=_.z(W,_.Vq))==null?void 0:N.command};
_.Y.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.Y.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
var Rx=RKS;Rx.prototype.onPlaylistLoopStateEntityChanged=Rx.prototype.onPlaylistLoopStateEntityChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],Rx.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Rx.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rx.prototype,"loopStateEntityKey_",void 0);
_.U([_.Z({selectorArgs:["loopStateEntityKey_"],selector:_.ME2}),_.O("design:type",Object)],Rx.prototype,"playlistLoopStateEntity_",void 0);_.U([_.Hl("playlistLoopStateEntity_"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Rx.prototype,"onPlaylistLoopStateEntityChanged",null);Rx=_.U([_.T({disableElementRegistration:!0,is:"yt-playlist-manager"})],Rx);_.q(Rx,"yt-playlist-manager",void 0,{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var oY$,ieu=function(){if(oY$!==void 0)return oY$;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return oY$=W};var TQ$=function(){var W=_.R.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.D(TQ$,_.R);_.Y=TQ$.prototype;_.Y.getLocation=function(){return window.location.href};
_.Y.getCompletionUrl=function(){return _.T7(this.getLocation())};
_.Y.containsRedirectState=function(W){return(W=_.z_(_.b14(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.Y.createGalConfig=function(W,k){var C=new vq7;W=C=k?this.getPopupOrRedirectSetting(C,_.DE("LINK_API_KEY"),_.DE("LINK_API_KEY_REDIRECT"),W):eWS(C,_.DE("LINK_API_KEY"));W.authUser=_.DE("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.Y.getPopupOrRedirectSetting=function(W,k,C,n){this.isGalInteractionPopupMode(n)?(W.interactionMode=0,W=eWS(W,k)):(W.interactionMode=1,k=this.getCompletionUrl(),W.completionUrl=k,W=eWS(W,C));return W};
_.Y.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.m("main_web_redirect_integration_riot");default:return!1}return!0};
_.Y.getStatusEntityKeyForProviderId=function(W){return _.KB(W+":all","accountLinkStatusEntity")};
_.Y.findNestedPropValue=function(W,k){var C=!1,n=null;JSON.stringify(W,function(N,B){C||N!==k||(C=!0,n=B);return C?null:B});
return n};
_.Y.findAccountLinkButtonViewModel=function(W,k){var C=null,n=!1;JSON.stringify(W,function(N,B){n||B.accountLinkStatusEntityKey!==k||B.accountLinkStatusSecondaryEntityKey||(n=!0,C=B);return n?null:B});
return C};
_.Y.executeLinkingSuccessOrFailureCommands=function(W,k,C){var n=null,N;(k==null?0:(N=k.url)==null?0:N.includes("account_sharing"))?n=k==null?void 0:k.response:n=k==null?void 0:k.response;(k=this.findAccountLinkButtonViewModel(n,W))?(W=C?this.findNestedPropValue(k,"onSuccessCommand"):this.findNestedPropValue(k,"onFailureCommand"))?_.bW([W],this.hostElement):_.pS(Error("dl")):_.pS(Error("el`"+W))};
_.Y.handleInitializeRequest=function(W,k){var C=this,n=Afi(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?ry1(W,n.config,n.galService).then(function(N){var B=C.getStatusEntityKeyForProviderId(W);if(N.statusCode===1)k&&C.executeLinkingSuccessOrFailureCommands(B,k,!0),N=C.getLocation().indexOf("#"),N!==-1&&window.history.pushState(null,"",C.getLocation().substring(0,N));else return k&&C.executeLinkingSuccessOrFailureCommands(B,k,!1),Promise.reject(Error(N.statusMessage))}).catch(function(N){_.zJ(N);
_.a9("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(N)}):this.getAccountLinkPromises[W]=n.startLinkingSession({serviceId:W})};
_.Y.handleAccountLinkCommand=function(W){_.z(W,yZ6)&&this.handleLinkRequest(_.z(W,yZ6))};
_.Y.handleLinkRequest=function(W){var k=this,C=W.thirdPartyId;if(C)if(this.isGalInteractionPopupMode(C)){var n=function(){k.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},N=function(){k.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=N;this.getAccountLinkPromises[C].then(function(B){wnB(B).then(function(A){A.statusCode===1?N():n()})}).catch(function(){n()})}else this.getAccountLinkPromises[C].then(function(B){wnB(B).then(function(A){if(A.statusCode!==1)return Promise.reject(Error(A.statusMessage))})}).catch(function(B){_.zJ(B);
_.a9("gamingAccountLinkStatusChanged",{serviceId:C,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(B)})};
_.Y.closeAndFire=function(W,k){_.KY(this.hostElement,"yt-close-popup-action",[W]);k&&_.bW([k],this.hostElement)};
_.Y.handleAccountUnlinkCommand=function(W){_.z(W,$YT)&&this.handleUnlinkRequest(_.z(W,$YT))};
_.Y.handleUnlinkRequest=function(W){var k=this,C=W.thirdPartyId;if(C){var n=function(){k.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},N=function(){k.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=N;var B=Afi(this.createGalConfig(C,!1));this.unlinkUserGal(B,C).then(function(A){A.statusCode===1?N():n()}).catch(function(){n()})}};
_.Y.unlinkUserGal=function(W,k){return W.deleteLink(k)};
_.Y.handleLogAccountLinkingEventCommand=function(W){_.m("enable_gel_log_commands")&&_.z(W,Zu7)&&(W=_.z(W,Zu7).event)&&_.a9("gamingAccountLinkStatusChanged",W)};
_.oq.Object.defineProperties(TQ$,{template:{configurable:!0,enumerable:!0,get:function(){return ieu()}}});
var ox=TQ$;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],ox.prototype,"ytOpenPopupBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ox.prototype,"ytActionHandlerBehavior",void 0);ox=_.U([_.T({disableElementRegistration:!0,is:"ytd-third-party-manager"})],ox);_.q(ox,"ytd-third-party-manager",function(){return ieu()},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var q5A,uLB=function(){return q5A!==void 0?q5A:q5A=document.createElement("template")};
document.head.appendChild(uLB().content);var UhT,Oeu=function(){if(UhT!==void 0)return UhT;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(uLB().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return UhT=W};var Lc7=_.iH(["\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      "]),ji7=function(){var W=_.R.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.applyZoomTransition=_.LS("web_page_transition_type")==="zoom";W.applySlideTransition=_.LS("web_page_transition_type")==="slide";W.TEST_ONLY=void 0;return W};
_.D(ji7,_.R);_.Y=ji7.prototype;_.Y.ready=function(){var W=_.f();W.addProvider({provide:_.yF,useValue:this});W.addProvider({provide:_.P5E,useValue:this})};
_.Y.created=function(){this.pagePool=new wg$;this.contextSwitcher=new D6E};
_.Y.attached=function(){_.Pe(this.hostElement,"attached");var W=_.f().resolve(_.qI(_.Ah));W&&(this.contextSwitcher.JSC$17402_networkService_=W);this.viewTransitionManager=_.f().resolve(_.qI(_.rMA));this.setupPageTransitionAnimation()};
_.Y.getPageOffset=function(W){return W.getScrollTop()};
_.Y.setPageOffset=function(W,k){try{W.setScrollTop(k)}catch(C){}};
_.Y.setPageOffsetForNavigation=function(W,k){_.Pe(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:k===void 0?0:k})};
_.Y.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.Y.getModuleNameForType=function(W){return W==="watch"?_.m("kevlar_watch_fixie")?"watchFixie":_.m("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.Y.attachPage=function(W){var k,C=!_.m("pc_is_attached_ks")&&(W==null?void 0:(k=W.polymerController)==null?void 0:k.isAttached);if(!W.isAttached&&!C)try{_.S(this.hostElement).appendChild(W)}catch(N){var n;_.zJ(new _.AM("Error attaching page element for component",{origin:(n=this.currentPage)==null?void 0:n.is,component:W.is}))}};
_.Y.setActivePage=function(W){var k=this,C=!1,n=function(){var N=k.isOnWatch(),B=k.currentPage;if(W)if(W!==k.currentPage){B&&(B.hidden=!0,B.active=!1,B.removeAttribute("role"));k.currentPage=W;var A,w=Pz((A=k.data)==null?void 0:A.endpoint);B&&_.Pe(k.hostElement,"yt-page-type-changed",{oldPageType:B.is,newPageType:W.is,newPageSubtype:w});_.SY().dispatch(_.jo({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.SY().dispatch(_.jo({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:w||""}));W.hidden=
!1;k.attachPage(W);W.active=!0;W.setAttribute("role","main");B&&k.setPageOffsetForNavigation(W,0);_.m("kevlar_remove_page_dom_on_switch")&&!N&&B&&_.S(k.hostElement).removeChild(B)}else C=!0;else N=new _.AM("Unable to set active page",B?B.is:"unknown origin",(w=k.data)==null?void 0:w.endpoint),_.dI(N)};
this.viewTransitionManager?p0C(this.viewTransitionManager,n,this.viewTransitionConfigForSetActivePage(this.currentPage,W)):n();return C};
_.Y.viewTransitionConfigForSetActivePage=function(W,k){return _.m("web_thumbnail_to_watch_transition")&&(W==null?void 0:W.is)==="ytd-browse"&&this.isWatchPage(k)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(W==null?void 0:W.is)==="ytd-browse"&&(k==null?void 0:k.is)==="ytd-browse"&&W!==k?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.Y.updatePageData=function(W){var k=this,C=this.data;this.updatePageDataJobId&&_.aM.cancelJob(this.updatePageDataJobId);this.data=W;return new _.Wx(function(n){var N=function(){W.filler?k.performDataUpdate(W,C):HFY(function(){k.performDataUpdate(W,C)});
var x=_.Ir();_.SD(x,"cr")||x.processSignal("cr");n()},B=function(){W&&W.page==="watch"?k.updatePageDataJobId=_.bX(_.aM,N):N()};
if(_.m("kevlar_enable_mss_page_modules_client")&&W){var A=_.f().resolve(_.G_),w=k.getModuleNameForType(W.page);(A=MFE(A,[w]))?A.then(B):B()}else B()})};
_.Y.isDownloadsPage=function(W){var k,C;return(W==null?void 0:(k=W.endpoint)==null?void 0:(C=k.browseEndpoint)==null?void 0:C.browseId)==="FEdownloads"};
_.Y.setPlayerSyncInterval=function(W){var k;return _.F(function(C){if(C.nextAddress==1)return _.l(C,_.f().resolve(_.qE),2);k=C.yieldResult;k.setUpPositionSyncInterval(W);_.ab(C)})};
_.Y.performDataUpdate=function(W,k){_.m("kevlar_early_popup_close")||_.KY(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var C=!W.filler;C&&(_.cN("lps"),_.m("config_age_report_killswitch")||Vri());var n=LQ(W),N,B=!1;if(_.m("kevlar_remove_page_dom_on_switch")){var A=k&&LQ(k);n===A&&(N=this.getCurrentPage())}N||(N=Ql(this.pagePool,n));C&&PcZ(this.pagePool.elementPoolPopulator,n);C&&!this.renderLoadingStateJobId&&(B=this.setActivePage(N));if(N){A=n==="watch";var w=
n==="shorts";_.m("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(N);if(A||w)N.playerData=W.playerResponse;if(w){W.reelWatchSequenceResponse?N.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse&&(N.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse);N.currentEndpoint=W.endpoint;var x;N.isPreviousPageShorts=!!(k==null?0:(x=k.endpoint)==null?0:x.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=W.reelWatchSequenceResponse||
W.cachedReelWatchSequenceResponse||(k==null?void 0:k.cachedReelWatchSequenceResponse);N.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}x=this.isDownloadsPage(W);var E=this.isDownloadsPage(k);x&&!E?this.setPlayerSyncInterval(6E5):!x&&E&&this.setPlayerSyncInterval();_.m("block_all_player_prefetch_requests")||this.preparePrefetchRequest(W,N,C,A,w);vvt(_.f().resolve(_.eq),k,W);_.f$x(_.f().resolve(_.xa));_.m("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(N);
C?(C=typeof N.loadPage,C==="function"?(N.pageContext=VQY(this.contextSwitcher,N,N.data!==W.response),k=function(){N.loadPage(W.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&N.is==="ytd-browse"&&B?this.applySlideTransition?p0C(this.viewTransitionManager,k,{transitionName:"slide"}):p0C(this.viewTransitionManager,k,{transitionName:"zoom"}):k()):_.mw(new _.AM("b/38014653 ",[n,
N.is,N.nodeName,C,N.isAttached,k&&LQ(k),this.hostElement.children.length])),_.cN("pdl")):(N.hidden=!0,W.response.filler=!0,N.data=W.response,this.attachPage(N));_.Pe(this.hostElement,"yt-page-data-updated",{pageType:n})}_.wI(_.aM,function(){_.m("logging_avoid_blocking_during_navigation")&&_.jhc().transition("none");var a=RS1(),X=N;if(W){var d=hn7(W),V=Wl7(W),c;a:{if(W.playerResponse){var M=W.playerResponse,p;if((c=M.auxiliaryUi)==null?0:(p=c.messageRenderers)==null?0:p.upsellDialogRenderer){c=M.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(c=W.response,(M=c.overlay)==null?0:M.upsellDialogRenderer)){c=c.overlay.upsellDialogRenderer;break a}c=void 0}var e;var u;p=(e=W.playerResponse)==null?void 0:(u=e.auxiliaryUi)==null?void 0:u.messageRenderers;e=(p==null?void 0:p.enforcementMessageViewModel)||(p==null?void 0:p.bkaEnforcementMessageViewModel);e=(e==null?void 0:e.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?e:void 0;var h;a:{if(W.response&&(u=W.response,(h=u.overlay)==null?0:h.commandWrapperPromoRenderer)){h=
u.overlay.commandWrapperPromoRenderer;break a}h=void 0}ZVt(a,d,V,c,e,h,X)}})};
_.Y.preparePrefetchRequest=function(W,k,C,n,N){var B,A,w,x,E,a,X,d,V,c,M,p,e,u,h;return _.F(function(L){if(L.nextAddress==1)return!C||!n&&!N||_.m("kevlar_disable_background_prefetch")&&_.MI(_.UVJ)()===0?L.return():(B=_.$a(k))?_.l(L,B.getPlayerPromise(),2):L.return();A=L.yieldResult;w=_.f().resolve(_.qI(_.Ah));if(!w)return L.return();if(N)return x=_.hf(_.HK),NDi(x,(E=W.endpoint)==null?void 0:E.reelWatchEndpoint,k.reelWatchSequenceResponse,A,w),L.return();d=(a=W.response)==null?void 0:(X=a.responseContext)==
null?void 0:X.webResponseContextExtensionData;if(!d)return L.return();e=(V=W.response)==null?void 0:(c=V.contents)==null?void 0:(M=c.twoColumnWatchNextResults)==null?void 0:(p=M.autoplay)==null?void 0:p.autoplay;u=_.f().resolve(_.J4);h=_.hf(_.HK);YOE(h,d,A,w,u,e);_.ab(L)})};
_.Y.movePlayerToWatch=function(W){var k=this,C,n;return _.F(function(N){C=Ql(k.pagePool,"watch");n=C.getPlayerContainer();W.appendTo(n);_.ab(N)})};
_.Y.movePlayerToShorts=function(W){var k=this,C,n,N;return _.F(function(B){C=Ql(k.pagePool,"shorts");n=C.getPlayerContainer();(N=W)==null||N.appendTo(n,void 0,!0);_.ab(B)})};
_.Y.getPlayerFromWatch=function(){var W=Ql(this.pagePool,"watch");return _.$a(W)};
_.Y.getPlayerFromShorts=function(){var W=Ql(this.pagePool,"shorts");return _.$a(W)};
_.Y.startLoadingWatch=function(){var W=Ql(this.pagePool,"watch");this.renderLoadingStateJobId?(_.aM.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(W)};
_.Y.startLoadingShorts=function(){var W=Ql(this.pagePool,"shorts");this.setActivePage(W)};
_.Y.getCurrentPage=function(){return this.currentPage};
_.Y.getDestinationPageType=function(){return this.destinationPageType};
_.Y.getCurrentData=function(){return this.data};
_.Y.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.Y.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.Y.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.Y.preparePage=function(W,k){var C=this,n=function(){var A=C.pagePool.preparePage(W,C.currentPage,k);A&&C.attachPage(A)},N=function(A){_.Dx(A,k);
_.zJ(A)};
if(_.m("kevlar_enable_mss_page_modules_client")){var B=this.getModuleNameForType(W);if(B=MFE(_.f().resolve(_.G_),[B])){B.then(n.bind(this)).catch(N.bind(this));return}}try{n()}catch(A){N(A)}};
_.Y.lazyPrepareCriticalPages=function(W,k){W=Pz(k)||W;_.m("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.Y.maybePrepareWatchPage=function(W){W!=="watch"&&_.wI(_.aM,this.preparePage.bind(this,"watch"))};
_.Y.downloadPageModules=function(W){W=this.getModuleNameForType(W);var k=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);k.delete(W);var C=_.f().resolve(_.G_);C.JSC$16143_loadModules(W);return C.JSC$16143_loadModules.apply(C,_.J8(k))};
_.Y.renderPageLoadingState=function(W,k){this.preparePage(W,k);var C=Ql(this.pagePool,W);C.loadingData&&(C.loadingData.endpoint=k);C.loading=!0;this.setActivePage(C);W==="watch"&&_.Pe(this.hostElement,"yt-guide-close")};
_.Y.prepareForNavigation=function(W,k){var C=this;if(this.currentPage&&this.data){var n=Pz(k)||W;this.destinationPageType=n;LQ(this.data)==n&&_.Pe(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(W==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.aM.cancelJob(this.renderLoadingStateJobId);_.f().resolve(_.eq).deactivate(k);var N=this.data;this.renderLoadingStateJobId=_.ty(_.aM,function(){if(C.data!=N){var B=Ql(C.pagePool,W);C.setActivePage(B)}else C.renderPageLoadingState(W,
k);C.renderLoadingStateJobId=0},150)}};
_.Y.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.sQ(1);this.currentPage.pageDisposeJobs.forEach(function(k){_.GA(W,k)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.Y.flushPageDisposeJobset=function(W){var k=this.pageDisposeJobsets.get(W);k&&(k.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.Y.onYtStopOldPlayer=function(W,k){k=k===void 0?!1:k;var C,n=_.jO("kevlar_new_stop_old_player_logic_pages");if(_.m("kevlar_check_current_page_on_stop_old_player")&&(n.length===0||this.currentPage&&n.includes(this.currentPage.is)))if(this.data&&(C=LQ(this.data)),LQ(W)===C&&this.currentPage&&LQ(this.currentPage.data)!==C)var N=_.$a(this.currentPage);else C=LQ(this.data),N=Ql(this.pagePool,C),N=_.$a(N);else this.data&&(C=LQ(this.data),N=Ql(this.pagePool,C),N=_.$a(N));if(N)if(W=LQ(W),n=Ql(this.pagePool,
W),n=_.$a(n),N==n)k&&!_.m("kevlar_disable_preemptive_player_reset")&&N.resetForNewPlayback();else if(k=C==="watch"&&W!=="watch",!k||W==="shorts"||_.ajC()&&!dN6(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")C=_.f().resolve(_.eq),k&&C.isMiniplayerActive()&&C.pipController.getWindow()||N.stop()};
_.Y.setupPageTransitionAnimation=function(){var W=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){np(this.viewTransitionManager,"slide",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
np(this.viewTransitionManager,"zoom",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
var k=_.Oe("web_page_transition_exit_ms"),C=_.Oe("web_page_transition_wait_ms"),n=_.Oe("web_page_transition_enter_ms");if(!isNaN(k)||!isNaN(C)||!isNaN(n))if(k=IzC(Lc7,k,C,n))C=document.createElement("style"),C.textContent=_.hrz(k),document.head.appendChild(C)}};
_.oq.Object.defineProperties(ji7,{template:{configurable:!0,enumerable:!0,get:function(){return Oeu()}}});
var He7=ji7;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],He7.prototype,"ytActionHandlerBehavior",void 0);He7=_.U([_.T({disableElementRegistration:!0,is:"ytd-page-manager"})],He7);_.q(He7,"ytd-page-manager",function(){return Oeu()},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var iL=function(W,k,C){C=C===void 0?!1:C;_.XK.call(this);this.draggableElement=W;this.callbacks=k;this.allowClicks=C;this.dragOccurred=!1;this.internalDragger=new _.IR(this.draggableElement);this.dragDelay=new _.uD(this.delayedDrag.bind(this));rzS(this);this.allowClicks&&(_.PeC(this.internalDragger,5),W.addEventListener("click",_.LO(this,this.validateClick),{capture:!0}))};
_.D(iL,_.XK);var rzS=function(W){_.b6(W.internalDragger,"earlycancel",function(){W.allowClicks&&(W.dragOccurred=!1)});
_.b6(W.internalDragger,"start",function(k){var C,n;(n=(C=W.callbacks).onStartDrag)==null||n.call(C,k);!k.defaultPrevented&&W.allowClicks&&(W.dragOccurred=!0)});
_.b6(W.internalDragger,"beforedrag",function(k){k.preventDefault();W.lastOffset=new _.S3(k.clientX-W.internalDragger.startX,k.clientY-W.internalDragger.startY);W.dragDelay.start()});
_.b6(W.internalDragger,"end",function(){W.dragDelay.stop();var k,C;(C=(k=W.callbacks).onEndDrag)==null||C.call(k);W.lastOffset=void 0})};
iL.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
iL.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.LO(this,this.validateClick),{capture:!0})};
iL.prototype.validateClick=function(W){this.dragOccurred&&(this.dragOccurred=!1,W.stopPropagation(),W.preventDefault())};var Te=function(W,k){_.XK.call(this);this.JSC$17603_resizeContainer=W;this.callbacks=k;this.aspectRatio=16/9;this.JSC$17603_resizers=[];W=_.b(this.JSC$17603_resizeContainer.children);for(k=W.next();!k.done;k=W.next())gYY(this,k.value)};
_.D(Te,_.XK);Te.prototype.disposeInternal=function(){for(var W=_.b(this.JSC$17603_resizers),k=W.next();!k.done;k=W.next())k.value.dispose();W=_.b(this.JSC$17603_resizeContainer.children);for(k=W.next();!k.done;k=W.next())k.value.setAttribute("disabled","");this.JSC$17603_resizers.length=0};
Te.prototype.setSize=function(W){this.currentMiniplayerSize=W};
Te.prototype.setAspectRatio=function(W){this.aspectRatio=W};
Te.prototype.update=function(W,k){for(var C=_.b(this.JSC$17603_resizeContainer.children),n=C.next();!n.done;n=C.next()){n=n.value;var N=n.getAttribute("alignment");_.uK(n,"disabled",N===W||N===k)}};
var gYY=function(W,k){var C=k.getAttribute("alignment"),n=new iL(k,{onStartDrag:function(N){if(k.hasAttribute("disabled"))N.preventDefault();else{W.dragStartSize=W.currentMiniplayerSize;var B,A;(A=(B=W.callbacks).onStartResize)==null||A.call(B)}},
onDrag:function(N){if(W.dragStartSize){C!=="north"&&C!=="west"||N.scale(-1);var B=C==="north"||C==="south";N=B?N.y:N.x;B&&W.aspectRatio>=1?N*=W.aspectRatio:!B&&W.aspectRatio<1&&(N/=W.aspectRatio);W.callbacks.onResize(W.dragStartSize+N)}}});
W.JSC$17603_resizers.push(n)};var PSB,Kc6=function(){return PSB!==void 0?PSB:PSB=document.createElement("template")};
document.head.appendChild(Kc6().content);var hKZ;var WjY=_.GM(function(W){var k=_.yE(),C=W.onDrag,n=W.onDragStart,N=W.onDragEnd,B=_.vp(W,{allowClicks:!1,dragThreshold:5}),A=B.dragThreshold,w=B.allowClicks;W=B.children;B=B.className;var x=void 0,E=void 0,a=new _.S3(0,0),X=!1;_.Ee(function(){x=new _.IR(k.value);E=new _.uD(V);d(x,E);if(w()){_.PeC(x,A());var M;(M=k.value)==null||M.addEventListener("click",c,{capture:!0})}_.fy(function(){var p;(p=x)==null||p.dispose();if(w()){var e;(e=k.value)==null||e.removeEventListener("click",c,{capture:!0})}})});
var d=function(M,p){_.b6(M,"earlycancel",function(){w()&&(X=!1)});
_.b6(M,"start",function(e){n==null||n(e);e.defaultPrevented||w()&&(X=!0)});
_.b6(M,"beforedrag",function(e){x&&E&&(e.preventDefault(),a=new _.S3(e.clientX-x.startX,e.clientY-x.startY),E.start())});
_.b6(M,"end",function(){p.stop();N==null||N();a=new _.S3(0,0)})},V=function(){a&&C(a)},c=function(M){X&&(X=!1,M.stopPropagation(),M.preventDefault())};
return _.t("yt-draggable",{el:k,class:_.Li("ytDraggableComponentHost",B)},W)},"Lf");var kYT=_.GM(function(W){var k=_.b(_.kw(0,void 0,"Pf10wb")),C=k.next().value,n=k.next().value;k=function(N){var B={},A={};return _.t(WjY,{className:_.Li("ytdMiniplayerComponentResizer",(B.ytdMiniplayerComponentResizerDisabled=function(){return N===W.horizontalAlignment()||N===W.verticalAlignment()},B.ytdMiniplayerComponentResizerNorth=N==="north",B.ytdMiniplayerComponentResizerEast=N==="east",B.ytdMiniplayerComponentResizerSouth=N==="south",B.ytdMiniplayerComponentResizerWest=N==="west",B)),
onDragStart:function(){n(W.currentMiniplayerSize())},
onDrag:function(w){N!=="north"&&N!=="west"||w.scale(-1);var x;w=(x=N==="north"||N==="south")?w.y:w.x;var E=W.currentAspectRatio();x&&E>=1?w*=E:!x&&E<1&&(w/=E);x=w;W.onResize(C()+x)}},_.t("div",{class:_.Li("ytdMiniplayerComponentResizerCorner",(A.ytdMiniplayerComponentResizerNorthCorner=N==="north",A.ytdMiniplayerComponentResizerEastCorner=N==="east",A.ytdMiniplayerComponentResizerSouthCorner=N==="south",A.ytdMiniplayerComponentResizerWestCorner=N==="west",A))}))};
return _.t("div",{class:"ytdMiniplayerComponentResizers"},k("north"),k("east"),k("south"),k("west"))},"Mf");var CZ6=16/9,ntB=_.GM(function(){var W=_.yE(),k=_.b(_.kw(new _.lB(NaN,NaN),void 0,"yxHohf")),C=k.next().value,n=k.next().value;k=_.b(_.kw(!1,void 0,"ku1l7c"));var N=k.next().value,B=k.next().value;k=_.b(_.kw(!1,void 0,"pbOm3b"));var A=k.next().value,w=k.next().value;k=_.b(_.kw(!1,void 0,"LqfsYc"));var x=k.next().value,E=k.next().value;k=_.b(_.kw(!1,void 0,"wYZnZe"));var a=k.next().value,X=k.next().value;k=_.b(_.kw(!1,void 0,"KVndGb"));var d=k.next().value,V=k.next().value;k=_.b(_.kw(!1,void 0,"ofTiZe"));
var c=k.next().value,M=k.next().value;k=_.b(_.kw(CZ6,void 0,"bpheWd"));var p=k.next().value,e=k.next().value,u=_.b(_.kw(!1,void 0,"MIV0Jb"));k=u.next().value;var h=u.next().value;u=_.b(_.kw(!1,void 0,"Y2idSc"));var L=u.next().value,Bw=u.next().value;u=_.b(_.kw(void 0,void 0,"IuZWBb"));var P=u.next().value,xz=u.next().value;u=_.b(_.kw(_.DE("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var Sp=u.next().value,vw=u.next().value;u=_.b(_.kw("south",void 0,"mV91if"));var lw=u.next().value,G4=u.next().value;
u=_.b(_.kw(400,void 0,"OwmImd"));var nA=u.next().value,Xs=u.next().value,aI=_.f().resolve(_.eq).miniplayerPropSignalMap[0],LA=aI.data,dj=aI.externalPlaylistData;u=aI.toastData;var hK=aI.playabilityStatus,Tz=aI.isDisabled,S8=aI.watchWhile;aI=_.b(_.h7(aI.isReadyToResume));var ms=aI.next().value,pA=aI.next().value,k3;_.Ee(function(){n(_.Nw());W.value.addEventListener("animationend",function(AS){AS.target===W.value&&(V(!1),M(!1))})});
_.GJ("yt-window-resized",function(AS){AS&&n(AS)});
var oe=function(){k3&&e(k3.getVideoAspectRatio())},bw=function(){if(k3){var AS=k3.getPlayerState()===1;
ms()&&AS&&pA(!1)}};
_.GJ("yt-activate-miniplayer",function(AS){var RJ;return _.F(function(Y2){if(Y2.nextAddress==1)return N()?Y2.return():_.l(Y2,(RJ=_.f().resolve(_.eq).getPlayerElement())==null?void 0:RJ.getPlayerPromise(),2);k3=Y2.yieldResult;if(!k3)return Y2.return();!L()&&_.m("kevlar_watch_while_v2")&&(G4(AS&&!_.m("kevlar_watch_while_bottom_align")?"north":"south"),vw(_.DE("HTML_DIR")==="rtl"?"west":"east"));var VY=k3;VY.addEventListener("onVideoDataChange",oe);VY.addEventListener("onStateChange",bw);e(k3.getVideoAspectRatio());
B(!0);V(!0);_.ab(Y2)})});
_.GJ("yt-deactivate-miniplayer",function(AS){return _.F(function(RJ){B(!1);pA(!1);M(AS);V(!0);if(k3){var Y2=k3;Y2.removeEventListener("onVideoDataChange",oe);Y2.removeEventListener("onStateChange",bw)}_.ab(RJ)})});
var C7=function(){var AS=!!LA(),RJ=d(),Y2=S8();return(Y2===void 0?0:Y2)&&_.m("kevlar_watch_while_modern")?!1:AS||RJ},j8=function(){var AS;
return!((AS=dj())==null||!AS.contents)},CL=function(){var AS=nA();
var RJ=C();RJ=Math.min(Math.min(RJ.width,RJ.height)-32,720);var Y2=p(),VY=C7(),cY=j8()&&A(),e8=Math.min(AS,RJ);AS=new _.lB(192,VY?116:192);Y2=Y31(new _.lB(cY?CZ6:Y2,1),new _.lB(e8,VY?e8-76:e8));AS.width<=Y2.width&&AS.height<=Y2.height||(N1C(Y2,AS),Y2.width=Math.min(Y2.width,RJ),Y2.height=Math.min(Y2.height,RJ));return new _.lB(Y2.width,_.Sq(192,Y2.height+IBu(VY,cY),720))},EA=function(){var AS=CL(),RJ=C7(),Y2=j8()&&A();
return new _.lB(AS.width,AS.height-IBu(RJ,Y2))},Nu=function(){var AS=function(RJ){RJ.target===W.value&&a()&&(X(!1),W.value.removeEventListener("transitionend",AS))};
W.value.addEventListener("transitionend",AS);X(!0);w(!A())};
aI={};return _.t("ytd-miniplayer",{el:W,class:_.Li("ytdMiniplayerComponentHost",(aI.ytdMiniplayerComponentVisible=function(){return N()||d()},aI.ytdMiniplayerComponentAnimatingSnap=x,aI.ytdMiniplayerComponentAnimatingPlaylistExpand=a,aI.ytdMiniplayerComponentAnimatingFade=d,aI),function(){if(d()){var AS=lw();
var RJ=N(),Y2=c();AS=RJ?AS==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Y2?AS==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":AS==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else AS="";return AS}),
style:_.WJ({top:function(){return lw()==="north"?"16px":""},
right:function(){return Sp()==="east"?"16px":""},
bottom:function(){return lw()==="south"?"16px":""},
left:function(){return Sp()==="west"?"16px":""},
width:function(){return CL().width+"px"},
height:function(){return CL().height+"px"},
transform:function(){var AS=P();return AS?"translate("+AS.x+"px, "+AS.y+"px)":""}})},_.t("div",{class:"ytdMiniplayerComponentContent"},_.t(WjY,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(AS){var RJ=cp7(Sp(),lw(),C(),CL(),P()),Y2=EA();Math.abs(AS.clientY-(RJ.y+Y2.height))>15?h(!0):AS.preventDefault()},
onDrag:function(AS){xz(AS)},
onDragEnd:function(){var AS=DbT(cp7(Sp(),lw(),C(),CL(),P()),C(),CL()),RJ=Jp7(Sp(),lw(),C(),CL()),Y2=Jp7(AS.horizontalAlignment,AS.verticalAlignment,C(),CL());Y2=new _.S3(Y2.x-RJ.x,Y2.y-RJ.y);var VY;RJ=RJ.y+(((VY=P())==null?void 0:VY.y)||0)+CL().height/2;var cY=function(){Sp()===AS.horizontalAlignment&&lw()===AS.verticalAlignment||Bw(!0);vw(AS.horizontalAlignment);G4(AS.verticalAlignment);xz(void 0)},e8=function(R1){R1.target===W.value&&x()&&(E(!1),cY(),W.value.removeEventListener("transitionend",
e8))};
h(!1);lw()==="south"&&RJ>C().height?(cY(),_.f().resolve(_.eq).close()):(W.value.addEventListener("transitionend",e8),E(!0),xz(Y2))}},_.t(_.NI,{cond:N,
then:function(){return _.t(_.WaS,{isDisabled:Tz,playabilityStatus:hK,size:EA})}}),_.t(_.NI,{cond:C7,
then:function(){return _.t(_.KK7,{isReadyToResume:ms,data:LA,expanded:A,onExpandClick:Nu,playlistData:dj})}}),_.t(_.NI,{cond:k,
then:function(){return _.t("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.t(_.NI,{cond:function(){return j8()&&A()||a()},
then:function(){return _.t(_.ViC,{className:"ytdMiniplayerComponentPlaylistPanel",data:dj,hideHeaderText:!0,withinMiniplayer:!0})}}),_.t("div",{class:"ytdMiniplayerComponentToast"},_.t(_.kwS,{toastData:u}))),_.t(kYT,{onResize:function(AS){Xs(_.Sq(192,AS,720))},
currentAspectRatio:p,currentMiniplayerSize:nA,horizontalAlignment:Sp,verticalAlignment:lw}))},"Nf");_.m("ytd_miniplayer_to_wiz")&&_.Gj(ntB,"ytd-miniplayer",{});_.Gj(_.kwS,"ytd-miniplayer-toast",{props:{toastData:_.Ik}});var N$S=16/9,YcA=new _.lB(400,400/N$S),qm=function(){var W=_.R.apply(this,arguments)||this;W.active=!1;W.hasNoData=!1;W.enabled=!1;W.expanded=!1;W.readyToResume=!1;W.isDisabled=!1;W.externalPlaylistData={};W.premiumBadges=[];W.watchWhile=!1;W.playerState=null;W.verticalAttachment="south";W.horizontalAttachment=_.DE("HTML_DIR")==="rtl"?"west":"east";W.isAnimatingFade=!1;W.isAnimatingSnap=!1;W.isAnimatingExpand=!1;W.isDragging=!1;W.playerHidden=!1;W.hasPlaylistData=!1;W.closed=!1;W.expandedClosed=!1;
W.isForReadyToResume=!1;W.watchResponse=null;W.player=null;W.playerVe=null;W.expandVe=null;W.closeVe=null;W.readyToResumeCloseVe=null;W.disabledInitialStateIsPlaying=!1;W.PLAYER_EVENTS=new Map;W.aspectRatio=N$S;W.currentMiniplayerSize=400;W.userSetSize=!1;W.userSetPosition=!1;W.userHasDragged=!1;W.maxMiniplayerSize=720;W.transform=new _.S3(0,0);W.windowDimensions=new _.lB(NaN,NaN);W.dimensions=YcA;W.screenLayer=3;W.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return W};
_.D(qm,_.R);_.Y=qm.prototype;_.Y.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()};
_.Y.ready=function(){this.setUpDragging();this.setUpResizing()};
_.Y.attached=function(){this.onWindowResized(_.Nw());this.hostElement.addEventListener("animationend",_.LO(this,this.resetFadingAnimation))};
_.Y.detached=function(){this.hostElement.removeEventListener("animationend",_.LO(this,this.resetFadingAnimation))};
_.Y.resetFadingAnimation=function(W){W.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.Y.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.Y.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.Y.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var W=_.VM(this.screenLayer);this.readyToResumeCloseVe&&W&&_.yb(W,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.Y.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var W=_.VM(0),k=_.DH(0);W&&k&&(_.sr(W,k,this.readyToResumeVe),_.yb(W,[this.readyToResumeVe]))}};
_.Y.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var W=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=W===-1||W===1||W===3)&&this.player.pauseVideo()}};
_.Y.activate=function(W,k){k=k===void 0?!1:k;var C=this,n;return _.F(function(N){if(N.nextAddress==1)return C.setInitialActivatePositioning(k),C.enabled=!0,C.active=!0,C.expanded=!1,C.closed=!1,C.expandedClosed=!1,C.watchWhileHidden||(C.isAnimatingFade=!0),_.f().resolve(_.J4).setPlaylistComponent(C.JSC$17614_playlistPanel),W.appendTo(C.playerContainer),_.l(N,W.getPlayerPromise(),2);n=N.yieldResult;n.setSizeStyle(!1,!0);C.ytPlayerListenerBehavior.listenToPlayerEvents(n,C.PLAYER_EVENTS);C.player=n;
C.watchWhile&&_.m("kevlar_watch_while_minimum_size")&&C.setMiniplayerSize(192);C.setAspectRatio(C.player.getVideoAspectRatio());C.onIsDisabledChanged();_.ab(N)})};
_.Y.setInitialActivatePositioning=function(W){if(!this.userSetPosition&&_.m("kevlar_watch_while_v2")){this.verticalAttachment=W&&!_.m("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.DE("HTML_DIR")==="rtl"?"west":"east";var k;(k=this.JSC$17614_resizers)==null||k.update(this.horizontalAttachment,this.verticalAttachment)}};
_.Y.deactivate=function(W,k){var C=this;return _.F(function(n){if(!C.active)return n.return();W||(C.expanded?C.expandedClosed=!0:C.closed=!0);C.active=!1;C.isForReadyToResume=!1;k&&_.m("kevlar_watch_while_counterfactual")||(C.isAnimatingFade=!0);C.player&&C.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C.player,C.PLAYER_EVENTS);C.player=null;_.ab(n)})};
_.Y.onMetadataTap=function(W){this.expandVe&&(W===void 0||W)&&(W=_.VM(this.screenLayer))&&_.Zr(W,this.expandVe);_.Y_(_.f().resolve(_.eq))};
_.Y.onDisabledTap=function(W){W.target===_.S(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.Y.onPlaylistExpandTap=function(W){if(this.hasPlaylistData){W=_.vl(W)||[];W=_.b(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;if(k===this.hostElement)break;if(k.classList&&k.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.Y.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.LO(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.Y.animatedResizePlaylist=function(W){W.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.LO(this,this.animatedResizePlaylist)))};
_.Y.getExpandIcon=function(W){return W?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.Y.onPlayerVideoDataChange=function(){var W,k=(W=this.player)==null?void 0:W.getVideoAspectRatio();k&&k!==this.aspectRatio&&this.setAspectRatio(k)};
_.Y.setAspectRatio=function(W){if(this.active){this.aspectRatio=W;this.updateDimensionsAndResize();var k;(k=this.JSC$17614_resizers)==null||k.setAspectRatio(W)}};
_.Y.updateDimensionsAndResize=function(){var W=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),k=this.expanded?N$S:this.aspectRatio,C=new _.lB(192,this.showInfoBar?116:192);W=Y31(new _.lB(k,1),new _.lB(W,this.showInfoBar?W-76:W));C.width<=W.width&&C.height<=W.height||(N1C(W,C),W.width=Math.min(W.width,this.maxMiniplayerSize),W.height=Math.min(W.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&k<=1?Math.max(W.width,W.height)+76:Math.max(W.width,W.height)));this.dimensions=
new _.lB(W.width,this.clamp(W.height+this.getNonPlayerHeight()));this.resize()};
_.Y.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var W=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=W.height+"px";var k;(k=this.player)==null||k.setInternalSize(W.width,W.height)};
_.Y.getPlayerSize=function(W){var k=Math.max(0,W.height-this.getNonPlayerHeight());return new _.lB(W.width,k)};
_.Y.getNonPlayerHeight=function(){var W=0;this.showInfoBar&&(W+=76);this.expanded&&(W+=285);return W};
_.Y.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.f().resolve(_.eq).close()};
_.Y.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.Y.logClosingClick=function(){this.closeVe&&_.Zr(_.VM(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Zr(_.VM(this.screenLayer),this.readyToResumeCloseVe)};
_.Y.onPlayerExpandMiniplayer=function(){if(this.expandVe){var W=_.VM(this.screenLayer);W&&_.Zr(W,this.expandVe)}};
_.Y.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var W=this.playerState===1;this.continueWatching&&W&&(this.continueWatching=!1);this.premiumBadges.length&&W&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.Y.getScreenLayer=function(){return this.screenLayer};
_.Y.logMiniplayer=function(){var W=_.VM(this.screenLayer),k=_.DH(this.screenLayer);W&&k&&this.playerVe&&(_.sr(W,k,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Rg(W,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.yb(W,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Rg(W,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.Y.computePlaylistData=function(W,k){return k};
_.Y.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.Y.computeExpandButtonHidden=function(W,k,C){return!W||!k||C};
_.Y.computePlaylistIndexHidden=function(W,k){return!W||k};
_.Y.computePlaylistPanelHidden=function(W,k){return!k&&!W};
_.Y.computeExpandButtonLabel=function(W){return W?_.w8("MINIPLAYER_COLLAPSE_LABEL"):_.w8("MINIPLAYER_EXPAND_LABEL")};
_.Y.computeDisabledStateCloseButtonLabel=function(){return _.w8("MINIPLAYER_CLOSE",void 0,"Close")};
_.Y.onWindowResized=function(W){W&&(W=this.windowDimensions=W,this.maxMiniplayerSize=Math.min(Math.min(W.width,W.height)-32,720),this.updateDimensionsAndResize())};
_.Y.setUpResizing=function(){var W=this;this.JSC$17614_resizers||(this.JSC$17614_resizers=new Te(this.JSC$17614_resizeContainer,{onStartResize:function(){W.handleResizeStart()},
onResize:function(k){W.handleResize(k)}}),this.JSC$17614_resizers.setSize(this.currentMiniplayerSize),this.JSC$17614_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.Y.handleResizeStart=function(){var W=_.VM(this.screenLayer);this.userSetSize||(this.userSetSize=!0,W&&this.resizeVe&&_.yb(W,[this.resizeVe]));W&&this.resizeVe&&_.Zr(W,this.resizeVe)};
_.Y.handleResize=function(W){this.setMiniplayerSize(W);this.updateDimensionsAndResize()};
_.Y.setUpDragging=function(){var W=this;this.JSC$17614_dragger||(this.JSC$17614_dragger=new iL(this.draggableContainer,{onStartDrag:function(k){!W.isSafeToDrag(k)||W.isAnimatingSnap?k.preventDefault():W.handleDragStart()},
onDrag:function(k){W.transform=k;W.setTransform(W.transform)},
onEndDrag:function(){W.handleDragEnd()}},!0))};
_.Y.handleDragStart=function(){this.isDragging=!0;var W=_.VM(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,W&&this.repositionVe&&_.yb(W,[this.repositionVe]));W&&this.repositionVe&&_.Zr(W,this.repositionVe)};
_.Y.handleDragEnd=function(){this.isDragging=!1;var W=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&W>this.windowDimensions.height&&_.f().resolve(_.eq).close();this.animateSnapToCorner()};
_.Y.animateSnapToCorner=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),k=this.getNearestAttachments();k=this.getGlobalPositionFromAttachments(k.horizontalAttachment,k.verticalAttachment);W=new _.S3(k.x-W.x,k.y-W.y);this.isAnimatingSnap=!0;this.setTransform(W);this.hostElement.addEventListener("transitionend",_.LO(this,this.endSnapAnimation))};
_.Y.endSnapAnimation=function(W){W.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.LO(this,this.endSnapAnimation)),this.endDrag())};
_.Y.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.Y.setTransform=function(W){this.hostElement.style.transform=W?"translate("+W.x+"px, "+W.y+"px)":""};
_.Y.getGlobalPositionFromAttachments=function(W,k){return new _.S3(W==="west"?16:this.windowDimensions.width-this.dimensions.width-16,k==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.Y.updateAttachments=function(){var W=this.getNearestAttachments();if(this.horizontalAttachment!==W.horizontalAttachment||this.verticalAttachment!==W.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=W.horizontalAttachment;this.verticalAttachment=W.verticalAttachment;var k;(k=this.JSC$17614_resizers)==null||k.update(this.horizontalAttachment,this.verticalAttachment)};
_.Y.getNearestAttachments=function(){var W=this.getCurrentGlobalPosition();return{horizontalAttachment:W.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:W.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.Y.getCurrentGlobalPosition=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return Vtu(W,this.transform)};
_.Y.isSafeToDrag=function(W){var k=this.playerContainer.getBoundingClientRect();return Math.abs(W.clientY-(k.y+k.height))>15};
_.Y.setMiniplayerSize=function(W){this.currentMiniplayerSize=this.clamp(W);var k;(k=this.JSC$17614_resizers)==null||k.setSize(this.currentMiniplayerSize)};
_.Y.clamp=function(W){return _.Sq(192,W,720)};
_.Y.registerViewTransitionTasks=function(){var W=this,k=_.f().resolve(_.qI(_.rMA));if(k){var C={beforeTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="")}};
np(k,"slide",C);np(k,"zoom",C)}};
_.oq.Object.defineProperties(qm.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.m("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:_.w8("CONTINUE_WATCHING",void 0,"Continue watching")};var W;if((W=this.externalPlaylistData)==null?0:W.contents)return this.externalPlaylistData.titleText;var k;return(k=this.data)==null?void 0:k.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.externalPlaylistData)==null?0:W.contents){var k;return(k=_.XLm(this.externalPlaylistData))==null?void 0:k.title}var C;return(C=this.data)==null?void 0:C.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var W,k,C,n;return((W=this.externalPlaylistData)==null?void 0:W.currentIndex)!==void 0&&((k=this.externalPlaylistData)==null?0:k.totalVideos)&&!((C=this.data)==null?0:(n=C.playlistData)==null?0:n.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.DBX(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.m("kevlar_watch_while_counterfactual")}}});
qm.prototype.onIsDisabledChanged=qm.prototype.onIsDisabledChanged;qm.prototype.readyToResumeVeChanged=qm.prototype.readyToResumeVeChanged;qm.prototype.premiumBrandingChanged=qm.prototype.premiumBrandingChanged;qm.prototype.onPlayerVeChange=qm.prototype.onPlayerVeChange;qm.prototype.hasPlaylistDataChanged=qm.prototype.hasPlaylistDataChanged;_.U([_.v(_.pk.YtPlayerListenerBehavior),_.O("design:type",_.vV)],qm.prototype,"ytPlayerListenerBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],qm.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],qm.prototype,"ytdReduxBehavior",void 0);_.U([_.gi("#draggable"),_.O("design:type",HTMLDivElement)],qm.prototype,"draggableContainer",void 0);
_.U([_.gi("#resize-container"),_.O("design:type",HTMLDivElement)],qm.prototype,"JSC$17614_resizeContainer",void 0);_.U([_.gi("#video-container"),_.O("design:type",HTMLDivElement)],qm.prototype,"videoContainer",void 0);_.U([_.gi("#player-container"),_.O("design:type",HTMLDivElement)],qm.prototype,"playerContainer",void 0);_.U([_.gi("#playlist"),_.O("design:type",HTMLDivElement)],qm.prototype,"JSC$17614_playlistPanel",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"active",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"hasNoData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"enabled",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"expanded",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"readyToResume",void 0);
_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"isDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"externalPlaylistData",void 0);_.U([_.Z(),_.O("design:type",Array)],qm.prototype,"premiumBadges",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"toastData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"watchWhile",void 0);_.U([_.Z(),_.O("design:type",Boolean)],qm.prototype,"premiumBranding",void 0);
_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"playerState",void 0);_.U([_.Z(),_.O("design:type",Boolean)],qm.prototype,"continueWatching",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],qm.prototype,"verticalAttachment",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],qm.prototype,"horizontalAttachment",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"isAnimatingFade",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"isAnimatingSnap",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"isAnimatingExpand",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"isDragging",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"playerHidden",void 0);
_.U([_.Z({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.O("design:type",Object)],qm.prototype,"playlistData",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.O("design:type",Object)],qm.prototype,"hasPlaylistData",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"closed",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],qm.prototype,"expandedClosed",void 0);
_.U([_.Z({selector:_.pK3}),_.O("design:type",Boolean)],qm.prototype,"isSingleOptionSurveyActive",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.DF}),_.O("design:type",Boolean)],qm.prototype,"isWatchPage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("watchWhile"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"showInfoBar",null);_.U([_.G("premiumBadges","showInfoBar"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"showOverlayPremiumBadges",null);
_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"watchResponse",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"miniplayerRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"playabilityStatus",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"playerVe",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"expandVe",void 0);_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"closeVe",void 0);
_.U([_.Z(),_.O("design:type",Object)],qm.prototype,"readyToResumeCloseVe",void 0);_.U([_.Z(),_.O("design:type",_.z7)],qm.prototype,"readyToResumeVe",void 0);_.U([_.Z(),_.O("design:type",_.z7)],qm.prototype,"resizeVe",void 0);_.U([_.Z(),_.O("design:type",_.z7)],qm.prototype,"repositionVe",void 0);_.U([_.Hl("hasPlaylistData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qm.prototype,"hasPlaylistDataChanged",null);
_.U([_.Hl("playerVe"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qm.prototype,"onPlayerVeChange",null);_.U([_.Hl("premiumBranding"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qm.prototype,"premiumBrandingChanged",null);_.U([_.Hl("readyToResumeVe"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qm.prototype,"readyToResumeVeChanged",null);
_.U([_.Hl("isDisabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qm.prototype,"onIsDisabledChanged",null);_.U([_.G("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"miniplayerSubtitle",null);_.U([_.G("data.miniplayerTitle","externalPlaylistData"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"miniplayerTitle",null);
_.U([_.G("externalPlaylistData","continueWatching"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"playlistIndexMessage",null);_.U([_.Z({reflectToAttribute:!0}),_.G("playabilityStatus"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"showErrorScreen",null);_.U([_.Z({reflectToAttribute:!0}),_.G("watchWhile"),_.O("design:type",Object),_.O("design:paramtypes",[])],qm.prototype,"watchWhileHidden",null);
_.m("ytd_miniplayer_to_wiz")||_.q(qm,"ytd-miniplayer",function(){if(hKZ===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(Kc6().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);hKZ=W}W=hKZ;return W},{mode:2});var B$E;var uL=function(){var W=_.R.apply(this,arguments)||this;W.useListItemStyles=_.m("web_list_item_style_for_menu_items");W.systemIcons=_.m("kevlar_system_icons");return W};
_.D(uL,_.R);_.Y=uL.prototype;_.Y.ready=function(){this.hostElement.addEventListener("tap",_.LO(this,this.onEndpointTapExtra))};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var W;(W=_.S(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.Y.onEndpointTapExtra=function(W){_.Pe(this.hostElement,"iron-activate");var k=this.data.navigationEndpoint;k&&_.z(k,_.T92)&&(W.stopPropagation(),_.CB(this.hostElement,[k],this.hostElement))};
_.Y.computeIcon=function(W){return W&&W.iconType?_.Hp(W.iconType):""};
_.Y.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.m("kevlar_legacy_browsers")&&_.Op(this.hostElement)};
uL.prototype.forceUpdateStylesOnLegacyBrowsers=uL.prototype.forceUpdateStylesOnLegacyBrowsers;uL.prototype.onFocus=uL.prototype.onFocus;_.U([_.v(_.vL),_.O("design:type",Object)],uL.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.IeS.YtConditionalRendererBehavior),_.O("design:type",Object)],uL.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],uL.prototype,"ytEndpointBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],uL.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon(data.icon)",value:""}),_.O("design:type",String)],uL.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],uL.prototype,"useIcons",void 0);_.U([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Boolean)],uL.prototype,"hasSeparator",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],uL.prototype,"useListItemStyles",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],uL.prototype,"systemIcons",void 0);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uL.prototype,"onFocus",null);_.U([_.Hl("useIcons","hasSeparator"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uL.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(uL,"ytd-menu-navigation-item-renderer",function(){if(B$E===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);B$E=W}W=B$E;return W},{mode:1});var bKY;var A6T=_.Go(_.w8("DOWNLOAD",{},"Download")),FjT=_.Go(_.w8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),wh7=_.Go(_.w8("RETRY",{},"Retry")),xoi=_.Go(_.w8("PAUSE_DOWNLOADING",{},"Pause downloading")),lkB=_.Go(_.w8("RESUME_DOWNLOAD",{},"Resume download")),U4=function(){var W=_.R.apply(this,arguments)||this;W.primaryText=A6T;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.D(U4,_.R);_.Y=U4.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){this.primaryEntry.focus()};
_.Y.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.Y.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.Y.getRemoveAction=function(){return"ACTION_REMOVE"};
_.Y.sendOfflineAction=function(W){var k=this.data.serviceEndpoint;if(k){var C=_.z(k,_.Kn);C&&W&&(C.action=W);this.ytComponentBehavior.resolveCommand(k)}};
_.Y.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=A6T,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=A6T;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=wh7;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=FjT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=lkB;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=FjT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
xoi;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=FjT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=FjT;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=A6T,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.Y.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.Y.isSecondaryEntryHidden=function(W,k){return W?!0:!k};
_.Y.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
U4.prototype.showHideButton=U4.prototype.showHideButton;U4.prototype.onTransferStateChange=U4.prototype.onTransferStateChange;U4.prototype.onFocus=U4.prototype.onFocus;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],U4.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],U4.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],U4.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],U4.prototype,"primaryText",void 0);_.U([_.Z(),_.O("design:type",String)],U4.prototype,"primaryIconType",void 0);_.U([_.Z(),_.O("design:type",String)],U4.prototype,"primaryAction",void 0);_.U([_.Z(),_.O("design:type",Object)],U4.prototype,"secondaryText",void 0);_.U([_.Z(),_.O("design:type",String)],U4.prototype,"secondaryIconType",void 0);
_.U([_.Z(),_.O("design:type",String)],U4.prototype,"secondaryAction",void 0);_.U([_.Z(),_.O("design:type",Object)],U4.prototype,"hasSecondaryContent",void 0);_.U([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Object)],U4.prototype,"hasSeparator",void 0);_.U([_.Z({selector:_.V4,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",String)],U4.prototype,"transferState",void 0);
_.U([_.Z({selector:_.g7w,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",Object)],U4.prototype,"isVideoDeletedByUser",void 0);_.U([_.Z(),_.O("design:type",Object)],U4.prototype,"isHidden",void 0);_.U([_.Z({selector:_.U$p,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.O("design:type",Object)],U4.prototype,"offlineabilityState",void 0);_.U([_.gi("#primary-entry"),_.O("design:type",Object)],U4.prototype,"primaryEntry",void 0);
_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U4.prototype,"onFocus",null);_.U([_.Cq("transferState","isVideoDeletedByUser"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U4.prototype,"onTransferStateChange",null);_.U([_.Cq("offlineabilityState"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],U4.prototype,"showHideButton",null);
_.q(U4,"ytd-menu-service-item-download-renderer",function(){if(bKY===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);bKY=W}W=bKY;return W},{mode:1});var t$C;var O4=function(){var W=_.R.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.m("kevlar_system_icons");W.useListItemStyles=_.m("web_list_item_style_for_menu_items");return W};
_.D(O4,_.R);_.Y=O4.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var W;(W=_.S(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.Y.onTap=function(){_.hA(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,k=this.data.command;if(W){var C,n=(C=this.data)==null?void 0:C.trackingParams;C=!!_.z(W,_.jvC);n&&C&&_.ZF().dispatch(_.jo({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:n}}));this.ytComponentBehavior.resolveCommand(W)||_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}})}k&&(this.ytComponentBehavior.resolveCommand(k)||_.CB(this.hostElement,
[k],this.hostElement))};
_.Y.computeIcon=function(W){return W&&W.iconType?_.Hp(W.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.m("kevlar_legacy_browsers")&&_.Op(this.hostElement)};
_.Y.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
O4.prototype.forceUpdateStylesOnLegacyBrowsers=O4.prototype.forceUpdateStylesOnLegacyBrowsers;O4.prototype.onTap=O4.prototype.onTap;O4.prototype.onFocus=O4.prototype.onFocus;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],O4.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],O4.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.IeS.YtConditionalRendererBehavior),_.O("design:type",Object)],O4.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],O4.prototype,"data",void 0);_.U([_.Z({computed:"computeIcon(data.icon)",value:""}),_.O("design:type",String)],O4.prototype,"icon",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],O4.prototype,"useIcons",void 0);
_.U([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.O("design:type",Boolean)],O4.prototype,"hasSeparator",void 0);_.U([_.Z({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.O("design:type",Boolean)],O4.prototype,"isSelected",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],O4.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],O4.prototype,"useListItemStyles",void 0);
_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O4.prototype,"onFocus",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],O4.prototype,"onTap",null);_.U([_.Hl("useIcons","hasSeparator"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],O4.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(O4,"ytd-menu-service-item-renderer",function(){if(t$C===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);t$C=W}W=t$C;return W},{mode:2});var EtT;var akZ=function(){return _.R.apply(this,arguments)||this};
_.D(akZ,_.R);_.Y=akZ.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var W=this;_.ZR(this,function(){W.postbox.openDialog();W.focus();_.Pe(W.hostElement,"yt-refit")})};
_.Y.focus=function(){this.postbox.focus()};
_.Y.closePopup=function(){_.KY(this.hostElement,"yt-close-popup-action")};
_.Y.onYtCommentboxDismiss=function(){this.closePopup()};
var LW=akZ;LW.prototype.onYtCommentboxDismiss=LW.prototype.onYtCommentboxDismiss;LW.prototype.onDataChanged=LW.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LW.prototype,"data",void 0);_.U([_.Z({value:function(){return _.w8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],LW.prototype,"closeButtonAriaLabel",void 0);_.U([_.gi("#postbox"),_.O("design:type",Object)],LW.prototype,"postbox",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LW.prototype,"onDataChanged",null);_.U([_.jI("yt-commentbox-dismiss"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LW.prototype,"onYtCommentboxDismiss",null);
LW=_.U([_.T({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],LW);
_.q(LW,"ytd-backstage-post-dialog-popup-renderer",function(){if(EtT!==void 0)return EtT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return EtT=W},{mode:1});var Xhi;var fkS=function(){return _.R.apply(this,arguments)||this};
_.D(fkS,_.R);var jm=fkS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jm.prototype,"data",void 0);jm=_.U([_.T({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],jm);
_.q(jm,"ytd-sender-id-section-renderer",function(){if(Xhi!==void 0)return Xhi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return Xhi=W},{mode:1});var doC;var mo1;var zo7;var DoB=function(){return _.R.apply(this,arguments)||this};
_.D(DoB,_.R);DoB.prototype.closePopup=function(){_.KY(this.hostElement,"yt-close-popup-action")};
var Hk=DoB;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hk.prototype,"data",void 0);Hk=_.U([_.l0({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Hk);
_.q(Hk,"yt-community-post-section-renderer",function(){if(zo7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;mo1===void 0&&(mo1=document.createElement("template"));var n=mo1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);zo7=W}W=zo7;return W},{mode:2});var V$T;var J6Z;var c6Y;var IkB;var Sc7;var M$Y;var Q3A=function(){return _.R.apply(this,arguments)||this};
_.D(Q3A,_.R);var r6=Q3A;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],r6.prototype,"data",void 0);r6=_.U([_.l0({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],r6);
_.q(r6,"yt-share-start-time-with-context-renderer",function(){if(M$Y===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Sc7===void 0&&(Sc7=document.createElement("template"));var n=Sc7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);M$Y=W}W=M$Y;return W},{mode:2});var ph7=function(){return _.R.apply(this,arguments)||this};
_.D(ph7,_.R);ph7.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var g6=ph7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],g6.prototype,"data",void 0);g6=_.U([_.l0({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],g6);
_.q(g6,"yt-share-panel-title-v15-renderer",function(){if(IkB===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;c6Y===void 0&&(c6Y=document.createElement("template"));var n=c6Y;C.call(k,n.content.cloneNode(!0),W.content.firstChild);IkB=W}W=IkB;return W},{mode:2});var vt1=function(){return _.R.apply(this,arguments)||this};
_.D(vt1,_.R);vt1.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
var Pk=vt1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Pk.prototype,"data",void 0);Pk=_.U([_.l0({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Pk);
_.q(Pk,"yt-share-panel-header-renderer",function(){if(J6Z===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;V$T===void 0&&(V$T=document.createElement("template"));var n=V$T;C.call(k,n.content.cloneNode(!0),W.content.firstChild);J6Z=W}W=J6Z;return W},{mode:2});var eoA;var s37;var GYA=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.D(GYA,_.R);_.Y=GYA.prototype;_.Y.attached=function(){this.onOpen()};
_.Y.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.Y.computeTimeString=function(W){W=W.toString();var k=Math.floor(Number(W)/3600),C=Math.floor(Number(W)%3600%60);return(k>0?k+":":"")+_.jt(Math.floor(Number(W)%3600/60),k>0?2:1)+":"+_.jt(C,2)};
_.Y.computeTimeStringA11y=function(W){W=_.KSX({seconds:W});var k=W.hours===void 0?0:W.hours,C=W.minutes===void 0?0:W.minutes,n=W.seconds===void 0?0:W.seconds;W=[];if(k>0){var N=YJC().format({hours:k});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.SW)||k>9999)N=N.replace(k.toString(),_.hjI(k)),_.SW==="km"&&(N=N.replace(".",","));W.push(N)}C>0&&W.push(YJC().format({minutes:C}));n>0&&W.push(YJC().format({seconds:n}));k="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");C=_.SW==
"am"?"{0}\u1363 ":_.SW=="fa"?"{0}\u060c\u200f ":_.SW=="my"?"{0} - ":_.SW=="ne"?"{0},":_.SW=="th"?"{0} ":_.SW=="ur"?"{0}\u060c ":_.SW=="ar"||_.SW=="ar-XB"?"{0} \u0648":_.SW=="ja"||_.SW=="zh-CN"||_.SW=="zh-HK"||_.SW=="zh-TW"?"{0}\u3001":"{0}, ";n=_.SW=="am"?"\u1363 ":_.SW=="fa"?"\u060c\u200f ":_.SW=="my"?" - ":_.SW=="th"?" ":_.SW=="ur"?"\u060c ":_.SW=="ar"||_.SW=="ar-XB"?" \u0648":_.SW=="ja"||_.SW=="zh-CN"||_.SW=="zh-HK"||_.SW=="zh-TW"?"\u3001":", ";N=_.SW=="am"?" \u12a5\u1293 {0}":_.SW=="as"?" \u0986\u09f0\u09c1 {0}":
_.SW=="az"?" v\u0259 {0}":_.SW=="bn"?" \u098f\u09ac\u0982 {0}":_.SW=="cs"?" a\u00a0{0}":_.SW=="de"?" und {0}":_.SW=="el"?" \u03ba\u03b1\u03b9 {0}":_.SW=="eu"?" eta {0}":_.SW=="fa"?"\u060c \u0648 {0}":_.SW=="fil"?", at {0}":_.SW=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.SW=="hi"?", \u0914\u0930 {0}":_.SW=="hu"?" \u00e9s {0}":_.SW=="hy"?" \u0587 {0}":_.SW=="id"?", dan {0}":_.SW=="iw"?" \u05d5-{0}":_.SW=="ja"?"\u3001{0}":_.SW=="ka"?" \u10d3\u10d0 {0}":_.SW=="km"?" \u1793\u17b7\u1784 {0}":_.SW=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.SW=="ko"?" \ubc0f {0}":_.SW=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.SW=="lt"?" ir {0}":_.SW=="lv"?" un {0}":_.SW=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.SW=="mr"?" \u0906\u0923\u093f {0}":_.SW=="ms"?" dan {0}":_.SW=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.SW=="ne"?" \u0930 {0}":_.SW=="or"?", \u0b13 {0}":_.SW=="pa"?" \u0a05\u0a24\u0a47 {0}":_.SW=="ro"?" \u0219i {0}":_.SW=="si"?", \u0dc3\u0dc4 {0}":_.SW=="sk"?" a {0}":_.SW=="sl"?" in {0}":_.SW=="sq"?" dhe {0}":_.SW=="sv"?" och {0}":
_.SW=="sw"?" na {0}":_.SW=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.SW=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.SW=="th"?" \u0e41\u0e25\u0e30{0}":_.SW=="tr"?" ve {0}":_.SW=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.SW=="uz"?" va {0}":_.SW=="vi"?" v\u00e0 {0}":_.SW=="zh-HK"?"\u53ca{0}":_.SW=="zu"?", ne-{0}":_.SW=="af"||_.SW=="nl"?" en {0}":_.SW=="ar"||_.SW=="ar-XB"?" \u0648{0}":_.SW=="be"||_.SW=="uk"?" \u0456 {0}":_.SW=="en-GB"||_.SW=="en-IN"?" and {0}":_.SW=="en"||_.SW=="en-XA"?
", and {0}":_.SW=="et"||_.SW=="fi"?" ja {0}":_.SW=="fr"||_.SW=="fr-CA"?" et {0}":_.SW=="zh-CN"||_.SW=="zh-TW"?"\u548c{0}":_.SW=="da"||_.SW=="is"||_.SW=="no"?" og {0}":_.SW=="es"||_.SW=="es-419"||_.SW=="es-US"?" y {0}":_.SW=="kk"||_.SW=="lo"||_.SW=="mn"?", {0}":_.SW=="bg"||_.SW=="mk"||_.SW=="ru"||_.SW=="sr"?" \u0438 {0}":_.SW=="gl"||_.SW=="it"||_.SW=="pt-BR"||_.SW=="pt-PT"?" e {0}":" i {0}";var B=_.SW=="am"?"{0} \u12a5\u1293 {1}":_.SW=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.SW=="az"?"{0} v\u0259 {1}":
_.SW=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.SW=="de"?"{0} und {1}":_.SW=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.SW=="eu"?"{0} eta {1}":_.SW=="fa"?"{0} \u0648 {1}":_.SW=="fil"?"{0} at {1}":_.SW=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.SW=="hi"?"{0} \u0914\u0930 {1}":_.SW=="hu"?"{0} \u00e9s {1}":_.SW=="hy"?"{0} \u0587 {1}":_.SW=="iw"?"{0} \u05d5-{1}":_.SW=="ja"?"{0}\u3001{1}":_.SW=="ka"?"{0} \u10d3\u10d0 {1}":_.SW=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.SW=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.SW=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.SW=="ko"?"{0} \ubc0f {1}":_.SW=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.SW=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.SW=="lt"?"{0} ir {1}":_.SW=="lv"?"{0} un {1}":_.SW=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.SW=="mn"?"{0}, {1}":_.SW=="mr"?"{0} \u0906\u0923\u093f {1}":_.SW=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.SW=="ne"?"{0} \u0930 {1}":_.SW=="or"?"{0} \u0b13 {1}":_.SW=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.SW=="ro"?"{0} \u0219i {1}":_.SW==
"si"?"{0} \u0dc3\u0dc4 {1}":_.SW=="sl"?"{0} in {1}":_.SW=="sq"?"{0} dhe {1}":_.SW=="sv"?"{0} och {1}":_.SW=="sw"?"{0} na {1}":_.SW=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.SW=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.SW=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.SW=="tr"?"{0} ve {1}":_.SW=="ur"?"{0} \u0627\u0648\u0631 {1}":_.SW=="uz"?"{0} va {1}":_.SW=="vi"?"{0} v\u00e0 {1}":_.SW=="zh-HK"?"{0}\u53ca{1}":_.SW=="zu"?"{0} ne-{1}":_.SW=="af"||_.SW=="nl"?"{0} en {1}":_.SW=="ar"||_.SW==
"ar-XB"?"{0} \u0648{1}":_.SW=="be"||_.SW=="uk"?"{0} \u0456 {1}":_.SW=="cs"||_.SW=="sk"?"{0} a\u00a0{1}":_.SW=="et"||_.SW=="fi"?"{0} ja {1}":_.SW=="fr"||_.SW=="fr-CA"?"{0} et {1}":_.SW=="id"||_.SW=="ms"?"{0} dan {1}":_.SW=="zh-CN"||_.SW=="zh-TW"?"{0}\u548c{1}":_.SW=="da"||_.SW=="is"||_.SW=="no"?"{0} og {1}":_.SW=="es"||_.SW=="es-419"||_.SW=="es-US"?"{0} y {1}":_.SW=="bg"||_.SW=="mk"||_.SW=="ru"||_.SW=="sr"?"{0} \u0438 {1}":_.SW=="en"||_.SW=="en-GB"||_.SW=="en-IN"||_.SW=="en-XA"?"{0} and {1}":_.SW==
"gl"||_.SW=="it"||_.SW=="pt-BR"||_.SW=="pt-PT"?"{0} e {1}":"{0} i {1}";_.SW==="sq"?(N=N.replace("dhe","e"),B=B.replace("dhe","e")):_.SW==="th"?(n=n.replace("{0}"," {0}"),B=B.replace("{0}","{0} "),B=B.replace("{1}"," {1}")):_.SW==="ne"?n=",":_.SW==="zh-CN"?n="":k.includes(_.SW)&&(n=" ");return W.length<2?W.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(_.SW)?W.length===2?
B.replace("{0}",W[0]).replace("{1}",W[1]):C.replace("{0}",W[0])+W.slice(1,-1).join(n)+N.replace("{0}",W[W.length-1]):W.join(n)};
_.Y.getTimeParam=function(){return SMi(this.timeString)};
_.Y.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},k;_.Pn(_.kf(),(k=this.data)==null?void 0:k.trackingParams,W,7)};
_.Y.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),k=0,C=1,n=W.length-1;n>=0;n--)k+=Number(W[n])*C,C*=60;this.updateTimeSecs(k);this.setTimestamp()};
_.Y.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var k=_.Zf();k?k.getPlayerPromise().then(function(C){C=C.getCurrentTime();W.updateTimeSecs(C)}):njA()&&this.updateTimeSecs(njA())};
_.Y.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.KY(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
var KW=GYA;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],KW.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KW.prototype,"data",void 0);_.U([_.Z({value:!1,notify:!0}),_.O("design:type",Boolean)],KW.prototype,"isStartAtChecked",void 0);_.U([_.Z(),_.O("design:type",Number)],KW.prototype,"currentTimeSecs",void 0);
_.U([_.Z({computed:"computeTimeString(currentTimeSecs)"}),_.O("design:type",String)],KW.prototype,"timeString",void 0);_.U([_.Z({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.O("design:type",String)],KW.prototype,"timeStringA11y",void 0);_.U([_.gi("#start-at-timestamp"),_.O("design:type",Object)],KW.prototype,"startAtTimestamp",void 0);KW=_.U([_.l0({is:"yt-start-at-renderer",disableElementRegistration:!0})],KW);
_.q(KW,"yt-start-at-renderer",function(){if(s37===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;eoA===void 0&&(eoA=document.createElement("template"));var n=eoA;C.call(k,n.content.cloneNode(!0),W.content.firstChild);s37=W}W=s37;return W},{mode:2});var y6Y;var $o7;var ZKY=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"]]),Roi=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"]]),ot7=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var iK7={};iK7.YtBindingExpressionsBehavior={identity:_.yP,msg:function(W,k){k=k===void 0?{}:k;return _.w8(W,k,W)},
msgPlural:function(W,k){return _.xQ(W,k)},
getMusicIconFromType:function(W){if(_.m("music_web_enable_icon_wil"))W=_.Hp(W);else if(Roi.has(W))W="yt-sys-icons:"+Roi.get(W);else{var k=ZKY.get(W)||_.Hp(W).split(":")[1];k=_.Mgc(k);var C;W=((C=ot7.get(W))!=null?C:"yt-sys-icons:")+k}return W}};var T$C;var qc7;var uJZ;var Uou=document.head,OK7=Uou.appendChild,Lj7;if(uJZ===void 0){var j3Z=document.createElement("template");_.J(j3Z,'\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>');uJZ=j3Z}Lj7=uJZ;OK7.call(Uou,Lj7.content);var h_=function(){var W=_.R.apply(this,arguments)||this;W.screenLayer=7;return W};
_.D(h_,_.R);h_.prototype.getScreenLayer=function(){return this.screenLayer};
h_.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.S(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.kQ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.oq.Object.defineProperties(h_.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
var WE=h_;WE.prototype.onTap=WE.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],WE.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WE.prototype,"data",void 0);_.U([_.G("data.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],WE.prototype,"title",null);
_.U([_.G("data.serviceName"),_.O("design:type",String),_.O("design:paramtypes",[])],WE.prototype,"icon",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],WE.prototype,"onTap",null);WE=_.U([_.l0({is:"yt-share-target-renderer",disableElementRegistration:!0})],WE);
_.q(WE,"yt-share-target-renderer",function(){if(qc7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;T$C===void 0&&(T$C=document.createElement("template"));var n=T$C;C.call(k,n.content.cloneNode(!0),W.content.firstChild);qc7=W}W=qc7;return W},{mode:2});var HKt;var r6S;var gtT=function(){var W=_.R.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.D(gtT,_.R);_.Y=gtT.prototype;_.Y.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.Y.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.S(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.S(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.Y.onReset_=function(){if(_.S(this.hostElement).querySelector("#list")){var W=_.S(this.hostElement).querySelector("#list");var k=_.S(this.hostElement).querySelector("#list");var C=k.offsetLeft,n=k.offsetParent;n||_.ZLx(k)!="fixed"||(n=_.QZ(k).documentElement);if(n){if(_.nr&&!kc6(58)){var N=_.OLA(n);C+=N.left}else Number(_.OoJ)>=8&&!(Number(_.OoJ)>=9)&&(N=_.OLA(n),C-=N.left);k=_.u7A(n)?n.clientWidth-(C+k.offsetWidth):C}else k=C;CPS(W,k);this.updateScrollButtons_()}};
_.Y.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.Y.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.Y.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var k=k0T(_.S(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;CPS(_.S(this.hostElement).querySelector("#list"),k+W);this.updateScrollButtons_()};
_.Y.smoothScrollByOnePage_=function(W){var k=_.S(this.hostElement).querySelector("#list"),C=(Math.floor(k.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,n=k0T(k),N=C*(W?1:-1),B=this.PAGE_SCROLL_SPEED,A=this.updateScrollButtons_.bind(this),w=0,x;(function a(){w+=B;x=w/C*2;CPS(k,n+N*(x<1?x*x:-x*x+4*x-2));w<C?window.requestAnimationFrame(a):A()})()};
_.Y.updateScrollButtons_=function(){var W=k0T(_.S(this.hostElement).querySelector("#list")),k=_.S(this.hostElement).querySelector("#list").scrollWidth-_.S(this.hostElement).querySelector("#list").clientWidth;_.S(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.S(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=k};
var k5=gtT;k5.prototype.onScrollWheel_=k5.prototype.onScrollWheel_;k5.prototype.onDataChanged_=k5.prototype.onDataChanged_;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],k5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(iK7.YtBindingExpressionsBehavior),_.O("design:type",Object)],k5.prototype,"ytBindingExpressionsBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],k5.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],k5.prototype,"onDataChanged_",null);_.U([_.jI("wheel"),_.O("design:type",Function),_.O("design:paramtypes",[WheelEvent]),_.O("design:returntype")],k5.prototype,"onScrollWheel_",null);
k5=_.U([_.l0({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],k5);
_.q(k5,"yt-third-party-share-target-section-renderer",function(){if(r6S===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;HKt===void 0&&(HKt=document.createElement("template"));var n=HKt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);r6S=W}W=r6S;return W},{mode:2});var PZ6=function(){return _.R.apply(this,arguments)||this};
_.D(PZ6,_.R);PZ6.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
var CZ=PZ6;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CZ.prototype,"data",void 0);CZ=_.U([_.l0({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],CZ);
_.q(CZ,"yt-third-party-network-section-renderer",function(){if($o7===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;y6Y===void 0&&(y6Y=document.createElement("template"));var n=y6Y;C.call(k,n.content.cloneNode(!0),W.content.firstChild);$o7=W}W=$o7;return W},{mode:2});_.Gj(_.GM(function(W){return _.t("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.t("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.t(_.Ex,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.Bd})))},"Of"),"first-party-network-section-view-model",{props:{data:_.Ik}});var Kju=_.iH(["data:image/svg+xml;charset=UTF-8;base64,",""]),hoC=function(){var W=_.R.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.m("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.D(hoC,_.R);_.Y=hoC.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.JSC$17666_scroller&&(this.JSC$17666_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17666_scroller.attached&&typeof this.JSC$17666_scroller.attached==="function"&&this.JSC$17666_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.Y.onDataChanged=function(){var W=this,k;(k=this.data)!=null&&k.contents&&(this.hostElement.setAttribute("links-only","true"),_.uK(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.Y.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.Y.handleSetTimestamp=function(W){var k=this.shortUrl();W.isSet&&(k=_.xo(k,"t",W.timestamp));this.maybeRenderQrCode(k)};
_.Y.shortUrl=function(){var W,k=(W=this.data)==null?void 0:W.contents;if(k)for(W=0;W<k.length;W++){var C=void 0,n=void 0;if((C=k[W])==null?0:(n=C.thirdPartyNetworkSection)==null?0:n.copyLinkContainer){var N=n=C=void 0;return(N=_.z((C=k[W])==null?void 0:(n=C.thirdPartyNetworkSection)==null?void 0:n.copyLinkContainer,tRC))==null?void 0:N.shortUrl}}};
_.Y.maybeRenderQrCode=function(W){var k=this,C,n,N,B,A,w,x,E,a;return _.F(function(X){if(X.nextAddress==1){C=_.S(k.hostElement).querySelector("#qr-code");if(!k.qrCodeEnabled||!W)return C&&(C.style.display="none"),X.return();n=_.U1X(_.f().resolve(_.rH),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});N=document.createElement("div");return typeof n==="function"?(n(N),X.jumpTo(2)):_.l(X,n,3)}X.nextAddress!=2&&(B=X.yieldResult,B(N));x=(A=N)==null?void 0:(w=A.firstChild)==null?void 0:w.firstChild;
E=document.createElement("img");a=_.eN(Kju,btoa(x.outerHTML));E.onload=function(){var d={canvas:C,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:E},V=new SR7;sZE(V,W);GrA(V,!1,yf7(V));var c=V.modules,M=Object.assign({},jk6,d);c=structuredClone(c);d=c.length;var p,e=(p=M.canvas)!=null?p:document.createElement("canvas");p=M.cellSize;V=M.logo;var u,h=(u=M.logoSize)!=null?u:Math.floor(d/4);d%2!==h%2&&h++;var L=M.logoPadding,Bw=M.backgroundColor;u=d*p;var P=
M.width,xz=0;P&&(xz=M.padding,xz=Math.ceil(xz*u/(P-xz*2)),e.style.width=P+"px",e.style.height=P+"px");e.width!==u+xz*2&&(e.width=u+xz*2);e.height!==u+xz*2&&(e.height=u+xz*2);u=e.getContext("2d");M.autoClear&&u.clearRect(0,0,e.width,e.height);u.fillStyle=Bw;u.beginPath();u.roundRect(0,0,e.width,e.height,M.borderRadius);u.fill();u.save();u.translate(xz,xz);if(V)for(e=Math.floor(d-h)/2-L,L=Math.floor(d+h)/2+L,Bw=e;Bw<L;Bw++)for(P=e;P<L;P++)c[Bw][P]=!1;for(e=0;e<d;e++)for(L=0;L<d;L++)(e<7&&L<7||e<7&&
L>=d-7||e>=d-7&&L<7)&&(c[e][L]=!1);var Sp;e=(Sp=M.markerColor)!=null?Sp:M.color;Z6T(u,0,0,p,e);Z6T(u,p*(d-7),0,p,e);Z6T(u,0,p*(d-7),p,e);switch(M.cellStyle){case 0:Sp=c;c=Sp.length;e=M.cellSize;u.beginPath();for(L=0;L<c;L++)for(Bw=0;Bw<c;Bw++)Sp[L][Bw]&&u.rect(L*e,Bw*e,e,e);u.fillStyle=M.color;u.fill();break;case 1:Sp=c;c=Sp.length;e=M.cellSize;L=e*M.relativeCircleSize;u.fillStyle=M.color;u.beginPath();for(M=0;M<c;M++)for(Bw=0;Bw<c;Bw++)Sp[M][Bw]&&(u.beginPath(),u.ellipse((M+.5)*e,(Bw+.5)*e,L/2,L/
2,0,0,2*Math.PI),u.fill());u.fill();break;case 2:Sp=c;c=Sp.length;e=M.cellSize;u.fillStyle=M.color;M=[[1,1],[-1,1],[-1,-1],[1,-1]];u.beginPath();for(L=0;L<c;L++)for(Bw=0;Bw<c;Bw++)if(Sp[L][Bw])u.roundRect(L*e,Bw*e,e,e,e/2),L+1<c&&Sp[L+1][Bw]&&u.rect(L*e+e/2,Bw*e,e,e),Bw+1<c&&Sp[L][Bw+1]&&u.rect(L*e,Bw*e+e/2,e,e);else{P=L*e+e/2;xz=Bw*e+e/2;for(var vw=0;vw<4;vw++){var lw=_.b(M[vw]),G4=lw.next().value;lw=lw.next().value;L+G4>=0&&L+G4<c&&Bw+lw>=0&&Bw+lw<c&&Sp[L+G4][Bw]&&Sp[L][Bw+lw]&&Sp[L+G4][Bw+lw]&&
(G4=vw*Math.PI/2,lw=e/2,u.moveTo(P+lw*Math.cos(G4),xz+lw*Math.sin(G4)),u.arc(P,xz,e/2,G4,G4+Math.PI/2,!1),u.lineTo(P+lw*(Math.cos(G4)-Math.sin(G4)),xz+lw*(Math.cos(G4)+Math.sin(G4))),u.lineTo(P+lw*Math.cos(G4),xz+lw*Math.sin(G4)))}}u.fill()}V&&u.drawImage(V,(d-h)*p/2,(d-h)*p/2,h*p,h*p);u.restore();C.style.removeProperty("display")};
E.src=_.VG(a);_.ab(X)})};
_.Y.hasCommunityPostRenderer=function(){var W,k,C,n;return!!((W=this.data)==null?0:(k=W.header)==null?0:(C=k.sharePanelHeaderRenderer)==null?0:(n=C.communityPost)==null?0:n.communityPostSectionRenderer)};
_.Y.onTapClose=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.Y.getScreenLayer=function(){return this.screenLayer};
_.Y.logSharePanelPage=function(){if(!_.m("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var k=this.parentClickTrackingParams;k=k?_.Yf(k):void 0;var C=_.kf();_.jC(C,21760,k,{layer:7,parentLayer:0});C.graftServerVe(W,void 0,7);_.ZF().dispatch(_.jo({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var nZ=hoC;nZ.prototype.onDataChanged=nZ.prototype.onDataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],nZ.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],nZ.prototype,"data",void 0);_.U([_.Z({value:_.w8("SBOX_INAPPROPRIATE_CANCEL")}),_.O("design:type",String)],nZ.prototype,"closeButtonAriaLabel",void 0);_.U([_.gi("yt-share-panel-header-renderer"),_.O("design:type",HTMLElement)],nZ.prototype,"header",void 0);_.U([_.Z({selector:function(W){return W.share.parentClickTrackingParams}}),
_.O("design:type",String)],nZ.prototype,"parentClickTrackingParams",void 0);_.U([_.Z(),_.O("design:type",Object)],nZ.prototype,"qrCodeEnabled",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],nZ.prototype,"JSC$17666_scroller",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],nZ.prototype,"onDataChanged",null);nZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],nZ);
_.q(nZ,"ytd-unified-share-panel-renderer",function(){if(doC!==void 0)return doC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return doC=W},{mode:1});var WN7;var NA=function(){var W=_.R.apply(this,arguments)||this;W.modernModal=_.m("kevlar_sign_in_modal_modernization");return W};
_.D(NA,_.R);NA.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
NA.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.oq.Object.defineProperties(NA.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,k;if(this.modernModal&&((W=this.data)==null?0:(k=W.button)==null?0:k.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var C,n;return(C=this.data)==null?void 0:(n=C.button)==null?void 0:n.buttonRenderer}}});
var Y5=NA;_.U([_.Z(),_.O("design:type",Object)],Y5.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],Y5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Y5.prototype,"modernModal",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Y5.prototype,"buttonRendererData",null);
Y5=_.U([_.T({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Y5);
_.q(Y5,"ytd-modal-with-title-and-button-renderer",function(){if(WN7!==void 0)return WN7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return WN7=W},{mode:1});var OJB;var Lxu=function(){return _.R.apply(this,arguments)||this};
_.D(Lxu,_.R);Lxu.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("page-changed",this.page))};
var BE=Lxu;BE.prototype.pageChangedForBinding=BE.prototype.pageChangedForBinding;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],BE.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],BE.prototype,"page",void 0);_.U([_.Hl("page"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],BE.prototype,"pageChangedForBinding",null);
BE=_.U([_.T({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],BE);
_.q(BE,"ytd-account-item-section-header-renderer",function(){if(OJB!==void 0)return OJB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return OJB=W},{mode:1});var jBt;var HJY=function(){return _.R.apply(this,arguments)||this};
_.D(HJY,_.R);HJY.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"}}}};
HJY.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var bq=HJY;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],bq.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bq.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Function)],bq.prototype,"onAccountItemTap",void 0);
bq=_.U([_.T({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],bq);
_.q(bq,"ytd-account-item-section-renderer",function(){if(jBt!==void 0)return jBt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jBt=W},{mode:1});var rIA;var gJA;var PGE=function(){return _.R.apply(this,arguments)||this};
_.D(PGE,_.R);var Aq=PGE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Aq.prototype,"data",void 0);Aq=_.U([_.T({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Aq);
_.q(Aq,"ytd-accounts-dialog-header-renderer",function(){if(gJA!==void 0)return gJA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gJA=W},{mode:1});var Kx7;var hQE=function(){return _.R.apply(this,arguments)||this};
_.D(hQE,_.R);hQE.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var FQ=hQE;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FQ.prototype,"data",void 0);FQ=_.U([_.T({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],FQ);
_.q(FQ,"ytd-google-account-header-renderer",function(){if(Kx7!==void 0)return Kx7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Kx7=W},{mode:1});var WzC=function(){return _.R.apply(this,arguments)||this};
_.D(WzC,_.R);WzC.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"}}}};
WzC.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("page-changed",this.page))};
var w5=WzC;w5.prototype.pageChangedForBinding=w5.prototype.pageChangedForBinding;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],w5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],w5.prototype,"page",void 0);
_.U([_.Hl("page"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],w5.prototype,"pageChangedForBinding",null);w5=_.U([_.T({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],w5);
_.u0()(w5,"ytd-account-section-list-renderer",function(){if(rIA===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);rIA=W}W=rIA;return W},{allowedProps:["data"],
mode:1});var kL1;var CvE=function(){var W=_.R.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.m("enable_handles_account_menu_switcher");return W};
_.D(CvE,_.R);CvE.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var x5=CvE;x5.prototype.dataChanged=x5.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],x5.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],x5.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.U([_.gi("#avatar"),_.O("design:type",Object)],x5.prototype,"avatar",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],x5.prototype,"dataChanged",null);x5=_.U([_.T({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],x5);
_.u0()(x5,"ytd-active-account-header-renderer",function(){if(kL1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);kL1=W}W=kL1;return W},{allowedProps:["data"],
mode:1});var nm6;var NeB;var Yft=function(){return _.R.apply(this,arguments)||this};
_.D(Yft,_.R);Yft.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Yft.prototype.onBackTap=function(){_.Pe(this.hostElement,"yt-menu-back-tapped")};
var lq=Yft;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lq.prototype,"data",void 0);lq=_.U([_.T({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],lq);
_.u0()(lq,"ytd-simple-menu-header-renderer",function(){if(NeB===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);NeB=W}W=NeB;return W},{allowedProps:["data"],
mode:2});var Bei;var bdT=function(){return _.R.apply(this,arguments)||this};
_.D(bdT,_.R);var tq=bdT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],tq.prototype,"data",void 0);tq=_.U([_.T({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],tq);
_.q(tq,"ytd-comment-video-thumbnail-header-renderer",function(){if(Bei!==void 0)return Bei;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Bei=W},{mode:1});var AL1;var FzZ=function(){return _.R.apply(this,arguments)||this};
_.D(FzZ,_.R);var EE=FzZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],EE.prototype,"data",void 0);EE=_.U([_.T({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],EE);
_.q(EE,"ytd-abuse-type-selector-renderer",function(){if(AL1!==void 0)return AL1;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return AL1=W},{mode:1});var wst;var as=function(){return _.R.apply(this,arguments)||this};
_.D(as,_.R);as.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
as.prototype.handleAdditionalContextChanged=function(){var W=this;_.Dy(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.jo({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
as.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
var XQ=as;XQ.prototype.handleAdditionalContextChanged=XQ.prototype.handleAdditionalContextChanged;_.U([_.v(_.fk),_.O("design:type",Object)],XQ.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",String)],XQ.prototype,"additionalContext",void 0);_.U([_.Z({selector:function(W){return W.reportChannelAbuse.additionalContext}}),
_.O("design:type",String)],XQ.prototype,"additionalContextRedux",void 0);_.U([_.Z(),_.O("design:type",Object)],XQ.prototype,"data",void 0);_.U([_.gi("yt-text-input-form-field-renderer"),_.O("design:type",Object)],XQ.prototype,"additionalContextInput",void 0);_.U([_.Hl("additionalContext"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],XQ.prototype,"handleAdditionalContextChanged",null);
XQ=_.U([_.T({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],XQ);
_.q(XQ,"ytd-report-channel-modal-additional-context-renderer",function(){if(wst!==void 0)return wst;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wst=W},{mode:1});var x17;var l4T=function(){var W=_.R.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.D(l4T,_.R);_.Y=l4T.prototype;_.Y.computeNextButtonData=function(W,k,C){var n={};k&&(n.navigationEndpoint=k);C&&(n.serviceEndpoint=C);W&&W.buttonRenderer&&_.JU.extend(n,W.buttonRenderer);return n};
_.Y.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.Y.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.Y.handleSignalActionSubmitForm=function(){var W,k=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),C;W=((C=this.reportChannelAbuseForm)==null?void 0:C.additionalContext)||"";var n;C=((n=this.reportChannelAbuseForm)==null?void 0:n.impersonatedChannelUrl)||"";var N;if((N=this.data)==null?0:N.submitEndpoint){k={impersonated_channel_url:C,text:W,video_ids:k};var B;_.f().resolve(_.uI).resolveCommand((B=this.data)==null?void 0:B.submitEndpoint,{form:Object.assign({},
k,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.Y.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.Y.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.fm(this.hostElement,W.detail.error.message)};
_.Y.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.Y.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var fZ=l4T;fZ.prototype.onYtServiceRequestError=fZ.prototype.onYtServiceRequestError;fZ.prototype.onYtServiceRequestCompleted=fZ.prototype.onYtServiceRequestCompleted;_.U([_.Z(),_.O("design:type",Object)],fZ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],fZ.prototype,"nextButtonDisabled",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],fZ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],fZ.prototype,"submitEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],fZ.prototype,"navigationEndpoint",void 0);_.U([_.Z({selector:function(W){return W.reportChannelAbuse}}),
_.O("design:type",Object)],fZ.prototype,"reportChannelAbuseForm",void 0);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fZ.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],fZ.prototype,"onYtServiceRequestError",null);
fZ=_.U([_.T({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],fZ);
_.q(fZ,"ytd-report-channel-modal-footer-renderer",function(){if(x17!==void 0)return x17;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return x17=W},{mode:1});var tG7;var d5=function(){var W=_.R.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.D(d5,_.R);d5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
d5.prototype.handleDataChanged=function(){_.ek(this.hostElement)};
d5.prototype.closePopup=function(){_.KY(this.hostElement,"yt-close-popup-action")};
var mn=d5;mn.prototype.handleDataChanged=mn.prototype.handleDataChanged;_.U([_.Z(),_.O("design:type",Object)],mn.prototype,"boundOnTapDismissButton",void 0);_.U([_.Z(),_.O("design:type",Object)],mn.prototype,"data",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mn.prototype,"handleDataChanged",null);mn=_.U([_.T({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],mn);
_.q(mn,"ytd-report-channel-modal-header-renderer",function(){if(tG7!==void 0)return tG7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tG7=W},{mode:1});var EmE;var a4T=function(){var W=_.R.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.D(a4T,_.R);_.Y=a4T.prototype;_.Y.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.Y.disableNextButton=function(W){_.KY(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.Y.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.Dy(this,"ytd-report-channel-impersonated-channel-update",function(){var k=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.jo({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:k}));var C;((C=W.data)==null?0:C.submitEndpoint)&&k&&(_.m("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.kQ(W.hostElement,[W.data.submitEndpoint,{impersonated_channel_url:k}]):
_.f().resolve(_.uI).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:k,element:W.hostElement}}))},500)};
_.Y.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.Y.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.Y.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
var za=a4T;za.prototype.handleImpersonatedChannelUrlChanged=za.prototype.handleImpersonatedChannelUrlChanged;_.U([_.v(_.fk),_.O("design:type",Object)],za.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],za.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],za.prototype,"autoValidate",void 0);_.U([_.Z(),_.O("design:type",Object)],za.prototype,"invalid",void 0);
_.U([_.Z(),_.O("design:type",String)],za.prototype,"impersonatedChannelUrl",void 0);_.U([_.Z({selector:function(W){return W.reportChannelAbuse.impersonatedChannelUrl}}),
_.O("design:type",String)],za.prototype,"impersonatedChannelUrlRedux",void 0);_.U([_.Z(),_.O("design:type",Object)],za.prototype,"data",void 0);_.U([_.gi("#text-input"),_.O("design:type",Object)],za.prototype,"channelUrlInput",void 0);_.U([_.Hl("impersonatedChannelUrl"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],za.prototype,"handleImpersonatedChannelUrlChanged",null);
za=_.U([_.T({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],za);
_.q(za,"ytd-report-channel-modal-impersonation-renderer",function(){if(EmE!==void 0)return EmE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return EmE=W},{mode:1});var Xsu;var f4B;var DO=function(){return _.R.apply(this,arguments)||this};
_.D(DO,_.R);DO.prototype.onCheckboxToggled=function(W){var k,C,n=(C=_.z((k=this.data)==null?void 0:k.video,_.PuI))==null?void 0:C.videoId;n&&this.ytdReduxBehavior.dispatch(W.target.checked?_.jo({type:"VIDEO_SELECTED",payload:n}):_.jo({type:"VIDEO_UNSELECTED",payload:n}))};
DO.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.oq.Object.defineProperties(DO.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,k=(W=this.data)==null?void 0:W.video;if(!k)return{};var C;W=(C=_.z(k,_.PuI))==null?void 0:C.navigationEndpoint;if(!W)return k;_.z(W==null?void 0:W.commandMetadata,_.Ok)&&(_.z(W.commandMetadata,_.Ok).ignoreNavigation=!0);return k}}});
var VB=DO;_.U([_.Z({reflectToAttribute:!0,selector:function(W,k){return k in W.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.O("design:type",Boolean)],VB.prototype,"checked",void 0);_.U([_.Z(),_.O("design:type",Object)],VB.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],VB.prototype,"video",null);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);VB=_.U([_.T({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],VB);
_.q(VB,"ytd-selectable-video-renderer",function(){if(f4B!==void 0)return f4B;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return f4B=W},{mode:1});var d1B=function(){var W=_.R.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.D(d1B,_.R);d1B.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var Jq=d1B;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Jq.prototype,"data",void 0);Jq=_.U([_.T({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Jq);
_.q(Jq,"ytd-selectable-video-list-renderer",function(){if(Xsu!==void 0)return Xsu;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Xsu=W},{mode:1});var m17;_.EJ("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var cE=function(){return _.R.apply(this,arguments)||this};
_.D(cE,_.R);cE.prototype.onChange=function(W){if(W=_.eI(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.m("kevlar_command_handler_migration_killswitch"))_.CB(this.hostElement,W,this.hostElement);else{W=_.b(W);for(var k=W.next();!k.done;k=W.next())this.ytComponentBehavior.resolveCommand(k.value)}};
cE.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
cE.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
var Is=cE;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Is.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Is.prototype,"data",void 0);_.U([_.Z({computed:"isEnabled(data)"}),_.O("design:type",Boolean)],Is.prototype,"enabled",void 0);Is=_.U([_.T({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Is);
_.q(Is,"ytd-toggle-item-renderer",function(){if(m17!==void 0)return m17;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return m17=W},{mode:1});var zFt;var D17;var VG6;var SU=function(){var W=_.R.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.D(SU,_.R);SU.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}}}}}};
SU.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
SU.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.m("enable_ytc_refunds_submit_form_signal_action")&&_.kQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
SU.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.kQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.oq.Object.defineProperties(SU.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
var MA=SU;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],MA.prototype,"setVisible",void 0);_.U([_.Z(),_.O("design:type",Object)],MA.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],MA.prototype,"surveyFeedbackData",void 0);_.U([_.Z(),_.O("design:type",Object)],MA.prototype,"boundOnSubmitButtonClick",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data","setVisible"),_.O("design:type",Object),_.O("design:paramtypes",[])],MA.prototype,"visibilityHidden",null);MA=_.U([_.l0({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],MA);
_.q(MA,"yt-flow-footer-renderer",function(){if(VG6===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;D17===void 0&&(D17=document.createElement("template"));var n=D17;C.call(k,n.content.cloneNode(!0),W.content.firstChild);VG6=W}W=VG6;return W},{mode:2});var JLS=function(){return _.R.apply(this,arguments)||this};
_.D(JLS,_.R);var QB=JLS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],QB.prototype,"data",void 0);_.U([_.Z({selector:function(W){return W.ypc.surveyFeedbackData}}),
_.O("design:type",Object)],QB.prototype,"surveyFeedbackData",void 0);QB=_.U([_.T({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],QB);
_.q(QB,"ytd-flow-footer-renderer",function(){if(zFt!==void 0)return zFt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zFt=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var cLu;var I4i;var SfT=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.D(SfT,_.R);_.Y=SfT.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ah("multiPageMenuSectionItems")}}};
_.Y.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var k=0;k<this.data.items.length;k++){var C=this.data.items[k].notificationRenderer;if(C&&C.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",k,1);_.KY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.Y.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.uK(this.hostElement,"hidden",!0)};
_.Y.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var k=0;k<W.length;k++)if(W[k].invalidationContinuationData){var C=void 0;var n=(C=W[k].invalidationContinuationData)==null?void 0:C.continuation;break}W=_.JU.clone(this.data.continuationUpdateEndpoint||null);W.continuation=n;W.click_tracking_params=this.data.trackingParams;_.kQ(this.hostElement,[W])}};
_.Y.onServiceRequestCompleted_=function(W,k){if(this.data&&(W=k.actions)){k=0;for(var C=W.length;k<C;k++){var n=_.z(W[k],_.bFY);if(!n)break;if((n.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||n.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&n.continuationItems&&this.data.items){var N=this.data.items.length-1;this.data.items[N].continuationItemRenderer&&this.splice.apply(this,["data.items",N,1].concat(n.continuationItems))}}}};
var pZ=SfT;pZ.prototype.onServiceRequestCompleted_=pZ.prototype.onServiceRequestCompleted_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],pZ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],pZ.prototype,"data",void 0);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],pZ.prototype,"onServiceRequestCompleted_",null);pZ=_.U([_.l0({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],pZ);
_.u0()(pZ,"yt-multi-page-menu-section-renderer",function(){if(I4i===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;cLu===void 0&&(cLu=document.createElement("template"));var n=cLu;C.call(k,n.content.cloneNode(!0),W.content.firstChild);I4i=W}W=I4i;return W},{allowedProps:["data"],
mode:2});var MGi;var Qm$;var psZ=function(){return _.R.apply(this,arguments)||this};
_.D(psZ,_.R);psZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.oq.Object.defineProperties(psZ.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
var vE=psZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],vE.prototype,"data",void 0);_.U([_.G("data.progress"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],vE.prototype,"showProgressBar",null);
_.U([_.G("data.progress"),_.O("design:type",Number),_.O("design:paramtypes",[])],vE.prototype,"progress",null);vE=_.U([_.l0({is:"yt-flow-header-renderer",disableElementRegistration:!0})],vE);
_.q(vE,"yt-flow-header-renderer",function(){if(Qm$===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;MGi===void 0&&(MGi=document.createElement("template"));var n=MGi;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Qm$=W}W=Qm$;return W},{mode:2});var vmt;var eF7;var smE=function(){return _.R.apply(this,arguments)||this};
_.D(smE,_.R);smE.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var eU=smE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],eU.prototype,"data",void 0);eU=_.U([_.l0({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],eU);
_.q(eU,"yt-post-confirmation-flow-step-renderer",function(){if(eF7===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;vmt===void 0&&(vmt=document.createElement("template"));var n=vmt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);eF7=W}W=eF7;return W},{mode:2});var GL7;var yLA;var $11=function(){return _.R.apply(this,arguments)||this};
_.D($11,_.R);
$11.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var sE=$11;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],sE.prototype,"data",void 0);sE=_.U([_.l0({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],sE);
_.q(sE,"yt-refund-confirmation-flow-step-renderer",function(){if(yLA===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;GL7===void 0&&(GL7=document.createElement("template"));var n=GL7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);yLA=W}W=yLA;return W},{mode:2});_.UK(MtA);_.UK(QUY);var p9E=_.w7({avatarViewModel:_.m4});_.UK(v4E);var emi=_.w7({commentInteractionViewModel:QUY,sharedSubscriptionViewModel:v4E,buttonViewModel:_.zn});_.UK(sUi);_.UK(Gv7);_.UK(ypC);_.UK($bY);_.UK(Zri);var RmT=_.w7({profileIdentityInfoViewModel:_.Eet,profileInfoViewModel:Zri});_.UK(o4i);_.qN(o4i,"yt-profile-card-view-model",{propNames:["data"]});var ZdZ=function(){var W=_.R.apply(this,arguments)||this;W.enableFocusFix=_.m("music_web_enable_focus_on_setting_menu_fix")&&_.cv("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.m("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.D(ZdZ,_.R);_.Y=ZdZ.prototype;
_.Y.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"}}}};
_.Y.ready=function(){var W=this;this.JSC$17776_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.Y.attributeChanged=function(W,k){W==="menu-style"&&_.KY(this.hostElement,"yt-multi-page-menu-closed-action",[k])};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.LO(this,this.focusOnStampFinished))};
_.Y.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.LO(this,this.focusOnStampFinished))};
_.Y.reset=function(){this.closeJobId&&(_.aM.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.Y.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.LO(this,this.focusOnStampFinished)),this.doFocus())};
_.Y.doFocus=function(){var W=_.znA(this.sectionsElement);W.length&&W[0].focus()};
_.Y.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeIsCommentNotificationOnProfileCard=function(W){return _.m("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.Y.computeHideMenu=function(W,k){return W||!(!k||!k.showLoadingSpinner)};
_.Y.onPopupClosed=function(){this.isPopUpOpen=!1;_.KY(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.Y.onPopupOpened=function(W,k){this.isPopUpOpen=!0;k.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Pe(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.jo({type:"CHANNEL_REPORT_RESET"})))};
_.Y.onYtNavigate=function(W,k){this.shouldCloseOnNavigateEvent(k.endpoint)&&_.KY(this.hostElement,"yt-close-all-popups-action")};
_.Y.handleEndpoint=function(W){W=_.z(W,_.dc);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17776_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.Y.handleActions=function(W){for(var k=0,C=W.length;k<C;k++){var n=_.z(W[k],Xr1);n&&this.handleGetMultiPageMenuAction(n);(n=_.z(W[k],_.bFY))&&this.handleAppendContinuationItemsAction(n)}};
_.Y.onServiceRequestSentOrCompleted=function(W,k){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);k.actions&&this.handleActions(k.actions)};
_.Y.handleGetMultiPageMenuAction=function(W){var k=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.S(this.submenuElement).appendChild(k);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);k.data=W;k.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.Y.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var k=this.data.sections.length-1;this.data.sections[k].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),k--);if(this.data.sections[k].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.b(W==null?void 0:W.continuationItems);for(var C=W.next();!C.done;C=W.next())if(C=C.value,_.z(C,L2$)){var n=
void 0,N=void 0,B=void 0,A=void 0,w=void 0;((n=this)==null?0:(N=n.data)==null?0:(B=N.sections)==null?0:(A=B[k])==null?0:(w=A.multiPageMenuNotificationSectionRenderer)==null?0:w.items)&&this.push("data.sections."+k+".multiPageMenuNotificationSectionRenderer.items",C)}else if(_.z(C,_.UR8)||_.z(C,_.K6))this.push("data.sections",C),k++}}};
_.Y.logSubmenu=function(W){if(!_.m("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var k=this.ytRendererBehavior.getScreenLayer(),C=_.VM(k),n=_.DH(k);if((W=W.trackingParams)&&C&&n){var N=_.Yf(W);_.m("combine_ve_grafts")?_.kf().graftServerVe(W,n,k):_.sr(C,n,N)}}};
_.Y.emptySubmenuContainer=function(){for(var W=_.S(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.Y.onMenuBackTap=function(W){_.Pe(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.Y.onSubmenuClosed=function(W){_.eI(W)!==this.hostElement&&(this.covered=!1,_.Pe(this.hostElement,"yt-refit"),W.stopPropagation())};
_.Y.onRetrieveLocation=function(W,k){k.hasComments&&(k.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.Y.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.z(W,_.iTb)||_.z(W,_.TSA)||_.z(W,_.oqZ)||_.z(W,_.pM))return!1;var k;return((k=_.z(W==null?void 0:W.commandMetadata,_.Ok))==null?0:k.ignoreNavigation)?!1:!0};
_.Y.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.Y.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.Y.refitAfterRender=function(){var W=this;_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit")})};
var Ga=ZdZ;Ga.prototype.refitAfterRender=Ga.prototype.refitAfterRender;Ga.prototype.onRetrieveLocation=Ga.prototype.onRetrieveLocation;Ga.prototype.onSubmenuClosed=Ga.prototype.onSubmenuClosed;Ga.prototype.onMenuBackTap=Ga.prototype.onMenuBackTap;Ga.prototype.onServiceRequestSentOrCompleted=Ga.prototype.onServiceRequestSentOrCompleted;Ga.prototype.onYtNavigate=Ga.prototype.onYtNavigate;Ga.prototype.onPopupOpened=Ga.prototype.onPopupOpened;Ga.prototype.onPopupClosed=Ga.prototype.onPopupClosed;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],Ga.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Ga.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ga.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ga.prototype,"enableFocusFix",void 0);_.U([_.Z(),_.O("design:type",Object)],Ga.prototype,"covered",void 0);_.U([_.Z({computed:"computeHideMenu(covered, data)"}),_.O("design:type",Object)],Ga.prototype,"hideMenu",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.O("design:type",String)],Ga.prototype,"menuStyle",void 0);
_.U([_.Z({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.O("design:type",Object)],Ga.prototype,"isCommentNotificationOnProfileCard",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Ga.prototype,"isPopUpOpen",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ga.prototype,"scrolledByTouch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ga.prototype,"disableBackdropFilter",void 0);
_.U([_.gi("#sections"),_.O("design:type",HTMLElement)],Ga.prototype,"sectionsElement",void 0);_.U([_.gi("#spinner"),_.O("design:type",HTMLElement)],Ga.prototype,"spinnerElement",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],Ga.prototype,"headerElement",void 0);_.U([_.gi("#container"),_.O("design:type",HTMLElement)],Ga.prototype,"JSC$17776_containerElement",void 0);_.U([_.gi("#submenu"),_.O("design:type",HTMLElement)],Ga.prototype,"submenuElement",void 0);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ga.prototype,"onPopupClosed",null);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Ga.prototype,"onPopupOpened",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Ga.prototype,"onYtNavigate",null);
_.U([_.jI("yt-service-request-completed"),_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Ga.prototype,"onServiceRequestSentOrCompleted",null);_.U([_.jI("yt-menu-back-tapped"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ga.prototype,"onMenuBackTap",null);
_.U([_.jI("yt-submenu-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ga.prototype,"onSubmenuClosed",null);_.U([_.jI("yt-retrieve-location"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Ga.prototype,"onRetrieveLocation",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ga.prototype,"refitAfterRender",null);
Ga=_.U([_.T({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Ga);
_.q(Ga,"ytd-multi-page-menu-renderer",function(){if(nm6!==void 0)return nm6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nm6=W},{mode:1});var RF$;var om$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.D(om$,_.R);_.Y=om$.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.Y.onTap=function(){var W=_.hA(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var k;if((k=this.data)==null?0:k.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var C;((C=this.data)==null?0:C.menuRequest)&&_.kQ(this.hostElement,[this.data.menuRequest])}}};
_.Y.handleTopbarMenuClosedAction=function(W){var k,C;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(W)===((k=this.data)==null?void 0:(C=k.icon)==null?void 0:C.iconType)&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(W){_.m("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.Y.handleUpdateTopbarAvatarAction=function(W){var k;W=(k=_.z(W,F2Y))==null?void 0:k.avatarUrl;var C,n;k=(C=this.data)==null?void 0:(n=C.avatar)==null?void 0:n.thumbnails;W&&k&&(C={thumbnails:[Object.assign({},k[0],{url:W})]},this.set("data.avatar",C))};
_.oq.Object.defineProperties(om$.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.S(this.hostElement).querySelector("#button")}}});
var yB=om$;yB.prototype.onTap=yB.prototype.onTap;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],yB.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],yB.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.Fys.YtButtonBehavior),_.O("design:type",Object)],yB.prototype,"ytButtonBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],yB.prototype,"data",void 0);_.U([_.gi("yt-icon-button#button"),_.O("design:type",Object)],yB.prototype,"iconButton",void 0);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yB.prototype,"onTap",null);yB=_.U([_.T({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],yB);
_.q(yB,"ytd-topbar-menu-button-renderer",function(){if(RF$!==void 0)return RF$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return RF$=W},{mode:1});var id7;var TeC=function(){return _.R.apply(this,arguments)||this};
_.D(TeC,_.R);TeC.prototype.getSelected=function(){return this.reasons.selected};
var $5=TeC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$5.prototype,"data",void 0);_.U([_.gi("#reasons"),_.O("design:type",Object)],$5.prototype,"reasons",void 0);$5=_.U([_.T({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],$5);
_.q($5,"ytd-ad-feedback-content",function(){if(id7!==void 0)return id7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return id7=W},{mode:1});var qfi;var uXC=function(){return _.R.apply(this,arguments)||this};
_.D(uXC,_.R);_.Y=uXC.prototype;_.Y.onPopupOpened=function(){_.KY(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.Y.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.Y.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.Y.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}}),_.KY(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.Y.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.KY(this.hostElement,"yt-open-popup-action",[_.oY(this.data.completionMessage),this])};
_.Y.onCancelTap=function(){_.KY(this.hostElement,"yt-close-popup-action")};
var ZO=uXC;ZO.prototype.onPopupOpened=ZO.prototype.onPopupOpened;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZO.prototype,"data",void 0);_.U([_.gi("#content"),_.O("design:type",Object)],ZO.prototype,"content",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ZO.prototype,"onPopupOpened",null);
ZO=_.U([_.T({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],ZO);
_.q(ZO,"ytd-ad-feedback-renderer",function(){if(qfi!==void 0)return qfi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return qfi=W},{mode:1});var U1u;var OdA=function(){return _.R.apply(this,arguments)||this};
_.D(OdA,_.R);var Rs=OdA;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Rs.prototype,"data",void 0);Rs=_.U([_.T({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Rs);
_.q(Rs,"ytd-ad-info-dialog-content",function(){if(U1u!==void 0)return U1u;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return U1u=W},{mode:1});var Lzu;var os=function(){return _.R.apply(this,arguments)||this};
_.D(os,_.R);os.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
os.prototype.onConfirmTap=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
os.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
os.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var iq=os;iq.prototype.onPopupClosed=iq.prototype.onPopupClosed;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iq.prototype,"data",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],iq.prototype,"onPopupClosed",null);iq=_.U([_.T({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],iq);
_.q(iq,"ytd-ad-info-dialog-renderer",function(){if(Lzu!==void 0)return Lzu;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Lzu=W},{mode:1});var jm6;var HdE=function(){var W=_.R.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.D(HdE,_.R);_.Y=HdE.prototype;_.Y.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.Y.computedLogo=function(){var W,k;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(k=this.data)==null?void 0:k.logo};
_.Y.computedHeaderImage=function(){var W,k;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(k=this.data)==null?void 0:k.headerImage};
_.Y.computeLogoIconId=function(){var W,k,C,n=(W=this.computedLogo())==null?void 0:(k=W.sources)==null?void 0:(C=k[0])==null?void 0:C.height;return n&&n%31===0?"logo-icon-with-padding":"logo-icon"};
_.Y.computeLogoIconHeight=function(){var W,k,C,n=(W=this.computedLogo())==null?void 0:(k=W.sources)==null?void 0:(C=k[0])==null?void 0:C.height;return n&&n%31===0?"31":"24"};
_.Y.onPopupClosed=function(){_.f().resolve(_.Ws).dispose()};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.Y.onShow=function(){this.inPlayer&&_.Wl(6)};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var k=_.z(this.data.impressionEndpoints[W],_.XZ);k&&this.ytComponentBehavior.resolveCommand(k)}};
_.Y.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.KY(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.oq.Object.defineProperties(HdE.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,k;return!((W=this.data)==null||!W.headerImageDark)&&!((k=this.data)==null||!k.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
var Ta=HdE;Ta.prototype.onPopupClosed=Ta.prototype.onPopupClosed;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.D1.YtVisibilityBehavior),_.O("design:type",Object)],Ta.prototype,"ytVisibilityBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ta.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],Ta.prototype,"actionButtonClass",void 0);_.U([_.Z(),_.O("design:type",Object)],Ta.prototype,"dismissButtonId",void 0);_.U([_.Z(),_.O("design:type",Object)],Ta.prototype,"dialogDismiss",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ta.prototype,"hasHeaderImage",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Ta.prototype,"hasPremiumButton",null);
_.U([_.Z({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.O("design:type",Boolean)],Ta.prototype,"inPlayer",void 0);_.U([_.gi("#dismiss-button"),_.O("design:type",HTMLElement)],Ta.prototype,"dismissButton",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Ta.prototype,"onPopupClosed",null);Ta=_.U([_.T({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Ta);
_.q(Ta,"ytd-enforcement-message-view-model",function(){if(jm6!==void 0)return jm6;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return jm6=W},{mode:1});var rLS;var gmB;var Pv$=function(){var W=_.R.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(k){W.onValidationResponse(k)},
onGenerateHandleFromNameResponse:function(k){W.onGenerateHandleFromNameResponse(k)}};
return W};
_.D(Pv$,_.R);_.Y=Pv$.prototype;_.Y.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.Y.validate=function(){this.immediateValidation()};
_.Y.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.Y.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.Y.getHandleDir=function(W){var k=W===""&&!1;return(k=_.wmx.test.call(_.wmx,W))?"rtl":"ltr"};
_.Y.onDataChanged=function(){var W,k;this.handleDir=this.getHandleDir((k=(W=this.data)==null?void 0:W.handle)!=null?k:"");var C;this.validationState=((C=this.data)==null?0:C.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var n;((n=this.data)==null?0:n.validateOnInit)&&this.immediateValidation()};
_.Y.stopPropagation=function(W){W.stopPropagation()};
_.Y.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.Y.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.Y.delayedValidation=function(){var W,k;this.debouncedValidation((k=(W=this.data)==null?void 0:W.validationDelayMs)!=null?k:1E3)};
_.Y.immediateValidation=function(){this.debouncedValidation(0)};
_.Y.debouncedValidation=function(W){var k=this;_.Dy(this,"debouncedValidation",function(){var C,n=k.staticValidation((C=k.handleInput.value)!=null?C:"");if(n!==void 0)k.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:n};else{var N;if((N=k.data)!=null&&N.validateChannelHandleCommand){k.validationState={status:"LOADING"};var B;k.ytComponentBehavior.resolveCommand(k.data.validateChannelHandleCommand,{form:{handle:(B=k.handleInput.value)!=null?B:""},commandController:{onSuccess:function(A,
w){k.onValidationResponse(w)},
onServerError:function(A,w){k.onValidationServerError(w)}}})}else k.handleUnexpectedValidationError(new _.AM("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",k.data))}},W)};
_.Y.staticValidation=function(W){var k;if(((k=this.data)==null?void 0:k.channelHandleStaticValidationParams)!==void 0){k=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&k.validValueRegexpErrorMessage!==void 0)return k.validValueRegexpErrorMessage;if(k.minLength!==void 0&&W.length<k.minLength&&k.minLengthErrorMessage!==void 0)return k.minLengthErrorMessage;if(k.maxLength!==void 0&&W.length>k.maxLength&&k.maxLengthErrorMessage!==void 0)return k.maxLengthErrorMessage}};
_.Y.onValidationResponse=function(W){var k=_.z(W.result,wri);k===void 0?this.handleUnexpectedValidationError(new _.AM("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(k)};
_.Y.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.AM("ValidateChannelHandle request failed.",W))};
_.Y.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.AM("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.AM("Unrecognized ChannelHandleValidationResult",W));break;default:_.oI(W.result)}};
_.Y.handleUnexpectedValidationError=function(W){var k;this.validationState={status:"UNKNOWN",handle:(k=this.handleInput.value)!=null?k:""};_.zJ(W)};
_.Y.stopEventPropagation=function(W){W.stopPropagation()};
_.Y.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var k,C;this.debouncedGenerateHandleFromName(W,(C=(k=this.data)==null?void 0:k.validationDelayMs)!=null?C:1E3)}};
_.Y.debouncedGenerateHandleFromName=function(W,k){var C=this;_.Dy(this,"debouncedGenerateHandleFromName",function(){var n;(n=C.data)!=null&&n.validateChannelHandleCommand?C.ytComponentBehavior.resolveCommand(C.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(N,B){C.onGenerateHandleFromNameResponse(B)},
onServerError:function(N,B){_.zJ(new _.AM("Error calling GenerateHandleFromName",B))}}}):_.zJ(new _.AM("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",C.data))},k)};
_.Y.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.z(W.result,xYC))?this.setHandleInputValue(W.handle):_.zJ(new _.AM("Invalid results when generate handle from name")))};
_.oq.Object.defineProperties(Pv$.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,k=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(k!=null?k:"");return k}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,k;if(((W=this.data)==null?void 0:(k=W.channelHandleStaticValidationParams)==null?void 0:k.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var qA=Pv$;qA.prototype.stopEventPropagation=qA.prototype.stopEventPropagation;qA.prototype.onDataChanged=qA.prototype.onDataChanged;qA.prototype.applyHandleEdit=qA.prototype.applyHandleEdit;qA.prototype.onValueChanged=qA.prototype.onValueChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],qA.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],qA.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],qA.prototype,"wasEdited",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],qA.prototype,"handleDir",void 0);_.U([_.gi("#handle-input"),_.O("design:type",Object)],qA.prototype,"handleInput",void 0);_.U([_.Z(),_.G("validationState"),_.O("design:type",Object),_.O("design:paramtypes",[])],qA.prototype,"value",null);
_.U([_.Hl("value"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qA.prototype,"onValueChanged",null);_.U([_.G("validationState"),_.O("design:type",Object),_.O("design:paramtypes",[])],qA.prototype,"errorIndicator",null);_.U([_.Z({reflectToAttribute:!0}),_.G("errorIndicator"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],qA.prototype,"borderErrorIndicator",null);
_.U([_.Z({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,k){return _.hQ(W.entities,"channelHandle",k)}}),
_.O("design:type",Object)],qA.prototype,"channelHandleEntity",void 0);_.U([_.G("channelHandleEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],qA.prototype,"handleEdit",null);_.U([_.Hl("handleEdit"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qA.prototype,"applyHandleEdit",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],qA.prototype,"onDataChanged",null);
_.U([_.G("data.channelHandleStaticValidationParams.validValueRegexp"),_.O("design:type",Object),_.O("design:paramtypes",[])],qA.prototype,"validValueRegexp",null);_.U([_.jI("yt-service-request-sent"),_.jI("yt-service-request-completed"),_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],qA.prototype,"stopEventPropagation",null);qA=_.U([_.T({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],qA);
_.q(qA,"ytd-channel-handle-input-renderer",function(){if(gmB!==void 0)return gmB;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return gmB=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var Kz1=function(){var W=_.R.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.m("enable_new_channel_creation_for_id4all");W.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"};W.testOnly={setErrorMessage:function(k){W.resetErrorState();
W.setErrorState(k)}};
return W};
_.D(Kz1,_.R);_.Y=Kz1.prototype;_.Y.created=function(){this.logScreenVe()};
_.Y.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")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.Go(this.zeroStepErrorMessageEntity.value))};
_.Y.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var k,C;if(!((k=this.data.createChannelButton)==null?0:(C=k.buttonRenderer)==null?0:C.isDisabled)){var n;if((n=this.nameInput)!=null&&n.value){this.setLoadingState();var N,B;k=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(N=this.handleInput)==null?void 0:N.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((B=this.handleInput)==null?void 0:B.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:k,commandController:{onSuccess:function(A,w){W.onChannelCreationEndpointSuccess(w);W.obakeImageSource&&_.a9("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.Y.endpointRequiresServiceRequestAction=function(W){return!!_.z(W,_.cq)||!!_.z(W,F2Y)};
_.Y.isNavigateAction=function(W){var k;return!!_.z(W,_.IG)||!!_.z((k=_.z(W,E8C))==null?void 0:k.command,_.IG)};
_.Y.isPlaylistAction=function(W){return!!_.z(W,_.mB)||!!_.z(W,_.cn)};
_.Y.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var k;this.setErrorState((k=W.createChannelError)==null?void 0:k.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.m("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){k=_.b(W.actions);for(var C=k.next();!C.done;C=k.next())if(C=C.value,this.endpointRequiresServiceRequestAction(C)&&this.ytComponentBehavior.resolveCommand(C),
this.isNavigateAction(C)){var n=void 0;C=_.z((n=_.z(C,E8C))==null?void 0:n.command,_.IG);n=void 0;this.isPlaylistAction((n=C)==null?void 0:n.endpoint)&&(_.KY(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),n=void 0,this.ytComponentBehavior.resolveCommand((n=C)==null?void 0:n.endpoint))}}W.actions&&W.actions.some(function(N){var B;return _.z(N,_.IG)||_.z((B=_.z(N,E8C))==null?void 0:B.command,_.IG)})||_.KY(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.Y.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.Y.onCancelTap=function(){var W,k,C;if(!((W=this.data)==null?0:(k=W.cancelButton)==null?0:(C=k.buttonRenderer)==null?0:C.isDisabled)){var n,N,B;W=(n=this.data)==null?void 0:(N=n.cancelButton)==null?void 0:(B=N.buttonRenderer)==null?void 0:B.command;if(!W||!_.z(W,_.dOP)){var A;this.nameInput&&((A=this.data)==null?0:A.name)&&(this.nameInput.value=this.data.name);var w;this.handleInput&&((w=this.data)==null?0:w.channelHandleInput)&&(this.handleInput.data=_.z(this.data.channelHandleInput,lj6));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.Y.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.Y.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.Y.onClearProfilePhotoTap=function(){var W,k,C;((W=this.data)==null?0:(k=W.clearProfilePhotoButton)==null?0:(C=k.buttonRenderer)==null?0:C.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.Y.onEditAvatarTap=function(){var W,k,C;((W=this.data)==null?0:(k=W.editAvatarButton)==null?0:(C=k.buttonRenderer)==null?0:C.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.Y.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)};
_.Y.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.Y.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var k;if((k=this.zeroStepErrorMessageEntity)==null?0:k.value)this.set("errorMessage",_.Go(this.zeroStepErrorMessageEntity.value));else{var C;((C=this.data)==null?0:C.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.Y.fetchImageBlobWithAlr=function(W,k){k=k===void 0?5:k;var C=this,n,N,B,A,w;return _.F(function(x){switch(x.nextAddress){case 1:return _.l(x,fetch(W,{method:"GET",mode:"cors"}),2);case 2:n=x.yieldResult;if(n.ok){x.jumpTo(3);break}if(k===0)throw Error();N=C.addJitter(Math.pow(2,5-k));return _.l(x,new Promise(function(E){setTimeout(E,N*1E3)}),4);
case 4:return x.return(C.fetchImageBlobWithAlr(W,k-1));case 3:if(!_.QY(n.headers.get("content-type")).split(";").some(function(E){return E.trim()==="text/plain"})){x.jumpTo(5);
break}B=C;A=B.fetchImageBlobWithAlr;return _.l(x,n.text(),6);case 6:return x.return(A.call(B,x.yieldResult,k-1));case 5:return _.l(x,n.blob(),7);case 7:return w=x.yieldResult,x.return(w)}})};
_.Y.addJitter=function(W){var k=W*.3*Math.random();Math.random()>.5&&(k*=-1);return W+k};
_.Y.openProfilePicturePicker=function(){var W=this,k,C,n,N,B;return _.F(function(A){if(A.nextAddress==1){k=W.data.scottyUploadUrl;if(!k)return A.return();C=document.documentElement.hasAttribute("dark");n=document.body.style.colorScheme;C&&(document.body.style.colorScheme="dark");N=Bh6(blY(YQT(KSA(C?"dark":"light")),function(w){var x,E,a,X,d;return _.F(function(V){if(V.nextAddress==1)return x=_.xo(Jwu(new a6(w.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(w.photoSource),
_.F0(V,2),W.setLoadingState(),_.l(V,W.fetchImageBlobWithAlr(x),4);if(V.nextAddress!=2)return E=V.yieldResult,a=new FileReader,a.addEventListener("load",function(){var c,M,p,e,u,h;return _.F(function(L){if(L.nextAddress==1){if(E.size>15728640)return W.setErrorState((c=W.data)==null?void 0:c.imageSizeErrorMessage),_.zJ(Error("il")),L.return();if(!a.result)return W.setErrorState((M=W.data)==null?void 0:M.genericImageLoadErrorMessage),_.zJ(Error("jl")),L.return();p=a.result;_.F0(L,2);return _.l(L,ir7(E,
k),4)}if(L.nextAddress!=2)return e=L.yieldResult,W.handleImageUpdatedAction(p,e),W.resetErrorState(),_.M7(L,0);u=_.EF(L);W.setErrorState((h=W.data)==null?void 0:h.uploadErrorMessage);if(u instanceof Error)_.dI(u);else{var Bw=new _.AM(JSON.stringify(u));_.dI(Bw)}_.ab(L)})}),a.readAsDataURL(E),_.M7(V,0);
X=_.EF(V);W.setErrorState((d=W.data)==null?void 0:d.genericImageLoadErrorMessage);X instanceof Error?_.dI(X):_.mw(new _.AM(JSON.stringify(X)));_.ab(V)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=n});
_.F0(A,2);return _.l(A,N.openPicker(),4)}if(A.nextAddress!=2)return _.M7(A,0);_.EF(A);W.setErrorState((B=W.data)==null?void 0:B.selectImageErrorMessage);_.ab(A)})};
_.Y.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.Y.logScreenVe=function(){_.jC(_.kf(),124448)};
_.Y.graftServerVe=function(){var W=_.DH(),k,C,n=(k=this.data)==null?void 0:(C=k.loggingDirectives)==null?void 0:C.trackingParams;n&&W&&(this.channelCreationFormVe=_.kf().graftServerVe(n,W),W={visualElement:this.channelCreationFormVe},_.hv().reportShown(W))};
_.Y.isNameChanged=function(W){var k;return((k=this.data)==null?void 0:k.name)!==W};
_.Y.isHandleChanged=function(W){var k,C=_.z((k=this.data)==null?void 0:k.channelHandleInput,lj6);return C&&W?C.handle!==W:!1};
_.Y.handleImageUpdatedAction=function(W,k){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=k};
_.Y.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.Y.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.Y.showContainer=function(){this.hideContainer=!1};
_.Y.maybeWipeZeroStepErrorMessage=function(){var W,k=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,C;k&&((C=this.zeroStepErrorMessageEntity)==null?0:C.value)&&this.ytdReduxBehavior.dispatch(_.Nj("stringEntity",k,{key:k,value:""}))};
_.oq.Object.defineProperties(Kz1.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
var uq=Kz1;uq.prototype.dataChanged=uq.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],uq.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],uq.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],uq.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],uq.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],uq.prototype,"errorMessage",void 0);
_.U([_.Z(),_.O("design:type",Object)],uq.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",String)],uq.prototype,"previewDataUrl",void 0);_.U([_.Z(),_.O("design:type",Number)],uq.prototype,"obakeImageSource",void 0);_.U([_.Z(),_.O("design:type",Object)],uq.prototype,"hideContainer",void 0);_.U([_.gi("#title-input"),_.O("design:type",Object)],uq.prototype,"nameInput",void 0);_.U([_.gi("#handle-input"),_.O("design:type",Object)],uq.prototype,"handleInput",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],uq.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.U([_.Z({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.CoK}),_.O("design:type",Object)],uq.prototype,"zeroStepErrorMessageEntity",void 0);_.U([_.G("data","data.isDefaultProfilePhoto","previewDataUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],uq.prototype,"photoThumbnail",null);
_.U([_.G("data","data.isDefaultProfilePhoto","photoThumbnail"),_.O("design:type",Object),_.O("design:paramtypes",[])],uq.prototype,"userSetPhotoThumbnailUrl",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uq.prototype,"hideProfilePhotoButtonLayer",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],uq.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.U([_.Cq("data","zeroStepErrorMessageEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uq.prototype,"dataChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.descriptionInfo","zeroStepErrorMessageEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],uq.prototype,"description",null);uq=_.U([_.T({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],uq);
_.q(uq,"ytd-channel-creation-dialog-renderer",function(){if(rLS!==void 0)return rLS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return rLS=W},{mode:1});var hFT;var UE=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.D(UE,_.R);UE.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
UE.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
UE.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var k;((k=this.data)==null?void 0:k.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var C;if((C=W.data)==null?0:C.nextEndpoint){var n;W.ytComponentBehavior.resolveCommand((n=W.data)==null?void 0:n.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var C;W.errorMessage=(C=W.data)==null?void 0:C.errorMessage}}}))}};
UE.prototype.closeDialog=function(){_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
var OE=UE;OE.prototype.updateDisabled=OE.prototype.updateDisabled;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],OE.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OE.prototype,"data",void 0);_.U([_.gi("#handle-input"),_.O("design:type",Object)],OE.prototype,"handleInput",void 0);_.U([_.Hl("isLoading"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OE.prototype,"updateDisabled",null);
OE=_.U([_.T({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],OE);
_.q(OE,"ytd-channel-handle-edit-dialog-renderer",function(){if(hFT!==void 0)return hFT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return hFT=W},{mode:1});var WtZ;var k6S=function(){return _.R.apply(this,arguments)||this};
_.D(k6S,_.R);k6S.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var LZ=k6S;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LZ.prototype,"data",void 0);LZ=_.U([_.T({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],LZ);
_.q(LZ,"ytd-channel-switcher-footer-renderer",function(){if(WtZ!==void 0)return WtZ;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return WtZ=W},{mode:1});var CNE;var nUS;var N91=function(){return _.R.apply(this,arguments)||this};
_.D(N91,_.R);N91.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var jU=N91;jU.prototype.onIronChange=jU.prototype.onIronChange;_.U([_.Z(),_.O("design:type",Object)],jU.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Function)],jU.prototype,"onDontAskAgainChanged",void 0);_.U([_.gi("#checkbox"),_.O("design:type",Object)],jU.prototype,"checkbox",void 0);_.U([_.jI("iron-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jU.prototype,"onIronChange",null);
jU=_.U([_.T({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],jU);
_.q(jU,"ytd-identity-prompt-footer-renderer",function(){if(nUS!==void 0)return nUS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return nUS=W},{mode:1});var YjY=function(){var W=_.R.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(k){W.dontAskAgainChanged(k)};
W.boundOnAccountItemTap=function(k){W.onAccountItemTap(k)};
return W};
_.D(YjY,_.R);_.Y=YjY.prototype;
_.Y.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]]"}}}}}};
_.Y.ready=function(){var W=this;_.S(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.Y.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.Y.onAccountItemTap=function(W){if(W){var k={};this.dontAskAgain&&(k={dont_ask_again:this.dontAskAgain});_.zy(W,k)}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.Y.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.z(W.sections[0],_.NmA),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.G3(window.location.href),(W==null?0:W.next)&&_.XNK(W.next)?_.zy(W.next):_.zy("/")):this.showPopup=!0)};
var HE=YjY;HE.prototype.dataChanged=HE.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],HE.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Object)],HE.prototype,"dontAskAgain",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],HE.prototype,"showPopup",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Object)],HE.prototype,"boundDontAskAgainChanged",void 0);_.U([_.Z({reflectToAttribute:!1}),_.O("design:type",Object)],HE.prototype,"boundOnAccountItemTap",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],HE.prototype,"dataChanged",null);
HE=_.U([_.T({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],HE);
_.q(HE,"ytd-channel-switcher-renderer",function(){if(CNE!==void 0)return CNE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return CNE=W},{mode:1});var B9C;var bCu=function(){return _.R.apply(this,arguments)||this};
_.D(bCu,_.R);_.oq.Object.defineProperties(bCu.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var r5=bCu;_.U([_.Z(),_.O("design:type",Object)],r5.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],r5.prototype,"steps",null);r5=_.U([_.T({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],r5);
_.q(r5,"ytd-channel-transfer-stepper-renderer",function(){if(B9C!==void 0)return B9C;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return B9C=W},{mode:1});var Ag1;var Ft6=function(){var W=_.R.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.D(Ft6,_.R);_.Y=Ft6.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.Y.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.Y.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)};
_.Y.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
var g5=Ft6;g5.prototype.onYtServiceRequestError=g5.prototype.onYtServiceRequestError;g5.prototype.onYtServiceRequestSent=g5.prototype.onYtServiceRequestSent;g5.prototype.dataChanged=g5.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],g5.prototype,"data",void 0);
_.U([_.Z({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.O("design:type",String)],g5.prototype,"profileName",void 0);_.U([_.Z(),_.O("design:type",Object)],g5.prototype,"isError",void 0);_.U([_.Z(),_.O("design:type",Object)],g5.prototype,"isLoading",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],g5.prototype,"dataChanged",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],g5.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],g5.prototype,"onYtServiceRequestError",null);g5=_.U([_.T({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],g5);
_.q(g5,"ytd-channel-warm-welcome-cont-renderer",function(){if(Ag1!==void 0)return Ag1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Ag1=W},{mode:1});var wai;var xxT=function(){var W=_.R.apply(this,arguments)||this;W.data=null;return W};
_.D(xxT,_.R);xxT.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xxT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var PE=xxT;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],PE.prototype,"data",void 0);PE=_.U([_.T({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],PE);
_.q(PE,"ytd-channel-warm-welcome-renderer",function(){if(wai!==void 0)return wai;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wai=W},{mode:1});var lC7;var tX7=function(){return _.R.apply(this,arguments)||this};
_.D(tX7,_.R);_.oq.Object.defineProperties(tX7.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
var KZ=tX7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KZ.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],KZ.prototype,"thumbnailDetails",null);KZ=_.U([_.T({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],KZ);
_.q(KZ,"ytd-comment-preview-renderer",function(){if(lC7!==void 0)return lC7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lC7=W},{mode:1});var EUi;var aCT=function(){return _.R.apply(this,arguments)||this};
_.D(aCT,_.R);aCT.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.oq.Object.defineProperties(aCT.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
var hq=aCT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hq.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],hq.prototype,"submitButton",null);hq=_.U([_.T({is:"ytd-notice-renderer",disableElementRegistration:!0})],hq);
_.q(hq,"ytd-notice-renderer",function(){if(EUi!==void 0)return EUi;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return EUi=W},{mode:1});var Xai;var fCS=function(){return _.R.apply(this,arguments)||this};
_.D(fCS,_.R);fCS.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var Wu=fCS;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wu.prototype,"data",void 0);Wu=_.U([_.T({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Wu);
_.q(Wu,"ytd-preview-comment-dialog-content",function(){if(Xai!==void 0)return Xai;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Xai=W},{mode:1});var dxu;var mxT=function(){return _.R.apply(this,arguments)||this};
_.D(mxT,_.R);mxT.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
mxT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var k9=mxT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],k9.prototype,"data",void 0);k9=_.U([_.T({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],k9);
_.q(k9,"ytd-preview-comment-dialog-renderer",function(){if(dxu!==void 0)return dxu;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return dxu=W},{mode:1});var zJC;var Dxi=_.m("web_button_rework")&&_.cv("BUTTON_REWORK")||_.m("web_button_rework_with_live"),VXB=function(){var W=_.R.apply(this,arguments)||this;W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=Dxi;W.amountPlaceholderIndex=-1;return W};
_.D(VXB,_.R);_.Y=VXB.prototype;_.Y.onAmountClick=function(W){this.selectedAmountIndex=_.S(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.Y.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.KY(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.Y.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.KY(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.KY(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.Zf())==null||W.getPlayerPromise().then(function(k){k.pauseVideo()})}};
_.Y.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.KY(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.KY(this.hostElement,"yt-close-popup-action",[this.is]),_.KY(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.Y.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.S(this.hostElement).querySelector("#custom-amount-input").focus()};
_.Y.updateConfirmationDialogTextWithAmount=function(W){var k=this.getConfirmDialogRuns();k&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(k),"text"],this.getFormattedAmount(W))};
_.Y.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.Y.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(k){return k.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.Y.getFormattedAmount=function(W){var k;return(new _.My(4,((k=this.data)==null?void 0:k.currencyCode)||"")).format(W)};
_.Y.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var k=this.get("minAmountMicros",this.data),C=this.get("maxAmountMicros",this.data);return k&&W<k||C&&W>C?!1:!0};
_.Y.setInputError=function(){this.shouldShowValidationError?_.S(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.S(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.Y.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.Y.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.Y.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.oq.Object.defineProperties(VXB.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,k,C;return((k=this.data)==null?void 0:(C=k.suggestedAmounts)==null?void 0:C.map(function(n,N){return{buttonRenderer:{style:W.selectedAmountIndex===N?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:n.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var Cb=VXB;Cb.prototype.setInitialCheckboxValue=Cb.prototype.setInitialCheckboxValue;Cb.prototype.setInputError=Cb.prototype.setInputError;Cb.prototype.setFocusOnCustomAmountInput=Cb.prototype.setFocusOnCustomAmountInput;_.U([_.v(iVB),_.O("design:type",Object)],Cb.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Cb.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Cb.prototype,"selectedAmountIndex",void 0);_.U([_.Z(),_.O("design:type",String)],Cb.prototype,"customAmountInput",void 0);_.U([_.Z(),_.O("design:type",Object)],Cb.prototype,"privacyCheckboxValue",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Cb.prototype,"useAmsterdamStyle",void 0);_.U([_.Hl("customAmount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cb.prototype,"setFocusOnCustomAmountInput",null);_.U([_.G("data","selectedAmountIndex"),_.O("design:type",Array),_.O("design:paramtypes",[])],Cb.prototype,"suggestedAmountButtons",null);
_.U([_.G("data","selectedAmountIndex"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Cb.prototype,"isCustomAmountSelected",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Cb.prototype,"showPrivacyCheckbox",null);_.U([_.G("data","selectedAmountIndex","customAmount"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"amountMicros",null);
_.U([_.G("isCustomAmountSelected","customAmountInput"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"customAmount",null);_.U([_.G("customAmount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Cb.prototype,"shouldShowValidationError",null);_.U([_.G("customAmount"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Cb.prototype,"isDonateButtonEnabled",null);
_.U([_.G("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"donateCommand",null);_.U([_.G("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"donateCommandWithConfirmation",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"largeDonationThreshold",null);
_.U([_.G("customAmount","donateCommand","amountMicros"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"confirmLargeAmountCommand",null);_.U([_.G("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.O("design:type",Object),_.O("design:paramtypes",[])],Cb.prototype,"donateButtonRenderer",null);_.U([_.Hl("shouldShowValidationError"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cb.prototype,"setInputError",null);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Cb.prototype,"setInitialCheckboxValue",null);Cb=_.U([_.T({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Cb);
_.q(Cb,"ytd-donation-amount-picker-renderer",function(){if(zJC!==void 0)return zJC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return zJC=W},{mode:1});var JgS;var cg6=function(){return _.R.apply(this,arguments)||this};
_.D(cg6,_.R);var nb=cg6;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.U([_.Z({}),_.O("design:type",Object)],nb.prototype,"data",void 0);nb=_.U([_.T({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],nb);
_.q(nb,"ytd-donation-post-transaction-content",function(){if(JgS!==void 0)return JgS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JgS=W},{mode:1});var IC6;var Sj7=function(){return _.R.apply(this,arguments)||this};
_.D(Sj7,_.R);Sj7.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Nv=Sj7;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.U([_.Z({}),_.O("design:type",Object)],Nv.prototype,"data",void 0);Nv=_.U([_.T({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Nv);
_.q(Nv,"ytd-donation-post-transaction-renderer",function(){if(IC6!==void 0)return IC6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return IC6=W},{mode:1});var MXi;var QT6;var pa$=function(){return _.R.apply(this,arguments)||this};
_.D(pa$,_.R);pa$.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
pa$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var Y9=pa$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Y9.prototype,"data",void 0);_.U([_.Z({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Y9.prototype,"isStreamingProvider",void 0);
Y9=_.U([_.T({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Y9);
_.q(Y9,"ytd-media-provider-renderer",function(){if(QT6!==void 0)return QT6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return QT6=W},{mode:1});var vUA;var eJ6=function(){return _.R.apply(this,arguments)||this};
_.D(eJ6,_.R);eJ6.prototype.observeLightsourcePalette=function(){var W,k=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;k&&_.lV(this.hostElement,k)};
var Bu=eJ6;Bu.prototype.observeLightsourcePalette=Bu.prototype.observeLightsourcePalette;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bu.prototype,"data",void 0);
_.U([_.Hl("data.vibrantsourceColorPaletteData"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bu.prototype,"observeLightsourcePalette",null);Bu=_.U([_.T({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Bu);
_.q(Bu,"ytd-streaming-pop-up-dialog",function(){if(vUA!==void 0)return vUA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vUA=W},{mode:1});var bz=function(){return _.R.apply(this,arguments)||this};
_.D(bz,_.R);bz.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.f().resolve(_.uI).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bz.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
bz.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
var AR=bz;AR.prototype.onPopupOpened_=AR.prototype.onPopupOpened_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.ui),_.O("design:type",Object)],AR.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],AR.prototype,"data",void 0);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],AR.prototype,"onPopupOpened_",null);AR=_.U([_.T({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],AR);
_.q(AR,"ytd-brandconnect-popup-renderer",function(){if(MXi!==void 0)return MXi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return MXi=W},{mode:1});var sTC;var G6B=function(){return _.R.apply(this,arguments)||this};
_.D(G6B,_.R);_.Y=G6B.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.Y.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.Y.computeAlt=function(W){return _.y4(W)};
_.Y.onDismissTap=function(){_.KY(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(k,C){C.checkboxSurveyOptionRenderer&&k.push(C.checkboxSurveyOptionRenderer);return k},[]):[]};
_.Y.onOptionChange=function(W){var k=this,C=!1;if(W.detail.checked)for(var n=this.getOptionRenderers().find(function(w){return w.value===W.detail.value}),N=this.getOptionRenderers(),B=0;B<N.length;B++){var A=N[B];
this.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked");A.checked&&((n==null?0:n.isExclusiveOption)?!A.isExclusiveOption:A.isExclusiveOption)?this.set("data.options."+B+".checkboxSurveyOptionRenderer.checked",!1):A.checked&&(C=!0)}else C=this.getOptionRenderers().some(function(w,x){k.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked");return w.checked});
this.updateSubmitButton(C)};
_.Y.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(B){return B.checked});
if(W.length!==0){var k=W.map(function(B){return B.responseEndpoint});
W=[];for(var C=1;C<k.length;C++){var n=void 0,N=(n=_.z(k[C],_.I5))==null?void 0:n.feedbackToken;N&&W.push(N)}k=[k[0]];W.length&&k.push({extra_feedback_tokens:W});_.kQ(this.hostElement,k);_.KY(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.m("kevlar_command_handler_migration_killswitch"))_.CB(this.hostElement,W,this.hostElement);else for(W=_.b(W),k=W.next();!k.done;k=W.next())this.ytComponentBehavior.resolveCommand(k.value)}};
var FI=G6B;FI.prototype.onOptionChange=FI.prototype.onOptionChange;FI.prototype.dataChanged=FI.prototype.dataChanged;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],FI.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],FI.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.U([_.v(BQS),_.O("design:type",Object)],FI.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],FI.prototype,"data",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],FI.prototype,"dataChanged",null);
_.U([_.jI("ytd-checkbox-survey-option-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],FI.prototype,"onOptionChange",null);FI=_.U([_.T({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],FI);
_.q(FI,"ytd-checkbox-survey-renderer",function(){if(sTC!==void 0)return sTC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sTC=W},{mode:1});var ygS;var $x6;var ZCS=function(){return _.R.apply(this,arguments)||this};
_.D(ZCS,_.R);var w_=ZCS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.U([_.v(Y5Y),_.O("design:type",Object)],w_.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],w_.prototype,"data",void 0);w_=_.U([_.T({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],w_);
_.q(w_,"ytd-dismissal-reason-text-renderer",function(){if($x6!==void 0)return $x6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return $x6=W},{mode:1});var RJ1;var oUT=function(){return _.R.apply(this,arguments)||this};
_.D(oUT,_.R);var x9=oUT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.U([_.v(Y5Y),_.O("design:type",Object)],x9.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],x9.prototype,"data",void 0);x9=_.U([_.T({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],x9);
_.q(x9,"ytd-dismissal-reason-video-renderer",function(){if(RJ1!==void 0)return RJ1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return RJ1=W},{mode:1});var iCZ=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(iCZ,_.R);_.Y=iCZ.prototype;_.Y.created=function(){this.selectedFeedbackTokens=new GV};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.Y.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.Y.onDismissalReasonSelected=function(W,k){_.Pe(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(k);this.hasReasonsSelected=!0};
_.Y.onDismissalReasonDeselected=function(W,k){_.Pe(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(k);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.Y.onCancelTap=function(){_.KY(this.hostElement,"yt-close-popup-action")};
_.Y.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.m("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.kQ(this.hostElement,[this.data.submitFeedbackEndpoint,W]):_.f().resolve(_.uI).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.KY(this.hostElement,"yt-close-popup-action")};
var lz=iCZ;lz.prototype.onDismissalReasonDeselected=lz.prototype.onDismissalReasonDeselected;lz.prototype.onDismissalReasonSelected=lz.prototype.onDismissalReasonSelected;lz.prototype.dataChanged=lz.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lz.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],lz.prototype,"hasReasonsSelected",void 0);_.U([_.Z(),_.O("design:type",GV)],lz.prototype,"selectedFeedbackTokens",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],lz.prototype,"darkerDarkTheme",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],lz.prototype,"dataChanged",null);
_.U([_.jI("yt-dismissal-reason-selected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],lz.prototype,"onDismissalReasonSelected",null);_.U([_.jI("yt-dismissal-reason-deselected"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,String]),_.O("design:returntype")],lz.prototype,"onDismissalReasonDeselected",null);lz=_.U([_.T({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],lz);
_.q(lz,"ytd-dismissal-follow-up-renderer",function(){if(ygS!==void 0)return ygS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return ygS=W},{mode:1});var T9S;var qj6=function(){return _.R.apply(this,arguments)||this};
_.D(qj6,_.R);_.Y=qj6.prototype;_.Y.onCheckedChange=function(){this.multiselect||_.Pe(this.hostElement,"yt-feedback-single-select-changed");_.S(this.hostElement).querySelector("#freeform").focus();_.Pe(this.hostElement,"yt-refit")};
_.Y.showTextBox=function(W,k){return W&&k};
_.Y.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))};
_.Y.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.Y.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
var tR=qj6;tR.prototype.dataChanged=tR.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],tR.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],tR.prototype,"multiselect",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tR.prototype,"dataChanged",null);
tR=_.U([_.T({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],tR);
_.q(tR,"ytd-feedback-option-renderer",function(){if(T9S!==void 0)return T9S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return T9S=W},{mode:1});var ua7;var UxT=function(){return _.R.apply(this,arguments)||this};
_.D(UxT,_.R);UxT.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
UxT.prototype.onSingleSelectCheckedChanged=function(W){W=_.eI(W);for(var k=0;k<this.data.options.length;k++)if(W.data!==_.z(this.data.options[k],kkS)){var C="data.options."+k+".feedbackOptionRenderer.checked";this.notifyPath(C);this.set(C,!1)}};
var EI=UxT;EI.prototype.onSingleSelectCheckedChanged=EI.prototype.onSingleSelectCheckedChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],EI.prototype,"data",void 0);
_.U([_.jI("yt-feedback-single-select-changed"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],EI.prototype,"onSingleSelectCheckedChanged",null);EI=_.U([_.T({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],EI);
_.q(EI,"ytd-feedback-question-renderer",function(){if(ua7!==void 0)return ua7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ua7=W},{mode:1});var OC$;var aN=function(){return _.R.apply(this,arguments)||this};
_.D(aN,_.R);aN.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
aN.prototype.getSelectedFeedbackResults=function(){for(var W={},k=0;k<this.data.questions.length;k++)for(var C=_.z(this.data.questions[k],WAC),n=0;n<C.options.length;n++){var N=_.z(C.options[n],kkS);N&&N.checked&&(W[N.optionKey]=N.resultText)}return W};
aN.prototype.onKeyUp=function(){var W=this;_.oE(_.aM,function(){_.Pe(W.hostElement,"yt-refit")});
_.aM.start()};
aN.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.m("web_ytd_feedback_survey_renderer_command_resolver_ks")?_.kQ(this.hostElement,[this.data.submitFeedbackEndpoint,W]):_.f().resolve(_.uI).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
var XI=aN;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XI.prototype,"data",void 0);XI=_.U([_.T({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],XI);
_.q(XI,"ytd-feedback-survey-renderer",function(){if(OC$!==void 0)return OC$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return OC$=W},{mode:1});var LtS;var jTi;var fb=function(){return _.R.apply(this,arguments)||this};
_.D(fb,_.R);fb.prototype.computeAlt=function(W){return _.y4(W)};
fb.prototype.submitResponse=function(){var W,k;(W=this.data)!=null&&W.feedbackToken&&((k=this.data)==null?void 0:k.nextStageIndex)!==void 0&&(_.hA(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.hA(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
fb.prototype.onClick=function(){this.submitResponse()};
var d_=fb;d_.prototype.onClick=d_.prototype.onClick;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],d_.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],d_.prototype,"vertical",void 0);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],d_.prototype,"onClick",null);
d_=_.U([_.T({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],d_);
_.q(d_,"ytd-single-select-answer-option-renderer",function(){if(jTi!==void 0)return jTi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return jTi=W},{mode:1});var HCB;var mY=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.D(mY,_.R);mY.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
mY.prototype.dataChanged=function(){var W,k;this.vertical=((k=(W=this.data)==null?void 0:W.answerOrientation)!=null?k:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
mY.prototype.submitFeedback=function(W){var k;((k=this.data)==null?0:k.responseEndpoint)&&W&&_.kQ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
var z2=mY;z2.prototype.dataChanged=z2.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],z2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],z2.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],z2.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],z2.prototype,"vertical",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],z2.prototype,"darkerDarkTheme",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z2.prototype,"dataChanged",null);z2=_.U([_.T({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],z2);
_.q(z2,"ytd-single-select-question-renderer",function(){if(HCB!==void 0)return HCB;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return HCB=W},{mode:1});var rg7=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.D(rg7,_.R);_.Y=rg7.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.jumpToStage(0)};
_.Y.jumpToStage=function(W){var k,C;if((k=this.data)==null?0:(C=k.stages)==null?0:C[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.Y.computeAlt=function(W){return _.y4(W)};
_.Y.computeSimpleMessage=function(W){var k;return(k=_.z(W,Nl6))==null?void 0:k.messageText};
_.Y.computeHideDismiss=function(W){var k;return(k=_.z(W,v8Y))==null?void 0:k.hideParentDismissButton};
_.Y.onDismissTap=function(){_.KY(this.hostElement,"yt-close-popup-action");_.z(this.currentStage,Nl6)||this.data.dismissalEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.refitAfterRender=function(){var W=this;_.ZR(this,function(){_.Pe(W.hostElement,"yt-refit")})};
var DW=rg7;DW.prototype.dataChanged=DW.prototype.dataChanged;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],DW.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(BQS),_.O("design:type",Object)],DW.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],DW.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],DW.prototype,"currentStage",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],DW.prototype,"dataChanged",null);DW=_.U([_.T({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],DW);
_.q(DW,"ytd-multi-stage-survey-renderer",function(){if(LtS!==void 0)return LtS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return LtS=W},{mode:1});var gUZ;var VC=function(){return _.R.apply(this,arguments)||this};
_.D(VC,_.R);VC.prototype.computeAlt=function(W){return _.y4(W)};
VC.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.f().resolve(_.uI).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.KY(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.hIE(!1)))};
VC.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var JR=VC;JR.prototype.onTap=JR.prototype.onTap;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],JR.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],JR.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],JR.prototype,"vertical",void 0);
_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],JR.prototype,"onTap",null);JR=_.U([_.T({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],JR);
_.q(JR,"ytd-single-option-survey-option-renderer",function(){if(gUZ!==void 0)return gUZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gUZ=W},{mode:1});var PN7;var KtE=function(){return _.R.apply(this,arguments)||this};
_.D(KtE,_.R);_.Y=KtE.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){var W,k;this.vertical=(((W=this.data)==null?void 0:(k=W.surveyOrientation)==null?void 0:k.type)||"HORIZONTAL")==="VERTICAL"};
_.Y.computeAlt=function(W){return _.y4(W)};
_.Y.onDismissTap=function(){_.KY(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.f().resolve(_.uI).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.hIE(!1))};
var cu=KtE;cu.prototype.dataChanged=cu.prototype.dataChanged;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],cu.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(BQS),_.O("design:type",Object)],cu.prototype,"ytdHatsSurveyBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cu.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],cu.prototype,"vertical",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cu.prototype,"dataChanged",null);cu=_.U([_.T({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],cu);
_.q(cu,"ytd-single-option-survey-renderer",function(){if(PN7!==void 0)return PN7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return PN7=W},{mode:1});var hJ7;var IN=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(IN,_.R);IN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IN.prototype.onDismissTap=function(){_.KY(this.hostElement,"yt-close-popup-action")};
IN.prototype.onNavigate=function(){_.KY(this.hostElement,"yt-close-popup-action")};
var Ss=IN;Ss.prototype.onNavigate=Ss.prototype.onNavigate;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],Ss.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Ss.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Ss.prototype,"darkerDarkTheme",void 0);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Ss.prototype,"onNavigate",null);Ss=_.U([_.T({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Ss);
_.q(Ss,"ytd-survey-follow-up-renderer",function(){if(hJ7!==void 0)return hJ7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return hJ7=W},{mode:1});var Wb$;var kB6;var Cot;var nHE=function(){var W=_.R.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.D(nHE,_.R);_.Y=nHE.prototype;_.Y.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.Y.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.Y.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.Y.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("minutes-changed",this.minutes))};
_.Y.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("seconds-changed",this.seconds))};
_.Y.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.Y.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
var Mv=nHE;Mv.prototype.secondsChangedForBinding=Mv.prototype.secondsChangedForBinding;Mv.prototype.minutesChangedForBinding=Mv.prototype.minutesChangedForBinding;Mv.prototype.secondsChanged=Mv.prototype.secondsChanged;_.U([_.Z(),_.O("design:type",String)],Mv.prototype,"minutes",void 0);_.U([_.Z(),_.O("design:type",String)],Mv.prototype,"seconds",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Mv.prototype,"polymer2",void 0);
_.U([_.gi("#seconds"),_.O("design:type",Object)],Mv.prototype,"secondsEl",void 0);_.U([_.Hl("seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mv.prototype,"secondsChanged",null);_.U([_.Hl("minutes"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mv.prototype,"minutesChangedForBinding",null);
_.U([_.Hl("seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Mv.prototype,"secondsChangedForBinding",null);Mv=_.U([_.l0({is:"yt-timestamp-input",disableElementRegistration:!0})],Mv);
_.q(Mv,"yt-timestamp-input",function(){if(Cot===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;kB6===void 0&&(kB6=document.createElement("template"));var n=kB6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Cot=W}W=Cot;return W},{mode:2});var No1=function(){return _.R.apply(this,arguments)||this};
_.D(No1,_.R);_.Y=No1.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17949_scroller.dialogElement=this.hostElement.parentNode};
_.Y.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Rh().getPlayerPromise().then(function(k){k=k.getCurrentTime();W.minutes=Math.floor(k/60).toString();W.seconds=(Math.floor(k)%60).toString()})};
_.Y.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.f().resolve(_.uI).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.Y.onYtServiceRequestCompleted=function(W,k){k=k.actions;if(Array.isArray(k))for(var C=0,n=k.length;C<n;C++)_.z(k[C],_.Eq)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(k[C]))};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.Y.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.Y.handleInput=function(){var W=this.issueType,k=this.affiliation,C=this.minutes,n=this.seconds;C=!this.showTimestamp||!!C&&!!n;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!k&&C)};
_.Y.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.Y.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.Y.computeShowTimestamp=function(W){return!!W};
_.Y.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.Y.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.Y.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.Y.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.Y.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.Y.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
var QC=No1;QC.prototype.handleInput=QC.prototype.handleInput;QC.prototype.onYtServiceRequestError=QC.prototype.onYtServiceRequestError;QC.prototype.onYtServiceRequestCompleted=QC.prototype.onYtServiceRequestCompleted;QC.prototype.onYtServiceRequestSent=QC.prototype.onYtServiceRequestSent;QC.prototype.dataChanged=QC.prototype.dataChanged;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],QC.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],QC.prototype,"JSC$17949_scroller",void 0);_.U([_.gi("#description"),_.O("design:type",HTMLInputElement)],QC.prototype,"description",void 0);_.U([_.gi("#full-name"),_.O("design:type",Object)],QC.prototype,"fullName",void 0);_.U([_.Z(),_.O("design:type",Object)],QC.prototype,"data",void 0);
_.U([_.Z({computed:"computeShowTimestamp(data.timestampLabel)"}),_.O("design:type",Boolean)],QC.prototype,"showTimestamp",void 0);_.U([_.Z({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.O("design:type",Object)],QC.prototype,"serviceEndpoint",void 0);_.U([_.Z({computed:"computeSubmitButton(data)"}),_.O("design:type",Object)],QC.prototype,"submitButton",void 0);_.U([_.Z(),_.O("design:type",String)],QC.prototype,"descriptionText",void 0);
_.U([_.Z(),_.O("design:type",Number)],QC.prototype,"issueType",void 0);_.U([_.Z(),_.O("design:type",Number)],QC.prototype,"affiliation",void 0);_.U([_.Z(),_.O("design:type",String)],QC.prototype,"fullNameText",void 0);_.U([_.Z(),_.O("design:type",String)],QC.prototype,"minutes",void 0);_.U([_.Z(),_.O("design:type",String)],QC.prototype,"seconds",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QC.prototype,"dataChanged",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],QC.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],QC.prototype,"onYtServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],QC.prototype,"onYtServiceRequestError",null);_.U([_.Hl("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],QC.prototype,"handleInput",null);QC=_.U([_.T({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],QC);
_.q(QC,"ytd-legal-report-details-form-renderer",function(){if(Wb$!==void 0)return Wb$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Wb$=W},{mode:1});var YlS;var pb=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.D(pb,_.R);pb.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
pb.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.f().resolve(_.uI).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.KY(this.hostElement,"yt-close-popup-action"))}};
pb.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.KY(this.hostElement,"yt-close-popup-action"))};
pb.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var vu=pb;vu.prototype.onPopupClosed=vu.prototype.onPopupClosed;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],vu.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],vu.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.U([_.gi("yt-form-renderer"),_.O("design:type",Object)],vu.prototype,"formRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],vu.prototype,"data",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],vu.prototype,"onPopupClosed",null);vu=_.U([_.T({is:"ytd-form-popup-content",disableElementRegistration:!0})],vu);
_.q(vu,"ytd-form-popup-content",function(){if(YlS!==void 0)return YlS;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return YlS=W},{mode:1});var Bo7;var es=function(){return _.R.apply(this,arguments)||this};
_.D(es,_.R);es.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
es.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
es.prototype.onPopupOpened=function(){_.Pe(this.hostElement,"yt-invalidate-popup-tabbables")};
es.prototype.onYtServiceRequestCompleted=function(W,k){k.data&&k.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Pe(this.hostElement,"yt-invalidate-popup-tabbables"))};
var sI=es;sI.prototype.onYtServiceRequestCompleted=sI.prototype.onYtServiceRequestCompleted;sI.prototype.onPopupOpened=sI.prototype.onPopupOpened;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],sI.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],sI.prototype,"data",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],sI.prototype,"onPopupOpened",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],sI.prototype,"onYtServiceRequestCompleted",null);sI=_.U([_.T({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],sI);
_.q(sI,"ytd-form-popup-renderer",function(){if(Bo7!==void 0)return Bo7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Bo7=W},{mode:1});var bPi;var AN1=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;return W};
_.D(AN1,_.R);_.Y=AN1.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");K8S(this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.isLoading=!0};
_.Y.onYtServiceRequestCompleted=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.Y.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.CB(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.Y.closePopupHandler=function(){this.fireOnCloseActions()};
_.Y.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.yI(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.Y.onYtNavigate=function(W){(W=_.eI(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var G2=AN1;G2.prototype.onYtNavigate=G2.prototype.onYtNavigate;G2.prototype.onHeaderImageChanged=G2.prototype.onHeaderImageChanged;G2.prototype.closePopupHandler=G2.prototype.closePopupHandler;G2.prototype.onYtServiceRequestCompleted=G2.prototype.onYtServiceRequestCompleted;G2.prototype.onYtServiceRequestSent=G2.prototype.onYtServiceRequestSent;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],G2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],G2.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],G2.prototype,"isLoading",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLDivElement)],G2.prototype,"header",void 0);_.U([_.gi("#confirm-button"),_.O("design:type",_.hw)],G2.prototype,"confirmButton",void 0);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],G2.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],G2.prototype,"onYtServiceRequestCompleted",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],G2.prototype,"closePopupHandler",null);_.U([_.Hl("data.headerImage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],G2.prototype,"onHeaderImageChanged",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],G2.prototype,"onYtNavigate",null);
G2=_.U([_.T({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],G2);
_.q(G2,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(bPi!==void 0)return bPi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bPi=W},{mode:1});var FbC;var wbi=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;return W};
_.D(wbi,_.R);_.Y=wbi.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);K8S(this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.Y.onYtServiceRequestError=function(W){_.fm(this.hostElement,W.detail.error.message)};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.KY(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.Y.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.yI(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.VM();var k=_.DH(),C=this.get("data.trackingParams");C&&k&&W&&_.sr(W,k,_.Yf(C))};
_.oq.Object.defineProperties(wbi.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var yC=wbi;yC.prototype.onDataChanged=yC.prototype.onDataChanged;yC.prototype.onDomChange=yC.prototype.onDomChange;yC.prototype.onYtServiceRequestError=yC.prototype.onYtServiceRequestError;yC.prototype.onYtServiceRequestCompleted=yC.prototype.onYtServiceRequestCompleted;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],yC.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],yC.prototype,"isLoading",void 0);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],yC.prototype,"hasDescription",null);_.U([_.gi("tp-yt-paper-dialog-scrollable"),_.O("design:type",Object)],yC.prototype,"scrollable",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],yC.prototype,"header",void 0);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yC.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yC.prototype,"onYtServiceRequestError",null);
_.U([_.jI("dom-change"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],yC.prototype,"onDomChange",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],yC.prototype,"onDataChanged",null);yC=_.U([_.T({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],yC);
_.q(yC,"ytd-gaming-account-link-setting-renderer",function(){if(FbC!==void 0)return FbC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return FbC=W},{mode:1});var xOt;var lbi;var tM6=function(){var W=_.R.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=LlB;return W};
_.D(tM6,_.R);_.Y=tM6.prototype;_.Y.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var k=_.hA(W.hostElement,"yt-get-opened-popups-action");!(k&&k.length===1?k[0]:[]).some(function(C){C=C.openPopupAction.popupType;return C==="SURVEY"||C==="MEALBAR"||C==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.CB(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.Y.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(W){if(this.data.serviceEndpoint){var k;_.m("shorts_controller_retrieve_seedless_sequence_v2")&&((k=_.z(this.data.serviceEndpoint,_.YZ))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):OrE(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.er(_.vl(W),this.hostElement,["A".toString()])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.Y.computeActive=function(W,k){if(!W)return!1;var C=W.navigationEndpoint;W=W.serviceEndpoint;if(!C&&!W||!k)return!1;if(C){W=(W=Pz(k))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.z(C,_.kZ)&&_.z(k,_.kZ)&&!W){var n=_.z(C,_.kZ).browseId;k=_.z(k,_.kZ).browseId;return n!==void 0&&k!==void 0&&(n===k||n==="VLWL"&&k==="FEwatch_later"||n==="FEwatch_later"&&k==="VLWL")}var N;C=(N=_.z(C.commandMetadata,_.Ok))==null?void 0:N.url;k=(n=_.z(k.commandMetadata,_.Ok))==null?void 0:n.url;return!(!C||
!k||C!==k&&C!==_.KS(k))}return this.isActiveShortsTab(W,k)};
_.Y.isActiveShortsTab=function(W,k){k=!!_.z(k,_.YZ)||!!_.z(k,_.zQ);return(!!_.z(W,_.YZ)||!!_.z(W,_.zQ))&&k};
_.Y.computeIsPrimary=function(W){return!!W};
_.oq.Object.defineProperties(tM6.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
var $9=tM6;$9.prototype.onTap=$9.prototype.onTap;$9.prototype.onUp=$9.prototype.onUp;$9.prototype.onDown=$9.prototype.onDown;$9.prototype.triggerHintActions=$9.prototype.triggerHintActions;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],$9.prototype,"componentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$9.prototype,"rendererBehavior",void 0);_.U([_.v(_.vR.YtTaskEmitterBehavior),_.O("design:type",Object)],$9.prototype,"taskEmitterBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],$9.prototype,"activeEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],$9.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],$9.prototype,"guideOpened",void 0);_.U([_.Z(),_.O("design:type",String)],$9.prototype,"type",void 0);_.U([_.gi("yt-interaction"),_.O("design:type",Object)],$9.prototype,"interaction",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],$9.prototype,"isHeader",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data","activeEndpoint"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$9.prototype,"active",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$9.prototype,"isPrimary",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.count","data.presentationStyle","data.badges.*"),_.O("design:type",String),_.O("design:paramtypes",[])],$9.prototype,"lineEndStyle",null);
_.U([_.G("lineEndStyle"),_.O("design:type",Object),_.O("design:paramtypes",[])],$9.prototype,"ariaLabel",null);_.U([_.Hl("data.hintActions","guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$9.prototype,"triggerHintActions",null);_.U([_.jI("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$9.prototype,"onDown",null);
_.U([_.jI("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$9.prototype,"onUp",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],$9.prototype,"onTap",null);$9=_.U([_.T({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],$9);
_.q($9,"ytd-guide-entry-renderer",function(){if(lbi!==void 0)return lbi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return lbi=W},{mode:1});var EH6=function(){var W=_.R.apply(this,arguments)||this;W.userToggled=!1;return W};
_.D(EH6,_.R);_.Y=EH6.prototype;_.Y.getItemsPath=function(){return"data.expandableItems"};
_.Y.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.Y.onExpanderItemTapped=function(W){var k=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.m("kevlar_guide_expandable_items_killswitch")&&_.ZR(this,function(){_.sL(k.expandableItems)});
W.preventDefault()};
_.Y.onCollapserItemTapped=function(W){var k=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.m("kevlar_guide_collapsible_items_killswitch")&&_.ZR(this,function(){_.ek(k.hostElement)})};
_.Y.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,k=this.data,C=this.expandableItems.children,n=0,N=C.length;n<N;n++)C[n].activeEndpoint=W;k&&k.autoExpandCommand&&W&&!this.userToggled&&(C=this.data.autoExpandCommand,k=!(!_.z(C,_.kZ)||!_.z(W,_.kZ)||_.z(C,_.kZ).browseId!==_.z(W,_.kZ).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),C=this.get("commandMetadata.webCommandMetadata.url",C),k=k||!!(W&&C&&W.includes(C)),this._setExpanded(k),k&&this.ytLazyListBehavior.fillRemainingListItems())};
var ZW=EH6;ZW.prototype.observeActiveEndpoint=ZW.prototype.observeActiveEndpoint;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],ZW.prototype,"ytLazyListBehavior",void 0);_.U([_.gi("#expandable-items"),_.O("design:type",HTMLElement)],ZW.prototype,"expandableItems",void 0);
_.U([_.Z(),_.O("design:type",Object)],ZW.prototype,"data",void 0);_.U([_.Z({readOnly:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],ZW.prototype,"expanded",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],ZW.prototype,"initialCount",void 0);_.U([_.Z(),_.O("design:type",Object)],ZW.prototype,"activeEndpoint",void 0);_.U([_.Hl("data","activeEndpoint","canShowMore"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZW.prototype,"observeActiveEndpoint",null);
ZW=_.U([_.T({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],ZW);
_.q(ZW,"ytd-guide-collapsible-entry-renderer",function(){if(xOt!==void 0)return xOt;var W=document.createElement("template");_.J(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xOt=W},{mode:_.UC("kevlar_poly_si_batch_j079")?1:2});var abi;var Xb6;var fbS=function(){var W=_.R.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.D(fbS,_.R);fbS.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
var RN=fbS;RN.prototype.observeRenderEntry=RN.prototype.observeRenderEntry;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],RN.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],RN.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],RN.prototype,"activeEndpoint",void 0);_.U([_.Z({selector:_.o7m}),_.O("design:type",Object)],RN.prototype,"allVideosCount",void 0);
_.U([_.Z(),_.O("design:type",Object)],RN.prototype,"renderGuideEntry",void 0);_.U([_.Cq("allVideosCount","data.alwaysShow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],RN.prototype,"observeRenderEntry",null);RN=_.U([_.T({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],RN);
_.q(RN,"ytd-guide-downloads-entry-renderer",function(){if(Xb6===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);Xb6=W}W=Xb6;return W},{mode:1});var dOT=function(){var W=_.R.apply(this,arguments)||this;W.youtab=_.m("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.D(dOT,_.R);_.Y=dOT.prototype;_.Y.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]]"}}}}}};
_.Y.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,k=0,C=W.length;k<C;k++)W[k].activeEndpoint=this.activeEndpoint}};
_.Y.handleAddToGuideSectionAction=function(W){var k=_.z(W,fj6);if(k&&this.data&&(W=k.items,k=k.handlerData,W&&k&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(k)>-1)){k=0;for(var C=W.length;k<C;k++)W[k].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[k])}};
_.Y.handleRemoveFromGuideSectionAction=function(W){var k=_.z(W,dY$);k&&this.data&&(W=k.guideEntryId,k=k.handlerData,W&&k&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(k)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.Y.removeFromExpandedSection=function(W,k){W=this.getEntryIndexMatchingId(W,k);W!==-1&&this.splice("data.sectionItems",W,1)};
_.Y.removeFromCollapsedSection=function(W,k){var C=k.findIndex(function(n){return!!_.z(n,RPt)});
C&&C!==-1&&k[C]&&_.z(k[C],RPt)&&(k=_.z(k[C],RPt).expandableItems)&&(W=this.getEntryIndexMatchingId(W,k),W!==-1&&this.splice("data.sectionItems."+C+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.Y.getEntryIndexMatchingId=function(W,k){var C=this;return k.findIndex(function(n){return C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===W})};
var oN=dOT;oN.prototype.activeEndpointChanged=oN.prototype.activeEndpointChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],oN.prototype,"actionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gi("#section-items"),_.O("design:type",HTMLDivElement)],oN.prototype,"sectionItems",void 0);_.U([_.gi("#header-entry"),_.O("design:type",Object)],oN.prototype,"headerEntry",void 0);_.U([_.Z(),_.O("design:type",Object)],oN.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],oN.prototype,"activeEndpoint",void 0);_.U([_.Z(),_.O("design:type",Object)],oN.prototype,"youtab",void 0);
_.U([_.Hl("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],oN.prototype,"activeEndpointChanged",null);oN=_.U([_.T({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],oN);
_.q(oN,"ytd-guide-collapsible-section-entry-renderer",function(){if(abi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);abi=W}W=abi;return W},{mode:1});var mO7;var z4S;var DOu=function(){var W=_.R.apply(this,arguments)||this;W.modernTypography=_.m("web_modern_typography");W.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 W};
_.D(DOu,_.R);_.Y=DOu.prototype;
_.Y.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}}}}};
_.Y.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.hA(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.hA(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.Y.handleResetChannelUnreadCountCommand=function(W){var k;(W=(k=_.z(W,DYZ))==null?void 0:k.channelId)&&this.data&&this.data.items&&(k=this.getPathToEntryMatchingId(W))&&(this.set(k+".guideEntryRenderer.count",0),this.set(k+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.handleResetSubscriptionsUnreadDotCommand=function(W){var k,C=(k=_.z(W,VRT))==null?void 0:k.targetId,n;C&&(n=this.data)!=null&&n.items&&(W=this.data.items.findIndex(function(N){var B;return((B=N.guideEntryRenderer)==null?void 0:B.targetId)===C}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var k=this.getEntryIndexMatchingId(W,this.data.items);if(k>-1)return"data.items."+k;for(var C=0;C<this.data.items.length;C++)if(k=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[C]))if(k=this.getEntryIndexMatchingId(W,k),k>-1)return"data.items."+C+".guideCollapsibleEntryRenderer.expandableItems."+k}};
_.Y.handleAddToGuideSectionAction=function(W){var k=this;if(_.z(W,fj6)){var C=_.z(W,fj6).items;W=_.z(W,fj6).handlerData;var n,N;C&&W&&((n=this.data)==null?void 0:(N=n.handlerDatas)==null?void 0:N.indexOf(W))>-1&&(C=C.filter(function(B){return(B=k.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B))&&!k.isGuideItemPresent(B)}),this.unshift.apply(this,["data.items"].concat(_.J8(C))))}};
_.Y.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var k=this.data.items.find(function(C){return!!C.guideCollapsibleEntryRenderer});
if((k==null?0:k.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,k.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.Y.getEntryIndexMatchingId=function(W,k){var C=this;return k.findIndex(function(n){return C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===W})};
_.Y.handleRemoveFromGuideSectionAction=function(W){if(_.z(W,dY$)){var k=_.z(W,dY$).guideEntryId;W=_.z(W,dY$).handlerData;var C,n;k&&W&&((C=this.data)==null?void 0:(n=C.handlerDatas)==null?void 0:n.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(k,this.data.items),this.removeFromCollapsedSection(k,this.data.items))}};
_.Y.removeFromExpandedSection=function(W,k){W=this.getEntryIndexMatchingId(W,k);W!==-1&&this.splice("data.items",W,1)};
_.Y.removeFromCollapsedSection=function(W,k){var C=k.findIndex(function(n){return!!n.guideCollapsibleEntryRenderer});
C!==-1&&(k=k[C].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,k),W!==-1&&this.splice("data.items."+C+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.Y.activeEndpointChanged=function(){for(var W=_.S(this.hostElement).querySelector("#items").children,k=0,C=W.length;k<C;k++)W[k].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Y.guideOpenedChanged=function(){for(var W=_.S(this.hostElement).querySelector("#items").children,k=0,C=W.length;k<C;k++)W[k].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var iz=DOu;iz.prototype.guideOpenedChanged=iz.prototype.guideOpenedChanged;iz.prototype.activeEndpointChanged=iz.prototype.activeEndpointChanged;iz.prototype.persistentGuideChanged=iz.prototype.persistentGuideChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],iz.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],iz.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],iz.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],iz.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],iz.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],iz.prototype,"modernTypography",void 0);_.U([_.Z(),_.O("design:type",String)],iz.prototype,"type",void 0);_.U([_.Z({value:20}),_.O("design:type",Number)],iz.prototype,"initialCount",void 0);_.U([_.Z({value:10}),_.O("design:type",Number)],iz.prototype,"targetFramerate",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],iz.prototype,"autoFill",void 0);_.U([_.Z({value:50}),_.O("design:type",Number)],iz.prototype,"renderDelay",void 0);
_.U([_.Hl("guidePersistentAndVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iz.prototype,"persistentGuideChanged",null);_.U([_.Cq("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iz.prototype,"activeEndpointChanged",null);_.U([_.Cq("guideOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],iz.prototype,"guideOpenedChanged",null);
iz=_.U([_.T({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],iz);
_.q(iz,"ytd-guide-section-renderer",function(){if(z4S!==void 0)return z4S;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return z4S=W},{mode:_.UC("kevlar_poly_si_batch_j073")?1:2});var VME;var JNE=function(){return _.R.apply(this,arguments)||this};
_.D(JNE,_.R);_.oq.Object.defineProperties(JNE.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var T2=JNE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],T2.prototype,"rendererBehaviors",void 0);_.U([_.Z(),_.O("design:type",Object)],T2.prototype,"data",void 0);_.U([_.Z(),_.G("data.signInButton.buttonRenderer.style"),_.O("design:type",Object),_.O("design:paramtypes",[])],T2.prototype,"alignByText",null);T2=_.U([_.T({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],T2);
_.q(T2,"ytd-guide-signin-promo-renderer",function(){if(VME===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);VME=W}W=VME;return W},{mode:1});var qv=function(){var W=_.R.apply(this,arguments)||this;W.showFooter=!1;return W};
_.D(qv,_.R);qv.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}}}}};
qv.prototype.attached=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1){k=_.f().resolve(_.qI(_.J5));if(!k)return C.jumpTo(0);k.setGuideData(W.hostElement);return _.l(C,0,3)}W.ytLazyListBehavior.initialCount=2;return C.return()})};
qv.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var uz=qv;uz.prototype.dataChanged=uz.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.o$.YtLazyListBehavior),_.O("design:type",Object)],uz.prototype,"ytLazyListBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],uz.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],uz.prototype,"showFooter",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],uz.prototype,"autoFill",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],uz.prototype,"dataChanged",null);uz=_.U([_.T({is:"ytd-guide-renderer",disableElementRegistration:!0})],uz);
_.q(uz,"ytd-guide-renderer",function(){if(mO7!==void 0)return mO7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return mO7=W},{mode:_.UC("kevlar_poly_si_batch_j073")?1:2});var cNC;var Ib7=function(){var W=_.R.apply(this,arguments)||this;W.systemIcons=_.m("kevlar_system_icons");W.frostedGlass=_.m("web_frosted_glass");W.getEndpointForm=LlB;return W};
_.D(Ib7,_.R);_.Y=Ib7.prototype;_.Y.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.Y.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.y4(this.data.formattedTitle))};
_.Y.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(W){if(this.data.serviceEndpoint){var k;_.m("shorts_controller_retrieve_seedless_sequence_v2")&&((k=_.z(this.data.serviceEndpoint,_.YZ))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):OrE(this.data.serviceEndpoint,this);W.preventDefault()}else{var C;((C=this.data)==null?0:C.navigationEndpoint)&&!_.er(_.vl(W),this.hostElement,["A".toString()])&&_.Pe(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Y.computeActive=function(W,k){if(!W)return!1;var C=W.navigationEndpoint;W=W.serviceEndpoint;if(!C&&!W||!k)return!1;if(C){W=_.z(C,_.kZ);var n=_.z(k,_.kZ);if(W&&n)return W.browseId===n.browseId&&W.params===n.params;var N;C=(N=_.z(C.commandMetadata,_.Ok))==null?void 0:N.url;var B;k=(B=_.z(k.commandMetadata,_.Ok))==null?void 0:B.url;return!(!C||!k||C!==k&&C!==_.KS(k))}return this.isActiveShortsTab(W,k)};
_.Y.isActiveShortsTab=function(W,k){k=!!_.z(k,_.YZ)||!!_.z(k,_.zQ);return(!!_.z(W,_.YZ)||!!_.z(W,_.zQ))&&k};
_.Y.computeTitle=function(W,k){return k?"":_.y4(W)};
_.oq.Object.defineProperties(Ib7.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var UI=Ib7;UI.prototype.onTap=UI.prototype.onTap;UI.prototype.onUp=UI.prototype.onUp;UI.prototype.onDown=UI.prototype.onDown;UI.prototype.onActiveStateChange=UI.prototype.onActiveStateChange;UI.prototype.dataChanged=UI.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],UI.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.DI),_.O("design:type",Object)],UI.prototype,"ironButtonState",void 0);_.U([_.Z(),_.O("design:type",Object)],UI.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],UI.prototype,"activeEndpoint",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],UI.prototype,"noLabels",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.O("design:type",Boolean)],UI.prototype,"isActive",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],UI.prototype,"systemIcons",void 0);_.U([_.gi("yt-interaction"),_.O("design:type",Object)],UI.prototype,"interaction",void 0);_.U([_.G("isActive"),_.O("design:type",Object),_.O("design:paramtypes",[])],UI.prototype,"ariaSelected",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],UI.prototype,"frostedGlass",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UI.prototype,"dataChanged",null);_.U([_.Hl("isActive"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UI.prototype,"onActiveStateChange",null);_.U([_.jI("down"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UI.prototype,"onDown",null);
_.U([_.jI("up"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UI.prototype,"onUp",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],UI.prototype,"onTap",null);UI=_.U([_.T({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],UI);
_.q(UI,"ytd-mini-guide-entry-renderer",function(){if(cNC!==void 0)return cNC;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return cNC=W},{mode:_.UC("kevlar_poly_si_batch_j063")?1:2});var Sl$;var MMZ=function(){var W=_.R.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.m("kevlar_mini_guide_no_labels");W.frostedGlass=_.m("web_frosted_glass");return W};
_.D(MMZ,_.R);_.Y=MMZ.prototype;_.Y.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.Y.visibleChanged=function(){if(this.visible&&!this.data){var W=_.f().resolve(_.qI(_.J5));W&&W.setGuideData(this.hostElement)}};
_.Y.dataChanged=function(){var W=[],k;if((k=this.data)!=null&&k.items){k=_.b(this.data.items);for(var C=k.next();!C.done;C=k.next()){C=C.value;var n=void 0;if((n=C.guideSectionRenderer)==null?0:n.items)for(n=void 0,C=_.b((n=C.guideSectionRenderer)==null?void 0:n.items),n=C.next();!n.done;n=C.next())if(n=n.value,n.guideEntryRenderer)n=n.guideEntryRenderer,n.isPrimary&&W.push({guideEntryRenderer:n});else if(n.guideCollapsibleSectionEntryRenderer){var N=void 0;((N=_.z(n.guideCollapsibleSectionEntryRenderer.headerEntry,
$G))==null?0:N.isPrimary)&&W.push({guideEntryRenderer:_.z(n.guideCollapsibleSectionEntryRenderer.headerEntry,$G)});if(n=n.guideCollapsibleSectionEntryRenderer.sectionItems)for(n=_.b(n),N=n.next();!N.done;N=n.next()){var B=N.value;N=_.z(B,o8E);var A=void 0;((A=_.z(B,$G))==null?0:A.isPrimary)?W.push({guideEntryRenderer:_.z(B,$G)}):N&&(B=void 0,_.z((B=N)==null?void 0:B.entryRenderer,$G)&&(N.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.z(N.entryRenderer,$G)}))}}}}this.miniGuideItems=
W};
_.Y.activeEndpointChanged=function(){for(var W=this.items.children,k=0;k<W.length;k++)W[k].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var OI=MMZ;OI.prototype.activeEndpointChanged=OI.prototype.activeEndpointChanged;OI.prototype.dataChanged=OI.prototype.dataChanged;OI.prototype.visibleChanged=OI.prototype.visibleChanged;_.U([_.v(_.fk),_.O("design:type",Object)],OI.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],OI.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],OI.prototype,"ytComponentBehavior",void 0);_.U([_.gi("#items"),_.O("design:type",Object)],OI.prototype,"items",void 0);_.U([_.Z(),_.O("design:type",Object)],OI.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],OI.prototype,"visible",void 0);
_.U([_.Z(),_.O("design:type",Object)],OI.prototype,"miniGuideItems",void 0);_.U([_.Z({selector:_.o7m}),_.O("design:type",Object)],OI.prototype,"allVideosCount",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],OI.prototype,"noLabels",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],OI.prototype,"frostedGlass",void 0);_.U([_.Cq("visible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OI.prototype,"visibleChanged",null);
_.U([_.Cq("data","allVideosCount"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OI.prototype,"dataChanged",null);_.U([_.Cq("activeEndpoint"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OI.prototype,"activeEndpointChanged",null);OI=_.U([_.T({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],OI);
_.q(OI,"ytd-mini-guide-renderer",function(){if(Sl$===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);Sl$=W}W=Sl$;return W},{mode:1});var QQt;var pb$=/^[\x00-\x7F]+$/,vHC=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(vHC,_.R);_.oq.Object.defineProperties(vHC.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,k=_.y4((W=this.data)==null?void 0:W.handle);if(k)return _.Go("@"+k)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.y4(this.displayHandle),k,C=_.y4((k=this.data)==null?void 0:k.handleUrl);if(W&&C)return _.Go(C+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.y4(this.displayHandle);if(W&&!pb$.test(W)){var k;return(k=this.data)==null?void 0:k.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.y4(this.displayHandleUrl),k,C=_.y4((k=this.data)==null?void 0:k.urlInfoText);if(W&&C)return _.Go(C+" "+W)}}});
var Lb=vHC;_.U([_.Z(),_.O("design:type",Object)],Lb.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lb.prototype,"displayHandle",null);_.U([_.G("displayHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lb.prototype,"displayHandleUrl",null);_.U([_.G("displayHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lb.prototype,"warningText",null);
_.U([_.G("displayHandleUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],Lb.prototype,"urlInfoTextWithUrl",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Lb.prototype,"darkerDarkTheme",void 0);Lb=_.U([_.T({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Lb);
_.q(Lb,"ytd-handles-claiming-confirm-dialog-content",function(){if(QQt!==void 0)return QQt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return QQt=W},{mode:1});var e4S;var sQ$=function(){var W=_.R.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.D(sQ$,_.R);sQ$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sQ$.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var js=sQ$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],js.prototype,"okButtonOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],js.prototype,"data",void 0);js=_.U([_.T({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],js);
_.q(js,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(e4S!==void 0)return e4S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return e4S=W},{mode:1});var GBC;var yN7=/^[\x00-\x7F]+$/,$OY=function(){var W=_.R.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D($OY,_.R);$OY.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.hA(this.hostElement,"yt-refit-popups-action")}};
_.oq.Object.defineProperties($OY.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Go("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Go(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!yN7.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
var Hu=$OY;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Hu.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hu.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],Hu.prototype,"selectedHandle",void 0);_.U([_.Z(),_.O("design:type",Object)],Hu.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Function)],Hu.prototype,"onSelectedHandleChanged",void 0);
_.U([_.gi("#channel-handle-input"),_.O("design:type",Object)],Hu.prototype,"handleInput",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Hu.prototype,"handleUrlPrefix",null);_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Hu.prototype,"displayHandle",null);_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Hu.prototype,"displayHandleUrl",null);
_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Hu.prototype,"warningText",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hu.prototype,"darkerDarkTheme",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);Hu=_.U([_.T({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Hu);
_.q(Hu,"ytd-handles-claiming-edit-dialog-content",function(){if(GBC!==void 0)return GBC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return GBC=W},{mode:1});var ZPT;var R4u=function(){var W=_.R.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(k){W.selectedHandle=k};
return W};
_.D(R4u,_.R);_.Y=R4u.prototype;_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.Y.onDataChanged=function(){var W,k;this.selectedHandle=(k=_.z((W=this.data)==null?void 0:W.inputField,lj6))==null?void 0:k.handle};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.selectedHandle="";_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var k;((k=this.data)==null?void 0:k.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(C,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.fm(W.hostElement,_.y4(n.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var N;if((N=W.data)==null?0:N.onChannelUpdateSuccess){C=W.data.onChannelUpdateSuccess;var B,A;if(n=(B=_.z(C,_.Eq))==null?void 0:(A=B.popup)==null?void 0:A.handlesClaimingConfirmDialogRenderer)n.handle=_.Go(W.selectedHandle);W.ytComponentBehavior.resolveCommand(C);_.KY(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var C;W.content&&((C=W.content)==null?0:C.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.fm(W.hostElement,_.w8("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var r_=R4u;r_.prototype.onDataChanged=r_.prototype.onDataChanged;r_.prototype.onSelectedHandleChanged=r_.prototype.onSelectedHandleChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],r_.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"actionButtonOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"cancelButtonOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",String)],r_.prototype,"selectedHandle",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"selectButtonDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"hasSelectedHandleEventListener",void 0);_.U([_.Z(),_.O("design:type",Object)],r_.prototype,"handleInput",void 0);
_.U([_.Hl("selectedHandle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],r_.prototype,"onSelectedHandleChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],r_.prototype,"onDataChanged",null);_.U([_.gi("ytd-handles-claiming-edit-dialog-content"),_.O("design:type",Object)],r_.prototype,"content",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);r_=_.U([_.T({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],r_);
_.q(r_,"ytd-handles-claiming-edit-dialog-renderer",function(){if(ZPT!==void 0)return ZPT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return ZPT=W},{mode:1});var oHY;var iPi=function(){return _.R.apply(this,arguments)||this};
_.D(iPi,_.R);_.oq.Object.defineProperties(iPi.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var k;return _.Go("@"+_.y4((k=this.data)==null?void 0:k.handle))}}}});
var g_=iPi;_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],g_.prototype,"formattedHandle",null);_.U([_.Z(),_.O("design:type",Object)],g_.prototype,"data",void 0);g_=_.U([_.T({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],g_);
_.q(g_,"ytd-handles-claiming-radio-option-renderer",function(){if(oHY!==void 0)return oHY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return oHY=W},{mode:1});var Tot;var ql6=/^[\x00-\x7F]+$/,Pu=function(){var W=_.R.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.D(Pu,_.R);Pu.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
Pu.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var k;this.selectedHandle=(k=this.handleInput)==null?void 0:k.value;this.onSelectedHandleChanged(W)}};
_.oq.Object.defineProperties(Pu.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Go("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Go(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ql6.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
var Kb=Pu;_.U([_.Z(),_.O("design:type",Object)],Kb.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Kb.prototype,"initialRadioIndex",void 0);_.U([_.Z(),_.O("design:type",Number)],Kb.prototype,"selectedRadioIndex",void 0);_.U([_.Z(),_.O("design:type",String)],Kb.prototype,"selectedHandle",void 0);_.U([_.Z(),_.O("design:type",Object)],Kb.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Function)],Kb.prototype,"onSelectedHandleChanged",void 0);
_.U([_.Z(),_.O("design:type",Function)],Kb.prototype,"onSelectedRadioIndexChanged",void 0);_.U([_.gi("#channel-handle-input"),_.O("design:type",Object)],Kb.prototype,"handleInput",void 0);_.U([_.gi("ytd-feedback-survey-renderer"),_.O("design:type",Object)],Kb.prototype,"feedbackSurveyRenderer",void 0);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],Kb.prototype,"radioButtonLength",null);
_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kb.prototype,"handleUrlPrefix",null);_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kb.prototype,"displayHandle",null);_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kb.prototype,"displayHandleUrl",null);_.U([_.G("selectedHandle"),_.O("design:type",Object),_.O("design:paramtypes",[])],Kb.prototype,"warningText",null);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Kb.prototype,"darkerDarkTheme",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);Kb=_.U([_.T({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Kb);
_.q(Kb,"ytd-handles-claiming-select-dialog-content",function(){if(Tot!==void 0)return Tot;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Tot=W},{mode:1});var u3E;var UOt=function(){var W=_.R.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(k){W.selectedRadioIndex=Number(k.detail.value)};
W.selectedHandleChanged=function(k){W.selectedHandle=k.detail.value};
W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(UOt,_.R);_.Y=UOt.prototype;_.Y.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.Y.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.hA(this.hostElement,"yt-refit-popups-action")};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var k;((k=this.data)==null?void 0:k.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(C,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.fm(W.hostElement,_.y4(n.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var N;if((N=W.data)==null?0:N.onChannelUpdateSuccess){C=W.data.onChannelUpdateSuccess;n=_.z(C,_.Eq);var B;if(n==null?0:(B=n.popup)==null?0:B.handlesClaimingConfirmDialogRenderer)n.popup.handlesClaimingConfirmDialogRenderer.handle=_.Go(W.selectedHandle);W.ytComponentBehavior.resolveCommand(C);_.KY(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var C;W.content&&((C=W.content)==null?0:C.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.fm(W.hostElement,_.w8("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,k;this.selectedHandle=(W=this.content)==null?void 0:(k=W.handleInput)==null?void 0:k.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.Y.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.z(this.data.radioButton[W],ePu)};
_.oq.Object.defineProperties(UOt.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
var hR=UOt;hR.prototype.onSelectedHandleChanged=hR.prototype.onSelectedHandleChanged;hR.prototype.onSelectedHandleIndexChanged=hR.prototype.onSelectedHandleIndexChanged;hR.prototype.onDataChanged=hR.prototype.onDataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],hR.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"actionButtonOverride",void 0);_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"cancelButtonOverride",void 0);
_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"initialRadioIndex",void 0);_.U([_.Z(),_.O("design:type",Number)],hR.prototype,"selectedRadioIndex",void 0);_.U([_.Z(),_.O("design:type",String)],hR.prototype,"selectedHandle",void 0);_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"selectButtonDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],hR.prototype,"isLoading",void 0);
_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],hR.prototype,"radioButtonLength",null);_.U([_.gi("ytd-handles-claiming-select-dialog-content"),_.O("design:type",Object)],hR.prototype,"content",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hR.prototype,"onDataChanged",null);
_.U([_.Hl("selectedRadioIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hR.prototype,"onSelectedHandleIndexChanged",null);_.U([_.Hl("selectedHandle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],hR.prototype,"onSelectedHandleChanged",null);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],hR.prototype,"darkerDarkTheme",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);hR=_.U([_.T({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],hR);
_.q(hR,"ytd-handles-claiming-select-dialog-renderer",function(){if(u3E!==void 0)return u3E;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return u3E=W},{mode:1});var OPB;var LbS;var jQC=function(){return _.R.apply(this,arguments)||this};
_.D(jQC,_.R);jQC.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var Wc=jQC;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wc.prototype,"data",void 0);Wc=_.U([_.T({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Wc);
_.q(Wc,"ytd-hotkey-dialog-section-option-renderer",function(){if(LbS!==void 0)return LbS;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return LbS=W},{mode:1});var HPC;var rNE=function(){return _.R.apply(this,arguments)||this};
_.D(rNE,_.R);rNE.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var kh=rNE;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kh.prototype,"data",void 0);kh=_.U([_.T({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],kh);
_.q(kh,"ytd-hotkey-dialog-section-renderer",function(){if(HPC!==void 0)return HPC;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return HPC=W},{mode:1});var gH7=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(gH7,_.R);gH7.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var CD=gH7;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],CD.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],CD.prototype,"darkerDarkTheme",void 0);CD=_.U([_.T({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],CD);
_.q(CD,"ytd-hotkey-dialog-content",function(){if(OPB!==void 0)return OPB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return OPB=W},{mode:1});var Po6;var KbS=function(){return _.R.apply(this,arguments)||this};
_.D(KbS,_.R);KbS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
KbS.prototype.onCloseTap=function(){_.KY(this.hostElement,"yt-close-popup-action")};
var nD=KbS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nD.prototype,"data",void 0);nD=_.U([_.T({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],nD);
_.q(nD,"ytd-hotkey-dialog-renderer",function(){if(Po6!==void 0)return Po6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Po6=W},{mode:1});var h4T;var N0=function(){return _.R.apply(this,arguments)||this};
_.D(N0,_.R);N0.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var k=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var C;k=(C=this.data)==null?void 0:C.toggledServiceEndpoint}var n;(k=(n=_.z(k,_.H_8))==null?void 0:n.onFailureAction)&&this.ytComponentBehavior.resolveCommand(k);this.updateBlockState(!this.blocked)};
N0.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
N0.prototype.updateBlockState=function(W){if(W!==this.blocked){var k=this.blockedEntityKey;k&&this.ytdReduxBehavior.dispatch(_.Nj("blockStateEntity",k,{key:k,blocked:W}));this.set("data.isToggled",W)}};
_.oq.Object.defineProperties(N0.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
var Yh=N0;Yh.prototype.onYtToggleButton=Yh.prototype.onYtToggleButton;Yh.prototype.onYtServiceRequestError=Yh.prototype.onYtServiceRequestError;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Yh.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Yh.prototype,"blockedEntityKey",void 0);
_.U([_.Z({selectorArgs:["blockedEntityKey"],selector:function(W,k){return _.hQ(W.entities,"blockStateEntity",k)}}),
_.O("design:type",Object)],Yh.prototype,"blockStateEntity",void 0);_.U([_.G("data","blockStateEntity"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Yh.prototype,"blocked",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Yh.prototype,"onYtServiceRequestError",null);
_.U([_.jI("yt-toggle-button"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Yh.prototype,"onYtToggleButton",null);Yh=_.U([_.T({is:"ytd-block-button",disableElementRegistration:!0})],Yh);
_.q(Yh,"ytd-block-button",function(){if(h4T!==void 0)return h4T;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return h4T=W},
{mode:1});var WvZ;var kUt;var C$S=function(){return _.R.apply(this,arguments)||this};
_.D(C$S,_.R);var Bc=C$S;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bc.prototype,"data",void 0);Bc=_.U([_.T({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Bc);
_.q(Bc,"ytd-kids-blocklist-picker-item-renderer",function(){if(kUt!==void 0)return kUt;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return kUt=W},{mode:1});var nyS=function(){return _.R.apply(this,arguments)||this};
_.D(nyS,_.R);nyS.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var bn=nyS;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bn.prototype,"data",void 0);bn=_.U([_.T({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],bn);
_.q(bn,"ytd-kids-blocklist-picker-content",function(){if(WvZ!==void 0)return WvZ;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return WvZ=
W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var NRA;var YGB=function(){var W=_.R.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.D(YGB,_.R);_.Y=YGB.prototype;_.Y.attached=function(){this.hostElement.setAttribute("dialog","")};
_.Y.onDoneButtonTap=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.Y.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.Y.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.Y.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.Y.onPopupClosed=function(W){var k,C;if(((k=W.detail)==null?void 0:(C=k.popup)==null?void 0:C.is)==="tp-yt-paper-dialog"){var n;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((n=this.data)==null?0:n.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.oY(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var Am=YGB;Am.prototype.onPopupClosed=Am.prototype.onPopupClosed;Am.prototype.onYtServiceRequestError=Am.prototype.onYtServiceRequestError;Am.prototype.onYtServiceRequestCompleted=Am.prototype.onYtServiceRequestCompleted;Am.prototype.onYtServiceRequestSent=Am.prototype.onYtServiceRequestSent;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Am.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],Am.prototype,"data",void 0);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Am.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Am.prototype,"onYtServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Am.prototype,"onYtServiceRequestError",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Am.prototype,"onPopupClosed",null);Am=_.U([_.T({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Am);
_.q(Am,"ytd-kids-blocklist-picker-renderer",function(){if(NRA!==void 0)return NRA;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return NRA=W},{mode:1});var BRu;var b1C;var FU=function(){return _.R.apply(this,arguments)||this};
_.D(FU,_.R);FU.prototype.setTip=function(W){var k=this;this.data&&(this.tip=zSB(d6Z.getInstance(),W,this.data),_.ZR(this,function(){_.Pe(k.hostElement,"yt-refit")}))};
FU.prototype.clearTip=function(){this.tip=void 0};
FU.prototype.computeHidden=function(W){return!W};
var wM=FU;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],wM.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.O("design:type",Boolean)],wM.prototype,"hidden",void 0);_.U([_.Z(),_.O("design:type",Object)],wM.prototype,"tip",void 0);wM=_.U([_.T({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],wM);
_.q(wM,"ytd-menu-popup-tip-renderer",function(){if(b1C!==void 0)return b1C;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);
return b1C=W},{mode:1});var AXE;var FvE=function(){var W=_.R.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.m("kevlar_system_icons");W.useListItemStyles=_.m("web_list_item_style_for_menu_items");return W};
_.D(FvE,_.R);_.Y=FvE.prototype;_.Y.onFocus=function(){var W;(W=_.S(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.Y.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.z(W,_.Nl))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}});var k;((k=_.z(W,_.AQ))==null?void 0:k.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.Y.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.Y.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.Y.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,k=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.Nj("toggleMenuServiceItemEntity",W,{key:W,isToggled:k}))};
_.Y.computeIcon=function(W,k,C){return(W=W?C:k)&&W.iconType?_.Hp(W.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.isIconActive=function(W){return!_.m("toggle_menu_active_icon_killswitch")&&W};
_.oq.Object.defineProperties(FvE.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?0:W.isToggled)?(k=this.data)==null?void 0:k.toggledText:(C=this.data)==null?void 0:C.defaultText}}});
var xh=FvE;xh.prototype.toggledStateEntityChanged=xh.prototype.toggledStateEntityChanged;xh.prototype.onYtServiceRequestCompleted=xh.prototype.onYtServiceRequestCompleted;xh.prototype.onTap=xh.prototype.onTap;xh.prototype.onFocus=xh.prototype.onFocus;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],xh.prototype,"componentBehavior",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],xh.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xh.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xh.prototype,"useIcons",void 0);_.U([_.Z({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.O("design:type",String)],xh.prototype,"icon",void 0);
_.U([_.Z({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,k){return _.hQ(W.entities,"toggleMenuServiceItemEntity",k)}}),
_.O("design:type",Object)],xh.prototype,"toggleMenuServiceItemEntity",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xh.prototype,"systemIcons",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],xh.prototype,"useListItemStyles",void 0);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xh.prototype,"onFocus",null);
_.U([_.G("data.isToggled"),_.O("design:type",Object),_.O("design:paramtypes",[])],xh.prototype,"toggleButtonText",null);_.U([_.jI("tap"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xh.prototype,"onTap",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xh.prototype,"onYtServiceRequestCompleted",null);
_.U([_.Hl("toggleMenuServiceItemEntity.isToggled","data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],xh.prototype,"toggledStateEntityChanged",null);xh=_.U([_.T({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],xh);
_.q(xh,"ytd-toggle-menu-service-item-renderer",function(){if(AXE!==void 0)return AXE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return AXE=W},{mode:1});var wPA;var xGT=function(){return _.R.apply(this,arguments)||this};
_.D(xGT,_.R);xGT.prototype.onFocus=function(){var W;(W=_.S(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.oq.Object.defineProperties(xGT.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.QG(this.data.iconUrl)}}});
var ln=xGT;ln.prototype.onFocus=ln.prototype.onFocus;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ln.prototype,"rendererBehavior",void 0);_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],ln.prototype,"ytEndpointBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ln.prototype,"data",void 0);_.U([_.jI("focus"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ln.prototype,"onFocus",null);
_.U([_.G("data.iconUrl"),_.O("design:type",Object),_.O("design:paramtypes",[])],ln.prototype,"imageSource",null);ln=_.U([_.T({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],ln);
_.q(ln,"ytd-menu-custom-icon-item-renderer",function(){if(wPA!==void 0)return wPA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return wPA=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});_.Gj(_.Bd,"yt-list-item-view-model",{props:{data:_.Ik,isMenuItem:_.Ik,isCompact:_.Ik,onTap:_.si,trailingAccessory:_.Ik,hideSelectionTextChevron:_.Ik,disabled:_.Ik,inPopup:_.Ik,disableHorizontalPadding:_.Ik,isOverlay:_.Ik}});var lM7=function(){var W=_.R.apply(this,arguments)||this;W.disableBackdropFilter=_.m("web_disable_backdrop_filter");return W};
_.D(lM7,_.R);_.Y=lM7.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.Y.computeAriaLabel=function(W){return W};
_.Y.onPopupOpened=function(){this.items.selected=0;for(var W=_.b(_.S(this.items).children),k=W.next();!k.done;k=W.next())k.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.VM())&&_.yb(W,[this.veData])};
_.Y.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.Y.onIronActivate=function(W){this.shouldPersist(W)||_.KY(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.VM())&&_.Zr(W,this.veData)};
_.Y.shouldPersist=function(W){var k,C;if(((k=W.detail)==null?void 0:k.selected)===void 0||(C=this.data)==null||!C.items)return!1;var n,N;return!((N=(n=this.data.items[W.detail.selected])==null?void 0:n.toggleMenuServiceItemRenderer)==null||!N.persistentOnMenuPopup)};
_.Y.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var tm=lM7;tm.prototype.onPopupClosed=tm.prototype.onPopupClosed;tm.prototype.onPopupOpened=tm.prototype.onPopupOpened;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],tm.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],tm.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],tm.prototype,"veData",void 0);_.U([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.O("design:type",String)],tm.prototype,"ariaLabel",void 0);_.U([_.Z({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],tm.prototype,"useIcons",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],tm.prototype,"disableBackdropFilter",void 0);_.U([_.gi("#items"),_.O("design:type",Object)],tm.prototype,"items",void 0);_.U([_.gi("ytd-menu-popup-tip-renderer"),_.O("design:type",Object)],tm.prototype,"popupTip",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tm.prototype,"onPopupOpened",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],tm.prototype,"onPopupClosed",null);tm=_.U([_.T({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],tm);
_.q(tm,"ytd-menu-popup-renderer",function(){if(BRu!==void 0)return BRu;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return BRu=W},{mode:1});var tEE;var EyB=_.GM(function(W){W=_.vp(W,{icon:void 0});var k=W.data;W=W.icon;var C=function(){return k().iconBadgeText},n={},N=_.Li("yt-spec-icon-badge-shape",function(){a:switch(k().iconBadgeType){case "notification":var B="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":B="yt-spec-icon-badge-shape--type-cart";break a;default:B=""}return B},function(){a:switch(k().iconBadgeStyle){case "overlay":var B="yt-spec-icon-badge-shape--style-overlay";
break a;default:B=""}return B},(n["yt-spec-icon-badge-shape--text-size-small"]=function(){var B=C();
return!!((B==null?0:B.length)&&B.length>2)},n));
return _.t("yt-icon-badge-shape",null,_.t(_.NI,{cond:W,then:function(B){return _.t("div",{class:N},_.t("div",{class:"yt-spec-icon-badge-shape__icon"},_.t(_.ka,{icon:B})),_.t(_.NI,{cond:C,then:function(A){return _.t("div",{class:"yt-spec-icon-badge-shape__badge"},A)}}))}}))},"Pf");
EyB.idomCompat=!0;_.Gj(EyB,"yt-icon-badge-shape",{props:{data:_.Ik,icon:_.Ik}});var aM7=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.D(aM7,_.R);_.Y=aM7.prototype;_.Y.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(k){W.onServiceWorkerMessage(k)})};
_.Y.onDataChanged=function(){this.isAttached&&!this.JSC$18080_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18080_lastData=this.data};
_.Y.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.computeIcon=function(){var W,k;return(W=this.data)==null?void 0:(k=W.icon)==null?void 0:k.iconType};
_.Y.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.Y.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.z(this.data.updateUnseenCountEndpoint,_.AQ)&&_.z(this.data.updateUnseenCountEndpoint,_.AQ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.Y.handleUpdateNotificationsUnseenCountAction=function(W){var k=this;W=_.z(W,mYS);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.aM.addLowPriorityJob(function(){k.data.updateUnseenCountEndpoint&&k.ytComponentBehavior.resolveCommand(k.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.Y.onClick=function(){_.Pe(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.hA(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),k=this.data.menuRequest;W&&W.length===1&&W[0]?_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):k&&this.ytComponentBehavior.resolveCommand(k)};
_.Y.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.Y.sendUnseenCountRequest=function(W){var k=this;_.wI(_.aM,function(){k.ytComponentBehavior.resolveCommand(W)})};
_.Y.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.oq.Object.defineProperties(aM7.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var EW=aM7;EW.prototype.handleUpdateNotificationsUnseenCountAction=EW.prototype.handleUpdateNotificationsUnseenCountAction;EW.prototype.onDataChanged=EW.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.vL),_.O("design:type",Object)],EW.prototype,"ytdOpenPopupBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],EW.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],EW.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],EW.prototype,"unseenCount",void 0);_.U([_.Z(),_.O("design:type",Object)],EW.prototype,"isOverlay",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],EW.prototype,"showTooltips",void 0);_.U([_.gi("yt-icon-button"),_.O("design:type",Object)],EW.prototype,"iconButton",void 0);
_.U([_.G("unseenCount"),_.O("design:type",Object),_.O("design:paramtypes",[])],EW.prototype,"showNotificationCount",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EW.prototype,"onDataChanged",null);_.U([_.jI("yt-update-notifications-unseen-count-action"),_.O("design:type",Function),_.O("design:paramtypes",[Object]),_.O("design:returntype")],EW.prototype,"handleUpdateNotificationsUnseenCountAction",null);
EW=_.U([_.T({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],EW);
_.q(EW,"ytd-notification-topbar-button-renderer",function(){if(tEE!==void 0)return tEE;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return tEE=W},{mode:_.UC("kevlar_poly_si_batch_j025")?1:2});var XPt;var a0=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.D(a0,_.R);a0.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}}}}}};
a0.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
a0.prototype.onDarkModeToggled=function(W){this.dark=W};
var XU=a0;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],XU.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],XU.prototype,"data",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],XU.prototype,"dark",void 0);
XU=_.U([_.T({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],XU);
_.q(XU,"yt-pdg-buy-flow-header-renderer",function(){if(XPt!==void 0)return XPt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return XPt=W},{mode:1});var fMA;var dG7;var mGY=function(){var W=_.R.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(mGY,_.R);_.Y=mGY.prototype;_.Y.created=function(){_.Q8.requestAvailability()};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.dataChanged=function(){var W=_.S(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.Op(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Xi(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.DE("HTML_DIR")==="rtl"&&_.S(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.Y.onSliderImmediateChange=function(){var W=_.S(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.Y.onSliderChange=function(){var W=_.S(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.Y.updateSliderAria=function(){var W=_.S(this.hostElement).querySelector("#color-slider"),k=_.S(this.hostElement).querySelector("#color-slider");k=_.y4(this.data.notches[k.immediateValue].tierValue);_.Fmm()&&_.Pe(this.hostElement,"iron-announce",{text:k});W.setAttribute("aria-valuetext",k)};
_.Y.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var k,C,n=this==null?void 0:(k=this.data)==null?void 0:(C=k.superThanksSelectedTierEntity)==null?void 0:C.key;n&&n.length>0&&this.ytdReduxBehavior.dispatch(_.Nj("superThanksSelectedTierEntity",n,{key:n,index:W}))}};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var k={"--ytd-pdg-color-slider-knob-color":_.Xi(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&k!==null&&(k=Object.assign({},k,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));k!==null&&_.Op(this.hostElement,k)};
var fD=mGY;fD.prototype.onSliderChange=fD.prototype.onSliderChange;fD.prototype.onSliderImmediateChange=fD.prototype.onSliderImmediateChange;fD.prototype.dataChanged=fD.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],fD.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],fD.prototype,"immediateValue",void 0);_.U([_.Z(),_.O("design:type",Number)],fD.prototype,"maxMarkers",void 0);
_.U([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:B7C}),_.O("design:type",Object)],fD.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],fD.prototype,"isDarkTheme",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],fD.prototype,"ytdReduxBehavior",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fD.prototype,"dataChanged",null);
_.U([_.jI("immediate-value-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fD.prototype,"onSliderImmediateChange",null);_.U([_.jI("change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],fD.prototype,"onSliderChange",null);fD=_.U([_.T({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],fD);
_.q(fD,"ytd-pdg-color-slider-renderer",function(){if(dG7!==void 0)return dG7;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return dG7=W},{mode:1});var zGY;var DGi;var dM=null;
_.Av({is:"ytd-comment-input",_template:function(){if(DGi!==void 0)return DGi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return DGi=W},
behaviors:[_.IU2.YtHostElementBehavior,_.wS,_.dh.YtComponentBehavior,_.ym.YtRendererstamperBehavior,_.TRA.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 _.Dp}},
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",_.LO(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;_.kM();this.focus()},
detached:function(){document.removeEventListener("tap",_.LO(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var k=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(k,W);this.maybeUpdateTextDirection_();_.Pe(this.hostElement,"input")},
getInputRange_:function(){var W=_.xx();if(W){W=W.getBrowserRangeObject();for(var k=W.commonAncestorContainer;k;){if(k===this.getEditableTextArea_())return W;k=k.parentNode}}W=this.getEditableTextArea_();W=_.cF(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,k,C){(k=this.emojiManager.createDocumentFragment(k,!0,!1,C===void 0?!0:C))&&k.childNodes.length!==0&&(W.collapsed||W.deleteContents(),C=k.lastChild,W.insertNode(k),_.zUs(C).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.xx();if(W){var k=W.JSC$9112_getStartNode(),C=W.JSC$9112_getEndNode();if(jU7(k)&&jU7(C)){var n=W.JSC$9112_getStartOffset(),N;if(_.Y4&&k.nodeType===Node.ELEMENT_NODE&&(N=_.bLs(k)))_.cF(N,0).select();else{N=qW(k)?k:_.vD(k,qW);var B=qW(C)?C:_.vD(C,qW);if(N||B)if(W.isCollapsed()){if(k.nodeType===Node.TEXT_NODE){W=!0;n===k.length&&(W=!1);if(dM==="end"||dM==="right")W=!1;k=k.parentNode;W=[].concat(_.J8(k.parentNode.childNodes)).indexOf(k)+(W?0:1);_.cF(k.parentNode,W).select()}}else N?
N.previousSibling&&N.previousSibling.length>0?_.Iy(C,W.JSC$9112_getEndOffset(),N.previousSibling,N.previousSibling.length-1).select():(k=document.createTextNode("\u200b"),N.parentNode.insertBefore(k,N),_.Iy(C,W.JSC$9112_getEndOffset(),k,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.Iy(k,W.JSC$9112_getStartOffset(),B.nextSibling,1).select():(C=document.createTextNode("\u200b"),B.parentNode.insertBefore(C,B.nextSibling),_.Iy(k,W.JSC$9112_getStartOffset(),C,C.length).select()));dM=null}}else dM=
null}else dM=null},
leftKeyPressed_:function(){dM="left"},
rightKeyPressed_:function(){dM="right"},
endKeyPressed_:function(){dM="end"},
maybeDeleteChip_:function(){var W=hmi(!0);if(W){var k=_.xx(),C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();_.mF(C,k,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=hmi(!1);if(W){var k=_.xx(),C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();_.mF(C,k,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var k=_.xx();if(k.isCollapsed()){var C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();var n=WGt(C,k,!0);n&&(_.mF(C,k,n,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var k=_.xx();if(k.isCollapsed()){var C=k.JSC$9112_getStartNode();k=k.JSC$9112_getStartOffset();var n=WGt(C,k,!1);n&&(_.mF(C,k,n,n.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&qW(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.S(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.S(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(W,k){W=rp7(W,this.emojiManager,k).cloneNode(!0);for(k=W.firstChild;k;)if(k.nodeType!==1)k=k.nextSibling;else switch(k.tagName){case "BR":var C=_.D8();_.alb(C,k);k=C.nextSibling;break;case "DIV":(C=k.lastChild)&&k.nextSibling&&_.IH(_.D8(),C);k.previousSibling&&(k.previousSibling.nodeType===1||k.previousSibling.nodeType===3&&!k.previousSibling.textContent.endsWith("\n"))&&_.cT(_.D8(),k);C&&C.nodeName==="BR"&&_.xL(C);C=k;k.hasChildNodes()?(k=k.firstChild,
_.X6C(C)):(k=k.nextSibling,_.xL(C));break;default:k=k.nextSibling}return kKE(W)},
setTextAreaValue:function(W){W||(W="");var k=this.getEditableFormattedString_();k.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});k.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();dM=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.cF(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.DE("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),k=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",k)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var k=this.getInputRange_();k&&(W=this.emojiInput.retrieveTextBeforeRange(k))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.Pe(this.hostElement,"input"))},
insertText_:function(W,k,C){k=k===void 0?!1:k;C=C===void 0?!0:C;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(k&&this.emojiInput.offsetStartOfRangeBy(n,W.length),this.insertTextWithEmojis_(n,W,C),HrT(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,W),this.updateSuggestionOffset_(n)))}},
getSimpleString:_.y4,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,k){W?this.fire("yt-autonav-pause-focus"):k!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var k=this.getEditableTextArea_();[].concat(_.J8(W.dataTransfer.items)).forEach(function(C){C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(n){k.appendChild(document.createTextNode(n))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.S(this.emojiInput).querySelector("#dropdown")){var k=this.getEditableTextArea_().getBoundingClientRect().bottom,C=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(k-C)+5;k=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-k;_.S(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.D3("yt-post"));return this.localStorage}});var VEB=function(){var W=_.R.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.Dp;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.Pe(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(k){k.preventDefault();k.stopImmediatePropagation();var C;if(k=(C=k.clipboardData)==null?void 0:C.getData("text/plain"))C=document.getSelection().getRangeAt(0),C.collapsed||C.deleteContents(),k=document.createTextNode(k),C.insertNode(k),C.selectNodeContents(k),C.collapse(!1),k=window.getSelection(),k.removeAllRanges(),k.addRange(C)};
W.onDocumentClick=function(k){if(W.isEmojiPickerDisplayed){var C,n,N;!(k.target instanceof Node)||(C=k.composedPath())!=null&&C.includes(W.editableTextEl)||(n=k.composedPath())!=null&&n.includes(W.emojiButtonEl)||(N=k.composedPath())!=null&&N.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.D(VEB,_.R);_.Y=VEB.prototype;_.Y.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.Y.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.Y.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var k;(k=this.contentEl)==null||k.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.Y.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.Y.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.Y.reloadEmojis=function(){this.emojiPickerEl&&_.z(this.emojiPicker,_.YnC)&&this.emojiPickerEl.updateEmojiCategories()};
_.Y.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Op(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.Y.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var k;_.Op(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Xi((k=this.currentCommentOption)==null?void 0:k.commentBackgroundColorArgb)})}else _.Op(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.Y.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.Y.onEditButtonClick=function(W){var k=document.getSelection();k&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),k.selectAllChildren(this.contentEl),k.collapseToEnd())};
_.Y.onContentDrop=function(W){var k=this;if(W.dataTransfer){W=_.b(W.dataTransfer.items);for(var C=W.next();!C.done;C=W.next())C=C.value,C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(n){var N;(N=k.contentEl)==null||N.appendChild(document.createTextNode(n))})}};
_.Y.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.Y.getUserGeneratedCommentText=function(){var W,k=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return k?k.trim():""};
_.Y.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.Y.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.oq.Object.defineProperties(VEB.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.z((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.anS)){var k;return _.z((k=this.currentCommentOption)==null?void 0:k.chipRenderer,_.anS)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,k;return((W=this.data)==null?0:W.commentOptionRenderers)?_.z((k=this.data)==null?void 0:k.commentOptionRenderers[this.superThanksSelectedTierEntity.index],rZ6):void 0}var C,n;return((C=this.data)==null?0:C.commentOptionRenderers)?_.z((n=this.data)==null?void 0:n.commentOptionRenderers[this.currentCommentOptionIndex],rZ6):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.commentDialog,_.kcs))==null?void 0:k.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.commentDialog,_.kcs))==null?void 0:k.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=_.z((W=this.data)==null?void 0:W.commentDialog,_.kcs))==null?void 0:k.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(k=_.z((W=this.data)==null?void 0:W.commentDialog,_.kcs))==null?void 0:k.emojiPicker;if(!_.z(C,_.YnC)||!_.z(C,_.YnC).categories)return!1;W=function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var n,N;return((n=_.z(C,_.YnC))==null?0:(N=n.categories)==null?0:N.find(W))?!0:!1}}});
var mM=VEB;mM.prototype.onEmojiSelect=mM.prototype.onEmojiSelect;mM.prototype.dataChanged=mM.prototype.dataChanged;mM.prototype.currentCommentOptionChanged=mM.prototype.currentCommentOptionChanged;_.U([_.v(_.fk),_.O("design:type",Object)],mM.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],mM.prototype,"rendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gi("#content-dom-if"),_.O("design:type",_.wH)],mM.prototype,"contentDomIfEl",void 0);_.U([_.gi("#content-no-emojis"),_.O("design:type",HTMLElement)],mM.prototype,"contentEl",void 0);_.U([_.gi("#container"),_.O("design:type",HTMLElement)],mM.prototype,"containerEl",void 0);_.U([_.gi("#comment-chip-container"),_.O("design:type",HTMLElement)],mM.prototype,"paidCommentChipContainerEl",void 0);_.U([_.gi("#text-input"),_.O("design:type",HTMLElement)],mM.prototype,"editableTextEl",void 0);
_.U([_.gi("#emoji-button"),_.O("design:type",HTMLElement)],mM.prototype,"emojiButtonEl",void 0);_.U([_.gi("#emoji-picker > yt-emoji-picker-renderer"),_.O("design:type",Object)],mM.prototype,"emojiPickerEl",void 0);_.U([_.gi("#text-input > ytd-comment-input"),_.O("design:type",Object)],mM.prototype,"ytdCommentInputEl",void 0);_.U([_.Z(),_.O("design:type",Object)],mM.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],mM.prototype,"currentCommentOptionIndex",void 0);
_.U([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:B7C}),_.O("design:type",Object)],mM.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.Z(),_.O("design:type",Object)],mM.prototype,"isEmojiPickerDisplayed",void 0);_.U([_.Z(),_.O("design:type",Object)],mM.prototype,"emojiManager",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],mM.prototype,"isUgcEmpty",void 0);
_.U([_.Hl("currentCommentOption"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mM.prototype,"currentCommentOptionChanged",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],mM.prototype,"dataChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"isEmojiYtdCommentInputEnabled",null);
_.U([_.G("data.title"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"title",null);_.U([_.G("data.authorText"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"channelName",null);_.U([_.G("data.commentOptionRenderers","currentCommentOption"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"shouldShowPaidCommentChipRenderer",null);
_.U([_.G("data.commentOptionRenderers","currentCommentOption"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"paidCommentChipRenderer",null);_.U([_.G("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"currentCommentOption",null);
_.U([_.G("data.defaultCommentText","superThanksSelectedTierEntity"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"commentText",null);_.U([_.G("data.placeholderText"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"placeholderText",null);_.U([_.G("data.commentDialog.commentDialogRenderer.editableText"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"editableText",null);
_.U([_.G("data.commentDialog.commentDialogRenderer.emojiButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"emojiButton",null);_.U([_.G("data.commentDialog.commentDialogRenderer.emojiPicker"),_.O("design:type",Object),_.O("design:paramtypes",[])],mM.prototype,"emojiPicker",null);
_.U([_.G("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],mM.prototype,"isEmojiButtonDisplayed",null);_.U([_.jI("yt-emoji-select"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],mM.prototype,"onEmojiSelect",null);mM=_.U([_.T({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],mM);
_.q(mM,"ytd-pdg-comment-preview-renderer",function(){if(zGY!==void 0)return zGY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return zGY=W},{mode:2});var JXi;var cX1=function(){var W=_.R.apply(this,arguments)||this;W.selected=!1;return W};
_.D(cX1,_.R);_.Y=cX1.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.Y.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.Y.dataChanged=function(){this.data&&(_.Ty(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Op(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Xi(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Xi(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.Y.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.Y.onClick=function(){this.logClick()};
_.Y.onKeyboardSelect=function(){_.Pe(this.hostElement,"tap");this.onClick()};
_.Y.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var GH=cX1;GH.prototype.onClick=GH.prototype.onClick;GH.prototype.selectedChanged=GH.prototype.selectedChanged;GH.prototype.dataChanged=GH.prototype.dataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],GH.prototype,"componentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.wS),_.O("design:type",Object)],GH.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.v(_.Jv),_.O("design:type",Object)],GH.prototype,"ironSelectableBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],GH.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],GH.prototype,"shownThumbnail",void 0);_.U([_.Z(),_.O("design:type",Object)],GH.prototype,"basePriceText",void 0);_.U([_.Z(),_.O("design:type",Object)],GH.prototype,"purchaseCommand",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],GH.prototype,"selected",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GH.prototype,"dataChanged",null);_.U([_.Hl("selected"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GH.prototype,"selectedChanged",null);_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],GH.prototype,"onClick",null);
GH=_.U([_.T({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],GH);
_.q(GH,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(JXi!==void 0)return JXi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JXi=W},{mode:1});var IMB=function(){var W=_.R.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.D(IMB,_.R);_.Y=IMB.prototype;
_.Y.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]]"}}}}}};
_.Y.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var k=(W=_.z(this.data.colorSlider,HuC))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var C;k=(C=_.z(this.data.selectableItemButtons[this.selectedItemIndex],Pj7))==null?void 0:C.purchaseCommand}if(k){W=_.z(k,_.skA);W.productData||(W.productData={});var n;W.productData={pdgData:{commentMessageText:(n=this.commentPreviewRenderer)==null?void 0:n.getUserGeneratedCommentText()}};
_.Pe(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(k)}}};
_.Y.dataChanged=function(){if(this.data){_.Dp.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.JIz(_.Dp,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Dp.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.z(this.data.commentPreview,g87))==null||!W.placeholderText);this.updatePriceSelectorStatus();var k;if((k=this.data)==null?0:k.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(C){return _.yI(C.thumbnails,1920)});
W=_.b(W);for(k=W.next();!k.done;k=W.next())(k=k.value)&&_.pbc(k).thenCatch(function(){_.zJ(Error("kl"))})}};
_.Y.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.Y.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.Y.updatePriceSelectorStatus=function(){this.isColorSlider?(_.S(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.S(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.S(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.S(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.Y.closeBuyFlow=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.Y.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.Y.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.oq.Object.defineProperties(IMB.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
var y5=IMB;y5.prototype.onUserGeneratedContentChanged=y5.prototype.onUserGeneratedContentChanged;y5.prototype.closeBuyFlow=y5.prototype.closeBuyFlow;y5.prototype.selectedItemIndexChanged=y5.prototype.selectedItemIndexChanged;y5.prototype.superThanksSelectedTierEntityChanged=y5.prototype.superThanksSelectedTierEntityChanged;y5.prototype.dataChanged=y5.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],y5.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],y5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],y5.prototype,"selectedItemIndex",void 0);_.U([_.Z(),_.O("design:type",Boolean)],y5.prototype,"isColorSlider",void 0);
_.U([_.Z(),_.O("design:type",Object)],y5.prototype,"buyButtonDisabled",void 0);_.U([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:B7C}),_.O("design:type",Object)],y5.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.gi("ytd-pdg-comment-preview-renderer"),_.O("design:type",Object)],y5.prototype,"commentPreviewRenderer",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y5.prototype,"dataChanged",null);_.U([_.Hl("superThanksSelectedTierEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y5.prototype,"superThanksSelectedTierEntityChanged",null);_.U([_.Hl("selectedItemIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y5.prototype,"selectedItemIndexChanged",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y5.prototype,"closeBuyFlow",null);_.U([_.jI("ytd-pdg-user-generated-comment-changed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],y5.prototype,"onUserGeneratedContentChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],y5.prototype,"isDisclaimerTextShown",null);
y5=_.U([_.T({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],y5);
_.q(y5,"yt-super-vod-buy-flow-content-renderer",function(){if(fMA!==void 0)return fMA;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return fMA=W},{mode:1});var SGA;var MES=function(){var W=_.R.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.D(MES,_.R);_.Y=MES.prototype;_.Y.created=function(){_.Q8.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.LO(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.Y.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Pe(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.Y.detached=function(){this.autoCloseJobId&&_.aM.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.LO(this,this.onPopupIronOverlayOpened))};
_.Y.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.KY(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.oE(_.aM,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Op(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.Y.onDOMLoadedLottie=function(){var W=this,k,C,n=Number((k=this.data)==null?void 0:(C=k.autoCloseDelay)==null?void 0:C.seconds)||0;this.fadeOutJobId=_.oE(_.aM,function(){W.lottiePlayerEl.classList.add("fadeout")},(n-.25)*1E3);
this.autoCloseJobId=_.oE(_.aM,function(){W.closePopup()},n*1E3)};
_.Y.openPopup=function(){this.ironOverlayBehavior.open()};
_.Y.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.KY(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.CB(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.f().resolve(_.uI).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.aM.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.aM.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.Y.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,k;(W=this.lottieAnimationRef)==null||(k=W.lottieEl)==null||k.destroy();W=this.data.lottie;var C,n;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(n=(C=W.settings)==null?void 0:C.loop)!=null?n:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.oq.Object.defineProperties(MES.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,k;return!!((W=this.data)==null?0:(k=W.lottie)==null?0:k.url)}}});
var $h=MES;$h.prototype.maybeInitializeLottie=$h.prototype.maybeInitializeLottie;$h.prototype.dataChanged=$h.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],$h.prototype,"rendererBehavior",void 0);_.U([_.v(_.Gu),_.O("design:type",Object)],$h.prototype,"ironOverlayBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],$h.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],$h.prototype,"lottiePlayerProps",void 0);
_.U([_.Z(),_.O("design:type",Object)],$h.prototype,"lottieAnimationRef",void 0);_.U([_.gi("ytd-lottie-player"),_.O("design:type",HTMLElement)],$h.prototype,"lottiePlayerEl",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$h.prototype,"dataChanged",null);_.U([_.G("data"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],$h.prototype,"hasLottieAnimation",null);
_.U([_.Hl("data.lottie.url"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],$h.prototype,"maybeInitializeLottie",null);$h=_.U([_.T({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],$h);
_.q($h,"ytd-desktop-image-overlay-renderer",function(){if(SGA!==void 0)return SGA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return SGA=W},{mode:1});var QfA;var pPT=function(){return _.R.apply(this,arguments)||this};
_.D(pPT,_.R);_.Y=pPT.prototype;_.Y.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"}}}}};
_.Y.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",_.LO(this,this.closePopup))};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.LO(this,this.closePopup))};
_.Y.dataChanged=function(){_.hA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.z(this.data.header,jtu)&&(this.hasBackgroundBanner=!!_.z(this.data.header,jtu).backgroundBanner)};
_.Y.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.LO(this,this.closePopup))};
_.Y.closePopup=function(){this.data&&this.data.onCloseCommand&&_.kQ(this.hostElement,[this.data.onCloseCommand])};
var ZS=pPT;ZS.prototype.handleBuyflowSelectionSubmitted=ZS.prototype.handleBuyflowSelectionSubmitted;ZS.prototype.dataChanged=ZS.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],ZS.prototype,"data",void 0);
_.U([_.Z({value:!0,reflectToAttribute:!0}),_.O("design:type",Boolean)],ZS.prototype,"hasBackgroundBanner",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZS.prototype,"dataChanged",null);_.U([_.jI("yt-pdg-buy-flow-selection-submitted"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ZS.prototype,"handleBuyflowSelectionSubmitted",null);
ZS=_.U([_.T({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ZS);
_.q(ZS,"ytd-pdg-buy-flow-renderer",function(){if(QfA!==void 0)return QfA;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return QfA=W},{mode:1});var vy$;var eGE=function(){var W=_.R.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.D(eGE,_.R);_.Y=eGE.prototype;_.Y.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.Y.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Pe(this.hostElement,"yt-refit")};
_.Y.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.kQ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(k,C){if(!_.m("killswitch_ep_in_create_playlist_response")&&(C==null?0:C.actions))for(k=_.b(C.actions),C=k.next();!C.done;C=k.next())C=C.value,_.z(C,_.cq)&&W.ytComponentBehavior.resolveCommand(C)}}]),this.isPlaylistCreated=!0)};
_.Y.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.Y.onServiceRequestCompleted=function(W){W.stopPropagation();_.KY(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Y.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
var R0=eGE;R0.prototype.onServiceRequestCompleted=R0.prototype.onServiceRequestCompleted;R0.prototype.onKeydown=R0.prototype.onKeydown;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],R0.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],R0.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],R0.prototype,"isOpen",void 0);
_.U([_.Z(),_.O("design:type",Object)],R0.prototype,"isPlaylistCreated",void 0);_.U([_.Z({value:{REQUIRED_LABEL:_.w8("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.w8("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.O("design:type",Object)],R0.prototype,"addToStrings",void 0);_.U([_.Z({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.O("design:type",Array)],R0.prototype,"privacyBadge",void 0);
_.U([_.gi("#privacy-input"),_.O("design:type",Object)],R0.prototype,"privacyInput",void 0);_.U([_.gi("#name-input"),_.O("design:type",Object)],R0.prototype,"nameInput",void 0);_.U([_.jI("keydown"),_.O("design:type",Function),_.O("design:paramtypes",[KeyboardEvent]),_.O("design:returntype")],R0.prototype,"onKeydown",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],R0.prototype,"onServiceRequestCompleted",null);
R0=_.U([_.T({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],R0);
_.q(R0,"ytd-add-to-playlist-create-renderer",function(){if(vy$!==void 0)return vy$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return vy$=W},{mode:1});var sfB;var GUA;var o0=function(){var W=_.R.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.D(o0,_.R);o0.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
o0.prototype.onCheckboxChange=function(W){var k=this;this.data&&_.Dy(this,"yt-playlist-checkbox-changed",function(){var C=_.eI(W).checked?k.data.addToPlaylistServiceEndpoint:k.data.removeFromPlaylistServiceEndpoint;C&&_.f().resolve(_.uI).resolveCommand(C,{form:{element:k.hostElement}});_.m("dl_playlist_killswitch")||k.transferState!=="TRANSFER_STATE_UNKNOWN"&&k.transferState!=="TRANSFER_STATE_FAILED"&&k.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:k.data.playlistId,action:"ACTION_SYNC"}})},
100)};
o0.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
var TH=o0;TH.prototype.dataChanged=TH.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],TH.prototype,"data",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],TH.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.U([_.gi("#checkbox"),_.O("design:type",HTMLInputElement)],TH.prototype,"checkbox",void 0);
_.U([_.Z({selector:_.Je,selectorArgs:["data.playlistId"]}),_.O("design:type",String)],TH.prototype,"transferState",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],TH.prototype,"dataChanged",null);TH=_.U([_.T({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],TH);
_.q(TH,"ytd-playlist-add-to-option-renderer",function(){if(GUA!==void 0)return GUA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return GUA=W},{mode:1});_.UK(C1Y);_.qN(C1Y,"ytd-menu-title-renderer",{propNames:["data"]});var yX$=function(){var W=_.R.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.w8("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.w8("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.m("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.D(yX$,_.R);_.Y=yX$.prototype;_.Y.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"}}}};
_.Y.onPopupOpened=function(){_.qw(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.Y.onPopupClosed=function(){_.qw(this.playlists,"scrollable",!1)};
_.Y.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.b(this.data.actions);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.menuTitleRenderer)return _.y4(k.menuTitleRenderer.title)}};
_.Y.onTapClose=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.oq.Object.defineProperties(yX$.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.b(this.data.actions);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.menuTitleRenderer)return k.menuTitleRenderer}return!1}}});
var q0=yX$;q0.prototype.onPopupClosed=q0.prototype.onPopupClosed;q0.prototype.onPopupOpened=q0.prototype.onPopupOpened;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],q0.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],q0.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],q0.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],q0.prototype,"addToStrings",void 0);_.U([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.O("design:type",String)],q0.prototype,"ariaLabel",void 0);_.U([_.Z(),_.O("design:type",String)],q0.prototype,"closeButtonAriaLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],q0.prototype,"dialog",void 0);
_.U([_.gi("#playlists"),_.O("design:type",HTMLElement)],q0.prototype,"playlists",void 0);_.U([_.gi("ytd-add-to-playlist-create-renderer"),_.O("design:type",Object)],q0.prototype,"createRenderer",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],q0.prototype,"menuTitleRenderer",null);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q0.prototype,"onPopupOpened",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],q0.prototype,"onPopupClosed",null);q0=_.U([_.T({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],q0);
_.q(q0,"ytd-add-to-playlist-renderer",function(){if(sfB!==void 0)return sfB;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return sfB=W},{mode:1});var $GA;var Z1T=function(){var W=_.R.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.w8("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.w8("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.D(Z1T,_.R);_.Y=Z1T.prototype;_.Y.attached=function(){this.JSC$18136_scroller&&(this.JSC$18136_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18136_scroller.attached&&typeof this.JSC$18136_scroller.attached==="function"&&this.JSC$18136_scroller.attached())};
_.Y.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.Y.onPopupClosed=function(){this.reset()};
_.Y.close=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.Y.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var k=[];this.nameInput.value!==null&&k.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&k.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var C=Number(this.privacyInput.value);isNaN(C)||k.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:C})}this.votingInput.value!==null&&(C=this.votingInput.value)&&k.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:C});if(k.length>0){var n;_.z((n=this.data)==null?void 0:n.updateSettingsEndpoint,_.mB).actions=k;var N;if((N=this.data)==null?0:N.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.Y.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.Y.computeEditorData=function(W){var k,C;return W==null?void 0:(k=W.sections)==null?void 0:(C=k[0])==null?void 0:C.playlistSettingsEditorCasualSectionRenderer};
_.Y.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.Y.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}}}}}};
_.Y.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"}))};
_.Y.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.Y.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.Y.isNameChanged=function(){var W,k,C;return(((W=this.editorData)==null?void 0:(k=W.name)==null?void 0:(C=k.textInputFormFieldRenderer)==null?void 0:C.value)||"")!==(this.nameInput.value||"")};
_.Y.isDescriptionChanged=function(){var W,k,C;return(((W=this.editorData)==null?void 0:(k=W.description)==null?void 0:(C=k.textInputFormFieldRenderer)==null?void 0:C.value)||"")!==(this.descriptionInput.value||"")};
_.Y.isPrivacyChanged=function(){var W,k,C,n,N,B,A,w;return((A=(W=this.editorData)==null?void 0:(k=W.privacy)==null?void 0:(C=k.dropdownFormFieldRenderer)==null?void 0:(n=C.dropdown)==null?void 0:(N=n.dropdownRenderer)==null?void 0:(B=N.entries)==null?void 0:B.find(function(x){var E;return x==null?void 0:(E=x.privacyDropdownItemRenderer)==null?void 0:E.isSelected}))==null?void 0:(w=A.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.privacyInput.value};
_.Y.isVotingChanged=function(){var W,k,C,n,N,B,A,w;return((A=(W=this.editorData)==null?void 0:(k=W.voting)==null?void 0:(C=k.dropdownFormFieldRenderer)==null?void 0:(n=C.dropdown)==null?void 0:(N=n.dropdownRenderer)==null?void 0:(B=N.entries)==null?void 0:B.find(function(x){var E;return x==null?void 0:(E=x.privacyDropdownItemRenderer)==null?void 0:E.isSelected}))==null?void 0:(w=A.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.votingInput.value};
var un=Z1T;un.prototype.onPopupClosed=un.prototype.onPopupClosed;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],un.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],un.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],un.prototype,"data",void 0);_.U([_.Z({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.O("design:type",Array)],un.prototype,"privacyBadge",void 0);_.U([_.Z({computed:"computeEditorData(data)"}),_.O("design:type",Object)],un.prototype,"editorData",void 0);_.U([_.Z(),_.O("design:type",Object)],un.prototype,"isPlaylistEditComplete",void 0);_.U([_.Z(),_.O("design:type",Object)],un.prototype,"isCollabEngagementDisabled",void 0);
_.U([_.Z({value:{REQUIRED_LABEL:_.w8("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.w8("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.O("design:type",Object)],un.prototype,"addToStrings",void 0);_.U([_.Z(),_.O("design:type",String)],un.prototype,"closeButtonAriaLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],un.prototype,"saveButton",void 0);_.U([_.gi("#name-input"),_.O("design:type",Object)],un.prototype,"nameInput",void 0);
_.U([_.gi("#description-input"),_.O("design:type",Object)],un.prototype,"descriptionInput",void 0);_.U([_.gi("#privacy-input"),_.O("design:type",Object)],un.prototype,"privacyInput",void 0);_.U([_.gi("#voting-input"),_.O("design:type",Object)],un.prototype,"votingInput",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],un.prototype,"JSC$18136_scroller",void 0);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],un.prototype,"onPopupClosed",null);_.U([_.Z(),_.O("design:type",Object)],un.prototype,"onValueChanged",void 0);un=_.U([_.T({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],un);
_.q(un,"ytd-playlist-settings-editor-renderer",function(){if($GA===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);$GA=W}W=$GA;return W},{mode:1});var RG7;_.EJ("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var oy6=function(){return _.R.apply(this,arguments)||this};
_.D(oy6,_.R);_.Y=oy6.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.Y.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.Y.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.m("enable_premium_voluntary_pause")||_.KY(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.Y.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.Y.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
var UW=oy6;UW.prototype.onPopupOpened=UW.prototype.onPopupOpened;UW.prototype.onSelectedResponseIndexChange=UW.prototype.onSelectedResponseIndexChange;UW.prototype.dataChanged=UW.prototype.dataChanged;_.U([_.v(_.vL),_.O("design:type",Object)],UW.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],UW.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],UW.prototype,"selectedResponseIndex",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UW.prototype,"dataChanged",null);_.U([_.Hl("selectedResponseIndex"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UW.prototype,"onSelectedResponseIndexChange",null);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],UW.prototype,"onPopupOpened",null);UW=_.U([_.T({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],UW);
_.q(UW,"ytd-red-cancel-survey-renderer",function(){if(RG7!==void 0)return RG7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RG7=W},{mode:1});var i1t;var TR7=function(){var W=_.R.apply(this,arguments)||this;W.closeButtonAriaLabel=_.w8("SBOX_INAPPROPRIATE_CANCEL");return W};
_.D(TR7,_.R);TR7.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
TR7.prototype.onClickClose=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var OW=TR7;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],OW.prototype,"rendererStamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OW.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],OW.prototype,"closeButtonAriaLabel",void 0);OW=_.U([_.T({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],OW);
_.q(OW,"ytd-search-filter-options-dialog-renderer",function(){if(i1t!==void 0)return i1t;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return i1t=W},{mode:1});var qG7;var Yyu=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var u97=function(){var W=_.R.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.D(u97,_.R);_.Y=u97.prototype;_.Y.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}}}}};
_.Y.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){if(this.formats===void 0)_.KY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],k=[];this.showUpsellSection=!1;for(var C=_.b(this.formats),n=C.next();!n.done;n=C.next())(n=n.value)&&(n.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?k.push(n):W.push(n));W.length&&(this.qualityOptions=N2i(W));k.length&&(this.showUpsellSection=!0,this.upsellOptions=N2i(k))}};
_.Y.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var k;W=(k=this.data)==null?void 0:k.premiumRememberSettingString}else{var C;W=(C=this.data)==null?void 0:C.rememberSettingString}W=W===void 0?_.w8("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.Ur(W),disabled:!1}};
_.Y.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.oq.Object.defineProperties(u97.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
var LD=u97;LD.prototype.updateRememberString=LD.prototype.updateRememberString;LD.prototype.updateQualityOptions=LD.prototype.updateQualityOptions;LD.prototype.dataChanged=LD.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],LD.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],LD.prototype,"data",void 0);
_.U([_.v(_.fk),_.O("design:type",Object)],LD.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Boolean)],LD.prototype,"selectedUpsellQuality",void 0);_.U([_.Z({computed:"computeIcon_(data.premiumIcon)",value:""}),_.O("design:type",String)],LD.prototype,"premiumIcon",void 0);_.U([_.Z({selector:CVY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.O("design:type",Object)],LD.prototype,"downloadQualityPickerEntity",void 0);
_.U([_.Z(),_.O("design:type",Array)],LD.prototype,"qualityOptions",void 0);_.U([_.Z(),_.O("design:type",Array)],LD.prototype,"upsellOptions",void 0);_.U([_.Z(),_.O("design:type",Object)],LD.prototype,"showUpsellSection",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],LD.prototype,"darkerDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],LD.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.U([_.gi("#remember-settings"),_.O("design:type",HTMLInputElement)],LD.prototype,"rememberSettingsCheckbox",void 0);_.U([_.Z(),_.O("design:type",Object)],LD.prototype,"rememberSettingsChecked",void 0);_.U([_.Z(),_.O("design:type",Function)],LD.prototype,"onRememberSettingsCheckedChanged",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LD.prototype,"dataChanged",null);
_.U([_.Hl("downloadQualityPickerEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LD.prototype,"updateQualityOptions",null);_.U([_.Hl("selectedUpsellQuality"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],LD.prototype,"updateRememberString",null);LD=_.U([_.T({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],LD);
_.q(LD,"ytd-download-quality-selector-content",function(){if(qG7!==void 0)return qG7;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return qG7=W},{mode:1});var UG1;var O1t=function(){var W=_.R.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.m("web_darker_dark_theme");W.useUpsellDismissAlternate=_.m("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(k){W.rememberSettingsChecked=k};
return W};
_.D(O1t,_.R);_.Y=O1t.prototype;
_.Y.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ur(_.w8("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){this.formats===void 0?_.KY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=N2i(this.formats)};
_.Y.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==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 k=_.b(this.qualityOptions.entries()),C=k.next();!C.done;C=
k.next()){C=_.b(C.value);var n=C.next().value;C=C.next().value;var N=void 0,B=void 0;if(((N=C)==null?void 0:(B=N.settingsRadioOptionRenderer)==null?void 0:B.id)===W){this.selectedQualityIndex=n;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[n])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.Y.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var k,C;W=(C=(k=this.data)==null?void 0:k.onSubmitEndpoint)!=null?C:{};var n,N;if(this.formats&&(((n=_.z(W,_.Kn))==null?0:n.videoId)||((N=_.z(W,_.hW))==null?0:N.playlistId))){var B,A,w,x,E,a;k={formatType:(x=(B=this.formats)==null?void 0:(A=B[(w=this.selectedQualityIndex)!=null?w:0])==null?void 0:A.format)!=null?x:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(E=this.getOfflineEndpoint(W))==null?void 0:(a=E.actionParams)==null?void 0:a.settingsAction)};this.getOfflineEndpoint(W).actionParams=k;this.ytComponentBehavior.resolveCommand(W)}_.KY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.Y.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var k,C;W=(C=(k=this.data)==null?void 0:k.upsellEndpoint)!=null?C:{};this.ytComponentBehavior.resolveCommand(W);_.KY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);k="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var n,N,B,A;k=(A=(n=this.formats)==null?void 0:(N=n[(B=this.selectedQualityIndex)!=null?B:0])==null?void 0:N.format)!=null?A:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:k}})}};
_.Y.onClickClose=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.Y.getOfflineSettingsAction=function(W,k){return W?k===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":k:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.Y.getOfflineEndpoint=function(W){return _.z(W,_.Kn)?_.z(W,_.Kn):_.z(W,_.hW)};
_.oq.Object.defineProperties(O1t.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Ur(_.w8("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
var jJ=O1t;jJ.prototype.updateQualityOptions=jJ.prototype.updateQualityOptions;jJ.prototype.dataChanged=jJ.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],jJ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],jJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Number)],jJ.prototype,"selectedQualityIndex",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"selectedUpsellQuality",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],jJ.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z({selector:CVY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.O("design:type",Object)],jJ.prototype,"downloadQualityPickerEntity",void 0);_.U([_.Z(),_.O("design:type",Array)],jJ.prototype,"qualityOptions",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],jJ.prototype,"darkerDarkTheme",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],jJ.prototype,"useUpsellDismissAlternate",void 0);
_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"downloadButtonRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"upsellButtonRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"cancelButtonRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"upsellCancelButtonRenderer",void 0);_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"rememberSettings",void 0);
_.U([_.Z(),_.O("design:type",Object)],jJ.prototype,"rememberSettingsChecked",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jJ.prototype,"dataChanged",null);_.U([_.Hl("downloadQualityPickerEntity"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],jJ.prototype,"updateQualityOptions",null);jJ=_.U([_.T({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],jJ);
_.q(jJ,"ytd-download-quality-selector-renderer",function(){if(UG1!==void 0)return UG1;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return UG1=W},{mode:1});var Lv$;var jfS=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(jfS,_.R);jfS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jfS.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
var Hc=jfS;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Hc.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Hc.prototype,"darkerDarkTheme",void 0);_.U([_.Z({computed:"computeIcon_(data.infoIcon)"}),_.O("design:type",Object)],Hc.prototype,"infoIcon",void 0);
_.U([_.Z({computed:"computeIcon_(data.warningIcon)"}),_.O("design:type",Object)],Hc.prototype,"warningIcon",void 0);Hc=_.U([_.T({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Hc);
_.q(Hc,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Lv$!==void 0)return Lv$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Lv$=W},{mode:1});var H11;var rX1=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(rX1,_.R);rX1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rX1.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var rM=rX1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rM.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],rM.prototype,"darkerDarkTheme",void 0);rM=_.U([_.T({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],rM);
_.q(rM,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(H11!==void 0)return H11;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return H11=W},{mode:1});var gyA;var gM=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(gM,_.R);gM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gM.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"}}}}};
gM.prototype.onServiceRequestSentOrCompleted=function(W,k){k&&k.actions&&k.actions.length>0&&_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
var Pc=gM;Pc.prototype.onServiceRequestSentOrCompleted=Pc.prototype.onServiceRequestSentOrCompleted;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Pc.prototype,"darkerDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],Pc.prototype,"data",void 0);
_.U([_.jI("yt-service-request-completed"),_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Pc.prototype,"onServiceRequestSentOrCompleted",null);Pc=_.U([_.T({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Pc);
_.q(Pc,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(gyA!==void 0)return gyA;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return gyA=W},{mode:1});var P$1;var KvE=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.D(KvE,_.R);_.Y=KvE.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.Y.onDataChanged=function(){var W,k,C;if(((W=this.data)==null?void 0:(k=W.confirmButton)==null?void 0:(C=k.buttonRenderer)==null?void 0:C.isDisabled)!==void 0){var n,N,B;this.submitButtonDisabled=(n=this.data)==null?void 0:(N=n.confirmButton)==null?void 0:(B=N.buttonRenderer)==null?void 0:B.isDisabled}};
_.Y.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.Y.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.Y.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
var KD=KvE;KD.prototype.onDataChanged=KD.prototype.onDataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],KD.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],KD.prototype,"darkerDarkTheme",void 0);
_.U([_.Z(),_.O("design:type",Object)],KD.prototype,"submitButtonDisabled",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],KD.prototype,"onDataChanged",null);KD=_.U([_.T({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],KD);
_.q(KD,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(P$1!==void 0)return P$1;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return P$1=W},{mode:1});var hGS;var WHi=function(){return _.R.apply(this,arguments)||this};
_.D(WHi,_.R);_.oq.Object.defineProperties(WHi.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,k,C;return((W=this.data)==null?void 0:W.title)+" "+((k=this.data)==null?void 0:k.metadataPrimary)+" "+((C=this.data)==null?void 0:C.metadataSecondary)}}});
var hm=WHi;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],hm.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],hm.prototype,"data",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],hm.prototype,"ariaLabel",null);hm=_.U([_.T({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],hm);
_.q(hm,"ytd-compact-product-list-item-renderer",function(){if(hGS!==void 0)return hGS;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return hGS=W},{mode:1});var k5Y;var C3Z=function(){return _.R.apply(this,arguments)||this};
_.D(C3Z,_.R);C3Z.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]]"}}}}}};
_.oq.Object.defineProperties(C3Z.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var WQ=C3Z;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],WQ.prototype,"data",void 0);WQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],WQ);
_.q(WQ,"ytd-compact-product-list-renderer",function(){if(k5Y!==void 0)return k5Y;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return k5Y=W},{mode:1});var n_T;var NVA=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(NVA,_.R);_.Y=NVA.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Y.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.yI(W,this.hostElement.clientWidth)+")":""};
_.Y.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.VM();var k=_.DH(),C=this.get("data.trackingParams");C&&k&&W&&_.sr(W,k,_.Yf(C));W=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(k=W.next();!k.done;k=W.next())k.value.onShow()};
_.Y.onPopupClosed=function(W){_.eI(W).localName==="ytd-membership-post-cancel-renderer"&&_.KY(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var kP=NVA;kP.prototype.onPopupClosed=kP.prototype.onPopupClosed;kP.prototype.onDataChanged=kP.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],kP.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],kP.prototype,"darkerDarkTheme",void 0);
_.U([_.gi("#header"),_.O("design:type",HTMLDivElement)],kP.prototype,"header",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],kP.prototype,"onDataChanged",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],kP.prototype,"onPopupClosed",null);kP=_.U([_.T({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],kP);
_.q(kP,"ytd-membership-post-cancel-renderer",function(){if(n_T!==void 0)return n_T;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return n_T=W},{mode:1});var YP$;var BV7=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(BV7,_.R);BV7.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
BV7.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var C2=BV7;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],C2.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],C2.prototype,"darkerDarkTheme",void 0);_.U([_.gi("ytd-feedback-survey-renderer"),_.O("design:type",Object)],C2.prototype,"feedbackSurveyRenderer",void 0);C2=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],C2);
_.q(C2,"ytd-sponsorship-confirm-cancel-content",function(){if(YP$!==void 0)return YP$;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return YP$=W},{mode:1});var bm6;var AFY=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.D(AFY,_.R);_.Y=AFY.prototype;_.Y.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.Y.onYtPopupOpened=function(W,k){k===this&&this.data&&this.data.onOpenCommands&&_.CB(this.hostElement,this.data.onOpenCommands,this.hostElement);_.KY(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.Y.onYtPopupClosed=function(W,k){(k&&k.canceled===!0||k&&k.canceled===!1&&k.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.CB(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.Y.onYtServiceRequestError=function(W){_.fm(this.hostElement,W.detail.error.message)};
_.Y.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.S(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.oq.Object.defineProperties(AFY.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.yI(W,this.hostElement.clientWidth)+")":""}}});
var n2=AFY;n2.prototype.onDataChanged=n2.prototype.onDataChanged;n2.prototype.onYtServiceRequestError=n2.prototype.onYtServiceRequestError;n2.prototype.onYtServiceRequestCompleted=n2.prototype.onYtServiceRequestCompleted;n2.prototype.onYtPopupClosed=n2.prototype.onYtPopupClosed;n2.prototype.onYtPopupOpened=n2.prototype.onYtPopupOpened;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],n2.prototype,"data",void 0);_.U([_.Z({value:function(){return _.w8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],n2.prototype,"closeButtonAriaLabel",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],n2.prototype,"darkerDarkTheme",void 0);_.U([_.gi("#scrollable"),_.O("design:type",Object)],n2.prototype,"scrollable",void 0);_.U([_.gi("ytd-sponsorship-confirm-cancel-content"),_.O("design:type",Object)],n2.prototype,"content",void 0);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],n2.prototype,"onYtPopupOpened",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],n2.prototype,"onYtPopupClosed",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],n2.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],n2.prototype,"onYtServiceRequestError",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],n2.prototype,"onDataChanged",null);
n2=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],n2);
_.q(n2,"ytd-sponsorship-confirm-cancel-renderer",function(){if(bm6!==void 0)return bm6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return bm6=W},{mode:_.UC("kevlar_poly_si_batch_j081")?1:2});var FHS;var w7Z=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(w7Z,_.R);w7Z.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var N5=w7Z;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],N5.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],N5.prototype,"darkerDarkTheme",void 0);N5=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],N5);
_.q(N5,"ytd-sponsorships-celebration-content",function(){if(FHS!==void 0)return FHS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return FHS=
W},{mode:1});var xQS;var l$7=_.iH(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),tuA=function(){var W=_.R.apply(this,arguments)||this;W.scriptsAppended=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.D(tuA,_.R);_.Y=tuA.prototype;
_.Y.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:_.m("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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var k;(k=this.header)==null||k.style.setProperty("background-image",W)}k=_.VM(4);W=_.DH(4);var C=this.get("data.trackingParams");if(C&&W&&k){var n=_.Yf(C);_.sr(k,W,n);_.m("combine_ve_grafts")?_.kf().graftServerVe(C,W,4):_.sr(k,W,n)}k=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=k.next();!W.done;W=k.next())W.value.onShow();if(k=this.get("data.gtmId"))_.YD(k,
_.DE("GL","")),this.setupConversionTracking()};
_.Y.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var k=_.Uz(l$7.join(""));_.Oz(W,k);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.Y.onPopupClosed=function(W){if(_.eI(W).localName==="ytd-sponsorships-celebration-renderer"){_.KY(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var k;this.data&&((k=this.data)==null?0:k.dismissCommand)&&_.gH.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.oq.Object.defineProperties(tuA.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Xi(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.yI(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
var YP=tuA;YP.prototype.onPopupClosed=YP.prototype.onPopupClosed;YP.prototype.onDataChanged=YP.prototype.onDataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YP.prototype,"data",void 0);_.U([_.gi("#header"),_.O("design:type",HTMLElement)],YP.prototype,"header",void 0);
_.U([_.Z(),_.O("design:type",Object)],YP.prototype,"scriptsAppended",void 0);_.U([_.Z(),_.O("design:type",Object)],YP.prototype,"buttonOverrides",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],YP.prototype,"onDataChanged",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],YP.prototype,"onPopupClosed",null);
YP=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],YP);
_.q(YP,"ytd-sponsorships-celebration-renderer",function(){if(xQS!==void 0)return xQS;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xQS=W},{mode:1});var E_7;var BQ=function(){var W=_.R.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.D(BQ,_.R);BQ.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
BQ.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
BQ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,k=_.z((W=this.data)==null?void 0:W.switchButton,K27);k&&(this.isToggleChecked&&k.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(k.switchOnInnertubeCommand),!this.isToggleChecked&&k.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(k.switchOffInnertubeCommand))};
BQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var bx=BQ;bx.prototype.onDataChanged=bx.prototype.onDataChanged;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],bx.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],bx.prototype,"isToggleChecked",void 0);
_.U([_.Z({value:_.w8("CLOSE")}),_.O("design:type",String)],bx.prototype,"closeButtonAriaLabel",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],bx.prototype,"onDataChanged",null);bx=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],bx);
_.q(bx,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(E_7!==void 0)return E_7;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return E_7=W},{mode:1});var a$u;var X7i=function(){return _.R.apply(this,arguments)||this};
_.D(X7i,_.R);_.Y=X7i.prototype;_.Y.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"}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.playerElement.stop()};
_.Y.onYtServiceRequestCompleted=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.Y.onYtServiceRequestError=function(W){_.fm(this.hostElement,W.detail.error.message)};
_.Y.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.Y.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.Y.getTier=function(W,k){return!W||!W.tiers||k<0?null:_.z(W.tiers[k],C4S)};
_.Y.moreThanOne=function(W){return!!(W&&W.length>1)};
_.Y.tierOverviewTap=function(W){var k=this;this.selectedTier=W.model.index;_.ZR(this,function(){_.Pe(k.hostElement,"yt-refit")})};
_.Y.computeSelectedClass=function(W,k){return this.isSelected(W,k)?"selected":""};
_.Y.computeButtonAriaPressed=function(W,k){return this.isSelected(W,k)?"true":"false"};
_.Y.isSelected=function(W,k){return W===k};
_.Y.onDataChanged=function(){_.S(this.hostElement).querySelector("#header-overlay").style.visibility="";_.S(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 W=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),
k=W.next();!k.done;k=W.next())k.value.onShow();var C;this.set("selectedTier",(C=this.get("data.targetTierIndex"))!=null?C:0);var n;(W=(n=this.data)==null?void 0:n.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.Y.initializeVe=function(W){var k=_.VM(),C=_.DH(),n=this.get("data.trackingParams");C&&k&&(this.screenLayer=4,k=_.MI(_.tB3)(void 0,69877,{clientScreenNonce:k,visualElement:C},void 0,void 0,void 0),_.am3(k,69877,4),C=_.DH(4),n&&C&&(n=_.Yf(n),_.sr(k,C,n),W&&(this.offerVideoVe=_.F8(74659),_.sr(k,n,this.offerVideoVe))))};
_.Y.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.S(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Xi(W);if(W=this.getHeaderImage())W=_.yI(W,screen.width),_.S(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.Y.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setupVideoPlayer=function(W){var k=this,C,n,N,B;return _.F(function(A){if(A.nextAddress==1)return C=k.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),n=k.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.m("kevlar_player_update_killswitch")?k.playerElement.update({args:{autoplay:C,video_id:W,player_params:n}}):k.playerElement.loadVideoWithPlayerVars({autoplay:C,video_id:W,player_params:n}),
_.l(A,k.playerElement.getPlayerPromise(),2);N=A.yieldResult;N.addEventListener("onStateChange",function(w){k.onPlayerStateChange(w)});
N.setScreenLayer(k.screenLayer);(B=_.VM(4))&&k.offerVideoVe&&_.GD(B,k.offerVideoVe);C&&(k.pauseOtherPlayers(),k.playerElement.focusOnPlayer(),k.playerElement.getPlayer().hideControls(),_.wI(_.aM,function(){k.fadeOutHeaderOverlay()},4E3));
_.ab(A)})};
_.Y.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.S(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.S(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.Y.fadeOutHeaderOverlay=function(){_.S(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.Y.onHeaderTap=function(){if(this.offerVideo){_.S(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.VM(4))&&this.offerVideoVe&&_.Zr(W,this.offerVideoVe)}};
_.Y.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.Y.getHeaderClass=function(W){return W?"header-with-video":""};
_.Y.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.Y.getTitleContainerClass=function(W,k){return W?"title-container-with-video":k?"title-container-without-video-flexible":"title-container-without-video"};
_.Y.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.Y.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.f().resolve(_.eq).getPlayerElement():this.backgroundPlayerElement=_.Zf();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.Y.isMiniplayerActive=function(){return _.f().resolve(_.eq).isMiniplayerActive()};
_.Y.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("selected-tier-changed",this.selectedTier))};
var A$=X7i;A$.prototype.selectedTierChangedForBinding=A$.prototype.selectedTierChangedForBinding;A$.prototype.onDataChanged=A$.prototype.onDataChanged;A$.prototype.onYtPopupClosed=A$.prototype.onYtPopupClosed;A$.prototype.onYtPopupOpened=A$.prototype.onYtPopupOpened;A$.prototype.onYtServiceRequestError=A$.prototype.onYtServiceRequestError;A$.prototype.onYtServiceRequestCompleted=A$.prototype.onYtServiceRequestCompleted;
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],A$.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A$.prototype,"data",void 0);_.U([_.Z({value:0}),_.O("design:type",Number)],A$.prototype,"selectedTier",void 0);
_.U([_.Z({value:""}),_.O("design:type",String)],A$.prototype,"offerVideo",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],A$.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.U([_.Z({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Hw(this)}}),
_.O("design:type",String)],A$.prototype,"playerId",void 0);_.U([_.gi("tp-yt-paper-dialog-scrollable"),_.O("design:type",Object)],A$.prototype,"scrollable",void 0);_.U([_.gi("ytd-sponsorships-tier-renderer"),_.O("design:type",Object)],A$.prototype,"tierRenderer",void 0);_.U([_.gi("#player"),_.O("design:type",Object)],A$.prototype,"playerElement",void 0);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],A$.prototype,"onYtServiceRequestCompleted",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],A$.prototype,"onYtServiceRequestError",null);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A$.prototype,"onYtPopupOpened",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A$.prototype,"onYtPopupClosed",null);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A$.prototype,"onDataChanged",null);
_.U([_.Hl("selectedTier"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],A$.prototype,"selectedTierChangedForBinding",null);A$=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],A$);
_.q(A$,"ytd-sponsorships-offer-renderer",function(){if(a$u!==void 0)return a$u;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return a$u=W},{mode:_.UC("kevlar_poly_si_batch_j077")?1:2});var f$Z;var Ft=function(){var W=_.R.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.D(Ft,_.R);Ft.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}}}}}};
Ft.prototype.backgroundColorChanged=function(){var W,k,C,n=(k=_.z((W=this.data)==null?void 0:W.content,nAE))==null?void 0:(C=k.backgroundColor)==null?void 0:C.backgroundColor;n&&(W=_.a8(n),_.S(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.S(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
Ft.prototype.attached=function(){this.JSC$18222_scroller&&(this.JSC$18222_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18222_scroller.attached&&typeof this.JSC$18222_scroller.attached==="function"&&this.JSC$18222_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var wb=Ft;wb.prototype.backgroundColorChanged=wb.prototype.backgroundColorChanged;_.U([_.Z(),_.O("design:type",Object)],wb.prototype,"data",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],wb.prototype,"JSC$18222_scroller",void 0);_.U([_.Z(),_.O("design:type",Object)],wb.prototype,"buttonOverrides",void 0);
_.U([_.Hl("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wb.prototype,"backgroundColorChanged",null);wb=_.U([_.T({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],wb);
_.q(wb,"ytd-sponsorships-promotion-celebration-renderer",function(){if(f$Z!==void 0)return f$Z;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return f$Z=W},{mode:_.UC("kevlar_poly_si_batch_j077")?1:2});var dQY;var mQi;var ztE=function(){return _.R.apply(this,arguments)||this};
_.D(ztE,_.R);ztE.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
ztE.prototype.computeIsInitiallyChecked=function(W){return W===1};
var xP=ztE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],xP.prototype,"data",void 0);_.U([_.gi("#checkbox"),_.O("design:type",Object)],xP.prototype,"checkbox",void 0);xP=_.U([_.T({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],xP);
_.q(xP,"ytd-subscription-toggle-option-renderer",function(){if(mQi!==void 0)return mQi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return mQi=W},{mode:1});var lx=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.D(lx,_.R);lx.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"}}}};
lx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lx.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.S(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var k=_.S(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");k&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(k=k.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[k]);_.f().resolve(_.uI).resolveCommand(W,{form:{element:this.hostElement}});
_.KY(this.hostElement,"yt-close-popup-action")};
_.oq.Object.defineProperties(lx.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,k=0;k<W.length;k++){var C=W[k].subscriptionRadioOptionRenderer;if(C&&C.selected)return k}return null}}});
var t$=lx;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],t$.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],t$.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],t$.prototype,"darkerDarkTheme",void 0);_.U([_.G("data.options"),_.O("design:type",Object),_.O("design:paramtypes",[])],t$.prototype,"initialIndex",null);t$=_.U([_.T({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],t$);
_.q(t$,"ytd-subscription-notification-options-renderer",function(){if(dQY!==void 0)return dQY;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return dQY=W},{mode:1});var DQ$;var VuC=function(){return _.R.apply(this,arguments)||this};
_.D(VuC,_.R);var EZ=VuC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],EZ.prototype,"data",void 0);EZ=_.U([_.T({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],EZ);
_.q(EZ,"ytd-tvfilm-offer-groups-renderer",function(){if(DQ$!==void 0)return DQ$;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return DQ$=W},{mode:1});var JFY;var cFY=function(){var W=_.R.apply(this,arguments)||this;W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(cFY,_.R);_.Y=cFY.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.Y.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.Y.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.Y.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.Y.onDataChanged=function(){[].concat(_.J8(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
var an=cFY;an.prototype.onDataChanged=an.prototype.onDataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],an.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],an.prototype,"darkerDarkTheme",void 0);
_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],an.prototype,"onDataChanged",null);an=_.U([_.T({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],an);
_.q(an,"ytd-ypc-offers-overlay-renderer",function(){if(JFY!==void 0)return JFY;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return JFY=W},{mode:_.UC("kevlar_poly_si_batch_j028")?1:2});var I$S;var SP$=function(){this.usedMethods=new Set};
SP$.prototype.add=function(W){this.usedMethods.add(W)};
SP$.prototype.reset=function(){this.usedMethods.clear()};var p7B=function(W,k){this.query=W;this.previousSearchQuery=k;this.id=Mu1++;if(!QGY){k=_.DE("SBOX_SETTINGS");W="https://"+((k==null?void 0:k.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var C=k==null?void 0:k.REQUEST_LANGUAGE;C&&(W+="&hl="+C);(C=k==null?void 0:k.REQUEST_DOMAIN)&&(W+="&gl="+C);W+="&client=youtube&gs_ri=youtube";(C=k==null?void 0:k.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(C));(C=k==null?void 0:k.PSUGGEST_TOKEN)&&(W+="&tok="+C);(k=
k==null?void 0:k.SESSION_INDEX)&&(W+="&authuser="+k);_.m("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");QGY=W}},v_A=function(W){var k="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(k+="&pq="+encodeURIComponent(W.previousSearchQuery));return k},etB=function(){var W=_.DE("SBOX_SETTINGS"),k={};
if(W==null?0:W.SEND_VISITOR_DATA)k["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return k},sGt=function(W){var k=QGY;
k+="&gs_id="+W.id.toString(36);k+="&q="+encodeURIComponent(W.query);k+="&cp="+W.query.length;W.previousSearchQuery&&(k+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(k+="&video_id="+W);return k},Mu1=0,QGY="";var G56=_.sT.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,yFY=_.sT.SEARCH_ENTITY_SUGGESTION_MOVIE,$QE=_.sT.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Zm6=_.sT.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Rt6=function(W,k){this.text=W;this.bold=k},o_6=function(W,k,C){this.input=k;
this.index=C;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var n;this.displayText=U_((n=W[3])==null?void 0:n.b);var N;this.ignoredPrefix=U_((N=W[3])==null?void 0:N.a);var B,A;this.hasNewVideo=((B=W[3])==null?void 0:(A=B.zam)==null?void 0:A.toString())==="true"?!0:!1;var w;this.visualSuggestUrl=(w=W[3])==null?void 0:w.zai;var x;this.entityType=U_((x=W[3])==null?void 0:x.zap);var E;this.entityName=U_((E=W[3])==null?void 0:E.zao);var a;k=U_((a=
W[3])==null?void 0:a.zaf);a=b0E(this.subtypes);if(k&&a){if(k){C="";switch(a){case "YOUTUBE_ENTITY_TYPE_SONG":C=$QE;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":C=G56;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":C=Zm6;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":C=yFY}a=a==="YOUTUBE_ENTITY_TYPE_SONG"||a==="YOUTUBE_ENTITY_TYPE_ALBUM"?C+" \u2022  \u2022 "+k:k}else a="";this.entitySubtitle=a}var X;this.entityMid=(X=W[3])==null?void 0:X.zae;var d;this.externalChannelId=(d=W[3])==null?void 0:d.zav},imZ=function(W){var k=
[],C,n=(C=W.displayText)!=null?C:W.text;
if(W.type===33)return k.push(new Rt6(n,!1)),k;if(n.length>=W.input.length&&n.substring(0,W.input.length)===W.input)k.push(new Rt6(W.input,!1)),k.push(new Rt6(n.substring(W.input.length),!0));else{var N=new Set(W.input.split(/\s/)),B=n.split(/\s/);k=B.map(function(A,w){return new Rt6(A.trim()+(w===B.length-1?"":" "),!N.has(A))})}return k},TV6=function(W){return!!b0E(W.subtypes)};var qPu=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var k=JSON.parse(Aui(W));if(typeof k==="object"&&k!==null)this.rawResponse=k;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(n){console.log("Suggest: Failed to parse SuggestResponse!");return}var C=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(n,N){return new o_6(n,C,N)})};var udY=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new SP$;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18258_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},UQu,OmB=function(){UQu||(UQu=new udY);
return UQu};
udY.prototype.updateSuggestions=function(W){var k=this;this.availableSuggestions.forEach(function(C){k.previousSuggestions[C]=!0});
this.availableSuggestions=W.map(function(C){var n=C.type.toString();C.subtypes.length>0&&(n+="i"+C.subtypes.join("i"),n+="k"+C.suggestionSources.COMPLETE_SERVER.toString());return n})};
var LHZ=function(W,k){var C=Date.now();W.firstEditTime<0&&(W.firstEditTime=C);k&&(W.lastQueryBuildTime=C);W.lastEditTime=C};
udY.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18258_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var jGY=function(W){var k="";W.availableSuggestions.forEach(function(N){delete W.previousSuggestions[N]});
for(var C=_.b(Object.keys(W.previousSuggestions)),n=C.next();!n.done;n=C.next())n=n.value,W.previousSuggestions[n]&&(k+=(k?"j":"")+n);return k},Hmi=function(W,k){var C=[];
k&&(C[1]=k.toString());C[0]="youtube";C[7]=Date.now()-W.startTime;C[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(C[33]=W.zeroPrefixSuggestionCount);C[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var n=k="",N=0,B=_.b(W.availableSuggestions),A=B.next();!A.done;A=B.next())A=A.value,A!==n&&(N>1&&(k+="l"+N),k+=(n?"j":"")+A,N=0,n=A),N+=1;N>1&&(k+="l"+N);C[3]=k}C[35]=jGY(W);W.selectedSuggestionIndex>=0&&(C[2]=W.selectedSuggestionIndex);var w;if(k=(w=_.DE("SBOX_SETTINGS"))==
null?void 0:w.SUGG_EXP_ID)C[19]=W.normalize(k),w=0,W.experimentTriggeredBeforeFinal&&(w|=1),W.experimentTriggeredFinal&&(w|=2),C[20]=w;C[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$18258_totalRoundTripTime>0){C[15]=W.JSC$18258_totalRoundTripTime;C[14]=W.maxRoundTripTime;w=[];for(N=k=0;N<10;N++)n=W.roundTripTimeHistogram[N],n===0?k++:(k>1?w.push(N+"-"+n):k===1?w.push("0j"+n):w.push(n.toString()),k=0);w=w.join("j");C[16]=w}W.zeroPrefixRoundTripTime>0&&(C[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(C[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(C[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(C[5]=W.lastEditTime-W.startTime);return C.join(".")};
udY.prototype.normalize=function(W){return W.replaceAll(".","-")};
var rF7=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var g_6=function(){var W=_.R.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.D(g_6,_.R);_.Y=g_6.prototype;_.Y.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=pg1()};
_.Y.dataChanged=function(){this.logDialog()};
_.Y.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$17546_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$17546_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.Y.handleSpeechQueryCompleteAction=function(W){var k=W.navigationAction;k&&(W.trackingParams&&_.kf().graftServerVe(W.trackingParams,this.dialogVe,5),_.Pe(this.hostElement,"yt-navigate",{endpoint:k,tempData:this.getNavigationParams(k),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.Y.onExitButtonClick=function(){this.closeDialog()};
_.Y.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var k;(k=W.audioPlayer)==null||Ge(k,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.Y.transcriptionChanged=function(){var W,k;(((W=this.transcription)==null?0:W.low)||((k=this.transcription)==null?0:k.high))&&this.setState("transcribing",this.transcription)};
_.Y.stateChanged=function(){this.setState(this.state,this.transcription)};
_.Y.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.kf(),_.jC(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.Y.getNavigationParams=function(W){var k={};if(_.m("web_yt_searchbox")){var C=OmB();C.inputMethodsTracker.add(6);C=Hmi(C,15);k.gs_l=C;var n;k.oq=((n=_.z(W,_.CO))==null?void 0:n.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())k.oq=W.oq,k.gs_l=W.gs_l}else _.pS(Error("ll"));return k};
_.Y.closeDialog=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.Y.setState=function(W,k){if(this.data){var C=this.data,n={};switch(W){case "listening":n={headerText:C.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:C.microphoneButtonAriaLabel};break;case "timeout":n={headerText:C.promptHeader,microphoneState:"try-again",microphoneLabel:C.promptMicrophoneLabel,microphoneAriaLabel:C.promptMicrophoneLabel};break;case "microphone-off":n={headerText:C.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:C.promptMicrophoneLabel,
microphoneAriaLabel:C.promptMicrophoneLabel};break;case "transcribing":(k==null?0:k.low)||(k==null?0:k.high)?n={transcriptionLow:k==null?void 0:k.low,transcriptionHigh:k==null?void 0:k.high,microphoneState:"speaking",microphoneAriaLabel:C.microphoneButtonAriaLabel}:n={headerText:C.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:C.microphoneButtonAriaLabel};break;case "processing":n={headerText:C.loadingHeader,microphoneState:"processing",microphoneAriaLabel:C.microphoneButtonAriaLabel};
break;case "offline":n={headerText:C.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:C.connectionErrorMicrophoneLabel,microphoneAriaLabel:C.connectionErrorMicrophoneLabel};break;case "permission":n={headerText:C.permissionsHeader,bodyLine1:C.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:C.permissionsSubtext};break;case "permission-denied":n={headerText:C.disabledHeader,bodyLine1:C.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:C.disabledSubtext}}n.className=
W;this.speechOverlayState=n;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.Y.setMicrophoneState=function(W){var k=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!k&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.Y.setClass=function(W){this.speechOverlayClassName&&_.qw(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.qw(this.hostElement,W,!0))};
_.Y.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var k=1+Math.random()*.75,C=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+C/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+k+")");_.aM.addJob(function(){W.runLevelAnimation()},3,C)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var Xt=g_6;Xt.prototype.stateChanged=Xt.prototype.stateChanged;Xt.prototype.transcriptionChanged=Xt.prototype.transcriptionChanged;Xt.prototype.onPopupClosed=Xt.prototype.onPopupClosed;Xt.prototype.dataChanged=Xt.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Xt.prototype,"rendererStamperBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],Xt.prototype,"eventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Xt.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Xt.prototype,"speechOverlayState",void 0);
_.U([_.Z(),_.O("design:type",Object)],Xt.prototype,"microphoneSpinnerActive",void 0);_.U([_.Z({type:_.m("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.O("design:type",Object)],Xt.prototype,"noAnimations",void 0);_.U([_.Z({selector:function(W){var k;return(k=W.voiceSearch)==null?void 0:k.transcription}}),
_.O("design:type",Object)],Xt.prototype,"transcription",void 0);_.U([_.Z({selector:function(W){var k;return(k=W.voiceSearch)==null?void 0:k.overlay}}),
_.O("design:type",String)],Xt.prototype,"state",void 0);_.U([_.Z(),_.O("design:type",Object)],Xt.prototype,"boundExitClick",void 0);_.U([_.gi("#microphone-levels"),_.O("design:type",HTMLElement)],Xt.prototype,"level",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xt.prototype,"dataChanged",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xt.prototype,"onPopupClosed",null);
_.U([_.Cq("transcription"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xt.prototype,"transcriptionChanged",null);_.U([_.Cq("state"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Xt.prototype,"stateChanged",null);Xt=_.U([_.T({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Xt);
_.q(Xt,"ytd-voice-search-dialog-renderer",function(){if(I$S!==void 0)return I$S;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return I$S=W},{mode:1});var P3A;var KHi=function(){var W=_.R.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.D(KHi,_.R);_.Y=KHi.prototype;_.Y.onPopupClosed=function(){this.toggleIconState(!1)};
_.Y.computeIcon=function(){var W,k,C;return(k=_.z((W=this.data)==null?void 0:W.icon,AaB))==null?void 0:(C=k.icon)==null?void 0:C.iconType};
_.Y.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.Y.computeHidden=function(W){return!W};
_.Y.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
var f2=KHi;f2.prototype.onPopupClosed=f2.prototype.onPopupClosed;_.U([_.v(_.fk),_.O("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],f2.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],f2.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],f2.prototype,"isOverlay",void 0);
_.U([_.Z({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.O("design:type",Object)],f2.prototype,"hidden",void 0);_.U([_.Z({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,k){return _.hQ(W.entities,"iconBadgeEntity",k)}}),
_.O("design:type",Object)],f2.prototype,"iconBadgeEntity",void 0);_.U([_.gi("yt-icon-button"),_.O("design:type",HTMLButtonElement)],f2.prototype,"iconButton",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],f2.prototype,"onPopupClosed",null);f2=_.U([_.T({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],f2);
_.q(f2,"ytd-icon-badge-topbar-button-renderer",function(){if(P3A!==void 0)return P3A;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return P3A=W},{mode:1});var htt;var WO$=function(){var W=_.R.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.m("web_darker_dark_theme");return W};
_.D(WO$,_.R);WO$.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.oq.Object.defineProperties(WO$.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var db=WO$;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],db.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Array)],db.prototype,"premiumOptions",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],db.prototype,"darkerDarkTheme",void 0);_.U([_.G("premiumOptions"),_.O("design:type",Object),_.O("design:paramtypes",[])],db.prototype,"hasPremiumOptions",null);
db=_.U([_.T({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],db);
_.q(db,"ytd-offline-promo-content",function(){if(htt!==void 0)return htt;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return htt=W},{mode:1});var kOu;var mU=function(){var W=_.R.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.D(mU,_.R);mU.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=B2T((W=this.data)==null?void 0:W.formats)};
mU.prototype.onClickSubmit=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.Zf())==null||W.pause()};
mU.prototype.attached=function(){this.JSC$18278_scroller&&(this.JSC$18278_scroller.dialogElement=this.hostElement.parentNode)};
_.oq.Object.defineProperties(mU.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var z9=mU;z9.prototype.dataChanged=z9.prototype.dataChanged;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],z9.prototype,"data",void 0);
_.U([_.Z({computed:"computeIcon_(data.headersIcon)",value:""}),_.O("design:type",String)],z9.prototype,"headersIcon",void 0);_.U([_.Z(),_.O("design:type",Array)],z9.prototype,"premiumOptions",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],z9.prototype,"JSC$18278_scroller",void 0);_.U([_.G("headersIcon"),_.O("design:type",Object),_.O("design:paramtypes",[])],z9.prototype,"showIcon",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],z9.prototype,"dataChanged",null);z9=_.U([_.T({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],z9);
_.q(z9,"ytd-offline-promo-renderer",function(){if(kOu!==void 0)return kOu;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return kOu=W},{mode:1});var Cmu;var npB=function(){var W=_.R.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.w8("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.D(npB,_.R);_.Y=npB.prototype;_.Y.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.Y.attached=function(){this.pausePlayer()};
_.Y.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.Y.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.Y.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.Y.handleSaveConsent=function(W){var k=this;this.showLoadingSpinner();this.showLoadingSpinner();OiE(_.z(W,BX7)).catch(function(C){_.zJ(new _.AM("Something went wrong when save consent "+(C.message?C.message:C)+"."));k.hideLoadingSpinner();k.showErrorMessage()})};
_.Y.handleDisablePersonalization=function(W){var k=this;this.showLoadingSpinner();L8B(_.z(W,Y17)).then(function(){k.dialog.close();k.resumePlayer()}).catch(function(C){_.zJ(new _.AM("Something went wrong when disable personalization "+(C.message?C.message:C)+"."));
k.hideLoadingSpinner();k.showErrorMessage()})};
_.Y.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.aM.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.Y.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.aM.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.Y.showErrorMessage=function(){var W=this;this.hasError=!0;_.aM.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.Y.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.gA(function(){try{var W=_.Zf();W&&W.pause()}catch(k){}},100))};
_.Y.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.Zf();W&&W.play()}catch(k){}};
_.oq.Object.defineProperties(npB.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var k=["SHIELD","WARNING","BAR_CHART"],C=this.data.eomV1Text.essentialCookieMsg.items,n=0;n<k.length&&n<C.length;n++)W.push({icon:k[n],text:C[n]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var k=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],C=this.data.eomV1Text.nonEssentialCookieMsg.items,n=0;n<k.length&&n<C.length;n++)W.push({icon:k[n],text:C[n]});return W}}});
var Dt=npB;Dt.prototype.onDataChange=Dt.prototype.onDataChange;_.U([_.Z(),_.O("design:type",Object)],Dt.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],Dt.prototype,"showEOMV1Text",void 0);_.U([_.Z(),_.O("design:type",Object)],Dt.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Object)],Dt.prototype,"hasError",void 0);_.U([_.Z(),_.O("design:type",Number)],Dt.prototype,"showSpinnerJobId",void 0);_.U([_.Z(),_.O("design:type",Object)],Dt.prototype,"dialogClass",void 0);
_.U([_.gi("#dialog"),_.O("design:type",Object)],Dt.prototype,"dialog",void 0);_.U([_.gi("#cb-header"),_.O("design:type",HTMLElement)],Dt.prototype,"header",void 0);_.U([_.gi("#lang-select"),_.O("design:type",HTMLElement)],Dt.prototype,"langSelect",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Dt.prototype,"ytComponentBehavior",void 0);
_.U([_.Z(),_.O("design:type",String)],Dt.prototype,"youtubeLabel",void 0);_.U([_.Z(),_.O("design:type",Object)],Dt.prototype,"logoName",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Dt.prototype,"onDataChange",null);_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],Dt.prototype,"eomEssentialCookieMsgItems",null);
_.U([_.G("data"),_.O("design:type",Array),_.O("design:paramtypes",[])],Dt.prototype,"eomNonEssentialCookieMsgItems",null);Dt=_.U([_.T({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Dt);
_.q(Dt,"ytd-consent-bump-v2-lightbox",function(){if(Cmu!==void 0)return Cmu;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return Cmu=W},{mode:1});var NzZ;var YT7=function(){return _.R.apply(this,arguments)||this};
_.D(YT7,_.R);YT7.prototype.ready=function(){if(!_.Yg()||FFu)var W=!0;else FFu=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.S(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var Vj=YT7;_.U([_.Z(),_.O("design:type",Object)],Vj.prototype,"data",void 0);_.U([_.gi("#lightbox"),_.O("design:type",Object)],Vj.prototype,"lightBox",void 0);Vj=_.U([_.T({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Vj);
_.q(Vj,"ytd-consent-bump-v2-renderer",function(){if(NzZ!==void 0)return NzZ;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return NzZ=W},{mode:1});var Bzt;var bQu;var AiZ;var FO7=function(){var W=_.R.apply(this,arguments)||this;W.ephemeralActionsEnabled=_.m("web_ephemeral_actions");return W};
_.D(FO7,_.R);_.Y=FO7.prototype;_.Y.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Jk1(this.toastManager,this.toastType)};
_.Y.open=function(W){this.toast&&(this.ephemeralAction&&_.f().resolve(_.PP).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.Y.close=function(W){var k;(k=this.toast)==null||k.close();this.toastManager&&W===1&&Jk1(this.toastManager,W)};
_.Y.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.Y.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.Y.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.Y.computeButtonClass_=function(W){return W?"toast-button":""};
_.Y.computeText_=function(W){return _.y4(W)};
_.Y.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ip("toast-opened-changed",this.toastOpened))};
_.Y.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.oq.Object.defineProperties(FO7.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,k,C=(W=this.data)==null?void 0:(k=W.actionButton)==null?void 0:k.buttonRenderer;return(C==null?void 0:C.command)||(C==null?void 0:C.serviceEndpoint)||(C==null?void 0:C.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var W=[],k;((k=this.data)==null?0:k.responseText)&&W.push(_.y4(this.data.responseText));var C;((C=this.data)==null?0:C.subText)&&W.push(_.y4(this.data.subText));var n,N;if((n=this.data)==null?0:(N=n.actionButton)==null?0:N.buttonRenderer){var B,A;W.push(((B=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(A=B.accessibilityData)==null?void 0:A.label)||_.y4(this.data.actionButton.buttonRenderer.text))}return W.filter(function(w){return w}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,k;return(k=(W=this.toast)==null?void 0:W.opened)!=null?k:!1}}});
var J$=FO7;J$.prototype.toastOpenedChangedForBinding=J$.prototype.toastOpenedChangedForBinding;J$.prototype.toastOpenedChanged=J$.prototype.toastOpenedChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],J$.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],J$.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],J$.prototype,"duration",void 0);_.U([_.Z(),_.O("design:type",Number)],J$.prototype,"toastType",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],J$.prototype,"useCloseButton",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],J$.prototype,"closeToastOnActionButtonClick",void 0);_.U([_.Z({value:function(){return _.w8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.O("design:type",String)],J$.prototype,"closeButtonAriaLabel",void 0);_.U([_.Z(),_.O("design:type",Boolean)],J$.prototype,"toastOpened",void 0);_.U([_.Z(),_.O("design:type",Boolean)],J$.prototype,"hasOpened",void 0);_.U([_.Z(),_.O("design:type",Object)],J$.prototype,"ephemeralActionsEnabled",void 0);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],J$.prototype,"command",null);
_.U([_.G("ephemeralActionsEnabled","labelText","command","duration"),_.O("design:type",Object),_.O("design:paramtypes",[])],J$.prototype,"ephemeralAction",null);_.U([_.G("ephemeralAction"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],J$.prototype,"hasEphemeralAction",null);_.U([_.gi("#toast"),_.O("design:type",Object)],J$.prototype,"toast",void 0);_.U([_.Z({value:function(){return{style:"call-to-action-inverse"}}}),
_.O("design:type",Object)],J$.prototype,"buttonOverrides",void 0);_.U([_.Z({value:{style:"mono-inverse"}}),_.O("design:type",Object)],J$.prototype,"closeButtonOverrides",void 0);_.U([_.Z({value:function(){return _.f().resolve(_.qI(_.OyY))}}),
_.O("design:type",Object)],J$.prototype,"toastManager",void 0);_.U([_.G("data.responseText","data.subText","data.actionButton"),_.O("design:type",Object),_.O("design:paramtypes",[])],J$.prototype,"labelText",null);_.U([_.Hl("toastOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J$.prototype,"toastOpenedChanged",null);
_.U([_.Hl("toastOpened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],J$.prototype,"toastOpenedChangedForBinding",null);J$=_.U([_.l0({is:"yt-notification-action-renderer",disableElementRegistration:!0})],J$);
_.q(J$,"yt-notification-action-renderer",function(){if(AiZ===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;bQu===void 0&&(bQu=document.createElement("template"));var n=bQu;C.call(k,n.content.cloneNode(!0),W.content.firstChild);AiZ=W}W=AiZ;return W},{mode:2});var wzZ=function(){var W=_.R.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(k){W.isLeaderTab&&W.downloadingCount>0&&(k.preventDefault(),
k.returnValue=!0)};
return W};
_.D(wzZ,_.R);_.Y=wzZ.prototype;
_.Y.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,k=this.sessionTotalDownloads>1?_.w8("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.w8("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(k=this.sessionTotalDownloads>1?_.w8("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.w8("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.w8("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.y4(this.data.responseText)!==k||_.y4(this.data.subText)!==W)this.set("data.responseText",_.Go(k)),this.set("data.subText",_.Go(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.Y.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.Y.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.Y.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
var cQ=wzZ;cQ.prototype.updateCurrentDownloadProgress=cQ.prototype.updateCurrentDownloadProgress;cQ.prototype.updatePopup=cQ.prototype.updatePopup;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],cQ.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],cQ.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],cQ.prototype,"actionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"duration",void 0);_.U([_.Z({selector:function(W){return _.okz(W.entities).length}}),
_.O("design:type",Object)],cQ.prototype,"downloadingCount",void 0);_.U([_.Z({selector:kfS}),_.O("design:type",Object)],cQ.prototype,"downloadedCount",void 0);_.U([_.Z({selector:function(W){var k=_.okz(W.entities);return W0A(W.entities,k)}}),
_.O("design:type",Object)],cQ.prototype,"downloadingOnlySmartDownloads",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"sessionTotalDownloads",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"sessionDownloaded",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"previousSessionsDownloaded",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"totalDownloadPercentage",void 0);
_.U([_.Z({selector:function(W){var k;W=(k=_.okz(W.entities))!=null?k:[];return W.length>0?_.MC4(W.slice(-1)):0}}),
_.O("design:type",Object)],cQ.prototype,"currentDownloadProgress",void 0);_.U([_.Z(),_.O("design:type",Object)],cQ.prototype,"currentDownloadPercentage",void 0);_.U([_.Z({selector:_.u13}),_.O("design:type",Object)],cQ.prototype,"isLeaderTab",void 0);_.U([_.gi("yt-notification-action-renderer"),_.O("design:type",Object)],cQ.prototype,"notificationActionRenderer",void 0);
_.U([_.Cq("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cQ.prototype,"updatePopup",null);_.U([_.Cq("currentDownloadProgress"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],cQ.prototype,"updateCurrentDownloadProgress",null);cQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],cQ);
_.q(cQ,"ytd-video-download-toast-renderer",function(){if(Bzt!==void 0)return Bzt;var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Bzt=W},{mode:1});var xd6;var lL6;var tj7=function(){return _.R.apply(this,arguments)||this};
_.D(tj7,_.R);tj7.prototype.computeIsRedLogo=function(W,k){!W&&k&&(W=k);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
tj7.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
var In=tj7;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],In.prototype,"componentBehavior",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.O("design:type",Boolean)],In.prototype,"isRedLogo",void 0);_.U([_.Z({computed:"computeLogoName(data)"}),_.O("design:type",String)],In.prototype,"logoName",void 0);_.U([_.Z({value:{}}),_.O("design:type",Object)],In.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],In.prototype,"logoType",void 0);In=_.U([_.T({disableElementRegistration:!0,is:"ytd-logo"})],In);
_.q(In,"ytd-logo",function(){if(lL6!==void 0)return lL6;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return lL6=W},{mode:_.UC("kevlar_poly_si_batch_j074")?1:2});var Ep$=function(){var W=_.R.apply(this,arguments)||this;W.animationRef={};return W};
_.D(Ep$,_.R);_.Y=Ep$.prototype;_.Y.attached=function(){document.addEventListener("yt-navigate-finish",_.LO(this,this.logYoodle))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.LO(this,this.logYoodle))};
_.Y.logYoodle=function(){var W,k;if((W=this.data)==null?0:(k=W.loggingDirectives)==null?0:k.trackingParams)this.ytRendererBehavior.markDirty(),_.kf().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.Y.computeHideImg=function(W,k){return!!W||!!k};
_.Y.computeHideYtdLogo=function(W,k){return!W||!!k};
_.Y.computeHideLottie=function(W){return!W};
_.Y.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.Y.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),k=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),C=this.getLogoTitleText(this.data),n=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==k&&(this.animatedUrl=k);this.logoTitleText!==C&&(this.logoTitleText=C);this.lottieUrl!==n&&(this.lottieUrl=n,this.lottiePlayerProps=this.computeLottiePlayerProps(n))};
_.Y.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.Kxp(W.thumbnails,122)||"":""};
_.Y.getThumbnailUrl=function(W,k){if(!k)return"";var C,n;W=W?(C=k.darkThemeLogo)==null?void 0:C.thumbnail:(n=k.lightThemeLogo)==null?void 0:n.thumbnail;return this.getSanitizedThumbnail(W)};
_.Y.getAnimatedThumbnailUrl=function(W,k){return k?this.getSanitizedThumbnail(W?k.darkThemeAnimatedLogo:k.lightThemeAnimatedLogo):""};
_.Y.getLogoTitleText=function(W){if(W)return _.y4(W.tooltipText)};
_.Y.computeLogoIcon=function(W,k){if(k){var C,n;return W?(C=k.darkThemeLogo)==null?void 0:C.icon:(n=k.lightThemeLogo)==null?void 0:n.icon}};
_.Y.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.Y.getLottieUrl=function(W,k){var C,n,N,B;return W?k==null?void 0:(C=k.darkThemeLogo)==null?void 0:(n=C.lottieAnimation)==null?void 0:n.url:k==null?void 0:(N=k.lightThemeLogo)==null?void 0:(B=N.lottieAnimation)==null?void 0:B.url};
_.Y.computeLottiePlayerProps=function(W){if(W){var k;if((k=this.animationRef)==null?0:k.lottieEl){var C;(C=this.animationRef)==null||C.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.Y.onLottieError=function(){this.data&&this.lottieUrl&&_.Pe(this.hostElement,"yoodle-error")};
_.Y.onImgError=function(){this.data&&!this.lottieUrl&&_.Pe(this.hostElement,"yoodle-error")};
var S4=Ep$;S4.prototype.playAnimation=S4.prototype.playAnimation;S4.prototype.renderLogoEntity=S4.prototype.renderLogoEntity;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],S4.prototype,"data",void 0);_.U([_.Z({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.O("design:type",Boolean)],S4.prototype,"hideImg",void 0);
_.U([_.Z({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.O("design:type",Boolean)],S4.prototype,"hideYtdLogo",void 0);_.U([_.Z({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.O("design:type",Boolean)],S4.prototype,"hideLottie",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.O("design:type",Boolean)],S4.prototype,"isRedLogo",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],S4.prototype,"useDarkThemeYoodle",void 0);_.U([_.Z(),_.O("design:type",String)],S4.prototype,"url",void 0);_.U([_.Z(),_.O("design:type",String)],S4.prototype,"animatedUrl",void 0);_.U([_.Z(),_.O("design:type",String)],S4.prototype,"logoTitleText",void 0);_.U([_.Z({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.O("design:type",Object)],S4.prototype,"logoIcon",void 0);_.U([_.Z(),_.O("design:type",Object)],S4.prototype,"logoType",void 0);
_.U([_.Z(),_.O("design:type",String)],S4.prototype,"lottieUrl",void 0);_.U([_.Z(),_.O("design:type",Object)],S4.prototype,"lottiePlayerProps",void 0);_.U([_.Z(),_.O("design:type",Object)],S4.prototype,"animationRef",void 0);_.U([_.Hl("data"),_.Hl("useDarkThemeYoodle"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],S4.prototype,"renderLogoEntity",null);
_.U([_.jI("click"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],S4.prototype,"playAnimation",null);S4=_.U([_.T({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],S4);
_.q(S4,"ytd-yoodle-renderer",function(){if(xd6!==void 0)return xd6;var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return xd6=W},{mode:_.UC("kevlar_poly_si_batch_j074")?1:2});var aLi;var Xz6;var fL$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.D(fL$,_.R);_.Y=fL$.prototype;_.Y.onYoodleError=function(){_.m("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.Y.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.Y.computeTitle=function(W,k,C){return C&&(k==null?0:k.tooltipText)?_.y4(k.tooltipText):_.y4(W)};
_.Y.computeAriaLabel=function(W,k,C){return C&&(k==null?0:k.tooltipText)?_.y4(W):""};
_.Y.computeShowYoodle=function(W,k,C){return!W||!k&&!!C&&!_.JU.isEmpty(C)};
_.Y.onNavigateHomeAction=function(){if(_.m("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.S(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.Y.computeLogoHref=function(W,k,C){var n;(C==null?0:C.onTapCommand)?n=this.componentBehavior.computeHref_(C.onTapCommand):W&&(n=this.componentBehavior.computeHref_(W));return n?n:k};
_.Y.computeCommand=function(W,k){return(k==null?void 0:k.onTapCommand)||W};
_.Y.getEndpointForm=function(){if(_.m("kevlar_topbar_disable_cache_only_home")){var W=_.f().resolve(_.ak),k=bX7(W.getState())||"";W=_.asw(W.getState())||"";return{disableCache:k==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
var M5=fL$;M5.prototype.onYoodleError=M5.prototype.onYoodleError;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],M5.prototype,"componentBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);
_.U([_.Z(),_.O("design:type",Object)],M5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],M5.prototype,"countryCode",void 0);_.U([_.Z({selectorArgs:["data.overrideEntityKey"],selector:function(W,k){return _.hQ(W.entities,"logoEntity",k)}}),
_.O("design:type",Object)],M5.prototype,"logoEntity",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.O("design:type",Boolean)],M5.prototype,"showYoodle",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],M5.prototype,"yoodleError",void 0);_.U([_.Z({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.O("design:type",String)],M5.prototype,"titleText",void 0);
_.U([_.Z({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.O("design:type",String)],M5.prototype,"ariaLabelText",void 0);_.U([_.Z({value:"/"}),_.O("design:type",String)],M5.prototype,"defaultEndpointUrl",void 0);_.U([_.Z({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.O("design:type",String)],M5.prototype,"endpointUrl",void 0);
_.U([_.Z({computed:"computeCommand(data.endpoint, logoEntity)"}),_.O("design:type",String)],M5.prototype,"command",void 0);_.U([_.Z(),_.O("design:type",Object)],M5.prototype,"logoType",void 0);_.U([_.Z({}),_.O("design:type",Boolean)],M5.prototype,"useDarkThemeYoodle",void 0);_.U([_.jI("yoodle-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],M5.prototype,"onYoodleError",null);M5=_.U([_.T({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],M5);
_.q(M5,"ytd-topbar-logo-renderer",function(){if(Xz6!==void 0)return Xz6;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return Xz6=W},{mode:_.UC("kevlar_poly_si_batch_j027")?1:2});var ddi=0;var mdS=_.sT.SEARCH_APPEND_LABEL,zTT=_.sT.SUGGESTION_NEW_VIDEOS_TEXT,Ddi=_.sT.SUGGESTION_THUMBNAIL_LABEL,Vj7=_.GM(function(W){function k(RJ){var Y2,VY;return _.F(function(cY){if(cY.nextAddress==1)return Y2=new Request(RJ),_.F0(cY,2),_.l(cY,fetch(Y2,{credentials:"include"}),4);if(cY.nextAddress!=2)return ms(!0),_.M7(cY,0);VY=_.EF(cY);_.zJ(VY);_.ab(cY)})}
var C=W.isHighlighted;var n=W.suggestion;var N=W.onClickCallback;var B=W.onHoverUpdateCallback;var A=W.labels;var w=W.queryBuilderFunction;var x=W.onRemoveCallback;var E=W.suggestionIndex;var a=W.generateUniqueId;var X=W.highlightedId;var d=W.useScrollMargin;var V=W.isKeyboardMode;var c=null,M=null,p=_.yE(),e=_.yE(),u=_.$I(function(RJ){RJ&&_.MK(237477,RJ,M,function(Y2){M=Y2})}),h=_.$I(function(RJ){RJ&&_.MK(237477,RJ,M,function(Y2){M=Y2})}),L=_.Pj(function(RJ){if((RJ==null?void 0:RJ.button)===2)return RJ.preventDefault(),
!1;
var Y2=_.VM();Y2&&c&&_.Rz(Y2,c,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var VY;N(RJ,n().text,n().index,RJ==null?void 0:(VY=RJ.detail)==null?void 0:VY.wasSelectedByKeyboard);return!1}),Bw=function(){return n().type===35},P=function(){return _.m("desktop_enable_single_suggestion_highlight")},xz=function(){return _.m("desktop_enable_entity_suggest")},Sp=function(){return _.Oe("desktop_suggestions_panel_row_height")||0},vw=function(){var RJ;
return _.m("desktop_enable_new_video_metadata")&&((RJ=n())==null?void 0:RJ.hasNewVideo)===!0},lw=function(){return _.m("desktop_enable_visual_suggest")},G4=function(){return n().entitySubtitle},nA=function(){return P()?(C==null?void 0:C())||oe()&&!(V==null?0:V()):(C==null?void 0:C())||oe()},Xs=function(){var RJ=_.DE("SBOX_SETTINGS");
return Bw()&&!(RJ==null?0:RJ.HIDE_REMOVE_LINK)},aI=function(){return imZ(n())},LA,dj=!((LA=_.f().resolve(_.qI(_.cj)))==null||!LA()),hK=function(){return Bw()?"ARROW_TIME":"SEARCH"},Tz=function(){return A==null?void 0:A().SUGGESTION_DISMISS_LABEL},S8=function(){return A==null?void 0:A().SUGGESTION_DISMISSED_LABEL};
LA=_.b(_.kw(!1,void 0,"ByoSbe"));W=LA.next().value;var ms=LA.next().value;LA=_.b(_.kw(!1,void 0,"I2Bnsf"));var pA=LA.next().value,k3=LA.next().value,oe=pA,bw=_.Pj(function(){w(e.value.innerText);return!1}),C7=_.Pj(function(RJ){RJ.preventDefault();
return!1}),j8=_.Pj(function(RJ){var Y2=n().text,VY=_.DE("SBOX_SETTINGS"),cY="https://"+(VY.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
cY+="&delq="+encodeURIComponent(Y2);(Y2=VY==null?void 0:VY.PSUGGEST_TOKEN)&&(cY+="&tok="+Y2);(VY=VY==null?void 0:VY.SESSION_INDEX)&&(cY+="&authuser="+VY);k(cY);RJ.preventDefault();(RJ=_.VM())&&M&&_.Rz(RJ,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");x(E==null?void 0:E());return!1}),CL=_.Pj(function(){if(P()&&(V==null?0:V()))return!1;
k3(!0);B(!0);return!1}),EA=_.Pj(function(){k3(!1);
B(!1);return!1});
LA=_.b(_.kw("",void 0,"f8xtGe"));var Nu=LA.next().value,AS=LA.next().value;_.lI(function(){Xs()&&AS(a==null?void 0:a(E==null?void 0:E()));p.value&&_.MK(12453,p.value,c,function(RJ){c=RJ})});
return _.t(_.NI,{cond:W,then:function(){var RJ={};return _.t("div",{class:_.Li("ytSuggestionComponentRemovedText",(RJ.ytSuggestionComponentLargerRemovedText=function(){return lw()},RJ)),
style:function(){return Sp()>0?"height: "+Sp()+"px;":""},
role:"button"},S8)},
else:function(){var RJ={},Y2={};return _.t("div",{class:_.Li("ytSuggestionComponentSuggestion",(RJ.ytSuggestionComponentSuggestionHover=function(){return!P()},RJ.ytSuggestionComponentHighlighted=nA,RJ.ytSuggestionComponentPersonalizedSuggestion=Bw,RJ.ytSuggestionComponentMweb=!1,RJ.ytSuggestionComponentLargerSuggestion=function(){return vw()||lw()},RJ.ytSuggestionComponentThumbnailSuggestion=function(){return lw()},RJ.ytSuggestionComponentRoundedSuggestion=function(){return _.m("desktop_enable_scrollable_suggestions_panel")&&
_.m("desktop_enable_suggestions_panel_padding")},RJ)),
style:function(){return Sp()>0?"height: "+Sp()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":CL,"on:mouseout":EA,el:p},_.t("div",{class:_.Li("ytSuggestionComponentText",(Y2.ytSuggestionComponentScrollMargin=d,Y2)),"aria-label":function(){return vw()?n().text+" "+zTT:n().text},
id:function(){return a==null?void 0:a(E==null?void 0:E())},
"on:mousedown":L,role:"option"},_.t(_.NI,{cond:function(){return n().type!==33},
then:function(){return _.t(_.ka,{icon:hK,className:"ytSuggestionComponentIcon"})}}),_.t("div",{class:"ytSuggestionComponentLeftContainer"},_.t("span",{el:e,
role:"button",tabindex:0},_.t(_.bI,{each:aI},function(VY){return VY.bold?_.t("span",{class:"ytSuggestionComponentBold"},VY.text):_.t("span",null,VY.text)})),_.t(_.NI,{cond:function(){return xz()&&TV6(n())&&!!n().entitySubtitle},
then:function(){return _.t("div",{class:"ytSuggestionComponentEntitySubtitle"},G4)}}),_.t(_.NI,{cond:function(){return vw()},
then:function(){return _.t("div",{class:"ytSuggestionComponentNewVideoContainer"},_.t("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.t("div",{class:"ytSuggestionComponentNewVideoText"},zTT))}}))),_.t("div",{class:"ytSuggestionComponentRightContainer"},_.t(_.NI,{cond:function(){return lw()&&n().visualSuggestUrl!==void 0},
then:function(){var VY={};return _.t("div",{class:"ytSuggestionComponentThumbnailContainer"},_.t("img",{"aria-label":Ddi,class:_.Li("ytSuggestionComponentVisualSuggestThumbnail",(VY.ytSuggestionComponentCircularFrame=function(){return xz()&&TV6(n())&&n().subtypes.includes(790)},VY.ytSuggestionComponentEntitySuggestThumbnail=function(){return xz()&&TV6(n())},VY)),
src:function(){return n().visualSuggestUrl}}))}}),_.t(_.Fc,null,_.t(_.Aj,{when:function(){return lw()&&Xs()}},function(){var VY={};
return _.t("button",{class:_.Li("ytSuggestionComponentRemoveLinkClearButton",(VY.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Nu()&&Nu()===(X==null?void 0:X())},VY.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!nA()},VY)),
el:h,"on:mousedown":j8,"aria-label":Tz,id:function(){return Nu()}},_.t(_.ka,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.t(_.Aj,{when:function(){return!(lw()&&n().visualSuggestUrl!==void 0)&&Xs()}},function(){var VY={};
return _.t("a",{class:_.Li("ytSuggestionComponentRemoveLink",(VY.ytSuggestionComponentRemoveLinkDark=dj,VY.ytSuggestionComponentRemoveLinkSelected=function(){return Nu()&&Nu()===(X==null?void 0:X())},VY)),
el:u,"on:mousedown":j8,"aria-label":Tz,tabindex:0,role:"button",id:function(){return Nu()}},Tz)}),_.t(_.Aj,{when:function(){return!1}},function(){return _.t("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":bw,"on:mousedown":C7,role:"button","aria-label":mdS},_.t(_.ka,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Qf");var JiY=_.GM(function(){var W=_.Pj(function(){OmB().inputMethodsTracker.add(3);var k,C=(k=_.DE("SBOX_SETTINGS"))==null?void 0:k.REQUEST_LANGUAGE;if(C)return _.ML("//www.google.com/textinputassistant/14/"+C+"_tia.js"),!1});
return _.t("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.t("button",{class:"ytdTextInputAssistantButton","on:click":W},_.t("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Rf");var ci7=function(){this.cache=new Map},ILu=function(W){for(var k=_.b(W.cache.entries()),C=k.next();!C.done;C=k.next()){var n=_.b(C.value);
C=n.next().value;n=n.next().value;n.suggestions.some(function(N){return N.type===35})&&W.cache.delete(C)}};var STZ=_.sT.SEARCH,MjY=_.sT.SEARCH_CLEAR_LABEL,Qgu=new _.Tc("FAKE_SUGGEST_RESPONSE");_.Gj(_.GM(function(W){function k(){RJ||(RJ=setTimeout(function(){VY()},1E3))}
function C(CA,Fs){if(CA.trim()){AS=CA;_.z3("REFINEMENTS_TUPLE",void 0);EA=!0;var H8;Fs=Hmi(oe,Fs);var DZ=(H8=W.searchEndpoint)==null?void 0:H8.call(W);H8=S8.value.value;DZ||(DZ=DRY);var zi;(zi=_.z(DZ.commandMetadata,_.Ok))!=null&&zi.url||(zi=Error("ml`"+JSON.stringify(DZ)),_.dI(zi),DZ=DRY);zi=_.JU.unsafeClone(DZ);DZ=_.JB(_.z(zi.commandMetadata,_.Ok).url,"search_query",CA);_.e_(location.href,"sv")==="1"&&(_.z(zi,_.CO).params="EgOAAgE%3D",DZ=_.JB(DZ,"sv","1"));_.z(zi,_.CO)&&(_.z(zi,_.CO).query=CA);
DZ=DZ.replace(/%20/g,"+");_.z(zi.commandMetadata,_.Ok).url=DZ;_.f().resolve(_.uI).resolveCommand(zi,{form:{tempData:{gs_l:Fs,oq:H8!=null?H8:CA}}});VY();S8.value.value=CA;S8.value.blur();oe.reset()}}
function n(CA){return _.F(function(Fs){return Fs.return(new Promise(function(H8){var DZ=new XMLHttpRequest;DZ.open("GET",sGt(CA),!0);DZ.withCredentials=!0;var zi=_.DE("SBOX_SETTINGS");(zi==null?0:zi.SEND_VISITOR_DATA)&&DZ.setRequestHeader("X-Goog-Visitor-Id",zi==null?void 0:zi.VISITOR_DATA);DZ.onload=function(){H8(DZ.responseText)};
DZ.onerror=function(){_.zJ(Error("nl"));H8(null)};
setTimeout(function(){DZ.abort()},1E4);
DZ.send(null)}))})}
function N(CA){var Fs,H8,DZ,zi;return _.F(function(KU){switch(KU.nextAddress){case 1:return Fs={credentials:"include",headers:etB()},window.AbortController&&(H8=new AbortController,setTimeout(function(){H8.abort("ytsbox-suggest-timeout")},1E4),Fs.signal=H8.signal),_.F0(KU,2),_.l(KU,fetch(sGt(CA),Fs),4);
case 4:DZ=KU.yieldResult.text();_.M7(KU,3);break;case 2:return zi=_.EF(KU),zi!=="ytsbox-abort-last"&&zi!=="ytsbox-suggest-timeout"&&_.zJ(zi),KU.return(null);case 3:return KU.return(DZ)}})}
function B(CA){var Fs,H8,DZ;return _.F(function(zi){switch(zi.nextAddress){case 1:if(Fs=_.f().resolve(_.qI(Qgu)))return zi.return(Fs);H8=Date.now();k();return _.m("yt_searchbox_xhr")?_.l(zi,n(CA),5):_.l(zi,N(CA),4);case 4:DZ=zi.yieldResult;zi.jumpTo(3);break;case 5:DZ=zi.yieldResult;case 3:if(DZ){RJ&&(clearTimeout(RJ),RJ=null);var KU=oe,MS=H8,Bm=CA.query.length===0;MS=Date.now()-MS;Bm?KU.zeroPrefixRoundTripTime=MS:(KU.JSC$18258_totalRoundTripTime+=MS,KU.maxRoundTripTime=Math.max(KU.maxRoundTripTime,
MS),Bm=Math.floor(MS/100),Bm>=rF7.length?++KU.roundTripTimeHistogram[9]:++KU.roundTripTimeHistogram[rF7[Bm]])}return zi.return(DZ)}})}
function A(CA){var Fs,H8,DZ;return _.F(function(zi){if(zi.nextAddress==1)return(Fs=k3.cache.get(v_A(CA)))?zi.return(Fs):_.l(zi,B(CA),2);H8=zi.yieldResult;if(H8===null)return zi.return(null);DZ=new qPu(H8);CA.query.length===0&&DZ.suggestions.length===0||k3.cache.set(v_A(CA),DZ);return zi.return(DZ)})}
function w(CA){var Fs,H8;return _.F(function(DZ){if(DZ.nextAddress==1){Nu=!1;var zi=AS;zi=_.WL3()==="search"?(_.e_(location.href,"search_query")||_.e_(location.href,"q"))===zi:!1;Fs=new p7B(CA,zi?AS:null);return _.l(DZ,A(Fs),2)}H8=DZ.yieldResult;if(H8===null)return DZ.return();Fs.query.length===0&&(oe.zeroPrefixSuggestionCount=H8.suggestions.length);if(Fs.id<=Y2)return oe.outOfSyncResponseCount++,DZ.return();if(document.activeElement!==S8.value)return DZ.return();Y2=Fs.id;var KU=oe,MS=H8.rawResponse[2]||
{};KU.experimentTriggeredBeforeFinal||(KU.experimentTriggeredBeforeFinal=KU.experimentTriggeredFinal);KU.experimentTriggeredFinal=!!MS.e;oe.updateSuggestions(H8.suggestions);p(-1);LA([]);H8.suggestions!==V()&&Y6(H8.suggestions.length);c(H8.suggestions);Sp(H8.suggestions.length>0&&H8.suggestions[0].type===33);pA&&(pA.hidden=H8.suggestions.length===0,xz()?(pA.style.minWidth="",KU=pA.style,MS=(zi=V()[0])==null?void 0:zi.ignoredPrefix,KU.marginLeft=(MS?Math.min(MS.length*6,ms.value.offsetWidth):0).toString()+
"px"):(pA.style.minWidth=ms.value.offsetWidth+"px",pA.style.marginLeft="0"),Tw());_.ab(DZ)})}
function x(){if(!EA)return!1;var CA=_.DE("REFINEMENTS_TUPLE");return CA?(CA=CA[1].map(function(Fs,H8){return new o_6([Fs,0,[71]],S8.value.value,H8)}),V()!==CA&&Y6(CA.length),LA([]),c(CA),oe.updateSuggestions(CA),EA=!1,pA.hidden=CA.length===0,Nu=CA.length>0,!0):!1}
function E(){var CA=S8.value.value;(typeof CA==="string"||CA instanceof String)&&CA!==""?L(!0):L(!1)}
function a(){if(_.WL3()==="search"){var CA=window.location.href;try{var Fs=_.e_(CA,"search_query")||_.e_(CA,"q")||""}catch(H8){Fs=""}Fs&&(S8.value.value=Fs,L(!0))}}
var X=_.b(_.kw([],void 0,"nfrtkb")),d=X.next().value;X=X.next().value;var V=d,c=X;d=_.b(_.kw(-1,void 0,"cRyFvd"));var M=d.next().value,p=d.next().value;d=_.b(_.kw(-1,void 0,"EriPWe"));var e=d.next().value,u=d.next().value;d=_.b(_.kw(!1,void 0,"UK7opd"));var h=d.next().value,L=d.next().value;d=_.b(_.kw(!1,void 0,"ego0bc"));var Bw=d.next().value,P=d.next().value;X=_.b(_.kw(!1,void 0,"lRwSBb"));d=X.next().value;X=X.next().value;var xz=d,Sp=X;X=_.b(_.kw(!1,void 0,"gLkpXb"));d=X.next().value;var vw=X.next().value;
X=_.b(_.kw(!1,void 0,"In4Zlb"));var lw=X.next().value,G4=X.next().value;X=_.b(_.kw(1,void 0,"pQNR0c"));var nA=X.next().value,Xs=X.next().value;X=_.b(_.kw([],void 0,"EFteUe"));var aI=X.next().value,LA=X.next().value;X=_.b(_.kw(!1,void 0,"fnEGyd"));var dj=X.next().value,hK=X.next().value;X=_.m("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Tz=_.yE(),S8=_.yE(),ms=_.yE(),pA,k3=new ci7,oe=OmB(),bw=_.f().resolve(_.qI(_.cj)),
C7=function(){var CA;return((CA=W.forceDarkMode)==null?void 0:CA.call(W))||!(bw==null||!bw())},j8=function(){return _.m("desktop_enable_scrollable_suggestions_panel")},CL="i"+ddi++,EA=!1,Nu=!1,AS="",RJ=null,Y2=-1,VY=function(){LA([]);
c([]);Sp(!1);pA&&(pA.hidden=!0);RJ&&(clearTimeout(RJ),RJ=null);p(-1)},cY=function(CA,Fs){CA.preventDefault();
hK(!0);pA&&(pA.hidden=!1);var H8=M();CA=V();var DZ=aI();Fs=FGE(Fs);H8+=Fs;for(H8>=CA.length?H8=-1:H8<-1&&(H8=CA.length-1);H8!==-1&&(DZ.includes(H8)||H8>=CA.length||H8<0);)H8+=Fs,H8>=CA.length&&(H8=-1);p(H8);M()>=0&&(S8.value.value=V()[M()].text,u(0),E(),CA=M(),DZ=e(),(DZ=document.getElementById(m_[CA][DZ]))&&j8()&&(CA===V().length-1?pA.scrollTop=pA.scrollHeight:DZ.scrollIntoView({block:"nearest",inline:"start"})))};
_.Zx(S8,"focus",function(CA){if(!(CA.relatedTarget instanceof Element&&CA.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){P(!0);var Fs;(Fs=W.focusCallback)==null||Fs.call(W,!0);x()||(Nu?pA.hidden=!1:(_.Pe(Tz.value,"yt-autonav-pause-focus",{}),w(CA.target.value)))}});
_.Zx(S8,"blur",function(CA){if(!(CA.relatedTarget instanceof Element&&CA.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){P(!1);var Fs;(Fs=W.focusCallback)==null||Fs.call(W,!1);pA.scrollTop=0;pA.hidden=!0;_.Pe(Tz.value,"yt-autonav-pause-blur",{})}});
var e8=function(CA){CA=FGE(CA);var Fs;((Fs=m_[M()])==null?0:Fs[e()+CA])&&u(e()+CA)},R1=_.Pj(function(CA){var Fs=CA.target;
switch(CA.keyCode){case 13:CA.preventDefault();var H8;if((H8=m_[M()])==null?0:H8[e()]){var DZ;(DZ=document.getElementById(m_[M()][e()]))==null||DZ.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}CA=CA.shiftKey?4:3;H8=oe;DZ=M();H8.selectedSuggestionIndex=DZ;C(Fs.value,CA);break;case 27:pA&&(pA.hidden=!0);break;case 40:cY(CA,40);break;case 38:cY(CA,38);break;case 39:e8(39);break;case 37:e8(37);break;case 229:oe.inputMethodsTracker.add(4);break;default:oe.inputMethodsTracker.add(1),
LHZ(oe)}return!1}),Ie=_.Pj(function(CA){w(CA.target.value);
E();j8()&&pA&&(pA.scrollTop=0);return!1}),qZ=_.Pj(function(){oe.inputMethodsTracker.add(2);
LHZ(oe);return!1});
_.lI(function(){if(pA){oe.reset();if(window.ResizeObserver){var CA=new ResizeObserver(function(){xz()||(pA.style.minWidth=ms.value.offsetWidth+"px")});
CA.observe(ms.value);(new ResizeObserver(function(){Tw()})).observe(pA);
_.fy(function(){CA.disconnect()})}a();
window.addEventListener("yt-navigate-finish",a);window.addEventListener("yt-focus-searchbox",function(){S8.value.focus()});
var Fs;vw((Fs=_.DE("SBOX_SETTINGS"))==null?void 0:Fs.HAS_ON_SCREEN_KEYBOARD)}else _.dI(new _.AM("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var F7=_.Pj(function(CA){CA.preventDefault();C(S8.value.value,12);return!1}),e3=_.Pj(function(CA){CA.preventDefault();
var Fs,H8;(Fs=S8)==null||(H8=Fs.value)==null||H8.focus();var DZ,zi;((DZ=S8)==null?void 0:(zi=DZ.value)==null?void 0:zi.value)!==""&&(S8.value.value="",S8.value.dispatchEvent(new Event("input")));return!1}),Uk=_.Pj(function(){var CA=AyY(S8.value.value,V().filter(function(Fs){return Fs.type!==35}).map(function(Fs){return{label:Fs.text}}));
_.KY(Tz.value,"yt-open-popup-action",[{openPopupAction:CA},document.body]);return!1}),IO=_.Pj(function(){S8.value.focus();
return!1}),IW=function(CA,Fs,H8,DZ){oe.selectedSuggestionIndex=H8;
C(Fs,DZ?3:1)},VK=function(CA){S8.value.value=CA;
S8.value.dispatchEvent(new Event("input"));oe.inputMethodsTracker.add(5);LHZ(oe,!0)},m_=[[]],Pl=function(CA){var Fs="searchbox-suggestion"+_.Jf(_.cG);
m_[CA].push(Fs);return Fs},Y6=function(CA){if(V()){m_=[[]];
for(var Fs=0;Fs<CA;Fs++)m_.push([])}},Tw=function(){if(j8()){var CA=pA,Fs=CA.scrollTop;
CA=CA.scrollHeight-CA.clientHeight;G4(Fs>=CA);Fs=Math.abs(CA-Fs);Fs<=40?Xs(1-(40-Fs)/40):Xs(1)}},Jj=function(){return"opacity: "+nA()*100+"%"},UF=_.Pj(function(){Tw();
return!1}),XP=_.Pj(function(){hK(!1);
return!1}),z4,ep={},oJ={},lb={},n7={};
return _.t("yt-searchbox",{class:_.Li("ytSearchboxComponentHost",(ep.ytSearchboxComponentMweb=!1,ep.ytSearchboxComponentDesktop=!0,ep["yt-searchbox-filled-query"]=function(){return h()},ep["ytd-masthead"]=function(){return!Bw()},ep.ytSearchboxComponentHostDark=C7,ep)),
role:"search",el:Tz,"client-ve-type":10349},_.t("div",{el:ms,"on:click":IO,class:_.Li("ytSearchboxComponentInputBox",(oJ.ytSearchboxComponentInputBoxDark=C7,oJ.ytSearchboxComponentInputBoxHasFocus=Bw,oJ))},_.t("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":F7},_.t(_.NI,{cond:Bw,then:function(){return _.t("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.t(_.ka,{icon:"SEARCH"}))}}),_.t("input",{el:S8,
class:_.Li("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":CL,"aria-expanded":!((z4=pA)==null?0:z4.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":Ie,"on:keydown":R1,"on:paste":qZ,placeholder:W.placeholderText,"aria-activedescendant":function(){var CA;return(CA=m_[M()])==null?void 0:CA[e()]},
"aria-autocomplete":"list",role:"combobox"})),_.t(_.NI,{cond:d,then:function(){return _.t("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.t(JiY,null))}}),_.t(_.NI,{cond:h,
then:function(){return _.t("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.t("button",{class:"ytSearchboxComponentClearButton","on:click":e3,"aria-label":W.clearButtonAriaLabel||MjY},_.t(_.ka,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.t(_.BJ,{model:{}})))}})),_.t("button",{class:_.Li("ytSearchboxComponentSearchButton",(lb.ytSearchboxComponentSearchButtonDark=C7,lb)),
"on:click":F7,"aria-label":STZ,title:W.placeholderText},_.t(_.ka,{icon:"SEARCH"})),_.t(_.NI,{cond:function(){if(zmZ()&&_.m("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(CA){var Fs={};return _.t("div",{class:_.Li("ytSearchboxComponentVoiceSearchWrapper",(Fs.ytSearchboxComponentHideVoiceSearchButton=function(){return h()},Fs))},_.t(_.Ex,{data:CA},{buttonRenderer:function(H8){return _.t(_.qg,{data:H8.data,
onButtonClickCallback:function(){}})}}))}}),_.t("div",{el:_.eQP(function(CA){return void(pA=CA)}),
id:CL,class:_.Li("ytSearchboxComponentSuggestionsContainer",(n7.ytSearchboxComponentSuggestionsContainerDark=C7,n7["yt-searchbox-suggestions-container"]=!1,n7.ytSearchboxComponentSuggestionsContainerScrollable=j8(),n7.ytSearchboxComponentSuggestionsContainerAnimated=X,n7)),"on:scroll":UF,"on:mousemove":XP,role:"listbox",hidden:!0},_.t(_.bI,{each:V},function(CA,Fs){return _.t(Vj7,{suggestion:CA,isHighlighted:function(){return Fs()===M()},
onClickCallback:IW,onHoverUpdateCallback:function(H8){if(_.m("desktop_enable_single_suggestion_highlight")){var DZ=Fs();H8&&(u(0),p(DZ))}},
onRemoveCallback:function(H8){ILu(k3);H8===void 0||H8<0||aI().includes(H8)||LA([].concat(_.J8(aI()),[H8]))},
labels:W.labels,queryBuilderFunction:VK,suggestionIndex:Fs,generateUniqueId:Pl,highlightedId:function(){var H8;return(H8=m_[M()])==null?void 0:H8[e()]},
useScrollMargin:j8(),isKeyboardMode:dj})}),_.t(_.NI,{cond:function(){return!xz()&&V().find(function(CA){return CA.type!==35})&&_.m("searchbox_reporting")},
then:function(){return _.t("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Uk},_.w8("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.t(_.NI,{cond:function(){return!lw()&&j8()},
then:function(){return _.t("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.t("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Jj}))}})))},"Sf"),"yt-searchbox",{props:{searchEndpoint:_.Ik,
placeholderText:_.Ik,labels:_.Ik,voiceSearchButton:_.Ik,focusCallback:_.si,clearButtonAriaLabel:_.Ik,forceDarkMode:_.Ik}});var pz6=function(){var W=_.R.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.w8("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.w8("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.w8("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.w8("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.desktopUnifiedSearchPanelMode=_.m("desktop_enable_unified_search_panel");
W.cinematicTheaterMode=_.m("web_cinematic_theater_mode");W.ytSearchboxFocused=!1;W.searchboxLabels=_.DE("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=pg1();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=function(k){W.ytSearchboxFocused=k};
return W};
_.D(pz6,_.R);_.Y=pz6.prototype;_.Y.computeSimpleText=function(W){return _.y4(W)};
_.Y.onDarkChanged=function(){for(var W=_.b(this.buttons||[]),k=W.next();!k.done;k=W.next())k.value.isOverlay=!!this.dark;W=_.b(this.buttonRenderers||[]);for(k=W.next();!k.done;k=W.next())k.value.overrides=this.computeButtonOverride()};
_.Y.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.SD(_.Ir(),"aa");_.qw(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.m("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.xL(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.LO(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.LO(this,this.onSetTheaterModeEnabled))};
_.Y.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.LO(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.LO(this,this.onSetTheaterModeEnabled))};
_.Y.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?pg1().isSupported():!1,_.BpA(_.gF(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.CB(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.qw(this.hostElement,"dark",!1),_.qw(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.m("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.xL(W))))};
_.Y.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.Y.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.qw(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.Y.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.Y.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.Y.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.Y.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.Y.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.Y.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.Y.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.Y.calculateBackgroundOpacity=function(W){var k=this.theater&&this.cinematicTheaterMode?.6:0,C=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),C)/C*(1-k)+k};
_.Y.shouldShowCinematicMastHead=function(){var W=_.m("kevlar_watch_grid")&&!_.m("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.Y.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.Y.focusGuide=function(){this.guideButton.focus()};
_.Y.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.Pe(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.Y.onGuideToggleTap=function(){_.Pe(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.Y.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.Y.onGuideToggleHover=function(){_.Pe(this.hostElement,"yt-guide-hover")};
_.Y.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.Y.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.Y.closeOnOutsideClickCondition=function(W){for(W=_.vl(W);W[0];){var k=W.shift();if(k instanceof Element&&k.id==="kbd")return!1}return!0};
_.Y.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.Y.pausePlayer=function(){var W;(W=_.Zf())==null||W.pause();this.pauseMiniplayer()};
_.Y.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.f().resolve(_.eq).getPlayerElement())==null||W.pause()}};
_.Y.isMiniplayerActive=function(){return _.f().resolve(_.eq).isMiniplayerActive()};
_.Y.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.Y.onYtSendFeedbackAction=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.oq.Object.defineProperties(pz6.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
var Qj=pz6;Qj.prototype.narrowChanged=Qj.prototype.narrowChanged;Qj.prototype.onIronResize=Qj.prototype.onIronResize;Qj.prototype.onWatchPageChange=Qj.prototype.onWatchPageChange;Qj.prototype.onRendererStamperFinished=Qj.prototype.onRendererStamperFinished;Qj.prototype.dataChanged=Qj.prototype.dataChanged;Qj.prototype.onDarkChanged=Qj.prototype.onDarkChanged;_.U([_.v(_.mV),_.O("design:type",Object)],Qj.prototype,"ironResizableBehavior",void 0);
_.U([_.v(_.$Z$),_.O("design:type",Object)],Qj.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.v(_.cV.YtdGuideStateAwareBehavior),_.O("design:type",Object)],Qj.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Qj.prototype,"ytComponentBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Qj.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.fk),_.O("design:type",Object)],Qj.prototype,"ytdReduxBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"narrow",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"logoType",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],Qj.prototype,"voiceEnabled",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"menuStrings",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],Qj.prototype,"dark",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qj.prototype,"pageDarkTheme",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"watchPageScrollTop",void 0);
_.U([_.Z({reflectToAttribute:!0,selector:_.DF}),_.O("design:type",Boolean)],Qj.prototype,"isWatchPage",void 0);_.U([_.Z({reflectToAttribute:!0,selector:_.v7p}),_.O("design:type",Boolean)],Qj.prototype,"isShortsPage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qj.prototype,"theater",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],Qj.prototype,"fullscreen",void 0);
_.U([_.Z({reflectToAttribute:!0,selector:_.$$z}),_.O("design:type",String)],Qj.prototype,"frostedGlassMode",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"ytSearchboxFocused",void 0);_.U([_.hh("#buttons > *"),_.O("design:type",Array)],Qj.prototype,"buttons",void 0);_.U([_.hh("ytd-button-renderer"),_.O("design:type",Array)],Qj.prototype,"buttonRenderers",void 0);_.U([_.gi("#background"),_.O("design:type",HTMLDivElement)],Qj.prototype,"background",void 0);
_.U([_.gi("#guide-button"),_.O("design:type",Object)],Qj.prototype,"guideButton",void 0);_.U([_.gi("#logo"),_.O("design:type",Object)],Qj.prototype,"logo",void 0);_.U([_.Z({computed:"computeButtonOverride(dark)"}),_.O("design:type",Object)],Qj.prototype,"buttonOverrides",void 0);_.U([_.Cq("dark"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"onDarkChanged",null);_.U([_.Z({value:function(){return this.onVoiceTap.bind(this)}}),
_.O("design:type",Function)],Qj.prototype,"boundOnTapVoiceButton",void 0);_.U([_.Z(),_.O("design:type",Object)],Qj.prototype,"topbarIsAboveChipbar",void 0);_.U([_.G("voiceEnabled"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],Qj.prototype,"shouldShowVoiceSearchButton",null);_.U([_.G("data"),_.O("design:type",Object),_.O("design:paramtypes",[])],Qj.prototype,"voiceSearchButton",null);
_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"dataChanged",null);_.U([_.jI("yt-rendererstamper-finished"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"onRendererStamperFinished",null);_.U([_.Cq("isWatchPage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"onWatchPageChange",null);
_.U([_.jI("iron-resize"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"onIronResize",null);_.U([_.Cq("narrow"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Qj.prototype,"narrowChanged",null);Qj=_.U([_.T({disableElementRegistration:!0,is:"ytd-masthead"})],Qj);
_.q(Qj,"ytd-masthead",function(){if(aLi!==void 0)return aLi;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return aLi=W},{mode:_.UC("kevlar_poly_si_batch_j036")?1:2});var vpT;var eT6={},sgS={},GOC={},yi7={},$dB=(yi7.OFFLINE=(eT6["publicytnetworkstatus-online"]="BACK_ONLINE",eT6),yi7.ONLINE=(sgS["publicytnetworkstatus-offline"]="OFFLINE",sgS),yi7.BACK_ONLINE=(GOC["publicytnetworkstatus-offline"]="OFFLINE",GOC.TIMER_TRIGGER="ONLINE",GOC),yi7),ZQ7=function(){var W=_.R.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.Qw;return W};
_.D(ZQ7,_.R);_.Y=ZQ7.prototype;_.Y.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.enterState=function(W){var k=this;this.scheduledJobId&&_.aM.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.w8("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.w8("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.wI(_.aM,function(){k.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.Y.stateChangeHandler=function(W){(W=$dB[this.currentState][W])&&this.enterState(W)};
_.Y.logVisibility=function(W){var k=_.VM();this.createBannerVe(W);k&&this.bannerVe&&(W?_.yb(k,[this.bannerVe]):_.$Q(k,[this.bannerVe]))};
_.Y.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.F8(37929),_.rc(_.kf(),this.bannerVe))};
var p2=ZQ7;_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",String)],p2.prototype,"currentState",void 0);_.U([_.Z(),_.O("design:type",Object)],p2.prototype,"scheduledJobId",void 0);_.U([_.Z(),_.O("design:type",Object)],p2.prototype,"bannerString",void 0);p2=_.U([_.T({disableElementRegistration:!0,is:"ytd-network-status-banner"})],p2);
_.q(p2,"ytd-network-status-banner",function(){if(vpT!==void 0)return vpT;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return vpT=
W},{mode:1});var RT6;var op7=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.m("web_frosted_glass");return W};
_.D(op7,_.R);op7.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
op7.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.z(W,_.fnY))if(W=_.z(W.renderer,_.XnI))this.data=W};
var vQ=op7;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],vQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],vQ.prototype,"componentBehavior",void 0);_.U([_.Z({value:!0,computed:"computeHidden(data)"}),_.O("design:type",Object)],vQ.prototype,"hidden",void 0);_.U([_.Z(),_.O("design:type",Object)],vQ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],vQ.prototype,"frostedGlass",void 0);
vQ=_.U([_.T({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],vQ);
_.q(vQ,"ytd-permission-role-bottom-bar-renderer",function(){if(RT6!==void 0)return RT6;var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);return RT6=W},{mode:1});var iQB;var TzZ;var wTE={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var qTi=function(){return _.R.apply(this,arguments)||this};
_.D(qTi,_.R);_.Y=qTi.prototype;_.Y.attached=function(){this.JSC$18360_scroller&&(this.JSC$18360_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18360_scroller.attached&&typeof this.JSC$18360_scroller.attached==="function"&&this.JSC$18360_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(C){C.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.S(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var k=W.querySelector("#reason-text");k&&(k.value="");W.querySelector("#description-text").value=""}};
_.Y.canSubmit=function(W,k){_.Pe(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&k)};
_.Y.onCancel=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.Y.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(B){return B.active}).map(function(B){return B.innerText.trim()}),k=this.hostElement.querySelector("tp-yt-paper-radio-group"),C=k.selectedItem,n=C.name;
C=C.innerText.trim();var N=k.querySelector("#reason-text");k=void 0;N&&(k=N.value);(N=this.descriptionText.value)&&(N=N.trim());xJC(this.data.searchQuery,W,n,C,N,k);_.KY(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.Y.sendFormSubmitToast=function(){var W=_.iO(_.w8("SBOX_INAPPROPRIATE_TOAST"));_.KY(this.hostElement,"yt-open-popup-action",[W,this])};
_.Y.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.Y.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var e4=qTi;e4.prototype.onIronSelect=e4.prototype.onIronSelect;e4.prototype.onIronChange=e4.prototype.onIronChange;e4.prototype.dataChanged=e4.prototype.dataChanged;_.U([_.Z(),_.O("design:type",Object)],e4.prototype,"data",void 0);_.U([_.Z({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.O("design:type",Boolean)],e4.prototype,"submitDisabled",void 0);_.U([_.Z(),_.O("design:type",Boolean)],e4.prototype,"suggestionSelected",void 0);
_.U([_.Z(),_.O("design:type",Boolean)],e4.prototype,"catagorySelected",void 0);_.U([_.gi("#scroller"),_.O("design:type",Object)],e4.prototype,"JSC$18360_scroller",void 0);_.U([_.gi("#description-text"),_.O("design:type",Object)],e4.prototype,"descriptionText",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e4.prototype,"dataChanged",null);
_.U([_.jI("iron-change"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e4.prototype,"onIronChange",null);_.U([_.jI("iron-select"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],e4.prototype,"onIronSelect",null);e4=_.U([_.T({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],e4);
_.q(e4,"ytd-search-suggestion-report-dialog",function(){if(TzZ!==void 0)return TzZ;var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return TzZ=W},{mode:1});var sZ=function(W){var k=W.openPopupAction;var C=W.target;var n=W.container;var N=W.popupContainerConfig;var B=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=k;this.target=C;this.container=n;this.popupContainerConfig=N;this.getElement=B;this.JSC$18366_popupConfig=this.popupContainerConfig.JSC$17481_popupConfig[this.openPopupAction.popupType];this.rendererName=(k=this.getName())?_.MHw(k,beZ(this.popupContainerConfig,
k)):"";_.m("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
sZ.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$18366_popupConfig=this.popupContainerConfig.JSC$17481_popupConfig[this.openPopupAction.popupType];u4C(this);_.m("reorder_popup_updates_killswitch")&&Ud1(this);_.m("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var jg6=function(W,k,C){W.target=C;var n;C=((n=W.target.polymerController)!=null?n:W.target).popupPositionTarget||W.target;W.JSC$18366_popupConfig.targetContainer&&(C=W.container);W.popup.positionTarget=C;W.popupContent.positionTarget=C;_.m("reorder_popup_updates_killswitch")||Ud1(W);W.JSC$18366_popupConfig.forceFocus&&(W.popupContent.style.outline="none");W.popupContent.tabIndex=-1;W.JSC$18366_popupConfig.narrowProperties&&(W.popup.style.position="static");W.JSC$18366_popupConfig.preventAutonav&&
W.popup.setAttribute("prevent-autonav",!0);W.JSC$18366_popupConfig.forceCloseOnOutsideClick&&W.popup.setAttribute("force-close-on-outside-click",!0);OQ1(W,k);LO7(W,W.JSC$18366_popupConfig.styles);W.isRtl()&&LO7(W,W.JSC$18366_popupConfig.rtlStyles);if(!W.openPopupAction.shouldStopParentSignal){var N;k=(N=W.target.polymerController)!=null?N:W.target;(W.popupContent.startForwardingEvents||W.popupContainerConfig.forwardingEnabledPopups.has(W.rendererName))&&k.parentComponent!==W.popupContent&&W.popupContent!==
W.target&&W.target!==document.body&&(W.popupContent.startForwardingEvents?W.popupContent.startForwardingEvents(W.popupContainerConfig.forwardedEvents,W.target):(W.JSC$18366_eventForwarder||(W.JSC$18366_eventForwarder=new _.YN(W.popupContent)),W.JSC$18366_eventForwarder.start(W.popupContainerConfig.forwardedEvents,W.target)))}};
sZ.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var OQ1=function(W,k){HQS(W,k&&W.JSC$18366_popupConfig.narrowProperties?W.JSC$18366_popupConfig.narrowProperties:W.JSC$18366_popupConfig.properties);W.isRtl()&&HQS(W,W.JSC$18366_popupConfig.rtlProperties);Ud1(W)};
sZ.prototype.createPopup=function(){var W=this.JSC$18366_popupConfig.component;if(this.popupContent=riC(this,this.rendererName)){if(W){this.popup=riC(this,W);var k=this.popupContent;_.m("web_enable_wrapper_for_cow_component_in_popup")&&(k=document.createElement("div"),k.appendChild(this.popupContent));_.m("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18366_popupConfig.slotName&&k.setAttribute("slot",this.JSC$18366_popupConfig.slotName);W=this.popup;var C=this.container.tagName.toLowerCase(),
n=_.sp(k);_.zYK(_.yi(W),_.R8(k,C,n));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.m("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.S(this.container).appendChild(this.popup)}};
var u4C=function(W){var k,C,n=(k=W.openPopupAction.accessibilityData)==null?void 0:(C=k.accessibilityData)==null?void 0:C.label;n&&(W.popup.ariaLabel=n);var N;((N=W.popupContent.polymerController)!=null?N:W.popupContent).data=(0,_.JU.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=gpS(W);W.popupContent.positionType=W.openPopupAction.position;var B=W.openPopupAction.properties;B&&Object.keys(B).forEach(function(A){W.popupContent[A]=B[A]})},HQS=function(W,k){if(k)for(var C=
_.b(Object.keys(k)),n=C.next();!n.done;n=C.next())n=n.value,W.popup[n]=k[n]},Ud1=function(W){if(W.openPopupAction.position){var k=W.JSC$18366_popupConfig.positionalProperties&&W.JSC$18366_popupConfig.positionalProperties[W.openPopupAction.position],C=W.JSC$18366_popupConfig.rtlPositionalProperties&&W.JSC$18366_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
k=W.isRtl()&&C?C:k;k.shiftedHorizontalOffset&&(C=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(k.horizontalOffset=W.popup.positionTarget.clientWidth/2-k.shiftedHorizontalOffset),W.popup.style.display=C);HQS(W,k)}},LO7=function(W,k){if(k)for(var C=_.b(Object.keys(k)),n=C.next();!n.done;n=C.next())n=n.value,W.popup.style[n]=k[n]};
sZ.prototype.getName=function(){return _.dA(this.openPopupAction.popup,"renderer")||_.dA(this.openPopupAction.popup,"dialog")||_.dA(this.openPopupAction.popup,"model")||void 0};
var gpS=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
sZ.prototype.isRtl=function(){return _.DE("HTML_DIR")==="rtl"};
var riC=function(W,k){W=W.getElement(k,W.target);W==null&&_.zJ(new _.AM("popup getElement returned null",k));return W};var Pm7={};
Pm7.YtPopupContainerBehavior=[_.dh.YtComponentBehavior,_.$D.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_);_.He(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ra(this.hostElement)},
closePopup:function(W){var k=this.createCacheKey(void 0,W);this.popups_[k]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.aM.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.aM.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var k=this.popups_[W];if(k.popup.scrollAction==="refit"){var C=k.popup.positionTarget.getBoundingClientRect(),n=k.popup;C=C.top;var N=k;if(!N.naturalHeight){N.popup.hidden=!1;N.popup.style.position="fixed";N.popup.style.top="0px";N.popup.style.left="0px";var B=N.popup.getBoundingClientRect();N.naturalHeight=B.bottom-B.top;N.popup.refit()}n.hidden=!(C>=N.naturalHeight+60);k.popupContent.clientHeight===0&&k.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,k){var C=W.openPopupAction,n=_.f().resolve(_.qI(_.OyY))&&C.popupType==="TOAST";n&&!C.uniqueId&&(C.uniqueId=_.tF());if(!_.m("popup_container_parent_target_killswitch")){var N;k=(N=this.getParentTarget(k))!=null?N:k}var B=this.ensurePopup_(C,k);return new _.Wx(function(A){B.then(function(w){if(!w)return A();this.maybeCreateNarrowMediaQuery_();var x=this.createCacheKey(w.rendererName,w.openPopupAction.uniqueId);if(C.showOncePerUniqueId){if(this.shownPopupKeys_.has(x))return A();
this.shownPopupKeys_.add(x)}x=this.popups_[x];var E=!(!x||!x.openPopupAction.beReused);E=!!C.reusePopup||E;if(w.popup.opened&&!E){n&&!w.openPopupAction.replacePopup||this.handleClosePopupAction_(w.rendererName,w.openPopupAction.uniqueId);E=C.popupType==="DIALOG"&&!_.m("popup_container_dialog_reopen_killswitch");if(!n&&!E&&x&&x.target==k&&!w.openPopupAction.replacePopup)return A();_.ZR(w.popup,function(){this.completeOpenPopupAction_(C,k,w);A()}.bind(this))}else w.popup.opened?w.updatePopup(C):this.completeOpenPopupAction_(C,
k,w),A()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var k=_.b(Object.entries(this.popups_)),C=k.next();!C.done;C=k.next())if(C=_.b(C.value),C.next(),C=C.next().value,C.popup.tagName==="TP-YT-IRON-DROPDOWN"&&C.popup.opened&&W.closest(C.rendererName))return C.target},
completeOpenPopupAction_:function(W,k,C){_.m("reorder_popup_updates_killswitch")?(jg6(C,this.narrowMediaQuery_.queryMatches,k),C.updatePopup(W)):(C.updatePopup(W),jg6(C,this.narrowMediaQuery_.queryMatches,k));W=C.popup;W.addEventListener("iron-overlay-opened",_.LO(this,this.onPopupIronOverlayOpened_));W.addEventListener("iron-overlay-closed",_.LO(this,this.onPopupIronOverlayClosed_));W.addEventListener("iron-overlay-canceled",_.LO(this,this.onPopupIronOverlayCanceled_));W.addEventListener("yt-refit",
_.LO(this,this.refitPopup_));W.addEventListener("yt-invalidate-popup-tabbables",_.LO(this,this.handleInvalidatePopupTabbables_));W.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,k){var C=_.m("web_popup_cache_key_killswitch")||!!k;if(W||C){var n=this.createCacheKey(W,k);W=(W=this.popups_[n])&&W.popup}else W=_.J3S(_.eB);if(W&&W.close){if(k=_.f().resolve(_.qI(_.Ay)))W.restoreFocusOnClose=k.isKeyBoardInUse();W.close();this.removePopup_(W,n)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var k={},C;for(C in this.popups_)if(k={key$jscomp$1157:k.key$jscomp$1157},k.key$jscomp$1157=C,!W||!W.some(function(B){return function(A){return A==B.key$jscomp$1157}}(k))){var n=this.popups_[k.key$jscomp$1157],N=n.popup;
_.f().resolve(_.qI(_.OyY))&&n.openPopupAction.popupType==="TOAST"||(N&&N.close&&N.close(),this.removePopup_(N,k.key$jscomp$1157))}},
handleClosePopupsAction_:function(W){W.forEach(function(k){var C=this.popups_[k];C&&((C=C.popup)&&C.close&&C.close(),this.removePopup_(C,k))}.bind(this))},
handleGetPopupOpenedAction_:function(W,k){return(k=this.createCacheKey(W,k))&&this.popups_[k]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],k;for(k in this.popups_){var C=this.popups_[k];C.popup.opened&&W.push(C)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,k){_.m("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.S(this.hostElement).removeChild(W),k&&this.popups_[k]&&delete this.popups_[k])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,k){this.maybeCreateNarrowMediaQuery_();var C=_.dA(W.popup,"renderer")||_.dA(W.popup,"dialog")||_.dA(W.popup,"model");if(!C)return _.nB();C=_.MHw(C,beZ(this.popupContainerConfig,C));return _.nB(this.getAndMaybeCreatePopup_(W,C,k))},
getAndMaybeCreatePopup_:function(W,k,C){var n=this.createCacheKey(k,W.uniqueId);if(this.popups_[n])return this.popups_[n];W=new sZ({openPopupAction:W,target:C,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(k)});return this.popups_[n]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.m("ytpopup_disable_default_html_caching")?W&&W.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",_.LO(this,this.openPopupQueryMatchesChanged_)),_.S(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var k in this.popups_)OQ1(this.popups_[k],W)},
onPopupIronOverlayClosed_:function(W){var k=W.currentTarget,C=_.TlK(k);C=C.length>0?C[0]:k;if(C.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=k;W.detail.popupRenderer=C;var n,N={context:{openingElement:((n=this.popups_[(C==null?void 0:C.is)||""])==null?void 0:n.target)||void 0}};Object.assign(N,W.detail);var B;_.Pe((B=C.hostElement)!=null?B:C,"yt-popup-closed",N);k.removeEventListener("yt-refit",_.LO(this,this.refitPopup_));k.removeEventListener("yt-invalidate-popup-tabbables",
_.LO(this,this.handleInvalidatePopupTabbables_));k.removeEventListener("iron-overlay-canceled",_.LO(this,this.onPopupIronOverlayCanceled_));k.removeEventListener("iron-overlay-closed",_.LO(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(k)}},
onPopupIronOverlayCanceled_:function(W,k){var C=W.currentTarget,n=_.TlK(C);n=n.length>0?n[0]:C;if(n.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var N;_.Pe((N=n.hostElement)!=null?N:n,"yt-popup-canceled",W.detail);N=k?_.vl(k):null;(!k||["click","tap"].includes(k.type))&&!C.hasAttribute("force-close-on-outside-click")&&C.positionTarget&&N&&N.includes(C.positionTarget)&&W.preventDefault();C.restoreFocusOnClose=_.wS.keyboardEventMatchesKeys(k,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var k=_.TlK(W);k=k.length>0?k[0]:W;var C,n;_.Pe((C=k.hostElement)!=null?C:k,"yt-popup-opened",(n=k.hostElement)!=null?n:k);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));C=_.f().resolve(_.qI(_.Ay));n=!!k.querySelector("#toast");C&&C.isKeyBoardInUse()&&!n&&(typeof k.focusFirstItem==="function"?k.focusFirstItem():(k=_.znA(W),k.length&&k[0].focus()));W.removeEventListener("iron-overlay-opened",
_.LO(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,k){return _.m("web_popup_cache_key_killswitch")?k?W+"#"+k:W:k?"#"+k:W},
openSheet:function(W,k){var C=W==null?void 0:W.openPopupActionCommand;!C&&(W==null?0:W.viewModel)&&(C={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});C&&this.handleOpenPopupAction(C,k)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.F(function(k){return k.return(W.handleGetOpenedPopupsAction_().filter(function(C){var n;return((n=C.openPopupAction)==null?void 0:n.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,k,C){if(_.m("web_dialog_utils_killswitch")){var n=W==null?void 0:W.openPopupActionCommand,N=(C==null?0:C.ariaLabel)?{accessibilityData:{accessibilityData:{label:C.ariaLabel}}}:void 0;!n&&(W==null?0:W.viewModel)&&(n={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(C==null?0:C.isModal)?"MODAL":"DIALOG"},N&&N)});n&&this.handleOpenPopupAction(n,k)}else{if(N=W==null?void 0:W.viewModel){var B=C=C===void 0?{}:C;C=B.ariaLabel;N={popup:{dialogViewModel:N},
popupType:B.isModal?"MODAL":"DIALOG"};B={accessibilityData:{label:C}};C&&(N.accessibilityData=B);N={openPopupAction:N}}else N=void 0;(N=(n=N)!=null?n:W==null?void 0:W.openPopupActionCommand)&&this.handleOpenPopupAction(N,k)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.F(function(k){return k.return(W.handleGetOpenedPopupsAction_().filter(function(C){var n;return((n=C.openPopupAction)==null?void 0:n.popupType)==="DIALOG"}).length>0)})}}];var KOY;var hTi;var W67=_.iH(["about:blank"]),ksu=function(){var W=_.R.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.D(ksu,_.R);_.Y=ksu.prototype;_.Y.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var k=this.data.url,C=_.XE(k);_.m("enable_yt_ata_iframe_authuser")?(C=_.XE(k),_.i5(this.iframe,l87(C))):_.i5(this.iframe,C);this.pageLoadTimeoutId=_.wI(_.D7(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.UM({destination:window,iframe:this.iframe,origin:_.dub(C.toString()),channelName:"ataiframe",onMessage:_.OIY(buT,function(n){AZY(n.data)?(n=_.sS(n.data,1,_.rx,_.rP()),n.length!==1?_.zJ(Error("ol")):(n=n[0],n===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):n===1&&W.close())):_.zJ(Error("pl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.Y.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.D7().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.Y.logStateChanged=function(W){var k;if((k=this.data)==null?0:k.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.kf().stateChanged(this.data.trackingParams,W)};
_.Y.close=function(){_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.handlesPopupClosed=function(W,k){var C=this,n,N;return _.F(function(B){if(B.nextAddress==1)return _.DE("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.KY(C.hostElement,"on-about-this-ad-popup-closed",[C.isMuted,k]),B.jumpTo(0)):W&&t5u(W)?_.l(B,Eou(W),4):(C.isMuted&&_.KY(C.hostElement,"yt-mute-ad-action",[C.is,C]),B.jumpTo(0));if(n=B.yieldResult){var A=N=new _.Jc(n),w=C.isMuted;A.getOptions().includes("onAboutThisAdPopupClosed")?_.MUS(A,"onAboutThisAdPopupClosed",{isMuted:w,layoutId:k}):_.jH("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ab(B)})};
_.Y.onPopupClosed=function(W){var k=this,C,n;return _.F(function(N){C=_.k0(W67);_.i5(k.iframe,C);k.cancelPageLoadTimeout();if(!k.data)return N.jumpTo(0);k.ytRendererBehavior.markDirty();n=W.detail.context.openingElement;return _.l(N,k.handlesPopupClosed(n,k.data.layoutId),0)})};
_.Y.detached=function(){this.cancelPageLoadTimeout()};
_.Y.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var G9=ksu;G9.prototype.onPopupClosed=G9.prototype.onPopupClosed;G9.prototype.dataChanged=G9.prototype.dataChanged;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.U([_.gi("#iframe"),_.O("design:type",HTMLIFrameElement)],G9.prototype,"iframe",void 0);_.U([_.Z(),_.O("design:type",Object)],G9.prototype,"data",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],G9.prototype,"dataChanged",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype",Promise)],G9.prototype,"onPopupClosed",null);G9=_.U([_.l0({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],G9);
_.q(G9,"yt-about-this-ad-renderer",function(){if(hTi===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;KOY===void 0&&(KOY=document.createElement("template"));var n=KOY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);hTi=W}W=hTi;return W},{mode:2});var C9E;var nWB;var yj=function(W){var k=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=k.message;"stack"in k&&(this.stack=k.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,yj.prototype)};
_.D(yj,Error);var NYB=function(W,k){var C=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=C.message;"stack"in C&&(this.stack=C.stack);this.minWidth=W;this.minHeight=k;Object.setPrototypeOf(this,NYB.prototype)};
_.D(NYB,Error);var Y_Z=function(W){this.requirements=W;this.JSC$18394_maxFileSize=W.maxFileSizeMB*1024*1024},BYu=function(W,k){if(k.size>W.JSC$18394_maxFileSize)throw new yj(W.requirements.maxFileSizeMB);
};var bfE=function(W,k){this.canvas=W;this.imageEditorBuilder=k};
bfE.prototype.addEventListeners=function(W){var k=function(N){AJt(W,N)};
this.JSC$18400_mouseDownEvent=k;var C=function(N){F66(W,N)};
this.JSC$18400_mouseMoveEvent=C;var n=function(){wAu(W)};
this.JSC$18400_mouseUpEvent=n;this.canvas.addEventListener("mousedown",k);this.canvas.addEventListener("mousemove",C);document.addEventListener("mouseup",n)};
bfE.prototype.removeEventListeners=function(){this.JSC$18400_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18400_mouseDownEvent);this.JSC$18400_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18400_mouseMoveEvent);this.JSC$18400_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18400_mouseUpEvent)};
var xWu=function(W,k){W.removeEventListeners();return new Promise(function(C){var n=new Image;n.crossOrigin="anonymous";n.onload=function(){var N=W.imageEditorBuilder(W.canvas,n);W.addEventListeners(N);C(N)};
n.src=k})},$P=function(W,k,C,n,N,B,A,w){this.canvas=W;
this.image=k;this.requiredRatio=C;this.minImageCropDimension=n;this.minOutputImageResolution=N;this.component=B;this.styleFocusedCorner=w===void 0?!0:w;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("ql");this.ctx=W;this.canvasMargin=A!=null?A:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;A=this.image;W=this.canvasInnerWidth/A.width;A.height*W>912&&(W=A.width/A.height*912/A.width);A=W;this.scaledImageWidth=this.canvas.width%2?
XTB(this.image.width*A):a8B(this.image.width*A);this.scaledImageHeight=Math.round(this.image.height*A);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18403_overlayMarginBottom=this.JSC$18403_overlayMarginTop=this.canvasMargin;this.JSC$18403_overlayMarginRight=this.JSC$18403_overlayMarginLeft=this.horizontalMargin;this.JSC$18403_overlayWidth=this.scaledImageWidth;this.JSC$18403_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$18403_overlayWidth=this.canvas.width%2?XTB(this.scaledImageHeight*this.requiredRatio):a8B(this.scaledImageHeight*this.requiredRatio),this.JSC$18403_overlayMarginRight=this.JSC$18403_overlayMarginLeft=(this.canvas.width-this.JSC$18403_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$18403_overlayHeight=this.canvas.height%2?XTB(this.scaledImageWidth/this.requiredRatio):a8B(this.scaledImageWidth/this.requiredRatio),this.JSC$18403_overlayMarginBottom=
this.JSC$18403_overlayMarginTop=(this.canvas.height-this.JSC$18403_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*A,this.scaledImageWidth);lcZ(this)};
$P.prototype.getContext=function(){return this.ctx};
var AJt=function(W,k){k={x:Math.round(k.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(k.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=k;txT(W,k)!==0?(W.action=1,EWY(W,k),W.resizeCorner=txT(W,k)):k.x>W.JSC$18403_overlayMarginLeft&&k.x<W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth&&k.y>W.JSC$18403_overlayMarginTop&&k.y<W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight&&(W.action=0)},ac1=function(W,k){switch(k){case 1:return{x:W.JSC$18403_overlayMarginLeft,
y:W.JSC$18403_overlayMarginTop};case 2:return{x:W.JSC$18403_overlayMarginLeft,y:W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight};case 3:return{x:W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth,y:W.JSC$18403_overlayMarginTop};case 4:return{x:W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth,y:W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight};default:throw Error("rl");}},fc7=function(W,k){if(W.focusedCorner!==0){W.dragStart=ac1(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var C=W.dragStart.x,n=W.dragStart.y;switch(k){case 0:W.focusedCorner===1||W.focusedCorner===4?(C-=10,n-=10):(C-=10,n+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(C+=10,n+=10):(C+=10,n-=10);break;case 2:C=W.focusedCorner===1||W.focusedCorner===4?C-10:C+10;n-=10;break;case 3:C=W.focusedCorner===1||W.focusedCorner===4?C+10:C-10;n+=10;break;default:throw Error("sl");}XA$(W,{x:C,y:n});lcZ(W);W.action=2;W.dragStart=void 0}},F66=function(W,k){k={x:Math.round(k.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(k.pageY-W.canvas.getBoundingClientRect().top)};EWY(W,k);switch(W.action){case 1:XA$(W,k);break;case 0:W.dragStart&&(W.JSC$18403_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$18403_overlayMarginLeft-(W.dragStart.x-k.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$18403_overlayWidth)),W.JSC$18403_overlayMarginRight=W.canvas.width-W.JSC$18403_overlayMarginLeft-W.JSC$18403_overlayWidth,W.JSC$18403_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$18403_overlayMarginTop-
(W.dragStart.y-k.y),W.scaledImageHeight-W.JSC$18403_overlayHeight+W.canvasMargin)),W.JSC$18403_overlayMarginBottom=W.canvas.height-(W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight));break;default:return}lcZ(W);W.dragStart=k},wAu=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},EWY=function(W,k){switch(txT(W,k)){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:W.action!==1&&(document.body.style.cursor="auto")}},txT=function(W,k){var C=W.JSC$18403_overlayMarginLeft-5,n=W.JSC$18403_overlayMarginTop-5,N=W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth-5;
W=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-5;return dW$(k,{x:C,y:n})?1:dW$(k,{x:N,y:n})?3:dW$(k,{x:C,y:W})?2:dW$(k,{x:N,y:W})?4:0},dW$=function(W,k){return W.x>=k.x&&W.x<=k.x+10&&W.y>=k.y&&W.y<=k.y+10},XA$=function(W,k){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth-k.x)/(k.y-W.JSC$18403_overlayMarginTop))>=W.requiredRatio?mWT(W,k.x):zht(W,k.y);
break;case 1:Math.abs((W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth-k.x)/(W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-k.y))>=W.requiredRatio?DWC(W,k.x):zht(W,k.y);break;case 4:Math.abs((k.x-W.JSC$18403_overlayMarginLeft)/(k.y-W.JSC$18403_overlayMarginTop))>=W.requiredRatio?mWT(W,k.x):VxC(W,k.y);break;case 3:Math.abs((k.x-W.JSC$18403_overlayMarginLeft)/(W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-k.y))>=W.requiredRatio?DWC(W,k.x):VxC(W,k.y);break;default:throw Error("tl");
}},mWT=function(W,k){var C=W.JSC$18403_overlayMarginTop;
W.JSC$18403_overlayMarginBottom=JJA(W,k);W.JSC$18403_overlayHeight=W.canvas.height-W.JSC$18403_overlayMarginBottom-C;W.JSC$18403_overlayWidth=Math.round(W.JSC$18403_overlayHeight*W.requiredRatio);cJY(W)},DWC=function(W,k){var C=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight;
W.JSC$18403_overlayMarginTop=JJA(W,k);W.JSC$18403_overlayHeight=C-W.JSC$18403_overlayMarginTop;W.JSC$18403_overlayWidth=Math.round(W.JSC$18403_overlayHeight*W.requiredRatio);cJY(W)},cJY=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$18403_overlayMarginLeft=W.canvas.width-W.JSC$18403_overlayMarginRight-W.JSC$18403_overlayWidth;
break;case 4:case 3:W.JSC$18403_overlayMarginRight=W.canvas.width-W.JSC$18403_overlayMarginLeft-W.JSC$18403_overlayWidth;break;default:throw Error("tl");}},zht=function(W,k){var C=W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth;
W.JSC$18403_overlayMarginLeft=Ict(W,k);W.JSC$18403_overlayWidth=C-W.JSC$18403_overlayMarginLeft;W.JSC$18403_overlayHeight=Math.round(W.JSC$18403_overlayWidth/W.requiredRatio);S_Y(W)},VxC=function(W,k){var C=W.JSC$18403_overlayMarginLeft;
W.JSC$18403_overlayMarginRight=Ict(W,k);W.JSC$18403_overlayWidth=W.canvas.width-W.JSC$18403_overlayMarginRight-C;W.JSC$18403_overlayHeight=Math.round(W.JSC$18403_overlayWidth/W.requiredRatio);S_Y(W)},S_Y=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$18403_overlayMarginBottom=W.canvas.height-W.JSC$18403_overlayMarginTop-W.JSC$18403_overlayHeight;
break;case 1:case 3:W.JSC$18403_overlayMarginTop=W.canvas.height-W.JSC$18403_overlayMarginBottom-W.JSC$18403_overlayHeight;break;default:throw Error("tl");}},JJA=function(W,k){switch(W.resizeCorner){case 2:k=W.canvas.height-(W.JSC$18403_overlayMarginTop+Mxi(W,k));
break;case 4:k=W.canvas.height-(W.JSC$18403_overlayMarginTop+Q6i(W,k));break;case 1:k=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-Mxi(W,k);break;case 3:k=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-Q6i(W,k);break;default:throw Error("tl");}return Math.max(k,W.canvasMargin)},Mxi=function(W,k){k=W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth-Math.max(k,W.horizontalMargin);
k=k<0?W.JSC$18403_overlayWidth:Math.max(k,W.minOverlayWidth);return Math.round(k/W.requiredRatio)},Q6i=function(W,k){k=W.canvas.width-Math.max(W.canvas.width-k,W.horizontalMargin)-W.JSC$18403_overlayMarginLeft;
k=k<0?W.JSC$18403_overlayWidth:Math.max(k,W.minOverlayWidth);return Math.round(k/W.requiredRatio)},Ict=function(W,k){switch(W.resizeCorner){case 2:k=W.canvas.width-W.JSC$18403_overlayMarginRight-pA7(W,k);
break;case 4:k=W.canvas.width-W.JSC$18403_overlayMarginLeft-pA7(W,k);break;case 1:k=W.canvas.width-W.JSC$18403_overlayMarginRight-vWA(W,k);break;case 3:k=W.canvas.width-W.JSC$18403_overlayMarginLeft-vWA(W,k);break;default:throw Error("tl");}return Math.max(k,W.horizontalMargin)},pA7=function(W,k){k=W.canvas.height-Math.max(W.canvas.height-k,W.canvasMargin)-W.JSC$18403_overlayMarginTop;
return k<0?W.JSC$18403_overlayWidth:Math.max(Math.round(k*W.requiredRatio),W.minOverlayWidth)},vWA=function(W,k){k=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-Math.max(k,W.canvasMargin);
return k<0?W.JSC$18403_overlayWidth:Math.max(Math.round(k*W.requiredRatio),W.minOverlayWidth)},lcZ=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$18403_overlayMarginTop,W.JSC$18403_overlayMarginLeft-W.horizontalMargin,W.JSC$18403_overlayHeight);W.ctx.fillRect(W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth,W.JSC$18403_overlayMarginTop,W.JSC$18403_overlayMarginRight-W.horizontalMargin,W.JSC$18403_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$18403_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight,W.scaledImageWidth,W.JSC$18403_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.Pe(W.component,"image-updated")};
$P.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18403_overlayMarginLeft,this.JSC$18403_overlayMarginTop,this.JSC$18403_overlayWidth,this.JSC$18403_overlayHeight);ehu(this)};
var ehu=function(W){var k=W.JSC$18403_overlayMarginLeft-5,C=W.JSC$18403_overlayMarginTop-5,n=W.JSC$18403_overlayMarginLeft+W.JSC$18403_overlayWidth-5,N=W.JSC$18403_overlayMarginTop+W.JSC$18403_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(k,C,10,10);W.ctx.strokeRect(k,C,10,10);W.ctx.fillRect(n,C,10,10);W.ctx.strokeRect(n,C,10,10);W.ctx.fillRect(k,N,10,10);W.ctx.strokeRect(k,N,10,10);W.ctx.fillRect(n,N,10,10);W.ctx.strokeRect(n,N,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--k;--C;break;case 2:--k;C=N-1;break;case 3:k=n-1;--C;break;case 4:k=n-1;C=N-1;break;default:return}W.ctx.strokeRect(k,C,12,12)}};
$P.prototype.crop=function(W,k){k=k===void 0?!0:k;var C=this.image.width/this.scaledImageWidth,n=document.createElement("canvas"),N=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],B=this.JSC$18403_overlayWidth*C,A=this.JSC$18403_overlayHeight*C;n.width=Math.max(B,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);n.height=Math.max(A,N);W&&(n.width=Math.min(n.width,n.height),n.height=Math.min(n.width,n.height));
W=n.getContext("2d");if(!W)throw Error("hl");N=(this.JSC$18403_overlayMarginLeft-this.horizontalMargin)*C;C*=this.JSC$18403_overlayMarginTop-this.canvasMargin;k||(W.fillStyle="white",W.fillRect(0,0,n.width,n.height));W.drawImage(this.image,N,C,B,A,0,0,n.width,n.height);return n};var s6B=function(W,k,C,n,N){$P.call(this,W,k,C,n,void 0,N,8,!1)};
_.D(s6B,$P);s6B.prototype.drawOverlay=function(){var W=this.getContext(),k=this.JSC$18403_overlayWidth,C=this.JSC$18403_overlayHeight,n=this.JSC$18403_overlayMarginTop,N=this.JSC$18403_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(N+k/2,n+C/2,k/2,0,2*Math.PI);W.stroke();W.strokeRect(N,n,k,C);ehu(this)};
var Gs7={maxFileSizeMB:15,minWidth:98,minHeight:98},yJi=["image/png","image/jpeg","image/gif"],$WA=function(){var W=_.R.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.D($WA,_.R);_.Y=$WA.prototype;_.Y.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.Y.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.Y.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.Y.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.KY(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.Y.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.Y.showPopup=function(){var W=this;this.hideContainer=!1;_.wI(_.aM,function(){_.Pe(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.Y.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Y.closePopup=function(){this.resetFileSelector();_.KY(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onCancelTap=function(){this.isPlaylistThumbnail||_.KY(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.Y.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.wI(_.aM,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(k){k instanceof Error?_.dI(k):_.mw(new _.AM(JSON.stringify(k)))}};
_.Y.handleFileSelection=function(){var W=this,k,C,n,N,B,A;return _.F(function(w){switch(w.nextAddress){case 1:_.F0(w,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),w.return();k=W.fileSelector.files[0];BYu(W.imageChecker,k);_.F0(w,4);return _.l(w,qM$(k),6);case 6:W.mimeType=w.yieldResult;_.M7(w,5,2);break;case 4:_.EF(w,2),_.KY(W.hostElement,"yt-image-selection-error-action",[(C=W.data)==null?void 0:C.genericImageLoadErrorMessage]),W.onCancelTap();case 5:n=new FileReader;n.addEventListener("load",
function(){var x,E;return _.F(function(a){if(a.nextAddress==1){if(!n.result)return _.zJ(Error("jl")),a.return();x=n.result;E=new Image;E.src=x;E.onload=function(){try{var X=W.imageChecker;if(E.width<X.requirements.minWidth||E.height<X.requirements.minHeight)throw new NYB(X.requirements.minWidth,X.requirements.minHeight);}catch(V){if(V instanceof NYB){var d;_.KY(W.hostElement,"yt-image-selection-error-action",[(d=W.data)==null?void 0:d.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else V instanceof
Error?_.dI(V):(X=new _.AM(JSON.stringify(V)),_.dI(X));W.onCancelTap()}W.showPopup()};
E.onerror=function(){var X;_.KY(W.hostElement,"yt-image-selection-error-action",[(X=W.data)==null?void 0:X.genericImageLoadErrorMessage]);W.onCancelTap()};
return _.l(a,xWu(W.imageEditorCanvas,x),2)}W.imageEditor=a.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.ab(a)})},!1);
n.readAsDataURL(k);_.M7(w,0);break;case 2:N=_.EF(w),N instanceof yj?_.KY(W.hostElement,"yt-image-selection-error-action",[(B=W.data)==null?void 0:B.imageSizeErrorMessage]):(N instanceof Error?_.dI(N):_.mw(new _.AM(JSON.stringify(N))),_.KY(W.hostElement,"yt-image-selection-error-action",[(A=W.data)==null?void 0:A.genericImageLoadErrorMessage])),W.onCancelTap(),_.ab(w)}})};
_.Y.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.Wj(_.kf(),{veType:232707,visualElement:_.F8(232707)});W&&(W={visualElement:W},_.hv().reportShown(W))}};
_.Y.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.j2w(this.hostElement,W)};
_.Y.convertToImageFormatBundle=function(W){var k=this,C,n,N;return _.F(function(B){switch(B.nextAddress){case 1:return C=W.toDataURL(k.outputMimeType,1),_.l(B,u2Y(C),2);case 2:n=B.yieldResult;_.F0(B,3);BYu(k.imageChecker,n);_.M7(B,4);break;case 3:N=_.EF(B);if(!(N instanceof yj))throw N;_.zJ(new _.AM("Output size is bigger than input size for image",k.mimeType,k.outputMimeType,n.size));C=W.toDataURL("image/jpeg",.95);return _.l(B,u2Y(C),6);case 6:n=B.yieldResult;case 4:return B.return({dataUrl:C,imageFile:n})}})};
_.Y.handleUploadImageToScottyCommand=function(W){var k=this,C,n,N,B,A,w,x,E,a,X;return _.F(function(d){switch(d.nextAddress){case 1:if(!k.imageEditor||!_.z(W,Ijt))return d.return();C=_.z(W,Ijt).scottyUploadUrl;if(!C){var V=new _.AM("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.dI(V);return d.return()}_.F0(d,2);k.setLoadingState();n=k.imageEditor.crop(!1,!1);return _.l(d,k.convertToImageFormatBundle(n),4);case 4:return N=d.yieldResult,_.l(d,ir7(N.imageFile,C),5);case 5:B=
d.yieldResult;((A=k.data)==null?0:A.onUploadEndpoint)?(w=k.buildUploadServiceEndpoint(B),k.ytComponentBehavior.resolveCommand(w),x=_.z(w,_.mB),((E=x)==null?0:E.params)?k.closePopup():k.resetFileSelector()):(_.KY(k.hostElement,"yt-image-updated-action",[N.dataUrl,B]),k.closePopup());_.M7(d,0);break;case 2:a=_.EF(d),k.setErrorState((X=k.data)==null?void 0:X.uploadErrorMessage),a instanceof Error?_.dI(a):(V=new _.AM(JSON.stringify(a)),_.dI(V)),_.ab(d)}})};
_.Y.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.Y.dataChanged=function(){var W=this,k;return _.F(function(C){if(C.nextAddress==1){if(!W.data||!W.canvasElement)return C.return();W.data.imageRatio&&W.data.minImageCropWidth||_.mw(new _.AM("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));k=function(n,N){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new s6B(n,N,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new $P(n,N,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new bfE(W.canvasElement,k);return W.data.url?_.l(C,xWu(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),C.jumpTo(0))}W.imageEditor=C.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.ab(C)})};
_.Y.addEventListeners=function(W){this.removeEventListeners();var k=function(N){AJt(W,N)};
this.JSC$18411_mouseDownEvent=k;var C=function(N){F66(W,N)};
this.JSC$18411_mouseMoveEvent=C;var n=function(){wAu(W)};
this.JSC$18411_mouseUpEvent=n;this.topLeftCorner.addEventListener("mousedown",k);this.topLeftCorner.addEventListener("mousemove",C);this.topLeftCorner.addEventListener("mouseup",n);this.topRightCorner.addEventListener("mousedown",k);this.topRightCorner.addEventListener("mousemove",C);this.topRightCorner.addEventListener("mouseup",n);this.bottomLeftCorner.addEventListener("mousedown",k);this.bottomLeftCorner.addEventListener("mousemove",C);this.bottomLeftCorner.addEventListener("mouseup",n);this.bottomRightCorner.addEventListener("mousedown",
k);this.bottomRightCorner.addEventListener("mousemove",C);this.bottomRightCorner.addEventListener("mouseup",n)};
_.Y.removeEventListeners=function(){this.JSC$18411_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent));this.JSC$18411_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent));this.JSC$18411_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent))};
_.Y.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.Y.updatePositionOfCorner=function(W,k){var C=W.y-k.offsetHeight/2+4;k.style.left=W.x-k.offsetWidth/2+16+"px";k.style.top=C+"px"};
_.Y.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.b([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),k=W.next();!k.done;k=W.next()){k=k.value;var C=ac1(this.imageEditor,k.corner);this.updatePositionOfCorner(C,k.div)}};
_.Y.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(fc7(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.Y.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(fc7(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.Y.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(fc7(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.Y.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(fc7(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.oq.Object.defineProperties($WA.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&yJi.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,k,C;((k=this.data)==null?0:k.imageRatio)&&((C=this.data)==null?0:C.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=Gs7;return new Y_Z(W)}}});
var Zt=$WA;Zt.prototype.updatePositionOfAllCorners=Zt.prototype.updatePositionOfAllCorners;Zt.prototype.dataChanged=Zt.prototype.dataChanged;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Zt.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],Zt.prototype,"ytComponentBehavior",void 0);_.U([_.v(_.wS),_.O("design:type",Object)],Zt.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.gi("#canvas"),_.O("design:type",HTMLCanvasElement)],Zt.prototype,"canvasElement",void 0);_.U([_.gi("#file-selector"),_.O("design:type",HTMLInputElement)],Zt.prototype,"fileSelector",void 0);_.U([_.gi("#top-left-corner"),_.O("design:type",HTMLDivElement)],Zt.prototype,"topLeftCorner",void 0);_.U([_.gi("#top-right-corner"),_.O("design:type",HTMLDivElement)],Zt.prototype,"topRightCorner",void 0);
_.U([_.gi("#bottom-left-corner"),_.O("design:type",HTMLDivElement)],Zt.prototype,"bottomLeftCorner",void 0);_.U([_.gi("#bottom-right-corner"),_.O("design:type",HTMLDivElement)],Zt.prototype,"bottomRightCorner",void 0);_.U([_.Z(),_.O("design:type",Object)],Zt.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Zt.prototype,"errorMessage",void 0);_.U([_.Z(),_.O("design:type",Object)],Zt.prototype,"isLoading",void 0);_.U([_.Z(),_.O("design:type",Object)],Zt.prototype,"hideContainer",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.O("design:type",Boolean)],Zt.prototype,"isPlaylistThumbnail",void 0);_.U([_.Cq("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],Zt.prototype,"dataChanged",null);_.U([_.jI("image-updated"),_.jI("yt-refit"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Zt.prototype,"updatePositionOfAllCorners",null);
Zt=_.U([_.l0({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Zt);
_.q(Zt,"yt-image-editor-renderer",function(){if(nWB===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;C9E===void 0&&(C9E=document.createElement("template"));var n=C9E;C.call(k,n.content.cloneNode(!0),W.content.firstChild);nWB=W}W=nWB;return W},{mode:2});var ZfS;var Rh$;var Rn=function(){return _.R.apply(this,arguments)||this};
_.D(Rn,_.R);Rn.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
Rn.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
Rn.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
var on=Rn;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],on.prototype,"ytComponentBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],on.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",String)],on.prototype,"minutes",void 0);_.U([_.Z(),_.O("design:type",String)],on.prototype,"seconds",void 0);_.U([_.Z(),_.O("design:type",String)],on.prototype,"description",void 0);_.U([_.Z(),_.O("design:type",Function)],on.prototype,"handleMinutesChanged",void 0);
_.U([_.Z(),_.O("design:type",Function)],on.prototype,"handleSecondsChanged",void 0);_.U([_.Z(),_.O("design:type",Function)],on.prototype,"handleDescriptionChanged",void 0);_.U([_.Z(),_.O("design:type",Number)],on.prototype,"characterLimit",void 0);_.U([_.Z(),_.O("design:type",Number)],on.prototype,"textNumRows",void 0);on=_.U([_.l0({is:"yt-report-details-form-content",disableElementRegistration:!0})],on);
_.q(on,"yt-report-details-form-content",function(){if(Rh$===void 0){var W=document.createElement("template");_.J(W,'\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>');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;ZfS===void 0&&(ZfS=document.createElement("template"));var n=ZfS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Rh$=W}W=Rh$;return W},{mode:2});var oWB;var if1;var TYt=function(){var W=_.R.apply(this,arguments)||this;W.updateMinutesFromBinding=function(k){W.minutes=k.detail.value};
W.updateSecondsFromBinding=function(k){W.seconds=k.detail.value};
W.updateDescriptionFromBinding=function(k){W.description=k.detail.value};
return W};
_.D(TYt,_.R);_.Y=TYt.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.Y.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"}}}};
_.Y.ready=function(){_.S(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.Y.onSubmitYtAction=function(W){var k=W.detail;k.actionName==="yt-service-request"&&(k=k.args[1],k.flagEndpoint&&(W.stopPropagation(),this.refireAction(k)))};
_.Y.refireAction=function(W){var k={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(k.vss_id=this.vssId);_.kQ(this.hostElement,[W,k]);this.submitDisabled=!0};
_.Y.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var k=_.Zf();k&&k.getPlayerPromise().then(function(C){var n=C.getOption("cc","track")||C.getOption("captions","track");n&&(W.vssId=n.vss_id);C=C.getCurrentTime();W.minutes=Math.floor(C/60).toString();W.seconds=(Math.floor(C)%60).toString()})};
_.Y.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.Y.onYtServiceRequestCompleted=function(){_.KY(this.hostElement,"yt-close-popup-action")};
_.Y.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.oq.Object.defineProperties(TYt.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
var ix=TYt;ix.prototype.onYtServiceRequestError=ix.prototype.onYtServiceRequestError;ix.prototype.onYtServiceRequestCompleted=ix.prototype.onYtServiceRequestCompleted;ix.prototype.updateSubmitButtonState=ix.prototype.updateSubmitButtonState;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);
_.U([_.Z({observer:"dataChanged"}),_.O("design:type",Object)],ix.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Boolean)],ix.prototype,"submitDisabled",void 0);_.U([_.Z(),_.O("design:type",String)],ix.prototype,"minutes",void 0);_.U([_.Z(),_.O("design:type",String)],ix.prototype,"seconds",void 0);_.U([_.Z(),_.O("design:type",String)],ix.prototype,"description",void 0);_.U([_.Z(),_.O("design:type",String)],ix.prototype,"vssId",void 0);
_.U([_.Z({value:_.DE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.O("design:type",Boolean)],ix.prototype,"isMusic",void 0);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],ix.prototype,"characterLimit",null);_.U([_.G("data"),_.O("design:type",Number),_.O("design:paramtypes",[])],ix.prototype,"textNumRows",null);
_.U([_.Cq("minutes","seconds","description","submitDisabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ix.prototype,"updateSubmitButtonState",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ix.prototype,"onYtServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ix.prototype,"onYtServiceRequestError",null);ix=_.U([_.l0({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],ix);
_.q(ix,"yt-report-details-form-renderer",function(){if(if1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;oWB===void 0&&(oWB=document.createElement("template"));var n=oWB;C.call(k,n.content.cloneNode(!0),W.content.firstChild);if1=W}W=if1;return W});var q_B;var ujE;var UW6;var Of7;var L6$=function(){return _.R.apply(this,arguments)||this};
_.D(L6$,_.R);
L6$.prototype.onCheckedChanged_=function(){if(this.data){var W=_.S(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.KY(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.KY(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.KY(this.hostElement,"yt-modify-report-form-command",[_.z(this.data.enableCommand,G1i)]):!W&&this.data.disableCommand&&_.KY(this.hostElement,
"yt-modify-report-form-command",[_.z(this.data.enableCommand,G1i)])}};
L6$.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.S(this.hostElement).querySelector("#checkbox").checked=!_.S(this.hostElement).querySelector("#checkbox").checked)};
var T9=L6$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],T9.prototype,"data",void 0);T9=_.U([_.l0({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],T9);
_.q(T9,"yt-boolean-form-field-v2-renderer",function(){if(Of7===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;UW6===void 0&&(UW6=document.createElement("template"));var n=UW6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Of7=W}W=Of7;return W});var j6E=function(){var W=_.R.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.D(j6E,_.R);j6E.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
var q5=j6E;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],q5.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],q5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.Z(),_.O("design:type",Object)],q5.prototype,"canShowCheckbox",void 0);_.U([_.Z(),_.O("design:type",Object)],q5.prototype,"keepDropdownFocusedAfterSelection",void 0);
q5=_.U([_.l0({is:"yt-report-form-modal-content",disableElementRegistration:!0})],q5);
_.q(q5,"yt-report-form-modal-content",function(){if(ujE===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;q_B===void 0&&(q_B=document.createElement("template"));var n=q_B;C.call(k,n.content.cloneNode(!0),W.content.firstChild);ujE=W}W=ujE;return W},{mode:2});var HfE;var rJC;var gW7=function(){var W=_.R.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.D(gW7,_.R);_.Y=gW7.prototype;_.Y.created=function(){this.refitJob=0};
_.Y.attached=function(){this.JSC$18434_scroller&&(this.JSC$18434_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18434_scroller.attached&&typeof this.JSC$18434_scroller.attached==="function"&&this.JSC$18434_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.Y.onYtPopupOpened=function(){var W=_.Zf();W&&W.getPlayerPromise().then(function(k){k.pauseVideo()})};
_.Y.onYtNavigate=function(W){_.z(W.detail.endpoint,_.ZxY)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.Y.onYtServiceRequestCompleted=function(W,k){var C=k.actions;if(C){if(C.length===1&&_.z(C[0],_.Nl)){var n;C=((n=_.z(C[0],_.Nl))==null?void 0:n.commands)||[]}n=0;for(var N=C.length;n<N;n++)_.z(C[n],_.Eq)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(C[n]))}if(k.data&&(W=this.get("feedbackResponses",k.data)))for(k=0;k<W.length;k++)if(W[k].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.Y._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.Y.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var k=this.command=W.submitEndpoint;k=_.z(k,_.mFx);if(k==null?0:k.additionalDetailCheckboxChecked)k.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.Y.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.Y.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.Y.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.Y.updateDialogStyling=function(){var W,k,C,n,N,B=((N=(W=this.data)==null?void 0:(k=W.optionsSupportedRenderers)==null?void 0:(C=k.optionsRenderer)==null?void 0:(n=C.items)==null?void 0:n.length)!=null?N:0)<=2?0:240;_.Op(this.hostElement,{"--yt-report-form-modal-renderer-min-width":B+"px"})};
_.Y.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.Y.computeSubmitButtonData=function(W,k){var C={};_.z(k,_.ZxY)?C.navigationEndpoint=k:C.command=k||void 0;W&&W.buttonRenderer&&_.JU.extend(C,W.buttonRenderer);return C};
_.Y.computeNextButtonData=function(W,k){var C={};if(!W||!W.buttonRenderer)return C;_.JU.extend(C,W.buttonRenderer);if(!k)return C;if(_.z(k,_.ZxY))C.navigationEndpoint=sVY(k);else if(C.command=sVY(k),W=_.z(C.command,_.mFx))W.legalCheckboxChecked=!0;return C};
_.Y.computeShowNextButton=function(W,k,C){return!!W&&k&&C};
_.Y.refit=function(){var W=this;this.refitJob||(this.refitJob=_.aM.addLowPriorityJob(function(){_.Pe(W.hostElement,"yt-refit");W.refitJob=0}))};
_.Y.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.z(this.command,_.mFx).additionalDetailCheckboxChecked=W};
_.oq.Object.defineProperties(gW7,{template:{configurable:!0,enumerable:!0,get:function(){if(rJC===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;HfE===void 0&&(HfE=document.createElement("template"));var n=HfE;C.call(k,n.content.cloneNode(!0),W.content.firstChild);rJC=W}W=rJC;return W}}});
var ux=gW7;ux.prototype.onYtServiceRequestError=ux.prototype.onYtServiceRequestError;ux.prototype.onYtServiceRequestCompleted=ux.prototype.onYtServiceRequestCompleted;ux.prototype.onYtServiceRequestSent=ux.prototype.onYtServiceRequestSent;ux.prototype.onYtNavigate=ux.prototype.onYtNavigate;ux.prototype.onYtPopupOpened=ux.prototype.onYtPopupOpened;_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],ux.prototype,"openPopupBehavior",void 0);
_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],ux.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],ux.prototype,"eventForwardingBehavior",void 0);_.U([_.v(_.mV),_.O("design:type",Object)],ux.prototype,"ironResizableBehavior",void 0);_.U([_.Z({observer:"dataChanged"}),_.O("design:type",Object)],ux.prototype,"data",void 0);
_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"submitting",void 0);_.U([_.Z({observer:"submitButtonDisabledChanged"}),_.O("design:type",Object)],ux.prototype,"submitButtonDisabled",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"command",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],ux.prototype,"hideReportForm",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"canShowCheckbox",void 0);
_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"canShowNextButton",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"additionalDetailCheckboxChecked",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"refitJob",void 0);_.U([_.Z(),_.O("design:type",Object)],ux.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.U([_.gi("#scroller"),_.O("design:type",Object)],ux.prototype,"JSC$18434_scroller",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],ux.prototype,"onYtPopupOpened",null);_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ux.prototype,"onYtNavigate",null);
_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],ux.prototype,"onYtServiceRequestSent",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],ux.prototype,"onYtServiceRequestCompleted",null);
_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],ux.prototype,"onYtServiceRequestError",null);ux=_.U([_.l0({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],ux);var P97;var K66;var hhC=function(){return _.R.apply(this,arguments)||this};
_.D(hhC,_.R);_.Y=hhC.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.Y.onVisible=function(){if(_.m("web_ephemeral_actions_focus")){var W,k;(k=_.f().resolve(_.qI(_.PP)))==null||k.enqueue({label:_.y4((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})}};
_.Y.onThumbnailLoaded=function(){_.Pe(this.hostElement,"yt-refit")};
_.Y.onDismissTap=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.Y.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.Y.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.Y.computeBackgroundStyle=function(W,k){if(W=this.computeBackgroundImage(W,k))if(W=_.$f(W.thumbnails))return'background-image: url("'+W+'");'};
_.Y.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.Y.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.Y.computeIcon=function(W,k){if(W&&W.icon)return k?W.iconDark:W.icon};
_.Y.computeBackgroundImage=function(W,k){if(W&&W.backgroundImage)return k?W.backgroundImageDark:W.backgroundImage};
_.Y.computeLogo=function(W,k){if(W&&W.logo)return k?W.logoDark:W.logo};
_.Y.computeShouldShowModernIcon=function(W,k){return W&&!!k};
_.Y.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.Y.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.Y.logoWithPadding=function(W){var k,C,n;return(W=(k=this.computeLogo(W,this.isDarkTheme))==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?!0:!1};
var UZ=hhC;UZ.prototype.onThumbnailLoaded=UZ.prototype.onThumbnailLoaded;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.U([_.Z({}),_.O("design:type",Object)],UZ.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.O("design:type",Boolean)],UZ.prototype,"modern",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],UZ.prototype,"isDarkTheme",void 0);
_.U([_.Z({computed:"computeIcon(data, isDarkTheme)"}),_.O("design:type",Object)],UZ.prototype,"icon",void 0);_.U([_.Z({computed:"computeLogo(data, isDarkTheme)"}),_.O("design:type",Object)],UZ.prototype,"logo",void 0);_.U([_.Z({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.O("design:type",Object)],UZ.prototype,"backgroundStyle",void 0);_.U([_.Z({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.O("design:type",Object)],UZ.prototype,"alternateIcon",void 0);
_.U([_.Z({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.O("design:type",Boolean)],UZ.prototype,"hasFullHeightImage",void 0);_.U([_.Z({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.O("design:type",Boolean)],UZ.prototype,"useYoutubeSans",void 0);_.U([_.Z({computed:"computeShouldShowModernIcon(modern, icon)"}),_.O("design:type",Boolean)],UZ.prototype,"shouldShowModernIcon",void 0);
_.U([_.jI("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],UZ.prototype,"onThumbnailLoaded",null);UZ=_.U([_.l0({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],UZ);
_.q(UZ,"yt-mealbar-promo-renderer",function(){if(K66===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;P97===void 0&&(P97=document.createElement("template"));var n=P97;C.call(k,n.content.cloneNode(!0),W.content.firstChild);K66=W}W=K66;return W},{mode:2});var Wo6;var kFS;var ChA=function(){return _.R.apply(this,arguments)||this};
_.D(ChA,_.R);_.Y=ChA.prototype;_.Y.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]]"}}}}}};
_.Y.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.Y.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Y.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(k){k.clickTrackingParams&&delete k.clickTrackingParams;_.kQ(W.hostElement,[k])})};
_.Y.onTap_=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var OZ=ChA;OZ.prototype.observeImpressionEndpoints_=OZ.prototype.observeImpressionEndpoints_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],OZ.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],OZ.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],OZ.prototype,"positionType",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.O("design:type",Boolean)],OZ.prototype,"hasButtons_",void 0);_.U([_.Z({value:function(){return this.onTap_.bind(this)}}),
_.O("design:type",Function)],OZ.prototype,"boundOnTap_",void 0);_.U([_.Z({value:{style:"mono-inverse"}}),_.O("design:type",Object)],OZ.prototype,"buttonOverride",void 0);_.U([_.Hl("data.promoConfig.impressionEndpoints"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],OZ.prototype,"observeImpressionEndpoints_",null);OZ=_.U([_.l0({is:"yt-tooltip-renderer",disableElementRegistration:!0})],OZ);
_.q(OZ,"yt-tooltip-renderer",function(){if(kFS===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Wo6===void 0&&(Wo6=document.createElement("template"));var n=Wo6;C.call(k,n.content.cloneNode(!0),W.content.firstChild);kFS=W}W=kFS;return W},{mode:2});var nFi;var NNS;var Ys$={},BNC=(Ys$.WEB_REMIX="music.youtube.com",Ys$),bp$=function(){var W=_.R.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.D(bp$,_.R);_.Y=bp$.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.created=function(){this.embedHost_=BNC[_.DE("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.Y.ready=function(){_.S(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.Y.computeEmbedCode_=function(W,k,C,n,N){if(!W)return"";var B=W.videoId,A=W.fullListId,w=[];W.attributionId&&w.push("si="+W.attributionId);n||w.push("controls=0");C&&Number(k)>0&&w.push("start="+k);A&&(B="videoseries",w.push("list="+A));C="https://"+(N?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+B;W.clipId&&(w.push("clip="+W.clipId),w.push("clipt="+W.clipTiming));k=w.length>0?C+"?"+w.join("&amp;"):C;W.encryptedEmbedConfig&&w.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
w=w.length>0?C+"?"+w.join("&amp;"):C;_.m("web_sharing_embed_preview_killswitch")?_.S(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(w,W.previewWidth||854,W.previewHeight||480):(_.Ju(this.videoPreviewContainer),_.S(this.videoPreviewContainer).appendChild(this.buildIframeElement(w)));return this.getEmbedCode_(k,W.width||560,W.height||315)};
_.Y.buildIframeElement=function(W){var k=document.createElement("iframe"),C,n;k.width=""+((n=(C=this.data)==null?void 0:C.previewWidth)!=null?n:854);var N,B;k.height=""+((B=(N=this.data)==null?void 0:N.previewHeight)!=null?B:480);_.jew(k,2,W);k.title="YouTube video player";k.frameBorder="0";k.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";k.referrerPolicy="strict-origin-when-cross-origin";k.allowFullscreen=!0;return k};
_.Y.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.Y.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.Y.getEmbedCode_=function(W,k,C){return'<iframe width="'+k+'" height="'+C+'" src="'+W+'" 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>'};
_.Y.handleSignalActionCopyShareEmbedUrl_=function(){_.S(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.Y.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.Y.closePanel_=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.Y.onEmbedCode_=function(){_.S(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.Y.onYtPopupClosed_=function(){_.Ju(_.S(this.hostElement).querySelector("#video-preview"))};
_.Y.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.z(this.data.actionButtons[0],_.Vq)&&this.ytRendererBehavior.logExplicitClick(_.z(this.data.actionButtons[0],_.Vq))};
var L2=bp$;L2.prototype.onYtPopupClosed_=L2.prototype.onYtPopupClosed_;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],L2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],L2.prototype,"data",void 0);
_.U([_.Z({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.O("design:type",String)],L2.prototype,"embedCode_",void 0);_.U([_.Z({value:!0}),_.O("design:type",Boolean)],L2.prototype,"isPlayerControlsOptionChecked_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],L2.prototype,"isPrivacyModeOptionChecked_",void 0);_.U([_.Z({value:!1,notify:!0}),_.O("design:type",Boolean)],L2.prototype,"startAtChecked_",void 0);
_.U([_.Z({value:0}),_.O("design:type",Number)],L2.prototype,"startAtTimeStamp_",void 0);_.U([_.Z({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],L2.prototype,"isSquareAspectRatio_",void 0);_.U([_.gi("#video-preview"),_.O("design:type",HTMLElement)],L2.prototype,"videoPreviewContainer",void 0);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],L2.prototype,"onYtPopupClosed_",null);
L2=_.U([_.l0({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],L2);
_.q(L2,"yt-sharing-embed-renderer",function(){if(NNS===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;nFi===void 0&&(nFi=document.createElement("template"));var n=nFi;C.call(k,n.content.cloneNode(!0),W.content.firstChild);NNS=W}W=NNS;return W},{mode:2});var AHi={};
AHi.YtUnlimitedFamilyInterstitialBehavior=[_.Ll.YtOpenPopupBehavior,_.$D.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(W){W=_.v3S(_.eI(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var k={openPopupAction:{popupType:"DIALOG",popup:{}}};k.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(k)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var k=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(n){return!!W.openPopupAction.popup[n]}),C=this.getElementName_();
k&&this.data&&(this.pushToHistory({renderer:C,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.z(W,bci))this.loading=!0,_.KY(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(k){return""+k[0].toUpperCase()+k.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var FoE;var wCt;var xTZ=function(){return _.R.apply(this,arguments)||this};
_.D(xTZ,_.R);_.Y=xTZ.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.KY(this.hostElement,"yt-register-create-family-dialog");_.S(this.hostElement).querySelector("#thumbnail").onShow()};
_.Y.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.CB(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.Y.onYtServiceRequestSent_=function(W,k){k&&k.endpoint&&_.z(k.endpoint,_.AQ)||(this.loading=!0)};
_.Y.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.Y.openPopupHandler_=function(W){if(W.detail==this){var k;((k=this.data)==null?0:k.onOpenCommands)&&_.CB(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.Y.closePopupHandler_=function(W,k){this.fireOnCloseCommand_();if(k&&k.canceled===!0||k&&k.canceled===!1&&k.confirmed===!1){var C;((C=this.data)==null?0:C.onDismissCommands)&&_.CB(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.Y.dataChanged_=function(){this.loading=!1};
var j4=xTZ;j4.prototype.dataChanged_=j4.prototype.dataChanged_;j4.prototype.closePopupHandler_=j4.prototype.closePopupHandler_;j4.prototype.openPopupHandler_=j4.prototype.openPopupHandler_;j4.prototype.onYtServiceRequestCompleted_=j4.prototype.onYtServiceRequestCompleted_;j4.prototype.onYtServiceRequestSent_=j4.prototype.onYtServiceRequestSent_;_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],j4.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(AHi.YtUnlimitedFamilyInterstitialBehavior),_.O("design:type",Object)],j4.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],j4.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],j4.prototype,"loading",void 0);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],j4.prototype,"onYtServiceRequestSent_",null);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],j4.prototype,"onYtServiceRequestCompleted_",null);
_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],j4.prototype,"openPopupHandler_",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],j4.prototype,"closePopupHandler_",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],j4.prototype,"dataChanged_",null);
j4=_.U([_.l0({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],j4);
_.q(j4,"yt-unlimited-family-message-interstitial-renderer",function(){if(wCt===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;FoE===void 0&&(FoE=document.createElement("template"));var n=FoE;C.call(k,n.content.cloneNode(!0),W.content.firstChild);wCt=W}W=wCt;return W},{mode:2});var ls7;var t0i;var HQ=function(){return _.R.apply(this,arguments)||this};
_.D(HQ,_.R);HQ.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"}}}};
HQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.S(this.hostElement).querySelector("#main-thumbnail").onShow()};
HQ.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
HQ.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
var rb=HQ;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.U([_.v(AHi.YtUnlimitedFamilyInterstitialBehavior),_.O("design:type",Object)],rb.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],rb.prototype,"data",void 0);
_.U([_.Z({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.O("design:type",Number)],rb.prototype,"mainThumbnailWidth_",void 0);_.U([_.Z({value:function(){return this.onButtonTap_.bind(this)}}),
_.O("design:type",Function)],rb.prototype,"boundButtonTap_",void 0);rb=_.U([_.l0({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],rb);
_.q(rb,"yt-unlimited-family-profile-interstitial-renderer",function(){if(t0i===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;ls7===void 0&&(ls7=document.createElement("template"));var n=ls7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);t0i=W}W=t0i;return W},{mode:2});var EFC;var asY;var XCi=function(){var W=_.R.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.w8("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.D(XCi,_.R);_.Y=XCi.prototype;_.Y.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_]]"}}}}}};
_.Y.onPopupOpened_=function(W){W.detail==this&&_.m("enable_premium_voluntary_pause")&&(_.KY(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.Y.dataChanged_=function(){this.data&&this.resetSlider_()};
_.Y.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.z(W,_.f1s)&&_.kQ(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.Y.onExitButtonTap_=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.Y.closePopupHandler_=function(W,k){(k&&k.canceled===!0||k.canceled===!1&&k.confirmed===!1)&&this.handleOnDismissCommands_()};
_.Y.onSliderChange_=function(){this.selectedIndex_=_.S(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.Y.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.Y.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.Y.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,k=_.S(this.hostElement).querySelector("#id-pause-slider");if(k.immediateValue<W)for(;k.immediateValue!=W;)k.increment();else if(W<k.immediateValue)for(;k.immediateValue!=W;)k.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.Y.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.CB(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.CB(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.loading=!0};
_.Y.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var gb=XCi;gb.prototype.onYtServiceRequestCompleted=gb.prototype.onYtServiceRequestCompleted;gb.prototype.onYtServiceRequestSent=gb.prototype.onYtServiceRequestSent;gb.prototype.closePopupHandler_=gb.prototype.closePopupHandler_;gb.prototype.dataChanged_=gb.prototype.dataChanged_;gb.prototype.onPopupOpened_=gb.prototype.onPopupOpened_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],gb.prototype,"data",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],gb.prototype,"loading",void 0);_.U([_.Z(),_.O("design:type",Number)],gb.prototype,"selectIndexMax_",void 0);_.U([_.Z(),_.O("design:type",Object)],gb.prototype,"selectedData_",void 0);
_.U([_.Z(),_.O("design:type",Object)],gb.prototype,"sliderAriaValueText_",void 0);_.U([_.Z({value:function(){return this.onSubmitTap_.bind(this)}}),
_.O("design:type",Function)],gb.prototype,"onButtonTap_",void 0);_.U([_.Z({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.O("design:type",Function)],gb.prototype,"onSecondaryTap_",void 0);_.U([_.Z(),_.O("design:type",Object)],gb.prototype,"messages",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],gb.prototype,"onPopupOpened_",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],gb.prototype,"dataChanged_",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],gb.prototype,"closePopupHandler_",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],gb.prototype,"onYtServiceRequestSent",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],gb.prototype,"onYtServiceRequestCompleted",null);gb=_.U([_.l0({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],gb);
_.q(gb,"yt-unplugged-pause-membership-dialog-renderer",function(){if(asY===void 0){var W=document.createElement("template");_.J(W,'\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>');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;EFC===void 0&&(EFC=document.createElement("template"));var n=EFC;C.call(k,n.content.cloneNode(!0),W.content.firstChild);asY=W}W=asY;return W},{mode:2});var fsS;var dTE;var mT1=function(){return _.R.apply(this,arguments)||this};
_.D(mT1,_.R);mT1.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ah("vcBalanceRenderer")}}};
var PQ=mT1;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],PQ.prototype,"data",void 0);PQ=_.U([_.l0({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],PQ);
_.q(PQ,"yt-vc-offer-layout-header-renderer",function(){if(dTE===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;fsS===void 0&&(fsS=document.createElement("template"));var n=fsS;C.call(k,n.content.cloneNode(!0),W.content.firstChild);dTE=W}W=dTE;return W},{mode:2});var zpt;var DTB;var V07;var JHZ;var cHT=function(){return _.R.apply(this,arguments)||this};
_.D(cHT,_.R);cHT.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.oq.Object.defineProperties(cHT.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
var K2=cHT;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.FiT.YtTappableItemBehavior),_.O("design:type",Object)],K2.prototype,"ytTappableItemBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],K2.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.G("data.accessibilityText"),_.O("design:type",String),_.O("design:paramtypes",[])],K2.prototype,"ariaLabel",null);_.U([_.Z({reflectToAttribute:!0}),_.G("data.style"),_.O("design:type",String),_.O("design:paramtypes",[])],K2.prototype,"vcOfferStyle",null);_.U([_.G("data.style","data.titleText"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],K2.prototype,"showTitleText",null);K2=_.U([_.l0({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],K2);
_.q(K2,"yt-vc-offer-renderer",function(){if(JHZ===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;V07===void 0&&(V07=document.createElement("template"));var n=V07;C.call(k,n.content.cloneNode(!0),W.content.firstChild);JHZ=W}W=JHZ;return W},{mode:2});var IsZ=function(){return _.R.apply(this,arguments)||this};
_.D(IsZ,_.R);IsZ.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var h$=IsZ;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],h$.prototype,"data",void 0);h$=_.U([_.l0({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],h$);
_.q(h$,"yt-vc-offer-layout-renderer",function(){if(DTB===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;zpt===void 0&&(zpt=document.createElement("template"));var n=zpt;C.call(k,n.content.cloneNode(!0),W.content.firstChild);DTB=W}W=DTB;return W},{mode:2});var SsY;var M0A;var QjY;var pCC;var vF$=function(){return _.R.apply(this,arguments)||this};
_.D(vF$,_.R);vF$.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
var Wt=vF$;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Wt.prototype,"data",void 0);Wt=_.U([_.l0({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Wt);
_.q(Wt,"yt-ypc-offers-modal-top-bar-renderer",function(){if(pCC===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;QjY===void 0&&(QjY=document.createElement("template"));var n=QjY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);pCC=W}W=pCC;return W},{mode:2});var kE=function(){return _.R.apply(this,arguments)||this};
_.D(kE,_.R);kE.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"}}}}};
kE.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
kE.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
var Cw=kE;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gi("#scrollable"),_.O("design:type",Object)],Cw.prototype,"scrollable",void 0);_.U([_.Z(),_.O("design:type",Object)],Cw.prototype,"data",void 0);Cw=_.U([_.l0({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Cw);
_.q(Cw,"yt-ypc-offers-modal-renderer",function(){if(M0A===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;SsY===void 0&&(SsY=document.createElement("template"));var n=SsY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);M0A=W}W=M0A;return W},{mode:2});var epY;var sji;var GF1=function(){return _.R.apply(this,arguments)||this};
_.D(GF1,_.R);_.Y=GF1.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.Y.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.KY(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.Y.onYtPopupOpened_=function(W,k){(k==null?void 0:k.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.CB(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.onYtPopupClosed_=function(W,k){this.continueButtonTapped||k&&(k.canceled===!0||k.canceled===!1&&k.confirmed===!1)&&this.data.onDismissCommands&&_.CB(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.fm(this.hostElement,W.detail.error.message)};
_.Y.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.m("enable_ypc_spinners")?_.KY(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var nw=GF1;nw.prototype.onYtServiceRequestError_=nw.prototype.onYtServiceRequestError_;nw.prototype.onYtPopupClosed_=nw.prototype.onYtPopupClosed_;nw.prototype.onYtPopupOpened_=nw.prototype.onYtPopupOpened_;nw.prototype.onYtServiceRequestCompleted_=nw.prototype.onYtServiceRequestCompleted_;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],nw.prototype,"data",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],nw.prototype,"showSpinner",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],nw.prototype,"continueButtonTapped",void 0);_.U([_.Z({value:function(){return this.onContinueTapped_.bind(this)}}),
_.O("design:type",Function)],nw.prototype,"bindOnContinueTapped_",void 0);_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nw.prototype,"onYtServiceRequestCompleted_",null);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],nw.prototype,"onYtPopupOpened_",null);
_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],nw.prototype,"onYtPopupClosed_",null);_.U([_.jI("yt-service-request-error"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],nw.prototype,"onYtServiceRequestError_",null);nw=_.U([_.l0({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],nw);
_.q(nw,"yt-ypc-upgrade-dialog-renderer",function(){if(sji===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;epY===void 0&&(epY=document.createElement("template"));var n=epY;C.call(k,n.content.cloneNode(!0),W.content.firstChild);sji=W}W=sji;return W},{mode:2});var yHZ;var $TC;var Nz=function(){return _.R.apply(this,arguments)||this};
_.D(Nz,_.R);Nz.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Nz.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
Nz.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
var YE=Nz;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],YE.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],YE.prototype,"data",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],YE.prototype,"positionType",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.O("design:type",Boolean)],YE.prototype,"hasButtons_",void 0);_.U([_.Z({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.O("design:type",Boolean)],YE.prototype,"style_",void 0);YE=_.U([_.l0({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],YE);
_.q(YE,"yt-bubble-hint-renderer",function(){if($TC===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;yHZ===void 0&&(yHZ=document.createElement("template"));var n=yHZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);$TC=W}W=$TC;return W},{mode:2});var Zp7;var Rp7;var oFY=function(){var W=_.iD.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.D(oFY,_.iD);_.Y=oFY.prototype;_.Y.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.Y.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.Y.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.Y.computeUseOverlayForSpinner_=function(W,k){return!!W&&k};
_.Y.computeShowSpinner_=function(W,k){return W||!!k};
_.Y.fireOnCloseActions_=function(){var W,k=_.b(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=k.next();!W.done;W=k.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.Y.fireOnOpenCommands_=function(W){var k,C=(k=this.data)==null?void 0:k.onOpenCommands;if(C)for(W.stopImmediatePropagation(),W=_.b(C),k=W.next();!k.done;k=W.next())this.ytRendererBehavior.resolveCommand(k.value)};
_.Y.fireOnDismissCommands_=function(W){var k,C=(k=this.data)==null?void 0:k.onDismissCommands;if(C)for(W.stopImmediatePropagation(),W=_.b(C),k=W.next();!k.done;k=W.next())this.ytRendererBehavior.resolveCommand(k.value)};
_.Y.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.Y.closePopupHandler_=function(W,k){_.hA(this,"yt-confirm-dialog-close-action",[k]);this.fireOnCloseActions_();(k&&k.canceled===!0||k&&k.canceled===!1&&k.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.Y.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.Y.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.Y.computeHasLoadingMessage=function(W){return!!W};
_.Y.onHeaderImageWidthChanged_=function(){var W,k=(W=this.data)==null?void 0:W.headerImageWidth;if(k){if(W=1.25*k*2+k,this.$.main.style.width=W+"px",k=this.$.scroller.firstElementChild)k.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.Y.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.Y.onYtNavigate_=function(W){W=_.eI(W);W instanceof Node&&_.Ty(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.Y.computePrimaryIsCancel_=function(W){return W};
_.Y.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.Y.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.Y.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.Y.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.Y.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.oq.Object.defineProperties(oFY,{template:{configurable:!0,enumerable:!0,get:function(){if(Rp7===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Zp7===void 0&&(Zp7=document.createElement("template"));var n=Zp7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Rp7=W}W=Rp7;return W}}});
var Bt=oFY;Bt.prototype.onYtServiceRequestCompleted_=Bt.prototype.onYtServiceRequestCompleted_;Bt.prototype.onYtServiceRequestSent_=Bt.prototype.onYtServiceRequestSent_;Bt.prototype.onThumbnailLoaded_=Bt.prototype.onThumbnailLoaded_;Bt.prototype.onYtNavigate_=Bt.prototype.onYtNavigate_;Bt.prototype.onThumbnailChanged_=Bt.prototype.onThumbnailChanged_;Bt.prototype.onHeaderImageWidthChanged_=Bt.prototype.onHeaderImageWidthChanged_;Bt.prototype.onHeaderImageChanged_=Bt.prototype.onHeaderImageChanged_;
Bt.prototype.closePopupHandler_=Bt.prototype.closePopupHandler_;Bt.prototype.openPopupHandler_=Bt.prototype.openPopupHandler_;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],Bt.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);
_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],Bt.prototype,"ytEventForwardingBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Bt.prototype,"data",void 0);_.U([_.Z({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.O("design:type",Boolean)],Bt.prototype,"primaryIsCancel",void 0);_.U([_.Z({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.O("design:type",Boolean)],Bt.prototype,"isCancelButtonHidden",void 0);
_.U([_.Z({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.O("design:type",Boolean)],Bt.prototype,"isCheckboxHidden",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],Bt.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.U([_.Z({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.O("design:type",Boolean)],Bt.prototype,"useOverlayForSpinner_",void 0);
_.U([_.Z({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.O("design:type",Boolean)],Bt.prototype,"showSpinner_",void 0);_.U([_.Z({value:!1}),_.O("design:type",Boolean)],Bt.prototype,"isActionInProgress_",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.O("design:type",Boolean)],Bt.prototype,"hasHeaderImageWidth_",void 0);
_.U([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.O("design:type",Boolean)],Bt.prototype,"hasLoadingMessage",void 0);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Bt.prototype,"openPopupHandler_",null);_.U([_.jI("yt-popup-closed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],Bt.prototype,"closePopupHandler_",null);
_.U([_.Hl("data.headerImage"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bt.prototype,"onHeaderImageChanged_",null);_.U([_.Hl("data.headerImageWidth"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bt.prototype,"onHeaderImageWidthChanged_",null);_.U([_.Hl("data.thumbnail"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bt.prototype,"onThumbnailChanged_",null);
_.U([_.jI("yt-navigate"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],Bt.prototype,"onYtNavigate_",null);_.U([_.jI("yt-img-shadow-loaded"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Bt.prototype,"onThumbnailLoaded_",null);_.U([_.jI("yt-service-request-sent"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.VF]),_.O("design:returntype")],Bt.prototype,"onYtServiceRequestSent_",null);
_.U([_.jI("yt-service-request-completed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,_.vJ]),_.O("design:returntype")],Bt.prototype,"onYtServiceRequestCompleted_",null);Bt=_.U([_.l0({is:"yt-confirm-dialog-renderer",noInjection:!0})],Bt);var ipZ;var TN1;var bC=function(){return _.R.apply(this,arguments)||this};
_.D(bC,_.R);bC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
bC.prototype.computeConfirmButton_=function(W){var k={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?k.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(k.serviceEndpoint=W.confirmServiceEndpoint);return k};
bC.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
var A1=bC;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],A1.prototype,"data",void 0);_.U([_.Z({computed:"computeShowTitle_(data)"}),_.O("design:type",Boolean)],A1.prototype,"showTitle",void 0);A1=_.U([_.l0({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],A1);
_.q(A1,"yt-fancy-dismissible-dialog-renderer",function(){if(TN1===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;ipZ===void 0&&(ipZ=document.createElement("template"));var n=ipZ;C.call(k,n.content.cloneNode(!0),W.content.firstChild);TN1=W}W=TN1;return W});var qs7;var uBt;var UTS=function(){var W=_.R.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.D(UTS,_.R);UTS.prototype.created=function(){lTT(2201)};
UTS.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
UTS.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var Fk=UTS;Fk.prototype.onIronOverlayClosed=Fk.prototype.onIronOverlayClosed;Fk.prototype.onIronOverlayOpened=Fk.prototype.onIronOverlayOpened;_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.Gu),_.O("design:type",Object)],Fk.prototype,"tpYtIronOverlayBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],Fk.prototype,"data",void 0);_.U([_.Z(),_.O("design:type",Object)],Fk.prototype,"spinnerActive",void 0);
_.U([_.jI("iron-overlay-opened"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fk.prototype,"onIronOverlayOpened",null);_.U([_.jI("iron-overlay-closed"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],Fk.prototype,"onIronOverlayClosed",null);Fk=_.U([_.l0({is:"yt-loading-renderer",disableElementRegistration:!0})],Fk);
_.q(Fk,"yt-loading-renderer",function(){if(uBt===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;qs7===void 0&&(qs7=document.createElement("template"));var n=qs7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);uBt=W}W=uBt;return W},{mode:2});var Opu;var Loi;var jjE=function(){var W=_.R.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.D(jjE,_.R);_.Y=jjE.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.Y.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.Y.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.KY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.Y.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.KY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.KY(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.Y.computeLayoutStyle_=function(W){return W};
_.Y.computePopupSize_=function(W){return W};
_.Y.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.Y.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.Y.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.Y.computeCustomLogo=function(W,k){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?k?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.Y.computeHeaderBackgroundImage=function(W,k){if(W!=null&&W.headerBackgroundImage)return k&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.Y.shouldShowIconContainer=function(W,k){return W&&!k};
_.Y.shouldShowNonYouTubeIcon=function(W,k){return!W&&!k};
_.Y.getLogoImageId=function(W){var k,C,n;return(W=(k=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(C=k.thumbnails)==null?void 0:(n=C[0])==null?void 0:n.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
var wr=jjE;wr.prototype.openPopupHandler_=wr.prototype.openPopupHandler_;wr.prototype.dataChanged_=wr.prototype.dataChanged_;_.U([_.v(_.ym.YtRendererstamperBehavior),_.O("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.U([_.Z(),_.O("design:type",Boolean)],wr.prototype,"isDarkTheme",void 0);
_.U([_.Z({computed:"computeCustomLogo(data, isDarkTheme)"}),_.O("design:type",Object)],wr.prototype,"customLogo",void 0);_.U([_.Z({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.O("design:type",Object)],wr.prototype,"headerBackgroundImage",void 0);_.U([_.Z(),_.O("design:type",Object)],wr.prototype,"data",void 0);_.U([_.Z({computed:"computeHasHeader_(data)"}),_.O("design:type",Boolean)],wr.prototype,"hasHeader",void 0);
_.U([_.Z({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.O("design:type",Object)],wr.prototype,"layoutStyle",void 0);_.U([_.Z({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.O("design:type",Object)],wr.prototype,"popupSize",void 0);_.U([_.Z({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],wr.prototype,"hasLogo",void 0);
_.U([_.Z({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.O("design:type",Boolean)],wr.prototype,"hasCustomLogo",void 0);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],wr.prototype,"dataChanged_",null);_.U([_.jI("yt-popup-opened"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],wr.prototype,"openPopupHandler_",null);
wr=_.U([_.l0({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],wr);
_.q(wr,"yt-upsell-dialog-renderer",function(){if(Loi===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Opu===void 0&&(Opu=document.createElement("template"));var n=Opu;C.call(k,n.content.cloneNode(!0),W.content.firstChild);Loi=W}W=Loi;return W},{mode:2});var Hpt=_.GM(function(W){return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.t(_.NI,{cond:W.title,then:function(k){return _.t("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},k)}}))},"Tf"),rHt=_.GM(function(W){return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.t(_.Ex,{data:W.closeButton},{buttonViewModel:function(k){return _.t("div",null,_.t(_.zn,{data:k.data}))}}))},"Uf"),gFA=_.GM(function(W){var k=
W.data;
return _.t(_.qf,null,_.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.t(_.NI,{cond:function(){return!!k().image&&!!k().title},
then:function(){return _.t(_.pi,{data:function(){return k().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.t(_.NI,{cond:function(){return k().title},
then:function(C){return _.t("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},C)}}),_.t(_.NI,{cond:function(){return k().primaryGenre},
then:function(C){return _.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},C)}}))),_.t(_.NI,{cond:function(){var C=k().description;
return C&&C.length<=150},
then:function(){return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return k().description}))}}))},"Vf"),PhT=_.GM(function(W){W=W.infoRows;
var k=_.f().resolve(_.Qp),C=_.m("enable_displaying_ppn");return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.t(_.bI,{each:W},function(n){return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.t(_.NI,{cond:function(){return n.label},
then:function(N){return _.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},N)}}),_.t(_.NI,{cond:function(){return n.attributedLabel},
then:function(N){return _.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.t(_.Ya,{text:N,noPreWrap:!0}))}}),_.t(_.NI,{cond:function(){return n.value},
then:function(N){return _.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},N)}}),_.t(_.NI,{cond:function(){return n.attributedValue},
then:function(N){return _.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.t(_.Ya,{text:N,noPreWrap:!0}))}}))}),_.t(_.NI,{cond:function(){return C&&k.clientData.has("post_play_nonce")},
then:function(){return _.t("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.t("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},k.getData("post_play_nonce")))}}))},"Wf"),Ko7=_.GM(function(W){var k=W.data;
return _.t("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.t(Hpt,{title:function(){return k().dialogTitle}}),_.t(gFA,{data:k}),_.t(_.NI,{cond:function(){return k().infoRow},
then:function(C){return _.t(PhT,{infoRows:C})}}),_.t(rHt,{closeButton:function(){return k().closeButton}}))},"Xf");
Ko7.idomCompat=!0;_.Gj(Ko7,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;return _.t("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.t(_.pi,{data:function(){return k().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.t("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.t("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.t(_.NI,{cond:function(){var C=k().ytLogo;return C?C.iconType:null},
then:function(C){return _.t(_.ka,{icon:C,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.t("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.t("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.t(_.Ya,{text:function(){return k().body}})),_.t("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.t(_.Ya,{text:function(){return k().verifyStateText}}))),
_.t("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.t("div",null,_.t(_.Ex,{data:function(){return k().dismissButton}},{buttonViewModel:_.zn})),_.t("div",null,_.t(_.Ex,{data:function(){return k().linkParentButton}},{buttonViewModel:_.zn})))))},"Yf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Ik}});var hpi=_.GM(function(W){var k=W.data;return _.t("installment-agreements-view-model",{class:_.Li("ytInstallmentAgreementsViewModelHost")},_.t(_.bI,{each:_.pq(function(){return k().agreements},[])},function(C){return _.t("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.t("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.t(_.Ya,{text:C.label})),_.t("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.t(_.Ex,{data:function(){return C.openButton}},{buttonViewModel:_.zn})))}))},
"Zf");
hpi.idomCompat=!0;var WCA=_.GM(function(W){return _.t("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.t(_.Ya,{text:function(){return W.data().inviteMessage}})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.t(_.Ya,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.t(_.Ex,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.D_}),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.t(_.Ya,{text:function(){return W.data().accountName}}),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.t(_.Ya,{text:function(){return W.data().handle}}))),_.t(_.Ex,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.zn})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.t(_.Ya,{text:function(){return W.data().termsOfService}})))},"$f");var kV6=_.GM(function(W){var k=_.b(_.h7(function(){var P,xz;return((P=W.data().createPlaylistDialogFormSchema)==null?0:(xz=P.initialValues)==null?0:xz.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),C=k.next().value,n=k.next().value;
k=_.b(_.h7(function(){W.data();return!1}));
var N=k.next().value,B=k.next().value;k=_.b(_.h7(function(){W.data();return!1}));
var A=k.next().value,w=k.next().value;k=_.b(_.h7(function(){var P,xz;return(P=W.data().createPlaylistDialogFormSchema)==null?void 0:(xz=P.initialValues)==null?void 0:xz.visibility}));
var x=k.next().value,E=k.next().value;k=_.b(_.h7(function(){W.data();return!1}));
var a=k.next().value,X=k.next().value;k=_.b(_.h7(function(){var P,xz;return(P=W.data().createPlaylistDialogFormSchema)==null?void 0:(xz=P.initialValues)==null?void 0:xz.isCollaborative}));
var d=k.next().value,V=k.next().value,c=_.yE();_.XM(function(){var P=c.value.querySelector("textarea");P&&(P.value=C())});
_.Ee(function(){var P;_.LQB((P=W.data().createPlaylistDialogFormSchema)==null?void 0:P.id,{onSubmit:function(){var xz=C();var Sp=x(),vw=d(),lw=W.data();xz={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:xz,privacyStatus:Sp,videoIds:lw.videoIds,sourcePlaylistId:lw.sourcePlaylistId,params:vw?lw.createPlaylistParamsCollaborationEnabled:lw.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.f().resolve(_.uI).resolveCommand(xz)},
isValid:function(){return N()&&!A()&&!a()}})});
var M=function(P){if(P!==void 0&&(n(P),!N()&&P.length>0&&B(!0),N())){var xz=f81(W.data());if(xz){var Sp=xz.minLength;xz=xz.maxLength;Sp&&P.length<Sp?w(!0):xz&&P.length>xz?w(!0):w(!1)}}},p=function(){var P=!(!d()||x()!=="PRIVATE");
X(P)},e=function(P){P!==void 0&&(E(P),p())},u=function(){if(a())return mJC(W.data())},h=function(){V(!d());
p()},L=function(){return{validate:function(P){if(N()){var xz=f81(W.data());
if(xz){var Sp=xz.minLength;xz=xz.translations;if(Sp&&P.length<Sp)return xz==null?void 0:xz.minLengthErrorMessage}}}}},Bw=function(){var P=f81(W.data()),xz=P==null?void 0:P.maxLength,Sp;
P=P==null?void 0:(Sp=P.translations)==null?void 0:Sp.maxLengthErrorMessage;if(xz&&P)return{maxChars:xz,errorMessage:P}};
return _.t("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.t("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:c},_.t(_.Ex,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(P){return _.t(_.FWY,{data:P.data,
text:C,onInput:M,validation:L,characterLimit:Bw})},
textFieldViewModel:function(P){return _.t(_.AvT,{data:P.data,text:C,onInput:M,validation:L,characterLimit:Bw})}})),_.t("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.t(_.Ex,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(P){return _.t(_.DsT,{data:P.data,
onSelected:e,error:u})}})),_.t(_.NI,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.t("div",null,_.t(_.Ex,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(P){return _.t(_.TgS,{data:P.data,
onTap:h})}}))}}))},"ag");var CJt=_.GM(function(W){var k=_.pq(W.noPadding,!1),C=function(){var N,B;return(B=(N=W.data().logo.accessibilityData)==null?void 0:N.label)!=null?B:""},n={};
return _.t("upsell-view-model",{class:_.Li("ytUpsellViewModelHost",(n.ytUpsellViewModelHostNoPadding=function(){return k()},n))},_.t("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.t(_.NI,{cond:function(){return _.uX(W.data().logo)},
then:function(N){return _.t(_.pi,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:C})}})),_.t("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.t(_.Ya,{text:function(){return W.data().title}})),_.t("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.t(_.bI,{each:function(){var N;
return(N=W.data().subtitles)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.t("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.t(_.Ya,{text:N}))})),_.t("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.t(_.bI,{each:function(){var N;
return(N=W.data().benefitInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.t(_.NI,{cond:function(){return N().info},
then:function(B){return _.t("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.t(_.ka,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.t(_.Ya,{text:B}))}})})),_.t("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.t(_.bI,{each:function(){var N;
return(N=W.data().legalInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.t("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.t(_.Ya,{text:N}))})))},"bg");var nGi=_.GM(function(W){var k=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=zk7(),W);return _.t("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.t("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return k().title}),_.t("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return k().subtitle}),_.t("div",{class:_.Hj(W)},_.t("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return k().score})),_.t("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return k().prompt}))},"cg");var Nft=function(){this.store=_.SY();this.formId=""};var Y8B=_.GM(function(W){function k(w){if(w&&(w=_.z(w,_.BB)))return Object.assign({},w,{isSelected:B()})}
var C=_.b(_.h7(function(){var w,x;return(x=(w=_.z(W.data().option,_.BB))==null?void 0:w.isSelected)!=null?x:!1})),n=C.next().value,N=C.next().value,B=n;
_.Ee(function(){var w;_.LQB((w=W.data().formSchema)==null?void 0:w.id,{onSubmit:function(){var x=_.f().resolve(_.uI),E=!!W.data().selectedCommand,a=!!W.data().unselectedCommand;if(B()){if(E)var X=W.data().selectedCommand}else a&&(X=W.data().unselectedCommand);X=_.fi(X);k(W.data().option)&&!X?(x="",!E&&a?x="selected ":E&&!a&&(x="unselected "),E=new _.AM("No "+x+"command found for SelectionListItemFormViewModel"),_.dI(E)):X&&x.resolveCommand(X)},
isValid:function(){return!0}})});
var A=function(){N(!B())};
_.fy(function(){var w,x,E=(w=W.data())==null?void 0:(x=w.formSchema)==null?void 0:x.id;E&&_.ULB()().delete(E)});
return _.t("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.t("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.t(_.Ya,{text:function(){return W.data().paragraph}})),_.t(_.NI,{cond:function(){return k(W.data().option)},
then:function(w){return _.t(_.Bd,{data:w,isCompact:!0,hideSelectionTextChevron:!0,onTap:A,disableHorizontalPadding:!0})}}))},"dg");var JuE=_.w7({avatarStackViewModel:_.FCS});_.UK(cuE);var BfB=_.GM(function(W){var k=W.data;var C=W.disablePadding;var n=W.className;var N=_.yE(),B=function(){return DJS(k().banner,k().assetContainerPaddingStyle)},A=function(){return DJS(k().imageBanner,k().assetContainerPaddingStyle)},w=function(){return k().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Ee(function(){var x=function(){V56(N.value)},E;
(E=N.value)==null||E.addEventListener("image-loaded",x);_.fy(function(){var a;(a=N.value)==null||a.removeEventListener("image-loaded",x)})});
W={};return _.t("yt-dialog-header-view-model",{el:N,class:_.Li(n,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=C,W))},_.t(_.NI,{cond:function(){return k().banner},
then:function(){var x={};return _.t("div",{class:_.Li(n,(x.ytDialogHeaderViewModelBanner=!0,x.ytDialogHeaderViewModelBannerFullBleed=w,x)),style:_.WJ({"max-height":function(){return k().assetContainerMaxHeight?k().assetContainerMaxHeight+"px":""}})},_.t(_.W2,{data:B,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.t(_.NI,{cond:function(){return k().imageBanner},
then:function(){var x={};return _.t("div",{class:_.Li(n,(x.ytDialogHeaderViewModelBanner=!0,x.ytDialogHeaderViewModelBannerFullBleed=w,x)),style:_.WJ({"max-height":function(){return k().assetContainerMaxHeight!==void 0?k().assetContainerMaxHeight+"px":void 0}})},_.t(_.W2,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.t(_.NI,{cond:function(){return k().customAssetContainer},
then:function(x){return _.t("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.t(_.Ex,{data:x},{avatarStackViewModel:_.Ja}))}}),_.t(_.NI,{cond:function(){return k().customBanner},
then:function(x){return _.t("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.t(_.Ex,{data:x},{avatarStackViewModel:_.Ja}))}}),_.t(_.NI,{cond:function(){return k().headline},
then:function(x){return _.t("h2",null,_.t(_.Ya,{text:x,className:"ytDialogHeaderViewModelText"}))}}))},"eg"),b9B=_.m("web_enable_sink_dialog_header_view_model")?BfB:_.ry(cuE);
BfB.idomCompat=!0;var AO$=_.GM(function(W){var k=_.jAi(function(){return W.data().formId}),C=k.onSubmit,n=k.isValid;
return _.t("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.t(_.Ex,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(N){return _.t(_.Qk,{data:N.data,
disablePadding:!0,disablePrimaryButton:function(){return!n()},
onClickPrimaryButton:function(){C()}})}}))},"fg");var x8T=_.GM(function(W){var k=_.vp(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),C=k.elRefCallback;W=k.iconWiz;var n=k.assetWiz,N=k.assetType,B=k.titleWiz,A=k.leadingActionHeaderWiz,w=k.trailingActionHeaderWiz,x=k.headerPosition,E=k.contentWiz,a=k.buttonLayout,X=k.buttonStyle,d=k.primaryButtonWiz,V=k.secondaryButtonWiz,c=k.contentAlignment,M=k.isFullscreen,p=k.width,e=k.maxHeight,u=k.isHeaderWizDefined,
h=k.headerWiz,L=k.isFooterWizDefined,Bw=k.footerWiz;k=_.yE(function(aI){C==null||C(aI)});
var P=n?function(){return n({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,xz=d?function(){var aI={};
return d({buttonOverrides:function(){return{style:(X==null?void 0:X())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Li((aI["yt-spec-dialog-layout__dialog-layout-button"]=!0,aI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(a==null?void 0:a())===0||(a==null?void 0:a())===2},aI))})}:void 0,Sp=V?function(){var aI={};
return V({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Li((aI["yt-spec-dialog-layout__dialog-layout-button"]=!0,aI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(a==null?void 0:a())===0||(a==null?void 0:a())===2},aI))})}:void 0,vw=function(){return(!!B||!!A||!!w)&&x()===0},lw={},G4={},nA={},Xs={};
return _.t("dialog-layout",{el:k,class:_.Li((lw["yt-spec-dialog-layout"]=!0,lw["yt-spec-dialog-layout--dialog-layout-fullscreen"]=M,lw["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!M()},lw["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return e()===1},lw["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(N==null?void 0:N())===1},lw)),
style:function(){return(p==null?void 0:p())!==void 0?"width: "+p+"px;":""}},W?_.t("div",{class:_.Li((G4["yt-spec-dialog-layout__dialog-layout-icon"]=!0,G4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!n&&x()===1},G4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return c()===1},G4))},_.t(W,null)):null,_.t(_.NI,{cond:u,
then:function(){return h?_.t("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.t(h,null)):null},
else:function(){return _.t(_.qf,null,_.t(_.NI,{cond:vw,then:function(){return _.t(FCu,{contentAlignment:c,LeadingActionHeader:A,TrailingActionHeader:w,Title:B,isAboveAsset:!!P})}}),P?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.t(P,null)):null)}}),_.t("div",{class:_.Li((nA["yt-spec-dialog-layout__dialog-layout-container"]=!0,nA["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1},nA["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!B&&!h||!!P&&(x==null?void 0:x())===0},nA))},_.t(_.NI,{cond:function(){return B&&!h&&(x==null?void 0:x())===1},
then:function(){return _.t(FCu,{contentAlignment:c,LeadingActionHeader:A,TrailingActionHeader:w,Title:B,isAboveAsset:!1})}}),E?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.t(E,null))):null,_.t(_.NI,{cond:L,
then:function(){return Bw?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.t(Bw,null)):null}}),xz||Sp?_.t(wU$,{footerClasses:_.Li((Xs["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Xs["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Xs["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(a==null?void 0:a())===2},Xs["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(a==null?void 0:a())===1},Xs)),
PrimaryButton:xz,SecondaryButton:Sp}):null))},"gg"),FCu=_.GM(function(W){var k=_.vp(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),C=k.contentAlignment,n=k.LeadingActionHeader;W=k.Title;var N=k.TrailingActionHeader,B=k.isAboveAsset,A=k.enableLeadingActionHeader;k={};return _.t("div",{class:_.Li((k["yt-spec-dialog-layout__dialog-header-container"]=!0,k["yt-spec-dialog-layout__dialog-header"]=!0,k["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=B,k["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(C==null?void 0:C())===1&&A()},k))},_.t(_.NI,{cond:function(){return A()},
then:function(){return n?_.t("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.t(n,null)):null}}),W?_.t("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.t(W,null)):null,N?_.t("div",null,_.t(N,null)):null)},"hg"),wU$=_.GM(function(W){var k=W.footerClasses;
var C=W.PrimaryButton;W=W.SecondaryButton;return _.t("div",{class:k},W?_.t(W,null):null,C?_.t(C,null):null)},"ig");var loT=_.GM(function(W){var k=W.data;return _.t("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.t("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.t(_.Ex,{data:function(){return k().avatar}},{avatarViewModel:_.D_})),_.t("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.Ya,{text:function(){return k().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"jg");var tbY=_.GM(function(W){var k=W.data;return _.t("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.t("div",{class:"ytAccessConfirmationViewModelContent"},_.t(_.Ex,{data:function(){return k().dualAvatar}},{dualAvatarViewModel:function(C){return _.t("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.t(_.A87,{data:C.data}))}}),_.t("h2",{class:"ytAccessConfirmationViewModelTitle"},_.t(_.Ya,{text:function(){return k().title}})),_.t(_.Ya,{text:function(){return k().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"kg");var EG1=_.GM(function(W){var k=W.data;var C=void 0;W=_.b(_.kw("",void 0,"O14qgc"));var n=W.next().value,N=W.next().value,B,A=function(){N("");var E;(E=C)!=null&&E.store.dispatch(_.jo({type:"RESET_COMMAND_MAP"}))};
_.Ee(function(){C=new Nft;window.addEventListener("yt-popup-closed",A)});
_.XM(function(){if(C&&B!==k().formId){var E=C,a=k();a.formId&&(E.formId=a.formId,E.store.dispatch(_.jo({type:"SET_CURRENT_FORM_ID",payload:{formId:E.formId}})));B=k().formId}});
_.fy(function(){window.removeEventListener("yt-popup-closed",A)});
var w=function(E,a,X){a.key&&X&&a.key!==n()&&(N(a.key),C&&a.command&&C.store.dispatch(_.jo({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:X,command:a.command}})))},x=function(){if(_.z(k().content,_.BnB))return!(n==null?0:n())};
return _.t("yt-dialog-view-model",{class:_.Li("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.t(x8T,{headerWiz:function(){return _.t("span",{skip:!0},_.t(_.Ex,{data:function(){return k().header}},{dialogHeaderViewModel:function(E){return _.t(b9B,{data:E.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!k().header},
contentWiz:function(){return _.t("span",{skip:!0},_.t(_.Ex,{data:function(){return k().customContent?k().customContent:k().content}},{basicContentViewModel:_.jWi,
createPlaylistDialogFormViewModel:kV6,collaborativePlaylistInviteMessageViewModel:WCA,miniAppScoreChallengeViewModel:nGi,radioButtonGroupViewModel:function(E){return _.t(_.dsT,{data:E.data,selectedKey:n,onSelected:w})},
selectionListItemFormViewModel:Y8B,upsellViewModel:function(E){return _.t(CJt,{data:E.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:loT,installmentAgreementsViewModel:hpi,accessConfirmationViewModel:tbY,listViewModel:_.H$s}))},
footerWiz:function(){return _.t("span",{skip:!0},_.t(_.Ex,{data:function(){return k().footer}},{panelFooterViewModel:function(E){return _.t(_.Qk,{data:E.data,
disablePadding:!0,disablePrimaryButton:x})},
formPanelFooterViewModel:AO$,formFooterViewModel:function(E){return _.t(_.YCS,{data:E.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!k().footer}}))},"lg");
EG1.idomCompat=!0;_.Gj(EG1,"yt-dialog-view-model",{props:{data:_.Ik},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var ao7=_.GM(function(W){var k=W.data;W={};return _.t("yt-panel-header-view-model",{class:_.Li("yt-panel-header-view-model-wiz",(W["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!k().shouldHideDivider},W["yt-panel-header-view-model-wiz--compact"]=function(){return!!k().subtitle},W))},_.t("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.t(_.NI,{cond:function(){return k().title},
then:function(C){return _.t(_.Ya,{text:C,className:"yt-panel-header-view-model-wiz__title"})}}),_.t(_.NI,{cond:function(){return k().subtitle},
then:function(C){return _.t(_.Ya,{text:C,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.t("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.t(_.Ex,{data:function(){return k().trailingButtons}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"mg");
ao7.idomCompat=!0;var XUi=_.GM(function(W){var k=_.Pj(function(B){var A;if((A=W.skipContentClick)==null?0:A.call(W))return!1;W.onContentWrapperClick(B);return!0}),C,n,N;
return _.t("div",{class:_.Li("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(C=W.header)==null?void 0:C.call(W),_.t("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.WJ({"max-height":(0,_.Yu)(W.maxHeightForContentWrapper)}),"on:scroll":QH6(W.onScroll),"on:touchmove":QH6(function(B){return void B.stopPropagation()})},_.t("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":k},(n=W.body)==null?void 0:n.call(W))),(N=W.footer)==null?void 0:N.call(W))},"ng");
XUi.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var fot=_.GM(function(W){var k=_.pq(W.leadingLabel),C=_.pq(W.trailingLabel),n=_.pq(W.footerButtonType),N=function(){return k()||C()||W.hasPrimaryButton()||W.hasSecondaryButton()},B={},A=_.Li("yt-spec-bottom-sheet-layout__primary-button",(B["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return n()===0&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return n()===1&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return n()===2&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return n()===3&&W.hasPrimaryButton()},B));
B={};var w=_.Li("yt-spec-bottom-sheet-layout__secondary-button",(B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return n()===1&&W.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return n()===2&&W.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return n()===3&&W.hasPrimaryButton()},B));
return _.t(_.NI,{cond:W.hasFooterOverride,then:function(){var x;return _.t(_.qf,null,(x=W.footerOverride)==null?void 0:x.call(W))},
else:function(){return _.t(_.NI,{cond:N,then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.t(_.NI,{cond:function(){return k()||C()},
then:function(){var x={};return _.t("div",{class:_.Li("yt-spec-bottom-sheet-layout__footer-label-wrapper",(x["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},x))},_.t(_.NI,{cond:k,
then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},k)}}),_.t(_.NI,{cond:C,
then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},C)}}))}}),_.t(_.NI,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var x={};return _.t("div",{class:_.Li("yt-spec-bottom-sheet-layout__footer-button-wrapper",(x["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Lj8,x))},_.t(_.NI,{cond:function(){return W.hasSecondaryButton()&&n()!==0},
then:function(){var E;return _.t("div",{class:w},(E=W.secondaryButton)==null?void 0:E.call(W))}}),_.t(_.NI,{cond:W.hasPrimaryButton,
then:function(){var E;return _.t("div",{class:A},(E=W.primaryButton)==null?void 0:E.call(W))}}))}}))}})}})},"og");
fot.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var d8t=_.GM(function(W){var k=_.pq(W.title),C=_.pq(W.subtitle),n=_.Pj(function(A){var w;(w=W.touchstart)==null||w.call(W,A);return!1}),N=_.Pj(function(A){var w;
(w=W.touchmove)==null||w.call(W,A);return!1}),B=_.Pj(function(A){var w;
(w=W.touchend)==null||w.call(W,A);return!1});
return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":n,"on:touchmove":N,"on:touchend":B},_.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.t(_.NI,{cond:W.hasHeaderOverride,then:function(){var A;return _.t(_.qf,null,(A=W.headerOverride)==null?void 0:A.call(W))},
else:function(){var A={};return _.t("div",{class:_.Li((A["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,A["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=k,A))},_.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.t(_.NI,{cond:k,then:function(){return _.t(_.qf,null,_.t("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},k),_.t(_.NI,{cond:C,then:function(){return _.t("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
C)}}))}})),_.t(_.NI,{cond:function(){return k()&&W.hasActionHeader()},
then:function(){var w;return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(w=W.actionHeader)==null?void 0:w.call(W))}}))}}))},"pg");
d8t.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.GM(function(W){function k(P){if(!e&&typeof MutationObserver!=="undefined"){var xz={childList:!0};"MutationObserver"in window&&(e=new MutationObserver(C.bind(void 0,P)),e.observe(P,xz))}}
function C(P){typeof e!=="undefined"&&(u["content-wrapper"]===void 0&&(u["content-wrapper"]=P.children[0].clientHeight),V(u["content-wrapper"]),d()>c()||M(d()))}
function n(){X(window.innerHeight);d()>c()||M(d());h.isFullScreen[0]()&&d()>c()?L().dispatch("Snap To Full Screen",{maxHeight:p()}):L().dispatch("Snap To Neutral Position",{maxHeight:c()})}
function N(P){document.body.style.overscrollBehavior="none";P.preventDefault();L().dispatch("Touch Start",{event:P})}
function B(P){P.preventDefault();L().dispatch("Touch Move",{event:P,contentScrollable:d()>c(),fullContentWrapperHeight:p(),contentWrapperHeight:c(),contentHeightMap:u,contentWrapperId:"content-wrapper",header:voT(W),footer:voT(W)})}
function A(){document.body.style.overscrollBehavior="";h.isFullScreen[0]()?h.currentY[0]()>=60?L().dispatch("Snap To Neutral Position",{maxHeight:c()}):L().dispatch("Snap To Full Screen",{maxHeight:p()}):h.currentY[0]()>=60?w():h.currentY[0]()<=-60&&d()>c()?L().dispatch("Snap To Full Screen",{maxHeight:p()}):L().dispatch("Snap To Neutral Position",{maxHeight:c()})}
function w(){L().dispatch("Close Sheet",{clientHeight:a(),maxHeight:0});setTimeout(function(){pT6()},250)}
var x=_.b(_.kw(window.innerHeight,void 0,"NWeFS")),E=x.next().value;x=x.next().value;var a=E,X=x;x=_.b(_.kw(0,void 0,"oxfm4"));E=x.next().value;x=x.next().value;var d=E,V=x;x=_.b(_.h7(function(){var P=voT(W);return.6*a()-I8T(P)-SyZ(P)}));
E=x.next().value;x=x.next().value;var c=E,M=x,p=function(){var P=voT(W);return a()-I8T(P)-SyZ(P)-24-24},e=null,u={},h={initialY:_.kw(0,void 0,"cYBE5c"),
currentY:_.kw(0,void 0,"RndqHc"),isAnimating:_.kw(!1,void 0,"vO9DVd"),isFullScreen:_.kw(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.h7(c)},L=function(){var P=null;return function(){if(!P){var xz={initialY:h.initialY[0](),currentY:h.currentY[0](),isAnimating:h.isAnimating[0](),isFullScreen:h.isFullScreen[0](),maxHeightForContentWrapper:h.maxHeightForContentWrapper[0]()};P=M5u(xz)}return P}}();
_.Ee(function(){window.addEventListener("resize",n);L().subscribe(function(P){h.initialY[1](P.initialY);h.currentY[1](P.currentY);h.isAnimating[1](P.isAnimating);h.isFullScreen[1](P.isFullScreen);h.maxHeightForContentWrapper[1](P.maxHeightForContentWrapper)})});
_.fy(function(){window.removeEventListener("resize",n);e&&(e.disconnect(),e=null)});
var Bw=_.Li({"bottom-sheet-content-without-icon":function(){var P;return!((P=W.shouldShowIcons)==null?0:P.call(W))}});
return _.t("bottom-sheet-layout",null,_.t(XUi,{contentWrapperId:"content-wrapper",isAnimating:function(){return h.isAnimating[0]()},
currentY:function(){return h.currentY[0]()},
maxHeightForContentWrapper:function(){return h.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var P=document.getElementById("header-wrapper"),xz=document.getElementById("content-wrapper");if(P&&xz){var Sp={};Sp=(Sp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Sp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Sp);P.className=xz.scrollTop>1?_.Hj(Sp):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:pT6,contentWrapperEl:function(P){k(P);requestAnimationFrame(function(){C(P)})},
header:function(){return _.t(d8t,{touchstart:N,touchmove:B,touchend:A,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.t(fot,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.t(_.NI,{cond:W.hasContentFn,then:function(){var P;return _.t("div",{class:Bw},(P=W.contentFn)==null?void 0:P.call(W))}})}}))},"qg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var m87=_.GM(function(W){var k=_.f().resolve(_.tZ),C=_.Pj(function(){return void k.closeSheet()});
return _.t("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":C},_.t(_.NI,{cond:function(){return!!W.header},
then:function(){return _.t("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},W.header())}}),_.t(_.NI,{cond:function(){return!!W.content},
then:function(){return _.t("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},W.content())}}),_.t(_.NI,{cond:function(){return!!W.footer},
then:function(){return _.t("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},W.footer())}}))},"rg");
m87.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var zi1=_.GM(function(W){W=W.data;var k={};return _.t("yt-sheet-view-model",{class:_.Li("yt-sheet-view-model-wiz",(k["yt-sheet-view-model-wiz--contextual"]=!0,k["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.m("web_disable_backdrop_filter"),k))},_.t(_.NI,{cond:W,then:function(C){return _.t(m87,{header:function(){return _.t(_.Ex,{data:function(){return C().header}},{panelHeaderViewModel:ao7})},
content:function(){return _.t(_.Ex,{data:function(){return C().content}},{listViewModel:function(n){return _.t(_.H$s,{data:n.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:CJt,miniAppScoreChallengeViewModel:nGi})},
footer:function(){return _.t(_.Ex,{data:function(){return C().footer}},{panelFooterViewModel:_.Qk})}})}}))},"sg");
zi1.idomCompat=!0;_.Gj(zi1,"yt-sheet-view-model",{props:{data:_.Ik}});var Vb6=_.GM(function(W){var k=function(){var C;return(C=W.data().enableDebuggingFeatures)!=null?C:!1};
return _.t("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.t(_.bI,{each:function(){var C;return(C=W.data().stickers)!=null?C:[]}},function(C){return _.t(D8B,{data:function(){return C},
debugMode:k})}))},"tg"),D8B=_.GM(function(W){var k=_.vp(W,{debugMode:!1}).debugMode,C=_.pq(function(){var x;
return(x=W.data().region)==null?void 0:x.w},0),n=_.pq(function(){var x;
return(x=W.data().region)==null?void 0:x.h},0),N=_.pq(function(){var x;
return(x=W.data().region)==null?void 0:x.x},0),B=_.pq(function(){var x;
return(x=W.data().region)==null?void 0:x.y},0),A=_.Pj(function(){var x=W.data().onTap;
x&&_.zj(x)}),w={};
return _.t("div",{class:_.Li("ytStoriesStickerLayerViewModelSticker",(w.ytStoriesStickerLayerViewModelDebugMode=k,w)),style:_.WJ({width:function(){return 100*C()+"%"},
height:function(){return 100*n()+"%"},
left:function(){return 100*N()+"%"},
top:function(){return 100*B()+"%"},
"flex-direction":function(){return ek7(W.data().flexDirection)},
"justify-content":function(){return sH6(W.data().justifyContent)},
"align-items":function(){return GK7(W.data().alignItems)}}),
"on:click":A},_.t(_.Ex,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(x){return _.t(_.zn,{data:x.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(x){return _.t(_.fX,{data:x.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ug");var cOS=_.GM(function(W){var k=function(){return W.data()},C=_.pq(function(){return k().backgroundColor},0),n=_.pq(function(){return k().actionButtons},[]),N=_.pq(function(){return k().stickerLayer},{}),B={},A=function(){var x,E;
return{animationRef:B,animationConfig:{autoplay:!1,loop:!1,path:(E=(x=k().foregroundAnimation)==null?void 0:x.url)!=null?E:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},w=function(){var x,E,a,X,d,V,c,M;
return{animationConfig:{autoplay:(V=(x=k().backgroundAnimation)==null?void 0:(E=x.settings)==null?void 0:E.autoplay)!=null?V:!1,loop:(c=(a=k().backgroundAnimation)==null?void 0:(X=a.settings)==null?void 0:X.loop)!=null?c:!1,path:(M=(d=k().backgroundAnimation)==null?void 0:d.url)!=null?M:"",name:"stories_item_background_animation"}}};
_.XM(function(){if(W.isVisible()){var x;(x=B.lottieEl)==null||x.play()}else{var E;(E=B.lottieEl)==null||E.stop()}});
return _.t("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.WJ({"background-color":function(){return _.Xi(C())+";"}})},_.t("div",{class:"ytStoriesItemViewModelAssetContent"},_.t(_.NI,{cond:function(){return!!k().backgroundAnimation},
then:function(){return _.t(_.jc,{data:w,animationName:function(){return w().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.t(_.NI,{cond:function(){return!!k().backgroundImage},
then:function(){return _.t(_.pi,{data:function(){return k().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.t(_.NI,{cond:function(){return!!k().foregroundAnimation},
then:function(){return _.t(_.jc,{data:A,animationName:function(){return A().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.t(_.NI,{cond:function(){return!!k().foregroundImage},
then:function(){return _.t(_.pi,{data:function(){return k().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.t("div",{class:"ytStoriesItemViewModelTopShadow"}),_.t(_.Ex,{data:function(){return N()}},{storiesStickerLayerViewModel:Vb6})),_.t("div",{class:"ytStoriesItemViewModelBottomShadow"},_.t("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Pj(W.pauseAutoNavigation)},_.t(_.bI,{each:n},function(x){return _.t(JOS,{data:function(){return x}})}))))},"vg"),JOS=_.GM(function(W){var k={};
return _.t("div",{class:_.Li("ytStoriesItemViewModelActionButton",(k.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},k))},_.t(_.Ex,{data:function(){return W.data().button}},{buttonViewModel:function(C){return _.t(_.zn,{data:C.data,
className:"ytStoriesItemViewModelButton"})}}))},"wg");_.Gj(_.GM(function(W){var k=_.b(_.h7(function(){var u;return(u=W.data().startIndex)!=null?u:0})),C=k.next().value,n=k.next().value;
k=_.b(_.kw(!1,void 0,"klmjc"));var N=k.next().value,B=k.next().value,A=function(){var u;return(u=W.data().storyItems)!=null?u:[]},w=function(){return W.data().dismissButton},x=function(){var u;
return _.z((u=_.z(w(),_.aS))==null?void 0:u.onTap,_.XZ)},E=_.yE(),a,X=function(){var u;
(u=a)==null||u.cancel();a=d(C()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});a.onfinish=function(){d(C()).style.width="100%";var h=_.z(A()[C()],q17),L,Bw;h!=null&&h.foregroundAnimation&&((h==null?0:(L=h.foregroundAnimation)==null?0:L.url)||(h==null?0:(Bw=h.foregroundAnimation)==null?0:Bw.payload))||(C()!==A().length-1?(n(C()+1),X()):x()&&_.dy(x()))}},d=function(u){return E.value.children[u].children[0]},V=function(){for(var u=0;u<C();u++)d(u).style.width="100%"};
k=_.Pj(function(){N()?B(!1):(C()===A().length-1&&x()&&_.dy(x()),d(C()).style.width="100%",C()!==A().length-1&&(n(C()+1),X()))});
var c=_.Pj(function(){N()?B(!1):(d(C()).style.width="0%",C()!==0?n(C()-1):n(C()),X())}),M=function(){B(!0)},p=function(){d(C()).style.width="100%";
C()!==A().length-1?(n(C()+1),X()):x()&&_.dy(x())},e=_.Pj(function(){var u;
(u=a)==null||u.pause()});
_.XM(function(){if(N()){var u;(u=a)==null||u.pause()}else{var h;(h=a)==null||h.play()}});
_.XM(function(){V();C()===W.data().startIndex&&X()});
_.Ee(function(){V();X()});
return _.t("yt-stories-viewer-view-model",{class:_.Li("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.t("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.t("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":c,"on:mousedown":e}),_.t("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":k,"on:mousedown":e})),_.t(_.Ex,{data:A},{storiesItemViewModel:function(u,h){var L=u.data;return _.t(_.NI,{cond:function(){return Math.abs(h()-
C())<=1},
then:function(){var Bw={};return _.t("div",{class:_.Li("ytStoriesViewerViewModelStoryItem",(Bw.ytStoriesViewerViewModelHiddenStoryItem=function(){return h()!==C()},Bw))},_.t(cOS,{data:L,
pauseAutoNavigation:M,navigateToNextItemOnLottieComplete:p,isVisible:function(){return h()===C()}}))}})}}),_.t("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:E},_.t(_.bI,{each:A},function(){return _.t("div",{class:"ytStoriesViewerViewModelProgressBar"},_.t("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.t("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.t(_.Ex,{data:w},{buttonViewModel:_.zn})))},"xg"),"yt-stories-viewer-view-model",{props:{data:_.Ik}});_.Gj(_.GM(function(W){var k=W.data;var C=_.yE(),n=[];return _.t("yt-gen-ai-feedback-form-view-model",{el:C,class:"ytGenAiFeedbackFormViewModelHost"},_.t(_.Ya,{text:function(){return k().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.t("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.t(_.Ex,{data:function(){return k().feedbackChips}},{toggleButtonViewModel:function(N){var B=N.data;
return _.t(_.fX,{data:B,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(A){var w=B();w=_.z(w,_.Xo);w=_.z(w==null?void 0:w.defaultButtonViewModel,_.aS).trackingParams;A?n.push(w):(A=n.indexOf(w),A>-1&&n.splice(A,1))}})}})),_.t(_.Ya,{text:function(){return k().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.t("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.t(_.Ex,{data:function(){return k().submitButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){yut(C.value,n,k().uniqueId)}})}}),_.t(_.Ex,{data:function(){return k().moreFeedbackButton}},{buttonViewModel:function(N){return _.t(_.zn,{data:N.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"yg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Ik},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var xE=function(){return _.R.apply(this,arguments)||this};
_.D(xE,_.R);xE.prototype.created=function(){lTT(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(FcC);var W=_.f().resolve(_.Soi);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.f().resolve(_.tZ))W.container=this.ytPopupContainerBehavior;if(W=_.f().resolve(_.E1)){var k=this.ytPopupContainerBehavior;W.containerWasInjected?_.zJ(Error("cj")):W.container=k}};
xE.prototype.ensurePopupBelowPlayer=function(W,k){var C=_.f().resolve(_.qI(_.yF));if(!C||!C.isOnWatch()||!_.Zf())return!1;C=C.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Nw().height>C+this.getPopupHeight(W,k)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=C+"px",W.style.bottom="auto");return!0};
xE.prototype.getPopupHeight=function(W,k){k&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){k=0;var C=W.clientHeight,n=window.getComputedStyle(W);k+=parseInt(n.marginTop,10);k+=parseInt(n.marginBottom,10);W.cachedPopupHeight=C+k}return W.cachedPopupHeight};
xE.prototype.getElement=function(W){return document.createElement(W)};
var IoC=xE;_.U([_.v(Pm7.YtPopupContainerBehavior),_.O("design:type",Object)],IoC.prototype,"ytPopupContainerBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],IoC.prototype,"ytComponentBehavior",void 0);IoC=_.U([_.T({disableElementRegistration:!0,is:"ytd-popup-container"})],IoC);
_.q(IoC,"ytd-popup-container",function(){if(iQB!==void 0)return iQB;var W=document.createElement("template");_.J(W,"\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");W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);return iQB=W},{mode:1});var S8u;var Mb7={};Mb7.YtLogYpcFlowCommandsBehavior=[_.$D.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(W){_.z(W,BlA)&&(W=_.z(W,BlA))&&(W.serializedTransactionFlowLoggingParams?_.q1p(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.Xd("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.Xd("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.Xd("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&K0Z("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.Xd("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Xd("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.z(W,Ym1)&&(W=_.z(W,Ym1),W.serializedTransactionFlowLoggingParams?_.uCm(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.Xd("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.Xd("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.Xd("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&K0Z("YPC_EVENT_TYPE_CANCEL",W))}}];var Q2t={};Q2t.YtCancelRecurrenceBehavior=[_.dh.YtComponentBehavior,_.Kx8,{attached:function(){var W=this;rCi(this,function(k,C){return W.ypcCancelRecurrenceHandler(k,C)})},
ypcCancelRecurrenceHandler:function(W,k){var C=this;if(!k||!k.ypcCancelRecurrenceEndpoint)return!1;if(!k.ypcCancelRecurrenceEndpoint.params)return _.I4(Error("ul")),!0;_.oZ(this.hostElement);var n=_.cJ.instance,N=_.f().resolve(_.qI(_.Ah));n&&_.Ih(n,k)?_.Sr(n,k).then(function(B){C.ypcCancelRecurrenceSuccess_(W,k,{data:B})},function(B){C.ypcCancelRecurrenceFailure_(W,k,B)}).thenCatch(function(){_.I4(Error("vl"))}):N?N.requestDataForServiceEndpoint(k).then(function(B){C.ypcCancelRecurrenceSuccess_(W,
k,B)},function(B){C.ypcCancelRecurrenceFailure_(W,k,B)}).thenCatch(function(){_.I4(Error("vl"))}):_.I4(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,k,C){_.i2(this.hostElement);C.data||(C={data:C});C.data&&C.data.actions&&_.CB(this.hostElement,C.data.actions,this.hostElement);C.data.messageRenderer?Wk7(k.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(k=k.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Xd("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",k);_.Pe(W,"yt-service-request-completed",C)},
ypcCancelRecurrenceFailure_:function(W,k,C){_.i2(this.hostElement);Wk7(k.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Pe(W,"yt-service-request-error",{error:C,params:[W,k]})}}];var pUT=function(W,k){_.Ww.call(this,k)};
_.D(pUT,Vzi);var vG7={};vG7.YtCompleteTransactionBehavior=[_.dh.YtComponentBehavior,_.Kx8,{attached:function(){var W=this;rCi(this,function(k,C){return W.ypcCompleteTransactionHandler(k,C)})},
completeTransaction:function(W,k){var C=this;k={payments_payload:window.btoa(k.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var n=_.f().resolve(_.Ah),N=W.data.completeTransactionEndpoint,B=this.get("ypcCompleteTransactionEndpoint.actions",N);B&&_.CB(this.hostElement,B,this.hostElement);return(B=_.cJ.instance)&&_.Ih(B,N)?_.Sr(B,N,k).then(function(A){return!A||(A==null?0:A.error)?(A=C.get("data.serializedTransactionFlowLoggingParams",W),_.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
A))):{data:A}}).then(function(A){return C.handleCompleteTransactionSuccess_(A,W)},function(){return C.handleCompleteTransactionFailure_(W)}):n.requestDataForServiceEndpoint(N,k).then(function(A){return C.handleCompleteTransactionSuccess_(A,W)},function(){return C.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,k){W.data||(W={data:W});if(W.data.messageRenderer)return _.eh(new pUT(W.data.messageRenderer));if(W.data.trackingParams){var C=_.VM(),n=_.DH();C&&n&&_.sr(C,n,_.Yf(W.data.trackingParams))}k=this.get("data.serializedTransactionFlowLoggingParams",k);hxS(k);return _.nB(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.Qi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,k){var C=this;if(!k.ypcCompleteTransactionEndpoint)return!1;if(!k.ypcCompleteTransactionEndpoint.transactionParams)return _.I4(Error("xl")),!0;k.ypcCompleteTransactionEndpoint&&k.ypcCompleteTransactionEndpoint.gtmData&&_.BR(k.ypcCompleteTransactionEndpoint.gtmData);var n=_.f().resolve(_.qI(_.Ah));if(n){_.oZ(this.hostElement);var N=_.cJ.instance;N&&_.Ih(N,k)?_.Sr(N,k).then(function(B){return!B||(B==null?0:B.error)?(B=C.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
k),_.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B))):{data:B}}).then(function(B){_.Pe(W,"yt-service-request-completed");
C.ypcCompleteTransactionSuccess_(k,B)},function(){return C.ypcCompleteTransactionFailure_(k)}):n.requestDataForServiceEndpoint(k).then(function(B){_.Pe(W,"yt-service-request-completed");
C.ypcCompleteTransactionSuccess_(k,B)},function(){return C.ypcCompleteTransactionFailure_(k)})}return!0},
ypcCompleteTransactionSuccess_:function(W,k){_.i2(this.hostElement);k.data||(k={data:k});_.KY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);k.data.messageRenderer||k.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.BR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));k.data.actions&&(W=Bv7(k.data.actions),k=br$(k.data.actions),W.length&&_.kQ(this.hostElement,
W),k.length&&_.CB(this.hostElement,k,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.i2(this.hostElement);_.KY(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,k,C){if(k=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",k))k={serializedTransactionFlowLoggingParams:k},C&&(k.errorType=C),_.a9(W,k),_.fM()}}];var ei7={};ei7.YtEndpointHandlerWithYpcBehavior=[_.Kx8,_.$D.YtActionHandlerBehavior,[{openWalletDialog:function(W,k,C,n,N,B,A){var w=this,x=_.ME();k=k.replace(/-/g,"+").replace(/_/g,"/");var E=_.tQ().get("hl");_.VK3(_.hf(_.pO),k,x.resolve,N,function(a){B&&B();x.reject(a)},E,function(a){return w.onServerBackendAnalyticEvent_(W,C,a)},this.onDialogClose_.bind(this),n,A);
return x.promise},
openFixFlowDialog:function(W,k,C,n){W=W.replace(/-/g,"+").replace(/_/g,"/");_.hf(_.pO).openFixFlowDialog(W,k,C,n)},
onDialogClose_:function(){_.KY(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,k,C){W.fire("yt-commerce-action-init-done");k&&_.kQ(this.hostElement,[k,{backend_analytics:C}])}}],
_.Ll.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,k){W=this.get("data.nativeFlowEndpoint",k);k=this.get("data.fallbackEndpoint",k);W?_.kQ(this.hostElement,[W]):k&&_.Pe(this.hostElement,"yt-navigate",{endpoint:k})}}],
Q2t.YtCancelRecurrenceBehavior,vG7.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 W=this;rCi(this,function(k,C,n){return W.handleYPCEndpoint(k,C,n)});
this.ypcRegisterActionMapJobId_=_.wI(_.aM,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.aM.cancelJob(this.ypcRegisterActionMapJobId_);_.wI(_.aM,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,k,C){var n=k.ypcGetCartEndpoint;if(n){_.JQ("commerce_transaction");var N=n.gtmId;N&&_.YD(N);(n=n.gtmData)&&_.BR(n)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",k)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,k),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",k)!=null?(this.handleYPCFixInstrumentEndpoint_(W,k),!0):k.ypcPauseSubscriptionCommand?(UJu(this.hostElement,W,k,C),
!0):k.ypcResumeSubscriptionCommand?(jHt(this.hostElement,W,k),!0):k.getPaymentInstrumentsParamsCommand?(T2Z(this.hostElement,W,k),!0):k.ypcHandleTransactionEndpoint?(ooE(this.hostElement,W,k,C),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,k){var C=this;_.cN("ttcr",void 0,"commerce_transaction");k=k.ypcGetCartEndpoint;var n=k.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,N=n.encryptedPurchaseParams,B=n.serializedTransactionFlowLoggingParams,A=n.serializedPaymentsClientParams,w=this.createGetCartResponseFromParams_(n,k.offerParams,B);this.changeButtonState(W,!0);_.aa(this.openWalletDialog(W,N,n.ypcLogWalletAnalyticDataEndpoint,B,function(){C.changeButtonState(W,!1)},function(){C.changeButtonState(W,
!1)},A).then(function(x){return C.handleBuyFlowCompleteCallback_(W,w,x)},function(){return C.handleOnLoadError(w)}).then(function(x){return void C.handlePostPurchaseSuccess_(W,w,x)},function(x){return void C.handlePostPurchaseError_(x)}),function(){C.changeButtonState(W,!1);
W instanceof Element&&_.Pe(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,k,C){var n=W.completeTransactionEndpoint,N=W.handleTransactionEndpoint;k={data:{offerParams:window.btoa(k),serializedTransactionFlowLoggingParams:C}};N?k.data.handleTransactionEndpoint=N:k.data.completeTransactionEndpoint=n;W.onCartDismissCommand&&(k.data.onCartDismissCommand=W.onCartDismissCommand);return k},
onGetCartServiceRequestCompleted_:function(W,k){var C=this,n=W.target;if(k&&k.data&&k.data.messageRenderer)_.i2(this.hostElement),this.handleMessageRenderer_(k.data.messageRenderer),this.changeButtonState(n,!1);else{var N=this.get("data.encryptedPurchaseParams",k),B=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",k),A=this.get("data.ypcLogWalletAnalyticDataEndpoint",k),w=this.get("data.serializedPaymentsClientParams",k),x=this.getLoggingParams_(k);if(x||N||B)W.stopPropagation(),_.cN("ttcr",
void 0,"commerce_transaction"),N||_.i2(this.hostElement),this.changeButtonState(n,!1),B?_.KY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.DE("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:B}}},this]):N&&(this.changeButtonState(n,!0),W=null,W=this.openWalletDialog(n,N,A,x,function(){_.i2(C.hostElement);C.changeButtonState(n,!1)},function(){_.i2(C.hostElement);
C.changeButtonState(n,!1)},w),_.aa(W.then(function(E){return C.handleBuyFlowCompleteCallback_(n,k,E)},function(){return C.handleOnLoadError(k)}).then(function(E){return C.handlePostPurchaseSuccess_(n,k,E)},function(E){return C.handlePostPurchaseError_(E)}),function(){C.changeButtonState(n,!1);
_.Pe(n,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,k){k&&k.endpoint&&k.endpoint.ypcGetCartEndpoint&&!k.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",k.endpoint.ypcGetCartEndpoint)&&_.CB(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",k.endpoint.ypcGetCartEndpoint)],W.target),_.oZ(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,k){if(k&&k.params&&k.params.length){k=_.b(k.params);for(var C=k.next();!C.done;C=k.next())if((C=C.value)&&C.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",C.ypcGetCartEndpoint)&&_.CB(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",C.ypcGetCartEndpoint)],W.target);_.i2(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,k,C){var n=C.integratorData;return n==null||n===""||C.error!=null?(n=this.getLoggingParams_(k),String(C.error)==="-1"?(k.data.onCartDismissCommand&&_.CB(this.hostElement,[k.data.onCartDismissCommand],W),_.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n,!0))):_.eh(new O_("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n))):k.data.handleTransactionEndpoint?i0C(this.hostElement,k.data.handleTransactionEndpoint,{payments_payload:n,funds_guarantee_callback_client_data:C.integratorClientCallbackData}):
this.completeTransaction(k,C)},
handlePostPurchaseSuccess_:function(W,k,C){k=C.data;var n=!1,N,B;if(k&&((N=k.command)==null?0:(B=N.commandExecutorCommand)==null?0:B.commands)){var A,w;N=(A=k.command)==null?void 0:(w=A.commandExecutorCommand)==null?void 0:w.commands;for(A=0;A<N.length;A++)if(_.z(N[A],_.a18)){n=!0;break}}n||(k&&k.gtmDatas&&k.gtmDatas.length?_.BR(k.gtmDatas[0]):_.BR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));C.data&&C.data.actions&&(k=Bv7(C.data.actions),C=br$(C.data.actions),k.length&&
_.kQ(this.hostElement,k),C.length&&_.CB(this.hostElement,C,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.dI(Error("zl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.eh(new O_("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var k=_.dA(W,"renderer"),C=_.DE("openPopupConfig");k==="confirmDialogRenderer"&&C&&_.KY(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:C.popupTypeMap[k],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,k){var C=this,n=k.ypcFixInstrumentEndpoint;k=n.encryptedFixInstrumentParameters;this.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(k,function(N,B){C.onFixFlowCompleteCallback_(n,N,B)},function(){return C.changeButtonState(W,!1)},function(){C.changeButtonState(W,!1);
C.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,k,C){var n=_.QK("payments.business.integration.scenario.FixInstrument");if(k==n.IntegratorCallbackType.ON_COMPLETE){k="FIX_FOP_EVENT_TYPE_CANCEL";var N=null;C.error!=null?C.error!=n.OnCompleteCallbackError.USER_CANCELLED&&(_.CB(this.hostElement,[W.errorAction],this.hostElement),k="FIX_FOP_EVENT_TYPE_FAILURE",N="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.CB(this.hostElement,[W.successAction],this.hostElement),k="FIX_FOP_EVENT_TYPE_SUCCESS");_.CB(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,k,N)}},
logFixFopEvent_:function(W,k,C){(W=W.serializedFixFopLoggingParams)?(k={eventType:k,serializedFixFopLoggingParams:W},C!=null&&(k.errorType=C),_.a9("fixFopFlow",k),_.fM()):_.dI(Error("Al"))},
changeButtonState:function(W,k){_.m("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=k)}}];var s2S=function(W){this.JSC$28496_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":ruu,"yt-feedback-dialog-requested":H0t,"yt-signal-action-help":go6,"yt-signal-action-send-feedback":P1E,"yt-send-feedback-action":hkB,"yt-user-feedback-endpoint":WP1};_.e6(_.vx.getInstance(),this.feedbackCollectorActionMap,this.JSC$28496_clientRoot)},GVu;var yOY=function(W){this.JSC$28501_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":kq$.bind(null,this.JSC$28501_clientRoot),"yt-signal-action-delete-all-downloads":nTS,"yt-signal-action-delete-download":Nm7,"yt-signal-action-delete-playlist-download":BmT,"yt-signal-action-install-pwa":luA,"yt-signal-action-refresh-downloads":wS7,"yt-offline-video-endpoint":ETT,"yt-offline-playlist-endpoint":XS6,"yt-update-local-app-setting-command":deE,"yt-offline-orchestration-action-command":zOS,
"yt-signal-action-undo-delete-download":Abi,"yt-local-watch-history-command":JbE};_.e6(_.vx.getInstance(),this.downloadManagerActionMap,this.JSC$28501_clientRoot);_.cl.instance=new _.cl},$8E;var Z9i=function(){var W=_.R.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.D(Z9i,_.R);_.Y=Z9i.prototype;
_.Y.ready=function(){_.m("polymer_enable_mdx")&&(bVu({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.m("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.m("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.m("enable_cast_short_lived_lounge_token")}),_.jk("yt-remote-connection-change",this.handleConnectionChange_,this),_.jk("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Ec$())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.Y.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.Y.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=w5i(),!W&&Ost()&&LEZ()&&(W={key:"cast-selector-receiver",name:LEZ()}),W=W.name):W=null;this.receiverName=W;_.LU(this.remoteApi_);(this.remoteApi_=Ec$())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.Y.handleReceiverAvailabilityChange_=function(){var W=Fp6();Ost()&&_.h4("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.Y.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,k=this.currentListId_,C=PU(this.remoteApi_);this.currentVideoId_=C.videoId;this.currentListId_=C.listId;this.currentVideoId_&&_.KY(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.m("polymer_enable_mdx_queue")?this.currentListId_:null,W,k])};
_.Y.handleAddToQueueAction_=function(W){W=_.z(W,uCi);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.Y.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.Y.handleInsertInQueueAction_=function(W){W=_.z(W,UY6);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17383_insertVideo(W.videoId)};
_.Y.handleRemoveFromQueueAction_=function(W){W=_.z(W,OuZ);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17383_removeVideo(W.videoId)};
var lC=Z9i;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z(),_.O("design:type",Object)],lC.prototype,"appId",void 0);_.U([_.Z(),_.O("design:type",Boolean)],lC.prototype,"mdxConnected",void 0);_.U([_.Z(),_.O("design:type",Boolean)],lC.prototype,"receiverAvailable",void 0);_.U([_.Z(),_.O("design:type",Object)],lC.prototype,"receiverName",void 0);_.U([_.Z(),_.O("design:type",Object)],lC.prototype,"currentVideoId_",void 0);
_.U([_.Z(),_.O("design:type",Object)],lC.prototype,"currentListId_",void 0);lC=_.U([_.l0({is:"yt-mdx-manager",disableElementRegistration:!0})],lC);_.q(lC,"yt-mdx-manager",void 0,{mode:2});var Ri7;var oGS;var i9E=function(){var W=_.R.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$18623_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.D(i9E,_.R);_.Y=i9E.prototype;_.Y.created=function(){lTT(2200)};
_.Y.detached=function(){this.observer_&&this.observer_.disconnect()};
_.Y.open=function(W,k){var C=this,n=W.serializedYpcFamilyCreateLoggingParams;this.JSC$18623_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,n),3E4);k&&(this.onReadyCallback_=k);var N=_.S(this.hostElement).querySelector("#unicorn-iframe");n&&n&&PVS("ypcFamilyCreateFlowStarted",n);_.xVK("family_creation",function(){var B=_.QK("gapi.family_creation.render");_.QK("gapi.config.update")("iframes/family_creation/url",C.getFamilyCreationUrlWithUnicornParams_());var A=3;W.appId&&W.appId in
C.APP_IDS&&(A=C.APP_IDS[W.appId]);A={authUser:_.DE("SESSION_INDEX")||0,clientId:A,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.DE("HL"),initialflow:[4,5,6,7],m:C.isMobile?1:0,onFlowComplete:C.onUnicornFlowComplete_.bind(C,W.postFlowSuccessEndpoint,n),onError:C.onUnicornFlowError_.bind(C,W.postFlowErrorEndpoint,n),onReady:C.onUnicornFlowReady_.bind(C,W.referencePcidParams)};B(N,A)})};
_.Y.close=function(){_.S(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.Y.onUnicornFlowComplete_=function(W,k){this.close();k&&k&&PVS("ypcFamilyCreateFlowSucceeded",k);_.Pe(this.hostElement,"yt-navigate",{endpoint:W})};
_.Y.onUnicornFlowError_=function(W,k){this.close();k&&PVS("ypcFamilyCreateFlowCancelled",k);_.Pe(this.hostElement,"yt-navigate",{endpoint:W})};
_.Y.onUnicornFlowReady_=function(W){var k=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.QK("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.S(k.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.S(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.S(this.hostElement).querySelector("#dialog").open()};
_.Y.getFamilyCreationUrlWithUnicornParams_=function(){return _.DE("YTR_FAMILY_CREATION_URL")};
_.Y.getCurrentUrl_=function(){return document.location.href};
_.Y.abort_=function(W,k){this.clearTimeout_();this.onUnicornFlowError_(W,k)};
_.Y.clearTimeout_=function(){clearTimeout(this.JSC$18623_timeoutId_)};
var t1=i9E;_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],t1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],t1.prototype,"isMobile",void 0);_.U([_.Z(),_.O("design:type",Object)],t1.prototype,"onReadyCallback_",void 0);_.U([_.Z(),_.O("design:type",Object)],t1.prototype,"observer_",void 0);t1=_.U([_.l0({is:"yt-create-family-dialog",disableElementRegistration:!0})],t1);
_.q(t1,"yt-create-family-dialog",function(){if(oGS===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);var k=W.content,C=k.insertBefore;Ri7===void 0&&(Ri7=document.createElement("template"));var n=Ri7;C.call(k,n.content.cloneNode(!0),W.content.firstChild);oGS=W}W=oGS;return W},{mode:2});var Tf1;var q81;var ux1=function(){var W=_.R.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.D(ux1,_.R);_.Y=ux1.prototype;_.Y.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.Y.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));_.f().addProvider({provide:LpT,useValue:this})};
_.Y.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.Y.finish=function(){var W=this;this.progress=this.MAX_PROGESS;cbY(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.Y.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.oq.Object.defineProperties(ux1.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var k="scaleX("+W/this.MAX_PROGESS+")",C=_.S(this.hostElement).querySelector("#progress").style;C.transform=k;C.webkitTransform=k;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
var U8Y=ux1;_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],U8Y.prototype,"ytComponentBehavior",void 0);U8Y=_.U([_.l0({is:"yt-page-navigation-progress",disableElementRegistration:!0})],U8Y);
_.q(U8Y,"yt-page-navigation-progress",function(){if(q81===void 0){var W=document.createElement("template");_.J(W,'\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');W.content.insertBefore(_.g().content.cloneNode(!0),
W.content.firstChild);var k=W.content,C=k.insertBefore;Tf1===void 0&&(Tf1=document.createElement("template"));var n=Tf1;C.call(k,n.content.cloneNode(!0),W.content.firstChild);q81=W}W=q81;return W},{mode:2});var O9T={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"},LCS={"font-size":"12px","font-style":"italic"},j2Y={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.QaE=function(){return _.F(function(W){_.ab(W)})};_.Gj(_.GM(function(){var W=_.X8(_.Hw4);return _.t("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var k;return(k=W())==null?void 0:k.announcement})},"zg"),"yt-ephemeral-actions");var jaA=new Map;var vf7=function(W,k){var C=this;this.handleError=W;this.logEventInternal=k;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){C.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
vf7.prototype.logError=function(W){this.handleError(W)};
vf7.prototype.logEvent=function(W,k){switch(W){case "IDB_DATA_CORRUPTED":_.m("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",k);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",k);break;case "IS_SUPPORTED_COMPLETED":_.m("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",k);break;case "QUOTA_EXCEEDED":H91(this,k);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",k);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},k,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var H91=function(W,k){_.hX.getInstance().estimate().then(function(C){C=Object.assign({},k,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:rbu(C==null?void 0:C.usage),deviceStorageQuotaMbytes:rbu(C==null?void 0:C.quota)});W.logEventInternal("idbQuotaExceeded",C)})};var rO6=function(){var W=_.R.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.deprecateFullerscreenUi=_.m("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.m("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.m("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.m("web_masthead_hidden_focus_within_killswitch");W.ephemeralActionsEnabled=_.m("web_ephemeral_actions");W.scrollAtTop=!0;W.guideScrollTop=0;W.isTheaterModeSession=_.cv("START_IN_THEATER_MODE");
W.isFullWindowSession=_.cv("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.Qw;W.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};W.dynamicActionMap={"yt-run-attestation-command":function(k){var C=_.bU7.instance,n=_.z(k,_.WPI);return n?_.m("use_rta_manager_for_async")&&
az1()?k$C(C,n,k.clickTrackingParams):Wfi(C,n,k.clickTrackingParams):_.eh(Error("mi"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.D(rO6,_.R);_.Y=rO6.prototype;_.Y.created=function(){var W=_.f();_.m("kevlar_clear_duplicate_pref_cookie")&&_.wI(_.aM,function(){var k=_.nH.get("PREF");k&&!/f\d=/.test(k)&&(k=_.LS("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=k?"PREF=null;domain="+k+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.m("gzip_gel_with_worker")&&_.Jvw();_.m("jspb_serialize_with_worker")&&TyS();_.m("web_worker_availability_check")&&HxZ();_.m("nwl_init_killswitch")||ofi().then(function(){_.aM.addLowPriorityJob(KE6)});
this.pageManagerAttachedPromise=_.ME();this.ytdAppBehavior.loadDepsPromise=_.EY([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Ox(this.onThrottledScroll,200,this);_.m("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=W.resolve(_.HV);this.boundOnTouchStart=this.onTouchStart.bind(this);e8S();DVu=!!_.QK("ytappsettings.initialized");nf=_.QK("ytappsettings.previousValue");exE=_.QK("ytappsettings.previousSnapshotTime");DVu||
(DVu=!0,shY());NvA();YME();_.z3("DEFERRED_DETACH",_.m("kevlar_tuner_should_defer_detach"));_.z3("REUSE_COMPONENTS",!0);_.z3("STAMPER_STABLE_LIST",!0);_.z3("SCHEDULED_LAZY_LIST",!0);_.z3("openPopupConfig",Azi);_.z3("useClickHandler",!0);_.m("kevlar_shell_cleanup")&&_.aM.addLowPriorityJob(zxi.bind(this,_.NX.caches));_.cv("IS_SHELL_LOAD")&&_.Vb({shellStartupDurationMs:Math.round((0,_.oX)()-_.fB())});sat(this.networkStatusManager);_.m("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Iu1(O9T)),
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!",Iu1(LCS)),console.log("%cVisit http://go/join-youtube-web to apply today.",Iu1(j2Y)));_.gQS(W.resolve(_.rR),1E3)};
_.Y.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=P6i();W&&!_.m("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.Y.attached=function(){var W=this;_.Ir().processSignal("ci");_.m("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.ozC?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.bH(_.ImX(),"SUCCESS");this.updateIconSet();_.He(this.guideInnerContent,!1);_.gF().initVisibilityObserver();this.guideService.guideElement=this.guide;var k=document.createElement("ytd-miniplayer"),C=_.S(this.hostElement).querySelector("#content");
_.S(this.hostElement).insertBefore(k,C);_.Ir().processSignal("ma");_.f().resolve(_.eq).init(k);_.cv("IS_SHELL_LOAD")&&(C=document.createElement("ytd-network-status-banner"),_.S(this.hostElement).insertBefore(C,k));_.m("kevlar_right_click_on_lockups")&&_.eB._onCaptureClick&&document.addEventListener("contextmenu",_.eB._onCaptureClick.bind(_.eB),!0);var n=function(){var N=_.eV("yt-page-navigation-progress");_.S(W.hostElement).appendChild(N)};
setTimeout(function(){_.Ir().parkOrScheduleJob(n,0,"eocs",16)},0);
_.m("service_worker_push_enabled")&&_.wI(_.aM,gaB);_.e6(_.vx.getInstance(),this.dynamicActionMap,this.hostElement);_.Pe(this.hostElement,"ytd-app-attached");_.Ir().processSignal("aa");tr1(this.hostElement);_.$g("gapi.load",_.xVK);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.wI(_.aM,
function(){var N=document.createElement("ytd-video-preview");_.S(_.S(W.hostElement).querySelector("#video-preview")).appendChild(N)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.wI(_.aM,function(){pSi();W.registerViewTransitionTasks()});
if(_.Jh()&&this.isAppDarkTheme()!==_.D6())this.onDarkModeToggledAction();else k=_.Vi()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==k&&(_.m("enable_dark_theme_only_on_shorts")?_.zy(_.m("enable_dark_theme_only_on_shorts_control")?window.location.href:_.yK(window.location.href,{theme:"dark"})):_.zJ(new _.AM("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(lgC=new xhC(this.hostElement)),$8E=new yOY(this.hostElement),GVu=new s2S(this.hostElement),eK$=new vYT(this.hostElement)};
_.Y.getThemeSettingsToLog=function(){var W=_.Vi()==="USER_INTERFACE_THEME_DARK";W=_.Jh()?_.D6()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.Yg()}};
_.Y.detached=function(){_.ra(this.guideInnerContent);_.aM.cancelJob(KQ);KQ=0;_.aM.cancelJob(WA);WA=0;_.Ziw(lfB);lfB.length=0;F0$=_.Ve2=null;_.gF().dispose();_.m("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.sK(_.vx.getInstance(),lgC.playlistHandlerActionMap,lgC.JSC$28196_clientRoot);_.sK(_.vx.getInstance(),$8E.downloadManagerActionMap,$8E.JSC$28501_clientRoot);_.sK(_.vx.getInstance(),GVu.feedbackCollectorActionMap,GVu.JSC$28496_clientRoot);
for(var W=_.b(eK$.eventListeners),k=W.next();!k.done;k=W.next()){var C=_.b(k.value);k=C.next().value;C=C.next().value;C=_.b(C);for(var n=C.next();!n.done;n=C.next()){var N=_.b(n.value);n=N.next().value;N=N.next().value;k.removeEventListener(n,N)}}_.sK(_.vx.getInstance(),eK$.autonavPauseActionMap,eK$.JSC$17568_clientRoot)};
_.Y.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.tQ().getFlag(186)};
_.Y.computeIsInlinePreviewEnabled=function(W,k,C){return!C&&_.LI1({miniplayerIsActive:W,miniplayerPlaybackState:k})};
_.Y.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.jo({type:"SET_FROSTED_GLASS_MODE",payload:!_.m("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"}))};
_.Y.computeIsFrostedGlassDisabled=function(W,k,C,n){return W||k||C||n&&_.m("web_frosted_glass_disable_watch")};
_.Y.computeIsHomePage=function(W,k){if(!W||k==null||!k.endpoint)return!1;var C;return((C=_.z(k.endpoint,_.kZ))==null?void 0:C.browseId)==="FEwhat_to_watch"};
_.Y.updateIsChannelOrPlaylistPage=function(){if(_.m("web_frosted_glass")){var W,k,C=(k=(W=_.f().resolve(_.qI(_.yF)))==null?void 0:W.getCurrentPage())==null?void 0:k.pageSubtype;this.isChannelOrPlaylistPage=C?["channel","channels","playlist"].includes(C):!1}};
_.Y.scheduleFrostedGlassInitialization=function(){var W=this;_.m("web_frosted_glass")&&_.Ir().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.dV(["eocs",
"cr"]),300)};
_.Y.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.wZI(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.jo({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.jo({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.Y.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(xVt(!0))};
_.Y.onYtSignalActionRequestPersistentStorage=function(){if(!_.m("request_persistent_storage_killswitch")){var W=_.f().resolve(_.qoB);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=SOB())}};
_.Y.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.Y.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.Y.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(xVt(!1))};
_.Y.initIconDefs=function(W,k,C){var n=document.createElement("iron-iconset-svg");n.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");n.appendChild(W);W.appendChild(k);if(C)for(var N in C)n[N]=C[N];document.body.appendChild(n);return n};
_.Y.onWindowResized=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.z3A.getInstance();W.documentWidth_=document.body.clientWidth;MTE(W)};
_.Y.onWindowScrolled=function(){var W=_.f().resolve(_.yF).getCurrentPage();if(W!=null&&W.getScrollTop){var k=this.ytdReduxBehavior,C=k.dispatch;W=W.getScrollTop()<=0;C.call(k,_.jo({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.Y.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.f().resolve(_.yF).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.hA(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.Y.getCurrentPageScrollableElementType=function(){var W=_.f().resolve(_.yF).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.Y.observeGuideVisibility=function(){var W=_.z3A.getInstance(),k=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=k;MTE(W)};
_.Y.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.KY(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.aUC.getInstance(),_.or.set(W.eduDismissAction.key+"-dismissed",!0))};
_.Y.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var k=_.aUC.getInstance();W=W.eduImpressionAction.key;k.JSC$10752_eduDisplayedThisLoad_[_.ECb[W].setKey||W]=!0;_.or.set(W+"-impression",parseInt(_.or.get(W+"-impression")||0,10)+1)}};
_.Y.onYtSignalActionConfirmMentionsEdu=function(){_.KY(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.q$.getInstance();_.TR.set("edu-dismissed",!0)};
_.Y.onYtSignalActionRecordMentionsEduImpression=function(){_.q$.getInstance();var W=_.TR.set,k=parseInt(_.TR.get("edu-impressions"),10);W.call(_.TR,"edu-impressions",(isFinite(k)?k:0)+1)};
_.Y.onYtPageManagerAttached=function(W){var k;((k=_.eI(W))==null?void 0:k.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.Y.onInvokeInstrumentManagerAction=function(W,k){hO7(k,W)};
_.Y.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var k=_.Ty(W),C=k.querySelector("g#yt-logo-updated");C&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(C.cloneNode(!0)),(k=k.querySelector("g#yt-logo-red-updated"))&&W.appendChild(k.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.Y.updateMastheadData=function(){var W=this,k,C,n,N;return _.F(function(B){if(B.nextAddress==1){k=W.data;C=W.hostElement.querySelector("#masthead");if(!C)return B.return();_.ZR(W,function(){C.data=W.topbarData});
return W.get("response.topbar",k)&&W.get("response.topbar.responseContext.maxAgeSeconds",k)!==0?(n=_.f().resolve(_.p1))?_.l(B,n(),7):W.ephemeralResponseStore?_.l(B,W.ephemeralResponseStore.put("service:topbar:fallback",new _.rB({innertubeResponse:W.get("response.topbar",k)})),0):B.jumpTo(0):B.jumpTo(0)}return(N=B.yieldResult)?_.l(B,N.put("service:topbar:fallback",new _.rB({innertubeResponse:W.get("response.topbar",k)})),0):B.jumpTo(0)})};
_.Y.computeTopbarData=function(W){if(!W)return null;var k;return this.isShortsPage&&this.topbarData&&!_.z((k=W.response)==null?void 0:k.topbar,pr7)?this.topbarData:W.response&&"topbar"in W.response?_.z(W.response.topbar,pr7)||null:null};
_.Y.onSetTheaterModeEnabled=function(W,k){this.isTheaterModeSession=k.enabled;this.setTheaterModeStyles(k.enabled)};
_.Y.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.Y.onDarkModeToggledAction=function(){var W=_.KS(window.location.href);if(!_.ePX(W)){(W=!!_.G3(window.location.href).themeRefresh)&&_.zJ(new _.AM("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){shY();W={themeRefresh:1};var k=_.f().resolve(_.yF);if(k.isOnWatch()){var C,n;k=((C=k.getPlayerFromWatch())==null?void 0:(n=C.getPlayer())==null?void 0:n.getCurrentTime())||0;k>=1&&(W.time_continue=Math.floor(k))}_.Yg()||_.Vi()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.zy(_.yK(window.location.href,
W))}_.m("web_appshell_refresh_trigger")&&_.NX.caches&&this.refreshAppShellResponse();C=_.sk(window.location.href);_.f().resolve(_.UQS).replaceUrl(_.ud(C,"theme"))}};
_.Y.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.Y.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.Y.onPlayerFullscreen=function(W){_.LY();this.playerFullscreen=W};
_.Y.setRestrictedMode=function(W){var k=_.tQ();_.Er(0,58,W);k.save();_.f().resolve(_.rF).reload()};
_.Y.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Va("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Va("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Va("WEB_PAGE_TYPE_MINI_APP")):_.m("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Va("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Va("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.Y.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.Y.onGuideToggleTap=function(){_.Pe(this.hostElement,"yt-guide-toggle")};
_.Y.onGuideToggleHover=function(){_.Pe(this.hostElement,"yt-guide-hover")};
_.Y.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setMastheadTheme=function(){var W=_.Ty(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.Y.onRequestPanelModeChange=function(W,k){this.hideHeaderShadow=k.mode!=="seamed"};
_.Y.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.Y.onDrawerIronSelect=function(W){_.eI(W).id==="guide"&&this.processDrawerIronSelect()};
_.Y.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.Pe(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.Y.onAddElementToApp=function(W){_.S(this.hostElement).appendChild(W.detail)};
_.Y.onThrottledScroll=function(){var W=_.f().resolve(_.yF).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.Y.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.Y.setFullscreen=function(){if(_.m("external_fullscreen")||!this.isWatchPage){var W=_.m("kevlar_fullerscreen_root_only_killswitch")?!!_.LY():!!_.LY()&&_.LY()===document.documentElement;W=(this.isWatchPage||_.m("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.hA(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.ZF().dispatch(_.wj$(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.KY(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.Y.setFullscreenLoggingForShorts=function(W){var k,C,n;return _.F(function(N){if(N.nextAddress==1)return _.l(N,(k=_.Zf())==null?void 0:k.getPlayerPromise(),2);C=N.yieldResult;(n=C)==null||n.setAppFullscreen(W);_.ab(N)})};
_.Y.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.Op(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.Y.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.Op(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.Y.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.Op(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.Y.toggleFullscreenStyles=function(W,k,C){var n=_.f().resolve(_.yF).getCurrentPage();W||k?(document.body.classList.add("no-scroll"),n.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.LO(this,this.onScroll)),n.setScrollTop(0),_.Op(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.EP()+"px"})):C?_.Pe(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Pe(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),n.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.LO(this,this.onScroll)));this.mastheadHidden=W||k||C;this.updateMastheadCssHeight();_.m("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.Y.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.Y.onYtMastheadHeightChanged=function(W,k){this.mastheadHeight=k.height;this.updateMastheadCssHeight()};
_.Y.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.Pe(this.hostElement,"yt-navigate",{endpoint:W})};
_.Y.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.S(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.Y.onSetPushNotificationsEnabledCommand=function(W){var k=this,C=_.z(W,QtC);C&&typeof C.enabled==="boolean"&&(Notification.permission!=="granted"?On7().then(function(){Notification.permission==="granted"?(Mru(!C.enabled).then(vaB),C.successAction&&_.kQ(k.hostElement,[C.successAction])):C.failureAction&&_.kQ(k.hostElement,[C.failureAction])}):(Mru(!C.enabled).then(vaB),C.successAction&&_.kQ(this.hostElement,[C.successAction])))};
_.Y.onYtSignalActionEnableChromeNotifications=function(){L0t(!0)};
_.Y.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.z(this.topbarData.hotkeyDialog,stE)}}})};
_.Y.onYtSignalActionShowKeyboardShortcutDialog=function(){_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.Y.onYtEndpointChangeHandler=function(W,k){var C=_.hf(_.HK);C.pendingPrefetchJob_&&(k=!(!k||k.autonav!="1"),C.pendingPrefetchJob_.resolve(W&&_.J54(W)?_.c5w(W,k):""),C.pendingPrefetchJob_=null);_.KY(this.hostElement,"yt-pause-active-page-context");_.KY(this.hostElement,"ytd-log-youthere-nav");_.KY(this.hostElement,"yt-prepare-page-dispose")};
_.Y.handleClearUrlParamCommand=function(W){if(W.clearUrlParamCommand&&W.clearUrlParamCommand.paramKeys){var k=W.clearUrlParamCommand.paramKeys;W=_.Gb(window.location.href);k=_.b(k);for(var C=k.next();!C.done;C=k.next())W.JSC$7905_queryData_.remove(C.value);window.history.replaceState(window.history.state,document.title,W.toString())}};
_.Y.handleCommandWithCommandHandler=function(W,k){_.gH.instance.resolveCommand(W,{form:{element:k}})};
_.Y.onYtTimedCommand=function(W){var k=this;W=_.z(W,E8C);var C=W.command;C&&_.ty(_.aM,function(){var n=_.z(C,_.WSI);n?(_.gH.instance.resolveCommand(C),k.maybeLogGetAnswerRequestTick(n)):_.CB(k.hostElement,[C],k.hostElement)},W.timeoutMs||0)};
_.Y.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.JQ("search_overview_answer"),_.cN("so_rq",void 0,"search_overview_answer"))};
_.Y.onYtSignalActionSkipNavigation=function(){var W=_.f().resolve(_.yF).getCurrentPage();_.sL(W)};
_.Y.onYtSignalActionCopyDebugData=function(){YxZ()};
_.Y.handleEntityUpdateCommand=function(W){_.Ny(_.z(W,_.YOb).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.Y.logFlowLoggingEventCommand=function(W){if(W=_.z(W,_.jdw))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var k=W.flowEventNamespace,C=W.flowEventType,n=W.flowType;n&&k&&C&&_.aaw(_.P3(k,C,W.flowEventMetadata),n)}else{k=_.he();C=W.flowEventNamespace;n=W.flowEventType;var N=W.flowType;N&&C&&n&&_.K5(k,_.P3(C,n,W.flowEventMetadata),N,W.flowNonce)}};
_.Y.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.Y.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.Y.onTouchStart=function(){var W=_.PK();_.VM()&&_.JW(W.JSC$10904_screenManager,{visualElement:W.ve})};
_.Y.handleWebNativeShareCommand=function(W){navigator.share({url:_.z(W,S1$).url}).catch(function(){})};
_.Y.handleSelectCountryCommand=function(W){if(W=_.z(W,JZZ).gl){var k={persist_gl:1,gl:W},C=_.tQ();C.set("gl",W);C.save();W=jVA(k);_.zy(W)}};
_.Y.handlePersistSubscriptionsDisplayPreferencesCommand=function(W){if(W=_.z(W,zP7)){var k=_.tQ();_.Er(0,155,W.useListView);k.save()}};
_.Y.handleSelectLanguageCommand=function(W){if(W=_.z(W,cZi).hl){var k=_.tQ();k.set("hl",W);k.save();_.f().resolve(_.rF).reload()}};
_.Y.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.Y.handleOpenPopupNavigationEndpoints=function(W,k){_.m("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,k)};
_.Y.handleSaveCommandToSessionStorage=function(W){if(W=_.z(W,_.BmY)){var k=W.key;k&&W.command&&window.sessionStorage.setItem(k,JSON.stringify(W.command))}};
_.Y.hardReloadWithShellPurge=function(W){W=W===void 0?{}:W;W=Object.assign({},W,{purge_shell:1});W=jVA(W);_.zy(W)};
_.Y.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.dI(W)})};
_.Y.onDeviceThemeChanged=function(){var W=_.D6();_.Er(_.tQ(),185,W);_.tQ().save()};
_.Y.handleYtRegisterPromoCommand=function(W){if(_.z(W,MR7)){var k=_.f().resolve(_.yF).getCurrentPage()||this.hostElement;RS1().registerPromoCommand(_.z(W,MR7),k)}};
_.Y.onYtNavigateHomeAction=function(){if(!_.m("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,k,C,n,N=(n=(W=this.topbarData)==null?void 0:(k=W.logo)==null?void 0:(C=k.topbarLogoRenderer)==null?void 0:C.endpoint)!=null?n:_.CE;this.ytComponentBehavior.resolveCommand(N)}};
_.Y.onYtLocationCollectionCommand=function(W){MZA(_.z(W,TX$))};
_.Y.onYtGetLocationCommand=function(W){xbT(_.z(W,iuC),this)};
_.Y.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.Y.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.Y.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.Y.onThemeSelected=function(W,k){var C=_.tQ(),n=W||k?W:_.D6(),N=(n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ePX(_.KS(window.location.href));_.Er(0,165,W);_.Er(0,174,k);C.save();N&&_.KY(this.hostElement,"yt-dark-mode-toggled-action",[n]);_.KY(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.getCurrentTheme=function(){return _.Jh()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Vi()};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.Y.handleShowConsentPrimitive=function(W){var k=this,C,n;return _.F(function(N){if(N.nextAddress==1){try{C=(n=_.Zf())==null?void 0:n.getPlayerPromise()}catch(B){}return _.l(N,LPY(W,C),2)}_.KY(k.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ab(N)})};
_.Y.handleSelectActiveIdentityEndpointInternal=function(W){_.di();W=_.z(W,_.aYb);if(W!=null&&W.supportedTokens){W=_.b(W.supportedTokens);for(var k=W.next();!k.done;k=W.next())k=k.value,k.accountSigninToken&&_.zy(k.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.Y.handleUpdatePermissionRoleCommand=function(W){if(W=_.z(W,_.fnY)){var k;this.hasDelegation=!((k=_.z(W.renderer,_.XnI))==null||!k.status)}};
_.Y.registerViewTransitionTasks=function(){var W=this,k=_.f().resolve(_.qI(_.rMA));if(k){var C,n=(C=this.guide)==null?void 0:C.querySelector("#scrim"),N,B=(N=this.guide)==null?void 0:N.querySelector("#contentContainer");n&&B&&(C={beforeTransition:function(){var A;(A=W.guide)!=null&&A.persistent||(n.style.viewTransitionName="app-drawer-scrim",B.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var A;(A=W.guide)!=null&&A.persistent||(n.style.viewTransitionName="",B.style.viewTransitionName="")}},np(k,"slide",C),np(k,"zoom",C))}};
_.oq.Object.defineProperties(rO6.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.m("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.oq.Object.defineProperties(rO6,{template:{configurable:!0,enumerable:!0,get:function(){if(S8u===void 0){var W=document.createElement("template");_.J(W,'\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');
W.content.insertBefore(_.g().content.cloneNode(!0),W.content.firstChild);S8u=W}W=S8u;return W}}});
var EB=rO6;EB.prototype.onOpenHotkeyDialog=EB.prototype.onOpenHotkeyDialog;EB.prototype.onYtMastheadHeightChanged=EB.prototype.onYtMastheadHeightChanged;EB.prototype.setFullscreen=EB.prototype.setFullscreen;EB.prototype.onAddElementToApp=EB.prototype.onAddElementToApp;EB.prototype.onDrawerIronSelect=EB.prototype.onDrawerIronSelect;EB.prototype.onGuideOpenButtonHover=EB.prototype.onGuideOpenButtonHover;EB.prototype.onRequestPanelModeChange=EB.prototype.onRequestPanelModeChange;
EB.prototype.onPageDataUpdated=EB.prototype.onPageDataUpdated;EB.prototype.onPageChanged=EB.prototype.onPageChanged;EB.prototype.onSetTheaterModeEnabled=EB.prototype.onSetTheaterModeEnabled;EB.prototype.updateMastheadData=EB.prototype.updateMastheadData;EB.prototype.onYtPageManagerAttached=EB.prototype.onYtPageManagerAttached;EB.prototype.observeGuideVisibility=EB.prototype.observeGuideVisibility;EB.prototype.guideIsVisibleButNotPersistentSelectorChanged=EB.prototype.guideIsVisibleButNotPersistentSelectorChanged;
EB.prototype.isInlinePreviewEnabledChanged=EB.prototype.isInlinePreviewEnabledChanged;EB.prototype.dispatchFrostedGlassMode=EB.prototype.dispatchFrostedGlassMode;_.U([_.v(_.fk),_.O("design:type",Object)],EB.prototype,"ytdReduxBehavior",void 0);_.U([_.v(_.l4.YtEventForwardingBehavior),_.O("design:type",Object)],EB.prototype,"ytEventForwardingBehavior",void 0);_.U([_.v(_.Ll.YtOpenPopupBehavior),_.O("design:type",Object)],EB.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.v(_.$D.YtActionHandlerBehavior),_.O("design:type",Object)],EB.prototype,"ytActionHandlerBehavior",void 0);_.U([_.v({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.vx.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.m("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.O("design:type",Object)],EB.prototype,"ytActionRouterBehavior",void 0);_.U([_.v(HVE.YtdAppBehavior),_.O("design:type",Object)],EB.prototype,"ytdAppBehavior",void 0);_.U([_.v(_.jV.YtEndpointBehavior),_.O("design:type",Object)],EB.prototype,"ytEndpointBehavior",void 0);_.U([_.v(ei7.YtEndpointHandlerWithYpcBehavior),_.O("design:type",Object)],EB.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.U([_.v(Mb7.YtLogYpcFlowCommandsBehavior),_.O("design:type",Object)],EB.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.U([_.v(_.K.YtRendererBehavior),_.O("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.U([_.v(_.dh.YtComponentBehavior),_.O("design:type",Object)],EB.prototype,"ytComponentBehavior",void 0);_.U([_.Z({selector:_.DZ1}),_.O("design:type",Object)],EB.prototype,"tabGesturesIsActive",void 0);_.U([_.Z(),_.O("design:type",Boolean)],EB.prototype,"renderGuide",void 0);
_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"guidePersistentAndVisible",void 0);_.U([_.Z({selector:_.zIu}),_.O("design:type",Boolean)],EB.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"standalone",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"miniGuideVisible",void 0);
_.U([_.Z({selector:_.GRJ}),_.O("design:type",Number)],EB.prototype,"miniplayerPlaybackState",void 0);_.U([_.Z({selector:_.zo,reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"miniplayerIsActive",void 0);_.U([_.Z({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.O("design:type",Boolean)],EB.prototype,"isInlinePreviewEnabled",void 0);_.U([_.Z(),_.O("design:type",Boolean)],EB.prototype,"isInlinePreviewDisabled",void 0);
_.U([_.Z({reflectToAttribute:!0,value:function(){return _.cv("START_IN_FULL_WINDOW_MODE")}}),
_.O("design:type",Boolean)],EB.prototype,"mastheadHidden",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"playerFullscreen",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],EB.prototype,"deprecateFullerscreenUi",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"fullscreen",void 0);_.U([_.Z({value:!1,reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"hideHeaderShadow",void 0);
_.U([_.Z({value:{GUIDE_ALT_LABEL:_.w8("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.O("design:type",Object)],EB.prototype,"menuStrings",void 0);_.U([_.Z({computed:"computeTopbarData(data)"}),_.O("design:type",Object)],EB.prototype,"topbarData",void 0);_.U([_.Z({selector:_.DF}),_.O("design:type",Boolean)],EB.prototype,"isWatchPage",void 0);_.U([_.Z({selector:_.v7p,reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"isShortsPage",void 0);
_.U([_.Z({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.O("design:type",Boolean)],EB.prototype,"isMiniAppPage",void 0);_.U([_.Z({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.O("design:type",Boolean)],EB.prototype,"isBrowsePage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Boolean)],EB.prototype,"scrolling",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],EB.prototype,"hasDelegation",void 0);_.U([_.Z({reflectToAttribute:!0,value:!1}),_.O("design:type",Boolean)],EB.prototype,"guideScrolledByTouch",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],EB.prototype,"darkerDarkTheme",void 0);
_.U([_.Z(),_.O("design:type",Object)],EB.prototype,"isFrostedGlassInitialized",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],EB.prototype,"frostedGlassExp",void 0);_.U([_.Z({selector:function(W){return W.ui.chipBarIsSticky}}),
_.O("design:type",Boolean)],EB.prototype,"chipBarIsSticky",void 0);_.U([_.Z({computed:"computeIsHomePage(isBrowsePage, data)"}),_.O("design:type",Boolean)],EB.prototype,"isHomePage",void 0);_.U([_.Z({reflectToAttribute:!0}),_.O("design:type",Object)],EB.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.U([_.Z(),_.O("design:type",Object)],EB.prototype,"ephemeralActionsEnabled",void 0);_.U([_.og("guide"),_.O("design:type",Object)],EB.prototype,"guide",void 0);
_.U([_.og("guide-service"),_.O("design:type",$h6)],EB.prototype,"guideService",void 0);_.U([_.og("guide-inner-content"),_.O("design:type",HTMLDivElement)],EB.prototype,"guideInnerContent",void 0);_.U([_.Z({selector:_.$$z}),_.O("design:type",String)],EB.prototype,"frostedGlassMode",void 0);
_.U([_.Hl("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"dispatchFrostedGlassMode",null);_.U([_.Z({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.O("design:type",Object)],EB.prototype,"isFrostedGlassDisabled",void 0);
_.U([_.G("isHomePage","chipBarIsSticky"),_.O("design:type",Boolean),_.O("design:paramtypes",[])],EB.prototype,"applyFrostedGlassToChipBar",null);_.U([_.Z(),_.O("design:type",Object)],EB.prototype,"isChannelOrPlaylistPage",void 0);_.U([_.Cq("isInlinePreviewEnabled"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"isInlinePreviewEnabledChanged",null);
_.U([_.Hl("guideIsVisibleButNotPersistent"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.U([_.Hl("guidePersistentAndVisible","miniGuideVisible"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"observeGuideVisibility",null);
_.U([_.jI("attached"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],EB.prototype,"onYtPageManagerAttached",null);_.U([_.Hl("data"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype",Promise)],EB.prototype,"updateMastheadData",null);_.U([_.jI("yt-set-theater-mode-enabled"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],EB.prototype,"onSetTheaterModeEnabled",null);
_.U([_.jI("yt-page-type-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],EB.prototype,"onPageChanged",null);_.U([_.jI("yt-page-data-updated"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"onPageDataUpdated",null);_.U([_.jI("yt-request-panel-mode-change"),_.O("design:type",Function),_.O("design:paramtypes",[Event,Object]),_.O("design:returntype")],EB.prototype,"onRequestPanelModeChange",null);
_.U([_.jI("yt-guide-hover"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"onGuideOpenButtonHover",null);_.U([_.jI("app-drawer-transitioned"),_.O("design:type",Function),_.O("design:paramtypes",[Event]),_.O("design:returntype")],EB.prototype,"onDrawerIronSelect",null);_.U([_.jI("yt-add-element-to-app"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent]),_.O("design:returntype")],EB.prototype,"onAddElementToApp",null);
_.U([_.jI("yt-set-fullerscreen-styles"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"setFullscreen",null);_.U([_.jI("yt-masthead-height-changed"),_.O("design:type",Function),_.O("design:paramtypes",[CustomEvent,Object]),_.O("design:returntype")],EB.prototype,"onYtMastheadHeightChanged",null);_.U([_.jI("yt-open-hotkey-dialog"),_.O("design:type",Function),_.O("design:paramtypes",[]),_.O("design:returntype")],EB.prototype,"onOpenHotkeyDialog",null);
EB=_.U([_.T({is:"ytd-app"})],EB);_.Ir().processSignal("eor");
_.cf();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
